Re: Multilevel context path problem

2007-04-11 Thread Johnny Kewl
Ok... I'm not sure, it isnt intuitive, almost like context paths are a useless extra, I cant say I understand it either. If I want a servlet to say work on /test/secondlevel/ I change the name of the webapp to test and I also change the context path in conf /engine/location/ to test

Tomcat 5.5.23 Windows Service vs. User Application

2007-04-11 Thread Klacansky, Igor
Hi, I am running Tomcat 5.5.23 + SSL as a standalone server under Win XP SP2 = and Java 1.5.0.08. Started as a user application (startup.bat) there are no problems, I can = see all pages from the web. However, when I start Tomcat as Win Service (service.bat), I can see all = pages locally on

proxy_balancer_module modules/mod_proxy_balancer.so in httpd-2.0.52-28.ent.i386 ??

2007-04-11 Thread Paresh Mutha
The feature I am looking for proxy_balancer_module modules/mod_proxy_balancer.so. Can some one tell me if this is available on RHEL4 ie in httpd-2.0.52-28.ent.i386https://rhn.redhat.com/network/software/packages/details.pxt?pid=356268Apache HTTP Server ? Thanks, Paresh

Re: virtual directory

2007-04-11 Thread Johnny Kewl
Hi sylvian When developing I do this request.getContextPath() + uri; but I wrap the request.getContextPath() in a little routine like say imageMap(String uri) and use that in my JSP's Thats cool because if I change the context path the app doesnt break... BUT... I do it for a much

Re: confirm unsubscribe from users@tomcat.apache.org

2007-04-11 Thread L.W. van Braam van Vloten
Quoting [EMAIL PROTECTED]: Hi! This is the ezmlm program. I'm managing the users@tomcat.apache.org mailing list. I'm working for my owner, who can be reached at [EMAIL PROTECTED] To confirm that you would like [EMAIL PROTECTED] removed from the users mailing list, please send a short

jsvc with security manager

2007-04-11 Thread Thomas Zumbrunn
Hello list A couple of weeks ago I asked for advice regarding a problem with jsvc and security manager. Unfortunately, I still couldn't figure out how to solve the problem. Could anyone point me in the right direction? Thank you. I run tomcat 5.5.x with jsvc (on Linux) to be able to make it

Tomcat 6.0.x OpenEJB

2007-04-11 Thread José Perdigão
Hi, has anyone been able to integrate OpenEJB with Apache-Tomcat 6.0.x? Or is it just impossible to do it? -- José Miguel Perdigão zeperdi.pt.vu - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail:

Re: proxy_balancer_module modules/mod_proxy_balancer.so in httpd-2.0.52-28.ent.i386 ??

2007-04-11 Thread Mladen Turk
Paresh Mutha wrote: The feature I am looking for proxy_balancer_module modules/mod_proxy_balancer.so. Can some one tell me if this is available on RHEL4 ie in httpd-2.0.52-28.ent.i386https://rhn.redhat.com/network/software/packages/details.pxt?pid=356268Apache Nope. Those are part of Httpd

Re: nsapi_redirector.so

2007-04-11 Thread Rajiv M
hi Rainer, Thank you for the libraries!! I picked nsapi_redirector.so_sjsws61_sp7_64 for tests on my Solaris 10 setup. Upgraded the Sun Web server to 6.1 SP7. Made the necessary configuration for Tomcat connector and started Tomcat. On launching Sun Web Server, now, I receive:

Servlet init method invocation

2007-04-11 Thread Nencho Lupanov
Hi All, I am trying to understand, when is the Servlet init() method invoked in tomcat. I expected it to be executed after succesfull deployment but it seems that it is executed the first time(only) when request arives. So, i need to receive a request in order this method to be executed? Is

Re: How to hide Tomcat serverversion information?

2007-04-11 Thread Tim Funk
IIRC, this will handle the error page body but not the server header. The Connectors are pretty stringent on not being change in 5.0.x. You'll need to change org.apache.coyote.http11.Constants Here is the code which you'll change: /** * Server string. */ public static final byte[]

Re: nsapi_redirector.so

2007-04-11 Thread Rainer Jung
Please try again by adding shm_file=/usr/jakarta-tomcat-5.5.0/conf/jk-runtime-status to the block Init fn=jk_init worker_file=/usr/jakarta-tomcat-5.5.0/conf/workers.properties log_level=debug log_file=/usr/jakarta-tomcat-5.5.0/conf/nsapi.log in magnus.conf. If this doesn't work, I'll

Re: Servlet init method invocation

2007-04-11 Thread David Smith
Nencho Lupanov wrote: Hi All, I am trying to understand, when is the Servlet init() method invoked in tomcat. I expected it to be executed after succesfull deployment but it seems that it is executed the first time(only) when request arives. So, i need to receive a request in order this

Re: Servlet init method invocation

2007-04-11 Thread David Delbecq
init() is called when servlet is initialized. The servlet is, by default (see j2EE specs) initialized when it is first accessed. The 'load-on-startup' element of web.xml can be used to force servlet to be initialized upon webapp startup. The value of this element is a number that specify order,

Re: nsapi_redirector.so

2007-04-11 Thread Rajiv M
Did the changes. Server still shows error on startup: [https-sun210dev2.in.ibm.com]: failure: CORE3170: Configuration initialization failed: Error running init function jk_init: unknown error nsapi.log indicates: [Thu Apr 12 03:16:31 2007] [1639:0001] [debug] do_shm_open::jk_shm.c (374):

Re: Servlet init method invocation

2007-04-11 Thread Nencho Lupanov
I used load-on-startup and it works fine. Thanks, Nencho 2007/4/11, David Delbecq [EMAIL PROTECTED]: init() is called when servlet is initialized. The servlet is, by default (see j2EE specs) initialized when it is first accessed. The 'load-on-startup' element of web.xml can be used to force

Re: nsapi_redirector.so

2007-04-11 Thread Rainer Jung
OK, I'll check, but give me one or two days ... Maybe someone else has an idea in the meantime. Rajiv M wrote: Did the changes. Server still shows error on startup: [https-sun210dev2.in.ibm.com]: failure: CORE3170: Configuration initialization failed: Error running init function jk_init:

Tomcat Deploy Task Error

2007-04-11 Thread Shardul Bhatt
I am using ANT 1.6.5 Luntbuild 1.3.6. Tomcat 6.0 The task below is for deploying the application to Tomcat target name=deploy description=Deploys the Web Application deploy url=${manager.url} username=${username} password=${password} path=/${app.name}

Re: nsapi_redirector.so

2007-04-11 Thread Martin Gainty
Guten Tag Rainier and Rajiv Looks like this comes from the jk_shm_attach routine by Mladen jk_shm_attach(const char *fname, size_t sz, jk_logger_t *l) personally I would attenuate the attached size (2nd param)

unable to install tomcat 5.0

2007-04-11 Thread Tulasi Vani M
Hi, I'm trying to install tomcat 5.0 by downloading it directly from the apache official website. after unziping the same...im getting the error the specified service doesnot exist as an instaled service...unable to open the service tomcat can u suggest me whats to be done for this?The reason

Re: Servlet init method invocation

2007-04-11 Thread Mikolaj Rydzewski
Nencho Lupanov wrote: I am trying to understand, when is the Servlet init() method invoked in tomcat. I expected it to be executed after succesfull deployment but it seems that it is executed the first time(only) when request arives. So, i need to receive a request in order this method to be

Question on setting up LDAP...

2007-04-11 Thread Smith, Corey
Hello and how is it? I was wondering if anyone has had success in setting up LDAP to work with their Tomcat Web applications? Thanks :) C CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown. This

Re: unable to install tomcat 5.0

2007-04-11 Thread reno
http://www.google.com/search?q=install+tomcat+5 Hi, I'm trying to install tomcat 5.0 by downloading it directly from the apache official website. after unziping the same...im getting the error the specified service doesnot exist as an instaled service...unable to open the service

Upgrading Tomcat

2007-04-11 Thread Laura McCord
Are there any instructions available on how to upgrade a Tomcat version? I have Tomcat 5.0.28 installed and I want to upgrade to Tomcat 5.5.23 but I can only find installation instructions and no upgrade instructions. -Laura -

Re: Upgrading Tomcat

2007-04-11 Thread Hassan Schroeder
On 4/11/07, Laura McCord [EMAIL PROTECTED] wrote: Are there any instructions available on how to upgrade a Tomcat version? If by upgrade you mean overwrite an existing installation -- I'd suggest you don't really want to do that :-) I have Tomcat 5.0.28 installed and I want to upgrade to

Re: virtual directory

2007-04-11 Thread Sylvain Roche
Hi Johnny, hi everybody I took the images example to explain and simplify the problem, but actually I may need to include different contents, which may be static - like images, flash animations, html pages - but may also be jsp pages for exemple, and some of these contents are likely to be

Re: Upgrading Tomcat

2007-04-11 Thread Laura McCord
So, basically I have to setup a new tomcat instance and move all the webapps over to the new install? Hassan Schroeder wrote: On 4/11/07, Laura McCord [EMAIL PROTECTED] wrote: Are there any instructions available on how to upgrade a Tomcat version? If by upgrade you mean overwrite an

Re: nsapi_redirector.so

2007-04-11 Thread Rajiv M
I was following the steps in the below URL: http://tomcat.apache.org/connectors-doc/webserver_howto/nes.html Now, when I see the jk binaries for Solaris: http://apache.siamwebhosting.com/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.21/ there are

Security question - starting tomcat as non-root user

2007-04-11 Thread Neil B. Cohen
Hi, I'm running Tomcat 5.5.20 with an application built under Netbeans 5.5. The application works fine. I've found a number of things on the web regarding the issue of running as a non-root user, but none match my needs exactly. If someone could point me at the right documentation, or answer

Re: Upgrading Tomcat

2007-04-11 Thread Hassan Schroeder
On 4/11/07, Laura McCord [EMAIL PROTECTED] wrote: So, basically I have to setup a new tomcat instance and move all the webapps over to the new install? Well, I upgrade regularly, so I keep my appBase(s) set to directories outside of the Tomcat installations. That way I can toggle test installs

Re: Security question - starting tomcat as non-root user

2007-04-11 Thread Hassan Schroeder
On 4/11/07, Neil B. Cohen [EMAIL PROTECTED] wrote: Situation - I am installing tomcat and running it on port 8080. However, it is currently being started by the root user and I need to change that. If I just run the startup script as user 'foo', I get errors because it can't read various

Re: Security question - starting tomcat as non-root user

2007-04-11 Thread Neil B. Cohen
I didn't realize it could be that simple :) Thanks very much - I will give that a try... Much obliged, nbc On Wed, 2007-04-11 at 07:59 -0700, Hassan Schroeder wrote: On 4/11/07, Neil B. Cohen [EMAIL PROTECTED] wrote: Situation - I am installing tomcat and running it on port 8080.

Re: virtual directory

2007-04-11 Thread Hassan Schroeder
On 4/11/07, Sylvain Roche [EMAIL PROTECTED] wrote: I took the images example to explain and simplify the problem, but Regardless, I don't understand what you're trying to do -- do you want to have e.g. example.com/foo/images example.com/bar/images where 'images' points to the same

Deploy Running the Struts application in Tomcat 5.0.28 Tomcat 4.1.31

2007-04-11 Thread Pasupuleti, Durga (Export)
Dear All, I am getting the following error after deploying and accessing the first page of my application. Please help me in solving the problem. I am getting the problem in both versions of Tomcat Thanks In Advance javax.servlet.ServletException at

Re: virtual directory

2007-04-11 Thread Sylvain Roche
The symlink solution could work, except that it is not what I want to do. The production application is hosted on linux servers, but we also have to deal with the developpers' computers, which runs windows What I need basically il to have a subdirectory of my webapp located somewhere else on

Re: NullPointerException with Parameters.getParameterValues(String)

2007-04-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, Robert Harper wrote: Try username. I'm surprised the compiler doesn't complain that username is being used without being initialized. If it didn't, the compiler probably set username to be null. I don't know of a single compiler that will

Re: NullPointerException with Parameters.getParameterValues(String)

2007-04-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rahul, Rahul Thakur wrote: Looks like it was the 'username'. The username is being initialised in the taglib handler implementation but the behaviour differs between JRun and Tomcat. That should not be the case. The servlet spec is quite clear

Re: Deploy Running the Struts application in Tomcat 5.0.28 Tomcat 4.1.31

2007-04-11 Thread Martin Gainty
Difficult to diagnose w/o seeing the code Please post gadget.jsp M- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the

Re: Security question - starting tomcat as non-root user

2007-04-11 Thread Jasbinder Singh Bali
Did you try running tomcat with JSVC. It'll run it as a deamon with the user privileges of your choicde On 4/11/07, Neil B. Cohen [EMAIL PROTECTED] wrote: I didn't realize it could be that simple :) Thanks very much - I will give that a try... Much obliged, nbc On Wed, 2007-04-11 at

Re: jsvc with security manager

2007-04-11 Thread Rashmi Rubdi
On 4/11/07, Thomas Zumbrunn [EMAIL PROTECTED] wrote: Hello list A couple of weeks ago I asked for advice regarding a problem with jsvc and security manager. Unfortunately, I still couldn't figure out how to solve the problem. Could anyone point me in the right direction? Thank you. I don't

RE: Question on setting up LDAP...

2007-04-11 Thread ScottAnders
Yeah we use it successfully. We've got the following in our server.xml in the Engine tag: Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionName=uid=xxx,ou=xxx,dc=bc,dc=com connectionPassword=xxx

Re: jsvc with security manager

2007-04-11 Thread Rashmi Rubdi
On 4/11/07, Thomas Zumbrunn [EMAIL PROTECTED] wrote: Sorry I missed this part: I'm using the script jsvc-src/native/Tomcat5.sh which ships with the tomcat distribution and with the environment variable CATALINA_OPTS=-Djava.security.manager

Re: Servlet init method invocation

2007-04-11 Thread Rashmi Rubdi
I think ServletContextListener is useful for initializing non-Servlet classes too, the non-Servlet class only needs to implement the listener. -Rashmi On 4/11/07, Mikolaj Rydzewski [EMAIL PROTECTED] wrote: I prefer to use ServletContextListener.

Re: virtual directory

2007-04-11 Thread Hassan Schroeder
On 4/11/07, Sylvain Roche [EMAIL PROTECTED] wrote: The symlink solution could work, except that it is not what I want to do. The production application is hosted on linux servers, but we also have to deal with the developpers' computers, which runs windows That's fixable :-) What I need

Re: proxy_balancer_module modules/mod_proxy_balancer.so in httpd-2.0.52-28.ent.i386 ??

2007-04-11 Thread Jim Jagielski
The balancer code is only part of httpd 2.2.x On Apr 11, 2007, at 4:01 AM, Paresh Mutha wrote: The feature I am looking for proxy_balancer_module modules/mod_proxy_balancer.so. Can some one tell me if this is available on RHEL4 ie in

Re: Regarding migration to Tomcat from JRun

2007-04-11 Thread Rashmi Rubdi
There are some useful suggestions on a question that was answered previously: http://mail-archives.apache.org/mod_mbox/tomcat-users/200212.mbox/[EMAIL PROTECTED] The web.xml snippet you've shown looks standard. I don't think you need to change anything there. I think Tomcat version 5.0 follows

Re: virtual directory

2007-04-11 Thread Johnny Kewl
I dont know... I think you have be spoilt by linux windows shortcuts just dont equal linux soft links... hey! :) I see what you saying even if say you made a little servlet that could suck files from anywhere, how does the calling program see shell folders, I suppose you could make

Re: nsapi_redirector.so

2007-04-11 Thread Rainer Jung
Hi Rajiv, the other downloads you found are for the apache web server. They will not work with the sun web server. I was able to use Sun Web Server 6.1 SP7 64 Bit Sparc on Solaris 10, with the binary library nsapi_redirector.so_sjsws61_sp7_64 I provided. There is (at least) one bug in the

RE: Tomcat 5.5.23 Question

2007-04-11 Thread James Reinertson
Did you mean JRE not JDK? It was my understanding that Tomcat 5.5 could be configured to use JRE 1.4 and that it had no need for an external JDK compiler. -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 10, 2007 8:01 PM To: Tomcat Users List

Re: OutOfMemory problem on Tomcat 5.5.20 and Java 1.5

2007-04-11 Thread Andreas Knecht
Hi Mark, Thanks for your input. Tomcat is started up via cargo with all its default options. This is how we've always run our functional tests. It appears that by adding new functionality (read: more JSPs, etc) we've simply reached a threshold now where we need to run the functional tests

Demonstration of Chroot when tomcat running in jail

2007-04-11 Thread Jasbinder Singh Bali
Hi, How can the Chroot be demostrated in a very simple way without actually hacking the tomcat. I just need to show that someone has taken control of tomcat and now he's in the directory (chroot jail) where tomcat is running but won't be able to access the actual root of the webserver. What would

Tomcat Datbase Connection Pooling

2007-04-11 Thread Venky Vasant
Are there any best practices papers on how effectively DBCP parameters to be configured to have a efficient pool management I am asking this because there are commonly occuring issues with this all over the internet Regards Venkat

Re: Tomcat Datbase Connection Pooling

2007-04-11 Thread Rashmi Rubdi
Did you check this document? http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html There are some very good suggestions under: Preventing dB connection pool leaks Common Problems Also see: http://jakarta.apache.org/commons/dbcp/configuration.html -Rashmi

RE: Demonstration of Chroot when tomcat running in jail

2007-04-11 Thread Tim Lucia
You could create a file, write to it, and observe where it appears. -Original Message- From: Jasbinder Singh Bali [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 11, 2007 6:50 PM To: users@tomcat.apache.org Subject: Demonstration of Chroot when tomcat running in jail Hi, How

Re: NullPointerException with Parameters.getParameterValues(String)

2007-04-11 Thread Rahul Thakur
Hi Chris, Rahul Thakur wrote: Looks like it was the 'username'. The username is being initialised in the taglib handler implementation but the behaviour differs between JRun and Tomcat. That should not be the case. The servlet spec is quite clear about the order of execution of the various

Re: Tomcat 5.5.23 Question

2007-04-11 Thread Mark Thomas
James Reinertson wrote: It was my understanding that Tomcat 5.5 could be configured to use JRE 1.4 and that it had no need for an external JDK compiler. This is correct. A 1.4 JRE works just as well as a 1.4 JDK. Mark - To

Re: Tomcat Datbase Connection Pooling

2007-04-11 Thread Martin Gainty
Venkatesh I assume you've seen this introduction to DBCP? http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations Martin-- This email message and any files transmitted with it contain confidential information intended

Re: Axis2 v1.1.1 with Tomcat 6.0.10?

2007-04-11 Thread Rashmi Rubdi
Clearly there's something wrong in /axis2-web/Error/error500.jsp and may be another JSP file as well. -Rashmi On 4/4/07, Rudolph, Troy [EMAIL PROTECTED] wrote: Apr 3, 2007 12:38:55 PM org.apache.catalina.core.ApplicationDispatcher SEVERE: Servlet.service() for servlet jsp threw exception

Singleton in Tomcat

2007-04-11 Thread Thomas Polliard
I have a singleton class that I want to load The code is like such: % Pam pam = Pam.getInstance(); % I get a ClassNotFoundException which is odd seeing as how the following code works fine % Pam pam = null; % The fact that it finds Pam in the second example makes me wonder if there is

Re: Demonstration of Chroot when tomcat running in jail

2007-04-11 Thread Jasbinder Singh Bali
I didn't get that. Can you please explain what are you trying to say here. Thanks On 4/11/07, Tim Lucia [EMAIL PROTECTED] wrote: You could create a file, write to it, and observe where it appears. -Original Message- From: Jasbinder Singh Bali [mailto:[EMAIL PROTECTED] Sent:

Re: Singleton in Tomcat

2007-04-11 Thread Rashmi Rubdi
There's no trick to getting it to load. There must be something wrong in the class, like incorrect package name or incorrect package directory structure etc. Try this small test, % Calendar calendar = Calendar.getInstance(); % %=calendar.getFirstDayOfWeek()% In the Pam class check if the

Re: Singleton in Tomcat

2007-04-11 Thread Thomas Polliard
Calendar example worked (with page import java.util.Calendar) :) This is the Pam.java class the class compiles to WEB-INF/classes/net/digitalassembly/auth/Pam.class package net.digitalassembly.auth; import java.util.ArrayList; import java.util.List; import java.util.Properties; import

Re: Singleton in Tomcat

2007-04-11 Thread Rashmi Rubdi
I tried a smaller version of your code since I don't have the dependent Classes as follows: \MyProject\WEB-INF\classes\net\digitalassembly\auth\Pam.class

Re: Singleton in Tomcat

2007-04-11 Thread Rashmi Rubdi
It looks like the problem is in this snippet of code: On 4/11/07, Thomas Polliard [EMAIL PROTECTED] wrote: Check if you placed pam.conf under /WEB-INF/classes/ --- I think that's where Properties files are loaded from. private String pamConfigFile = pam.conf; // Static file for all

Re: Demonstration of Chroot when tomcat running in jail

2007-04-11 Thread Jasbinder Singh Bali
To clarify it further, I need demonstrate someone entering the chroot jail where tomcat is running and then he can issue all his commands there but won't be able to see the actual root being in chroot jail On 4/11/07, Jasbinder Singh Bali [EMAIL PROTECTED] wrote: I didn't get that. Can you

Re: Demonstration of Chroot when tomcat running in jail

2007-04-11 Thread Lucas Galfaso
Just create a jsp page with a text input that whatever you submit there is executed at a shell and returns the result. On 4/11/07, Jasbinder Singh Bali [EMAIL PROTECTED] wrote: To clarify it further, I need demonstrate someone entering the chroot jail where tomcat is running and then he can

Re: Tomcat 6.0.x OpenEJB

2007-04-11 Thread Filip Hanik - Dev Lists
http://geronimo.apache.org they did it :) filip José Perdigão wrote: Hi, has anyone been able to integrate OpenEJB with Apache-Tomcat 6.0.x? Or is it just impossible to do it? - To start a new topic, e-mail:

RE: Tomcat 5.5.23 Question

2007-04-11 Thread James Reinertson
All right. So then I have two questions. 1. Is it possible to have two JRE versions (1.4.x and 1.6.x) installed on the system running Tomcat 5.5 and set Tomcat to use JRE 1.4? 2. Is it possible to set Tomcat 5.5 to use JDK 1.4 for compiling JSP instead of the Tomcat 5.5 built in compiler?

Re: Tomcat 5.5.23 Question

2007-04-11 Thread Hassan Schroeder
On 4/11/07, James Reinertson [EMAIL PROTECTED] wrote: All right. So then I have two questions. 1. Is it possible to have two JRE versions (1.4.x and 1.6.x) installed on the system running Tomcat 5.5 and set Tomcat to use JRE 1.4? Of course. $JAVA_HOME, $JRE_HOME - set them as you like. 2.