NT Service shutsdown unexpectedly
My setup is Win2k server, Tomcat 4.1.24 installed as a Windows Service, IIS 5, JSDK 1.4.1_02. I'm using the JK2 connector and here's the copy of my workers2.properties. # change this to your own location [shm] file=D:/Program Files/Apache Group/Tomcat 4.1/temp/shm.txt size=1048576 # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 [logger.file:0] level=INFO file=D:/Program Files/Apache Group/Tomcat 4.1/logs/iis_jk2.log # uses the newly created File logger as the default one.. [workerEnv:] logger=logger.file:0 # Map the Tomcat examples webapp to the Web server uri space [uri:/axis/services/AuthService*] [uri:/policeAdmin/*] [uri:/ccWeb/*] [uri:/manager/*] I've developed a Struts based app that uses the Commons Connection Pool to read/ write data from an Oracle database. Everything works fine when I'm testing the app by myself. The only slightly puzzling thing is that I get a stream of errors logged from the ISAPI filter - typical messages are: Thu Feb 12 09:51:24 2004] (error ) [jk_worker_ajp13.c (416)] ajp13.service() ajpGetReply recoverable error 12 [Thu Feb 12 09:51:24 2004] (error ) [jk_channel_socket.c (557)] channelSocket.receive(): Error receiving message body -1 0 [Thu Feb 12 09:51:24 2004] (error ) [jk_workerEnv.c (482)] workerEnv.processCallbacks() Error reading reply So far I've ignored these - because everything seems to work. Can anyone tell me how to stop these messages? However - when I increase the load on the site in stress testing - the Tomcat service unexpectedly shutsdown. This is repeatable. I get a Dr Watson in the event viewer log - but no indications of any other error in the Tomcat logs But if I run Tomcat from the command line there is no problem - the site copes well with the extra load. I've noticed that have been other posts describing similar behaviour. Is this a reported bug? Is there a cure? Thanks in advance Tariq - BT Yahoo! Broadband - Free modem offer, sign up online today and save £80
Re: How to write to a properties file
Hi Yoav One possible alternative is to have the properties file outside the webapp (or better yet, change from properties file to a database?), and configure the location of the file using one of the above approaches. That way you can still deploy a packed WAR, write/update the properties file, and (if you use the JNDI approach) the server admin can control the location of the file. What an amazing fountain of knowledge you are (!) I have a special email rule just to highlight your messages, and I am utterly humbled by your energy and goodwill on this site. Have a great week-end! Regards Harry Mantheakis London, UK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TC 5.0.18 RequestDespatcher bug?
I think that there may be a bug in TC 5.0.18 when issuing a RequestDespatcher.forward with an URL that has the jsessionid encoded in the URL. My setup is RH 8, JDK 1.4.2_03 + Apache 1.3.29 + mod_jk + TC 5.0.18. I have a servlet (mapped in web.xml to /home/*) which catches all URLs starting with /home/. The servlet looks at the URL to work out which JSP page to render by forwarding to it. The service method code is as follows: String fwdURL = /en/home/welcome.jsp; //create the request dispatcher (for the new URL) RequestDispatcher rqdD = request.getRequestDispatcher(response.encodeURL(fwdURL)); //and forward the request rqdD.forward(request, response); Here is the error produced by TC HTTP Status 404 - /en/home/welcome.jsp;jsessionid=35CC14009BCF7CCED835634586378F46 type Status report message /en/home/welcome.jsp;jsessionid=35CC14009BCF7CCED835634586378F46 description The requested resource (/en/home/welcome.jsp;jsessionid=35CC14009BCF7CCED835634586378F46) is not available. Apache Tomcat/5.0.18 Is this a bug, or am I doing something wrong. Maybe I should not be encoding the forwarded URL. The bug manifests itself when switching from an SSL to a non-SSL connection, or when cookies are turned off. Thanks for any help. John Sidney-Woollett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS5 and Tomcat5
Hello, I have Tomact installed on a W2K server. When I start the Tomcat service the service stops after a short time and wrote some messages in the stderr.log file. This is a copy of the stderr.log file - Feb 12, 2004 2:41:59 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 360 column 9: The element type Context must be terminated by the matching end-tag /Context. org.xml.sax.SAXParseException: The element type Context must be terminated by the matching end-tag /Context. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:532) at org.apache.catalina.startup.Catalina.load(Catalina.java:570) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397) Who can tell me wich file is the syntax wrong? Greetings Jake DeVries - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IIS5 and Tomcat5
Hello Jacob, Check your server.xml and look for Context ... It must be closed by either Context... / or Context ... /Context Cheers, Johan -Original Message- From: Vries, Jakob de [mailto:[EMAIL PROTECTED] Sent: 13 February 2004 11:35 To: [EMAIL PROTECTED] Subject: IIS5 and Tomcat5 Hello, I have Tomact installed on a W2K server. When I start the Tomcat service the service stops after a short time and wrote some messages in the stderr.log file. This is a copy of the stderr.log file - Feb 12, 2004 2:41:59 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 360 column 9: The element type Context must be terminated by the matching end-tag /Context. org.xml.sax.SAXParseException: The element type Context must be terminated by the matching end-tag /Context. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:532) at org.apache.catalina.startup.Catalina.load(Catalina.java:570) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397) Who can tell me wich file is the syntax wrong? Greetings Jake DeVries - 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: TC 5.0.18 RequestDespatcher bug?
Without digging, I can't say if its a bug. BUT... There is no need to encode the URL if the action is a RequestDispatcher.forward(). Only one session may be associated with the live of a single request so once the session is there in the request, its there no matter how many times in the same request you do a RequestDispatcher.forward(). Encoding the URL is only needed for sending redirects back to the client or for links on pages. (When the client is not accpeting cookies or hasn't yet receieved its first cookie) -Tim John Sidney-Woollett wrote: I think that there may be a bug in TC 5.0.18 when issuing a RequestDespatcher.forward with an URL that has the jsessionid encoded in the URL. My setup is RH 8, JDK 1.4.2_03 + Apache 1.3.29 + mod_jk + TC 5.0.18. I have a servlet (mapped in web.xml to /home/*) which catches all URLs starting with /home/. The servlet looks at the URL to work out which JSP page to render by forwarding to it. The service method code is as follows: String fwdURL = /en/home/welcome.jsp; //create the request dispatcher (for the new URL) RequestDispatcher rqdD = request.getRequestDispatcher(response.encodeURL(fwdURL)); //and forward the request rqdD.forward(request, response); Here is the error produced by TC HTTP Status 404 - /en/home/welcome.jsp;jsessionid=35CC14009BCF7CCED835634586378F46 type Status report message /en/home/welcome.jsp;jsessionid=35CC14009BCF7CCED835634586378F46 description The requested resource (/en/home/welcome.jsp;jsessionid=35CC14009BCF7CCED835634586378F46) is not available. Apache Tomcat/5.0.18 Is this a bug, or am I doing something wrong. Maybe I should not be encoding the forwarded URL. The bug manifests itself when switching from an SSL to a non-SSL connection, or when cookies are turned off. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing tomcat 5 on BSD 5
The native JDK 1.4 is doing very well (and is fast) on FreeBSD. If you have the time to compile it I would suggest you try that one. I'm using it a lot, without problems. See also the [EMAIL PROTECTED] for more info about this. Greetings, Ronald. On Thu Feb 12 13:50:41 CET 2004 Thomas Cherry [EMAIL PROTECTED] wrote: Do you know which versions of java are required for each of the versions of Tomcat (3, 4, 5)? Specifically, which will run under 1.1.8? Upgrading my java is not a trivial task, I will have to compile my own copy of jdk. -- It is pointless to resist. - Darth Vader, Sith Lord On Feb 12, 2004, at 7:43 AM, Arnab Chakravarty wrote: Bad major version numbers are result of classes compiled on 2 different version of jdk. Please upgrade you jvm and then see if it helps (preferable jdk1.4 and up). Arnab C -Original Message- From: Thomas Cherry [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 5:42 PM To: Tomcat Users List Subject: Installing tomcat 5 on BSD 5 I'm trying to install tomcat onto a new FreeBSD system but I am getting an error when I try to start the server. After modifying setclasspath.sh to output more information and to use classes.zip, I ran catalina.sh and got the following output: # ./catalina.sh run Using CATALINA_BASE: /usr/local/jakarta-tomcat-5.0.18 Using CATALINA_HOME: /usr/local/jakarta-tomcat-5.0.18 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-5.0.18/temp Using JAVA_HOME: /usr/local/jdk1.1.8 Using CLASSPATH: /usr/local/jdk1.1.8/lib/classes.zip:/usr/local/jakarta-tomcat-5.0.18/ bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.18/bin/commons-logging- api.jar Error loading class org.apache.catalina.startup.Bootstrap: Bad major version number My java version is 1.1.8. Will Tomcat 5 run under this version of java? (I'm starting to think no) -- The ability to destroy a planet is insignificant next to the power of the Force. -Darth Vader, Sith Lord. - 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]
Multiple Server-Users
How do you setup Tomcat for an ISP, that offers Tomcat services to it's user? o Have different Tomcat installations for each user. That would cost lots of memory. o Put Context configuration XML files for each user to $TOMCAT_HOME/conf/Catalina/localhost This should work, but there would only be one context per user and I am not sure, how good the separation between users were. I think, one user could grab all the cpu time from the others. And, how could you restrict tomcat manager to only one's own context? What would be best? Thanks, Juergen __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Switching off logging
I'm using log4j in my web app - and that's all working fine - but strangely I'm also getting some log messages in stdout. Do I need to set the level for the root logger? If so - could someone show me how. On a related issue - if I'm running Tomcat (on Windows) from the command line - is there a way to specify where I want stdout and stderr to go? Thanks - BT Yahoo! Broadband - Free modem offer, sign up online today and save £80
RE: Multiple Server-Users
There is no general answer to that. It depends on the structure of the customers that use tomcat. Just 2 completely different use cases: You use a fixed set of applications and sell them as a service to the costomers. That may be case for one tomcat for several customers. You sell webspace and let the user do what they wan't (install applications, upload jsp's, ...) For me, that's a clear case for separate tomcat instances. In my experience the raw memory consumption for several instances is not the problem (unless you have only webapps that have just small footprints). The most part of the memory usage comes from the application and this will nearly be the same between both solutions. Depending on what you want to offer you might even have different environments for certain user profiles. One tomcat to serve simple webapps and several tomcats with one application each for highend customers. -Original Message- From: Juergen Weber [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 1:24 PM To: [EMAIL PROTECTED] Subject: Multiple Server-Users How do you setup Tomcat for an ISP, that offers Tomcat services to it's user? o Have different Tomcat installations for each user. That would cost lots of memory. o Put Context configuration XML files for each user to $TOMCAT_HOME/conf/Catalina/localhost This should work, but there would only be one context per user and I am not sure, how good the separation between users were. I think, one user could grab all the cpu time from the others. And, how could you restrict tomcat manager to only one's own context? What would be best? Thanks, Juergen __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - 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]
SHUTDOWN OF TOMCAT 4.1 .29 and LOAD-ON-START-UP
Hi , I am working with tomcat4.1.29 standalone .I need to run it on UNIX,Linux and Windows . My webapplication has a servlet which loads on startup .This servlet starts a thread When i shutdown tomcat using shutdown.bat in windows or using the .sh in unix ,the tomcat console does not close . When i remove the load on startup and start the application via the browser to start the thread and then issue shutdown .bat , tomcat shuts down without hanging Can you please give a solution to get me out of this problem in both Windows and Unix . Your immediate response will be of immese help I also tried stopping the thread in the destroy method of the servlet but still the shutdown hangs ..(the port 8080 is released thou ) Thanks and Regards Mukund
RE: SHUTDOWN OF TOMCAT 4.1 .29 and LOAD-ON-START-UP
Start thread as deamon. For details search the archive or google. -Original Message- From: MUKUND Premchander [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 1:52 PM To: [EMAIL PROTECTED] Subject: SHUTDOWN OF TOMCAT 4.1 .29 and LOAD-ON-START-UP My webapplication has a servlet which loads on startup .This servlet starts a thread When i shutdown tomcat using shutdown.bat in windows or using the .sh in unix ,the tomcat console does not close . When i remove the load on startup and start the application via the browser to start the thread and then issue shutdown .bat , tomcat shuts down without hanging - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: java.sql.SQLException: No suitable driver
Hello Dan, I finally got it to work. The problem is that for directories in webapps a Context is automatically created, even if it is already declared in server.xml. The automatically created Contexts do NOT contain the context specific configuration of server.xml. The outcome is that a) a context is created twice and b) for the second instance the resources are not found. The addition of deployOnStartup=false on all of my Host elements solved my problem. Thanks for your help. Regards, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SHUTDOWN OF TOMCAT 4.1 .29 and LOAD-ON-START-UP
Howdy, Make sure you interrupt and/or destroy your thread properly under all circumstances. The destroy method of a servlet is one good place to do this, so maybe there's a bug in the code you put there? Yoav Shapira Millennium ChemInformatics -Original Message- From: MUKUND Premchander [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 7:52 AM To: [EMAIL PROTECTED] Subject: SHUTDOWN OF TOMCAT 4.1 .29 and LOAD-ON-START-UP Hi , I am working with tomcat4.1.29 standalone .I need to run it on UNIX,Linux and Windows . My webapplication has a servlet which loads on startup .This servlet starts a thread When i shutdown tomcat using shutdown.bat in windows or using the .sh in unix ,the tomcat console does not close . When i remove the load on startup and start the application via the browser to start the thread and then issue shutdown .bat , tomcat shuts down without hanging Can you please give a solution to get me out of this problem in both Windows and Unix . Your immediate response will be of immese help I also tried stopping the thread in the destroy method of the servlet but still the shutdown hangs ..(the port 8080 is released thou ) Thanks and Regards Mukund 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: How to write to a properties file
Howdy, What an amazing fountain of knowledge you are (!) I have a special email rule just to highlight your messages, and I am utterly humbled by your energy and goodwill on this site. Wow ;) Thanks, and have a good weekend. Yoav Shapira 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 Server-Users
Howdy, Just 2 completely different use cases: You use a fixed set of applications and sell them as a service to the costomers. That may be case for one tomcat for several customers. You sell webspace and let the user do what they wan't (install applications, upload jsp's, ...) For me, that's a clear case for separate tomcat instances. That, and memory is cheap for ISPs. Yoav Shapira 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: IIS5 and Tomcat5
Feb 12, 2004 2:41:59 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 360 column 9: The element type Context must be terminated by the matching end-tag /Context. org.xml.sax.SAXParseException: The element type Context must be terminated by the matching end-tag /Context. Judging by your error message, your webapp's context xml file or your server.xml file has an error. Check for case match and spelling errors in the Context begin and end tags as well as the immediate child elements of Context. Also be sure quotes opened in tag attributes are closed. I can't count the number of times where I forgot a quote, opened an element when I meant to close it, or just misspelled the element all together. NetBeans IDE or some other xml highlighting text editor should be able to help find the problem. --David Hello, I have Tomact installed on a W2K server. When I start the Tomcat service the service stops after a short time and wrote some messages in the stderr.log file. This is a copy of the stderr.log file - Feb 12, 2004 2:41:59 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 360 column 9: The element type Context must be terminated by the matching end-tag /Context. org.xml.sax.SAXParseException: The element type Context must be terminated by the matching end-tag /Context. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:532) at org.apache.catalina.startup.Catalina.load(Catalina.java:570) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397) Who can tell me wich file is the syntax wrong? Greetings Jake DeVries - 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: Switching off logging
Howdy, I'm using log4j in my web app - and that's all working fine - but strangely I'm also getting some log messages in stdout. Do I need to set the level for the root logger? If so - could someone show me how. That's because not all of tomcat uses commons-logging. Some parts still use tomcat's own loggers, including those that write to stdout (catalina.out by default). On a related issue - if I'm running Tomcat (on Windows) from the command line - is there a way to specify where I want stdout and stderr to go? http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/logger.html You probably want to set verbosity to zero, if you keep the Loggers at all. Also note the swallowOutput attribute of the Context element: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html as you probably want to set this to true. Yoav Shapira 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 hangs
Howdy, No. I've not been able to isolate the bug well enough to reproduce it, so there's nothing to test with. I have only observed the vulnerability in our current production server. I've since disabled access for the IP range that was generating the problematic http requests. Fair enough ;) If you have spare time and/or a test a server, consider trying a later tomcat version such as 4.1.29 or 5.0.18. You can probably use JMeter to simulate some/most of the HTTP request headers from your problematic clients. Yoav Shapira 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: SHUTDOWN OF TOMCAT 4.1 .29 and LOAD-ON-START-UP
Hi, Thank you for your inputs. I have interrupted and destoryed the thread in the destroy method but the shutdown does not happen completely and the console hangs . I am not able to understand why I don't get this problem when I do not use load on start up for the servlet. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 7:19 PM To: Tomcat Users List Subject: RE: SHUTDOWN OF TOMCAT 4.1 .29 and LOAD-ON-START-UP Howdy, Make sure you interrupt and/or destroy your thread properly under all circumstances. The destroy method of a servlet is one good place to do this, so maybe there's a bug in the code you put there? Yoav Shapira Millennium ChemInformatics -Original Message- From: MUKUND Premchander [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 7:52 AM To: [EMAIL PROTECTED] Subject: SHUTDOWN OF TOMCAT 4.1 .29 and LOAD-ON-START-UP Hi , I am working with tomcat4.1.29 standalone .I need to run it on UNIX,Linux and Windows . My webapplication has a servlet which loads on startup .This servlet starts a thread When i shutdown tomcat using shutdown.bat in windows or using the .sh in unix ,the tomcat console does not close . When i remove the load on startup and start the application via the browser to start the thread and then issue shutdown .bat , tomcat shuts down without hanging Can you please give a solution to get me out of this problem in both Windows and Unix . Your immediate response will be of immese help I also tried stopping the thread in the destroy method of the servlet but still the shutdown hangs ..(the port 8080 is released thou ) Thanks and Regards Mukund 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: SHUTDOWN OF TOMCAT 4.1 .29 and LOAD-ON-START-UP
Howdy, I have interrupted and destoryed the thread in the destroy method but the shutdown does not happen completely and the console hangs . I am not able to understand why I don't get this problem when I do not use load on start up for the servlet. It's strange indeed ;) Tomcat doesn't do anything different when you specify load-on-startup for a servlet except construct and initialize an instance of it. The lifecycle is exactly the same, no special processing. If you send the JVM a SIGQUIT after trying to shut it down, i.e. when it's hung, what active threads are showing? Yoav Shapira 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: Re: done did not found a worker
Sorry was a little crazy yesterday with everything going on. I was able to get the mod_jk and mod_jk2 source I have mod_jk1 compiled, just looking around now to see if I need to or should switch from 1 to 2. From: Charles Daniel [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Re: done did not found a worker Date: Thu, 12 Feb 2004 19:21:48 -0600 Hi Dwayne, If I remember from my own experience then mod_jk binaries are only available for Solaris. Others have tried to use these and got the error that read something like ... encoding not little-endian. To avoid this, get the jk module from source or CSV that is appropriate for your operating system. You'll need to compile whatever version you need. Osensei - Original Message - From: Dwayne Ghantmailto:[EMAIL PROTECTED] To: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 9:17 AM Subject: Fwd: Re: done did not found a worker I have tried to go to http://jakarta.apache.org/site/binindex.cgihttp://jakarta.apache.org/site/binindex.cgi and download mod_jk 1.2 , it's not available. Does anybody know how I can get mod_jk1.2 ? David O'Brien wrote: If you are using mod_jk and NOT mod_jk2 then this file's content makes no difference in your configuration. You need to tell apache to use the workers.properties NOT the workers2.properties in your httpd.conf file -Dave At 11:58 AM 2/10/2004, you wrote: But Dave you didn't address this stuff below? I think this is where I'm having the most problems. ##= ##Other needed configuratoin(s) ##= ##define the shared memory file [shm] file=/usr/local/tomcat-4.1.24/work/jk2.shm file=1048576 ## Define the communication channel [channel.socket:localhost:8009] #tomcatId=localhost:8009 port=8009 host=127.0.0.1 #define the worker [balance_all_workers:localhost:8009] channel=channel.socket:localhost:8009 #Uri mapping [uri:saturn.temple.edu/examples/*] #worker=ajp13:localhost:8009 worker=balance_all_workers:localhost:8009 [uri:saturn.temple.edu/developers/*] #worker=ajp13:localhost:8009 worker=balance_all_workers:localhost:8009 [uri:saturn.temple.edu/product/*] #worker=ajp13:localhost:8010 worker=balance_all_workers:localhost:8010 [uri:saturn.temple.edu/uPortal/*] #worker=ajp13:localhost:8010 worker=balance_all_workers:localhost:8010 #[status:] #info=Status worker, displays runtime information channel=channel.socket:localhost:8009 #[uri:/status/*] #worker=status:localhost:8009 #group=status: David Rees wrote: Dwayne Ghant wrote, On 2/9/2004 7:02 PM: Dave, I have been having semular issues would it be impossible for to post the four files listed below: 1. http.conf 2. ssl.conf 3. server.xml 4. workers2.properties Here's a sample for setting up Apache. This will work on either Apache 2.0.X or Apache 1.3.X, and mod_jk 1.2.5. Any version of Tomcat will work, use the example connector config included with every default server.xml as it varies a little between Tomcat versions. httpd.conf # This only shows the portions relevant to mod_jk, you should stick the # lines somewhere in your config file. This config also works for # Apache 1.3.X as well as Apache 2.0.X. --- LoadModule jk_module modules/mod_jk.so JkWorkersFile path-to-apache-conf/tomcat_workers.properties JkLogFile path-to-apache-logs/mod_jk.log JkLogLevel error VirtualHost *:80 ServerName www.example.comhttp://www.example.com/ JkMount /*.jsp tomcat JkMount /servlet/* tomcat /VirtualHost --- path-to-apache-conf/tomcat_workers.properties --- worker.list=tomcat worker.tomcat.port=8007 worker.tomcat.host=localhost worker.tomcat.type=ajp13 --- That's it! -Dave aka the mod_jk expert NOT a mod_jk2 expert! - To unsubscribe, e-mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] David G. O'Brien Web Services Coordinator / Systems Administrator NACCRRA The Nation's Network of Child Care Resource Referral 1319 F Street NW, Suite 500 Washington, DC 20004 (202) 393-5501
Re: TC 5.0.18 RequestDespatcher bug?
Tim Funk said: Without digging, I can't say if its a bug. BUT... There is no need to encode the URL if the action is a RequestDispatcher.forward(). Only one session may be associated with the live of a single request so once the session is there in the request, its there no matter how many times in the same request you do a RequestDispatcher.forward(). Encoding the URL is only needed for sending redirects back to the client or for links on pages. Thanks for the clarification - I'll remove the call to URLEncode for these situations. Might still be a bug though... ;) John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC 5.0.18 RequestDespatcher bug?
Path parameters are not defined in section 8 of the spec but query string handling is. The ommision of discussing path parameters leads me to believe (ok interpret) that path info is not allowed for RequestDispathers. -Tim John Sidney-Woollett wrote: Tim Funk said: Without digging, I can't say if its a bug. BUT... There is no need to encode the URL if the action is a RequestDispatcher.forward(). Only one session may be associated with the live of a single request so once the session is there in the request, its there no matter how many times in the same request you do a RequestDispatcher.forward(). Encoding the URL is only needed for sending redirects back to the client or for links on pages. Thanks for the clarification - I'll remove the call to URLEncode for these situations. Might still be a bug though... ;) John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp deployment
Good suggestions, but, no, didn't work. There are no config issues preventing Tomcat from serving files from my webapp---html and servlets all work. And I know Tomcat is serving jsp files correctly; Tomcat's default examples work. Tomcat simply will not serve my .jsp file regardless of filetype (tried it as .txt). Permissions and file ownership are identical to the permissions of the Tomcat example .jsp files, which do work. I restart Tomcat everytime I make a change. Still get the 404 when I call the jsp, even though the html files in the same directory work fine, as do the servlets in the same webapp space. Jerry Parsons Technical Services wrote: Jerry, Just for a test, change the file name to end with .txt and see if the page is displayed. If it still fails. I would double check the permissions/ownership on that file. If it works, then try a restart. After a restart if it still fails, check your configs for an entry that might be blocking or redirecting the request. Just a novice throwing out ideas. Doug Parsons www.parsonstechnical.com - Original Message - From: Jerry Ford [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 12, 2004 2:33 PM Subject: Re: jsp deployment Permissions on the .jsp file are identical to permissions on all of the html, javascript, and servlet class files in the webapp, all of which work: -rw--r--r-- owner/group is jford:user (which is the uid under which tomcat was started). And I know it will serve .jsp's, the Tomcat example .jsp's all work. Jerry QM wrote: : Tomcat chokes when the jsp is requested. I get a 404 : error, the requested resoruce is not available. : : What do I need to configure to get Tomcat to serve the jsp? Chances are it's a permissions issue on the file. (Unless you've tweaked Tomcat's config, it should already be able to serve JSPs.) -QM - 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]
Can't get JSP's to recompile under 5.0.18
I have tried to change one of the jsp-examples JSP's to see if I can get the recompile to work, and it does not. I am running 5.0.18 on WinXP. Here is (what I believe to be) the relevant portion of the web.xml file: servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namefork/param-name param-valuefalse/param-value /init-param init-param param-namecheckInterval/param-name param-value10/param-value /init-param init-param param-namedevelopment/param-name param-valuetrue/param-value /init-param init-param param-namereloading/param-name param-valuetrue/param-value /init-param init-param param-namexpoweredBy/param-name param-valuefalse/param-value /init-param load-on-startup3/load-on-startup /servlet Any pointers on what I may be missign would be appreciated. Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp deployment
Hi all, Do the logs give any indication as to where Tomcat is looking for the jsp files? A 404 error does not sound like a permissions problem. It sounds like a context setting might be off somewhere. Thomas Jerry Ford [EMAIL PROTECTED] 02/13/2004 11:03 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: jsp deployment Good suggestions, but, no, didn't work. There are no config issues preventing Tomcat from serving files from my webapp---html and servlets all work. And I know Tomcat is serving jsp files correctly; Tomcat's default examples work. Tomcat simply will not serve my .jsp file regardless of filetype (tried it as .txt). Permissions and file ownership are identical to the permissions of the Tomcat example .jsp files, which do work. I restart Tomcat everytime I make a change. Still get the 404 when I call the jsp, even though the html files in the same directory work fine, as do the servlets in the same webapp space. Jerry Parsons Technical Services wrote: Jerry, Just for a test, change the file name to end with .txt and see if the page is displayed. If it still fails. I would double check the permissions/ownership on that file. If it works, then try a restart. After a restart if it still fails, check your configs for an entry that might be blocking or redirecting the request. Just a novice throwing out ideas. Doug Parsons www.parsonstechnical.com - Original Message - From: Jerry Ford [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 12, 2004 2:33 PM Subject: Re: jsp deployment Permissions on the .jsp file are identical to permissions on all of the html, javascript, and servlet class files in the webapp, all of which work: -rw--r--r-- owner/group is jford:user (which is the uid under which tomcat was started). And I know it will serve .jsp's, the Tomcat example .jsp's all work. Jerry QM wrote: : Tomcat chokes when the jsp is requested. I get a 404 : error, the requested resoruce is not available. : : What do I need to configure to get Tomcat to serve the jsp? Chances are it's a permissions issue on the file. (Unless you've tweaked Tomcat's config, it should already be able to serve JSPs.) -QM - 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: jsp deployment
Jerry Ford wrote: Good suggestions, but, no, didn't work. There are no config issues preventing Tomcat from serving files from my webapp---html and servlets all work. And I know Tomcat is serving jsp files correctly; Tomcat's default examples work. Have you tried run your jsp file directly from Tomcat instead of via Apache? How about you copy one of the jsp files from the example jsp files to this directory to see it still works? I think your problem is just very trivial, somewhere wrong. Best Bao Tomcat simply will not serve my .jsp file regardless of filetype (tried it as .txt). Permissions and file ownership are identical to the permissions of the Tomcat example .jsp files, which do work. I restart Tomcat everytime I make a change. Still get the 404 when I call the jsp, even though the html files in the same directory work fine, as do the servlets in the same webapp space. Jerry Parsons Technical Services wrote: Jerry, Just for a test, change the file name to end with .txt and see if the page is displayed. If it still fails. I would double check the permissions/ownership on that file. If it works, then try a restart. After a restart if it still fails, check your configs for an entry that might be blocking or redirecting the request. Just a novice throwing out ideas. Doug Parsons www.parsonstechnical.com - Original Message - From: Jerry Ford [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 12, 2004 2:33 PM Subject: Re: jsp deployment Permissions on the .jsp file are identical to permissions on all of the html, javascript, and servlet class files in the webapp, all of which work: -rw--r--r-- owner/group is jford:user (which is the uid under which tomcat was started). And I know it will serve .jsp's, the Tomcat example .jsp's all work. Jerry QM wrote: : Tomcat chokes when the jsp is requested. I get a 404 : error, the requested resoruce is not available. : : What do I need to configure to get Tomcat to serve the jsp? Chances are it's a permissions issue on the file. (Unless you've tweaked Tomcat's config, it should already be able to serve JSPs.) -QM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp deployment
Logs show class-not-found exception for open.jsp. Which brings me back to my original question---what do I need to configure to let Tomcat know about this jsp? It already knows where my webapp is and is able to serve my servlets just fine, as well as the html files that are in the same directory as the jsp. thanks. Jerry Thomas Tang wrote: Hi all, Do the logs give any indication as to where Tomcat is looking for the jsp files? A 404 error does not sound like a permissions problem. It sounds like a context setting might be off somewhere. Thomas Jerry Ford [EMAIL PROTECTED] 02/13/2004 11:03 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: jsp deployment Good suggestions, but, no, didn't work. There are no config issues preventing Tomcat from serving files from my webapp---html and servlets all work. And I know Tomcat is serving jsp files correctly; Tomcat's default examples work. Tomcat simply will not serve my .jsp file regardless of filetype (tried it as .txt). Permissions and file ownership are identical to the permissions of the Tomcat example .jsp files, which do work. I restart Tomcat everytime I make a change. Still get the 404 when I call the jsp, even though the html files in the same directory work fine, as do the servlets in the same webapp space. Jerry Parsons Technical Services wrote: Jerry, Just for a test, change the file name to end with .txt and see if the page is displayed. If it still fails. I would double check the permissions/ownership on that file. If it works, then try a restart. After a restart if it still fails, check your configs for an entry that might be blocking or redirecting the request. Just a novice throwing out ideas. Doug Parsons www.parsonstechnical.com - Original Message - From: Jerry Ford [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 12, 2004 2:33 PM Subject: Re: jsp deployment Permissions on the .jsp file are identical to permissions on all of the html, javascript, and servlet class files in the webapp, all of which work: -rw--r--r-- owner/group is jford:user (which is the uid under which tomcat was started). And I know it will serve .jsp's, the Tomcat example .jsp's all work. Jerry QM wrote: : Tomcat chokes when the jsp is requested. I get a 404 : error, the requested resoruce is not available. : : What do I need to configure to get Tomcat to serve the jsp? Chances are it's a permissions issue on the file. (Unless you've tweaked Tomcat's config, it should already be able to serve JSPs.) -QM - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp deployment
I had a similar problem with my jsp files. I included as the toplines in my jsp files : %@ page contentType=text/html; charset=iso-8859-1 language=java import=java.sql.* errorPage= % !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; These lines are created by dreamweaver I just copied them from a working jsp file to the not working jsp file. This seemed to solve my problems. I don't know why it solved it. To my knowledge every html file becomes a jsp file when you change the extension. Werner On Feb 13, 2004, at 5:13 PM, BAO RuiXian wrote: Jerry Ford wrote: Good suggestions, but, no, didn't work. There are no config issues preventing Tomcat from serving files from my webapp---html and servlets all work. And I know Tomcat is serving jsp files correctly; Tomcat's default examples work. Have you tried run your jsp file directly from Tomcat instead of via Apache? How about you copy one of the jsp files from the example jsp files to this directory to see it still works? I think your problem is just very trivial, somewhere wrong. Best Bao Tomcat simply will not serve my .jsp file regardless of filetype (tried it as .txt). Permissions and file ownership are identical to the permissions of the Tomcat example .jsp files, which do work. I restart Tomcat everytime I make a change. Still get the 404 when I call the jsp, even though the html files in the same directory work fine, as do the servlets in the same webapp space. Jerry Parsons Technical Services wrote: Jerry, Just for a test, change the file name to end with .txt and see if the page is displayed. If it still fails. I would double check the permissions/ownership on that file. If it works, then try a restart. After a restart if it still fails, check your configs for an entry that might be blocking or redirecting the request. Just a novice throwing out ideas. Doug Parsons www.parsonstechnical.com - Original Message - From: Jerry Ford [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 12, 2004 2:33 PM Subject: Re: jsp deployment Permissions on the .jsp file are identical to permissions on all of the html, javascript, and servlet class files in the webapp, all of which work: -rw--r--r-- owner/group is jford:user (which is the uid under which tomcat was started). And I know it will serve .jsp's, the Tomcat example .jsp's all work. Jerry QM wrote: : Tomcat chokes when the jsp is requested. I get a 404 : error, the requested resoruce is not available. : : What do I need to configure to get Tomcat to serve the jsp? Chances are it's a permissions issue on the file. (Unless you've tweaked Tomcat's config, it should already be able to serve JSPs.) -QM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp deployment
Hmmm...when I go to http://localhost/mywebapp, it works fine. When I bypass Apache and go to http://localhost:8080, I get Tomcat's home page, and http://localhost:8080/examples/jsp, I get the Tomcat examples. But when I go to http://localhost:8080/mywebapp, I get 404, resource not available. Jerry BAO RuiXian wrote: Jerry Ford wrote: Good suggestions, but, no, didn't work. There are no config issues preventing Tomcat from serving files from my webapp---html and servlets all work. And I know Tomcat is serving jsp files correctly; Tomcat's default examples work. Have you tried run your jsp file directly from Tomcat instead of via Apache? How about you copy one of the jsp files from the example jsp files to this directory to see it still works? I think your problem is just very trivial, somewhere wrong. Best Bao Tomcat simply will not serve my .jsp file regardless of filetype (tried it as .txt). Permissions and file ownership are identical to the permissions of the Tomcat example .jsp files, which do work. I restart Tomcat everytime I make a change. Still get the 404 when I call the jsp, even though the html files in the same directory work fine, as do the servlets in the same webapp space. Jerry Parsons Technical Services wrote: Jerry, Just for a test, change the file name to end with .txt and see if the page is displayed. If it still fails. I would double check the permissions/ownership on that file. If it works, then try a restart. After a restart if it still fails, check your configs for an entry that might be blocking or redirecting the request. Just a novice throwing out ideas. Doug Parsons www.parsonstechnical.com - Original Message - From: Jerry Ford [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 12, 2004 2:33 PM Subject: Re: jsp deployment Permissions on the .jsp file are identical to permissions on all of the html, javascript, and servlet class files in the webapp, all of which work: -rw--r--r-- owner/group is jford:user (which is the uid under which tomcat was started). And I know it will serve .jsp's, the Tomcat example .jsp's all work. Jerry QM wrote: : Tomcat chokes when the jsp is requested. I get a 404 : error, the requested resoruce is not available. : : What do I need to configure to get Tomcat to serve the jsp? Chances are it's a permissions issue on the file. (Unless you've tweaked Tomcat's config, it should already be able to serve JSPs.) -QM - 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: jsp deployment
Do you have a JDK installed? Do you have a JAVA_HOME environment variable set? Can Jasper find the java compiler (javac)? --- Jerry Ford [EMAIL PROTECTED] wrote: Logs show class-not-found exception for open.jsp. Which brings me back to my original question---what do I need to configure to let Tomcat know about this jsp? It already knows where my webapp is and is able to serve my servlets just fine, as well as the html files that are in the same directory as the jsp. thanks. Jerry Thomas Tang wrote: Hi all, Do the logs give any indication as to where Tomcat is looking for the jsp files? A 404 error does not sound like a permissions problem. It sounds like a context setting might be off somewhere. Thomas Jerry Ford [EMAIL PROTECTED] 02/13/2004 11:03 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: jsp deployment Good suggestions, but, no, didn't work. There are no config issues preventing Tomcat from serving files from my webapp---html and servlets all work. And I know Tomcat is serving jsp files correctly; Tomcat's default examples work. Tomcat simply will not serve my .jsp file regardless of filetype (tried it as .txt). Permissions and file ownership are identical to the permissions of the Tomcat example .jsp files, which do work. I restart Tomcat everytime I make a change. Still get the 404 when I call the jsp, even though the html files in the same directory work fine, as do the servlets in the same webapp space. Jerry Parsons Technical Services wrote: Jerry, Just for a test, change the file name to end with .txt and see if the page is displayed. If it still fails. I would double check the permissions/ownership on that file. If it works, then try a restart. After a restart if it still fails, check your configs for an entry that might be blocking or redirecting the request. Just a novice throwing out ideas. Doug Parsons www.parsonstechnical.com - Original Message - From: Jerry Ford [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 12, 2004 2:33 PM Subject: Re: jsp deployment Permissions on the .jsp file are identical to permissions on all of the html, javascript, and servlet class files in the webapp, all of which work: -rw--r--r-- owner/group is jford:user (which is the uid under which tomcat was started). And I know it will serve .jsp's, the Tomcat example .jsp's all work. Jerry QM wrote: : Tomcat chokes when the jsp is requested. I get a 404 : error, the requested resoruce is not available. : : What do I need to configure to get Tomcat to serve the jsp? Chances are it's a permissions issue on the file. (Unless you've tweaked Tomcat's config, it should already be able to serve JSPs.) -QM - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp deployment
Cut and paste your context settings. Thomas Jerry Ford [EMAIL PROTECTED] 02/13/2004 11:33 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: jsp deployment Hmmm...when I go to http://localhost/mywebapp, it works fine. When I bypass Apache and go to http://localhost:8080, I get Tomcat's home page, and http://localhost:8080/examples/jsp, I get the Tomcat examples. But when I go to http://localhost:8080/mywebapp, I get 404, resource not available. Jerry BAO RuiXian wrote: Jerry Ford wrote: Good suggestions, but, no, didn't work. There are no config issues preventing Tomcat from serving files from my webapp---html and servlets all work. And I know Tomcat is serving jsp files correctly; Tomcat's default examples work. Have you tried run your jsp file directly from Tomcat instead of via Apache? How about you copy one of the jsp files from the example jsp files to this directory to see it still works? I think your problem is just very trivial, somewhere wrong. Best Bao Tomcat simply will not serve my .jsp file regardless of filetype (tried it as .txt). Permissions and file ownership are identical to the permissions of the Tomcat example .jsp files, which do work. I restart Tomcat everytime I make a change. Still get the 404 when I call the jsp, even though the html files in the same directory work fine, as do the servlets in the same webapp space. Jerry Parsons Technical Services wrote: Jerry, Just for a test, change the file name to end with .txt and see if the page is displayed. If it still fails. I would double check the permissions/ownership on that file. If it works, then try a restart. After a restart if it still fails, check your configs for an entry that might be blocking or redirecting the request. Just a novice throwing out ideas. Doug Parsons www.parsonstechnical.com - Original Message - From: Jerry Ford [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 12, 2004 2:33 PM Subject: Re: jsp deployment Permissions on the .jsp file are identical to permissions on all of the html, javascript, and servlet class files in the webapp, all of which work: -rw--r--r-- owner/group is jford:user (which is the uid under which tomcat was started). And I know it will serve .jsp's, the Tomcat example .jsp's all work. Jerry QM wrote: : Tomcat chokes when the jsp is requested. I get a 404 : error, the requested resoruce is not available. : : What do I need to configure to get Tomcat to serve the jsp? Chances are it's a permissions issue on the file. (Unless you've tweaked Tomcat's config, it should already be able to serve JSPs.) -QM - 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: jsp deployment
Yes, yes, and yes...JDK 1.4, $JAVA_HOME is set to /usr/java/j2sdk1.4.0, and Tomcat is able to compile the example jsps that come in the webserver package. Jerry David Ramsey wrote: Do you have a JDK installed? Do you have a JAVA_HOME environment variable set? Can Jasper find the java compiler (javac)? --- Jerry Ford [EMAIL PROTECTED] wrote: Logs show class-not-found exception for open.jsp. Which brings me back to my original question---what do I need to configure to let Tomcat know about this jsp? It already knows where my webapp is and is able to serve my servlets just fine, as well as the html files that are in the same directory as the jsp. thanks. Jerry Thomas Tang wrote: Hi all, Do the logs give any indication as to where Tomcat is looking for the jsp files? A 404 error does not sound like a permissions problem. It sounds like a context setting might be off somewhere. Thomas Jerry Ford [EMAIL PROTECTED] 02/13/2004 11:03 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: jsp deployment Good suggestions, but, no, didn't work. There are no config issues preventing Tomcat from serving files from my webapp---html and servlets all work. And I know Tomcat is serving jsp files correctly; Tomcat's default examples work. Tomcat simply will not serve my .jsp file regardless of filetype (tried it as .txt). Permissions and file ownership are identical to the permissions of the Tomcat example .jsp files, which do work. I restart Tomcat everytime I make a change. Still get the 404 when I call the jsp, even though the html files in the same directory work fine, as do the servlets in the same webapp space. Jerry Parsons Technical Services wrote: Jerry, Just for a test, change the file name to end with .txt and see if the page is displayed. If it still fails. I would double check the permissions/ownership on that file. If it works, then try a restart. After a restart if it still fails, check your configs for an entry that might be blocking or redirecting the request. Just a novice throwing out ideas. Doug Parsons www.parsonstechnical.com - Original Message - From: Jerry Ford [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 12, 2004 2:33 PM Subject: Re: jsp deployment Permissions on the .jsp file are identical to permissions on all of the html, javascript, and servlet class files in the webapp, all of which work: -rw--r--r-- owner/group is jford:user (which is the uid under which tomcat was started). And I know it will serve .jsp's, the Tomcat example .jsp's all work. Jerry QM wrote: : Tomcat chokes when the jsp is requested. I get a 404 : error, the requested resoruce is not available. : : What do I need to configure to get Tomcat to serve the jsp? Chances are it's a permissions issue on the file. (Unless you've tweaked Tomcat's config, it should already be able to serve JSPs.) -QM - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - 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: jsp deployment
Jerry, Hang on for a minute. Have you tried to access this directly from the url? http://localhost:8080/mywebapp/open.jsp I missed in your original post that you were using javascript to access it. Doug - Original Message - From: Jerry Ford [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, February 13, 2004 11:03 AM Subject: Re: jsp deployment Good suggestions, but, no, didn't work. There are no config issues preventing Tomcat from serving files from my webapp---html and servlets all work. And I know Tomcat is serving jsp files correctly; Tomcat's default examples work. Tomcat simply will not serve my .jsp file regardless of filetype (tried it as .txt). Permissions and file ownership are identical to the permissions of the Tomcat example .jsp files, which do work. I restart Tomcat everytime I make a change. Still get the 404 when I call the jsp, even though the html files in the same directory work fine, as do the servlets in the same webapp space. Jerry Parsons Technical Services wrote: Jerry, Just for a test, change the file name to end with .txt and see if the page is displayed. If it still fails. I would double check the permissions/ownership on that file. If it works, then try a restart. After a restart if it still fails, check your configs for an entry that might be blocking or redirecting the request. Just a novice throwing out ideas. Doug Parsons www.parsonstechnical.com - Original Message - From: Jerry Ford [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 12, 2004 2:33 PM Subject: Re: jsp deployment Permissions on the .jsp file are identical to permissions on all of the html, javascript, and servlet class files in the webapp, all of which work: -rw--r--r-- owner/group is jford:user (which is the uid under which tomcat was started). And I know it will serve .jsp's, the Tomcat example .jsp's all work. Jerry QM wrote: : Tomcat chokes when the jsp is requested. I get a 404 : error, the requested resoruce is not available. : : What do I need to configure to get Tomcat to serve the jsp? Chances are it's a permissions issue on the file. (Unless you've tweaked Tomcat's config, it should already be able to serve JSPs.) -QM - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems getting Tomcat 5.0.18 to work with IIS 5
I am trying to get this running as well. Does Tomcat and IIS have to be installed on the same box? Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp deployment
from server.xml (minus realm, user database resource and a couple of extraneous contexts): Server port=8005 shutdown=SHUTDOWN debug=0 !-- Service -- Service name=Tomcat-Standalone !-- Port 8080 Connector -- 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 / !-- Apache Connector (mod_jk) -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Engine -- Engine name=Standalone defaultHost=localhost debug=0 !-- Engine logger (catalina_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ !-- Host (localhost) -- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true !-- Host logger (localhost_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ !-- ROOT context -- Context path= docBase=ROOT debug=0/ !-- EBook context -- Context path=/EBook docBase=EBook debug=0 reloadable=true crossContext=true !-- EBook logger (localhost_EBook_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_EBook_log. suffix=.txt timestamp=true / /Context /Context !-- examples context -- Context path=/examples docBase=examples debug=0 reloadable=true crossContext=true !-- examples logger (localhost_examples_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ /Context /Host /Engine /Service /Server Webapp's web.xml (complete): ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; !-- Java version of ebook generating utility. -- web-app display-nameCat's Eye EBook Builder/display-name description EBook generator web application /description servlet servlet-name book_builder /servlet-name servlet-class catseye.ebook.book_builder /servlet-class /servlet servlet servlet-name set_config /servlet-name servlet-class catseye.ebook.set_config /servlet-class /servlet servlet servlet-name get_config /servlet-name servlet-class catseye.ebook.get_config /servlet-class /servlet servlet-mapping servlet-nameinvoker/servlet-name url-pattern/*/url-pattern /servlet-mapping /web-app Thomas Tang wrote: Cut and paste your context settings. Thomas Jerry Ford [EMAIL PROTECTED] 02/13/2004 11:33 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: jsp deployment Hmmm...when I go to http://localhost/mywebapp, it works fine. When I bypass Apache and go to http://localhost:8080, I get Tomcat's home page, and http://localhost:8080/examples/jsp, I get the Tomcat examples. But when I go to http://localhost:8080/mywebapp, I get 404, resource not available. Jerry BAO RuiXian wrote: Jerry Ford wrote: Good suggestions, but, no, didn't work. There are no config issues preventing Tomcat from serving files from my webapp---html and servlets all work. And I know Tomcat is serving jsp files correctly; Tomcat's default examples work. Have you tried run your jsp file directly from Tomcat instead of via Apache? How about you copy one of the
Re: jsp deployment
Jerry Ford wrote: Hmmm...when I go to http://localhost/mywebapp, it works fine. When I bypass Apache and go to http://localhost:8080, I get Tomcat's home page, and http://localhost:8080/examples/jsp, I get the Tomcat examples. But when I go to http://localhost:8080/mywebapp, I get 404, resource not available. So, actually it is not the problem of jsp, rather the configuartion of of your application context. Do you have a corresponding Context block to your application like the examples in your server.xml file in the directory config? Best Bao Jerry BAO RuiXian wrote: Jerry Ford wrote: Good suggestions, but, no, didn't work. There are no config issues preventing Tomcat from serving files from my webapp---html and servlets all work. And I know Tomcat is serving jsp files correctly; Tomcat's default examples work. Have you tried run your jsp file directly from Tomcat instead of via Apache? How about you copy one of the jsp files from the example jsp files to this directory to see it still works? I think your problem is just very trivial, somewhere wrong. Best Bao - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems getting Tomcat 5.0.18 to work with IIS 5
No, but you'll need to change the IP address in your workers.properties or workers2.properties file to point to the computer that serves your tomcat instance. I know in the workers2.properties (for JK2) you would to change the [channel.socket:localhost:8009] to [channel.socket:(IPADDRESS):(PORT)]. In workers.properties (for JK) I believe you want to change worker.ajp13.host=localhost To worker.ajp13.host=(IPADDRESS) I haven't actually worked with JK much though, just read the documentation, so if the latter doesn't work, you should probably check with someone else. Hope that helps Andrew -Original Message- From: Phil Cox [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 11:46 AM To: 'Tomcat Users List' Subject: RE: Problems getting Tomcat 5.0.18 to work with IIS 5 I am trying to get this running as well. Does Tomcat and IIS have to be installed on the same box? Phil - 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: jsp deployment
You have the EBook context nested inside the default (ROOT). -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 11:50 AM To: Tomcat Users List Subject: Re: jsp deployment from server.xml (minus realm, user database resource and a couple of extraneous contexts): Server port=8005 shutdown=SHUTDOWN debug=0 !-- Service -- Service name=Tomcat-Standalone !-- Port 8080 Connector -- 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 / !-- Apache Connector (mod_jk) -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Engine -- Engine name=Standalone defaultHost=localhost debug=0 !-- Engine logger (catalina_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ !-- Host (localhost) -- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true !-- Host logger (localhost_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ !-- ROOT context -- Context path= docBase=ROOT debug=0/ !-- EBook context -- Context path=/EBook docBase=EBook debug=0 reloadable=true crossContext=true !-- EBook logger (localhost_EBook_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_EBook_log. suffix=.txt timestamp=true / /Context /Context !-- examples context -- Context path=/examples docBase=examples debug=0 reloadable=true crossContext=true !-- examples logger (localhost_examples_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ /Context /Host /Engine /Service /Server Webapp's web.xml (complete): ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; !-- Java version of ebook generating utility. -- web-app display-nameCat's Eye EBook Builder/display-name description EBook generator web application /description servlet servlet-name book_builder /servlet-name servlet-class catseye.ebook.book_builder /servlet-class /servlet servlet servlet-name set_config /servlet-name servlet-class catseye.ebook.set_config /servlet-class /servlet servlet servlet-name get_config /servlet-name servlet-class catseye.ebook.get_config /servlet-class /servlet servlet-mapping servlet-nameinvoker/servlet-name url-pattern/*/url-pattern /servlet-mapping /web-app Thomas Tang wrote: Cut and paste your context settings. Thomas Jerry Ford [EMAIL PROTECTED] 02/13/2004 11:33 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: jsp deployment Hmmm...when I go to http://localhost/mywebapp, it works fine. When I bypass Apache and go to http://localhost:8080, I get Tomcat's home page, and http://localhost:8080/examples/jsp, I get the Tomcat examples. But when I go to http://localhost:8080/mywebapp, I get 404, resource not available. Jerry BAO RuiXian wrote: Jerry Ford wrote: Good
session.ManagerBase tries to write something?
Hi, I am getting this a lot while debugging my application. It happens if I restart Tomcat for after viewing a particular page. But if I restart it again, I don't get this error. I have no clue why this is happening. I don't want the sessions to be persistent in the first place, also I don't want to cache the VO because I want to query it from the database --- 10 [main] ERROR session.ManagerBase - IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.mycompany.myVO java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.mycompany.myVO Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp deployment
Does anyone know where I can download mod_jk 1.2.5? Jakarta doesn't seem to have it in there site anymore , unless I missed it??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp deployment
Looking for the source or binary? From: Dwayne Ghant [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: jsp deployment Date: Fri, 13 Feb 2004 09:05:12 -0800 Does anyone know where I can download mod_jk 1.2.5? Jakarta doesn't seem to have it in there site anymore , unless I missed it??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/viruspgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp deployment
Looking for the source or binary? I know source for both are there, rather then the link with binindex.cgi its sourceindex.cgi From: Dwayne Ghant [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: jsp deployment Date: Fri, 13 Feb 2004 09:05:12 -0800 Does anyone know where I can download mod_jk 1.2.5? Jakarta doesn't seem to have it in there site anymore , unless I missed it??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/viruspgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp deployment
if you still cant find the source one for 1.25 I still have the tar.gz on my machine. From: Dwayne Ghant [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: jsp deployment Date: Fri, 13 Feb 2004 09:05:12 -0800 Does anyone know where I can download mod_jk 1.2.5? Jakarta doesn't seem to have it in there site anymore , unless I missed it??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/viruspgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp deployment
Both . Didier McGillis wrote: Looking for the source or binary? From: Dwayne Ghant [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: jsp deployment Date: Fri, 13 Feb 2004 09:05:12 -0800 Does anyone know where I can download mod_jk 1.2.5? Jakarta doesn't seem to have it in there site anymore , unless I missed it??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/viruspgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp deployment
Jerry, Hang in there. Most of us have been there. To me it felt like a game show with everyone shouting out different answers all at once. As for Didier and Dwanye, not nice. Think about when you were on the other side and desperately looking for that one answer. How would you feel about opening the email only to find it had nothing to do with you? And Jerry no matter how simple or dumb the problem is let us know when you crack it. Most of us have dumb, dumber and dumbest stories on ourselves.. Doug - Original Message - From: Didier McGillis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 13, 2004 12:08 PM Subject: Re: jsp deployment if you still cant find the source one for 1.25 I still have the tar.gz on my machine. From: Dwayne Ghant [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: jsp deployment Date: Fri, 13 Feb 2004 09:05:12 -0800 Does anyone know where I can download mod_jk 1.2.5? Jakarta doesn't seem to have it in there site anymore , unless I missed it??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/viruspgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - 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: session.ManagerBase tries to write something?
Howdy, I don't want the sessions to be persistent in the first place, You need to configure tomcat not to persist sessions then. There is advice on this on the Manager configuration reference page as well as in this list's archives. Yoav Shapira 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: jsp deployment
No, root context is defined in a single, self-closing tag: context... / It's unchanged from Tomcat's default server.xml. But...on second look, there is an extra closing tag after Ebook's context in this cut-and-paste (I cut and paste in multiple steps; couldn't get the whole thing in one vi window): /context /context But the active server.xml does not have two of them, only one. Jerry Bill Haake wrote: You have the EBook context nested inside the default (ROOT). -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 11:50 AM To: Tomcat Users List Subject: Re: jsp deployment from server.xml (minus realm, user database resource and a couple of extraneous contexts): Server port=8005 shutdown=SHUTDOWN debug=0 !-- Service -- Service name=Tomcat-Standalone !-- Port 8080 Connector -- 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 / !-- Apache Connector (mod_jk) -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Engine -- Engine name=Standalone defaultHost=localhost debug=0 !-- Engine logger (catalina_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ !-- Host (localhost) -- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true !-- Host logger (localhost_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ !-- ROOT context -- Context path= docBase=ROOT debug=0/ !-- EBook context -- Context path=/EBook docBase=EBook debug=0 reloadable=true crossContext=true !-- EBook logger (localhost_EBook_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_EBook_log. suffix=.txt timestamp=true / /Context /Context !-- examples context -- Context path=/examples docBase=examples debug=0 reloadable=true crossContext=true !-- examples logger (localhost_examples_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ /Context /Host /Engine /Service /Server Webapp's web.xml (complete): ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; !-- Java version of ebook generating utility. -- web-app display-nameCat's Eye EBook Builder/display-name description EBook generator web application /description servlet servlet-name book_builder /servlet-name servlet-class catseye.ebook.book_builder /servlet-class /servlet servlet servlet-name set_config /servlet-name servlet-class catseye.ebook.set_config /servlet-class /servlet servlet servlet-name get_config /servlet-name servlet-class catseye.ebook.get_config /servlet-class /servlet servlet-mapping servlet-nameinvoker/servlet-name url-pattern/*/url-pattern /servlet-mapping /web-app Thomas Tang wrote: Cut and paste your context settings. Thomas Jerry Ford [EMAIL PROTECTED] 02/13/2004 11:33 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: jsp deployment Hmmm...when I go to http://localhost/mywebapp, it works fine. When I bypass
RE: jsp deployment
Bill is correct. This portions seems off. Try separating them. I dont think you should be seeing /Context followed by and another /Context. !-- ROOT context -- Context path= docBase=ROOT debug=0/ !-- EBook context -- Context path=/EBook docBase=EBook debug=0 reloadable=true crossContext=true !-- EBook logger (localhost_EBook_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_EBook_log. suffix=.txt timestamp=true / /Context /Context Bill Haake [EMAIL PROTECTED] 02/13/2004 12:03 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject RE: jsp deployment You have the EBook context nested inside the default (ROOT). -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 11:50 AM To: Tomcat Users List Subject: Re: jsp deployment from server.xml (minus realm, user database resource and a couple of extraneous contexts): Server port=8005 shutdown=SHUTDOWN debug=0 !-- Service -- Service name=Tomcat-Standalone !-- Port 8080 Connector -- 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 / !-- Apache Connector (mod_jk) -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Engine -- Engine name=Standalone defaultHost=localhost debug=0 !-- Engine logger (catalina_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ !-- Host (localhost) -- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true !-- Host logger (localhost_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ !-- ROOT context -- Context path= docBase=ROOT debug=0/ !-- EBook context -- Context path=/EBook docBase=EBook debug=0 reloadable=true crossContext=true !-- EBook logger (localhost_EBook_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_EBook_log. suffix=.txt timestamp=true / /Context /Context !-- examples context -- Context path=/examples docBase=examples debug=0 reloadable=true crossContext=true !-- examples logger (localhost_examples_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ /Context /Host /Engine /Service /Server Webapp's web.xml (complete): ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; !-- Java version of ebook generating utility. -- web-app display-nameCat's Eye EBook Builder/display-name description EBook generator web application /description servlet servlet-name book_builder /servlet-name servlet-class catseye.ebook.book_builder /servlet-class /servlet servlet servlet-name
Re: jsp deployment
Sorry, that's a cut-and-paste error that does not appear in the real server.xml. Only one /context end tag; the root context is closed before the EBook context begins: context... / Jerry Thomas Tang wrote: Bill is correct. This portions seems off. Try separating them. I dont think you should be seeing /Context followed by and another /Context. !-- ROOT context -- Context path= docBase=ROOT debug=0/ !-- EBook context -- Context path=/EBook docBase=EBook debug=0 reloadable=true crossContext=true !-- EBook logger (localhost_EBook_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_EBook_log. suffix=.txt timestamp=true / /Context /Context Bill Haake [EMAIL PROTECTED] 02/13/2004 12:03 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject RE: jsp deployment You have the EBook context nested inside the default (ROOT). -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 11:50 AM To: Tomcat Users List Subject: Re: jsp deployment from server.xml (minus realm, user database resource and a couple of extraneous contexts): Server port=8005 shutdown=SHUTDOWN debug=0 !-- Service -- Service name=Tomcat-Standalone !-- Port 8080 Connector -- 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 / !-- Apache Connector (mod_jk) -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Engine -- Engine name=Standalone defaultHost=localhost debug=0 !-- Engine logger (catalina_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ !-- Host (localhost) -- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true !-- Host logger (localhost_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ !-- ROOT context -- Context path= docBase=ROOT debug=0/ !-- EBook context -- Context path=/EBook docBase=EBook debug=0 reloadable=true crossContext=true !-- EBook logger (localhost_EBook_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_EBook_log. suffix=.txt timestamp=true / /Context /Context !-- examples context -- Context path=/examples docBase=examples debug=0 reloadable=true crossContext=true !-- examples logger (localhost_examples_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ /Context /Host /Engine /Service /Server Webapp's web.xml (complete): ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; !-- Java version of ebook generating utility. -- web-app display-nameCat's Eye EBook Builder/display-name description EBook generator web application /description servlet servlet-name book_builder /servlet-name servlet-class
RE: session.ManagerBase tries to write something?
Is this default behaviour new in Tomcat5? Since I didn't do anything with the Manager element, I am using the default StandardManager, right? I guess this is the main reason why I couldn't understand why it's trying to write myVO class, i.e., persist sessions. Is there any other way to cause tomcat to do this in Tomcat 5? I tested the above in tomcat 4, and I didn't get the same exception. Thanks! -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 10:25 AM To: Tomcat Users List Subject: RE: session.ManagerBase tries to write something? Howdy, I don't want the sessions to be persistent in the first place, You need to configure tomcat not to persist sessions then. There is advice on this on the Manager configuration reference page as well as in this list's archives. Yoav Shapira 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: session.ManagerBase tries to write something?
it always tries to persist sessions across restarts and reloads of the context. it is what it does if you want to disable it, you have to set the pathname=someinvalidpath in a manager element in server.xml. Filip - Original Message - From: Yansheng Lin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, February 13, 2004 10:10 AM Subject: RE: session.ManagerBase tries to write something? Is this default behaviour new in Tomcat5? Since I didn't do anything with the Manager element, I am using the default StandardManager, right? I guess this is the main reason why I couldn't understand why it's trying to write myVO class, i.e., persist sessions. Is there any other way to cause tomcat to do this in Tomcat 5? I tested the above in tomcat 4, and I didn't get the same exception. Thanks! -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 10:25 AM To: Tomcat Users List Subject: RE: session.ManagerBase tries to write something? Howdy, I don't want the sessions to be persistent in the first place, You need to configure tomcat not to persist sessions then. There is advice on this on the Manager configuration reference page as well as in this list's archives. Yoav Shapira 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: session.ManagerBase tries to write something?
um, that's weird. I don't get the same exception in tomcat 4 though. I did a stopstart, still I get the exception in tomcat 5. Maybe I have been always getting this, except in 4, there is no console out? Shouldn't be though, it's an exception. -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 11:18 AM To: Tomcat Users List Subject: Re: session.ManagerBase tries to write something? it always tries to persist sessions across restarts and reloads of the context. it is what it does if you want to disable it, you have to set the pathname=someinvalidpath in a manager element in server.xml. Filip - Original Message - From: Yansheng Lin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, February 13, 2004 10:10 AM Subject: RE: session.ManagerBase tries to write something? Is this default behaviour new in Tomcat5? Since I didn't do anything with the Manager element, I am using the default StandardManager, right? I guess this is the main reason why I couldn't understand why it's trying to write myVO class, i.e., persist sessions. Is there any other way to cause tomcat to do this in Tomcat 5? I tested the above in tomcat 4, and I didn't get the same exception. Thanks! -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 10:25 AM To: Tomcat Users List Subject: RE: session.ManagerBase tries to write something? Howdy, I don't want the sessions to be persistent in the first place, You need to configure tomcat not to persist sessions then. There is advice on this on the Manager configuration reference page as well as in this list's archives. Yoav Shapira 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] - 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: session.ManagerBase tries to write something?
yes logging has changed a great deal between v4 and v5. so you would always have that stuff - Original Message - From: Yansheng Lin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, February 13, 2004 10:32 AM Subject: RE: session.ManagerBase tries to write something? um, that's weird. I don't get the same exception in tomcat 4 though. I did a stopstart, still I get the exception in tomcat 5. Maybe I have been always getting this, except in 4, there is no console out? Shouldn't be though, it's an exception. -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 11:18 AM To: Tomcat Users List Subject: Re: session.ManagerBase tries to write something? it always tries to persist sessions across restarts and reloads of the context. it is what it does if you want to disable it, you have to set the pathname=someinvalidpath in a manager element in server.xml. Filip - Original Message - From: Yansheng Lin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, February 13, 2004 10:10 AM Subject: RE: session.ManagerBase tries to write something? Is this default behaviour new in Tomcat5? Since I didn't do anything with the Manager element, I am using the default StandardManager, right? I guess this is the main reason why I couldn't understand why it's trying to write myVO class, i.e., persist sessions. Is there any other way to cause tomcat to do this in Tomcat 5? I tested the above in tomcat 4, and I didn't get the same exception. Thanks! -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 10:25 AM To: Tomcat Users List Subject: RE: session.ManagerBase tries to write something? Howdy, I don't want the sessions to be persistent in the first place, You need to configure tomcat not to persist sessions then. There is advice on this on the Manager configuration reference page as well as in this list's archives. Yoav Shapira 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] - 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]
Workaround for JK Bug
All, I have recently encountered a bug in the interaction between mod_jk and Tomcat. In brief, Tomcat does not get the POST data from mod_jk following failover from one Tomacat node to another. It appears that this bug is known, and has been posted to this list before: http://www.mail-archive.com/[EMAIL PROTECTED]/msg110113.html http://www.junlu.com/msg/15381.html I wonder, have any others on the list experienced this? Has anyone found a workaround? If there is no workaround using Apache, mod_jk and Tomcat, how are people achieving load balancing and failover? Also, here is a link to the bug in Apache's Bugzilla: http://issues.apache.org/bugzilla/show_bug.cgi?id=24882 Thanks in advance, everyone! Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Workaround for JK Bug
On Fri, February 13, 2004 1at 1:03 am, Chris Pennock wrote: I have recently encountered a bug in the interaction between mod_jk and Tomcat. In brief, Tomcat does not get the POST data from mod_jk following failover from one Tomacat node to another. Also, here is a link to the bug in Apache's Bugzilla: http://issues.apache.org/bugzilla/show_bug.cgi?id=24882 It's should be fixed in CVS. Try pulling the latest code and see if it fixes it for you and post your results in the bug, the developers would love to hear about it. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Workaround for JK Bug
Is this issue only in the binary release or all releases? I have jk 1.2.4 with apache 1.3.29 compiled from source on solaris but have not observed this problem. David Rees [EMAIL PROTECTED] 02/13/2004 02:12 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: Workaround for JK Bug On Fri, February 13, 2004 1at 1:03 am, Chris Pennock wrote: I have recently encountered a bug in the interaction between mod_jk and Tomcat. In brief, Tomcat does not get the POST data from mod_jk following failover from one Tomacat node to another. Also, here is a link to the bug in Apache's Bugzilla: http://issues.apache.org/bugzilla/show_bug.cgi?id=24882 It's should be fixed in CVS. Try pulling the latest code and see if it fixes it for you and post your results in the bug, the developers would love to hear about it. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: session.ManagerBase tries to write something?
Howdy, Logging changed a lot between tomcat 4.x and 5.x. Default session persistence behavior didn't. Yoav Shapira Millennium ChemInformatics -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 1:32 PM To: 'Tomcat Users List' Subject: RE: session.ManagerBase tries to write something? um, that's weird. I don't get the same exception in tomcat 4 though. I did a stopstart, still I get the exception in tomcat 5. Maybe I have been always getting this, except in 4, there is no console out? Shouldn't be though, it's an exception. -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 11:18 AM To: Tomcat Users List Subject: Re: session.ManagerBase tries to write something? it always tries to persist sessions across restarts and reloads of the context. it is what it does if you want to disable it, you have to set the pathname=someinvalidpath in a manager element in server.xml. Filip - Original Message - From: Yansheng Lin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, February 13, 2004 10:10 AM Subject: RE: session.ManagerBase tries to write something? Is this default behaviour new in Tomcat5? Since I didn't do anything with the Manager element, I am using the default StandardManager, right? I guess this is the main reason why I couldn't understand why it's trying to write myVO class, i.e., persist sessions. Is there any other way to cause tomcat to do this in Tomcat 5? I tested the above in tomcat 4, and I didn't get the same exception. Thanks! -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 10:25 AM To: Tomcat Users List Subject: RE: session.ManagerBase tries to write something? Howdy, I don't want the sessions to be persistent in the first place, You need to configure tomcat not to persist sessions then. There is advice on this on the Manager configuration reference page as well as in this list's archives. Yoav Shapira 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] - 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] 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: Workaround for JK Bug
i was wondering what the state of the checked in code is for mod_jk. the last tag on jk was 1.2.5 after which (i assume) there have been several checkins. would you recommend pushing out a cvs built mod_jk to production (probably unsafe, right) or should we wait for the next tagged, jakarta-blessed, deemed stable mod_jk? (i guess i answered my question... any thoughts, gut-feelings, recommendations anyone?) apu On Fri, February 13, 2004 1at 1:03 am, Chris Pennock wrote: I have recently encountered a bug in the interaction between mod_jk and Tomcat. In brief, Tomcat does not get the POST data from mod_jk following failover from one Tomacat node to another. Also, here is a link to the bug in Apache's Bugzilla: http://issues.apache.org/bugzilla/show_bug.cgi?id=24882 It's should be fixed in CVS. Try pulling the latest code and see if it fixes it for you and post your results in the bug, the developers would love to hear about it. -Dave - 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: Workaround for JK Bug
I am using a binary: jakarta-tomcat-connectors-jk2.0.2-solaris8-apache2.0.43 I downloaded it Feb 9. The file was modified Spet 29. I'll try compiling from source (which Dave says should have a fix) and report back. Thanks all! Chris -Original Message- From: Thomas Tang [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 2:21 PM To: Tomcat Users List Subject: Re: Workaround for JK Bug Is this issue only in the binary release or all releases? I have jk 1.2.4 with apache 1.3.29 compiled from source on solaris but have not observed this problem. David Rees [EMAIL PROTECTED] 02/13/2004 02:12 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: Workaround for JK Bug On Fri, February 13, 2004 1at 1:03 am, Chris Pennock wrote: I have recently encountered a bug in the interaction between mod_jk and Tomcat. In brief, Tomcat does not get the POST data from mod_jk following failover from one Tomacat node to another. Also, here is a link to the bug in Apache's Bugzilla: http://issues.apache.org/bugzilla/show_bug.cgi?id=24882 It's should be fixed in CVS. Try pulling the latest code and see if it fixes it for you and post your results in the bug, the developers would love to hear about it. -Dave - 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: Workaround for JK Bug
On Fri, February 13, 2004 1at 1:21 am, Thomas Tang wrote: Is this issue only in the binary release or all releases? I have jk 1.2.4 with apache 1.3.29 compiled from source on solaris but have not observed this problem. It's in all releases besides current CVS. The bug isn't that easy to trigger which is why it's gone un-fixed for some time. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Workaround for JK Bug
On Fri, February 13, 2004 1at 1:23 am, Apu Shah wrote: i was wondering what the state of the checked in code is for mod_jk. the last tag on jk was 1.2.5 after which (i assume) there have been several checkins. would you recommend pushing out a cvs built mod_jk to production (probably unsafe, right) or should we wait for the next tagged, jakarta-blessed, deemed stable mod_jk? (i guess i answered my question... any thoughts, gut-feelings, recommendations anyone?) mod_jk2 is due to be tagged for a release in the next week or so. mod_jk is due to be tagged the week after mod_jk2 is released. If you are affected by the POST bug in mod_jk, then I would consider using CVS after testing it yourself, otherwise I would just wait. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NTLM Authentication POST Method
Hi, Can anybody give a solution to the problem mentioned in the below Email I am still struggling .. Best Regards Abhay Kumar -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 2:27 PM To: 'Tomcat Users List' Subject: RE: NTLM Authentication POST Method From the servlet API: If the parameter data was sent in the request body, such as occurs with an HTTP POST request, then reading the body directly via getInputStream() or getReader() can interfere with the execution of this method. Just wondering if any of the method mentioned above being called in your doPost()? Hope this helps. -Original Message- From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 12:08 PM To: 'Tomcat Users List' Subject: NTLM Authentication POST Method Importance: High Hello, I am using post method of sending data to servlet from a JSP page. I am unable to get the data by request.getParameter(). If I am using get method I am able to retrieve data from JSP page I was just searching on Google. Actually I am using NTLM Authentication in my Login Servlet. I think there is some conflict between NTLM Authentication and POST method. Any body has an idea what to do or set to get the things done ? http://support.microsoft.com/default.aspx?scid=kb;DE;308074 http://support.microsoft.com/default.aspx?scid=kb;DE;308074 I am using code from below link: http://www.jguru.com/faq/view.jsp?EID=1045412 http://www.jguru.com/faq/view.jsp?EID=1045412 Best Regards Abhay Kumar - 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]
Trouble with Invoker
hello we're running tomcat 4.0.3 (I know it's old, but I can't change it). following problem occurs: when invoking the Servlet from a client i get the error messages below. the restart seems to be ok though. also it is interesting that the error messages depend wheter it the servlet is placed in a package or not. first there are the messages from palcing it directly in the .../hiApplServerDev/WEB-INF/classes directly. after the -line, you will find the exceptions thrown if it is placed in classes/highMediator-directory and it is part of the highMediator-package. i have romved a big part of the stack traces, but will post it if needed. also pls tell me if code is helping you. I haven't been working on it for a while, but as i remember i have used it the same way before without any problems. I've spent the last two days with the problem, but can't get anywhere I am grateful for any hints in which direction to go from here. THANKS pete 2004-02-13 13:58:01 Manager: restart: Reloading web application at '/hiApplServerDev' 2004-02-13 13:58:01 StandardContext[/hiApplServerDev]: Reloading this Context has started 2004-02-13 13:58:01 WebappLoader[/hiApplServerDev]: Deploying class repositories to work directory /var/tomcat4/work/localhost/hiApplServerDev 2004-02-13 13:58:01 WebappLoader[/hiApplServerDev]: Deploy JAR /WEB-INF/lib/classes12.jar to /var/tomcat4/webapps/hiApplServerDev/WEB-INF/lib/classes12.jar 2004-02-13 13:58:01 WebappLoader[/hiApplServerDev]: Deploy JAR /WEB-INF/lib/xerces-1.4.4.apache.jar to /var/tomcat4/webapps/hiApplServerDev/WEB-INF/lib/xerces-1.4.4.apache.jar 2004-02-13 13:58:01 StandardWrapper[/hiApplServerDev:default]: Loading container servlet default 2004-02-13 13:58:01 default: init 2004-02-13 13:58:01 StandardWrapper[/hiApplServerDev:invoker]: Loading container servlet invoker 2004-02-13 13:58:01 invoker: init 2004-02-13 13:58:01 jsp: init 2004-02-13 13:58:04 StandardManager[/hiApplServerDev]: Seeding random number generator class java.security.SecureRandom 2004-02-13 13:58:04 StandardManager[/hiApplServerDev]: Seeding of random number generator has been completed 2004-02-13 13:58:04 StandardContext[/hiApplServerDev]: Reloading this Context is completed 2004-02-13 13:58:51 StandardWrapper[/hiApplServerDev:org.apache.catalina.INVOKER.highMediator]: Marking servlet org.apache.catalina.INVOKER.highMediator as unavailable 2004-02-13 13:58:51 invoker: Cannot allocate servlet instance for path /hiApplServerDev/servlet/highMediator/Connect javax.servlet.ServletException: Wrapper cannot find servlet class highMediator or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:871) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:396) at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) {...} at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107) at java.lang.Thread.run(Thread.java:484) - Root Cause - java.lang.ClassNotFoundException: highMediator at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1394) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1243) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:865) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:396) at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) {...} at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107) at java.lang.Thread.run(Thread.java:484) 2004-02-13 14:00:55 Manager: restart: Reloading web application at '/hiApplServerDev' 2004-02-13 14:00:55 StandardContext[/hiApplServerDev]: Reloading this Context has started 2004-02-13 14:00:55 WebappLoader[/hiApplServerDev]: Deploying class repositories to work directory /var/tomcat4/work/localhost/hiApplServerDev 2004-02-13 14:00:55 WebappLoader[/hiApplServerDev]: Deploy JAR /WEB-INF/lib/classes12.jar to /var/tomcat4/webapps/hiApplServerDev/WEB-INF/lib/classes12.jar 2004-02-13 14:00:55 WebappLoader[/hiApplServerDev]: Deploy JAR /WEB-INF/lib/xerces-1.4.4.apache.jar to
JAAS and TOMCAT 5
Greetings, I have finally pulled the last hair out of my head on this one. I'm running Tomcat 5 on my Windows2000 desktop (for development purposes) and trying to get JAAS to successfully integrate with it. I have successfully run the examples from Sun's site for the JAAS tutorial and just trying to get it to work on Tomcat now. I'm still a bit of a newbie to JAAS, so I'm not sure if I'm doing something wrong there or just not setting up Tomcat and/or my windows environment correctly...which I think is the real problem here. I have exhausted all of my research on the internet and I couldn't find anything out there regarding JAAS and Tomcat 5..so I thought I'd try here. Here is the error I am getting from Tomcat: java.io.IOException: Unable to locate a login configuration at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206) at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:95) I'm assuming from this message that Tomcat cannot find the JAAS configuration file. I have it stored as %CATALINA_HOME%/conf/jaas.conf. It's code is as follows: MeritPool { JAAS.MyLoginModule required; }; I have put my compiled classes for my LoginModule, UserPrincipal, and RolePrincipal under %CATALINA_HOME%/server/classes/JAAS as well as %CATALINA_HOME%/common/classes/JAAS. In the java.security file under %JAVA_HOME%/jre/lib/security, I included login.config.url.1=file:C:/TOMCAT/conf/jaas.conf. I have set the JAVA_OPTS environement variable in both my windows environment, catalina.sh, and catalina.bat files to: (in catalina.sh) JAVA_OPTS=-Djava.security.auth.login.config==$CATALINA_HOME/conf/jaas.conf (in catalina.bat) set JAVA_OPTS=-Djava.security.auth.login.config==%CATALINA_HOME%\conf\jaas.conf (in windows env. variable) JAVA_OPTS=-Djava.security.auth.login.config==C:/TOMCAT/conf/jaas.conf In the above lines, I tried it with on = as well. I am using the Tomcat security configuration to protect one of my contexts and to route to a login page. The login page form is submitted to j_security_check with the code as follows: form method=GET action='%= response.encodeURL(j_security_check) %' table border=0 cellspacing=5 tr th align=rightUsername:/th td align=leftinput type=text name=j_username/td /tr tr th align=rightPassword:/th td align=leftinput type=password name=j_password/td /tr tr td align=rightinput type=submit value=Log In/td td align=leftinput type=reset/td /tr /table /form This login page works fine using MemoryRealm and authenticates beautifully. But, when I comment that out in my server.xml file and instead use the JAASRealm, using the login page doesn't work and Tomcat displays the error that the login configuration cannot be located. My JAASRealm definition is: Realm className=org.apache.catalina.realm.JAASRealm debug=3 appName=MeritPool userClassNames=JAAS.MyPrincipal roleClassNames=JAAS.MyRolePrincipal / Can somebody here hopefully help me replace some of my lost hair? :-) I'm on digest mode, so bear with me if I am delayed in responding. Thanks in advance! Steve Miller - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems getting Tomcat 5.0.18 to work with IIS 5
This one did the trick. It fixed something or caught something that I missed. However, now I have to figure out why .jsp pages won't compile. It complains no java compiler is installed even though I have path, classpath, and javahome set to the java directory. Anyone experience that problem? Alex. - Original Message - From: Michael Südkamp [EMAIL PROTECTED] To: 'Alex L.' [EMAIL PROTECTED]; 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, February 13, 2004 1:27 AM Subject: AW: Problems getting Tomcat 5.0.18 to work with IIS 5 The online docs are not clear. You can use the JK2/IIS setup provided here http://www.shiftomat.com/opensource/ Michael -Ursprüngliche Nachricht- Von: Alex L. [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 12. Februar 2004 18:43 An: Tomcat Users List Betreff: Problems getting Tomcat 5.0.18 to work with IIS 5 I'm having some issues gettin tomcat 5.0.18 to work with win2k IIS 5. I've followed the guides online and have everything apparently set up. Tomcat works, IIS works, but IIS refuses to load .jsp files as if it can't find them. Any help is greatly appreciated! - 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: Trouble with Invoker
Howdy, First, as a general tip, I suggest putting all your classes in packages: http://jakarta.apache.org/tomcat/faq/classnotfound.html. - Root Cause - java.lang.UnsupportedClassVersionError: Connect (Unsupported major.minor version 48.0) This happens when a pre 1.4 JDK tries to run classes compiled in JDK 1.4 or later (without the javac -target 1.3 switch). Yoav Shapira 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: JAAS and TOMCAT 5
Howdy, JAVA_OPTS=- Djava.security.auth.login.config==$CATALINA_HOME/conf/jaas.conf You probably want JAVA_OPTS='-Djava.security.auth.login.config=$CATALINA_HOME/conf/jaas. conf' (one line, single equals signs, quotes containing the whole JAVA_OPTS value. Other than that, I can't help much right now ;( Yoav Shapira 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: jsp deployment
Jerry Ford wrote: Sorry, that's a cut-and-paste error that does not appear in the real server.xml. Only one /context end tag; the root context is closed before the EBook context begins: context... / The configuration seems okay then. BTW, can you run http://localhost:8080/manager/list to see what apps you have installed? If you can not find 'EBook', then you need to install it by running http://localhost:8080/manager/install?war=EBook Best Bao Jerry Thomas Tang wrote: Bill is correct. This portions seems off. Try separating them. I dont think you should be seeing /Context followed by and another /Context. !-- ROOT context -- Context path= docBase=ROOT debug=0/ !-- EBook context -- Context path=/EBook docBase=EBook debug=0 reloadable=true crossContext=true !-- EBook logger (localhost_EBook_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_EBook_log. suffix=.txt timestamp=true / /Context /Context Bill Haake [EMAIL PROTECTED] 02/13/2004 12:03 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject RE: jsp deployment You have the EBook context nested inside the default (ROOT). -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 11:50 AM To: Tomcat Users List Subject: Re: jsp deployment from server.xml (minus realm, user database resource and a couple of extraneous contexts): Server port=8005 shutdown=SHUTDOWN debug=0 !-- Service -- Service name=Tomcat-Standalone !-- Port 8080 Connector -- 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 / !-- Apache Connector (mod_jk) -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Engine -- Engine name=Standalone defaultHost=localhost debug=0 !-- Engine logger (catalina_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ !-- Host (localhost) -- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true !-- Host logger (localhost_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ !-- ROOT context -- Context path= docBase=ROOT debug=0/ !-- EBook context -- Context path=/EBook docBase=EBook debug=0 reloadable=true crossContext=true !-- EBook logger (localhost_EBook_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_EBook_log. suffix=.txt timestamp=true / /Context /Context !-- examples context -- Context path=/examples docBase=examples debug=0 reloadable=true crossContext=true !-- examples logger (localhost_examples_log.txt) -- Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ /Context /Host /Engine /Service /Server Webapp's web.xml (complete): ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; !--
Problems compiling new .jsp's with tomcat
I keep getting: No Java compiler was found to compile the generated source for the JSP. This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK to the common/lib directory of the Tomcat server, followed by a Tomcat restart. If using an alternate Java compiler, please check its installation and access path. When ever I try to execute a test.jsp file. html body Hello! The time is now %= new java.util.Date() % /body /html I have my PATH and CLASSPATH for both user and system to C:\Program Files\Java\j2re1.4.2_03;C:\Program Files\Java\j2re1.4.2_03/bin and JAVA_HOME to C:\Program Files\Java\j2re1.4.2_03 No tools.jar on windows. Alex - Original Message - From: Alex L. [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, February 13, 2004 2:24 PM Subject: Re: Problems getting Tomcat 5.0.18 to work with IIS 5 This one did the trick. It fixed something or caught something that I missed. However, now I have to figure out why .jsp pages won't compile. It complains no java compiler is installed even though I have path, classpath, and javahome set to the java directory. Anyone experience that problem? Alex. - Original Message - From: Michael Südkamp [EMAIL PROTECTED] To: 'Alex L.' [EMAIL PROTECTED]; 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, February 13, 2004 1:27 AM Subject: AW: Problems getting Tomcat 5.0.18 to work with IIS 5 The online docs are not clear. You can use the JK2/IIS setup provided here http://www.shiftomat.com/opensource/ Michael -Ursprüngliche Nachricht- Von: Alex L. [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 12. Februar 2004 18:43 An: Tomcat Users List Betreff: Problems getting Tomcat 5.0.18 to work with IIS 5 I'm having some issues gettin tomcat 5.0.18 to work with win2k IIS 5. I've followed the guides online and have everything apparently set up. Tomcat works, IIS works, but IIS refuses to load .jsp files as if it can't find them. Any help is greatly appreciated! - 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: Problems getting Tomcat 5.0.18 to work with IIS 5
Is Tomcat running as a service? Is that service running as a user that has that path and environmental settings the same as you do? Can you start Tomcat manually and access your jsp using something like? http://localhost:8080/mywebapp/myjsppage.jsp --- Alex L. [EMAIL PROTECTED] wrote: This one did the trick. It fixed something or caught something that I missed. However, now I have to figure out why .jsp pages won't compile. It complains no java compiler is installed even though I have path, classpath, and javahome set to the java directory. Anyone experience that problem? Alex. - Original Message - From: Michael Südkamp [EMAIL PROTECTED] To: 'Alex L.' [EMAIL PROTECTED]; 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, February 13, 2004 1:27 AM Subject: AW: Problems getting Tomcat 5.0.18 to work with IIS 5 The online docs are not clear. You can use the JK2/IIS setup provided here http://www.shiftomat.com/opensource/ Michael -Ursprüngliche Nachricht- Von: Alex L. [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 12. Februar 2004 18:43 An: Tomcat Users List Betreff: Problems getting Tomcat 5.0.18 to work with IIS 5 I'm having some issues gettin tomcat 5.0.18 to work with win2k IIS 5. I've followed the guides online and have everything apparently set up. Tomcat works, IIS works, but IIS refuses to load .jsp files as if it can't find them. Any help is greatly appreciated! - 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!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5 mod_jk.conf
Installed tomcat 5 on my linux box and it works no problem stand alone. However I don't see that the auto/mod_jk.conf directory or file is being created. Does anyone know what you have to do to get these files to auto generate? thanks -Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems compiling new .jsp's with tomcat
From the name of your classpath, I would guess you have the JRE installed. To compile you need the SDK. -Original Message- From: Alex L. [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 4:40 PM To: Tomcat Users List Subject: Problems compiling new .jsp's with tomcat I keep getting: No Java compiler was found to compile the generated source for the JSP. This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK to the common/lib directory of the Tomcat server, followed by a Tomcat restart. If using an alternate Java compiler, please check its installation and access path. When ever I try to execute a test.jsp file. html body Hello! The time is now %= new java.util.Date() % /body /html I have my PATH and CLASSPATH for both user and system to C:\Program Files\Java\j2re1.4.2_03;C:\Program Files\Java\j2re1.4.2_03/bin and JAVA_HOME to C:\Program Files\Java\j2re1.4.2_03 No tools.jar on windows. Alex - Original Message - From: Alex L. [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, February 13, 2004 2:24 PM Subject: Re: Problems getting Tomcat 5.0.18 to work with IIS 5 This one did the trick. It fixed something or caught something that I missed. However, now I have to figure out why .jsp pages won't compile. It complains no java compiler is installed even though I have path, classpath, and javahome set to the java directory. Anyone experience that problem? Alex. - Original Message - From: Michael Südkamp [EMAIL PROTECTED] To: 'Alex L.' [EMAIL PROTECTED]; 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, February 13, 2004 1:27 AM Subject: AW: Problems getting Tomcat 5.0.18 to work with IIS 5 The online docs are not clear. You can use the JK2/IIS setup provided here http://www.shiftomat.com/opensource/ Michael -Ursprüngliche Nachricht- Von: Alex L. [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 12. Februar 2004 18:43 An: Tomcat Users List Betreff: Problems getting Tomcat 5.0.18 to work with IIS 5 I'm having some issues gettin tomcat 5.0.18 to work with win2k IIS 5. I've followed the guides online and have everything apparently set up. Tomcat works, IIS works, but IIS refuses to load .jsp files as if it can't find them. Any help is greatly appreciated! - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5 mod_jk.conf
[EMAIL PROTECTED] wrote: Installed tomcat 5 on my linux box and it works no problem stand alone. However I don't see that the auto/mod_jk.conf directory or file is being created. Does anyone know what you have to do to get these files to auto generate? thanks I don't know tomcat 5. But for tomcat 4, you need to edit the server.xml to generate the mod_jk.conf file. Best Bao -Ryan - 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: tomcat 5 mod_jk.conf
Yeah it doesn't seem to be producing it for me and i start up with no errors. Unless it is creating it in a new location. [EMAIL PROTECTED] wrote: Installed tomcat 5 on my linux box and it works no problem stand alone. However I don't see that the auto/mod_jk.conf directory or file is being created. Does anyone know what you have to do to get these files to auto generate? thanks I don't know tomcat 5. But for tomcat 4, you need to edit the server.xml to generate the mod_jk.conf file. Best Bao -Ryan - 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]
taking out the last context element cause problem
I took out the last context element in my server.xml in ${tomcat_home}/conf, and I get this weird error. The context wasn't even for /jsp-examples. Darn, it's kind of late in the day. Putting the context element back(undo change) fixed the problem. Any idea on this? Thanks! --- Feb 13, 2004 4:18:26 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /jsp-examples from URL file:C:\Web\ApacheGroup\Tomcat\webapps\jsp-examples Feb 13, 2004 4:18:26 PM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 6 column 19: cvc-elt.1: Cannot find the declaration of element 'web-app'. org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'web-app'. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno wn Source) at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U nknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRoot ElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfi g.java:301) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:643) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j ava:253) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4224 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:866) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy er.java:320) at org.apache.catalina.core.StandardHost.install(StandardHost.java:875) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java :727) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:39 4) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133) at org.apache.catalina.core.StandardHost.start(StandardHost.java:832) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345) at org.apache.catalina.startup.Catalina.start(Catalina.java:598) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat very very slow when doing heavy XML processing
I've got Tomcat set up as the middle component passing heavy XML data between and client and a backend and it is very very slow. I've set a filter up to log the time it takes to process a request and loadtest with JMeter using 10 threads. Takes around 25,000ms to get a response from looking at JMeter. But when I look at the catalina logs, the times are not too bad, 700-800ms/request to receive and process a request. Seems like most of the problem is with connection speed, not processing speed. I've played around with my JAVA_OPTS and have got it to improve a bit, but I'm always getting the really high response times. Here are my JAVA_OPTS = -server -Xincgc -Xmx1024M -Xmx1024 -Xmn100M -Xss100M I'm using Sun SDK 1.4.1. What else can I do to improve the performance? What about using keepalive? - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online
Need information about Tomcat deployer/embed
Hi all, I'm updating my Tomcat on Linux Step By Step for Tomcat 5 (http://cymulacrum.net/tomcat/tomcat_toc.html) and I need some clarification on something: I noticed that there are now 2 other packages available for download, in addition to the base Tomcat package : a Deployer and an Embed package. I was curious as to what those 2 packages were, so I downloaded them and unpacked them and looked at the contents. So far, what I have determined is this: the Deployer package is really a client-side deployer package that would enable a Java developer to deploy his/her webapps to a Tomcat server (without restarting the server?). The attached manual.html with the package really doesn't describe what the package is for. As for the Embed package, I'm still trying to figure it out. I googled around, but found nothing about the Tomcat 5 embed package, though I did find some mention about a Tomcat 3 embed package. There's no Tomcat executable script inside the package, so I am assuming that the Embed package isn't really a stand-alone Tomcat for distribution is it ? Could someone explain what the Deployer and Embed packages are for? Thanks and Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]