RE: Tomcat and Java6

2007-02-01 Thread Per Johnsson
I get this error in jakarta_service_20070201.log which don't give me much of a clue :-/ But it seams that java itself won't load ---8--- [2007-02-01 10:33:10] [173 javajni.c] [error] The specified module could not be found. [2007-02-01 10:33:10] [924 prunsrv.c] [error] Failed creating java

Context.INITIAL_CONTEXT_FACTORY

2007-02-01 Thread Fran Varin
Hi, We are in the process of trying to use Tomcat 5.5.20 to access an existing DB2 Database. Up until this point the application has been running under WebSphere (We are trying to utilize Tomcat for testing purposes). In WebSphere we can supply an IBM JNDI Factory Class named

Re: Context.INITIAL_CONTEXT_FACTORY

2007-02-01 Thread Pid
Fran Varin wrote: Hi, We are in the process of trying to use Tomcat 5.5.20 to access an existing DB2 Database. Up until this point the application has been running under WebSphere (We are trying to utilize Tomcat for testing purposes). In WebSphere we can supply an IBM JNDI Factory Class named

noClassDefFound error for class in [webapp]/WEB-INF/lib jar file

2007-02-01 Thread lunarfish
http://www.nabble.com/file/6149/stacktrace.txt stacktrace.txt Hello. I have installed geoserver 1.4.0 from the war file in my tomcat 5.5.20 installation. It unpacks the war fine. When you log on to the application through a browser it shows a compiling page which refreshes until it reaches 90

RE: Context.INITIAL_CONTEXT_FACTORY

2007-02-01 Thread Nelson, Tracy M.
| From: Fran Varin [mailto:[EMAIL PROTECTED] | Sent: Thursday, 01 February, 2007 08:05 | | It boils down to my attempt at using | org.apache.naming.java.javaURLContextFactory. However, when I do I | receive javax.naming.NameNotFoundException: Name jdbc is not bound | in this Context:. Are you

Question about using jk_mod with Linux

2007-02-01 Thread Pradeep Shekade
Hello, I have configured Apache 2.2 + Tomcat 5 for load balancing on Windows platform. I had downloaded jk_mod binary for Win32 (mod_jk-apache-2.2.3.so) from the site - http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/ I was looking for a similar binary for

Re: Context.INITIAL_CONTEXT_FACTORY

2007-02-01 Thread Fran Varin
I'v looked at that link a thousand times. Unfortunately, we are brand new to Tomcat and the documentation strikes us as a little obtuse. On the one hand it appears that you can modify the server.xml file (which we have done) and the the datasource and context will be defined globally. We tried

RE: Context.INITIAL_CONTEXT_FACTORY

2007-02-01 Thread Fran Varin
Well, let me see if I can paint an accurate picture...The application as it is currently running in WAS uses a properties file to externalize everything we need to connect to a datasource. The code itself will add the initial context class name to the properties file that is handed to

Re: Question about using jk_mod with Linux

2007-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pradeep, Pradeep Shekade wrote: I was looking for a similar binary for Linux. There are no files there in the Linux folder to download. On Linux, you are going to want to compile mod_jk yourself. The process is very quick and simple. Just download

Re: Context.INITIAL_CONTEXT_FACTORY

2007-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fran, Fran Varin wrote: On the one hand it appears that you can modify the server.xml file (which we have done) and the the datasource and context will be defined globally. We tried that...same error. Here is exactly what I have in my setup.

Re: Context.INITIAL_CONTEXT_FACTORY

2007-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fran, Fran Varin wrote: The code itself will add the initial context class name to the properties file that is handed to javax.naming.initialcontext at the time the context object is constructed. Can you post your code? I have never tried to

overrding requestURI with ServletRequestWrapper: what methods to override?

2007-02-01 Thread Nikita Tovstoles
Hi, I'm using a ServletRequestWrapper to override incoming requestURI from /A to /B. I noticed that I also have to override getRequestURL() method, which made me wonder what other methods must I override to trick the servlet into thinking that incoming request is indeed for /B? thanks

Re: Disable servlet runtime

2007-02-01 Thread Gael Marziou
Solution may depend on which criteria you use to determine whether you should enable or disable a feature. Without knowing more on your requirements, I would use a servlet controller and JAAS permissions granted per role or subject in order to enable/disable features. Gael

how to make a scheduled event on tomcat

2007-02-01 Thread Gaurav Kushwaha
I would like to have a method that will run every-so-often. Lets say once in 2 weeks. How do I do that in Tomcat ? Thanks, Gaurav Singh Kushwaha http://www.chakpak.com Ph: +91-9880101496 Bangalore, India.

Re: How do I increase performance on Tomcat?

2007-02-01 Thread Gaurav Kushwaha
Thanks everyone for the help. I found the problem. Few of my threads were not returning to the pool and hence most of the requests were being queued up. Gaurav Singh Kushwaha http://www.chakpak.com Ph: +91-9880101496 Bangalore, India. On 1/29/07, Leon Rosenberg [EMAIL PROTECTED] wrote: On

Re: noClassDefFound error for class in [webapp]/WEB-INF/lib jar file

2007-02-01 Thread Gaurav Kushwaha
Check your Tomcat's server lib ($TOMCAT_HOME/server/lib) to make sure you don't have any non-standard (not shipped with standard Tomcat) jars lying there. If thats the case those jars will be loaded by the tomcat's classloader and hence the jars and classes in web app won't be visible to them.

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

2007-02-01 Thread Brandon Knitter
Ugh! But that made it work! :) -- -bk -Original Message- From: Martin Skøtt [mailto:[EMAIL PROTECTED] Sent: Thursday, January 25, 2007 12:58 PM To: Tomcat Users List Subject: Re: 64-bit tomcat5.exe not working properly (TC 5.5.20) A reply for archives... The amd64 files in the SVN

Re: how to make a scheduled event on tomcat

2007-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gaurav, Gaurav Kushwaha wrote: I would like to have a method that will run every-so-often. Lets say once in 2 weeks. How do I do that in Tomcat? You're better off not using Tomcat for this kind of thing. That's what cron and other system software

Re: how to make a scheduled event on tomcat

2007-02-01 Thread Jacob Rhoden
Christopher Schultz wrote: Gaurav Kushwaha wrote: I would like to have a method that will run every-so-often. Lets say once in 2 weeks. How do I do that in Tomcat? You're better off not using Tomcat for this kind of thing. That's what cron and other system software packages are for.

Re: request.getServerPort() returns wrong port when using tcpmon

2007-02-01 Thread Alessandro Vernet
Alessandro Vernet wrote: When the request I send to Tomcat go through tcpmon, calls to httpServletRequest.getServerPort() in my code always return 80. This is incorrect, as Tomcat is listening in fact to port 8080. I don't have this problem when request don't do through tcpmon. I found

Re: Compiling mod-jk plugin for SunOne on Solaris

2007-02-01 Thread Kamalakar Vuggumudi
Thanks Rainer. I found libgcc_s.so in /usr/local/lib dir on my machine. Once I added that to LD_LIBRARY_PATH, __lshrdi3 error went away. Now I am getting symbol __umoddi3: referenced symbol not found error. When I do elfdump on libgcc_s.so, I see __umoddi3 symbol as being part of it. So I am

Re: Compiling mod-jk plugin for SunOne on Solaris

2007-02-01 Thread Fred K
Hi Kamal, Not sure if this makes a difference in this case. When I compiled apache I added a flag with: export LDFLAGS=-static-libgcc to statically link the libgcc. Rgds, Fred On 2/1/07, Kamalakar Vuggumudi [EMAIL PROTECTED] wrote: Thanks Rainer. I found libgcc_s.so in /usr/local/lib dir

Re: Question about using jk_mod with Linux

2007-02-01 Thread Catenare LLC
On 01 Feb 2007, at 9:06 AM, Pradeep Shekade wrote: Hello, I have configured Apache 2.2 + Tomcat 5 for load balancing on Windows platform. I had downloaded jk_mod binary for Win32 (mod_jk-apache-2.2.3.so) from the site - http://www.apache.org/dist/tomcat/tomcat-connectors/

Re: Compiling mod-jk plugin for SunOne on Solaris

2007-02-01 Thread Kamalakar Vuggumudi
Fred, I think your suggestion did the trick. Since there is no configure for the modjk for netscape, I have edited the Makefile and added -lgcc_s ad the linker option. Thanks for the pointer -Kamal - Original Message From: Fred K [EMAIL PROTECTED] To: Tomcat Users List

Re: Compiling mod-jk plugin for SunOne on Solaris

2007-02-01 Thread Kamalakar Vuggumudi
I have used -lgcc_s as the linker option and that seems to have done the trick. Thanks everybody for helping out. -Kamal - Original Message From: Rainer Jung [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, February 1, 2007 1:41:15 AM Subject: Re:

Re: how to make a scheduled event on tomcat

2007-02-01 Thread Bob Hall
--- Gaurav Kushwaha [EMAIL PROTECTED] wrote: I would like to have a method that will run every-so-often. Lets say once in 2 weeks. How do I do that in Tomcat ? Thanks, Gaurav Singh Kushwaha Gaurav, Take a look at quartz: Quartz is an open source, job scheduler for integration with

Re: how to make a scheduled event on tomcat

2007-02-01 Thread Mir Kasim Ali
I all ready Implemented QUARTZ 1.5.2 in my J2EE project so I f u need help on Quartz then I may help u On 2/2/07, Bob Hall [EMAIL PROTECTED] wrote: --- Gaurav Kushwaha [EMAIL PROTECTED] wrote: I would like to have a method that will run every-so-often. Lets say once in 2 weeks. How do I do