SSL client authentication
Hello, I've always used apache http server for client authenticatien with ssl. I've installed Tomcat now voor mij jsp's. But I'm not able to get the ssl client authentication working. The problem is getting my existing certificates working in tomcat. Is apache http server it was very easy. I configured all the stuff in my httpd.conf. I also tried to get tomcat working with keytool. But ther's something I do wrong. I alwas get handshake error. Can somebody please tell me how to use keytool. I've got the following certificates: 1 server.crt = server certificate 2 ca.crt = chain certificate 3 ca-bundle.crt = lots of certificates for client authentication 4 server.key = i really don't know how to get this one in keytool Thnx Twan Munster
Re: article on tomcat performance
PDF and/or html - how about hosting? Has Jakarta offered to host - they really should but I they refuse, please let me know - Original Message - From: Peter Lin [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 22, 2003 3:44 AM Subject: Re: article on tomcat performance Here is a quick update. I plan to release the finished article thursday or friday. tim and mike were kind enough to review it. I'm still waiting for the other reviewers. My question is what format would people like? word openoffice pdf peter Peter Lin [EMAIL PROTECTED] wrote: It looks like the tomcat performance book probably won't happen, so I am writing a short article based on some of the benchmark results. I should have a draft done in a week. Anyone interested in reviewing it? peter lin - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IIS 5.1 and Tomcat 4
I'm trying to get IIS 5.1 and Tomcat 4 to play nicely together. snip Did this question not get answered because: a) I didn't provide enough information b) Few people on the list have hooked IIS up to Tomcat c) A more interesting question (OutOfMemoryError) came in soon afterwards ? If you can spare a minute and know about hooking IIS and Tomcat together, I'd be grateful if you'd have a look - I don't think I can make much more headway on my own. Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Catalina.stop: java.net.ConnectException: Connection refused
Anyone? It's quite urgent and I'm stuck now... On Sun, 21 Sep 2003 21:53:30 +0200, Ilja [EMAIL PROTECTED] said: Tomcat suddenly stopped working without any obvious reason... Config: Tomcat 5.09 Mac OSX 10.2.6 error: Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376) at java.net.Socket.init(Socket.java:291) at java.net.Socket.init(Socket.java:119) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) 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.main(Bootstrap.java:203) Anyone? - 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: Can JSP track users in a basic authentication protected realm ?
You could possibly track the referer header of the request. If the referer is a site outside your protection domain then re-authenticate. This could be done in a filter: Check the header, log out the user, redirect to the requested page to trigger re-authentication. This technique assumes the referer header has been set by the browser. As it's not a mandatory header you may not always get it: http://www.w3.org/Protocols/rfc2616/rfc2616.txt Specifically section 14.36 Referer HTH, Jon David wrote: Actually I do not know how to do it. I know those internet banking sites does it. They have this option of Log out for their users. When users click on that log out option, they will in effect log out of the protected realm. Should they decide to return to the same site again ( using the same instance of the IE) they will prompted for the password and ID again. Currently, with basic authentication ( implemented using HTTP SERVER) the server does not recognise if the user has moved onto another site outside the protected realm. If he decides to surf an area outside the protected realm, and decides to return to the protected realm, he will not be prompted for a password. This problem arise when the computer being used to access my protected realm is a public computer. If that is the case, users who enter my protected realm and forgot to terminate that instance of the IE is going to allow subsequent users of that machine to access my site. My question is how can I implement such a way as mentioned above ? The log out button kind of effect. Many thanks. Regards David -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Sunday, September 21, 2003 12:47 AM To: 'Tomcat Users List' Subject: RE: Can JSP track users in a basic authentication protected realm ? Can you explain how Tomcat will be able to tell whether the user has navigated away and returned, versus just taken some period of time before getting the next page? -Original Message- From: David [mailto:[EMAIL PROTECTED] Sent: Saturday, September 20, 2003 9:56 AM To: Tomcat User Subject: Can JSP track users in a basic authentication protected realm ? Hi guys, Does anyone know how I can implement the above mentioned? Once they exit the protected realm (i.e. the protected folder in my htdocs), when they re-enter the site again they will be asked for a password. I have a simple basic authentication system but it doesn't track the user when it leaves the protected realm. What I wanted to do was to get the server to re-authenticate the user everytime he leaves my realm and tries to re-enter again. Some people suggested CGI, some suggest PHP.. I would like to know if JSP can do the job. If yes, what level of competence do I know JSP ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Catalina.stop: java.net.ConnectException: Connection refused
Possibly Tomcat or something else is already running on your TC port, therefore TC cannot start. Run a simple ps -ef | grep java and kill all TC processes, restart TC. -Original Message- From: Ilja Hehenkamp [mailto:[EMAIL PROTECTED] Sent: 22 September 2003 10:43 To: [EMAIL PROTECTED] Subject: Re: Catalina.stop: java.net.ConnectException: Connection refused Anyone? It's quite urgent and I'm stuck now... On Sun, 21 Sep 2003 21:53:30 +0200, Ilja [EMAIL PROTECTED] said: Tomcat suddenly stopped working without any obvious reason... Config: Tomcat 5.09 Mac OSX 10.2.6 error: Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376) at java.net.Socket.init(Socket.java:291) at java.net.Socket.init(Socket.java:119) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) 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.main(Bootstrap.java:203) Anyone? - 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]
Problem finding class files in tomcat-4.1.24
Hi All, I am not able to find unpackaged class files in my web application. Class files which are packaged are working fine. I have placed the file in catalina_home\shared\classes. The server is Tomcat-4.1.24. Thanks in advance, Bopanna Sr Software Engineer, RCS Technologies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem finding class files in tomcat-4.1.24
Check the FAQ http://jakarta.apache.org/tomcat/faq/classnotfound.html -Original Message- From: N.B.Bopanna [mailto:[EMAIL PROTECTED] Sent: 22 September 2003 11:33 To: [EMAIL PROTECTED] Subject: Problem finding class files in tomcat-4.1.24 Hi All, I am not able to find unpackaged class files in my web application. Class files which are packaged are working fine. I have placed the file in catalina_home\shared\classes. The server is Tomcat-4.1.24. Thanks in advance, Bopanna Sr Software Engineer, RCS Technologies. - 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]
WAR files help
Hi all i have my application running at www.demo.local in Tomcat 4.1.24 Linux RH 9 the dir is /webapps/demo and the files are unpacked Now i'd like to clear it and create a WAR file. So i've done this 1. jar cf demo.war * 2. copied the file in /webapps 3. deleted the directory /webapps/demo 4. modified the server.xml with this Host name=www.demo.local debug=0 appBase=webapps/demo unpackWARs=false Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=demo. suffix=.txt timestamp=false / Context path= docBase=/demo debug=0 reloadable=true /Context /Host Now if i use http://www.demo.local/demo it works, but i want it to work with http://www.demo.local without the app name as suffix I have many applications on that tomcat, so using the app name is not good. Any suggestions on how to proceed? Tx in advance Giorgio Ponza - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: article on tomcat performance
PDF. Then its one document which will look the same everywhere. I prefer not to use Office documents for cross company transmission since I can't trust the other party sending me a virus free document. (Even if my security settings are high) -Tim Peter Lin wrote: Here is a quick update. I plan to release the finished article thursday or friday. tim and mike were kind enough to review it. I'm still waiting for the other reviewers. My question is what format would people like? word openoffice pdf peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WAR files help
Hi all i have my application running at www.demo.local in Tomcat 4.1.24 Linux RH 9 the dir is /webapps/demo and the files are unpacked Now i'd like to clear it and create a WAR file. So i've done this 1. jar cf demo.war * 2. copied the file in /webapps 3. deleted the directory /webapps/demo 4. modified the server.xml with this Host name=www.demo.local debug=0 appBase=webapps/demo unpackWARs=false Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=demo. suffix=.txt timestamp=false / Context path= docBase=/demo debug=0 reloadable=true /Context /Host Now if i use http://www.demo.local/demo it works, but i want it to work with http://www.demo.local without the app name as suffix I have many applications on that tomcat, so using the app name is not good. Any suggestions on how to proceed? Tx in advance Giorgio Ponza - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Config Error ??
Your web.xml says the URL is: /Login You are requesting in your webbrowser: http://myserver/naccrrajsp/servlet/naccrra.servlets.LoginServlet And you jk config looks ok. So ask for in your webbrowser: http://myserver/naccrrajsp/Login Your other syntax looks like it wants to use the invoker, a very bad thing: http://jakarta.apache.org/tomcat/faq/misc.html#invoker -Tim David OBrien wrote: I'm having a bit of a crisis on a web app i'm trying to setup using mod_jk and apache I get the following 404 error: type Status report message /naccrrajsp/servlet/naccrra.servlets.LoginServlet description The requested resource (/naccrrajsp/servlet/naccrra.servlets.LoginServlet) is not available. Some Information relevant to the installation: Web Application Root on server: /naccrraware/tomcat/webapps/naccrrajsp Actual Servlet lives at /naccrraware/tomcat/webapps/naccrrajsp/WEB-INF/classes/naccrra/servlets/LoginServlet.class Using the Following as the web.xml in /naccrraware/tomcat/webapps/naccrrajsp/WEB-INF !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameLoginServlet/servlet-name servlet-classnaccrra.servlets.LoginServlet/servlet-class /servlet servlet-mapping servlet-nameLoginServlet/servlet-name url-pattern/Login/url-pattern /servlet-mapping /web-app - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Directory generator beginner's question
No. But you can extend the Default servlet and override its welcome file processing. -Tim Faehndrich Philippe wrote: Hello, I wish I could display the content of a directory, as we can do with a directory generator. The problem is, I don't want to display the file names, or creation or modification times, or sizes, but some elements that are part of these files, like what is in the TITLE, AUTHOR and KEYWORDS tags. Is there a simple and easy way to do this through a pipeline? Thanks for help Philippe Faehndrich Lausanne - Switzerland - 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: Config Error ??
A config error and a coding error. You've set up a servlet mapping but aren't using it. Instead of using the URI /naccrrajsp/servlet/naccrra.servlets.LoginServlet use /naccrrajsp/Login Then you'll need to add a JKMount for /naccrrajsp/Login HTH, Jon David OBrien wrote: I'm having a bit of a crisis on a web app i'm trying to setup using mod_jk and apache I get the following 404 error: type Status report message /naccrrajsp/servlet/naccrra.servlets.LoginServlet description The requested resource (/naccrrajsp/servlet/naccrra.servlets.LoginServlet) is not available. Some Information relevant to the installation: Web Application Root on server: /naccrraware/tomcat/webapps/naccrrajsp Actual Servlet lives at /naccrraware/tomcat/webapps/naccrrajsp/WEB-INF/classes/naccrra/servlets/LoginServlet.class Using the Following as the web.xml in /naccrraware/tomcat/webapps/naccrrajsp/WEB-INF !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameLoginServlet/servlet-name servlet-classnaccrra.servlets.LoginServlet/servlet-class /servlet servlet-mapping servlet-nameLoginServlet/servlet-name url-pattern/Login/url-pattern /servlet-mapping /web-app Using the following jk config in httpd.conf -- # # NACCRRAware Configuration # JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel info JkMount /naccrrajsp ajp13 JkMount /naccrrajsp/* ajp13 JkMount /naccrrajsp/servlet/* ajp13 Using the following server.xml -- Server port=8005 shutdown=SHUTDOWN debug=9 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/naccrraware/modules/mod_jk.so jkDebug=debug workersConfig=/naccrraware/tomcat/conf/jk/workers.properties jkLog=/naccrraware/logs/mod_jk.log / GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service name=Tomcat-Standalone Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=9/ Engine name=Standalone defaultHost=localhost debug=9 jvmRoute=OK Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Host name=localhost debug=9 appBase=webapps unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Context path=/naccrrajsp docBase=naccrrajsp debug=9 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=naccrrajsp_log. suffix=.txt timestamp=true/ /Context /Host /Engine /Service /Server -- I need an extra set of eyes. Anyone see anthing amiss? Have any ideas or suggestions? examples manager and admin worked fine. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Blocking html
So people are using your server as a proxy server? Tomcat (AFAIK) does not allow that from its base functionality. If so - that is a security flaw. -Tim John Wallis wrote: Hi users, The html pages are of the web and are not mine. My server somehow acts like a proxy giving my callers access to the web. I want to prevent this. In server.xml there are no proxyname/host settings -- ?? Any suggestions Thank You John Wallis On Fri, 19 Sep 2003, Tim Funk wrote: 1) Delete the html pages 2) If the html pages are masked behind the html pages (via a forward on include) - Move the pages somewhere under WEB-INF 3) There is an Valve for restrict requests by address - you might be able to use or adapt that -Tim John Wallis wrote: Hi Folks, I have a site that provides jsp/java pages only. Problem is: people can visit my site (costing me money) and gain access to the www (html pages). I don't have any proxy settings in server.xml How can I block this? Thank You, John Wallis - 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] *** * Dr. John Wallis * * * * SFB 359: Reaktive Stromungen, Diffusion * * und Transport * * Universität Heidelberg * * Im Neuenheimer Feld 294 * * 69120 Heidelberg* * * * Tel. : +49 6221 54 4986 * * Email: [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]
single sign-on, form-based CMA, etc
Looking through the archives I see this topic has had some heavy discussion in the past, but I just want to bring it up again to verify a few points. To overcome the issue with tomcat 4.x where the first session amongst all contexts to time-out will time-out all the user's other sessions, I saw Shanmugan left what appears to be a fine solution, overriding SingleSignOn.java's invoke() method to keep all sessions up-to-date: http://www.mail-archive.com/[EMAIL PROTECTED]/msg91451.html To overcome the issue where each context must have its own set of login and error pages for form-based authentication, I saw someone saying that they use symlinks under Linux, at least. In fact I'm also planning to use symlinks to share style sheets and page templates (in Tiles) across my projects. Now that I'm about to launch into doing this myself, it would be great if anyone else doing this could give some feedback as to how well these solutions perform, or any other issues that arise. Thanks! Adam -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
printing from java bean to jsp page
System.out.print from a java bean writes to the command prompt but how do i write to a jsp page where inside that jsp page i call the java bean. must i pass it in as a variable or can i write psuedo code such as println(htmlblah/html); if so how. mike _ Get McAfee virus scanning and cleaning of incoming attachments. Get Hotmail Extra Storage! http://join.msn.com/?PAGE=features/es - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: servlet question
Howdy, Whoa, what's going on with this thread? ;) There's no j2ee.jar with tomcat, there can't and shouldn't be. Don't look for it. You don't need all the classes in commons/lib to compile your servlets, don't add them all to the classpath. Add only the ones you need, which is typically just the servlet-api classes. Thank you for helping test out tomcat 5 -- please use the latest release if you can: 5.0.12 will be out in the next couple of days as a beta. Yoav Shapira Millennium ChemInformatics -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Sunday, September 21, 2003 8:48 AM To: Tomcat Users List Subject: Re: servlet question In order to compile servlets with javac, you will need to include all of the jar files found in ...common/lib in your classpath. Tomcat will include them automatically when it starts up for running the servlets but you will need to do set up your environment manually in order to compile with javac. Remember, each jar file needs to be explicitly added to your classpath. Don't just add the directory that they are under. On Sunday 21 September 2003 06:26 am, you wrote: Indeed. There is a servlet-api.jar under $TOMCAT_HOME/common/lib/ My Tomcat version is 5.0.0 On Sunday 21 September 2003 11:42, BAO RuiXian wrote: Bruno Costacurta wrote: It seems you miss J2EE. After installation (from www.java.sun.com/j2ee) you should find j2ee.jar (under $J2EE_HOME/lib/) which contain javax.servlet.* Hope it helps. Maybe. But, there should also be a servlet.jar in %TOMCATHOME%/common/lib directory. At least I have it for my tomcat 4.18. And water autumn cannot find it in TOMCAT 5.0.0 Best Bao On Saturday 20 September 2003 17:45, water autumn wrote: hello: My environment is follow: JDK : j2sdk_1.4.2_01 Web Server : TOMCAT 5.0.0 When i devloped servlet program, such as test.java, while i typed this line : import javax.servlet.*;, javac tell me the error: F:\JAVA\upload\AccUpload.java:8: package javax.servlet.http does not exist import javax.servlet.http.*; why? can you tell me how i can resolve it? i can't find serlet.jar in directoryTOMCAT\common\lib water autumn - 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: tomcat won't read classes unless in explicit packages
http://tomcatfaq.sourceforge.net/classnotfound.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Luke Vanderfluit [mailto:[EMAIL PROTECTED] Sent: Sunday, September 21, 2003 11:47 PM To: Tomcat Users List Subject: tomcat won't read classes unless in explicit packages Hi, Does anyone have a solution or workaround for the following problem. I'm running an application under /tomcat/webapps. The application consists of a number of JSPs, servlets and bean classes, The package structure looks like this /tomcat/tutorialbeans | --- | | WEB-INF JSPs(.jsp files) | | | web.xml(file) classes(dir) | tutorialbeans | tb(dir) | || classes(src and class files) tbbeans(dir) | - | | classes(files)tb2(dir) | classes(files) Initially with tomcat 4.0 it was possible to have all the class files(servlets and beans) in one directory, namely WEB-INF/classes, however trying to run the exact same application with tomcat 4.1.x results in compilation errors. It seems 4.1.x needs explicitly stipulated packages in order to work. I've had to devise the above package structure to get the application to run under 4.1.x QUESTION: Is there any workaround or other way to get tomcat 4.1.xx to run the application with all classes in one directory, be it the default package or explicitly specified? I've read about this problem, but not to the extent that a solution or workaround or has been presented. Any input is appreciated, kind regards, Luke -- when my computer smiles, I'm happy ===.~ ~, Luke Vanderfluit |'/'] Mobile: 0421 276 282\~/` - 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]
Yoav do you know how to solve my problem?
My question is in the email above from Michael Ni _ Instant message with integrated webcam using MSN Messenger 6.0. Try it now FREE! http://msnmessenger-download.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]
After compiling and running some offline sample java programs, it seems unlikely that the problem is with the JVM. If it were I shouldn't be able to run any java programs under non-root users, but I can. The problem still only appears to be when starting and stopping Tomcat as a non-root user. I need to find a resolution to this asap. I am wondering if there is any way that if I am stuck with starting Tomcat as root, is there anyway it can be started as root, but then spawn off child threads as a non-root user (i.e. the way apache does it..) Thanks in advance. Denise -Original Message- From: Denise Mangano Sent: Friday, September 19, 2003 4:51 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError] My Tomcat is not running on port 80. I have Apache running on port 80 communicating with Tomcat via mod_jk (Apache starts up fine). Also I am not using IPTables - I have relied on our network firewall for protection. I think Filip is on to something with the JVM... I am posting to Linux boards right now... Denise Mangano Complus Data Innovations, Inc. 914-747-1200 -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 4:48 PM To: 'Tomcat Users List' Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError] I forget if you've said or not, but are non-root users allowed to priveleged ports? Which is what Tomcat would do if you've changed it to port 80. Forgive my non-linux background, but perhaps you were using an IPTables solution to work around this limitation I vaguely and poorly remember, and because your machine crashed, those settings are gone. Sysadmins, feel free to flame my clutching at straws! -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 3:42 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError] Why would this happen suddenly though? Tomcat was running fine before. Unfortunately switching OS is not an option. So this sounds like a linux problem? Denise Mangano Complus Data Innovations, Inc. 914-747-1200 -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 4:39 PM To: Tomcat Users List Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError] the problem is somewhere in the native JVM. It fails when trying to create a native thread on the OS level as a noon root user. All I can say is, switch OS :) Filip - Original Message - From: Denise Mangano [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 19, 2003 1:15 PM Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError] I know I've flooded the list about this, and I appreciate everyone's help but I am at a complete loss. I even restored from backup tape and the same thing is happening. I reinstalled tomcat, reinstalled j2sdk, yet Tomcat will only run as root. It is obviously not safe to run Tomcat as root, but I absolutely have to get my app back up. Any more suggestions are greatly appreciated. Thanks. Denise -Original Message- From: Denise Mangano Sent: Friday, September 19, 2003 3:20 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError] Filip .. Sorry - this was in my original post: Starting service Tomcat-Standalone Apache Tomcat/4.1.27 Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess orImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth odAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Caused by: java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ini t(ThreadP ool.java:582)
RE: CPU usage 100%
I donot have infinite loops. i did little bit of testing last week. kill -s 24 (STOP) made the cpu to come down to 0%. It paused the application. Then i tried kill -s 3 the cpu went back to 100% but no dump. This tells me that tomcat is responding to signals, but still doesnt explain why it cant dump log on SIGQUIT. I used glance again to see what system call it is on. I found that jvm is repeatedly trying sched_yield approx 1000's in a minute or so. Then played around with different signals. One of the signal made jvm to core dump. On analyzing the core dump with debugger found the following in thread stack 0. sched_yield 1. os_yield 2. jni_invoke_nonstatic_FP7JNIEnv_p9JavaValueP8_jobject. 3. jni_callBooleanMethod__FP7JNIEnv_p8_jobjectP10_jmethodIDE 4. java_java_net_plainSocketImpl_socketAccept Just before the cpu went 100%. I accessed my JSP page. Closed Internet explorer. After 2 minitues I again opened IE and tried accessing that page. At this point the CPU went nuts. Ravi - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] Date: Thu, 18 Sep 2003 14:49:26 -0400 To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: CPU usage 100% Howdy, Look for infinite loops... Yoav Shapira Millennium ChemInformatics -Original Message- From: Ravi Puthiyattil [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 2:47 PM To: Tomcat Users List Subject: RE: CPU usage 100% Hi, I was not using -server option. Now i changed it to -server option and also increased heap size to 512m. Still i have 100%CPU problem. When this problem occurs i can't access any page. I have to do a kill -9 on jvm and then restart the server. What should i try next. Thanks in advance Ravi - Original Message - From: Jared Walker [EMAIL PROTECTED] Date: 09 Sep 2003 14:10:13 -0500 To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: CPU usage 100% Howdy, If it does it when there is no one accessing the server then I would think its the JVM not tomcat. Check your JVM settings. If you're starting up with the -server option I've noticed that the garbage collection will show 100% cpu utilization even though the system responds fine. This may be what you are experiencing. later, -Jared On Tue, 2003-09-09 at 12:50, Shapira, Yoav wrote: Howdy, The SIGQUIT works for me even when CPU usage is 100%, so it's strange it doesn't work for you. (I'm on solaris though). One important thing to check is your JSP page; make sure you have no infinite loops or other such locks in the page. Yoav Shapira Millennium ChemInformatics -Original Message- From: Ravi Puthiyattil [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 1:36 PM To: [EMAIL PROTECTED] Subject: CPU usage 100% Hi all, I am running Tomcat 4.1 on HPUX11.11, jdk1.4.1 running a small jsp page. Tomcat hangs with 100% cpu after some time. I tried to do a kill -SIGQUIT on the process, but there is no trace dump. Trace dump works only when the cpu is not at 100% (or when tomcat is running normally). I tried using glance and checked all the threads, most of the threads are in wait state SYSTEM and 3 threads are in wait state SLEEP. These 3 threads are the ones that have high CPU time. I notice this behaviour even when no body is accessing web page. So it looks like when it is idle for a while the CPU usage goes 100%. I don't know how to debug next. I need some help in finding out why and where the CPU goes nuts. Is there anything i need to change in the config files ? Please help. Thanks in advance, Ravi -- __ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers - 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] -- Jared Walker [EMAIL PROTECTED] ClickFind - To unsubscribe, e-mail: [EMAIL
Host will not save session data
Hello Tomcat Gurus, I've created a new host in my server.xml file for a site, new_tridentms.com. This site is redirected from apache. The problem is this: My new host will not save session info. I created the site on a development server under the webapps default host and everything works fine. Only when I move it to the new server in it's own host configuration does it stop storing session vars. I suspect I'm missing some directive under my Host tag but I don't know what it is. Another thing that is worth mentioning is that I'm using the MVC paradigm so a one servlet is actually placing the object into the session and other servlets read it out. Here are excerpts from my configuration files: server.xml for Tomcat: ... Host name = new_tridentms.com debug = 0 unpackWARs=true Aliaswww.new_tridentms.com/Alias Logger className=org.apache.catalina.logger.FileLogger directory = logs prefix=new_tridentms suffix=.log timestamp=true/ Context path= docBase=/data/tms_www/new_tridentms debug=0 reloadable=true/ /Host ... httpd.conf: VirtualHost X.x.x.x:x #IP Masked out to protect my server :) DocumentRoot /data/tms_www/new_tridentms ServerName www.new_tridentms.com ServerAlias new_tridentms.com ServerAdmin [EMAIL PROTECTED] JkMount /*.jsp tomcatworker # My servlets are mapped using a .jsp after the servlet name to avoid naming problems with the apache connector. /VirtualHost Thanks so much for your help. Lon Palmer Software Engineer Trident Micro Systems
Where's the coyote?
Help! Maybe I'm blind or something but I cannot find on your website any place to download the Coyote JK2 or other connectors. Lot's of documention links. No download links.
newbie jasperException
Hi, I am getting the following JasperException. (Please scroll below for the exception :-) ). I am relatively new to jsp. Can anyone please point me as to what's going wrong here? FYI I am including the jsp code also. -jsp code html head script type=text/javascript function textSelected() { option=document.forms[0].PoRefno.options[document.forms[0].PoRefno.selectedI ndex].text document.write(This is the selected text + option) } /script /head body %@ page import=deshaw.fats.collection.database.PurchaseOrderDbCollection, java.util.*,java.sql.SQLException% %! Vector v; % % try{ v=new PurchaseOrderDbCollection().getPoRefNos(); } catch(SQLException e) { % jsp:forward page=Errorpage.jsp jsp:param name=ErrornName value=SQLException/ jsp:param name=Location value=new PurchaseOrderDbCollection()/ /jsp:forward % } % select name=PoRefno size=5 onchange=textSelected() % Iterator i=v.iterator(); String s; while(i.hasNext()) { s=(String) i.next(); out.write(option value=\ + s + \ + s + br); } % /select /form /body /html /---jsp code- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 54) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2408) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:534) root cause javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:536) at org.apache.jsp.Procurement_jsp._jspService(Procurement_jsp.java:84) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 10)
stdout.log file growing very quickly.
Hello, We're using Tomcat 4.1 and we have a problem where the logs\stdout.log grows very quickly. I was wondering if you had any advice to offer? What would be ideal is if we could have the properties of org.apache.catalina.logger.FileLogger to create a new log every new day. I've searched the internet, and could not find anything about stdout.log and this problem, other than to keep clearing the file down manually. Thanks in advance. Dan. EMAIL DISCLAIMER Please Note: The information contained in this message may be privileged and confidential, protected from disclosure, and/or intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any disclosure, distribution, copying or other dissemination of this communication is strictly prohibited. If you received this communication in error, please immediately reply to the sender, delete the message and destroy all copies of it. Thank You
RE: stdout.log file growing very quickly.
Howdy, Why is it growing so fast? You have several options, all of which have been discussed on the list in the past. They include: - Using an external program like logrotate to rotate the stdout log for you. - Adding swallowOutput=true to your context so that stdout/stderr output from those webapps goes to their servlet log, which tomcat rotates for you nightly. Yoav Shapira Millennium ChemInformatics -Original Message- From: Wood, Daniel [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 7:24 AM To: '[EMAIL PROTECTED]' Subject: stdout.log file growing very quickly. Hello, We're using Tomcat 4.1 and we have a problem where the logs\stdout.log grows very quickly. I was wondering if you had any advice to offer? What would be ideal is if we could have the properties of org.apache.catalina.logger.FileLogger to create a new log every new day. I've searched the internet, and could not find anything about stdout.log and this problem, other than to keep clearing the file down manually. Thanks in advance. Dan. EMAIL DISCLAIMER Please Note: The information contained in this message may be privileged and confidential, protected from disclosure, and/or intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any disclosure, distribution, copying or other dissemination of this communication is strictly prohibited. If you received this communication in error, please immediately reply to the sender, delete the message and destroy all copies of it. Thank You 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]
Help is setting up my First Servlet
Hello: I am new to JAVA and JSP. Last week with help from the post, I have tomact 5.0 installed and working. (side note: I can start tomcat only from startup cmd in the Bin folder). I cannot start from the GUI I get when I installed tomcat. Either way, it's working that's good news. I can run samples. 1) Now I have 2 Java files. I created a new folder c:\jsp\OraSample. In this folder I have compiled and created the class files to access oracle database. 2) I have a JSP page also in the same folder as above. 3) I copied 2 class files to tomcat 5.0\webapps\root\web-inf\classes\org.apache.jsp 4) My JSP page is in tomcat 5.0\webapps\root folder. 5) What should my web.xml look like? Here is what I have: servlet servlet-nameorg.apache.jsp.index_jsp/servlet-name servlet-classorg.apache.jsp.index_jsp/servlet-class /servlet servlet servlet-nameorg.apache.jsp.empbean/servlet-name servlet-classorg.apache.jsp.empQBean/servlet-class /servlet servlet-mapping servlet-nameorg.apache.jsp.empbean/servlet-name url-pattern/dbqueryJB.jsp/url-pattern /servlet-mapping servlet-mapping servlet-nameorg.apache.jsp.index_jsp/servlet-name url-pattern/index.jsp/url-pattern /servlet-mapping 6) When I point my browser to the JSP page, I get the following error: java.lang.NoClassDefFoundError: org/apache/jsp/empQBean (wrong name: empQBean) java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:537) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo ader.java:1657) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav a:882) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1345) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1225) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175 ) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:637) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:488) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:568) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:631) java.lang.Thread.run(Thread.java:534) CAN SOME PLEASE HELP ME. THANKS FOR YOUR HELP IN ADVANCE. Thanks GG - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help is setting up my First Servlet
I havent used 5 ( only 4.1 ) but the first thing I noticed is that on item 3 you wrote: 5.0\webapps\root\web-inf\classes\org.apache.jsp do you actually mean: 5.0\webapps\root\web-inf\classes\org\apache\jsp ? If not, this would cause the error your seeing. The servlet-classorg.apache.jsp.empQBean/servlet-class will look to WEB-INF/classes/org/apache/jsp/empQBean.class Hope this helps... Lon Palmer -Original Message- From: Giri Gopal [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 10:03 AM To: Tomcat Users List Subject: Help is setting up my First Servlet Hello: I am new to JAVA and JSP. Last week with help from the post, I have tomact 5.0 installed and working. (side note: I can start tomcat only from startup cmd in the Bin folder). I cannot start from the GUI I get when I installed tomcat. Either way, it's working that's good news. I can run samples. 1) Now I have 2 Java files. I created a new folder c:\jsp\OraSample. In this folder I have compiled and created the class files to access oracle database. 2) I have a JSP page also in the same folder as above. 3) I copied 2 class files to tomcat 5.0\webapps\root\web-inf\classes\org.apache.jsp 4) My JSP page is in tomcat 5.0\webapps\root folder. 5) What should my web.xml look like? Here is what I have: servlet servlet-nameorg.apache.jsp.index_jsp/servlet-name servlet-classorg.apache.jsp.index_jsp/servlet-class /servlet servlet servlet-nameorg.apache.jsp.empbean/servlet-name servlet-classorg.apache.jsp.empQBean/servlet-class /servlet servlet-mapping servlet-nameorg.apache.jsp.empbean/servlet-name url-pattern/dbqueryJB.jsp/url-pattern /servlet-mapping servlet-mapping servlet-nameorg.apache.jsp.index_jsp/servlet-name url-pattern/index.jsp/url-pattern /servlet-mapping 6) When I point my browser to the JSP page, I get the following error: java.lang.NoClassDefFoundError: org/apache/jsp/empQBean (wrong name: empQBean) java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:537) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo ader.java:1657) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav a:882) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1345) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1225) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175 ) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:637) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:488) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:568) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:631) java.lang.Thread.run(Thread.java:534) CAN SOME PLEASE HELP ME. THANKS FOR YOUR HELP IN ADVANCE. Thanks GG - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stdout.log file growing very quickly.
another question on this topic which has long puzzled me: is tomcat being changed over to commons-logging to output log statements? Or is it all configured going to remain controlled by the debug attributes of nodes in server.xml? If I set all those debug attributes to 0, will tomcat become totally silent? Adam On 09/22/2003 03:43 PM Shapira, Yoav wrote: Howdy, Why is it growing so fast? You have several options, all of which have been discussed on the list in the past. They include: - Using an external program like logrotate to rotate the stdout log for you. - Adding swallowOutput=true to your context so that stdout/stderr output from those webapps goes to their servlet log, which tomcat rotates for you nightly. Yoav Shapira Millennium ChemInformatics -Original Message- From: Wood, Daniel [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 7:24 AM To: '[EMAIL PROTECTED]' Subject: stdout.log file growing very quickly. Hello, We're using Tomcat 4.1 and we have a problem where the logs\stdout.log grows very quickly. I was wondering if you had any advice to offer? What would be ideal is if we could have the properties of org.apache.catalina.logger.FileLogger to create a new log every new day. I've searched the internet, and could not find anything about stdout.log and this problem, other than to keep clearing the file down manually. Thanks in advance. Dan. EMAIL DISCLAIMER Please Note: The information contained in this message may be privileged and confidential, protected from disclosure, and/or intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any disclosure, distribution, copying or other dissemination of this communication is strictly prohibited. If you received this communication in error, please immediately reply to the sender, delete the message and destroy all copies of it. Thank You 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] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: stdout.log file growing very quickly.
Howdy, another question on this topic which has long puzzled me: is tomcat being changed over to commons-logging to output log statements? It would be good to start a different mailing list thread when you have a different (albeit related) question ;) Or is it all configured going to remain controlled by the debug attributes of nodes in server.xml? If I set all those debug attributes to 0, will tomcat become totally silent? Tomcat is already mostly switched over to commons logging. Some things are still controlled by the debug attributes in server.xml. Setting all those to zero will not make tomcat completely silent. You're welcome to contribute patches to convert remaining parts of tomcat to use commons-logging. 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: IIS 5.1 and Tomcat 4
I think you must have this row in your workers.properties: worker.list=ajp13 More comments are embedded in your text below. Please let me know it this helps. /Mats Jon Skeet wrote: I'm trying to get IIS 5.1 and Tomcat 4 to play nicely together. So far I've not got very far. I've got: o isapi_redirect.dll from http://apache.oregonstate.edu/jakarta/tomcat-3/bin/win32/i386/ (That's the only place I could find it, and it took a while to find... should I be worried that it's in the Tomcat 3 directory?) Go here instead. Seems better. http://www.apache.org/dist/jakarta/tomcat-connectors/ o Registry entries in Jakarta Isapi Redirector\1.0 (which I think are okay) They are, you have the green up workers.properties and uriworkermap.properties which I think are okay. Only useful bits in them are: [workers.properties] worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 [uriworkermap.properties] default.worker=ajp13 /mobilizer/*=$(default.worker) server.xml has: !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8081 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8081 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ I was slightly unsure about this - given that I want the first one (note the non-default port, by the way) do I actually need the second? Should I just be able to change teh port in workers.properties? workers.properties in your configuration tells IIS that your worker (=tomcat) will listen at port 8009) while the Connector declaration in server.xml tells tomcat that it sould start the AJP13 Connector on port 8009. So, you need both. The servlets work fine from the HTTP connector. IIS has a jakarta virtual directory with execute script permission, the ISAPI filter is up (green arrow), but I get: The specified module could not be found. on my web browser. The catalina log has: 2003-09-19 14:02:42 Ajp13Connector[8009] Opening server socket on all host IP addresses 2003-09-19 14:02:42 Ajp13Connector[8009] Starting background thread 2003-09-19 14:02:42 Ajp13Processor[8009][0] Starting background thread 2003-09-19 14:02:42 Ajp13Processor[8009][1] Starting background thread 2003-09-19 14:02:42 Ajp13Processor[8009][2] Starting background thread 2003-09-19 14:02:42 Ajp13Processor[8009][3] Starting background thread 2003-09-19 14:02:43 Ajp13Processor[8009][4] Starting background thread The localhost log doesn't seem to mention anything in particular. The isapi log has lines such as: [Fri Sep 19 14:04:40 2003] [jk_isapi_plugin.c (626)]: HttpFilterProc started [Fri Sep 19 14:04:40 2003] [jk_isapi_plugin.c (672)]: In HttpFilterProc Virtual Host redirection of /localhost/mobilizer/mobilizer [Fri Sep 19 14:04:40 2003] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Sep 19 14:04:40 2003] [jk_uri_worker_map.c (368)]: Attempting to map URI '/localhost/mobilizer/mobilizer' [Fri Sep 19 14:04:40 2003] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Fri Sep 19 14:04:40 2003] [jk_isapi_plugin.c (678)]: In HttpFilterProc test Default redirection of /mobilizer/mobilizer [Fri Sep 19 14:04:40 2003] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Sep 19 14:04:40 2003] [jk_uri_worker_map.c (368)]: Attempting to map URI '/mobilizer/mobilizer' [Fri Sep 19 14:04:40 2003] [jk_uri_worker_map.c (391)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - /mobilizer/ [Fri Sep 19 14:04:40 2003] [jk_isapi_plugin.c (688)]: HttpFilterProc [/mobilizer/mobilizer] is a servlet url - should redirect to ajp13 [Fri Sep 19 14:04:40 2003] [jk_isapi_plugin.c (737)]: HttpFilterProc check if [/mobilizer/mobilizer] is points to the web-inf directory [Fri Sep 19 14:19:23 2003] [jk_isapi_plugin.c (626)]: HttpFilterProc started [Fri Sep 19 14:19:23 2003] [jk_isapi_plugin.c (672)]: In HttpFilterProc Virtual Host redirection of /localhost/mobilizer/mobilizer/ [Fri Sep 19 14:19:23 2003] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Sep 19 14:19:23 2003] [jk_uri_worker_map.c (368)]: Attempting to map URI '/localhost/mobilizer/mobilizer/' [Fri Sep 19 14:19:23 2003] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Fri Sep 19 14:19:23 2003] [jk_isapi_plugin.c (678)]: In HttpFilterProc test Default redirection of /mobilizer/mobilizer/ [Fri Sep 19 14:19:23 2003] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Sep 19 14:19:23 2003]
RE: Help is setting up my First Servlet
Hi Palmer: You are correct, It's my error. It is : 5.0\webapps\root\web-inf\classes\org\apache\jsp thanks -Original Message- From: Lon Palmer [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 9:16 AM To: Tomcat Users List Subject: RE: Help is setting up my First Servlet I havent used 5 ( only 4.1 ) but the first thing I noticed is that on item 3 you wrote: 5.0\webapps\root\web-inf\classes\org.apache.jsp do you actually mean: 5.0\webapps\root\web-inf\classes\org\apache\jsp ? If not, this would cause the error your seeing. The servlet-classorg.apache.jsp.empQBean/servlet-class will look to WEB-INF/classes/org/apache/jsp/empQBean.class Hope this helps... Lon Palmer -Original Message- From: Giri Gopal [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 10:03 AM To: Tomcat Users List Subject: Help is setting up my First Servlet Hello: I am new to JAVA and JSP. Last week with help from the post, I have tomact 5.0 installed and working. (side note: I can start tomcat only from startup cmd in the Bin folder). I cannot start from the GUI I get when I installed tomcat. Either way, it's working that's good news. I can run samples. 1) Now I have 2 Java files. I created a new folder c:\jsp\OraSample. In this folder I have compiled and created the class files to access oracle database. 2) I have a JSP page also in the same folder as above. 3) I copied 2 class files to tomcat 5.0\webapps\root\web-inf\classes\org.apache.jsp 4) My JSP page is in tomcat 5.0\webapps\root folder. 5) What should my web.xml look like? Here is what I have: servlet servlet-nameorg.apache.jsp.index_jsp/servlet-name servlet-classorg.apache.jsp.index_jsp/servlet-class /servlet servlet servlet-nameorg.apache.jsp.empbean/servlet-name servlet-classorg.apache.jsp.empQBean/servlet-class /servlet servlet-mapping servlet-nameorg.apache.jsp.empbean/servlet-name url-pattern/dbqueryJB.jsp/url-pattern /servlet-mapping servlet-mapping servlet-nameorg.apache.jsp.index_jsp/servlet-name url-pattern/index.jsp/url-pattern /servlet-mapping 6) When I point my browser to the JSP page, I get the following error: java.lang.NoClassDefFoundError: org/apache/jsp/empQBean (wrong name: empQBean) java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:537) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo ader.java:1657) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav a:882) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1345) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1225) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175 ) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:637) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:488) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:568) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:631) java.lang.Thread.run(Thread.java:534) CAN SOME PLEASE HELP ME. THANKS FOR YOUR HELP IN ADVANCE. Thanks GG - 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]
two tomcat instances
hi i have an application which uses tomcat 4.0 and i have copied the application and tomcat to two different folders. as far as i can see i have changed the configuration settings on the second instance of server xml which are different server ports different ajp13 connector ports different warp connector ports there is also an appllication xml file which resides in the WEB-INF directory though this contains user name and pass (i have also changed the port number), and i dont see why this would be relative. the second instance on port 8082 simply hangs. any ideas as to the problem ? also how do you configure the catalina_base environment variable ? in which file do you do this ? do you ammend existing text ? cheers chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IIS 5.1 and Tomcat 4
(Thanks for replying, btw :) I think you must have this row in your workers.properties: worker.list=ajp13 I'm afraid I already have that - I must have been a bit overenthusiastic when snipping my file down to a manageable file for mailing list purposes. o isapi_redirect.dll from http://apache.oregonstate.edu/jakarta/tomcat-3/bin/win32/i386/ (That's the only place I could find it, and it took a while to find... should I be worried that it's in the Tomcat 3 directory?) Go here instead. Seems better. http://www.apache.org/dist/jakarta/tomcat-connectors/ Sounds promising, but unfortunately it's empty as far as I can see. (Or rather, there are directories for coyote, jk, jk2 and webapp, but they're all empty.) o Registry entries in Jakarta Isapi Redirector\1.0 (which I think are okay) They are, you have the green up Good. One thing less to worry about :) snip server.xml has: !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8081 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8081 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ I was slightly unsure about this - given that I want the first one (note the non-default port, by the way) do I actually need the second? Should I just be able to change teh port in workers.properties? workers.properties in your configuration tells IIS that your worker (=tomcat) will listen at port 8009) while the Connector declaration in server.xml tells tomcat that it sould start the AJP13 Connector on port 8009. So, you need both. Sorry - I wasn't clear. What I meant was, can I get rid of the Ajp13Connector part of server.xml, and just use the JkCoyote connector? Or can I get rid of the JkCoyote connector and just use the Ajp13Connector? I can't see why I'd need both, but I'd appreciate any advice on which is better, etc. Any clues as to what I'm missing? IIS does listen on your requests and the dll is registered ok, but for some reason it can't map the request to a worker (= a running tomcat instance). I think it is because you miss the worker.list as I described it above. How I wish that were the case. One thing I'm *not* doing is specifying workers.tomcat_home or workers.java_home - as I'm starting Tomcat up separately, I don't think I need those. Is that right? I use jk2. Some people say it is not as stable as jk, but I have not encountered any problems with it yet. My reason is that the old jk does not support MBeans, don't ask what it is more precisely, but my tomcat will generate a (harmless) stacktrace at the beginning telling me this. Later when I shut my tomcat down, the shutdown process takes a long time, probably waiting to shut down the jk module in tomcat, which does not support being shut down like a MBean or something. Have you the same experience with jk? I haven't seen anything like that, although I needed to patch JK's ChannelSocket class in order to get it to shut down cleanly. (It's fine now though.) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MORE INFO: Host will not save session data
All, I found a post at http://marc.theaimsgroup.com/?l=tomcat-devm=104247780113629w= that points to a problem with cookies and sub domains using IE 6 and sure enough Netscape 7 has no problem with my site. Of course that is no comfort to any tomcat user considering half the world in on IE 6. So now what. First, there are no sub domains for new_tridentms.com, only www.new_tridentms.com as my email shows. Also the link above says: My personal workaround (until the bug is fixed) is to move the content from mydomain.com to www.mydomain.com. so the cookie does not conflict with the cookie from test.mydomain.com. What does this poster mean by move the content to www.mydomain.com from mydomain.com? What does that relate to in the server.xml file or does it relate to where the file content is stored or what? Thanks again in advance for all your help. Lon Palmer -Original Message- From: Lon Palmer [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 9:32 AM To: [EMAIL PROTECTED] Subject: Host will not save session data Hello Tomcat Gurus, I've created a new host in my server.xml file for a site, new_tridentms.com. This site is redirected from apache. The problem is this: My new host will not save session info. I created the site on a development server under the webapps default host and everything works fine. Only when I move it to the new server in it's own host configuration does it stop storing session vars. I suspect I'm missing some directive under my Host tag but I don't know what it is. Another thing that is worth mentioning is that I'm using the MVC paradigm so a one servlet is actually placing the object into the session and other servlets read it out. Here are excerpts from my configuration files: server.xml for Tomcat: ... Host name = new_tridentms.com debug = 0 unpackWARs=true Aliaswww.new_tridentms.com/Alias Logger className=org.apache.catalina.logger.FileLogger directory = logs prefix=new_tridentms suffix=.log timestamp=true/ Context path= docBase=/data/tms_www/new_tridentms debug=0 reloadable=true/ /Host ... httpd.conf: VirtualHost X.x.x.x:x #IP Masked out to protect my server :) DocumentRoot /data/tms_www/new_tridentms ServerName www.new_tridentms.com ServerAlias new_tridentms.com ServerAdmin [EMAIL PROTECTED] JkMount /*.jsp tomcatworker # My servlets are mapped using a .jsp after the servlet name to avoid naming problems with the apache connector. /VirtualHost Thanks so much for your help. Lon Palmer Software Engineer Trident Micro Systems
Re: newbie jasperException
Hi, Your JSP code is wrong. The %@ page import... % directive needs to go at the top of the page. When the Jasper compiler turns it into Java, that directive gets turned into one or more Java import statements, and you wouldn't stick those in the middle of your code. Remember, all the HTML gets turned into Java code, as follows: out.write(html\r\nhead\r\n...); So that your import statements (and the class variable declaration %! Vector v; %) appear inside a servlet doGet() method, which is illegal Java. In spite of the superficial similarities, JSP is not really like PHP. The PHP interpreter turns embedded PHP code into HTML, while the JSP compiler turns HTML into Java (and then the Java compiler turns it into byte code). It will help you to keep this in mind when writing JSP code. BTW, I'm a little troubled by that %! Vector v; % declaration. This turns v into an instance variable of the servlet class that Jasper creates. Is this what you intended? If not, remove the exclamation mark and leave the variable declaration where it is. Kind regards, Chris Williams. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disabling session management (FAQ not enough)
On 20 September 2003, Chris Rolfe said: You might try: Manager classname=org.apache.catalina.session.StandardManager pathname= / Yep, I eventually found that in the O'Reilly Tomcat book. Turns out classname isn't even necessary, so this is a one-line-of-XML-per-context configuration change. Thanks! Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stdout.log file growing very quickly.
On 09/22/2003 04:25 PM Shapira, Yoav wrote: Tomcat is already mostly switched over to commons logging. tomcat 4 as well, or just 5? If so, then presumably there is a logging properties config file somewhere, which the original poster could configure so that less output goes to the console? In that case, this 'swallowOutput' attribute, that causes output to be directed to the daily logs, will cause many log entries to be duplicated in that log? Some things are still controlled by the debug attributes in server.xml. Setting all those to zero will not make tomcat completely silent. You're welcome to contribute patches to convert remaining parts of tomcat to use commons-logging. I must either stop trying to do so much or be more efficient at what I am doing before I can launch into helping at tomcat. But it would be nice to take part. I am actually contributing patches at ant, but they seem to have hordes of people contributing diverse patches which they (seem to imho) wish they didn't have. Guess it's the broad nature of ant's functionality. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IIS 5.1 and Tomcat 4
Just checking this, my log definitely shows it's found the ajp13 stuff: [Mon Sep 22 16:22:03 2003] [jk_worker.c (82)]: Into wc_open [Mon Sep 22 16:22:03 2003] [jk_worker.c (207)]: Into build_worker_map, creating 1 workers [Mon Sep 22 16:22:03 2003] [jk_worker.c (213)]: build_worker_map, creating worker ajp13 [Mon Sep 22 16:22:03 2003] [jk_worker.c (138)]: Into wc_create_worker [Mon Sep 22 16:22:03 2003] [jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 of ajp13 [Mon Sep 22 16:22:03 2003] [jk_ajp13_worker.c (922)]: Into ajp13_worker_factory [Mon Sep 22 16:22:03 2003] [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13 [Mon Sep 22 16:22:03 2003] [jk_ajp13_worker.c (443)]: Into jk_worker_t::validate [Mon Sep 22 16:22:03 2003] [jk_ajp13_worker.c (456)]: In jk_worker_t::validate for worker ajp13 contact is localhost:8009 [Mon Sep 22 16:22:03 2003] [jk_ajp13_worker.c (482)]: Into jk_worker_t::init [Mon Sep 22 16:22:03 2003] [jk_worker.c (177)]: wc_create_worker, done [Mon Sep 22 16:22:03 2003] [jk_worker.c (223)]: build_worker_map, removing old ajp13 worker [Mon Sep 22 16:22:03 2003] [jk_worker.c (235)]: build_worker_map, done [Mon Sep 22 16:22:03 2003] [jk_worker.c (102)]: wc_open, done (I assume the removing old ajp13 worker is okay?) Looking with a TCP viewer, my Tomcat installation is definitely listening on port 8009, but there's no sign of IIS trying to connect to it, which at least suggests that the problem's somewhere there rather than in server.xml. There doesn't seem to be much I could have done wrong - I'm rather confused :( Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CPU usage 100%
Ravi, Assuming that your code is at fault, have you tried doing debug output so you can find the part of your code that causes CPU usage to hit 100%. Just do this: void myMethod() { System.out.println(In myMethod); ... } You can put similar statements in your JSP code as well. Chris. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PROBLEM SOLVED: MORE INFO: Host will not save session data
Ok found the problem. NOT a Tomcat problem but still useful to tomcat developers who might run into it. Both IE 5.5 and 6 has a new security path out that prevents invalid domain names from storing cookies. Aparently the '_' character I was using in my test configuration for new_tridentms.com was causing IE to reject the cookie used for session state. I changed my domain from new_tridentms.com to newtridentms.com and everything works like a champ. This website helped me out: http://www.caucho.com/support/resin-interest/0209/0457.html Thanks Everyone: Lon Palmer -Original Message- From: Lon Palmer [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 11:20 AM To: Tomcat Users List Subject: MORE INFO: Host will not save session data All, I found a post at http://marc.theaimsgroup.com/?l=tomcat-devm=104247780113629w= that points to a problem with cookies and sub domains using IE 6 and sure enough Netscape 7 has no problem with my site. Of course that is no comfort to any tomcat user considering half the world in on IE 6. So now what. First, there are no sub domains for new_tridentms.com, only www.new_tridentms.com as my email shows. Also the link above says: My personal workaround (until the bug is fixed) is to move the content from mydomain.com to www.mydomain.com. so the cookie does not conflict with the cookie from test.mydomain.com. What does this poster mean by move the content to www.mydomain.com from mydomain.com? What does that relate to in the server.xml file or does it relate to where the file content is stored or what? Thanks again in advance for all your help. Lon Palmer -Original Message- From: Lon Palmer [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 9:32 AM To: [EMAIL PROTECTED] Subject: Host will not save session data Hello Tomcat Gurus, I've created a new host in my server.xml file for a site, new_tridentms.com. This site is redirected from apache. The problem is this: My new host will not save session info. I created the site on a development server under the webapps default host and everything works fine. Only when I move it to the new server in it's own host configuration does it stop storing session vars. I suspect I'm missing some directive under my Host tag but I don't know what it is. Another thing that is worth mentioning is that I'm using the MVC paradigm so a one servlet is actually placing the object into the session and other servlets read it out. Here are excerpts from my configuration files: server.xml for Tomcat: ... Host name = new_tridentms.com debug = 0 unpackWARs=true Aliaswww.new_tridentms.com/Alias Logger className=org.apache.catalina.logger.FileLogger directory = logs prefix=new_tridentms suffix=.log timestamp=true/ Context path= docBase=/data/tms_www/new_tridentms debug=0 reloadable=true/ /Host ... httpd.conf: VirtualHost X.x.x.x:x #IP Masked out to protect my server :) DocumentRoot /data/tms_www/new_tridentms ServerName www.new_tridentms.com ServerAlias new_tridentms.com ServerAdmin [EMAIL PROTECTED] JkMount /*.jsp tomcatworker # My servlets are mapped using a .jsp after the servlet name to avoid naming problems with the apache connector. /VirtualHost Thanks so much for your help. Lon Palmer Software Engineer Trident Micro Systems
RE: newbie jasperException
Chrish, Thanks for finding time to reply to my question. After some hours of churning the jsp code around I tracked down my mistake to not passing a command line property (-Dpos.home-...) to the JVM. When I set this property using CATALINA_OPTS=-Dpos.home=... I got the output. Thanks again. Regards, Goutam -Original Message- From: Christopher Williams [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 8:00 PM To: Tomcat Users List Subject: Re: newbie jasperException Hi, Your JSP code is wrong. The %@ page import... % directive needs to go at the top of the page. When the Jasper compiler turns it into Java, that directive gets turned into one or more Java import statements, and you wouldn't stick those in the middle of your code. Remember, all the HTML gets turned into Java code, as follows: out.write(html\r\nhead\r\n...); So that your import statements (and the class variable declaration %! Vector v; %) appear inside a servlet doGet() method, which is illegal Java. In spite of the superficial similarities, JSP is not really like PHP. The PHP interpreter turns embedded PHP code into HTML, while the JSP compiler turns HTML into Java (and then the Java compiler turns it into byte code). It will help you to keep this in mind when writing JSP code. BTW, I'm a little troubled by that %! Vector v; % declaration. This turns v into an instance variable of the servlet class that Jasper creates. Is this what you intended? If not, remove the exclamation mark and leave the variable declaration where it is. Kind regards, Chris Williams. - 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: stdout.log file growing very quickly.
Howdy, tomcat 4 as well, or just 5? If so, then presumably there is a logging properties config file somewhere, which the original poster could configure so that less output goes to the console? Tomcat 4 to a lesser extent than tomcat 5. You can add a configuration file if you wish to customize logging. You can put it in $CATALINA_HOME/server/classes or /common/classes so that it affects tomcat. I must either stop trying to do so much or be more efficient at what I am doing before I can launch into helping at tomcat. But it would be nice to take part. I am actually contributing patches at ant, but they seem to have hordes of people contributing diverse patches which they (seem to imho) wish they didn't have. Guess it's the broad nature of ant's functionality. I feel pretty safe saying tomcat doesn't have the same problem. Just make sure to properly categorize your patch as an enhancement. I can't speak for other developers, but for one get annoyed (and therefore less likely to act upon) a minor enhancement request submitted as a Blocker severity level issue ;) 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: SOLUTION!! -- Cannot load JDBC driver class 'null'
hope this is helpful: the ResourceLink line, i was able to get my datasource resource accessible to each web app by creating a new unique name for the name parameter in the ResourceLink tag for each context, while keeping the global name (specified in the Resource tag) as the value for the global parameter in all contexts. ResourceLink name=MyDataSource global=MyDataSource type=javax.sql.DataSource/ I would suggest trying a name change for the value assigned to name in tag given above, then using this new, unique, context-specific name in the web.xml file and in any connection code used within specific web app. -paul lomack - Original Message - From: King,Daniel [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 19, 2003 3:05 PM Subject: RE: SOLUTION!! -- Cannot load JDBC driver class 'null' I see this come up a lot in this user list and others about Tomcat, so I want to share this information. Note that the solution described below allows you to access a global data source from all Web Applications, without putting the Resource or ResourceParams elements in each Web Application Context. For over a week, I have been fighting the problem of configuring a data source so that it can be accessed by multiple Web Applications. I finally got it to work with Tomcat 5.0.9, by following Paul's advise from 9/12/03. I had no luck with Tomcat versions 4.1.24 or 4.1.27. To make it work in Tomcat 5.0.9, I used the Tomcat Administration tool to add the data source. It puts the following two elements in the GlobalNamingResources element: 1. Resource 2. ResourceParams I am working SQLServer 2000, using Microsoft's JDBC driver (wonders never cease): GlobalNamingResources Resource auth=Container name=MyDataSource scope=Shareable type=javax.sql.DataSource/ ResourceParams name=MyDataSource !-- etc. -- parameter namepassword/name valuemypassword/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver://111.111.111.111:1433;database=mydb/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter !-- etc. -- parameter nameusername/name valuemyusername/value /parameter /ResourceParams /GlobalNamingResources Then I added a Context element for my Web Application-- it is the first child of the Host element: Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=0 displayName=Welcome to Tomcat docBase=/usr/local/jakarta-tomcat-5.0.9/webapps/myWebApp mapperClass=org.apache.catalina.core.StandardContextMapper path=/myWebApp privileged=false reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper ResourceLink name=MyDataSource global=MyDataSource type=javax.sql.DataSource/ /Context Note that it was NOT necessary to add a resource-ref element to the web.xml for the Web Application. -Original Message- From: SANTOS, DANIEL (SBCSI) [mailto:[EMAIL PROTECTED] Sent: Fri 9/19/2003 11:20 AM To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: SOLUTION!! -- Cannot load JDBC driver class 'null' Using Sun JDK 1.4.1_02 on Win2k SP2 and Jakarta 4.1.27. The tutorial in the tomcat docs failed for me also with the Cannot load JDBC driver class 'null'. I banged my head and had to get stitches and an ice pack. After that I came back to the office and cleaned out my server.xml and web.xml completely. Then I went to http://localhost:8080/admin http://localhost:8080/admin , browsed to the context that I am writing my app in, the full path from the tree being Tomcat Server/Service (Tomcat-Standalone)/Host (localhost)/Context(/myapp)/Resources/Data Sources. I added the data source from there specifying the JNDI name, driver class, URL, user and pass, etc. Then I did some tests with a jsp to make sure it was really in my context (you may have to restart tomcat, I did). Next I added the code back into my web.xml that is in the tutorial resource-ref descriptionDB Connection/description
Re: article on tomcat performance
--- Peter Lin [EMAIL PROTECTED] wrote: Here is a quick update. I plan to release the finished article thursday or friday. tim and mike were kind enough to review it. I'm still waiting for the other reviewers. My question is what format would people like? word openoffice pdf peter Anything other than PDF. EKMacAdie __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat - thread per connection model
Hi - Not sure about one thing - what if someone opens up a 100 odd connections and sends data over the pipe slowly ? This will definitely keep that particular server (Tomcat 4.1.24) busy for a long time and no new user can get in. In this case, the throttling logic in tomcat will probably do nothing. Am I mistaken ? Also, what is disableUploadTimeout ? I didn't find any doc. about this. If it is set to false, how can I configure a longer timeout for reading requests ? Thanks in advance Rau NF [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi - Since tomcat implements a thread per connection model (as per the spec), would it be open to a DoS attack if it does not have an Apache server in front of it ? ie keep all threads busy servicing slow requests and valid users can't get in. On my tests, Tomcat stands up pretty well to a DoS attack. It will become slow if I have one machine saturate it with requests, but they all eventually get served. Tomcat 5 has additional logic to throttle connections if the load becomes high, so I'd guess that a DoS attack against it (with the default settings) is almost impossible (you would need a DDoS attack, since one machine couldn't maintain the concurrency necessary to shut Tomcat down). Assuming there is no apache server in front of tomcat and tomcat is serving everything, what's a reasonable connection timeout value? I know this is application specific but it would be interesting to hear about this. The goal obviously is to serve as many users as possible without having to create too many threads. I tend to use 5sec (which is 5000 in server.xml), since most of my apps write back very quickly. Some people prefer 15sec; The current default for Tomcat 4 is 1min. Like anything else, it depends on your app. If you typically start sending back data that includes links to images/style-sheets very quickly, then you want a low number. Even if not, I prefer to set disableUploadTimeout=false to use the longer time to read the request body. __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]
When Tomcat is shut down and I run a ps -ef no java threads are displayed. Is there any way for me to go in manually and check if there are any threads are being held onto by Tomcat/Java, and release them? Thanks. Denise -Original Message- From: Denise Mangano Sent: Monday, September 22, 2003 8:57 AM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError] After compiling and running some offline sample java programs, it seems unlikely that the problem is with the JVM. If it were I shouldn't be able to run any java programs under non-root users, but I can. The problem still only appears to be when starting and stopping Tomcat as a non-root user. I need to find a resolution to this asap. I am wondering if there is any way that if I am stuck with starting Tomcat as root, is there anyway it can be started as root, but then spawn off child threads as a non-root user (i.e. the way apache does it..) Thanks in advance. Denise -Original Message- From: Denise Mangano Sent: Friday, September 19, 2003 4:51 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError] My Tomcat is not running on port 80. I have Apache running on port 80 communicating with Tomcat via mod_jk (Apache starts up fine). Also I am not using IPTables - I have relied on our network firewall for protection. I think Filip is on to something with the JVM... I am posting to Linux boards right now... Denise Mangano Complus Data Innovations, Inc. 914-747-1200 -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 4:48 PM To: 'Tomcat Users List' Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError] I forget if you've said or not, but are non-root users allowed to priveleged ports? Which is what Tomcat would do if you've changed it to port 80. Forgive my non-linux background, but perhaps you were using an IPTables solution to work around this limitation I vaguely and poorly remember, and because your machine crashed, those settings are gone. Sysadmins, feel free to flame my clutching at straws! -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 3:42 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError] Why would this happen suddenly though? Tomcat was running fine before. Unfortunately switching OS is not an option. So this sounds like a linux problem? Denise Mangano Complus Data Innovations, Inc. 914-747-1200 -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 4:39 PM To: Tomcat Users List Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError] the problem is somewhere in the native JVM. It fails when trying to create a native thread on the OS level as a noon root user. All I can say is, switch OS :) Filip - Original Message - From: Denise Mangano [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 19, 2003 1:15 PM Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError] I know I've flooded the list about this, and I appreciate everyone's help but I am at a complete loss. I even restored from backup tape and the same thing is happening. I reinstalled tomcat, reinstalled j2sdk, yet Tomcat will only run as root. It is obviously not safe to run Tomcat as root, but I absolutely have to get my app back up. Any more suggestions are greatly appreciated. Thanks. Denise -Original Message- From: Denise Mangano Sent: Friday, September 19, 2003 3:20 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError] Filip .. Sorry - this was in my original post: Starting service Tomcat-Standalone Apache Tomcat/4.1.27 Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess orImpl.jav a:39) at
Re: tomcat won't read classes unless in explicit packages
for what it is worth: i may not understand problem statement correctly, but if the problem is having all classes in one directly, why not place them all in same package; or possibly jar them alltogether and place in /commons directory.??? -paul lomack - Original Message - From: Luke Vanderfluit [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, September 21, 2003 11:47 PM Subject: tomcat won't read classes unless in explicit packages Hi, Does anyone have a solution or workaround for the following problem. I'm running an application under /tomcat/webapps. The application consists of a number of JSPs, servlets and bean classes, The package structure looks like this /tomcat/tutorialbeans | --- | | WEB-INF JSPs(.jsp files) | | | web.xml(file) classes(dir) | tutorialbeans | tb(dir) | || classes(src and class files) tbbeans(dir) | - | | classes(files)tb2(dir) | classes(files) Initially with tomcat 4.0 it was possible to have all the class files(servlets and beans) in one directory, namely WEB-INF/classes, however trying to run the exact same application with tomcat 4.1.x results in compilation errors. It seems 4.1.x needs explicitly stipulated packages in order to work. I've had to devise the above package structure to get the application to run under 4.1.x QUESTION: Is there any workaround or other way to get tomcat 4.1.xx to run the application with all classes in one directory, be it the default package or explicitly specified? I've read about this problem, but not to the extent that a solution or workaround or has been presented. Any input is appreciated, kind regards, Luke -- when my computer smiles, I'm happy ===.~ ~, Luke Vanderfluit |'/'] Mobile: 0421 276 282\~/` - 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]
Is there really no answer? How to cancel a large upload request with a servlet?
Hello, I've written a file upload where the user get's informed of the currently transferred bytes (asynchron with meta refresh)... on this info page the user can press cancel - an async request is send to the server to another thread of course. this thread informs the uploading thread that it could cancel the job - but after leaving my methods someone still reads the whole request. who can it be? tomcat, apache - dont know --- PLEASE HELP It seems that the whole request is still processed. closing the inputstream does not help... Greetings and thanks Peter _ E-Mails sind Ihnen nicht schnell genug? http://messenger.msn.de MSN Messenger - Kommunikation in Echtzeit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using Digester in a Tomcat project causes server not to start?
I know I'm ignorant in some areas of this problem, so please forgive me if I don't explain it well or if I'm missing something obvious! PROBLEM: Tomcat won't startup (via Eclipse plugin) when Apache's commons-digester.jar is included as a project lib. QUESTION: How can I use the Digester in my project with Tomcat? SEE ALSO (appear to reference the same problem): http://www.mail-archive.com/[EMAIL PROTECTED]/msg45756.html http://groups.google.com/groups?selm=c09cb3fc.0307290659.57359042%40posting. google.com http://www.mail-archive.com/[EMAIL PROTECTED]/msg02848.html I've narrowed it down to this being the source of the problem. It looks like it has something to do with ClassLoaders or something, but I don't know much about that. I'm confused. It's a problem that others have apparently encountered. A patch to Catalina may solve the problem, but I haven't seen any posts or messages detailing a work-around. Is there a work-around I can use _NOW_ to make my project work in Tomcat? Thanks! Matt Kruse PS: This is the error I get when including Digester in the dependencies and trying to start Tomcat: 2003-09-22 10:22:29,962 0[main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,978 16 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,978 16 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:30,071 109 [main] DEBUG org.apache.commons.digester.Digester.sax - setDocumentLocator(org.apache.xerces.parsers.AbstractSAXParser$LocatorProxy@ 97d01f) 2003-09-22 10:22:30,071 109 [main] DEBUG org.apache.commons.digester.Digester.sax - startDocument() 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester.sax - startPrefixMapping(xml,http://www.w3.org/XML/1998/namespace) 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester.sax - startPrefixMapping(xmlns,http://www.w3.org/2000/xmlns/) 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester.sax - startElement(,,Server) 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester - Pushing body text '' 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester - New match='Server' 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester - Fire begin() for ObjectCreateRule[className=org.apache.catalina.core.StandardServer, attributeName=className] 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester - [ObjectCreateRule]{Server}New org.apache.catalina.core.StandardServer 2003-09-22 10:22:30,103 141 [main] ERROR org.apache.commons.digester.Digester - Begin event threw exception java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:262) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252 ) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1268) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno wn Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElem entHook(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.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at
RE: Cannot run Tomcat as new user
If ps doesn't show any, there aren't any. What make you think there are ? -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 5:50 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError] When Tomcat is shut down and I run a ps -ef no java threads are displayed. Is there any way for me to go in manually and check if there are any threads are being held onto by Tomcat/Java, and release them? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot run Tomcat as new user
The problem that I am having doesn't appear to make any sense - so unfortunately I am grasping at straws. The common response that I seemed to get from the java forums, the Linux forums, and at times here is a memory issue. However, when starting Tomcat as root these memory problems do not occur. It was suggested that the problem is with the JVM, but it is only starting Tomcat that gives me this problem. I am completely at a loss, but find it hard to believe that there is no solution. Thanks, Denise -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 12:10 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user If ps doesn't show any, there aren't any. What make you think there are ? -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 5:50 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError] When Tomcat is shut down and I run a ps -ef no java threads are displayed. Is there any way for me to go in manually and check if there are any threads are being held onto by Tomcat/Java, and release them? - 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: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]
May be you should run ulimit -a # sh/bash as shell limit # tcsh as shell for the root user and the user you wann't to start tomcat with. Maybe that shows something interesting. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 5:50 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Signal 11 Error: An unexpected exception in native code outside the VM
Hoping that someone can help me with Tomcat crashes we are experiencing. Here is our setup: Tomcat Box: Dual 2.4Ghz Xeon (w/hyperthreading) RedHat 7.3 running Tomcat 4.0.6 and Java SDK 1.4.2 Apache Box: Dual 2.4Ghz Xeon (w/hyperthreading) RedHat 7.3 running Apache 2.0.47 (using the worker MPM and mod_jk as the connector) Database: connecting to several different AIX DB2 boxes v7.2 Our tomcat server is crashing intermittently - sometimes as often twice a day or as little as once every three weeks - with the following error: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x20202020 Function=[Unknown.] Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. This is followed by the current Java thread and the dynamic libraries involved in the crash and then the following message: # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode) # # An error report file has been saved as /tmp/hs_err_pid29546.log. # Please refer to the file for further information. # This crash does not coincide with any particular action that the user is taking. We have been unable to reproduce this in QA or development (but they are all single proc machines). I have read several posts suggesting that there are problems with dual proc machines and possible solutions might be to change the SIGNUM variable. We are also running tomcat with the -server option which I think I might turn off. Other possible culprits (we think) might be a memory leak somewhere or the connection pool manager (Bitmechanic v.99). Does anyone have any insight to this? Thanks in advance for any help. __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot run Tomcat as new user
To me your problem sounds as if some system or user parameter has been set manually to some value and this setting has vanished after the last reboot. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 6:14 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user The problem that I am having doesn't appear to make any sense - so unfortunately I am grasping at straws. The common response that I seemed to get from the java forums, the Linux forums, and at times here is a memory issue. However, when starting Tomcat as root these memory problems do not occur. It was suggested that the problem is with the JVM, but it is only starting Tomcat that gives me this problem. I am completely at a loss, but find it hard to believe that there is no solution. Thanks, Denise -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 12:10 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user If ps doesn't show any, there aren't any. What make you think there are ? -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 5:50 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError] When Tomcat is shut down and I run a ps -ef no java threads are displayed. Is there any way for me to go in manually and check if there are any threads are being held onto by Tomcat/Java, and release them? - 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]
problem with tomcat 4.1.27
Hi all, i just downloaded tomcat 4.1.27 for windows and installed it on a windows 2000 professional machine. During the setup everything was just fine but when i try to start tomcat i get the following errors: Using CATALINA_BASE: C:\tomcat 4.1 Using CATALINA_HOME: C:\tomcat 4.1 Using CATALINA_TMPDIR: C:\tomcat 4.1\temp Using JAVA_HOME: C:\j2sdk1.4.1_02 Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.startElement(Digester.java:1276) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno wn Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElem entHook(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.DTDConfiguration.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.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) 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.main(Bootstrap.java:203) I´ve already set up the catalina variable to c:\tomcat 4.1 which is the installation directory i choose. The JAVA_HOME variable is already set to. Thanks for your help. Kelly. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.516 / Virus Database: 313 - Release Date: 1/9/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Signal 11 Error: An unexpected exception in native code outside the VM
Howdy, Make sure you have the latest OS patches required for the JDK version you're running. Yoav Shapira Millennium ChemInformatics -Original Message- From: joe gspeed [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 12:19 PM To: [EMAIL PROTECTED] Subject: Signal 11 Error: An unexpected exception in native code outside the VM Hoping that someone can help me with Tomcat crashes we are experiencing. Here is our setup: Tomcat Box: Dual 2.4Ghz Xeon (w/hyperthreading) RedHat 7.3 running Tomcat 4.0.6 and Java SDK 1.4.2 Apache Box: Dual 2.4Ghz Xeon (w/hyperthreading) RedHat 7.3 running Apache 2.0.47 (using the worker MPM and mod_jk as the connector) Database: connecting to several different AIX DB2 boxes v7.2 Our tomcat server is crashing intermittently - sometimes as often twice a day or as little as once every three weeks - with the following error: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x20202020 Function=[Unknown.] Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. This is followed by the current Java thread and the dynamic libraries involved in the crash and then the following message: # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode) # # An error report file has been saved as /tmp/hs_err_pid29546.log. # Please refer to the file for further information. # This crash does not coincide with any particular action that the user is taking. We have been unable to reproduce this in QA or development (but they are all single proc machines). I have read several posts suggesting that there are problems with dual proc machines and possible solutions might be to change the SIGNUM variable. We are also running tomcat with the -server option which I think I might turn off. Other possible culprits (we think) might be a memory leak somewhere or the connection pool manager (Bitmechanic v.99). Does anyone have any insight to this? Thanks in advance for any help. __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using Digester in a Tomcat project causes server not to start?
Howdy, What tomcat version? Where's the digester jar that ships with tomcat? You can't have more than one digest jar in the classloader hierarchy. So keep yours in WEB-INF/lib and make sure tomcat's is in $CATALINA_HOME/server/lib (not commons/lib or shared/lib). Yoav Shapira Millennium ChemInformatics -Original Message- From: Kruse, Matt [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 12:03 PM To: [EMAIL PROTECTED] Subject: Using Digester in a Tomcat project causes server not to start? I know I'm ignorant in some areas of this problem, so please forgive me if I don't explain it well or if I'm missing something obvious! PROBLEM: Tomcat won't startup (via Eclipse plugin) when Apache's commons-digester.jar is included as a project lib. QUESTION: How can I use the Digester in my project with Tomcat? SEE ALSO (appear to reference the same problem): http://www.mail-archive.com/[EMAIL PROTECTED]/msg45756.html http://groups.google.com/groups?selm=c09cb3fc.0307290659.57359042%40pos ting . google.com http://www.mail-archive.com/[EMAIL PROTECTED]/msg02848.ht ml I've narrowed it down to this being the source of the problem. It looks like it has something to do with ClassLoaders or something, but I don't know much about that. I'm confused. It's a problem that others have apparently encountered. A patch to Catalina may solve the problem, but I haven't seen any posts or messages detailing a work-around. Is there a work-around I can use _NOW_ to make my project work in Tomcat? Thanks! Matt Kruse PS: This is the error I get when including Digester in the dependencies and trying to start Tomcat: 2003-09-22 10:22:29,962 0[main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,978 16 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,978 16 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:30,071 109 [main] DEBUG org.apache.commons.digester.Digester.sax - setDocumentLocator(org.apache.xerces.parsers.AbstractSAXParser$LocatorP roxy @ 97d01f) 2003-09-22 10:22:30,071 109 [main] DEBUG org.apache.commons.digester.Digester.sax - startDocument() 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester.sax - startPrefixMapping(xml,http://www.w3.org/XML/1998/namespace) 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester.sax - startPrefixMapping(xmlns,http://www.w3.org/2000/xmlns/) 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester.sax - startElement(,,Server) 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester - Pushing body text '' 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester - New match='Server' 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester - Fire begin() for ObjectCreateRule[className=org.apache.catalina.core.StandardServer, attributeName=className] 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester - [ObjectCreateRule]{Server}New org.apache.catalina.core.StandardServer 2003-09-22 10:22:30,103 141 [main] ERROR org.apache.commons.digester.Digester - Begin event threw exception java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:262) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.jav a:25 2 ) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1268) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement( Unkn o wn Source) at
RE: Cannot run Tomcat as new user
The output of ulimit for the user 'jakarta' and root are the same: core file size(blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) 5000 open files(-n) 1024 pipe size (512 bytes, -p) 8 stack size(kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes(-u) 20 virtual memory(kbytes, -v) unlimited When you are suggesting manual settings, do you mean in the OS or in Tomcat itself? I'm going to have to go through my notes, and make sure all my settings are the same - but I can't recall making any special changes to Tomcat. Thanks. Denise -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 12:23 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user To me your problem sounds as if some system or user parameter has been set manually to some value and this setting has vanished after the last reboot. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 6:14 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user The problem that I am having doesn't appear to make any sense - so unfortunately I am grasping at straws. The common response that I seemed to get from the java forums, the Linux forums, and at times here is a memory issue. However, when starting Tomcat as root these memory problems do not occur. It was suggested that the problem is with the JVM, but it is only starting Tomcat that gives me this problem. I am completely at a loss, but find it hard to believe that there is no solution. Thanks, Denise -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 12:10 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user If ps doesn't show any, there aren't any. What make you think there are ? -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 5:50 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError] When Tomcat is shut down and I run a ps -ef no java threads are displayed. Is there any way for me to go in manually and check if there are any threads are being held onto by Tomcat/Java, and release them? - 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: Using Digester in a Tomcat project causes server not to start ?
What tomcat version? I've tried 4.1.27 and 5.0.9 with the same results. Where's the digester jar that ships with tomcat? c:\tomcat\server\lib\commons-digester.jar You can't have more than one digest jar in the classloader hierarchy. So keep yours in WEB-INF/lib and make sure tomcat's is in $CATALINA_HOME/server/lib (not commons/lib or shared/lib). I do have a copy of the jar file in my project's WEB-INF\lib directory. That is what is causing the problem. If I take the jar file out of that directory, the server starts up fine, but my project won't run because it can't find the Digester class. If I directly reference the commons-digester.jar in the path above, my project will compile just fine, but Tomcat once again files to startup. Thanks, Matt
Re: Using Digester in a Tomcat project causes server not to start ?
Kruse, Matt wrote: What tomcat version? I've tried 4.1.27 and 5.0.9 with the same results. Where's the digester jar that ships with tomcat? c:\tomcat\server\lib\commons-digester.jar You can't have more than one digest jar in the classloader hierarchy. So keep yours in WEB-INF/lib and make sure tomcat's is in $CATALINA_HOME/server/lib (not commons/lib or shared/lib). I do have a copy of the jar file in my project's WEB-INF\lib directory. That is what is causing the problem. If I take the jar file out of that directory, the server starts up fine, but my project won't run because it can't find the Digester class. If I directly reference the commons-digester.jar in the path above, my project will compile just fine, but Tomcat once again files to startup. This works fine for me. It is very obvious: just try one example Struts WAR (which has commons-digester.jar), and it will work fine. -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot run Tomcat as new user
More a OS parameter. (As otherwise tc wouln't run as other user) E.G.: max user processes (-u) 20 max memory size (kbytes, -m) 5000 These are quite low. We have 256 and unlimited. 20 processes per user and especially 5MB memory is not enough to run tomcat. (I'm not shure if these values are ignored for root) -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 6:29 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user When you are suggesting manual settings, do you mean in the OS or in Tomcat itself? I'm going to have to go through my notes, and make sure all my settings are the same - but I can't recall making any special changes to Tomcat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Printing from java bean to jsp page
If you need to capture output from a bean, don't use System.out.print - that goes to the system console or a log file. The out variable on a JSP page is a java.io.Writer object (or at least it is deep down). You should set this as a member variable of your bean class and write output through that. Or, if you prefer, you could have the methods from which you want output take a Writer object as an additional parameter. The output of your bean will then be part of the output of your JSP page. Kind regards, Chris Williams. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using Digester in a Tomcat project causes server not to start ?
This works fine for me. It is very obvious: just try one example Struts WAR (which has commons-digester.jar), and it will work fine. I'm not sure why this would work, but I admittedly don't know much about WAR files. Could have something to do with when they are processed during startup, etc? The problem I'm experiencing isn't imaginary, though. See these URL's: http://www.mail-archive.com/[EMAIL PROTECTED]/msg45756.html http://groups.google.com/groups?selm=c09cb3fc.0307290659.57359042%40posting. google.com http://www.mail-archive.com/[EMAIL PROTECTED]/msg02848.html See the Bugzilla entry for specifics: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22300 Matt
OT: sloppy English
A lot of posts to this mailing list seem to use really lazy English: I consistently in lowercase, missing punctuation, missing capital letters at the start of sentences, etc. Two things: 1. A sentence which goes something like must i do x or can i do y is hard to read. 2. Writing like this makes you sound like a moron. We're all educated people or otherwise we wouldn't be computer programmers. So let's maintain some reasonable standards. Chris Williams. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: sloppy English
Chris, I agree and disagree. It is always good to do thing proper but who are we to expect things from the end users? No one here has a right to enforce or even demand such a change. If you notice, I always have proper syntax and punctuation as well but I do not demand it of others. If it's hard to read, approach it on a case-by-case basis but most of the time, it's very understandable, no matter what u say. ;) Laters, Jeremy -Original Message- From: Christopher Williams [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 10:48 AM To: [EMAIL PROTECTED] Subject: OT: sloppy English A lot of posts to this mailing list seem to use really lazy English: I consistently in lowercase, missing punctuation, missing capital letters at the start of sentences, etc. Two things: 1. A sentence which goes something like must i do x or can i do y is hard to read. 2. Writing like this makes you sound like a moron. We're all educated people or otherwise we wouldn't be computer programmers. So let's maintain some reasonable standards. Chris Williams. - 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: Signal 11 Error: An unexpected exception in native code outside the VM
Signal 11 is a segmentation error (I think), which would be caused by attempting to access an invalid memory address. This in turn might be caused by attempting (in native code) to construct an instance of a Java class that the class loader can't find, something like: jclass clz = env-FindClass(example/somewhere/something/ClassIWant); jmethodID mid = env-GetMethodID(clz, init, ()V); If the FindClass call hasn't been successful, the second line will crash the JVM. If your project uses native code, make sure that Tomcat's class loader can find any Java classes that you want to use. If it doesn't, does the JVM error trace point a finger at any native library? Chris Williams. P.S. You might want to try upgrading Red Hat 7.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: sloppy English
i disaggree, unforuntealy i don't have time to perfom complete spel checks or fix grammar on all words. i try to be as coherent as possible but since i do this for free, you get what your pay for. please killfile me if it is that bothersome. I don't mind bad grammar and spelling. I detest those which don't read the docs, the faq and search the archives before asking a question. I'll take bad grammar over bad questions any day. -Tim Christopher Williams wrote: A lot of posts to this mailing list seem to use really lazy English: I consistently in lowercase, missing punctuation, missing capital letters at the start of sentences, etc. Two things: 1. A sentence which goes something like must i do x or can i do y is hard to read. 2. Writing like this makes you sound like a moron. We're all educated people or otherwise we wouldn't be computer programmers. So let's maintain some reasonable standards. Chris Williams. - 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: OT: sloppy English
Tim, Very well said...and understandable too. ;) -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 11:05 AM To: Tomcat Users List Subject: Re: OT: sloppy English i disaggree, unforuntealy i don't have time to perfom complete spel checks or fix grammar on all words. i try to be as coherent as possible but since i do this for free, you get what your pay for. please killfile me if it is that bothersome. I don't mind bad grammar and spelling. I detest those which don't read the docs, the faq and search the archives before asking a question. I'll take bad grammar over bad questions any day. -Tim Christopher Williams wrote: A lot of posts to this mailing list seem to use really lazy English: I consistently in lowercase, missing punctuation, missing capital letters at the start of sentences, etc. Two things: 1. A sentence which goes something like must i do x or can i do y is hard to read. 2. Writing like this makes you sound like a moron. We're all educated people or otherwise we wouldn't be computer programmers. So let's maintain some reasonable standards. Chris Williams. - 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: sloppy English
Please do not think the programmers are using lazy English or moron(watch you before you put like these kind of words). They are hard working, their backbone is fingers and they are very tired of doing shift key, coz they are keen on typing technical stuff not on fancy grammatical. If you do not like our fellow programmers typo, then just don't read it. Looks like you are in non typo in IT business, that is why you are commenting like these programmers. Regards, Kannan -Original Message- From: Christopher Williams [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 12:48 PM To: [EMAIL PROTECTED] Subject: OT: sloppy English A lot of posts to this mailing list seem to use really lazy English: I consistently in lowercase, missing punctuation, missing capital letters at the start of sentences, etc. Two things: 1. A sentence which goes something like must i do x or can i do y is hard to read. 2. Writing like this makes you sound like a moron. We're all educated people or otherwise we wouldn't be computer programmers. So let's maintain some reasonable standards. Chris Williams. - 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: Signal 11 Error: An unexpected exception in native code outside the VM
Howdy, Signal 11 is a segmentation error (I think), which would be caused by attempting to access an invalid memory address. This in turn might be caused by attempting (in native code) to construct an instance of a Java class that the class loader can't find, something like: This is unnecessarily restrictive, although a possible explanation, as signal 11 is not just segmentation fault. HotSpot categorizes many external/native exceptions as signal 11's. The most frequent cause for these errors is a missing or old OS patch, e.g. the threading library. You must ensure your OS is properly updated. For example, the Solaris patches for JDK 1.4.2 are here: http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/J2SE The RedHat patches should be somewhere on the RedHat site. A second cause for this, though increasingly rare nowadays, is an improperly compiled JVM. Then again, if you know enough to build your own JVM in the first place I don't think you're even reading this message ;) 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: OT: sloppy English
I would like to point out that English is not the first language of everyone on this list. Regards, Michele From: Christopher Williams [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: OT: sloppy English Date: Mon, 22 Sep 2003 17:48:28 +0100 A lot of posts to this mailing list seem to use really lazy English: I consistently in lowercase, missing punctuation, missing capital letters at the start of sentences, etc. Two things: 1. A sentence which goes something like must i do x or can i do y is hard to read. 2. Writing like this makes you sound like a moron. We're all educated people or otherwise we wouldn't be computer programmers. So let's maintain some reasonable standards. Chris Williams. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Help protect your PC. Get a FREE computer virus scan online from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot run Tomcat as new user
Well I'll be I just increased those settings, therefore: max memory size (kbytes, -m) unlimited max user processes(-u) 256 Wouldn't you know it I can now start Tomcat as the user 'jakarta'! So perhaps as you said root ignores those values. A million thanks cannot even cover the gratitude that I feel right now!! So now my question is... I've had those set as 20 5000 for some time now... Why did this OutOfMemoryError just coincidentally occur with the brownout? Lastly, how can I make sure my application itself is not causing the problem. I downloaded and installed Java Memory Profiler and tried to run it on my programs, but it hangs - so I have to try another solution. Well thanks again for your help on this! Denise Mangano Complus Data Innovations, Inc. 914-747-1200 -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 12:46 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user More a OS parameter. (As otherwise tc wouln't run as other user) E.G.: max user processes (-u) 20 max memory size (kbytes, -m) 5000 These are quite low. We have 256 and unlimited. 20 processes per user and especially 5MB memory is not enough to run tomcat. (I'm not shure if these values are ignored for root) -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 6:29 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user When you are suggesting manual settings, do you mean in the OS or in Tomcat itself? I'm going to have to go through my notes, and make sure all my settings are the same - but I can't recall making any special changes to Tomcat. - 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: Cannot run Tomcat as new user
Denise, Java makes tracking your own memory usage quite difficult, which is good in some ways, not so good in others. What you could try is temorarily removing your web app. Then create a dummy servlet which gets loaded when Tomcat loads. This servlet won't do anything, it will just hang around periodically calling Runtime.getRuntime().gc() followed by Runtime.getRuntime().freeMemory(), logging the result (use a java.util.Timer for this). Then re-enable your web app and see how the total is affected. It's somewhat crude, and will require a several runs to get a half-decent average, but it's better than nothing. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OT: Apologies
Sorry, folks, I didn't mean to start a flame war. Also, I certainly didn't mean to call anybody a moron - I simply meant that sloppy writing makes you sound less intelligent than you really are (and unpunctuated sentences really are harder to read). I also appreciate that English is not everybody's first language. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: sloppy English
I'd bet that every, native English speaking, person on this list can easily discern which posts are written by non-native English speakers and which are written by English speakers who are just being lazy and sloppy. I've never seen anyone who has made an honest attempt to post a question in their non-native tongue on this list attacked. I'm sure that the people to whom Chris was referring have been educated in English and should be able to construct and punctuate a sentence. On Monday 22 September 2003 01:18 pm, Michele Emmi wrote: I would like to point out that English is not the first language of everyone on this list. Regards, Michele From: Christopher Williams [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: OT: sloppy English Date: Mon, 22 Sep 2003 17:48:28 +0100 A lot of posts to this mailing list seem to use really lazy English: I consistently in lowercase, missing punctuation, missing capital letters at the start of sentences, etc. Two things: 1. A sentence which goes something like must i do x or can i do y is hard to read. 2. Writing like this makes you sound like a moron. We're all educated people or otherwise we wouldn't be computer programmers. So let's maintain some reasonable standards. Chris Williams. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Help protect your PC. Get a FREE computer virus scan online from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: sloppy English
i disaggree, unforuntealy i don't have time to perfom complete spel checks or fix grammar on all words. i try to be as coherent as possible but since i do this for free, you get what your pay for. please killfile me if it is that bothersome. I don't mind bad grammar and spelling. I detest those which don't read the docs, the faq and search the archives before asking a question. I'll take bad grammar over bad questions any day. Agreed, but the main point was in: - capital letters at the beginning of the sentence - capital I for first person - at least an attempt at punctuating sentences This IS a part of syntax of, perhaps not all, langauages of our users, but these rules should be common to most users visiting this list. I do acknowlege that there are languages that use different rules (japanese, chinese, arabic,...), but all users writing to this list are using character sets that are compliant with these rules. So, all that Christian asked for was to *re-read the message before posting* (a Goot Idea (tm)) and to make it more readable. That helps a lot to anyone who's reading the message. Perhaps his wording was a bit offensive, but he is right. Sometimes I couldn't understand what the poster was asking. I'll survive bad punctuation and capitalization, but it takes extratime for me and leaves me with a feeling that the poster was in a hurry or sloppy. Nix. P.S. Please feel free to point out any and all mistakes I've made. I like being correct and don't mind being corrected. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: sloppy English
If people read the Preface here (and its links): http://jakarta.apache.org/tomcat/faq/tomcatuser.html ... and follow it ... Then I'm a happy camper. ;) -Tim Nikola Milutinovic wrote: Agreed, but the main point was in: - capital letters at the beginning of the sentence - capital I for first person - at least an attempt at punctuating sentences This IS a part of syntax of, perhaps not all, langauages of our users, but these rules should be common to most users visiting this list. I do acknowlege that there are languages that use different rules (japanese, chinese, arabic,...), but all users writing to this list are using character sets that are compliant with these rules. So, all that Christian asked for was to *re-read the message before posting* (a Goot Idea (tm)) and to make it more readable. That helps a lot to anyone who's reading the message. Perhaps his wording was a bit offensive, but he is right. Sometimes I couldn't understand what the poster was asking. I'll survive bad punctuation and capitalization, but it takes extratime for me and leaves me with a feeling that the poster was in a hurry or sloppy. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDI lookup of datasource objects.
Is there a way to configure Tomcat so I can lookup datasoruce objects by doing .lookup(jdbc/someName) instead of .lookup(java:comp/env/jdbc/someName). I'm trying to work locally on a webphere project using Tomcat / Netbeans. In Webphere lookups are done using jdbc/someName. Thanks, Robert Wynkoop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: sloppy English
Hi, If you are a programmer or in any way write code you must be accustomed to case sensitivity. So it can't be that hard to use the shift key. I don't believe anyone just types on the keyboard without using a shift key. Nah. sorry. On another note: Imagine all programming code was in Latvian and we all had to write our programs in Latvian. This wouldn't mean I had to become proficient in the Latvian language, no, just the Latvian constructs used in programming. eg. public class ThisClass |semo lacsis TemorLacsis {|{ public static void main |semo conseva driad emin (String[] args) |(Glest[] dovargi) {} |{} Now, imagine having to use a different character set to program I acknowledge that the english centric nature of programming and the web does not mean that everyone is totally versed in the english language and it's by no means required for everyone to have perfect english spelling and grammatical skills in order to post to this list. I have no problem with that at all. hope this contributes to an inclusive all welcome approach, kind regards, Luke On Tue, 2003-09-23 at 02:40, Kannan Sundararajan wrote: Please do not think the programmers are using lazy English or moron(watch you before you put like these kind of words). They are hard working, their backbone is fingers and they are very tired of doing shift key, coz they are keen on typing technical stuff not on fancy grammatical. If you do not like our fellow programmers typo, then just don't read it. Looks like you are in non typo in IT business, that is why you are commenting like these programmers. Regards, Kannan -Original Message- From: Christopher Williams [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 12:48 PM To: [EMAIL PROTECTED] Subject: OT: sloppy English A lot of posts to this mailing list seem to use really lazy English: I consistently in lowercase, missing punctuation, missing capital letters at the start of sentences, etc. Two things: 1. A sentence which goes something like must i do x or can i do y is hard to read. 2. Writing like this makes you sound like a moron. We're all educated people or otherwise we wouldn't be computer programmers. So let's maintain some reasonable standards. Chris Williams. - 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] -- when my computer smiles, I'm happy ===.~ ~, Luke Vanderfluit |'/'] Mobile: 0421 276 282\~/` - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JNDI lookup of datasource objects.
Howdy, java:comp/env is defined in the servlet specification to be the naming context for environment entries. You could get the env context by doing a lookup for just java:comp/env on the initial context, and then do relative lookups from this env context rather than absolute lookups from an initial context. Yoav Shapira Millennium ChemInformatics -Original Message- From: Wynkoop, Robert M [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 4:36 PM To: Tomcat Mailing List (E-mail) Subject: JNDI lookup of datasource objects. Is there a way to configure Tomcat so I can lookup datasoruce objects by doing .lookup(jdbc/someName) instead of .lookup(java:comp/env/jdbc/someName). I'm trying to work locally on a webphere project using Tomcat / Netbeans. In Webphere lookups are done using jdbc/someName. Thanks, Robert Wynkoop - 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]
Servlet Tag problem
Hello everyone! I have these lines in a very simple html page, intending to invoke my servlet and pass some params to it: SERVLET CODE=iTraxMainView PARAM NAME=Panel value=TOC /SERVLET Can anyone tell me why the servlet is never getting called? Thanks Jay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet Tag problem
I don't believe the SERVLET tag is supported in Tomcat. I know it was supported in JRun. But you could write a jsp and then from the jsp call the servlet you desire Thanks, RS Jay Doggett [EMAIL PROTECTED]To: Tomcat Users List t.net[EMAIL PROTECTED] cc: 09/22/2003 03:51 Subject: Servlet Tag problem PM Please respond to Tomcat Users List Hello everyone! I have these lines in a very simple html page, intending to invoke my servlet and pass some params to it: SERVLET CODE=iTraxMainView PARAM NAME=Panel value=TOC /SERVLET Can anyone tell me why the servlet is never getting called? Thanks Jay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission is intended to be strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using Digester in a Tomcat project causes server not to start ?
I have solved the problem below. The solution involved changing a couple of the Tomcat source files due to Digester instances not using the correct Classloader upon Tomcat startup. The changes I made are as follows: 1) in Catalina.java: /** * Create and configure the Digester we will be using for startup. */ protected Digester createStartDigester() { // Initialize the digester Digester digester = new Digester(); + digester.setClassLoader(this.getClass().getClassLoader()); 2) in ContextConfig.java: /** * Create (if necessary) and return a Digester configured to process the * web application deployment descriptor (web.xml). */ private static Digester createWebDigester() { URL url = null; Digester webDigester = new Digester(); + webDigester.setClassLoader(ContextConfig.class.getClassLoader()); 3) Replace the .class files from the above two files into c:\tomcat\server\lib\Catalina.jar That's it! My application now starts up correctly and uses its internal instance of digester doesn't conflict with Tomcat's version. And in the process, I've learned a lot about Classloaders :) Matt Kruse -Original Message- From: Kruse, Matt Sent: Monday, September 22, 2003 11:08 AM To: '[EMAIL PROTECTED]' Subject: Using Digester in a Tomcat project causes server not to start? I know I'm ignorant in some areas of this problem, so please forgive me if I don't explain it well or if I'm missing something obvious! PROBLEM: Tomcat won't startup (via Eclipse plugin) when Apache's commons-digester.jar is included as a project lib. QUESTION: How can I use the Digester in my project with Tomcat? SEE ALSO (appear to reference the same problem): http://www.mail-archive.com/[EMAIL PROTECTED]/msg4 5756.html http://groups.google.com/groups?selm=c09cb3fc.0307290659.57359 042%40posting.google.com http://www.mail-archive.com/[EMAIL PROTECTED]/ms g02848.html I've narrowed it down to this being the source of the problem. It looks like it has something to do with ClassLoaders or something, but I don't know much about that. I'm confused. It's a problem that others have apparently encountered. A patch to Catalina may solve the problem, but I haven't seen any posts or messages detailing a work-around. Is there a work-around I can use _NOW_ to make my project work in Tomcat? Thanks! Matt Kruse PS: This is the error I get when including Digester in the dependencies and trying to start Tomcat: 2003-09-22 10:22:29,962 0[main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,978 16 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,978 16 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:30,071 109 [main] DEBUG org.apache.commons.digester.Digester.sax - setDocumentLocator(org.apache.xerces.parsers.AbstractSAXParser [EMAIL PROTECTED]) 2003-09-22 10:22:30,071 109 [main] DEBUG org.apache.commons.digester.Digester.sax - startDocument() 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester.sax - startPrefixMapping(xml,http://www.w3.org/XML/1998/namespace) 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester.sax - startPrefixMapping(xmlns,http://www.w3.org/2000/xmlns/) 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester.sax - startElement(,,Server) 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester - Pushing body text '' 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester - New match='Server' 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester - Fire begin() for ObjectCreateRule[className=org.apache.catalina.core.StandardSe rver, attributeName=className] 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester - [ObjectCreateRule]{Server}New org.apache.catalina.core.StandardServer 2003-09-22 10:22:30,103 141 [main] ERROR
RE: sloppy English
When we are tired, then we will understand what a real programming means. Specially, if you are overloaded with programms, task, and schedule, and lack of time by working in major cities, I doubt we will smiling at each of our sentences to convey our message. -Original Message- From: Luke Vanderfluit [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 4:40 PM To: Tomcat Users List Subject: RE: sloppy English Hi, If you are a programmer or in any way write code you must be accustomed to case sensitivity. So it can't be that hard to use the shift key. I don't believe anyone just types on the keyboard without using a shift key. Nah. sorry. On another note: Imagine all programming code was in Latvian and we all had to write our programs in Latvian. This wouldn't mean I had to become proficient in the Latvian language, no, just the Latvian constructs used in programming. eg. public class ThisClass |semo lacsis TemorLacsis {|{ public static void main |semo conseva driad emin (String[] args) |(Glest[] dovargi) {} |{} Now, imagine having to use a different character set to program I acknowledge that the english centric nature of programming and the web does not mean that everyone is totally versed in the english language and it's by no means required for everyone to have perfect english spelling and grammatical skills in order to post to this list. I have no problem with that at all. hope this contributes to an inclusive all welcome approach, kind regards, Luke On Tue, 2003-09-23 at 02:40, Kannan Sundararajan wrote: Please do not think the programmers are using lazy English or moron(watch you before you put like these kind of words). They are hard working, their backbone is fingers and they are very tired of doing shift key, coz they are keen on typing technical stuff not on fancy grammatical. If you do not like our fellow programmers typo, then just don't read it. Looks like you are in non typo in IT business, that is why you are commenting like these programmers. Regards, Kannan -Original Message- From: Christopher Williams [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 12:48 PM To: [EMAIL PROTECTED] Subject: OT: sloppy English A lot of posts to this mailing list seem to use really lazy English: I consistently in lowercase, missing punctuation, missing capital letters at the start of sentences, etc. Two things: 1. A sentence which goes something like must i do x or can i do y is hard to read. 2. Writing like this makes you sound like a moron. We're all educated people or otherwise we wouldn't be computer programmers. So let's maintain some reasonable standards. Chris Williams. - 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] -- when my computer smiles, I'm happy ===.~ ~, Luke Vanderfluit |'/'] Mobile: 0421 276 282\~/` - 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]
Configuring and using cgi scripts in Tomcat
Hello... I am trying to configure Tomcat to run a perl script that is part of an application I am moving over from another server. Since this is one script I do not want to rewrite it so I thought that I could set the server to run CGI scripts. I have put the entries in the web.xml file and restarted the server but I cannot get the script to run. Has anyone had any success in doing this? Allen This message may contain proprietary or confidential company information. Any unauthorized use or disclosure is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Special permission in a webapp.
Hi all, I have a user that needs the following permission in its webapp. java.lang.RuntimePermission accessClassInPackage.org.apache.catalina.session What are the implications of giving up such a permission ? Thanks !! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Digester in a Tomcat project causes server not to start?
It would take too long to tell you how to use commons-digester with Tomcat (or whatever other application); I'm using it with a Struts application running under Tomcat and it works greately. I put it under WEB-INF/lib folder and I don't have it under common/lib Marco - Original Message - From: Kruse, Matt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 22, 2003 5:03 PM Subject: Using Digester in a Tomcat project causes server not to start? I know I'm ignorant in some areas of this problem, so please forgive me if I don't explain it well or if I'm missing something obvious! PROBLEM: Tomcat won't startup (via Eclipse plugin) when Apache's commons-digester.jar is included as a project lib. QUESTION: How can I use the Digester in my project with Tomcat? SEE ALSO (appear to reference the same problem): http://www.mail-archive.com/[EMAIL PROTECTED]/msg45756.html http://groups.google.com/groups?selm=c09cb3fc.0307290659.57359042%40posting. google.com http://www.mail-archive.com/[EMAIL PROTECTED]/msg02848.html I've narrowed it down to this being the source of the problem. It looks like it has something to do with ClassLoaders or something, but I don't know much about that. I'm confused. It's a problem that others have apparently encountered. A patch to Catalina may solve the problem, but I haven't seen any posts or messages detailing a work-around. Is there a work-around I can use _NOW_ to make my project work in Tomcat? Thanks! Matt Kruse PS: This is the error I get when including Digester in the dependencies and trying to start Tomcat: 2003-09-22 10:22:29,962 0[main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,978 16 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,978 16 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:30,071 109 [main] DEBUG org.apache.commons.digester.Digester.sax - setDocumentLocator(org.apache.xerces.parsers.AbstractSAXParser$LocatorProxy@ 97d01f) 2003-09-22 10:22:30,071 109 [main] DEBUG org.apache.commons.digester.Digester.sax - startDocument() 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester.sax - startPrefixMapping(xml,http://www.w3.org/XML/1998/namespace) 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester.sax - startPrefixMapping(xmlns,http://www.w3.org/2000/xmlns/) 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester.sax - startElement(,,Server) 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester - Pushing body text '' 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester - New match='Server' 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester - Fire begin() for ObjectCreateRule[className=org.apache.catalina.core.StandardServer, attributeName=className] 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester - [ObjectCreateRule]{Server}New org.apache.catalina.core.StandardServer 2003-09-22 10:22:30,103 141 [main] ERROR org.apache.commons.digester.Digester - Begin event threw exception java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:262) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252 ) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1268) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno wn Source) at
Can .WAR files be compressed if unpackWARs=false?
hello, Just a quickie. Is there any problem with serving from a compressed .war file? I have been having problems which I cannot explain and have just realised that since using ANT I have been inadvertently compressing my .war file. I cannot find anything to say that this is a problem but have come across errors in the core dump with came from the use of zip classes. Anyway, anybody any similar experiences? Tomcat 4.0.4 Java 1.3.1 Andoni.
RE: Using Digester in a Tomcat project causes server not to start?
I'm very interested to hear what Tomcat gurus/commiters think of this mod. Given the links that describe the problem, and because I just have this feeling that classloading issues are so replete with 'good intentioned, but ultimately doomed architectures'... ya know... here's someone that bothered to crack the hood open, found the source of his difficulties, and fixed them. Does this break something else? Is it against spec? Just curious. -Original Message- From: Kruse, Matt [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 3:52 PM To: [EMAIL PROTECTED] Subject: RE: Using Digester in a Tomcat project causes server not to start? I have solved the problem below. The solution involved changing a couple of the Tomcat source files due to Digester instances not using the correct Classloader upon Tomcat startup. The changes I made are as follows: 1) in Catalina.java: /** * Create and configure the Digester we will be using for startup. */ protected Digester createStartDigester() { // Initialize the digester Digester digester = new Digester(); + digester.setClassLoader(this.getClass().getClassLoader()); 2) in ContextConfig.java: /** * Create (if necessary) and return a Digester configured to process the * web application deployment descriptor (web.xml). */ private static Digester createWebDigester() { URL url = null; Digester webDigester = new Digester(); + + webDigester.setClassLoader(ContextConfig.class.getClassLoader()); 3) Replace the .class files from the above two files into c:\tomcat\server\lib\Catalina.jar That's it! My application now starts up correctly and uses its internal instance of digester doesn't conflict with Tomcat's version. And in the process, I've learned a lot about Classloaders :) Matt Kruse -Original Message- From: Kruse, Matt Sent: Monday, September 22, 2003 11:08 AM To: '[EMAIL PROTECTED]' Subject: Using Digester in a Tomcat project causes server not to start? I know I'm ignorant in some areas of this problem, so please forgive me if I don't explain it well or if I'm missing something obvious! PROBLEM: Tomcat won't startup (via Eclipse plugin) when Apache's commons-digester.jar is included as a project lib. QUESTION: How can I use the Digester in my project with Tomcat? SEE ALSO (appear to reference the same problem): http://www.mail-archive.com/[EMAIL PROTECTED]/msg4 5756.html http://groups.google.com/groups?selm=c09cb3fc.0307290659.57359 042%40posting.google.com http://www.mail-archive.com/[EMAIL PROTECTED]/ms g02848.html I've narrowed it down to this being the source of the problem. It looks like it has something to do with ClassLoaders or something, but I don't know much about that. I'm confused. It's a problem that others have apparently encountered. A patch to Catalina may solve the problem, but I haven't seen any posts or messages detailing a work-around. Is there a work-around I can use _NOW_ to make my project work in Tomcat? Thanks! Matt Kruse PS: This is the error I get when including Digester in the dependencies and trying to start Tomcat: 2003-09-22 10:22:29,962 0[main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,978 16 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,978 16 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:30,071 109 [main] DEBUG org.apache.commons.digester.Digester.sax - setDocumentLocator(org.apache.xerces.parsers.AbstractSAXParser [EMAIL PROTECTED]) 2003-09-22 10:22:30,071 109 [main] DEBUG org.apache.commons.digester.Digester.sax - startDocument() 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester.sax - startPrefixMapping(xml,http://www.w3.org/XML/1998/namespace) 2003-09-22 10:22:30,103 141 [main] DEBUG org.apache.commons.digester.Digester.sax -
Re: Using Digester in a Tomcat project causes server not to start?
not sure why someone would go in and mock with the Tomcat source when there is no need to :) have fun maintaining upgrades ;) We use the digester in our webapp without any problems what so ever, we simple place it in WEB-INF/lib We have the following jars in WEB-inf/lib commons-beanutils.jar commons-collections.jar commons-digester.jar commons-logging-api.jar commons-logging.jar Filip - Original Message - From: Mike Curwen [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, September 22, 2003 4:12 PM Subject: RE: Using Digester in a Tomcat project causes server not to start? I'm very interested to hear what Tomcat gurus/commiters think of this mod. Given the links that describe the problem, and because I just have this feeling that classloading issues are so replete with 'good intentioned, but ultimately doomed architectures'... ya know... here's someone that bothered to crack the hood open, found the source of his difficulties, and fixed them. Does this break something else? Is it against spec? Just curious. -Original Message- From: Kruse, Matt [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 3:52 PM To: [EMAIL PROTECTED] Subject: RE: Using Digester in a Tomcat project causes server not to start? I have solved the problem below. The solution involved changing a couple of the Tomcat source files due to Digester instances not using the correct Classloader upon Tomcat startup. The changes I made are as follows: 1) in Catalina.java: /** * Create and configure the Digester we will be using for startup. */ protected Digester createStartDigester() { // Initialize the digester Digester digester = new Digester(); + digester.setClassLoader(this.getClass().getClassLoader()); 2) in ContextConfig.java: /** * Create (if necessary) and return a Digester configured to process the * web application deployment descriptor (web.xml). */ private static Digester createWebDigester() { URL url = null; Digester webDigester = new Digester(); + + webDigester.setClassLoader(ContextConfig.class.getClassLoader()); 3) Replace the .class files from the above two files into c:\tomcat\server\lib\Catalina.jar That's it! My application now starts up correctly and uses its internal instance of digester doesn't conflict with Tomcat's version. And in the process, I've learned a lot about Classloaders :) Matt Kruse -Original Message- From: Kruse, Matt Sent: Monday, September 22, 2003 11:08 AM To: '[EMAIL PROTECTED]' Subject: Using Digester in a Tomcat project causes server not to start? I know I'm ignorant in some areas of this problem, so please forgive me if I don't explain it well or if I'm missing something obvious! PROBLEM: Tomcat won't startup (via Eclipse plugin) when Apache's commons-digester.jar is included as a project lib. QUESTION: How can I use the Digester in my project with Tomcat? SEE ALSO (appear to reference the same problem): http://www.mail-archive.com/[EMAIL PROTECTED]/msg4 5756.html http://groups.google.com/groups?selm=c09cb3fc.0307290659.57359 042%40posting.google.com http://www.mail-archive.com/[EMAIL PROTECTED]/ms g02848.html I've narrowed it down to this being the source of the problem. It looks like it has something to do with ClassLoaders or something, but I don't know much about that. I'm confused. It's a problem that others have apparently encountered. A patch to Catalina may solve the problem, but I haven't seen any posts or messages detailing a work-around. Is there a work-around I can use _NOW_ to make my project work in Tomcat? Thanks! Matt Kruse PS: This is the error I get when including Digester in the dependencies and trying to start Tomcat: 2003-09-22 10:22:29,962 0[main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,978 16 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,978 16 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI 2003-09-22 10:22:29,993 31 [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no
can I run an app. from a *compressed* .war file with unpackWARs=false ?
hello, Just a quickie. Is there any problem with serving from a compressed .war file? I have been having problems which I cannot explain and have just realised that since using ANT I have been inadvertently compressing my .war file. I cannot find anything to say that this is a problem but have come across errors in the core dump with came from the use of zip classes. Anyway, anybody any similar experiences? Tomcat 4.0.4 Java 1.3.1 Andoni.
Multiple Web Apps... Am I missing anything?
We are testing out Tomcat to host multiple app instances - any feedback would be greatly appreciated. To install multiple web apps on W2K - each with its own service/instance: 1) Copy/rename server.xml (webapp1.xml) a. config non-SSL Coyote HTTP/1.1 Connector on open port, say 8081 i. not really necessary since we external web server - but good for troubleshooting b. config a Coyote/JK2 AJP 1.3 Connector on open port , say 8581 c. Add our context i. changing DocBase (c:\app1) + Path (/app1) 2) Config worker.properties a. add a worker to the list (myapp1) b. copy/modify the worker definition (worker + port) i. worker.MYAPP1.port=8581 ii. worker.MYAPP1.host=localhost iii. worker.MYAPP1.type=ajp13 3) Config uriworkermap.properties a. add mappings to point to the appropriate worker i. /app1/*.jsp=MYAPP 4) Use Jakarta ISAPI in IIS - redirects jsp's to tomcat 5) Create Virtual Directory in IIS for each app instance 6) Use Config utility to create windows services - and point service to appropriate (copy of) server.xml. End result: * Multiple server.xml files (renamed: app1, app2, app3...etc) * Multiple workers in the list * Multiple definitions in the worker.properties file (all type AJP13) * Multiple URI path listings * 1 ISAPI filter * Multiple VD's in IIS * Multiple services - each to its own instance Sites run fine Questions: 1) Is this the best way to config? 2) Is anything missing? Any settings? Timeouts? 3) Does each server.xml file need a unique Server Port? a. Server port=8005 shutdown=SHUTDOWN debug=0 4) Any suggestions to increase performance in such a config? Thank you, Kjell Eriksen -- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination, distribution, forwarding, or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited without the express permission of the sender. If you received this communication in error, please contact the sender and delete the material from any computer.
Multiple Web Apps... Am I missing anything?
*** I apologize for sending the previous in RICH text format *** *** Plain text follows *** We are testing out Tomcat to host multiple app instances - any feedback would be greatly appreciated. To install multiple web apps on W2K - each with its own service/instance: 1) Copy/rename server.xml (webapp1.xml) a. config non-SSL Coyote HTTP/1.1 Connector on open port, say 8081 b. config a Coyote/JK2 AJP 1.3 Connector on open port , say 8581 c. Add our context-changing DocBase (c:\app1) + Path (/app1) 2) Config worker.properties a. add a worker to the list (myapp1) b. copy/modify the worker definition (worker + port) i. worker.MYAPP1.port=8581 ii. worker.MYAPP1.host=localhost iii. worker.MYAPP1.type=ajp13 3) Config uriworkermap.properties a. add mappings to point to the appropriate worker (/app1/*.jsp=MYAPP) 4) Use Jakarta ISAPI in IIS - redirects jsp's to tomcat 5) Create Virtual Directory in IIS for each instance 6) Use Cfg utility to create windows services - point service to appropriate (copy of) server.xml. End result: - Multiple server.xml files (renamed: app1, app2, app3...etc) - Multiple workers in the list - Multiple definitions in the worker.properties file (all type AJP13) - Multiple URI path listings - 1 ISAPI filter - Multiple VD's in IIS - Multiple services - each to its own instance Sites run fine Questions: 1) Is this the best way to config? 2) Is anything missing? Any settings? Timeouts? 3) Does each server.xml file need a unique Server Port? Server port=8005 shutdown=SHUTDOWN debug=0 4) Any suggestions to increase performance in such a config? Thank you, Kjell Eriksen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: sloppy English
Making an attempt to write properly in whatever language implies that you care and respect the audience that you write. Sagara __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Forwarding with Tomcat Standalone
I am trying to replace an Apache/Tomcat combination with Tomcat standalone. I have everything else working, but I can not figure out how to get requests for secure pages to be auto forwarded to https the way they are with Apache.
Re: sloppy English
Sagara Wijetunga wrote: Making an attempt to write properly in whatever language implies that you care and respect the audience that you write. Sagara Agreed. Besides, careless and hurry-up writing might be one reason causing this list huge traffic. It is amazing that often one posting only contains one or two words, but with several screens of multi-level quotings. Best Bao - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Javaw
I cannot add all the class files I need to a shortcut that calls Javaw (due to the number of characters) so I have created a batch file for same. In order to suppress the DOS window I call the file from another batch file. Does someone have a more elegant method? TIA, Dave
Is struts.jar mandatory for tomcat 4.1.24 ?
Hi All, Please let me know if struts.jar should be present under /WEB-INF/lib with tomcat 4.1.24 ? We have jps's which do not struts. But when I start tomcat,encounter the following exception in /logs/localhost_log file . This execption does not hamper the functionality though !!! 2003-09-22 20:33:01 StandardContext[]: Servlet threw load() exception javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.str uts.action.ActionServlet or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:891) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82 3) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex t.java:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 608) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347 Thanks in Advance, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]