Tomcat mod_jk2
Hello I have a problem with my Tomcat and Apache2 with mod_jk2. I bacame error logs from the Tomcat: Can anywhere hepl me? Lennart Mordek [Thu Nov 04 11:38:54 CET 2004] Nov 4, 2004 11:38:54 AM org.apache.jk.common.ChannelSocket processConnection [Thu Nov 04 11:38:54 CET 2004] SEVERE: Error, closing connection [Thu Nov 04 11:38:54 CET 2004] java.net.SocketTimeoutException: Read timed out [Thu Nov 04 11:38:54 CET 2004] at java.net.SocketInputStream.socketRead0(Native Method) [Thu Nov 04 11:38:54 CET 2004] at java.net.SocketInputStream.read(SocketInputStream.java:129) [Thu Nov 04 11:38:54 CET 2004] at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) [Thu Nov 04 11:38:54 CET 2004] at java.io.BufferedInputStream.read1(BufferedInputStream.java:222) [Thu Nov 04 11:38:54 CET 2004] at java.io.BufferedInputStream.read(BufferedInputStream.java:277) [Thu Nov 04 11:38:54 CET 2004] at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:487) [Thu Nov 04 11:38:54 CET 2004] at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:425) [Thu Nov 04 11:38:54 CET 2004] at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:540) [Thu Nov 04 11:38:54 CET 2004] at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:654) [Thu Nov 04 11:38:54 CET 2004] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) [Thu Nov 04 11:38:54 CET 2004] at java.lang.Thread.run(Thread.java:536) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1 not starting, how do I track error (database pooling)
Hi having written an application that ran fine on Tomcat 5 I am having to regress it to run on Tomcat 4.1 running on Windows. part of the deployment involves setting up database pooling. First of all I deployed my application war only and started Tomcat using catalina start this worked ok, but I then needed to configure database pooling to get it fully working. In Tomcat 5.0 I had a config file /contextname.xml /under CATLINA_HOME/conf/catalina/localhost which worked fine, under Tomcat 4.0 I have added the contents to server.xml. I then ran catalina.bat start this starts another window but then disappears immediately before I am able to trap the problem, there is nothing in the log file to indicate the problem. Could anybody please help with any of the following ? 1. How do I stop the window started my Catalina from disappearing so I can see what the problem is. 2. In Tomcat 4.0 can I have a config file for my application rather than adding it to server.xml 3. I am using the mysqllConnectector 3.15 driver does this work with Tomcat 4.0. 4. Are pooling connections configured the same in 4 as 5 or not below I have listed the contents of my xml file from Tomcat 5. Context path=/kijil displayname=kijil debug=0 privileged=true Resource name=jdbc/kijil auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/kijil parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value100/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valuekijil/value /parameter parameter namepassword/name valueflyup/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost:3306/kijil?autoReconnect=true/value /parameter /ResourceParams /Context - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Address already in use:JVM_BIND:8080
When I try running Tomcat from the DOS prompt by typing 'tomcat start', I see the SEVERE Error message: Address already in use:JVM_BIND:8080. I know I am running IIS on port 80, but I want to keep the same port it runs on, and manually start Tomcat when I need it. Why can't I get it to work? Thank you very much in advance, Harry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Address already in use:JVM_BIND:8080
this means you are running other software on Tomcat's default port 8080. This may either be another tomcat? or some other process. Load a command prompt and type netstat -an this will show you if anything is listening on 8080. There is also a tool http://www.sysinternals.com/ntw2k/freeware/procexp.shtml that may help you find out what is listening on port 8080. it will not be IIS unless you have setup another site with 8080. If after all this you cannot find out what is binding 8080, edit server.xml in tomcat/conf and change 8080 to 9090. Allistair. -Original Message- From: Harry Douglass, Jr. [mailto:[EMAIL PROTECTED] Sent: 04 November 2004 12:42 To: 'Tomcat Users List' Subject: Address already in use:JVM_BIND:8080 When I try running Tomcat from the DOS prompt by typing 'tomcat start', I see the SEVERE Error message: Address already in use:JVM_BIND:8080. I know I am running IIS on port 80, but I want to keep the same port it runs on, and manually start Tomcat when I need it. Why can't I get it to work? Thank you very much in advance, Harry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Address already in use:JVM_BIND:8080
the address already in use error indicates that the port is already in use by another service (probably IIS from what you've said). you can't have two services on the same port. stop IIS and check that IIS does not still have hold of port 8080. use netstat -a at the dos prompt to check. -Original Message- From: Harry Douglass, Jr. [mailto:[EMAIL PROTECTED] Sent: Thursday 04 November 2004 02:04 To: [EMAIL PROTECTED] Subject: Address already in use:JVM_BIND:8080 Hello, I am trying to install Apache Tomcat to run JSP and servlets for the first time. When I type in this URL 'http://localhost:8080/' Windows XP prompts me for a username and password. I typed in both the username 'admin' and blank password and a custom username and password when I installed it and I get an Unauthorized web page returned. When I try running Tomcat from the DOS prompt by typing 'tomcat start', I see the SEVERE Error message: Address already in use:JVM_BIND:8080. I know I am running IIS, but I want to keep the same port it runs on, and manually start Tomcat when I need it. Why can't I get it to work? Thank you very much in advance, Harry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Huge tomcat memory footprint
Hi, If there is a memory leak in our application, tomcat or java, what are the symptoms I should look for. Will the heap usage (shown by visual GC, optimizeit etc) keep growing and eventually reach the max limit set using -Xmx option to java? Yes, the heap will keep growing and eventually reach the max, at which point you will get OutOfMemoryErrors and hung/unstable behavior. However, if your leak is small, it might take a very long time before this situation is reached. Run your app inside a profiler, conduct some operations typical to your app, and then look at the heap. Most profilers now have features that show you object reference trees, i.e. what objects are holding onto what references. If you see stuff still in memory that you think shouldn't be there, fix it. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1 not starting, how do I track error (database pooling)
Hi, 1. How do I stop the window started my Catalina from disappearing so I can see what the problem is. Use catalina.bat run instead of startup.bat (which calls catalina.bat start). 2. In Tomcat 4.0 can I have a config file for my application rather than adding it to server.xml No. 3. I am using the mysqllConnectector 3.15 driver does this work with Tomcat 4.0. Yes. 4. Are pooling connections configured the same in 4 as 5 or not below I have listed the contents of my xml file from Tomcat 5. Mostly the same, but some attribute names are different. Context path=/kijil displayname=kijil debug=0 privileged=true Why is your context privileged? parameter nameusername/name valuekijil/value /parameter Try changing name to user instead of username -- I believe this was a change made in DBCP. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can I configure a webapp that is stored on something other than filestore?
I'm working on a virtual learning environment. It's essentially one huge webapp. We don't want to manage files on the physical filestore; instead, we want to use our own virtual filestore, for reasons too zany to go into. Is there a way of setting eg. an appBase or a docBase so that it points, not to filestore, but to a URI? If so, we can add an appropriate handler to the URIs so that we manage vfs:... and everything Just Works. Failing that, is there another appropriate mechanism for intercepting filestore access from Tomcat and redirecting it to our own code? A bit of an open question, I know. The Tomcat 4 documentation appears to indicate that a Host's appBase is a URL but, on trying it with 5.0.28, file: URLs are not recognised, let alone anything more outlandish. All help gratefully received! - Peter -- Peter Crowther, Director, Melandra Limited John Dalton House, 121 Deansgate, Manchester M3 2AB t: +44 (0)161 828 8736 f: +44 (0)161 832 5683 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Address already in use:JVM_BIND:8080
Harry Douglass, Jr. wrote: Hello, I am trying to install Apache Tomcat to run JSP and servlets for the first time. When I type in this URL 'http://localhost:8080/' Windows XP prompts me for a username and password. I typed in both the username 'admin' and blank password and a custom username and password when I installed it and I get an Unauthorized web page returned. When I try running Tomcat from the DOS prompt by typing 'tomcat start', I see the SEVERE Error message: Address already in use:JVM_BIND:8080. I know I am running IIS, but I want to keep the same port it runs on, and manually start Tomcat when I need it. Harry There is some other service that is binding to 8080. You can either identify and stop this service(netstat -a might help).. are change the port of the Tomcat that you are using. port can be changed in server.xml in the conf folder. server.xml will have configuration similar to the folloing.. the port in the below configuration can be changed to some unused port. Service name=Tomcat-Standalone Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / .. .. .. .. / Ravi. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 not starting, how do I track error (database pooling)
Thanks very much all working, the problem was I had removed docbase paramter not hinking it was needed because the code was hosted directly under webapps. BTW username is correct in TC4. My context is privileged just because I copied it from somehwere else without knowing what it meant, no good reason. Shapira, Yoav wrote: Hi, 1. How do I stop the window started my Catalina from disappearing so I can see what the problem is. Use catalina.bat run instead of startup.bat (which calls catalina.bat start). 2. In Tomcat 4.0 can I have a config file for my application rather than adding it to server.xml No. 3. I am using the mysqllConnectector 3.15 driver does this work with Tomcat 4.0. Yes. 4. Are pooling connections configured the same in 4 as 5 or not below I have listed the contents of my xml file from Tomcat 5. Mostly the same, but some attribute names are different. Context path=/kijil displayname=kijil debug=0 privileged=true Why is your context privileged? parameter nameusername/name valuekijil/value /parameter Try changing name to user instead of username -- I believe this was a change made in DBCP. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I configure a webapp that is stored on something other than filestore?
I believe that if your servlet is /mywebapp/myServlet and your user accesses /mywebapp/myServlet/iwant/this/file, the iwant/this/file part is available as the request parameter getPathInfo() and you can do what you like with that - access a database, access any filesystem to which you have access, redirect to another URI, etc. So all you need to do is write a simple servlet that maps their request to whatever resource you want to map it to. This could include a simple redirect to another URI. Never used this myself but have noticed it in the docs. -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: Thursday 04 November 2004 13:11 To: [EMAIL PROTECTED] Subject: Can I configure a webapp that is stored on something other than filestore? I'm working on a virtual learning environment. It's essentially one huge webapp. We don't want to manage files on the physical filestore; instead, we want to use our own virtual filestore, for reasons too zany to go into. Is there a way of setting eg. an appBase or a docBase so that it points, not to filestore, but to a URI? If so, we can add an appropriate handler to the URIs so that we manage vfs:... and everything Just Works. Failing that, is there another appropriate mechanism for intercepting filestore access from Tomcat and redirecting it to our own code? A bit of an open question, I know. The Tomcat 4 documentation appears to indicate that a Host's appBase is a URL but, on trying it with 5.0.28, file: URLs are not recognised, let alone anything more outlandish. All help gratefully received! - Peter -- Peter Crowther, Director, Melandra Limited John Dalton House, 121 Deansgate, Manchester M3 2AB t: +44 (0)161 828 8736 f: +44 (0)161 832 5683 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jk2 connector issue
Hi, this did not have any takers the first time so I am trying to see if I will get a response this time I keep getting the following messages popping up in the win2k applications log with event id 2 - Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 12 - Error: [jk_workerEnv.c (492)]: workerEnv.processCallbacks() Error reading reply - Error: [jk_channel_apr_socket.c (488)]: channelApr.receive(): Error receiving message body -1 0 does anybody know the reason and how I can avoid these events occurring? thank you Warren *** Disclaimer This email (and any attachment(s)) is private and intended solely for the use of the individual or entity to whom they are addressed. Its unauthorised use, disclosure, storage or copying is not permitted. If you are not the intended recipient please destroy all copies and inform the sender by return e-mail. Internet e-mail is not a secure medium, as messages can be intercepted and read by someone else. Please bear this in mind when deciding whether to send information by e-mail. Postal addresses for the Legal Services Commission are available from http://www.legalservices.gov.uk/about_us/offices.htm The Legal Services Commission reserves the right to monitor, record and retain any incoming and outgoing emails for security reasons and for monitoring internal compliance with the Legal Services Commission policy on staff use. Email monitoring and/or blocking software may be used and email content may be read. You have a responsibility to ensure laws are not broken when writing or forwarding emails and their contents. No contracts can be entered into on our behalf by email. Any views or opinions expressed are solely those of the author and do not necessarily represent those of the Legal Services Commission. The Legal Services Commission checks all mails and attachments for known viruses; however, you are advised that you open any attachments at your own risk. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I configure a webapp that is stored on something other than filestore?
From: Steve Kirk [mailto:[EMAIL PROTECTED] I believe that if your servlet is /mywebapp/myServlet and your user accesses /mywebapp/myServlet/iwant/this/file, the iwant/this/file part is available as the request parameter getPathInfo() and you can do what you like with that - access a database, access any filesystem to which you have access, redirect to another URI, etc. I can well believe this, yes. Problem is that I *think* I want it to happen at a lower level than this - I want to fool Jasper and, in fact, the rest of Tomcat into compiling and executing a JSP that has been accessed via our virtual filesystem. That JSP may, in turn, access further files within its webapp that we want to be accessed via the same virtual filesystem. To make life even more interesting, we want to be able to drop JSPs etc from unmodified webapp into this environment and have them Just Work. So all you need to do is write a simple servlet that maps their request to whatever resource you want to map it to. Just to get this straight... can I write a servlet that dynamically takes a request and re-maps the target? I'd expected to be able to do that with a valve, but hadn't expected to do so with a servlet. A pointer to the appropriate docs would be much appreciated! Thanks for the response! - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk error flushing ...
Hi everybody, I have installed tomcat 4.1.24, apache 2.0.47, jdk 1.4.2 and mod_jk2-2.0.43 in a Sun Solaris 8 machine. Everything have worked more or less ok since today that the system crashed !!!. I got the following error messages in the apache error_log file: [Thu Nov 04 08:32:56 2004] [error] mod_jk child init 1 -2 [Thu Nov 04 08:34:00 2004] [error] jk2_init() Can't find child 1407 in scoreboard [Thu Nov 04 08:34:00 2004] [error] mod_jk child init 1 -2 [Thu Nov 04 08:34:39 2004] [error] jk2_init() Can't find child 1414 in scoreboard [Thu Nov 04 08:34:39 2004] [error] mod_jk child init 1 -2 [Thu Nov 04 08:34:39 2004] [error] jk2_init() Can't find child 1416 in scoreboard [Thu Nov 04 08:34:39 2004] [error] mod_jk child init 1 -2 mod_jk: Error flushing [Thu Nov 04 08:35:51 2004] [error] Error ajp_process_callback - write failed [Thu Nov 04 08:35:51 2004] [error] ajp13.service() ajpGetReply recoverable error 3 [Thu Nov 04 08:35:51 2004] [error] Error ajp_process_callback - write failed [Thu Nov 04 08:35:51 2004] [error] ajp13.service() ajpGetReply recoverable error 3 [Thu Nov 04 08:35:51 2004] [error] ajp13.service() Error forwarding ajp13:localhost:8009 1 0 [Thu Nov 04 08:47:31 2004] [error] mod_jk.handler() Error connecting to tomcat 3 do you have any idea about why these errors are appearing ? I would appreciate your help, Clara - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I configure a webapp that is stored on something other than filestore?
Hi, Just to get this straight... can I write a servlet that dynamically takes a request and re-maps the target? I'd expected to be able to do that with a valve, but hadn't expected to do so with a servlet. A pointer to the appropriate docs would be much appreciated! Steve probably had a Filter in mind, not a regular Servlet. While higher in portability (but further down the execution pipeline) than a Servlet, a Filter can be used to redirect requests and responses as needed. A Valve is very similar to a Filter conceptually, but is Tomcat-specific. In fact Valves were around before Filters, and are now for the most part not strictly necessary. However, I think your requirements cannot be met by the current Tomcat codebase without substantial modifications. You'd need *at least* a custom Host (to not use the work directory filestore), a custom Jasper (for the same purpose), a custom ApplicationDispatcher, a custom Context, and possibly other components. As you said in your original post, zany ;) Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 - problem with servlets
Nevermind I figured it out. Just needed to add this in the Host in conf/server.xml: Context path= docBase= debug=1/ Doesn't make a lot of sense but it did the trick. John Hello Im running tomcat5 with mod_jk2, apache 2 and RH FC01 Im having trouble getting servlets to work under mod_jk2 and shared instance for virtual hosting. It works fine with preview link context for the site: http://ip:8080/domain.com/serlvet/helloworld but with domain.com/servlet/helloworld does not work. I uploaded the root contents for servlets-examples to the root of the site (html folder which is also doc base). The WEB-INF in the dir is from the servlets-examples. So when you go to domain.com the index.html from the examples loads. But links to serlvet/servletname doesnt work. Settings: Tomcats entry for virtual host in server.xml: Host name=domain1.com debug=0 appBase=/home/username/domain1.com/html unpackWARs=true autoDeploy=true Aliaswww.domain1.com/Alias Valve className=org.apache.catalina.valves.AccessLogValve directory=/home/username/domain1.com/logs prefix=tomcat5_log. suffix=.txt pattern=common resolveHosts=false/ /Host Workers2.properties entry (JSPs work and html is routed to apache) # DOMAIN1.COM [uri:domain1.com:80/*.jsp] group=TC5 [uri:www.domain1.com:80/*.jsp] group=TC5 [uri:domain1.com:80/servlet/*] group=TC5 [uri:www.domain1.com:80/servlet/*] group=TC5 The http.conf file has document root as /home/username/domain1.com/html and the locations for WEB-INF are included for security. Any Ideas what I might be missing?? (remember it works when accessing via port.) Thanks! John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk error flushing ...
I kept these messages too although I only installed Tomcat 5. It happened in Tomcat 4.1 as well. -Original Message- From: Clara Ines Pena de Carrillo [mailto:[EMAIL PROTECTED] Sent: November 4, 2004 9:21 AM To: Tomcat Users List Subject: mod_jk error flushing ... Hi everybody, I have installed tomcat 4.1.24, apache 2.0.47, jdk 1.4.2 and mod_jk2-2.0.43 in a Sun Solaris 8 machine. Everything have worked more or less ok since today that the system crashed !!!. I got the following error messages in the apache error_log file: [Thu Nov 04 08:32:56 2004] [error] mod_jk child init 1 -2 [Thu Nov 04 08:34:00 2004] [error] jk2_init() Can't find child 1407 in scoreboard [Thu Nov 04 08:34:00 2004] [error] mod_jk child init 1 -2 [Thu Nov 04 08:34:39 2004] [error] jk2_init() Can't find child 1414 in scoreboard [Thu Nov 04 08:34:39 2004] [error] mod_jk child init 1 -2 [Thu Nov 04 08:34:39 2004] [error] jk2_init() Can't find child 1416 in scoreboard [Thu Nov 04 08:34:39 2004] [error] mod_jk child init 1 -2 mod_jk: Error flushing [Thu Nov 04 08:35:51 2004] [error] Error ajp_process_callback - write failed [Thu Nov 04 08:35:51 2004] [error] ajp13.service() ajpGetReply recoverable error 3 [Thu Nov 04 08:35:51 2004] [error] Error ajp_process_callback - write failed [Thu Nov 04 08:35:51 2004] [error] ajp13.service() ajpGetReply recoverable error 3 [Thu Nov 04 08:35:51 2004] [error] ajp13.service() Error forwarding ajp13:localhost:8009 1 0 [Thu Nov 04 08:47:31 2004] [error] mod_jk.handler() Error connecting to tomcat 3 do you have any idea about why these errors are appearing ? I would appreciate your help, Clara - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:418a3b7147583305085000!
RE: mod_jk error flushing ...
On Thu, 4 Nov 2004, Phillip Qin wrote: I kept these messages too although I only installed Tomcat 5. It happened in Tomcat 4.1 as well. ok, thank you. I will try to change my tomcat version. Clara -Original Message- From: Clara Ines Pena de Carrillo [mailto:[EMAIL PROTECTED] Sent: November 4, 2004 9:21 AM To: Tomcat Users List Subject: mod_jk error flushing ... Hi everybody, I have installed tomcat 4.1.24, apache 2.0.47, jdk 1.4.2 and mod_jk2-2.0.43 in a Sun Solaris 8 machine. Everything have worked more or less ok since today that the system crashed !!!. I got the following error messages in the apache error_log file: [Thu Nov 04 08:32:56 2004] [error] mod_jk child init 1 -2 [Thu Nov 04 08:34:00 2004] [error] jk2_init() Can't find child 1407 in scoreboard [Thu Nov 04 08:34:00 2004] [error] mod_jk child init 1 -2 [Thu Nov 04 08:34:39 2004] [error] jk2_init() Can't find child 1414 in scoreboard [Thu Nov 04 08:34:39 2004] [error] mod_jk child init 1 -2 [Thu Nov 04 08:34:39 2004] [error] jk2_init() Can't find child 1416 in scoreboard [Thu Nov 04 08:34:39 2004] [error] mod_jk child init 1 -2 mod_jk: Error flushing [Thu Nov 04 08:35:51 2004] [error] Error ajp_process_callback - write failed [Thu Nov 04 08:35:51 2004] [error] ajp13.service() ajpGetReply recoverable error 3 [Thu Nov 04 08:35:51 2004] [error] Error ajp_process_callback - write failed [Thu Nov 04 08:35:51 2004] [error] ajp13.service() ajpGetReply recoverable error 3 [Thu Nov 04 08:35:51 2004] [error] ajp13.service() Error forwarding ajp13:localhost:8009 1 0 [Thu Nov 04 08:47:31 2004] [error] mod_jk.handler() Error connecting to tomcat 3 do you have any idea about why these errors are appearing ? I would appreciate your help, Clara - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:418a3b7147583305085000! -- Clara Ines Pe¤a de Carrillo Divisi¢n de Servicios de Informaci¢n Universidad Industrial de Santander Bucaramanga, Colombia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sessionS info persistence when restart Tomcat
Hi, Is it possible to save sessions info, so when Tomcat restarts all previously active sessions will be loaded. I'm trying to prevent user's re-login when Tomcat goes down for short period (5-15 minutes) of time. Thanks, Mark __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk error flushing ...
Sorry, typo. I mean I got these messages too since I started using Tomcat 4.1 and now Tomcat 5. -Original Message- From: Clara Ines Pena de Carrillo [mailto:[EMAIL PROTECTED] Sent: November 4, 2004 9:59 AM To: Tomcat Users List Subject: RE: mod_jk error flushing ... On Thu, 4 Nov 2004, Phillip Qin wrote: I kept these messages too although I only installed Tomcat 5. It happened in Tomcat 4.1 as well. ok, thank you. I will try to change my tomcat version. Clara -Original Message- From: Clara Ines Pena de Carrillo [mailto:[EMAIL PROTECTED] Sent: November 4, 2004 9:21 AM To: Tomcat Users List Subject: mod_jk error flushing ... Hi everybody, I have installed tomcat 4.1.24, apache 2.0.47, jdk 1.4.2 and mod_jk2-2.0.43 in a Sun Solaris 8 machine. Everything have worked more or less ok since today that the system crashed !!!. I got the following error messages in the apache error_log file: [Thu Nov 04 08:32:56 2004] [error] mod_jk child init 1 -2 [Thu Nov 04 08:34:00 2004] [error] jk2_init() Can't find child 1407 in scoreboard [Thu Nov 04 08:34:00 2004] [error] mod_jk child init 1 -2 [Thu Nov 04 08:34:39 2004] [error] jk2_init() Can't find child 1414 in scoreboard [Thu Nov 04 08:34:39 2004] [error] mod_jk child init 1 -2 [Thu Nov 04 08:34:39 2004] [error] jk2_init() Can't find child 1416 in scoreboard [Thu Nov 04 08:34:39 2004] [error] mod_jk child init 1 -2 mod_jk: Error flushing [Thu Nov 04 08:35:51 2004] [error] Error ajp_process_callback - write failed [Thu Nov 04 08:35:51 2004] [error] ajp13.service() ajpGetReply recoverable error 3 [Thu Nov 04 08:35:51 2004] [error] Error ajp_process_callback - write failed [Thu Nov 04 08:35:51 2004] [error] ajp13.service() ajpGetReply recoverable error 3 [Thu Nov 04 08:35:51 2004] [error] ajp13.service() Error forwarding ajp13:localhost:8009 1 0 [Thu Nov 04 08:47:31 2004] [error] mod_jk.handler() Error connecting to tomcat 3 do you have any idea about why these errors are appearing ? I would appreciate your help, Clara - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Clara Ines Pe¤a de Carrillo Divisi¢n de Servicios de Informaci¢n Universidad Industrial de Santander Bucaramanga, Colombia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:418a443a49555369657494!
RE: sessionS info persistence when restart Tomcat
Hi, Tomcat persists and reloads sessions on restart by default. And the default session timeout is 30 minutes. So you shouldn't have to do anything. Check out the Manager configuration reference (not the Manager webapp) for more details and settings you can modify in this area. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 10:04 AM To: [EMAIL PROTECTED] Subject: sessionS info persistence when restart Tomcat Hi, Is it possible to save sessions info, so when Tomcat restarts all previously active sessions will be loaded. I'm trying to prevent user's re-login when Tomcat goes down for short period (5-15 minutes) of time. Thanks, Mark __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I configure a webapp that is stored on something other than filestore?
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Steve probably had a Filter in mind, not a regular Servlet. While higher in portability (but further down the execution pipeline) than a Servlet, a Filter can be used to redirect requests and responses as needed. A Valve is very similar to a Filter conceptually, but is Tomcat-specific. In fact Valves were around before Filters, and are now for the most part not strictly necessary. Thanks for that piece of information - we'll look at using filters rather than valves. However, I think your requirements cannot be met by the current Tomcat codebase without substantial modifications. You'd need *at least* a custom Host (to not use the work directory filestore), a custom Jasper (for the same purpose), a custom ApplicationDispatcher, a custom Context, and possibly other components. As you said in your original post, zany ;) Indeed. OK, I'll work on other ways to do this. Thanks for the help. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DBCP Pooling loggin
Hi, Under tomcat 5.0, what is the best way to configure logging for commons-DBCP? Can this be done using log4j? Cheers, Nick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DBCP Pooling loggin
Hi, Under tomcat 5.0, what is the best way to configure logging for commons-DBCP? Can this be done using log4j? You have to do it programmatically, using BasicDataSource#setLogWriter. This is the only logging supported by DBCP right now. It's tricky to mix it with other logging such as that done by Tomcat. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: DBCP Pooling loggin
Thanks Yoav. -Ursprungliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 4. November 2004 16:39 An: Tomcat Users List Betreff: RE: DBCP Pooling loggin Hi, Under tomcat 5.0, what is the best way to configure logging for commons-DBCP? Can this be done using log4j? You have to do it programmatically, using BasicDataSource#setLogWriter. This is the only logging supported by DBCP right now. It's tricky to mix it with other logging such as that done by Tomcat. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: sessionS info persistence when restart Tomcat
I had always thought all sessions were lost when the server restarts. In fact I just tried it and confirmed that (5.0.28). Are we maybe talking about 2 different things? I have nonstandard config (a very sparse server.xml, no explicit Manager configured in server/web/context xml), and I do not use TC authentication/realms, I just use request.getSession(true) and rely on cookies to track users. After a restart, the webapp has lost track of users that were tracked right up to the restart. Is this the manager config ref you were talking about? http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html I just read through it. If I've understood correctly, because my Manager is not explicitly configured, I have a default session manager implicitly. I stopped the server and looked for the serialised session file under /work but just found the usual .java and .class files and one file called tldCache.ser, no sessions.ser or anything that looks like a serialised session file. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday 04 November 2004 15:07 To: Tomcat Users List Subject: RE: sessionS info persistence when restart Tomcat Hi, Tomcat persists and reloads sessions on restart by default. And the default session timeout is 30 minutes. So you shouldn't have to do anything. Check out the Manager configuration reference (not the Manager webapp) for more details and settings you can modify in this area. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 10:04 AM To: [EMAIL PROTECTED] Subject: sessionS info persistence when restart Tomcat Hi, Is it possible to save sessions info, so when Tomcat restarts all previously active sessions will be loaded. I'm trying to prevent user's re-login when Tomcat goes down for short period (5-15 minutes) of time. Thanks, Mark __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat fails - Can't read body, waited #0 Seems size related (SOLVED)
Whatever it was, it doesn't do it in 4.1.31. Regards Roger -Original Message- From: Varley, Roger Sent: 29 October 2004 11:32 To: [EMAIL PROTECTED] Subject: Tomcat fails - Can't read body, waited #0 Seems size related I have a servlet that recieves data from a client. All the servlet is doing is reading from the InputStream of the HttpServletResponse (BufferedReader br = new BufferedReader( new InputStreamReader(request.getInputStream()));) and writing the data to a disk file. Periodically Tomcat refuses to read the data and dumps with an IOException (attached below). I've googled for the error message but all I can find is references to CVS versions of the AJP13 code - which puts me out of my depth. I can't find any reference to the error message in the list archives. The odd thing is this seems to be related to the size of the data stream. The data is actually an Order Confirmation and when the order contains five lines at 7745 bytes everything works OK. When the order contains 6 lines (or more) at 8862 bytes then I get the dump. It's not related to the data content - I've tested this by using known good data. I'm using Tomcat 4.1.7-LE-jdk14 - upgrading is an option, but not one I will be able to undertake lightly. Regards Roger 29-Oct-2004 11:14:15 org.apache.jk.common.ChannelSocket receive WARNING: can't read body, waited #0 java.io.IOException at org.apache.jk.common.JkInputStream.receive(JkInputStream.java:304) at org.apache.jk.common.JkInputStream.refillReadBuffer(JkInputStream.jav a:372) at org.apache.jk.common.JkInputStream.doRead(JkInputStream.java:284) at org.apache.jk.server.JkCoyoteHandler.doRead(JkCoyoteHandler.java:223) at org.apache.coyote.Request.doRead(Request.java:431) at org.apache.coyote.tomcat4.CoyoteInputStream.readBytes(CoyoteInputStre am.java:195) at org.apache.coyote.tomcat4.CoyoteInputStream.read(CoyoteInputStream.ja va:152) at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:406) at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:446) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:180) at java.io.InputStreamReader.read(InputStreamReader.java:167) at java.io.BufferedReader.fill(BufferedReader.java:136) at java.io.BufferedReader.readLine(BufferedReader.java:299) at java.io.BufferedReader.readLine(BufferedReader.java:362) at PlayReceiveXMLAsPost.processRequest(PlayReceiveXMLAsPost.java:57) at PlayReceiveXMLAsPost.doPost(PlayReceiveXMLAsPost.java:123) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2350) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche rValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
RE: sessionS info persistence when restart Tomcat
Hi, I had always thought all sessions were lost when the server restarts. In fact I just tried it and confirmed that (5.0.28). Are we maybe talking about 2 different things? I think we're talking about the same thing. Sessions are supposed to be persisted by default. I have nonstandard config (a very sparse server.xml, no explicit Manager You need a Manager. When I said by default I mean out of the box, i.e. with the default server.xml, which has such a Manager IIRC. Is this the manager config ref you were talking about? http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html Yeah. I just read through it. If I've understood correctly, because my Manager is not explicitly configured, There's a difference between not explicitly configured and not declared at all. One way to test this is with an HttpSessionListener/HttpSessionActivationListener (one listener can implement both interfaces and thereby capture all four relevant events). It's trivial to write one that just prints out information when sessions are created, destroyed, passivated, and activated. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multiple connectors issues
Hi All, 1. Can you tell me what impact on performance has using many connectors? I need to run additional two connectors (for http and https) to allow some request to be understood as proxied, and others as direct. See the code below. 2. Do request to different connectors share the same session scope? 3. Are classes loaded once for all connectors, or does each connector load its own copy of the classes? In other words, if I have a static member in a class and use 4 connectors, how many copies of this static member will be created? One, or four? I would be very grateful if somebody could clarify this. Thanks in advance, Michal. -- Connector port=20003 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=30003 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true proxyName=lxb0754 proxyPort=80/ Connector port=40003 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=50003 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true/ Connector port=30003 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS proxyName=lxb0754 proxyPort=443/ Connector port=50003 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multiple connectors issues
Hi, 1. Can you tell me what impact on performance has using many connectors? It's largely dwarfed by your app's performance characteristics, unless you're talking about dozens or more connectors. For three or four, it's no big deal. 2. Do request to different connectors share the same session scope? Isn't this so simple to test that it's faster than asking the list? ;) 3. Are classes loaded once for all connectors, or does each connector load its own copy of the classes? No, connectors don't have much to do with classloading at all. How many copies of a given class are loaded into the JVM depends on where the class is located. If you have just one webapp, and the class is in WEB-INF/lib, it will be loaded just once no matter how many connectors you have. Yoav Shapira http://www.yoavshapira.com This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
INFO: connection Timeout reached
Hi I've just upgraded to 4.1.31 and I'm getting org.apache.jk.common.ChannelSocket processConnection INFO: connection Timeout received messages at the console every second or so. Everything seems to be working OK so do I need to do anything about these messages? If this is normal behaviour, is there anyway I can stop Tomcat from logging these messages as it makes it impossible to see any other messages since they scroll off the console too quickly? Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
two domains, one site
If I have two domains pointing to the same webapp (long story on why two domains). Do I need to have two Hosts defined inside the container Engine ... Host name=localhost ... or Host name=www.domain.com ... Host name=www.domain.us ... _ Don't just Search. Find! http://search.sympatico.msn.ca/default.aspx The new MSN Search! Check it out! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Huge tomcat memory footprint
Hi, Thanks again for your suggestions. I still don't have a good handle on the problem. So please bear with me If I am asking the same questions again. 1. What I have noticed so far is the heap is not growing too much, but the process foot print is growing. I used optimizeit memory profiler to compare snapshots of the heap. I don't see any obvious memory leaks. I need to take a closer look. When I checked this morning, the heap size allocated was 80MB and heap used was 57MB (reported by optimizeit). But the memory sizes reported by solairs pmap command is Size RSSShared Private 1173.45 MB608.125 MB 15.125 MB 593 MB I understand that the process footprint includes other data and would grow as JVM itself grows. But is it normal that it grows to 1173 MB in a matter of few hours. Ofcourse, optimizeit itself has overheads and adds to the process size. But I have seen it grow to 2.5 GB in two days without optimizeit when I was doing some stress tests. I read in one of the solaris virtual memory architecture design paper, that virtual address space of a process on solaris is 4GB. What will happen when the JVM process size reaches 4GB? I guess my confusion is due to the lack of my understanding on how java manages memory and how it relates to the OS-level memory management. Are there any documents or white papers that discuss this kind of issues? 2. I see that GC is running, reclaiming memory periodically. But I noticed that after a while GC is running more frequently and each run takes a substantial amount of time (in one instance GC took about 14 secs). This may affect the throughput, but will it have any impact on the memory? 3. I read somewhere that if you use reflection, the reflective data structures (whatever that means) also contribute to the memory footprint. It sounded as though these are not part of the heap. So if we are creating instances of Method, Constructor, etc, are they not allocated in the heap? We are using reflection heavily. Thanks Anand -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 4:55 AM To: Tomcat Users List Subject: RE: Huge tomcat memory footprint Hi, If there is a memory leak in our application, tomcat or java, what are the symptoms I should look for. Will the heap usage (shown by visual GC, optimizeit etc) keep growing and eventually reach the max limit set using -Xmx option to java? Yes, the heap will keep growing and eventually reach the max, at which point you will get OutOfMemoryErrors and hung/unstable behavior. However, if your leak is small, it might take a very long time before this situation is reached. Run your app inside a profiler, conduct some operations typical to your app, and then look at the heap. Most profilers now have features that show you object reference trees, i.e. what objects are holding onto what references. If you see stuff still in memory that you think shouldn't be there, fix it. Yoav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multiple connectors issues
Yoav, 2. Do request to different connectors share the same session scope? Isn't this so simple to test that it's faster than asking the list? ;) You're right. I'm getting lazy... So here's the result of my check: multiple connectors share session data. In fact, what counts is the request host address (and not the request port), so multiple connectors share session data as long as requests had the same host address. Thanks for your help and good luck with the school ;-) Micha. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Huge tomcat memory footprint
Hi, 80MB and heap used was 57MB (reported by optimizeit). But the memory sizes reported by solairs pmap command is Size RSSShared Private 1173.45 MB608.125 MB 15.125 MB 593 MB There's a mismatch here. There's no way the OS-level overhead is hundreds of MBs for an 80-MB heap. Are you sure the pmap command doesn't multiply by the number of threads or something like that (similar to what the Linux top command does)? of few hours. Ofcourse, optimizeit itself has overheads and adds to the A profiler typically adds an order of magnitude overhead. So for an 80MB heap on the app normally, an 800MB heap with a profiler is within the bounds of reason. But that'd be within the heap and the JVM. process on solaris is 4GB. What will happen when the JVM process size reaches 4GB? Changes are it'll crash. 2. I see that GC is running, reclaiming memory periodically. But I noticed that after a while GC is running more frequently and each run takes a substantial amount of time (in one instance GC took about 14 secs). This may affect the throughput, but will it have any impact on the memory? If GC can't free up memory, then not only will your throughput suffer but it'll be for naught. This is a classic memory leak scenario. 3. I read somewhere that if you use reflection, the reflective data structures (whatever that means) also contribute to the memory footprint. It sounded as though these are not part of the heap. So if we are creating instances of Method, Constructor, etc, are they not allocated in the heap? We are using reflection heavily. Where's somewhere ? ;) That's mostly old information. The JVM is very efficient at handling reflection and properly storing Method references. As you said, you need to look at the profiler more carefully. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multiple connectors issues
Hi, 2. Do request to different connectors share the same session scope? Isn't this so simple to test that it's faster than asking the list? ;) You're right. I'm getting lazy... So here's the result of my check: multiple connectors share session data. In fact, what counts is the request host address (and not the request port), so multiple connectors share session data as long as requests had the same host address. Good ;) Of course the webapp itself also counts for the session, not just the host. http://x/y will have different sessions than http://x/z by default. Thanks for your help and good luck with the school ;-) Thanks ;) Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Huge tomcat memory footprint
Hi, 80MB and heap used was 57MB (reported by optimizeit). But the memory sizes reported by solairs pmap command is Size RSSShared Private 1173.45 MB608.125 MB 15.125 MB 593 MB There's a mismatch here. There's no way the OS-level overhead is hundreds of MBs for an 80-MB heap. Are you sure the pmap command doesn't multiply by the number of threads or something like that (similar to what the Linux top command does)? I am not sure how pmap works. But the numbers are consitent with what top command reports. 3. I read somewhere that if you use reflection, the reflective data structures (whatever that means) also contribute to the memory footprint. It sounded as though these are not part of the heap. So if we are creating instances of Method, Constructor, etc, are they not allocated in the heap? We are using reflection heavily. Where's somewhere ? ;) That's mostly old information. The JVM is very efficient at handling reflection and properly storing Method references. I think I read about this in the Java performance tuning book from Sun press or O'reilly. Anand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Huge tomcat memory footprint
Hi, BTW, have you moved from JDK 1.4.1 to 1.4.2 yet, and if so has that made a difference? IIRC your OP said you're using JDK 1.4.1.. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Anand Narasimhan [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 12:54 PM To: 'Tomcat Users List' Subject: RE: Huge tomcat memory footprint Hi, 80MB and heap used was 57MB (reported by optimizeit). But the memory sizes reported by solairs pmap command is Size RSSShared Private 1173.45 MB608.125 MB 15.125 MB 593 MB There's a mismatch here. There's no way the OS-level overhead is hundreds of MBs for an 80-MB heap. Are you sure the pmap command doesn't multiply by the number of threads or something like that (similar to what the Linux top command does)? I am not sure how pmap works. But the numbers are consitent with what top command reports. 3. I read somewhere that if you use reflection, the reflective data structures (whatever that means) also contribute to the memory footprint. It sounded as though these are not part of the heap. So if we are creating instances of Method, Constructor, etc, are they not allocated in the heap? We are using reflection heavily. Where's somewhere ? ;) That's mostly old information. The JVM is very efficient at handling reflection and properly storing Method references. I think I read about this in the Java performance tuning book from Sun press or O'reilly. Anand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Huge tomcat memory footprint
-Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 9:59 AM To: Tomcat Users List Subject: RE: Huge tomcat memory footprint Hi, BTW, have you moved from JDK 1.4.1 to 1.4.2 yet, and if so has that made a difference? IIRC your OP said you're using JDK 1.4.1.. Yoav Shapira http://www.yoavshapira.com Yes. I did upgrade to JDK 1.4.2_06. It did not make much difference. In fact it increased the memory footprint. Anand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jk_nt_service.exe stop service gives BAD packet signature
I have problems stopping Tomcat as a service in Windows. I install the service using jk_nt_service.exe (version 5.0.25). When I stop service, I got the following error: Nov 3, 2004 12:16:17 PM org.apache.jk.common.MsgAjp processHeader SEVERE: BAD packet signature 13 00 0d 00 01 00 | . Nov 3, 2004 12:16:17 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception (java.lang.NullPointerException) executing [EMAIL PROTECTED], terminating thread Looks like what it means is that the jk_nt_service.exe was sending Tomcat a incorrect format message. If this is a bug, I would be very surprised to see that it got through all these times. My guess is are there something wrong with my build of the jk_nt_service.exe or my configuration somewhere. Perhaps bit ordering difference? Could you help? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: sessionS info persistence when restart Tomcat
Here some info I found: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html but...: --cut - Persistent Manager Implementation WARNING - Use of this Manager implementation has not been thoroughly tested, and should be considered experimental! end cut -- Can anybody confirm what is a status for Persistent Manager in Tomcat 5.0.X? is it stable, is it safe to use in production and if not what are other options. and here another link with detailed info on Persistent Manager: http://www.devx.com/assets/download/6264.pdf Mark. --- Steve Kirk [EMAIL PROTECTED] wrote: I had always thought all sessions were lost when the server restarts. In fact I just tried it and confirmed that (5.0.28). Are we maybe talking about 2 different things? I have nonstandard config (a very sparse server.xml, no explicit Manager configured in server/web/context xml), and I do not use TC authentication/realms, I just use request.getSession(true) and rely on cookies to track users. After a restart, the webapp has lost track of users that were tracked right up to the restart. Is this the manager config ref you were talking about? http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html I just read through it. If I've understood correctly, because my Manager is not explicitly configured, I have a default session manager implicitly. I stopped the server and looked for the serialised session file under /work but just found the usual .java and .class files and one file called tldCache.ser, no sessions.ser or anything that looks like a serialised session file. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday 04 November 2004 15:07 To: Tomcat Users List Subject: RE: sessionS info persistence when restart Tomcat Hi, Tomcat persists and reloads sessions on restart by default. And the default session timeout is 30 minutes. So you shouldn't have to do anything. Check out the Manager configuration reference (not the Manager webapp) for more details and settings you can modify in this area. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 10:04 AM To: [EMAIL PROTECTED] Subject: sessionS info persistence when restart Tomcat Hi, Is it possible to save sessions info, so when Tomcat restarts all previously active sessions will be loaded. I'm trying to prevent user's re-login when Tomcat goes down for short period (5-15 minutes) of time. Thanks, Mark __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: sessionS info persistence when restart Tomcat
Hi, Hmm, I think that note is very old. It was probably copied over from Tomcat 4. The PersistentManager hasn't had any bugs filed against it for months at least (and it's been around for years now) so it's probably in good shape. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 2:14 PM To: Tomcat Users List Subject: RE: sessionS info persistence when restart Tomcat Here some info I found: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html but...: --cut - Persistent Manager Implementation WARNING - Use of this Manager implementation has not been thoroughly tested, and should be considered experimental! end cut -- Can anybody confirm what is a status for Persistent Manager in Tomcat 5.0.X? is it stable, is it safe to use in production and if not what are other options. and here another link with detailed info on Persistent Manager: http://www.devx.com/assets/download/6264.pdf Mark. --- Steve Kirk [EMAIL PROTECTED] wrote: I had always thought all sessions were lost when the server restarts. In fact I just tried it and confirmed that (5.0.28). Are we maybe talking about 2 different things? I have nonstandard config (a very sparse server.xml, no explicit Manager configured in server/web/context xml), and I do not use TC authentication/realms, I just use request.getSession(true) and rely on cookies to track users. After a restart, the webapp has lost track of users that were tracked right up to the restart. Is this the manager config ref you were talking about? http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html I just read through it. If I've understood correctly, because my Manager is not explicitly configured, I have a default session manager implicitly. I stopped the server and looked for the serialised session file under /work but just found the usual .java and .class files and one file called tldCache.ser, no sessions.ser or anything that looks like a serialised session file. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday 04 November 2004 15:07 To: Tomcat Users List Subject: RE: sessionS info persistence when restart Tomcat Hi, Tomcat persists and reloads sessions on restart by default. And the default session timeout is 30 minutes. So you shouldn't have to do anything. Check out the Manager configuration reference (not the Manager webapp) for more details and settings you can modify in this area. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 10:04 AM To: [EMAIL PROTECTED] Subject: sessionS info persistence when restart Tomcat Hi, Is it possible to save sessions info, so when Tomcat restarts all previously active sessions will be loaded. I'm trying to prevent user's re-login when Tomcat goes down for short period (5-15 minutes) of time. Thanks, Mark __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
RE: sessionS info persistence when restart Tomcat
So it's a documentation bug then :-) --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Hmm, I think that note is very old. It was probably copied over from Tomcat 4. The PersistentManager hasn't had any bugs filed against it for months at least (and it's been around for years now) so it's probably in good shape. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 2:14 PM To: Tomcat Users List Subject: RE: sessionS info persistence when restart Tomcat Here some info I found: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html but...: --cut - Persistent Manager Implementation WARNING - Use of this Manager implementation has not been thoroughly tested, and should be considered experimental! end cut -- Can anybody confirm what is a status for Persistent Manager in Tomcat 5.0.X? is it stable, is it safe to use in production and if not what are other options. and here another link with detailed info on Persistent Manager: http://www.devx.com/assets/download/6264.pdf Mark. --- Steve Kirk [EMAIL PROTECTED] wrote: I had always thought all sessions were lost when the server restarts. In fact I just tried it and confirmed that (5.0.28). Are we maybe talking about 2 different things? I have nonstandard config (a very sparse server.xml, no explicit Manager configured in server/web/context xml), and I do not use TC authentication/realms, I just use request.getSession(true) and rely on cookies to track users. After a restart, the webapp has lost track of users that were tracked right up to the restart. Is this the manager config ref you were talking about? http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html I just read through it. If I've understood correctly, because my Manager is not explicitly configured, I have a default session manager implicitly. I stopped the server and looked for the serialised session file under /work but just found the usual .java and .class files and one file called tldCache.ser, no sessions.ser or anything that looks like a serialised session file. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday 04 November 2004 15:07 To: Tomcat Users List Subject: RE: sessionS info persistence when restart Tomcat Hi, Tomcat persists and reloads sessions on restart by default. And the default session timeout is 30 minutes. So you shouldn't have to do anything. Check out the Manager configuration reference (not the Manager webapp) for more details and settings you can modify in this area. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 10:04 AM To: [EMAIL PROTECTED] Subject: sessionS info persistence when restart Tomcat Hi, Is it possible to save sessions info, so when Tomcat restarts all previously active sessions will be loaded. I'm trying to prevent user's re-login when Tomcat goes down for short period (5-15 minutes) of time. Thanks, Mark __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the
wrong version 49.0
After installed 5.0.29 TC, I tried to bring up the new application I just start today. I get the following error message. Can some tell me what is wrong here. 2004-11-04 10:42:39 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\gallery\org\apache\jsp\index_jsp.java:7: cannot access java.lang.Object Generated servlet error: bad class file: C:\Program Files\Java\jre1.5.0\lib\rt.jar(java/lang/Object.class) class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase ^ 1 error at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:432) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:492) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:471) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:459) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) 2004-11-04 10:44:25 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\gallery\org\apache\jsp\index_jsp.java:7: cannot access java.lang.Object Generated servlet error: bad class file: C:\Program Files\Java\jre1.5.0\lib\rt.jar(java/lang/Object.class) class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase ^ 1 error at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:432) at
RE: wrong version 49.0
Hi, If you compile your classes with J2SE 5.0 (class version 49.0), you can't run them on JDK 1.4.2 (class version 48.0). Either match up the compile- and run-time JDK version, or compile with a -target switch to match the older JDK. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Wei Wei [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 2:32 PM To: [EMAIL PROTECTED] Subject: wrong version 49.0 After installed 5.0.29 TC, I tried to bring up the new application I just start today. I get the following error message. Can some tell me what is wrong here. 2004-11-04 10:42:39 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\gallery\org\apache\jsp\index_jsp.java:7: cannot access java.lang.Object Generated servlet error: bad class file: C:\Program Files\Java\jre1.5.0\lib\rt.jar(java/lang/Object.class) class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase ^ 1 error at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH andl er.java:84) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j ava: 332) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:432) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:492) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:471) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:459) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j ava: 511) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava: 295) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292 ) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio nFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC hain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.j ava:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC onte xt.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCo ntex tValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.j ava:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC onte xt.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:13 7) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC onte xt.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:11 8) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC onte xt.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve .jav a:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC onte xt.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:7 99) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process Conn ection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5 77) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.ja va:684) at java.lang.Thread.run(Unknown Source) 2004-11-04 10:44:25 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\gallery\org\apache\jsp\index_jsp.java:7: cannot access java.lang.Object Generated servlet error: bad class file: C:\Program Files\Java\jre1.5.0\lib\rt.jar(java/lang/Object.class) class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath.
Tomcat JK2 Connector/IIS Slowdown
Hi Everyone, I'm having some JSP performance problems using the JK2 Connector between Tomcat 5 and IIS6 in Windows Server 2003. If I hit my site as mySite:8080, everything works fine. However, if i just hit mySite, thus going through the JK2 connector, the performance of the JSP pages greatly decreases (load times are about 4-5 times greater). Even stranger is that this slowdown occurs only on some computers and not others. I have already tried setting the enableLookups=false attribute in the server.xml file, but this does not have any effect. Can someone recommend other steps I can follow to improve the performance of my JSP pages when going through the JK2 connector? Thanks, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: wrong version 49.0
Thanks Yoav. That is what I guess. I, however, can't find what I can change the JVM version in the TC configuration. If you compile your classes with J2SE 5.0 (class version 49.0), you can't run them on JDK 1.4.2 (class version 48.0). Either match up the compile- and run-time JDK version, or compile with a -target switch to match the older JDK. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Wei Wei [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 2:32 PM To: [EMAIL PROTECTED] Subject: wrong version 49.0 After installed 5.0.29 TC, I tried to bring up the new application I just start today. I get the following error message. Can some tell me what is wrong here. 2004-11-04 10:42:39 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\gallery\org\apache\jsp\index_jsp.java:7: cannot access java.lang.Object Generated servlet error: bad class file: C:\Program Files\Java\jre1.5.0\lib\rt.jar(java/lang/Object.class) class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase ^ 1 error at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH andl er.java:84) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j ava: 332) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:432) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:492) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:471) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:459) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j ava: 511) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava: 295) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292 ) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio nFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC hain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.j ava:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC onte xt.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCo ntex tValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.j ava:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC onte xt.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:13 7) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC onte xt.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:11 8) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC onte xt.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve .jav a:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC onte xt.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:7 99) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process Conn ection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5 77) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.ja va:684) at java.lang.Thread.run(Unknown Source) 2004-11-04 10:44:25 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\gallery\org\apache\jsp\index_jsp.java:7: cannot access java.lang.Object Generated servlet
extra directory when using webdav context
This seems a little bizaar. I have the /webdav context running without any problems. I have apache sitting infront of tomcat and am using namebased virtual hosts. I can open the site as a Web Folder (IE6) connecting to port 8080 (tomcat) and it works perfectly. If I connect to port 80 (apache), things work, but I get an extra directory which is called the same thing as the current directory. E.g. If I navigate into a directory x that has nothing in it (on the filesystem), the webdav client shows directory x. I can click on this directory and x shows up again, and so forth. I'm not sure if this is a problem with tomcat, apache, or the connector. Anyone experience this before? I can post config files if required. Note: versions are Apache 2.0.51, Tomcat 4.1.30 Cheers, Brad Brad Hafichuk Azus Technologies Inc. www.azus.net (403) 710-8079
Re: Address already in use:JVM_BIND:8080
Harry Douglass, Jr. wrote: Hello, I am trying to install Apache Tomcat to run JSP and servlets for the first time. When I type in this URL 'http://localhost:8080/' Windows XP prompts me for a username and password. I typed in both the username 'admin' and blank password and a custom username and password when I installed it and I get an Unauthorized web page returned. When I try running Tomcat from the DOS prompt by typing 'tomcat start', I see the SEVERE Error message: Address already in use:JVM_BIND:8080. I know I am running IIS, but I want to keep the same port it runs on, and manually start Tomcat when I need it. Why can't I get it to work? Hi, You have another application running and listening port 8080. Few days ago I resolved same kind of situation and another application was Oracle and Oracles XML DB and tomcat installed same windows box. Configration of Oracle XML DB is in DB, so it was easier to just change Tomcat port. - Jukka - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
j_security_check forward, https client - surrogate squid - http tomcat
Hello all, I have the following configuration: Inet client (HTTPS) - proxy/firewall surrogate server (squid-2.5.STABLE5) openbsd - HTTP - origin server (Apache/1.3.29 - jakarta-tomcat-4.1.30) openbsd We have our SSL certs on the squid server and to keep data secure over the internet, squid passes valid requests inside to our webserver / application server. Everything works fine if the client is using HTTP. Everything works fine if the client is using HTTPS _EXCEPT_ if the application resides within a tomcat authentication realm. The problem is once a client authenticates the j_security_check module forwards them to an absolute HTTP URL because between the squid proxy and the webserver everything _IS_ just HTTP. So once they authenticate they end up with HTTP instead of HTTPS. Granted this is probably the expected behavior and there is nothing wrong with this except that I need it to be HTTPS when the request is HTTPS. My question, where should I fix this problem? Is there someway to make a relative HTTP 302 redirect from j_security_check (not sure on the validity of that)? Should I do some manipulation at the squid level (not sure how)? Pretty much what I need is if the request from the client was HTTPS I need the redirected page to be HTTPS. All internal requests from internal clients (non INET) are HTTP and those are all fine. Thank you
Does temp clean itself up?
Hey Folks, This may be a stupid question, but is the %CATALINA_HOME%\temp directory, really a temp directory in that it will clean itself out after a certain amount of time. If yes, how often does it perform clean-up and can this be configured. I just want to make sure that when I install Tomcat 5.0.28 on a Windows 2003 server with a small amount of hard drive space, that the %CATALINA_HOME\temp will clean itself up periodically so it won't fill-up my disk space. Thanks, RW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat JK2 Connector/IIS Slowdown
Brett, I have a similar problem. But what is interesting is that it only seem slow when I test using a Windows 2000 pro box using IE 6 against a Windows 2003 Server. Try using an XP pro box to test the same functionality. Also, here are diagrams that explain the situation I am having. I have submitted the issue to Microsoft and have one of their engineers on the case. I will keep everyone posted on what they discover. (please view this email in plain text for diagrams to display correctly below) File Download from ONE is slow, ALL others are FAST Windows 2003 Server:Windows 2000 Professional |---| |---| | Tomcat 5.0.28 | SLOW| | | IIS6|- | IE6 | | JK2 | FROM CART | | |---| |---| Windows 2003 Server:Windows 2000 Professional |---| |---| | Tomcat 5.0.28 | FAST| ANY OTHER | | IIS6|- | BROWSER | | JK2 | FROM CART| | |---| |---| Windows 2003 Server:Windows XP and Mac OSX |---| |---| | Tomcat 5.0.28 | FAST| IE 6 | | IIS6|- | or Safari | | JK2 | FROM CART| | |---| |---| Windows 2003 Server:ALL recent OS's |---| |---| | Tomcat 5.0.28 | FAST| All recent| | (running on |- | browsers | | port 8080 standalone) | FROM CART| | |---| |---| RedHat LinuxALL recent OS's |---| |---| | Tomcat 5.0.28 | FAST| All recent| | Apache 2.0.x|- | browsers | | JK2 | FROM CART| | |---| |---| Downloading a 1.3M file from a website cart to a Windows 2000 Pro desktop running latest IE 6 is slow and takes 15 seconds Downloading the same 1.3M file to a Windows XP box running IE 6, a Windows Pro box running Mozilla, and a Mac OSX running safari takes approx 1 second Spoke with Microsoft, we put a 1M file in a virtual directory on IIS. It downloaded in approx 1 second to Windows Pro / IE6. When I take IIS/mod_jk out of the picture, and go directly to Tomcat on 8080 the download is fast to All OS's and Browsers. Also, Apache has no problem downloading the file fast to All OS / browser combinations, including Windows 2000 / IE6!!! So does anyone know why the download is slow between IIS 6 and Windows 2000 Pro / IE6 and fast to all other clients. Is there something I can do to my IIS server to make the download go faster. Two other facts that are important... 1. the file being downloaded from the cart is on a remote file server and is being published through IIS via a UNC path from a shared folder. This is true for all scenarios shown above. And, 2. We are required to run IIS 6 in IIS 5 isolation mode due to the isapi_redirector2.dll can not handle IIS 6 native mode under large loads. I did try to do the download running IIS 6 in native mode, but the download was still slow. Seems to be a weird buffer restriction when IIS 6 and IE6 on Windows 2000 talk to each other. Confounded. Any suggestions -Original Message- From: Brett Parsons [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 1:45 PM To: [EMAIL PROTECTED] Subject: Tomcat JK2 Connector/IIS Slowdown Hi Everyone, I'm having some JSP performance problems using the JK2 Connector between Tomcat 5 and IIS6 in Windows Server 2003. If I hit my site as mySite:8080, everything works fine. However, if i just hit mySite, thus going through the JK2 connector, the performance of the JSP pages greatly decreases (load times are about 4-5 times greater). Even stranger is that this slowdown occurs only on some computers and not others. I have already tried setting the enableLookups=false attribute in the server.xml file, but this does not have any effect. Can someone recommend other steps I can follow to improve the performance of my JSP pages when going through the JK2 connector? Thanks, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Config behing a broadband router...
Hi Matt, Thanks I'll try. Best Regards, Luc - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 03, 2004 11:29 PM Subject: Re: Config behing a broadband router... Hi Luc, Depends on your router I suppose however I am in the same situation and I simply have to just implement port forwarding on my router to redirect traffic to the machine that the web server is on. Have a look at your router configuration. Kindest Regards, Matt Anderson Hi, I use Windows XP jakarta-tomcat-5.0.28. I'd like to know where and how I should I make the change to have my tomcat accessible from the internet knowing that I am behind a broadband router? Thanks, Luc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: sessionS info persistence when restart Tomcat
Following Yoav's earlier comments I've implemented a basic class SessionLogger that implements HttpSessionListener, HttpSessionActivationListener, HttpSessionAttributeListener, ServletContextListener. It just writes amessages to stdout using System.out.println() to log when each event fires, including each of the interface events plus instantiation and finalization of SessionLogger itself. I've configured it in web.xml: listener listener-classcore.servlet.SessionLogger/listener-class /listener SessionLogger logs its own presence OK when I instantiate it, and happily logs events as expected on sessions, and session attributes. It logs context creation but not destruction. Here's some sample catalina.log lines for starting TC, logging in, logging out, logging in again: 2004-11-05 00:56:50 StandardContext[/ao]*** SERVLET CONTEXT: initialized 2004-11-05 00:58:08 StandardContext[/ao]*** SESSION EVENT: sessionCreated, [EMAIL PROTECTED] 2004-11-05 00:58:23 StandardContext[/ao]*** SESSION ATTRIBUTE EVENT: attributeAdded, LOGGED_IN_USER, [ID=1] 2004-11-05 00:58:30 StandardContext[/ao]*** SESSION ATTRIBUTE EVENT: attributeRemoved, LOGGED_IN_USER, [ID=1] 2004-11-05 00:58:30 StandardContext[/ao]*** SESSION EVENT: sessionDestroyed, [EMAIL PROTECTED] 2004-11-05 00:58:30 StandardContext[/ao]*** SESSION EVENT: sessionCreated, [EMAIL PROTECTED] 2004-11-05 00:58:34 StandardContext[/ao]*** SESSION ATTRIBUTE EVENT: attributeAdded, LOGGED_IN_USER, [ID=1] However if I then stop TC, I get nothing logged at all after the attributeAdded event. The log just shows this as the last line: 05-Nov-2004 00:03:57 org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-80 and there are no loglines to indicate that the SessionLogger#sessionDestroyed, SessionLogger#contextDestroyed or SessionLogger#finalize methods were called. So it looks like sessions are working, but something is not working when TC stops, and I suspect that this is why my sessions don't persist over restarts. I've read the docs and how-tos that I can find, plus googled forum stuff on the web. Does anyone have any insights please? PS the above applies whether or not I explicitly add a Manager to my context config. Note that the standard config files for 5.0.28 do not explictly include a Manager, but the docs say that A Manager element MAY be nested inside a Context component. If it is not included, a default Manager configuration will be created automatically. I tried adding a Manager to my context as follows just in case following Yoav's earlier comments: Manager className=org.apache.catalina.session.StandardManager distributable=false debug=4 pathname=SESSIONS.ser / but this made no difference to the behaviour described above. Another weird thing: if I trigger a webapp reload by rebuilding my warfile while TC is running, TC complains about the absence of SESSIONS.ser - it appears to be trying to persist sessions to the file - which it does not try to do when I stop TC. The log message is: 05-Nov-2004 00:23:26 org.apache.catalina.session.StandardManager doUnload SEVERE: IOException while saving persisted sessions: java.io.FileNotFoundException: C:\jakarta-tomcat-5.0.28\work\Catalina\localhost\ao\SESSIONS.ser (The system cannot find the path specified) The file does not exist so the message sort of makes sense, except that this does not happen if I stop and then start TC again - only if a reload is triggered when I rebuild my warfile. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday 04 November 2004 16:09 To: Tomcat Users List Subject: RE: sessionS info persistence when restart Tomcat Hi, I had always thought all sessions were lost when the server restarts. In fact I just tried it and confirmed that (5.0.28). Are we maybe talking about 2 different things? I think we're talking about the same thing. Sessions are supposed to be persisted by default. I have nonstandard config (a very sparse server.xml, no explicit Manager You need a Manager. When I said by default I mean out of the box, i.e. with the default server.xml, which has such a Manager IIRC. Is this the manager config ref you were talking about? http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html Yeah. I just read through it. If I've understood correctly, because my Manager is not explicitly configured, There's a difference between not explicitly configured and not declared at all. One way to test this is with an HttpSessionListener/HttpSessionActivationListener (one listener can implement both interfaces and thereby capture all four relevant events). It's trivial to write one that just prints out information when sessions are created, destroyed, passivated, and activated. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary
dear friend i'm in a big trouble
I'm just a beginner and I have installed Tomcat5.0 and try to run a simple servlet. I have copied the compiled servlet on the webapps/root/WEB-INF/classes and added the servlet name and servlet mapping in the web.xml file. I'm trying to call my HelloClientServlet from http://localhost:3030/servlet/HelloClientServlet from the web browser, after restarting the tomcat http server it says the follwing my tomcat server is listening at port 3030 *** HTTP Status 404 - /servlet type Status report message /servlet description The requested resource (/servlet) is not available. Apache Tomcat/5.0.28 *** and I have tried to run a simple example JSP already in the examples folder, it gives me the follwing error * HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106) org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935) org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. Apache Tomcat/5.0.28 * please help me, i'm troubling with this error since three days and I have read lot of manuals and changed the class path and set the jdk home and catalina home as environment variable, still this error, please help me regards, raasi __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: sessionS info persistence when restart Tomcat
SessionDestroyed shouldn't be called when tomcat shuts down. Otherwise, the session wouldn't be valid when it starts up. I just tested with a clean install of 5.0.29 with a similar listener to the one you describe. SessionDestroyed was not called when I stopped TC but the sessions were still valid when I started it up. I can give you the war file if you like. Do all of the attributes that you're adding to your session implement Serializable? C:\jakarta-tomcat-5.0.28\work\Catalina\localhost\ao\SESSIONS.ser (The system cannot find the path specified) Does tomcat have sufficient permissions to write to the work directory? How are you stopping Tomcat? On Thu, 2004-11-04 at 20:15, Steve Kirk wrote: Following Yoav's earlier comments I've implemented a basic class SessionLogger that implements HttpSessionListener, HttpSessionActivationListener, HttpSessionAttributeListener, ServletContextListener. It just writes amessages to stdout using System.out.println() to log when each event fires, including each of the interface events plus instantiation and finalization of SessionLogger itself. I've configured it in web.xml: listener listener-classcore.servlet.SessionLogger/listener-class /listener SessionLogger logs its own presence OK when I instantiate it, and happily logs events as expected on sessions, and session attributes. It logs context creation but not destruction. Here's some sample catalina.log lines for starting TC, logging in, logging out, logging in again: 2004-11-05 00:56:50 StandardContext[/ao]*** SERVLET CONTEXT: initialized 2004-11-05 00:58:08 StandardContext[/ao]*** SESSION EVENT: sessionCreated, [EMAIL PROTECTED] 2004-11-05 00:58:23 StandardContext[/ao]*** SESSION ATTRIBUTE EVENT: attributeAdded, LOGGED_IN_USER, [ID=1] 2004-11-05 00:58:30 StandardContext[/ao]*** SESSION ATTRIBUTE EVENT: attributeRemoved, LOGGED_IN_USER, [ID=1] 2004-11-05 00:58:30 StandardContext[/ao]*** SESSION EVENT: sessionDestroyed, [EMAIL PROTECTED] 2004-11-05 00:58:30 StandardContext[/ao]*** SESSION EVENT: sessionCreated, [EMAIL PROTECTED] 2004-11-05 00:58:34 StandardContext[/ao]*** SESSION ATTRIBUTE EVENT: attributeAdded, LOGGED_IN_USER, [ID=1] However if I then stop TC, I get nothing logged at all after the attributeAdded event. The log just shows this as the last line: 05-Nov-2004 00:03:57 org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-80 and there are no loglines to indicate that the SessionLogger#sessionDestroyed, SessionLogger#contextDestroyed or SessionLogger#finalize methods were called. So it looks like sessions are working, but something is not working when TC stops, and I suspect that this is why my sessions don't persist over restarts. I've read the docs and how-tos that I can find, plus googled forum stuff on the web. Does anyone have any insights please? PS the above applies whether or not I explicitly add a Manager to my context config. Note that the standard config files for 5.0.28 do not explictly include a Manager, but the docs say that A Manager element MAY be nested inside a Context component. If it is not included, a default Manager configuration will be created automatically. I tried adding a Manager to my context as follows just in case following Yoav's earlier comments: Manager className=org.apache.catalina.session.StandardManager distributable=false debug=4 pathname=SESSIONS.ser / but this made no difference to the behaviour described above. Another weird thing: if I trigger a webapp reload by rebuilding my warfile while TC is running, TC complains about the absence of SESSIONS.ser - it appears to be trying to persist sessions to the file - which it does not try to do when I stop TC. The log message is: 05-Nov-2004 00:23:26 org.apache.catalina.session.StandardManager doUnload SEVERE: IOException while saving persisted sessions: java.io.FileNotFoundException: C:\jakarta-tomcat-5.0.28\work\Catalina\localhost\ao\SESSIONS.ser (The system cannot find the path specified) The file does not exist so the message sort of makes sense, except that this does not happen if I stop and then start TC again - only if a reload is triggered when I rebuild my warfile. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday 04 November 2004 16:09 To: Tomcat Users List Subject: RE: sessionS info persistence when restart Tomcat Hi, I had always thought all sessions were lost when the server restarts. In fact I just tried it and confirmed that (5.0.28). Are we maybe talking about 2 different things? I think we're talking about the same thing. Sessions are supposed to be persisted by default. I have nonstandard config (a very sparse server.xml, no explicit Manager You need a Manager. When I said by default I mean out of the box, i.e. with the default server.xml, which has such a Manager
Re: dear friend i'm in a big trouble
First, is your servlet in a package? Non-packaged servlets will not work. Did you map your servlet in web.xml? What is the URL you are using to call the servlet? You don't need to set a classpath environment variable Tomcat sets it's own. Did you install a full j2sdk or just a jre? Tomcat 5.0 and lower needs a full j2sdk. Did you set your JAVA_HOME enviornment variable? Have you tested it to make sure it's right? or.. If you installed as a Windows Service, did you make sure that the installer found the full j2sdk on your system and not another JRE? On Thu, 2004-11-04 at 20:49, Raasi Potluri wrote: I'm just a beginner and I have installed Tomcat5.0 and try to run a simple servlet. I have copied the compiled servlet on the webapps/root/WEB-INF/classes and added the servlet name and servlet mapping in the web.xml file. I'm trying to call my HelloClientServlet from http://localhost:3030/servlet/HelloClientServlet from the web browser, after restarting the tomcat http server it says the follwing my tomcat server is listening at port 3030 *** HTTP Status 404 - /servlet type Status report message /servlet description The requested resource (/servlet) is not available. Apache Tomcat/5.0.28 *** and I have tried to run a simple example JSP already in the examples folder, it gives me the follwing error * HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106) org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935) org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. Apache Tomcat/5.0.28 * please help me, i'm troubling with this error since three days and I have read lot of manuals and changed the class path and set the jdk home and catalina home as environment variable, still this error, please help me regards, raasi __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dear friend i'm in a big trouble
http://localhost:3030/servlet/HelloClientServlet Looks like you are depending on the invoker servlet to instanciate your servlet. The invoker servlet is no longer active by default. You will need to map your servlet in web.xml. Again, your servlets need to be packaged. On Thu, 2004-11-04 at 21:29, Ben Souther wrote: First, is your servlet in a package? Non-packaged servlets will not work. Did you map your servlet in web.xml? What is the URL you are using to call the servlet? You don't need to set a classpath environment variable Tomcat sets it's own. Did you install a full j2sdk or just a jre? Tomcat 5.0 and lower needs a full j2sdk. Did you set your JAVA_HOME enviornment variable? Have you tested it to make sure it's right? or.. If you installed as a Windows Service, did you make sure that the installer found the full j2sdk on your system and not another JRE? On Thu, 2004-11-04 at 20:49, Raasi Potluri wrote: I'm just a beginner and I have installed Tomcat5.0 and try to run a simple servlet. I have copied the compiled servlet on the webapps/root/WEB-INF/classes and added the servlet name and servlet mapping in the web.xml file. I'm trying to call my HelloClientServlet from http://localhost:3030/servlet/HelloClientServlet from the web browser, after restarting the tomcat http server it says the follwing my tomcat server is listening at port 3030 *** HTTP Status 404 - /servlet type Status report message /servlet description The requested resource (/servlet) is not available. Apache Tomcat/5.0.28 *** and I have tried to run a simple example JSP already in the examples folder, it gives me the follwing error * HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106) org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935) org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. Apache Tomcat/5.0.28 * please help me, i'm troubling with this error since three days and I have read lot of manuals and changed the class path and set the jdk home and catalina home as environment variable, still this error, please help me regards, raasi __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com
(Ben Souther) Thank u so much Re: dear friend i'm in a big trouble
Hello Ben many thanks for your reply, well, My servlet is a non-packaged one, I will change it. I'm worried, if it is a packeged one how to call it from the url? and how to configure the the web.xml? Yes I have mapped my servlet in the web.xml file. this is the bit I have added in the web.xml file servlet servlet-nameHelloClientServlet/servlet-name servlet-classHelloClientServlet/servlet-class /servlet servlet-mapping servlet-nameHelloClientServlet/servlet-name url-patternHelloClientServlet/url-pattern /servlet-mapping the URL I'm using to call my servlet is http://localhost:3030/servlet/HelloClientServlet I have installed the full j2sdk1.5.0 package and I have set the classpath and tested it. It is working, I will write you back once I have put my servlet in the package and I will recompile and test it again, please help me with this, this is driving me mad, many thanks Ben, regards, Raasi --- Ben Souther [EMAIL PROTECTED] wrote: First, is your servlet in a package? Non-packaged servlets will not work. Did you map your servlet in web.xml? What is the URL you are using to call the servlet? You don't need to set a classpath environment variable Tomcat sets it's own. Did you install a full j2sdk or just a jre? Tomcat 5.0 and lower needs a full j2sdk. Did you set your JAVA_HOME enviornment variable? Have you tested it to make sure it's right? or.. If you installed as a Windows Service, did you make sure that the installer found the full j2sdk on your system and not another JRE? On Thu, 2004-11-04 at 20:49, Raasi Potluri wrote: I'm just a beginner and I have installed Tomcat5.0 and try to run a simple servlet. I have copied the compiled servlet on the webapps/root/WEB-INF/classes and added the servlet name and servlet mapping in the web.xml file. I'm trying to call my HelloClientServlet from http://localhost:3030/servlet/HelloClientServlet from the web browser, after restarting the tomcat http server it says the follwing my tomcat server is listening at port 3030 *** HTTP Status 404 - /servlet type Status report message /servlet description The requested resource (/servlet) is not available. Apache Tomcat/5.0.28 *** and I have tried to run a simple example JSP already in the examples folder, it gives me the follwing error * HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106) org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935) org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
Re: (Ben Souther) Thank u so much Re: dear friend i'm in a big trouble
Hello Ben many thanks for your reply, well, My servlet is a non-packaged one, I will change it. I'm worried, if it is a packeged one how to call it from the url? and how to configure the the web.xml? In the servlet class node, fully qualify your servlet class Example: servlet-classcom.mypackage.HelloClientServlet/servlet-class Yes I have mapped my servlet in the web.xml file. this is the bit I have added in the web.xml file servlet servlet-nameHelloClientServlet/servlet-name servlet-classHelloClientServlet/servlet-class /servlet servlet-mapping servlet-nameHelloClientServlet/servlet-name url-patternHelloClientServlet/url-pattern /servlet-mapping the URL I'm using to call my servlet is http://localhost:3030/servlet/HelloClientServlet There is no need for servlet Try: http://localhost:3030/HelloClientServlet I have installed the full j2sdk1.5.0 package and I have set the classpath and tested it. It is working, You don't need to set a classpath. Tomcat sets it's own. You will want to make sure your JAVA_HOME environment variable is set properly. From the command line type: $JAVA_HOME/bin/javac If you get a command not found error, then your JAVA_HOME environment varible is not set properly. I will write you back once I have put my servlet in the package and I will recompile and test it again, please help me with this, this is driving me mad, many thanks Ben, regards, Raasi --- Ben Souther [EMAIL PROTECTED] wrote: First, is your servlet in a package? Non-packaged servlets will not work. Did you map your servlet in web.xml? What is the URL you are using to call the servlet? You don't need to set a classpath environment variable Tomcat sets it's own. Did you install a full j2sdk or just a jre? Tomcat 5.0 and lower needs a full j2sdk. Did you set your JAVA_HOME enviornment variable? Have you tested it to make sure it's right? or.. If you installed as a Windows Service, did you make sure that the installer found the full j2sdk on your system and not another JRE? On Thu, 2004-11-04 at 20:49, Raasi Potluri wrote: I'm just a beginner and I have installed Tomcat5.0 and try to run a simple servlet. I have copied the compiled servlet on the webapps/root/WEB-INF/classes and added the servlet name and servlet mapping in the web.xml file. I'm trying to call my HelloClientServlet from http://localhost:3030/servlet/HelloClientServlet from the web browser, after restarting the tomcat http server it says the follwing my tomcat server is listening at port 3030 *** HTTP Status 404 - /servlet type Status report message /servlet description The requested resource (/servlet) is not available. Apache Tomcat/5.0.28 *** and I have tried to run a simple example JSP already in the examples folder, it gives me the follwing error * HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106) org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
Re: connection pooling
Hi all, I'm returning to a problem I couldn't solve the first time, about two months ago, and still can't seem to figure out. I can't get a db connection using connection pools. I get the exception listed below, same as so many have previously, but nothing I've found seems to works. Below are my specs. Anyone with concrete advise/direction on how to get this working? Also, I noticed in many solutions the suggestion was made to edit the myapp.xml file located at CATALINA_HOME/conf/Catalina/localhost/. However, there is no myapp.xml in that directory on my server. Just 2 .xml's related to other applications and a manager.xml which I'm not sure what it's related to. OS: FC2 Tomcat 5.0.28 exception: org.apache.commons.dbcp.SWLNestedException: Cannot create JDBC driver class '' for connect URL 'null' WEB-INF web xml: code inserted AFTER all servlet mappings... resource-ref res-ref-namejdbc/wms/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref server xml(tried this with and without a Resource name)... Context path=/wms docBase=wms debug=0 reloadable=true ResourceParams name=jdbc/wms parameter nameusername/name valuewhatever/value /parameter parameter namepassword/name valuewhatever/value /parameter parameter namedriverClassName/name valuecom.informix.jdbc.IfxDriver/value /parameter parameter nameurl/name valuejdbc:informix-sqli://foo.bar.com:somePort/dbName:INFORMIXSERVER=serverName/value /parameter /ResourceParams /Context I have the following jars in my CATALINA_HONE/common/lib and I also tried putting the db driver and commons-collections, dbcp, and pool in my WEB-INF/lib with no success. They are all mode 644. ant.jar ant-launcher.jar commons-collections-3.1.jar commons-dbcp-1.2.1.jar commons-el.jar commons-pool-1.2.jar ifxjdbc.jar (the necessary informix driver) jar.txt jasper-compiler.jar jasper-runtime.jar jsp-api.jar mysql-connector-java-3.0.15-ga-bin.jar naming-common.jar naming-factory.jar naming-java.jar naming-resources.jar servlet-api.jar On Fri, 8 Oct 2004 11:45:59 +0530, Atishay Kumar [EMAIL PROTECTED] wrote: hi, i am not sure but you may try downloading latest jar files for following froom tomcat site and try them out. copy the old jar files somewhere else and try using the latest jar files. 1) Commons Collections 2)Commons DBCP 3)Commons Pool On Thu, 7 Oct 2004 15:29:40 -0700, Eric Wulff [EMAIL PROTECTED] wrote: Except that the driver works for connecting if I'm not utilizing a connection pool, i.e., I am able to connect to the db and manipulate data via DriverManager.getConnection(url, db, pwd). The driver is located in CATALINA_HOME/commons/lib Eric On Thu, 7 Oct 2004 18:22:45 -0400, Phillip Qin [EMAIL PROTECTED] wrote: No, you don't need that many params. I think your problem might be the driver. Where did you drop off your informix jdbc jar? -Original Message- From: Eric Wulff [mailto:[EMAIL PROTECTED] Sent: October 7, 2004 5:56 PM To: Tomcat Users List Subject: Re: connection pooling Yes, I have added Resource name=... . Now different errors are reported via stack trace as I posted in response to Atishay's suggestion that I add this. I'll try adding your suggestions and see what happens. Also, you suggest adding many parameters. Are they necessary for simply making a connection? If so, the tutorial I'm following, 'Tomcat Kick Start' left all your suggestions out. Including the Resource tag, but that seems critical for connection. Eric On Thu, 7 Oct 2004 17:14:27 -0400, Phillip Qin [EMAIL PROTECTED] wrote: 1. web.xml: OK 2. context.xml on context of server.xml: Resource name=jdbc/test_connect auth=Container type=javax.sql.DataSource/ = have you added this? ResourceParams name=jdbc/test_connect parameter namedriverClassName/name valueyour.jdbc.driver/value /parameter parameter nameurl/name valueyour.jdbc.url/value /parameter parameter nameusername/name valueyouruser/value /parameter parameter namepassword/name valueyourpass/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter nameminIdle/name value10/value /parameter parameter
(Ben Souther) Thank u so much Re: dear friend i'm in a big trouble
Hello Ben I have not packaged the servlet but just changed the servlet mapping node, to servlet servlet-nameHelloClientServlet/servlet-name servlet-classHelloClientServlet/servlet-class /servlet servlet-mapping servlet-nameHelloClientServlet/servlet-name url-pattern/servlet/HelloClientServlet/url-pattern /servlet-mapping and I have used the URL http://localhost:3030/servlet/HelloClientServlet wit worked I can see my code on the web page but I have written another similar servlet with different text output on web page and added couple other nodes on web.xml file and that also worked... and now I have just refreshed the web page with F5 key everything is vanished and gives me an error message saying that *** HTTP Status 404 - /servlet/HelloShabeer type Status report message /servlet/HelloShabeer description The requested resource (/servlet/HelloShabeer) is not available. Apache Tomcat/5.0.28 *** like you said I have checked the JAVA_HOME variable at cmd prompt, though I have set my JAVA_HOME variable at system, environment variables, it says the follwoing ** Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\ShabeerJAVA_HOME/bin/javac 'JAVA_HOME' is not recognized as an internal or external command, operable program or batch file. C:\Documents and Settings\Shabeercd\ C:\JAVA_HOME/bin/javac 'JAVA_HOME' is not recognized as an internal or external command, operable program or batch file. C:\ ** please guide me what shall I do now, many thanks for your help, regards, raasi --- Ben Souther [EMAIL PROTECTED] wrote: Hello Ben many thanks for your reply, well, My servlet is a non-packaged one, I will change it. I'm worried, if it is a packeged one how to call it from the url? and how to configure the the web.xml? In the servlet class node, fully qualify your servlet class Example: servlet-classcom.mypackage.HelloClientServlet/servlet-class Yes I have mapped my servlet in the web.xml file. this is the bit I have added in the web.xml file servlet servlet-nameHelloClientServlet/servlet-name servlet-classHelloClientServlet/servlet-class /servlet servlet-mapping servlet-nameHelloClientServlet/servlet-name url-patternHelloClientServlet/url-pattern /servlet-mapping the URL I'm using to call my servlet is http://localhost:3030/servlet/HelloClientServlet There is no need for servlet Try: http://localhost:3030/HelloClientServlet I have installed the full j2sdk1.5.0 package and I have set the classpath and tested it. It is working, You don't need to set a classpath. Tomcat sets it's own. You will want to make sure your JAVA_HOME environment variable is set properly. From the command line type: $JAVA_HOME/bin/javac If you get a command not found error, then your JAVA_HOME environment varible is not set properly. I will write you back once I have put my servlet in the package and I will recompile and test it again, please help me with this, this is driving me mad, many thanks Ben, regards, Raasi --- Ben Souther [EMAIL PROTECTED] wrote: First, is your servlet in a package? Non-packaged servlets will not work. Did you map your servlet in web.xml? What is the URL you are using to call the servlet? You don't need to set a classpath environment variable Tomcat sets it's own. Did you install a full j2sdk or just a jre? Tomcat 5.0 and lower needs a full j2sdk. Did you set your JAVA_HOME enviornment variable? Have you tested it to make sure it's right? or.. If you installed as a Windows Service, did you make sure that the installer found the full j2sdk on your system and not another JRE? On Thu, 2004-11-04 at 20:49, Raasi Potluri wrote: I'm just a beginner and I have installed Tomcat5.0 and try to run a simple servlet. I have copied the compiled servlet on the webapps/root/WEB-INF/classes and added the servlet name and servlet mapping in the web.xml file. I'm trying to call my HelloClientServlet from http://localhost:3030/servlet/HelloClientServlet from the web browser, after restarting the tomcat http server it says the follwing my tomcat server is listening at port 3030 *** HTTP Status 404 - /servlet type Status
(Ben Souther) Thank u so much Re: dear friend i'm in a big trouble
Hello Ben I have not packaged the servlet but just changed the servlet mapping node, to servlet servlet-nameHelloClientServlet/servlet-name servlet-classHelloClientServlet/servlet-class /servlet servlet-mapping servlet-nameHelloClientServlet/servlet-name url-pattern/servlet/HelloClientServlet/url-pattern /servlet-mapping and I have used the URL http://localhost:3030/servlet/HelloClientServlet wit worked I can see my code on the web page but I have written another similar servlet with different text output on web page and added couple other nodes on web.xml file and that also worked... and now I have just refreshed the web page with F5 key everything is vanished and gives me an error message saying that *** HTTP Status 404 - /servlet/HelloShabeer type Status report message /servlet/HelloShabeer description The requested resource (/servlet/HelloShabeer) is not available. Apache Tomcat/5.0.28 *** like you said I have checked the JAVA_HOME variable at cmd prompt, though I have set my JAVA_HOME variable at system, environment variables, it says the follwoing ** Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\ShabeerJAVA_HOME/bin/javac 'JAVA_HOME' is not recognized as an internal or external command, operable program or batch file. C:\Documents and Settings\Shabeercd\ C:\JAVA_HOME/bin/javac 'JAVA_HOME' is not recognized as an internal or external command, operable program or batch file. C:\ ** please guide me what shall I do now, many thanks for your help, regards, raasi --- Ben Souther [EMAIL PROTECTED] wrote: Hello Ben many thanks for your reply, well, My servlet is a non-packaged one, I will change it. I'm worried, if it is a packeged one how to call it from the url? and how to configure the the web.xml? In the servlet class node, fully qualify your servlet class Example: servlet-classcom.mypackage.HelloClientServlet/servlet-class Yes I have mapped my servlet in the web.xml file. this is the bit I have added in the web.xml file servlet servlet-nameHelloClientServlet/servlet-name servlet-classHelloClientServlet/servlet-class /servlet servlet-mapping servlet-nameHelloClientServlet/servlet-name url-patternHelloClientServlet/url-pattern /servlet-mapping the URL I'm using to call my servlet is http://localhost:3030/servlet/HelloClientServlet There is no need for servlet Try: http://localhost:3030/HelloClientServlet I have installed the full j2sdk1.5.0 package and I have set the classpath and tested it. It is working, You don't need to set a classpath. Tomcat sets it's own. You will want to make sure your JAVA_HOME environment variable is set properly. From the command line type: $JAVA_HOME/bin/javac If you get a command not found error, then your JAVA_HOME environment varible is not set properly. I will write you back once I have put my servlet in the package and I will recompile and test it again, please help me with this, this is driving me mad, many thanks Ben, regards, Raasi --- Ben Souther [EMAIL PROTECTED] wrote: First, is your servlet in a package? Non-packaged servlets will not work. Did you map your servlet in web.xml? What is the URL you are using to call the servlet? You don't need to set a classpath environment variable Tomcat sets it's own. Did you install a full j2sdk or just a jre? Tomcat 5.0 and lower needs a full j2sdk. Did you set your JAVA_HOME enviornment variable? Have you tested it to make sure it's right? or.. If you installed as a Windows Service, did you make sure that the installer found the full j2sdk on your system and not another JRE? On Thu, 2004-11-04 at 20:49, Raasi Potluri wrote: I'm just a beginner and I have installed Tomcat5.0 and try to run a simple servlet. I have copied the compiled servlet on the webapps/root/WEB-INF/classes and added the servlet name and servlet mapping in the web.xml file. I'm trying to call my HelloClientServlet from http://localhost:3030/servlet/HelloClientServlet from the web browser, after restarting the tomcat http server it says the follwing my tomcat server is listening at port 3030 *** HTTP Status 404 - /servlet type Status
RE: Address already in use:JVM_BIND:8080
Thanks, Allistair, you suggestion worked. Port 8080 was being used by Oracle and switching to 9090 was the solution. -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 7:46 AM To: Tomcat Users List Subject: RE: Address already in use:JVM_BIND:8080 this means you are running other software on Tomcat's default port 8080. This may either be another tomcat? or some other process. Load a command prompt and type netstat -an this will show you if anything is listening on 8080. There is also a tool http://www.sysinternals.com/ntw2k/freeware/procexp.shtml that may help you find out what is listening on port 8080. it will not be IIS unless you have setup another site with 8080. If after all this you cannot find out what is binding 8080, edit server.xml in tomcat/conf and change 8080 to 9090. Allistair. -Original Message- From: Harry Douglass, Jr. [mailto:[EMAIL PROTECTED] Sent: 04 November 2004 12:42 To: 'Tomcat Users List' Subject: Address already in use:JVM_BIND:8080 When I try running Tomcat from the DOS prompt by typing 'tomcat start', I see the SEVERE Error message: Address already in use:JVM_BIND:8080. I know I am running IIS on port 80, but I want to keep the same port it runs on, and manually start Tomcat when I need it. Why can't I get it to work? Thank you very much in advance, Harry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: (Ben Souther) Thank u so much Re: dear friend i'm in a big trouble
On Thu, 2004-11-04 at 22:53, Raasi Potluri wrote: Hello Ben I have not packaged the servlet but just changed the servlet mapping node, to servlet servlet-nameHelloClientServlet/servlet-name servlet-classHelloClientServlet/servlet-class /servlet servlet-mapping servlet-nameHelloClientServlet/servlet-name url-pattern/servlet/HelloClientServlet/url-pattern /servlet-mapping and I have used the URL http://localhost:3030/servlet/HelloClientServlet wit worked I can see my code on the web page Hmm.. I didn't think unpackaged classes would work anymore. Anyway, I strongly recommend packaging all of your classes. Adding /servlet/ to your url-pattern in the mapping or removing it from your URL are the same. Just make sure your url-pattern matches your url. but I have written another similar servlet with different text output on web page and added couple other nodes on web.xml file and that also worked... and now I have just refreshed the web page with F5 key everything is vanished and gives me an error message saying that ** I don't know why that happened. Have you looked at the logs in CATALINA_HOME\logs? Apache Tomcat/5.0.28 *** like you said I have checked the JAVA_HOME variable at cmd prompt, though I have set my JAVA_HOME variable at system, environment variables, it says the follwoing ** Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\ShabeerJAVA_HOME/bin/javac 'JAVA_HOME' is not recognized as an internal or external command, operable program or batch file. C:\Documents and Settings\Shabeercd\ C:\JAVA_HOME/bin/javac 'JAVA_HOME' is not recognized as an internal or external command, operable program or batch file. Ahh, you're on a windows box: Try: %JAVA_HOME%\bin\javac If you get the same message, your JAVA_HOME environment variable is not set properly. Did you install Tomcat as a Service? If so, stop the service and try starting Tomcat from the command line. If you've set your environment variable correctly and you start it from the command line, it should be able to find the compiler and thus, run your JSPs. please guide me what shall I do now, many thanks for your help, regards, raasi You said you spent 3 days reading manuals. Did you read this? http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html or any of the pages from here? http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html I think you'll find the most up to date documentation on those pages. -Ben --- Ben Souther [EMAIL PROTECTED] wrote: Hello Ben many thanks for your reply, well, My servlet is a non-packaged one, I will change it. I'm worried, if it is a packeged one how to call it from the url? and how to configure the the web.xml? In the servlet class node, fully qualify your servlet class Example: servlet-classcom.mypackage.HelloClientServlet/servlet-class Yes I have mapped my servlet in the web.xml file. this is the bit I have added in the web.xml file servlet servlet-nameHelloClientServlet/servlet-name servlet-classHelloClientServlet/servlet-class /servlet servlet-mapping servlet-nameHelloClientServlet/servlet-name url-patternHelloClientServlet/url-pattern /servlet-mapping the URL I'm using to call my servlet is http://localhost:3030/servlet/HelloClientServlet There is no need for servlet Try: http://localhost:3030/HelloClientServlet I have installed the full j2sdk1.5.0 package and I have set the classpath and tested it. It is working, You don't need to set a classpath. Tomcat sets it's own. You will want to make sure your JAVA_HOME environment variable is set properly. From the command line type: $JAVA_HOME/bin/javac If you get a command not found error, then your JAVA_HOME environment varible is not set properly. I will write you back once I have put my servlet in the package and I will recompile and test it again, please help me with this, this is driving me mad, many thanks Ben, regards, Raasi --- Ben Souther [EMAIL PROTECTED] wrote: First, is your servlet in a package? Non-packaged servlets will not work. Did you map your servlet in web.xml? What is the URL you are using to call the servlet? You don't need to set a classpath environment variable Tomcat sets it's own. Did you install a full j2sdk or just a jre? Tomcat 5.0 and lower needs a full j2sdk. Did you set your JAVA_HOME enviornment variable? Have you tested it to make sure it's right? or.. If you installed as a Windows Service, did
Re: Huge tomcat memory footprint
Anand The pmap command itself gives some good info on this huge memory footrpint. There will be jars, some libraries (JVM specifc) are loaded into the memory that can cause this footprint. You can find the list of jars/files loaded by using the inode number. In addition sometime i observed that if the System memory (RAM) is low, it tends to show a larger footprint. -Surendra - Original Message - From: Anand Narasimhan [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, November 04, 2004 11:52 PM Subject: RE: Huge tomcat memory footprint -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 9:59 AM To: Tomcat Users List Subject: RE: Huge tomcat memory footprint Hi, BTW, have you moved from JDK 1.4.1 to 1.4.2 yet, and if so has that made a difference? IIRC your OP said you're using JDK 1.4.1.. Yoav Shapira http://www.yoavshapira.com Yes. I did upgrade to JDK 1.4.2_06. It did not make much difference. In fact it increased the memory footprint. Anand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
(Ben Souther) new Trouble Re: dear friend i'm in a big trouble(thanks 4 ur help)
Hello Ben, I know why all my working servlets have stopped working all of a sudden, something is wrong, could be I have mis placed some of the files in Tomcat installation directory, because when I type http://localhost:3030 it is use to give me a congratulations page, now it says following * HTTP Status 404 - / type Status report message / description The requested resource (/) is not available. Apache Tomcat/5.0.28 * I will try to reinstall the whole Tomcat 5.0 version allover again tomarrow, because soemthing is wrong... and do you suggest me any standard version of tomcat where in I can best practice servlets and jsp's. I'm very eagar to learn these two technologies, please help me. I have tried this %JAVA_HOME%\bin\javac didn't work, says dont understand as internal command or exteranl my OS is windows XP home edition. I have set my JAVA_HOME at start/settings/control panel/system clicked advanced tab, clicked environment variables, under the system variables I have added a new field JAVA_HOME and text as C:\Program Files\Java\jdk1.5.0 is the same tree as per my windows intsallation directory. regards, thanks for your help. bye for now, Raasi --- Ben Souther [EMAIL PROTECTED] wrote: On Thu, 2004-11-04 at 22:53, Raasi Potluri wrote: Hello Ben I have not packaged the servlet but just changed the servlet mapping node, to servlet servlet-nameHelloClientServlet/servlet-name servlet-classHelloClientServlet/servlet-class /servlet servlet-mapping servlet-nameHelloClientServlet/servlet-name url-pattern/servlet/HelloClientServlet/url-pattern /servlet-mapping and I have used the URL http://localhost:3030/servlet/HelloClientServlet wit worked I can see my code on the web page Hmm.. I didn't think unpackaged classes would work anymore. Anyway, I strongly recommend packaging all of your classes. Adding /servlet/ to your url-pattern in the mapping or removing it from your URL are the same. Just make sure your url-pattern matches your url. but I have written another similar servlet with different text output on web page and added couple other nodes on web.xml file and that also worked... and now I have just refreshed the web page with F5 key everything is vanished and gives me an error message saying that ** I don't know why that happened. Have you looked at the logs in CATALINA_HOME\logs? Apache Tomcat/5.0.28 *** like you said I have checked the JAVA_HOME variable at cmd prompt, though I have set my JAVA_HOME variable at system, environment variables, it says the follwoing ** Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\ShabeerJAVA_HOME/bin/javac 'JAVA_HOME' is not recognized as an internal or external command, operable program or batch file. C:\Documents and Settings\Shabeercd\ C:\JAVA_HOME/bin/javac 'JAVA_HOME' is not recognized as an internal or external command, operable program or batch file. Ahh, you're on a windows box: Try: %JAVA_HOME%\bin\javac If you get the same message, your JAVA_HOME environment variable is not set properly. Did you install Tomcat as a Service? If so, stop the service and try starting Tomcat from the command line. If you've set your environment variable correctly and you start it from the command line, it should be able to find the compiler and thus, run your JSPs. please guide me what shall I do now, many thanks for your help, regards, raasi You said you spent 3 days reading manuals. Did you read this? http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html or any of the pages from here? http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html I think you'll find the most up to date documentation on those pages. -Ben --- Ben Souther [EMAIL PROTECTED] wrote: Hello Ben many thanks for your reply, well, My servlet is a non-packaged one, I will change it. I'm worried, if it is a packeged one how to call it from the url? and how to configure the the web.xml? In the servlet class node, fully qualify your servlet class Example: servlet-classcom.mypackage.HelloClientServlet/servlet-class Yes I have mapped my servlet in the web.xml file. this is the bit I have added in the web.xml file servlet servlet-nameHelloClientServlet/servlet-name
Re: connection pooling
Pls do the following change after context.. and u are on!! cheers On Thu, 4 Nov 2004 19:46:30 -0800, Eric Wulff [EMAIL PROTECTED] wrote: Hi all, I'm returning to a problem I couldn't solve the first time, about two months ago, and still can't seem to figure out. I can't get a db connection using connection pools. I get the exception listed below, same as so many have previously, but nothing I've found seems to works. Below are my specs. Anyone with concrete advise/direction on how to get this working? Also, I noticed in many solutions the suggestion was made to edit the myapp.xml file located at CATALINA_HOME/conf/Catalina/localhost/. However, there is no myapp.xml in that directory on my server. Just 2 .xml's related to other applications and a manager.xml which I'm not sure what it's related to. OS: FC2 Tomcat 5.0.28 exception: org.apache.commons.dbcp.SWLNestedException: Cannot create JDBC driver class '' for connect URL 'null' WEB-INF web xml: code inserted AFTER all servlet mappings... resource-ref res-ref-namejdbc/wms/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref server xml(tried this with and without a Resource name)... Context path=/wms docBase=wms debug=0 reloadable=true Resource name=jdbc/wms auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/wms parameter nameusername/name valuewhatever/value /parameter parameter namepassword/name valuewhatever/value /parameter parameter namedriverClassName/name valuecom.informix.jdbc.IfxDriver/value /parameter parameter nameurl/name valuejdbc:informix-sqli://foo.bar.com:somePort/dbName:INFORMIXSERVER=serverName/value /parameter /ResourceParams /Context I have the following jars in my CATALINA_HONE/common/lib and I also tried putting the db driver and commons-collections, dbcp, and pool in my WEB-INF/lib with no success. They are all mode 644. ant.jar ant-launcher.jar commons-collections-3.1.jar commons-dbcp-1.2.1.jar commons-el.jar commons-pool-1.2.jar ifxjdbc.jar (the necessary informix driver) jar.txt jasper-compiler.jar jasper-runtime.jar jsp-api.jar mysql-connector-java-3.0.15-ga-bin.jar naming-common.jar naming-factory.jar naming-java.jar naming-resources.jar servlet-api.jar On Fri, 8 Oct 2004 11:45:59 +0530, Atishay Kumar [EMAIL PROTECTED] wrote: hi, i am not sure but you may try downloading latest jar files for following froom tomcat site and try them out. copy the old jar files somewhere else and try using the latest jar files. 1) Commons Collections 2)Commons DBCP 3)Commons Pool On Thu, 7 Oct 2004 15:29:40 -0700, Eric Wulff [EMAIL PROTECTED] wrote: Except that the driver works for connecting if I'm not utilizing a connection pool, i.e., I am able to connect to the db and manipulate data via DriverManager.getConnection(url, db, pwd). The driver is located in CATALINA_HOME/commons/lib Eric On Thu, 7 Oct 2004 18:22:45 -0400, Phillip Qin [EMAIL PROTECTED] wrote: No, you don't need that many params. I think your problem might be the driver. Where did you drop off your informix jdbc jar? -Original Message- From: Eric Wulff [mailto:[EMAIL PROTECTED] Sent: October 7, 2004 5:56 PM To: Tomcat Users List Subject: Re: connection pooling Yes, I have added Resource name=... . Now different errors are reported via stack trace as I posted in response to Atishay's suggestion that I add this. I'll try adding your suggestions and see what happens. Also, you suggest adding many parameters. Are they necessary for simply making a connection? If so, the tutorial I'm following, 'Tomcat Kick Start' left all your suggestions out. Including the Resource tag, but that seems critical for connection. Eric On Thu, 7 Oct 2004 17:14:27 -0400, Phillip Qin [EMAIL PROTECTED] wrote: 1. web.xml: OK 2. context.xml on context of server.xml: Resource name=jdbc/test_connect auth=Container type=javax.sql.DataSource/ = have you added this? ResourceParams name=jdbc/test_connect parameter namedriverClassName/name valueyour.jdbc.driver/value /parameter parameter nameurl/name valueyour.jdbc.url/value /parameter parameter nameusername/name valueyouruser/value /parameter parameter namepassword/name valueyourpass/value /parameter parameter
{an alternative}Re: connection pooling
If adding Resouce name .../ did not work..then try following On Thu, 4 Nov 2004 19:46:30 -0800, Eric Wulff [EMAIL PROTECTED] wrote: Hi all, I'm returning to a problem I couldn't solve the first time, about two months ago, and still can't seem to figure out. I can't get a db connection using connection pools. I get the exception listed below, same as so many have previously, but nothing I've found seems to works. Below are my specs. Anyone with concrete advise/direction on how to get this working? Also, I noticed in many solutions the suggestion was made to edit the myapp.xml file located at CATALINA_HOME/conf/Catalina/localhost/. However, there is no myapp.xml in that directory on my server. Just 2 .xml's related to other applications and a manager.xml which I'm not sure what it's related to. OS: FC2 Tomcat 5.0.28 exception: org.apache.commons.dbcp.SWLNestedException: Cannot create JDBC driver class '' for connect URL 'null' WEB-INF web xml: code inserted AFTER all servlet mappings... the following shld be in web-app resource-ref descriptionMy Datasource/description res-ref-namejdbc/wms/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app !-- I am sure u have this right-- server xml(tried this with and without a Resource name)... The following shld be under Engine name=Standalone defaultHost=localhost debug=0 REplace Context path=/wms docBase=wms debug=0 reloadable=true with DefaultContext Resource name=jdbc/wms auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/wms parameter nameusername/name valuewhatever/value /parameter parameter namepassword/name valuewhatever/value /parameter parameter namedriverClassName/name valuecom.informix.jdbc.IfxDriver/value /parameter parameter nameurl/name valuejdbc:informix-sqli://foo.bar.com:somePort/dbName:INFORMIXSERVER=serverName/value /parameter /ResourceParams replace /Context with /DefaultContext !-- If this works them there is something wrong with your context. we shall figure that out later but first DefaultContext should work!! restart tommy after making changes. hope it works!! -- I have the following jars in my CATALINA_HONE/common/lib and I also tried putting the db driver and commons-collections, dbcp, and pool in my WEB-INF/lib with no success. They are all mode 644. ant.jar ant-launcher.jar commons-collections-3.1.jar commons-dbcp-1.2.1.jar commons-el.jar commons-pool-1.2.jar ifxjdbc.jar (the necessary informix driver) jar.txt jasper-compiler.jar jasper-runtime.jar jsp-api.jar mysql-connector-java-3.0.15-ga-bin.jar naming-common.jar naming-factory.jar naming-java.jar naming-resources.jar servlet-api.jar On Fri, 8 Oct 2004 11:45:59 +0530, Atishay Kumar [EMAIL PROTECTED] wrote: hi, i am not sure but you may try downloading latest jar files for following froom tomcat site and try them out. copy the old jar files somewhere else and try using the latest jar files. 1) Commons Collections 2)Commons DBCP 3)Commons Pool On Thu, 7 Oct 2004 15:29:40 -0700, Eric Wulff [EMAIL PROTECTED] wrote: Except that the driver works for connecting if I'm not utilizing a connection pool, i.e., I am able to connect to the db and manipulate data via DriverManager.getConnection(url, db, pwd). The driver is located in CATALINA_HOME/commons/lib Eric On Thu, 7 Oct 2004 18:22:45 -0400, Phillip Qin [EMAIL PROTECTED] wrote: No, you don't need that many params. I think your problem might be the driver. Where did you drop off your informix jdbc jar? -Original Message- From: Eric Wulff [mailto:[EMAIL PROTECTED] Sent: October 7, 2004 5:56 PM To: Tomcat Users List Subject: Re: connection pooling Yes, I have added Resource name=... . Now different errors are reported via stack trace as I posted in response to Atishay's suggestion that I add this. I'll try adding your suggestions and see what happens. Also, you suggest adding many parameters. Are they necessary for simply making a connection? If so, the tutorial I'm following, 'Tomcat Kick Start' left all -- :) Atishay Kumar Btech, SEM VII DA-IICT Gandhinagar - 382009 India ph: +91 9825383948 / * Learn the rules as you would need them to break them properly * / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: connection pooling
Thx for your input but, as mentioned in my previous message, I've tried this and it does not work. Also, considering my web.xml I shouldn't need this, correct? I have a resource-ref in my web.xml. Eric On Fri, 5 Nov 2004 11:01:05 +0530, Atishay Kumar [EMAIL PROTECTED] wrote: Pls do the following change after context.. and u are on!! cheers On Thu, 4 Nov 2004 19:46:30 -0800, Eric Wulff [EMAIL PROTECTED] wrote: Hi all, I'm returning to a problem I couldn't solve the first time, about two months ago, and still can't seem to figure out. I can't get a db connection using connection pools. I get the exception listed below, same as so many have previously, but nothing I've found seems to works. Below are my specs. Anyone with concrete advise/direction on how to get this working? Also, I noticed in many solutions the suggestion was made to edit the myapp.xml file located at CATALINA_HOME/conf/Catalina/localhost/. However, there is no myapp.xml in that directory on my server. Just 2 .xml's related to other applications and a manager.xml which I'm not sure what it's related to. OS: FC2 Tomcat 5.0.28 exception: org.apache.commons.dbcp.SWLNestedException: Cannot create JDBC driver class '' for connect URL 'null' WEB-INF web xml: code inserted AFTER all servlet mappings... resource-ref res-ref-namejdbc/wms/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref server xml(tried this with and without a Resource name)... Context path=/wms docBase=wms debug=0 reloadable=true Resource name=jdbc/wms auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/wms parameter nameusername/name valuewhatever/value /parameter parameter namepassword/name valuewhatever/value /parameter parameter namedriverClassName/name valuecom.informix.jdbc.IfxDriver/value /parameter parameter nameurl/name valuejdbc:informix-sqli://foo.bar.com:somePort/dbName:INFORMIXSERVER=serverName/value /parameter /ResourceParams /Context I have the following jars in my CATALINA_HONE/common/lib and I also tried putting the db driver and commons-collections, dbcp, and pool in my WEB-INF/lib with no success. They are all mode 644. ant.jar ant-launcher.jar commons-collections-3.1.jar commons-dbcp-1.2.1.jar commons-el.jar commons-pool-1.2.jar ifxjdbc.jar (the necessary informix driver) jar.txt jasper-compiler.jar jasper-runtime.jar jsp-api.jar mysql-connector-java-3.0.15-ga-bin.jar naming-common.jar naming-factory.jar naming-java.jar naming-resources.jar servlet-api.jar On Fri, 8 Oct 2004 11:45:59 +0530, Atishay Kumar [EMAIL PROTECTED] wrote: hi, i am not sure but you may try downloading latest jar files for following froom tomcat site and try them out. copy the old jar files somewhere else and try using the latest jar files. 1) Commons Collections 2)Commons DBCP 3)Commons Pool On Thu, 7 Oct 2004 15:29:40 -0700, Eric Wulff [EMAIL PROTECTED] wrote: Except that the driver works for connecting if I'm not utilizing a connection pool, i.e., I am able to connect to the db and manipulate data via DriverManager.getConnection(url, db, pwd). The driver is located in CATALINA_HOME/commons/lib Eric On Thu, 7 Oct 2004 18:22:45 -0400, Phillip Qin [EMAIL PROTECTED] wrote: No, you don't need that many params. I think your problem might be the driver. Where did you drop off your informix jdbc jar? -Original Message- From: Eric Wulff [mailto:[EMAIL PROTECTED] Sent: October 7, 2004 5:56 PM To: Tomcat Users List Subject: Re: connection pooling Yes, I have added Resource name=... . Now different errors are reported via stack trace as I posted in response to Atishay's suggestion that I add this. I'll try adding your suggestions and see what happens. Also, you suggest adding many parameters. Are they necessary for simply making a connection? If so, the tutorial I'm following, 'Tomcat Kick Start' left all your suggestions out. Including the Resource tag, but that seems critical for connection. Eric On Thu, 7 Oct 2004 17:14:27 -0400, Phillip Qin [EMAIL PROTECTED] wrote: 1. web.xml: OK 2. context.xml on context of server.xml: Resource name=jdbc/test_connect auth=Container type=javax.sql.DataSource/ = have you added this? ResourceParams name=jdbc/test_connect parameter namedriverClassName/name valueyour.jdbc.driver/value /parameter
Re: {an alternative}Re: connection pooling
This did not work. In looking for the Engine element you speak of I didn't find it exactly. I did find it with it with an extra attribute Engine name=Standalone... jvmRoute=jvm1. Furthermore, this element was nested within the Service element and there is another Engine name=Catalina... element. I tried with and without the jvmRoute element. No success. Same exception. Eric On Fri, 5 Nov 2004 11:20:26 +0530, Atishay Kumar [EMAIL PROTECTED] wrote: If adding Resouce name .../ did not work..then try following On Thu, 4 Nov 2004 19:46:30 -0800, Eric Wulff [EMAIL PROTECTED] wrote: Hi all, I'm returning to a problem I couldn't solve the first time, about two months ago, and still can't seem to figure out. I can't get a db connection using connection pools. I get the exception listed below, same as so many have previously, but nothing I've found seems to works. Below are my specs. Anyone with concrete advise/direction on how to get this working? Also, I noticed in many solutions the suggestion was made to edit the myapp.xml file located at CATALINA_HOME/conf/Catalina/localhost/. However, there is no myapp.xml in that directory on my server. Just 2 .xml's related to other applications and a manager.xml which I'm not sure what it's related to. OS: FC2 Tomcat 5.0.28 exception: org.apache.commons.dbcp.SWLNestedException: Cannot create JDBC driver class '' for connect URL 'null' WEB-INF web xml: code inserted AFTER all servlet mappings... the following shld be in web-app resource-ref descriptionMy Datasource/description res-ref-namejdbc/wms/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app !-- I am sure u have this right-- server xml(tried this with and without a Resource name)... The following shld be under Engine name=Standalone defaultHost=localhost debug=0 REplace Context path=/wms docBase=wms debug=0 reloadable=true with DefaultContext Resource name=jdbc/wms auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/wms parameter nameusername/name valuewhatever/value /parameter parameter namepassword/name valuewhatever/value /parameter parameter namedriverClassName/name valuecom.informix.jdbc.IfxDriver/value /parameter parameter nameurl/name valuejdbc:informix-sqli://foo.bar.com:somePort/dbName:INFORMIXSERVER=serverName/value /parameter /ResourceParams replace /Context with /DefaultContext !-- If this works them there is something wrong with your context. we shall figure that out later but first DefaultContext should work!! restart tommy after making changes. hope it works!! -- I have the following jars in my CATALINA_HONE/common/lib and I also tried putting the db driver and commons-collections, dbcp, and pool in my WEB-INF/lib with no success. They are all mode 644. ant.jar ant-launcher.jar commons-collections-3.1.jar commons-dbcp-1.2.1.jar commons-el.jar commons-pool-1.2.jar ifxjdbc.jar (the necessary informix driver) jar.txt jasper-compiler.jar jasper-runtime.jar jsp-api.jar mysql-connector-java-3.0.15-ga-bin.jar naming-common.jar naming-factory.jar naming-java.jar naming-resources.jar servlet-api.jar On Fri, 8 Oct 2004 11:45:59 +0530, Atishay Kumar [EMAIL PROTECTED] wrote: hi, i am not sure but you may try downloading latest jar files for following froom tomcat site and try them out. copy the old jar files somewhere else and try using the latest jar files. 1) Commons Collections 2)Commons DBCP 3)Commons Pool On Thu, 7 Oct 2004 15:29:40 -0700, Eric Wulff [EMAIL PROTECTED] wrote: Except that the driver works for connecting if I'm not utilizing a connection pool, i.e., I am able to connect to the db and manipulate data via DriverManager.getConnection(url, db, pwd). The driver is located in CATALINA_HOME/commons/lib Eric On Thu, 7 Oct 2004 18:22:45 -0400, Phillip Qin [EMAIL PROTECTED] wrote: No, you don't need that many params. I think your problem might be the driver. Where did you drop off your informix jdbc jar? -Original Message- From: Eric Wulff [mailto:[EMAIL PROTECTED] Sent: October 7, 2004 5:56 PM To: Tomcat Users List Subject: Re: connection pooling Yes, I have added Resource name=... . Now different errors are reported via stack trace as I posted in response to Atishay's suggestion that I add this. I'll try adding your suggestions and see what happens. Also, you suggest adding many parameters. Are they necessary for simply making a connection? If so, the tutorial I'm following, 'Tomcat
Re: {an alternative}Re: connection pooling
Atishay, the DefaultContext does work once I comment out the other Engine element. You mentioned that means something is wrong with my Context? So what next? many thx Eric On Thu, 4 Nov 2004 22:21:57 -0800, Eric Wulff [EMAIL PROTECTED] wrote: This did not work. In looking for the Engine element you speak of I didn't find it exactly. I did find it with it with an extra attribute Engine name=Standalone... jvmRoute=jvm1. Furthermore, this element was nested within the Service element and there is another Engine name=Catalina... element. I tried with and without the jvmRoute element. No success. Same exception. Eric On Fri, 5 Nov 2004 11:20:26 +0530, Atishay Kumar [EMAIL PROTECTED] wrote: If adding Resouce name .../ did not work..then try following On Thu, 4 Nov 2004 19:46:30 -0800, Eric Wulff [EMAIL PROTECTED] wrote: Hi all, I'm returning to a problem I couldn't solve the first time, about two months ago, and still can't seem to figure out. I can't get a db connection using connection pools. I get the exception listed below, same as so many have previously, but nothing I've found seems to works. Below are my specs. Anyone with concrete advise/direction on how to get this working? Also, I noticed in many solutions the suggestion was made to edit the myapp.xml file located at CATALINA_HOME/conf/Catalina/localhost/. However, there is no myapp.xml in that directory on my server. Just 2 .xml's related to other applications and a manager.xml which I'm not sure what it's related to. OS: FC2 Tomcat 5.0.28 exception: org.apache.commons.dbcp.SWLNestedException: Cannot create JDBC driver class '' for connect URL 'null' WEB-INF web xml: code inserted AFTER all servlet mappings... the following shld be in web-app resource-ref descriptionMy Datasource/description res-ref-namejdbc/wms/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app !-- I am sure u have this right-- server xml(tried this with and without a Resource name)... The following shld be under Engine name=Standalone defaultHost=localhost debug=0 REplace Context path=/wms docBase=wms debug=0 reloadable=true with DefaultContext Resource name=jdbc/wms auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/wms parameter nameusername/name valuewhatever/value /parameter parameter namepassword/name valuewhatever/value /parameter parameter namedriverClassName/name valuecom.informix.jdbc.IfxDriver/value /parameter parameter nameurl/name valuejdbc:informix-sqli://foo.bar.com:somePort/dbName:INFORMIXSERVER=serverName/value /parameter /ResourceParams replace /Context with /DefaultContext !-- If this works them there is something wrong with your context. we shall figure that out later but first DefaultContext should work!! restart tommy after making changes. hope it works!! -- I have the following jars in my CATALINA_HONE/common/lib and I also tried putting the db driver and commons-collections, dbcp, and pool in my WEB-INF/lib with no success. They are all mode 644. ant.jar ant-launcher.jar commons-collections-3.1.jar commons-dbcp-1.2.1.jar commons-el.jar commons-pool-1.2.jar ifxjdbc.jar (the necessary informix driver) jar.txt jasper-compiler.jar jasper-runtime.jar jsp-api.jar mysql-connector-java-3.0.15-ga-bin.jar naming-common.jar naming-factory.jar naming-java.jar naming-resources.jar servlet-api.jar On Fri, 8 Oct 2004 11:45:59 +0530, Atishay Kumar [EMAIL PROTECTED] wrote: hi, i am not sure but you may try downloading latest jar files for following froom tomcat site and try them out. copy the old jar files somewhere else and try using the latest jar files. 1) Commons Collections 2)Commons DBCP 3)Commons Pool On Thu, 7 Oct 2004 15:29:40 -0700, Eric Wulff [EMAIL PROTECTED] wrote: Except that the driver works for connecting if I'm not utilizing a connection pool, i.e., I am able to connect to the db and manipulate data via DriverManager.getConnection(url, db, pwd). The driver is located in CATALINA_HOME/commons/lib Eric On Thu, 7 Oct 2004 18:22:45 -0400, Phillip Qin [EMAIL PROTECTED] wrote: No, you don't need that many params. I think your problem might be the driver. Where did you drop off your informix jdbc jar? -Original Message- From: Eric Wulff [mailto:[EMAIL PROTECTED] Sent: October 7, 2004 5:56 PM To: Tomcat Users List Subject: Re: connection
Problems with mod_jk 1.2.6 logging
mod_jk works fine as long as the JkLogLevel is info but as soon as i change it to something like debug,Apache fails to serve any page and I get the following error in httpd log though mod_jk.log doesnt show any error. [Fri Nov 05 11:40:40 2004] [notice] Apache/2.0.52 (Unix) mod_jk/1.2.6 configured -- resuming normal operations [Fri Nov 05 11:40:40 2004] [info] Server built: Nov 5 2004 10:29:44 [Fri Nov 05 11:40:40 2004] [debug] prefork.c(955): AcceptMutex: sysvsem (default: sysvsem) [Fri Nov 05 11:40:57 2004] [error] (13)Permission denied: apr_global_mutex_lock(jk_log_lock) failed [Fri Nov 05 11:40:57 2004] [notice] child pid 27152 exit signal Segmentation fault (11) Not sure if this is the right forum for this but mod_jk is a part of tomcat-connectors so i posted it here. Kalyan __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session-timeout means tomcat restart
Hi, I'm experiencing 2 interesting problems that may be related to my session timeout. 1. It seems that when my session times out I need to restart tomcat, often just the application via reload in the manager, in order to gain access to my db again. Could this be because I've been accessing the db via jdbc hard coded in the servlet? Might using a datasource connection pool take care of this? 2. Often tomcat hangs without responding at all, to static or dynamic requests, after it's been left for an hr or more with no interaction. Might this be related to the memory leaks I hear about? thx Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fw: Re: Problem with Tomcat 4.1 Charset - Resolved!
Hi List! My problem with the appended charset is resolved, thanks to Mark Sutton who sent me his solution and told me to share it with the list if it worked out! So after I deinstalled Tomcat 4.1.30 and turned to the new production release 5.0 everyhting worked fine! And I can definitly say that IE can not cope with Content-Type: application/pdf; charset=ISO-8859-1 it looks like it was a bug in the tomcat-server, so thanks for your time and if somebody else has this problem: An update helps! Greats Mathias Begin forwarded message: Date: Thu, 4 Nov 2004 13:53:57 + From: Mark Sutton [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: Re: Problem with Tomcat 4.1 Charset Hi I am having problems posting to the list so I thought I would mail you directly. I had a similar problem with PDFs and it seemed to be this bug: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24970 that was causing the problem. I wasn't aware that this was a Windows-only bug though. This bug was not present in 4.1.27 and only manifested itself when I tried 4.1.29. It doesn't cause problems with version 5.0.x. If this helps, then you might want to post back to the list. Mark - Forwarded by Mark Sutton/LDN/FIMAT on 04/11/2004 13:51 - Mathias Payer mathias.payer@ To: Tomcat Users List [EMAIL PROTECTED] gmgnet.li cc: Subject: Re: Problem with Tomcat 4.1 Charset 03/11/2004 17:45 Please respond to Tomcat Users List Hi Yoav, thanks for your suggestion, but I already tried that! ( esponse.setHeader(Content-disposition,inline;filename=generated.pdf ); ) But this does not work on all browsers! On some IE Versions the adobe-plugin is loaded (you see the splash-screen) and then the page remains white. No PDF and no adobe is displayed! So this does not work either! But if I use content-disposition on the linux-server it works (as it worked without content disposition) I use the exact same files on the exact same data. When I save the files look for the difference the only thing I find is the additional charset= ... on the non working version. Greats Mathias On Wed, 3 Nov 2004 12:34:28 -0500 Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, You're barking up the wrong (but only slightly wrong) tree. Instead of messing with the charset stuff, make sure to set a content-disposition header on your response. Google for it if you're not sure what it is: it's simple and there are tons of examples online. This is the only way to ensure somewhat consistent behavior across browsers for this use-case. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Mathias Payer [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 03, 2004 12:20 PM To: [EMAIL PROTECTED] Subject: Problem with Tomcat 4.1 Charset Hi List! I've got a big problem to solve. On a windows server I installed an acutal jsdk and tomcat 4.1. Now I developed a jsp-Servlet that sets it's content-type to application/pdf and only writes pdf-data out. If I run this on my testserver with tomcat 4.0 (debian/linux) everything runs fine and Internet Explorer is able to open the pdf. But if I merge to the production server (tomcat 4.1/win 2k3) (- not my choice :) ) and try to acces the exact same page I get a funny error! Internet Explorer tells me to save the file to disc! It took me a long time to figure out that the only difference is in the headers! = The Linux Machine wirtes: Content-Type: application/pdf = The Windows Machine wirtes: C ontent-Type: application/pdf;charset=ISO-8859-1 Because of this additional charset Internet Explorer is no longer able to start the pdf-Viewer and display the file inline. Attached are some snips from the code: --SNIP-- //response.setHeader(Content-disposition,inline; filename=generated.pdf); //
AW: {an alternative}Re: connection pooling
HI Eric, I have seen the same error your are getting. I am using tomcat 5.0.28. Make sure that you have removed the expanded war directories, from webapps and ${CATALINA_HOME}/work before restarting. Also look inside those other context.xmls inside ${CATALINA_HOME}/conf/Catalina/localhost and make sure that they do not define a context with path=/wms. Cheers, nick. -Ursprungliche Nachricht- Von: Eric Wulff [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 5. November 2004 07:35 An: Atishay Kumar Cc: Tomcat Users List Betreff: Re: {an alternative}Re: connection pooling Atishay, the DefaultContext does work once I comment out the other Engine element. You mentioned that means something is wrong with my Context? So what next? many thx Eric On Thu, 4 Nov 2004 22:21:57 -0800, Eric Wulff [EMAIL PROTECTED] wrote: This did not work. In looking for the Engine element you speak of I didn't find it exactly. I did find it with it with an extra attribute Engine name=Standalone... jvmRoute=jvm1. Furthermore, this element was nested within the Service element and there is another Engine name=Catalina... element. I tried with and without the jvmRoute element. No success. Same exception. Eric On Fri, 5 Nov 2004 11:20:26 +0530, Atishay Kumar [EMAIL PROTECTED] wrote: If adding Resouce name .../ did not work..then try following On Thu, 4 Nov 2004 19:46:30 -0800, Eric Wulff [EMAIL PROTECTED] wrote: Hi all, I'm returning to a problem I couldn't solve the first time, about two months ago, and still can't seem to figure out. I can't get a db connection using connection pools. I get the exception listed below, same as so many have previously, but nothing I've found seems to works. Below are my specs. Anyone with concrete advise/direction on how to get this working? Also, I noticed in many solutions the suggestion was made to edit the myapp.xml file located at CATALINA_HOME/conf/Catalina/localhost/. However, there is no myapp.xml in that directory on my server. Just 2 .xml's related to other applications and a manager.xml which I'm not sure what it's related to. OS: FC2 Tomcat 5.0.28 exception: org.apache.commons.dbcp.SWLNestedException: Cannot create JDBC driver class '' for connect URL 'null' WEB-INF web xml: code inserted AFTER all servlet mappings... the following shld be in web-app resource-ref descriptionMy Datasource/description res-ref-namejdbc/wms/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app !-- I am sure u have this right-- server xml(tried this with and without a Resource name)... The following shld be under Engine name=Standalone defaultHost=localhost debug=0 REplace Context path=/wms docBase=wms debug=0 reloadable=true with DefaultContext Resource name=jdbc/wms auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/wms parameter nameusername/name valuewhatever/value /parameter parameter namepassword/name valuewhatever/value /parameter parameter namedriverClassName/name valuecom.informix.jdbc.IfxDriver/value /parameter parameter nameurl/name valuejdbc:informix-sqli://foo.bar.com:somePort/dbName:INFORMIXSER VER=serverName/value /parameter /ResourceParams replace /Context with /DefaultContext !-- If this works them there is something wrong with your context. we shall figure that out later but first DefaultContext should work!! restart tommy after making changes. hope it works!! -- I have the following jars in my CATALINA_HONE/common/lib and I also tried putting the db driver and commons-collections, dbcp, and pool in my WEB-INF/lib with no success. They are all mode 644. ant.jar ant-launcher.jar commons-collections-3.1.jar commons-dbcp-1.2.1.jar commons-el.jar commons-pool-1.2.jar ifxjdbc.jar (the necessary informix driver) jar.txt jasper-compiler.jar jasper-runtime.jar jsp-api.jar mysql-connector-java-3.0.15-ga-bin.jar naming-common.jar naming-factory.jar naming-java.jar naming-resources.jar servlet-api.jar On Fri, 8 Oct 2004 11:45:59 +0530, Atishay Kumar [EMAIL PROTECTED] wrote: hi, i am not sure but you may try downloading latest jar files for following froom tomcat site and try them out. copy the old jar files somewhere else and try using the latest jar files. 1) Commons Collections 2)Commons DBCP 3)Commons Pool On Thu, 7 Oct 2004 15:29:40 -0700, Eric Wulff [EMAIL PROTECTED] wrote: Except that the driver works for connecting if I'm not utilizing a connection pool, i.e., I am able to connect to the db