CGIServlet in Tomcat 6

2007-01-23 Thread Yannick Haudry
Hi all, I'm using CGI servlet in Tomcat 5 without any problem, but with Tomcat 6 I get this error when deploying my web application: java.lang.SecurityException: Servlet of class org.apache.catalina.servlets.CGIServlet is privileged and cannot be loaded by this web application In Tomcat 6, I

Re: Embedded Tomcat and application communication

2007-01-23 Thread Yiannis Mavroukakis
Oh no, I mean the exact opposite :) - | Application | | | |---| |Embedded TC| - The application I am writing this for is a server daemon which has a cli that enables the user to issue commands to it once it's up and running.

Re: Using the manager for multiple hosts

2007-01-23 Thread JV832
Thanks Charles, I have it running now. Furthermore I found out that using the admin.xml I can limit access to the manager to certain ip-addresses. JV Caldarale, Charles R wrote: From: JV832 [mailto:[EMAIL PROTECTED] Subject: Using the manager for multiple hosts Is it possible to use the

RE: mod_jk replacement?

2007-01-23 Thread David Rodríguez Fernández
You can use the mod_proxy, with the 8080 port and http protocol. This is implemented in apache 2.0.x (and 1.3.x). The sintax is similar as i mencioned in the previous message. -Mensaje original- De: Hassan Schroeder [mailto:[EMAIL PROTECTED] Enviado el: lunes, 22 de enero de 2007 16:55

Re: Embedded Tomcat and application communication

2007-01-23 Thread ben short
Hi, I have done something similar, but used Jetty [1] as I couldn't figure out how to get tomcat to do it.. My application registers a servlet and starts jetty. the servlet gets the interface to the application via a static method. But it all works OK. Maybe you could set the application

Re: Embedded Tomcat and application communication

2007-01-23 Thread ben short
On further reading... Server server = new Server(8080); Context root = new Context(server,/,Context.SESSIONS); root.addServlet(new ServletHolder(new HelloServlet(Ciao)), /*); server.start(); You can pass the interface to your application into the HelloServlet's constructor. My app actually

Re: Tomcat OutOfMemoryException PermGen

2007-01-23 Thread David Delbecq
The problem is that it's a webapp problem, not a tomcat one, has as been explained quite a few times here. The PermGen can not be flushed that way. Normally, the webapp class datas are garbage collected when they are undeployed/redeployed. However, under certain conditions that depend on the

Re: Tomcat OutOfMemoryException PermGen

2007-01-23 Thread Ondrej Zizka
Sorry for posting this twice, that was by accident. By the way, does this mailing list have some newsgroup mirror so I could use it through NNTP? Thanks, Ondra - Original Message - From: Ondrej Zizka To: users@tomcat.apache.org Sent: Tuesday, January 23, 2007 12:46 PM

Re: Access to error page denied in Firefox 2.0

2007-01-23 Thread David Delbecq
En l'instant précis du 01/22/07 17:05, Marcel Frehner s'exprimait en ces termes: Thank you for your answer David. My conclusion would be to move my protected resources to a separate folder and adjust my web.xml accordingly. Of course you were absolutely right about the 403 status. My Firefox

Re: Webapps loading order

2007-01-23 Thread David Delbecq
It might be, for example, the order in which the webapps are iterated inside a hashset, which can completly change if you add a webapp. Or it might be the order in which the filesystem return them, As people said, it depends on the time. If you really want to know, take a look at source code of

Re: Tomcat 6.0.8 JSF 1.2 RI

2007-01-23 Thread Martin Dubuc
I am able to use JSF 1.2_03 RI inside Tomcat 6.0.8. Ensure you have the JSTL 1.2 also loaded. Martin On 1/22/07, Zaphod [EMAIL PROTECTED] wrote: I try to use the JSF 1.2_03 RI with Tomcat 6.0.8. I get a NullPointerException: Servlet.service() for servlet jsp threw exception

Re: CGIServlet in Tomcat 6

2007-01-23 Thread Martin Dubuc
Not sure if this is all that is required, but in the Context section of the webapp context.xml file, you need to add privileged=true property. Martin On 1/23/07, Yannick Haudry [EMAIL PROTECTED] wrote: Hi all, I'm using CGI servlet in Tomcat 5 without any problem, but with Tomcat 6 I get this

Re: Tomcat 4.x (Major Problem)

2007-01-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andy, Andy Moller wrote: 1. You are using the array val2 here instead of value2. Is that intentional? Or, were you somewhat obfuscating your code for publication on the list? [Chris]: It is a mistake while changing the variable naming, the

Increasing Max Memory in Tomcat resulting in failed startup of Tomcat

2007-01-23 Thread Indu Devanath
Hello all, I as using Tomcat version 5.0.28 as a windows service on a HP PROLIANT DL380 G4 7/3.0 2MB 1GB (Dual processors) running Windows 2003 server. I have 4 GB of ram installed in the server. Under system information Windows has 3583.47 MB for Total Physical Memory. Ok, here is the

RE: Increasing Max Memory in Tomcat resulting in failed startup of Tomcat

2007-01-23 Thread Caldarale, Charles R
From: Indu Devanath [mailto:[EMAIL PROTECTED] Subject: Increasing Max Memory in Tomcat resulting in failed startup of Tomcat if I am understanding Chuck's reply (from entry below) there should be a 2GB limit not a 1GB limit correct? There's a 2GB virtual space limit for the entire

How to tune JSP performance?

2007-01-23 Thread David Goodenough
I have a system with two identical machines running Tomcat 5.5.17 running identical applications. There are some extra things running on one of the machines, but these problems occur even when they are turned off. The application consists of two parts. There is a JSP layer, and a servlet

Re: How to tune JSP performance?

2007-01-23 Thread Mikolaj Rydzewski
David Goodenough wrote: On the slow machine it takes 30 seconds to send back the 302 rewriting the URL so that it has a jsessionid, and then 16 seconds to serve the HTML for the logon page. Looks like a DNS timeout value. Is the DNS system properly configured on both machines? -- Mikolaj

How to get UTF-8 decoded parameters from request - Chinese Characters

2007-01-23 Thread PATTUS, Jean-Philippe
Hello the list, i'm back with my chinese langage. In a jsp file i have a form input type=text id=id button onclick=submit()/button/form When i fill my form with chinese characters and i submit() the form, on the server side when i read the parameter from my request i get C:/ç›é€‰ç¨‹åº

Re: Webapps loading order

2007-01-23 Thread Orlando Reis
Thanks I going to have a look, but has others have pointed out such a mechanism is vowed to change in the future. I think, that either me or the team I work with, will do the synchronization mechanism. Thanks Orlando On 1/23/07, David Delbecq [EMAIL PROTECTED] wrote: It might be, for

mod_jk : error sending request

2007-01-23 Thread heind heind
Hi, I have a web application deployed in tomcat embedded in jonas 4.7.4 Application Server, and in frontend there are apache 2.0.55 and mod_jk 12.20. My issue is that the message below is generated systematically after every jsp call although the jsp are well served and the application works

Re: CGIServlet in Tomcat 6

2007-01-23 Thread Yannick Haudry
ok, now it works ! thanks for your answer Martin Yannick On 1/23/07, Martin Dubuc [EMAIL PROTECTED] wrote: Not sure if this is all that is required, but in the Context section of the webapp context.xml file, you need to add privileged=true property. Martin On 1/23/07, Yannick Haudry [EMAIL

Re: Webapps loading order

2007-01-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Orlando, Orlando Reis wrote: Thanks I going to have a look, but has others have pointed out such a mechanism is vowed to change in the future. I think, that either me or the team I work with, will do the synchronization mechanism. Another

Re: How to get UTF-8 decoded parameters from request - Chinese Characters

2007-01-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jean-Philippe, PATTUS, Jean-Philippe wrote: When i fill my form with chinese characters and i submit() the form, on the server side when i read the parameter from my request i get C:/ç›é€‰ç¨‹åº something like this. Where do you see this kind of

mod_jk : error sending request. Will try another pooled connection

2007-01-23 Thread heind heind
Hi, I have a web application deployed in tomcat embedded in jonas 4.7.4 Application Server, and in frontend there are apache 2.0.55 and mod_jk 12.20. My issue is that the message below is generated systematically after every jsp call although the jsp are well served and the application works

tomcat Webapp security.

2007-01-23 Thread Sachin Patel
I have a web application and a functionality to be able to upload files to one of the folders inside it and be able to access it using direct link URL. now I am wondering if someone uploads .jsp file, how would I stop tomcat from compiling and running that file when someone requests that same

Re: tomcat Webapp security.

2007-01-23 Thread David Smith
The best method I can think of is to store the jsp in a directory outside your tomcat and outside your webapp. Then configure the path to the storage in either the context.xml or web.xml for your webapp and use a ServletContextListener to load up an application scope attribute with the path.

Re: tomcat Webapp security.

2007-01-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David and Sachin, David Smith wrote: The best method I can think of is to store the jsp in a directory outside your tomcat and outside your webapp. Then configure the path to the storage in either the context.xml or web.xml for your webapp and

Re: tomcat Webapp security.

2007-01-23 Thread Sachin Patel
Another option is to place your uploaded files in a particular subdirectory and then configure the JSP servlet to ignore that directory. Or probably more appropriately, configure that directory to serve everything through the generic servlet that just does static content. This is exectly what I

Re: How to tune JSP performance?

2007-01-23 Thread David Goodenough
On Tuesday 23 January 2007 15:51, Mikolaj Rydzewski wrote: David Goodenough wrote: On the slow machine it takes 30 seconds to send back the 302 rewriting the URL so that it has a jsessionid, and then 16 seconds to serve the HTML for the logon page. Looks like a DNS timeout value. Is the

Re: mod_jk replacement?

2007-01-23 Thread JNeuhoff
Whenever you have connection pool setup in mod_jk it means you don't have constant connections any more. The connection pool will maintain the connections and close them by some rule (size). Now, having that you *must* have connectionTimeout=6 in server.xml for the AJP connector so

Re: tomcat Webapp security.

2007-01-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sachin, Sachin Patel wrote: Another option is to place your uploaded files in a particular subdirectory and then configure the JSP servlet to ignore that directory. Or probably more appropriately, configure that directory to serve everything

64-bit tomcat5.exe not working properly (TC 5.5.20)

2007-01-23 Thread Martin Skøtt
Hi everyone I'm trying to setup Tomcat as a service on 64-bit Windows with 64-bit Java, but are having trouble installing the service. The Tomcat runs properly when started using startup.bat. I have installed JDK 1.5.0_10 for 64-bit Windows and Tomcat 5.5.20 from the zip file on

Re: How to tune JSP performance?

2007-01-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Goodenough wrote: Currently it looks to me as though the problem is with the multicast messages for the clustering. I found a timeout message which is suggesting that for some reason although the slow machine can send messages to

Re: tomcat Webapp security.

2007-01-23 Thread Sachin Patel
Thanks. I'll look it up. :) - Original Message From: Christopher Schultz [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, January 23, 2007 1:11:58 PM Subject: Re: tomcat Webapp security. -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sachin, Sachin Patel

Re: mod_jk replacement?

2007-01-23 Thread Mladen Turk
JNeuhoff wrote: The web service still receives requests and responds normally, yet mod_jk now always comes up with this in its mod_jk.log: Increase the connection pool from 10 to 50 and see what happens. Regards, Mladen. -

RE: tomcat Webapp security.

2007-01-23 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: tomcat Webapp security. servlet-mapping servlet-namejsp/servlet-name url-pattern*.jsp/url-pattern /servlet-mapping servlet-mapping servlet-namejsp/servlet-name

Re: How to tune JSP performance?

2007-01-23 Thread David Goodenough
On Tuesday 23 January 2007 18:14, Christopher Schultz wrote: David, David Goodenough wrote: Currently it looks to me as though the problem is with the multicast messages for the clustering. I found a timeout message which is suggesting that for some reason although the slow machine can

Re: How to tune JSP performance?

2007-01-23 Thread Leon Rosenberg
Hi David, 1. Have you double and tripple checked that all your configs on both machines as well as tomcat/jdk/OS versions are identical? 2. Have you tried rebooting? There were some memory bugs with later kernel, I don't remember if the 2.6.16 is affected, but just in case. 3. How exactly do

Re: tomcat Webapp security.

2007-01-23 Thread Leon Rosenberg
another, cheaper, option, is to put your files under WEB-INF and put a filter into webapp which denies all requests to a jsp if its not under WEB-INF. And of course deny all requests to upload something into WEB-INF. regards Leon. On 1/23/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:

Re: tomcat Webapp security.

2007-01-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: tomcat Webapp security. servlet-mapping servlet-namejsp/servlet-name url-pattern*.jsp/url-pattern /servlet-mapping

Oracle OHS and Tomcat

2007-01-23 Thread BATCHELOR, SCOTT \(CONTRACTOR\)
Just curious if anyone is fronting Tomcat with the standalone OHS product. And if this is even viable. Thanks SB

Re: mod_jk replacement?

2007-01-23 Thread Rainer Jung
OK, one small error or typo in communication: connection timeout on mod_jk side is in seconds, on tomcat side is in milliseconds. So Mladens suggestion had a missing trailing 0 to make the params on the two sides fit. I think he meant connectionTimeout=60 to make it fit the 600 on the mod_jk

Re: Tomcat 6.0.8 JSF 1.2 RI

2007-01-23 Thread srowen
I am seeing the same problem, via a different route. Check this out -- it solves this specific problem for me: http://issues.apache.org/bugzilla/show_bug.cgi?id=39804 I made a simple listener which calls Class.forName(org.apache.jasper.compiler.JspRuntimeContext); first Sean -- View this

session and AJP

2007-01-23 Thread alessandro . ilardo
I'm trying to set up an AJP connector between Apache 2 (red hat) and Tomcat 5.5 (red hat) running on two different servers. VirtualHost *:80 ServerName server2.domain.com DocumentRoot /var/www/html JkMount /id/admin/* tomcat559 /VirtualHost worker.list=tomcat559,jboss322

Re: mod_jk replacement?

2007-01-23 Thread JNeuhoff
connection timeout on mod_jk side is in seconds, on tomcat side is in milliseconds. So Mladens suggestion had a missing trailing 0 to make the params on the two sides fit. I think he meant connectionTimeout=60 to make it fit the 600 on the mod_jk side. Thanks, you are right, there was a

Re: mod_jk replacement?

2007-01-23 Thread Rainer Jung
JNeuhoff schrieb: connection timeout on mod_jk side is in seconds, on tomcat side is in milliseconds. So Mladens suggestion had a missing trailing 0 to make the params on the two sides fit. I think he meant connectionTimeout=60 to make it fit the 600 on the mod_jk side. Thanks, you are

Re: session and AJP

2007-01-23 Thread Rainer Jung
[EMAIL PROTECTED] schrieb: I'm trying to set up an AJP connector between Apache 2 (red hat) and Tomcat 5.5 (red hat) running on two different servers. VirtualHost *:80 ServerName server2.domain.com DocumentRoot /var/www/html JkMount /id/admin/* tomcat559 /VirtualHost OK, no rules for

RE: Oracle OHS and Tomcat

2007-01-23 Thread Jason Pyeron
Too many acronyms in my life. OHS? -Original Message- From: BATCHELOR, SCOTT (CONTRACTOR) [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 23, 2007 14:52 To: users@tomcat.apache.org Subject: Oracle OHS and Tomcat Just curious if anyone is fronting Tomcat with the standalone OHS

Re: mod_jk replacement?

2007-01-23 Thread JNeuhoff
Do I remember correctly, that Apache and Tomcat are on the same machine? Is there a firewall on this machine? They are both on the same machine. Apache is listening to a dedicated IP-address, on port 80, while Tomcat is configured to using localhost, and listens to port 8080 (http) and 8009

RE: tomcat Webapp security.

2007-01-23 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: tomcat Webapp security. Ugh. What about re-mapping the jsp-servlet to only process things in a subdir? Might work, but I haven't looked at the code to see if the JspServlet can handle the prefix in the url-pattern; would

User-specified log class 'com.sun.idm.logging.trace.TraceLogger' cannot be found or is not useable.

2007-01-23 Thread Anoop kumar V
When I start my tomcat server with our application, I get the following errors and the tomcat fails to startup: SEVERE: End event threw exception org.apache.commons.logging.LogConfigurationException: User-specified log class 'com.sun.idm.logging.trace.TraceLogger' cannot be found or is not

Looking up JNDI resources in my java app

2007-01-23 Thread Michael Hencin
I would like to know if its possible to look-up all the JNDI resources I have created in the tomcat admin. I have a web app that create a number of JNDI data sources for under the service\host\mywebapp. My question, is it possible in java, or jsp to query that list? and display them? I would

Re: User-specified log class 'com.sun.idm.logging.trace.TraceLogger' cannot be found or is not useable.

2007-01-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anoop, Anoop kumar V wrote: When I start my tomcat server with our application, I get the following errors and the tomcat fails to startup: SEVERE: End event threw exception org.apache.commons.logging.LogConfigurationException: User-specified

Re: User-specified log class 'com.sun.idm.logging.trace.TraceLogger' cannot be found or is not useable.

2007-01-23 Thread Jacob Rhoden
You raise a question I have been wondering about for quite some time, why is it that some libraries need to go in different places, I tend to just copy them to different places until it works (: How does one learn these things? Christopher Schultz wrote: If you are putting it into your

Re: User-specified log class 'com.sun.idm.logging.trace.TraceLogger' cannot be found or is not useable.

2007-01-23 Thread Mark Thomas
Jacob Rhoden wrote: You raise a question I have been wondering about for quite some time, why is it that some libraries need to go in different places, I tend to just copy them to different places until it works (: How does one learn these things? Reading the documentation is usually a good

Re: Path element in context.xml

2007-01-23 Thread Andre Prasetya
This question being asked many times by many people. Context path=xxx is not supposed to be used unless you mention it at server.xml but its strongly discouraged.CMIIW so far i only use the war name as its deploy path like foo.war will map to localhost:8080/foo/servlet mapping On 1/24/07,

Path element in context.xml

2007-01-23 Thread DHARNA, AJAY [AG/1000]
Hi, I had posted this question earlier on the users mailing list and got no response, so I am going to try and re-post it again and also post it on the dev mailing list. I have recently upgrade from tomcat 5.0.28 to 5.5.20 and everything seems to be working fine for most of my apps except for

Re: User-specified log class 'com.sun.idm.logging.trace.TraceLogger' cannot be found or is not useable.

2007-01-23 Thread Anoop kumar V
Yes - the documentation does help. But I think Tomcat is a bit too strict in applying the specs - or maybe the specs are too rigid. Why not load classes wherever they are found!! Anyways - The delivery of the environment was today and as soon as I deleted the j2ee.jar from the

Re: User-specified log class 'com.sun.idm.logging.trace.TraceLogger' cannot be found or is not useable.

2007-01-23 Thread Zack Grafton
The reason they don't load the classes where ever they may be found is because different web apps may be using different versions of the API. This could provide inconsistencies that could cause applications to fail unexpectedly, or cause errors more abstract than most developers would want