RE: ClientAbortException in Tomcat 4.1.31 console
I have read that such clicks can throw this exception. But I can reproduce it alone, by using normally the application. I have tried with an older version 4.1.24-LE-JDK14 and it never happens. Thanks for your help. -Message d'origine- De : Mark Thomas [mailto:[EMAIL PROTECTED] Envoy : mercredi 29 dcembre 2004 19:36 : Tomcat Users List Objet : Re: ClientAbortException in Tomcat 4.1.31 console This is normal. Typically, it happens when the user clicks stop on their browser before the page has finished loading. Mark MERCADIER Didier ROSI/SIFAC wrote: Hi, I'm running a servlets application (with Xerces and Xalan), and I have a lot of ClientAbortException in Tomcat console. My application runs well, it doesn't crash nor redirect to an error page. Sometimes, when I restart Tomcat, these errors don't appear any more. Can someone help me ? - 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: Where do I set the -server option?
Hi, from your next post (alternatives to jsvc) I assume you are using jsvc. Run jsvc -help to see that it has a -jvm option. Here all available jvms should be listed as well. On my debian box it did not find my jvm.cfg, so I could not use the -jvm option. To see where it tries to locate your jvm.cfg run: jsvc -debug -help, and make a symlink or something to your jvm.cfg in the correct location. Trond Hello, does anybody know where to set the -server option on a linux machine? Thanks Michael Kastner - 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]
JarFiles and Tomcat 4.1.24 : same configurations, different behaviors
Hello, We have several workstations. Their configurations are more or less the same : Windows 2000, Tomcat 4.1.24 running on JSDK 1.4.1_07, (some have JSDK 1.4.2_06 too, but Tomcat always runs on 1.4.1). I'm running a servlet application, with the latest Xerces and Xalan releases, more recent than these in JSDK 1.4.1. So, I copy these jar files in $CATALINA_HOME/common/endorsed directory to override JSDK 1.4.1. These jar files are also in the /WEB-INF/lib directory. On some workstations, it is OK. On others, I get this exception when I'm starting Tomcat (.bat) : - WebappLoader[]: Deploy JAR /WEB-INF/lib/xercesImpl.jar to F:\DEV\Moteur\webApp\WEB-INF\lib\xercesImpl.jar ContextConfig[]: Exception lors du traitement du JAR indique par le chemin de ressource /WEB-INF/lib/xercesImpl.jar javax.servlet.ServletException: Exception lors du traitement du JAR indique par le chemin de ressource /WEB-INF/lib/xercesImpl.jar javax.servlet.ServletException: Exception lors du traitement du JAR indique par le chemin de ressource /WEB-INF/lib/xercesImpl.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567) 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) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) 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) ContextConfig[]: Cette application est marquee comme non disponible suite aux erreurs precedentes StandardManager[]: Alimentation de la classe du generateur de nombre aleatoire java.security.SecureRandom StandardManager[]: L'alimentation du generateur de nombre aleatoire est termine StandardContext[]: Erreur de demarrage du contexte suite aux erreurs precedentes - The only solution is to delete jar files in /WEB-INF/lib directory. Incredible ? This is the same configurations ! This solution is annoying because the target WAS need these jar files in /WEB-INF/lib directory. Can someone explain me these differences ? Is it because some workstations have previously installed JSDK 1.4.2_06, that Tomcat uses for installation ? And how to have only one behavior ? Thanks a lot for your help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: jsvc alternatives?
Try wrapper.sourceforge.net -Ursprüngliche Nachricht- Von: Michael Kastner [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 30. Dezember 2004 08:21 An: Tomcat Users List Betreff: jsvc alternatives? Hello, it seems like jsvc runs very unstable on my linux system. Does anybody know any alternatives to jsvc? Greetings Michael Kastner - 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]
How to use Tomcat with Apache
Hi, I had successfully installed Apache Tomcat/5.0. I can login into http://domain.com:8080/admin. I am using http-proxy as the connector. I would like to enable a vhost which i host to run jsp. What should i edit in the httpd.conf to work with tomcat? Thanks VirtualHost 203.208.228.153:80 Directory /home/www/monster/html AllowOverride All /Directory ServerAdmin [EMAIL PROTECTED] ServerName monster.domain.com DocumentRoot /home/www/monster/html/ ScriptAlias /cgi-bin/ /home/www/monster/html/cgi-bin/ /VirtualHost - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: I need to configure logs on my virtual hosting
Hi, Yes, you can. Take a look at the admin context provided with tomcat (as an example): Context path=/admin docBase=${catalina.home}/server/webapps/admin debug=0 privileged=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_admin_log. suffix=.txt timestamp=true/ /Context Bob -Mensagem original- De: Amit Gupta [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 30 de dezembro de 2004 02:33 Para: Tomcat Users List; [EMAIL PROTECTED] Assunto: RE: I need to configure logs on my virtual hosting Hi Bob, I am using tomcat 5.0. I found that logger is used below tomcat 5.5.0. Can I use logger in context.xml in mywebapp/META-INF/context.xml? Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn -Original Message- From: Roberto Rios [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 8:30 PM To: tomcat-user@jakarta.apache.org Subject: RE: I need to configure logs on my virtual hosting Hi, Which tomcat version? For tomcat 4.X put a LOGGER component inside the context and specify the directory that you want. Take a look at (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html) This procedure works with TC 5.0.X, but it's deprecated. For TC 5.5, look at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html. Bob -Mensagem original- De: Amit Gupta [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 28 de dezembro de 2004 04:27 Para: Tomcat Users List Assunto: I need to configure logs on my virtual hosting Hi, I need to configure logs on my virtual hosting. How can I do it? Till now logs are created at global logs directory to which I don't have access. I need logs in my webapps directory. - 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: I need to configure logs on my virtual hosting
Hi, can any body help me this same thing not working on tomcat 5.0.19 version. Manish -Original Message- From: Roberto Rios [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 4:03 PM To: 'Amit Gupta'; 'Tomcat Users List' Subject: RES: I need to configure logs on my virtual hosting Hi, Yes, you can. Take a look at the admin context provided with tomcat (as an example): Context path=/admin docBase=${catalina.home}/server/webapps/admin debug=0 privileged=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_admin_log. suffix=.txt timestamp=true/ /Context Bob -Mensagem original- De: Amit Gupta [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 30 de dezembro de 2004 02:33 Para: Tomcat Users List; [EMAIL PROTECTED] Assunto: RE: I need to configure logs on my virtual hosting Hi Bob, I am using tomcat 5.0. I found that logger is used below tomcat 5.5.0. Can I use logger in context.xml in mywebapp/META-INF/context.xml? Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn -Original Message- From: Roberto Rios [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 8:30 PM To: tomcat-user@jakarta.apache.org Subject: RE: I need to configure logs on my virtual hosting Hi, Which tomcat version? For tomcat 4.X put a LOGGER component inside the context and specify the directory that you want. Take a look at (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html) This procedure works with TC 5.0.X, but it's deprecated. For TC 5.5, look at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html. Bob -Mensagem original- De: Amit Gupta [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 28 de dezembro de 2004 04:27 Para: Tomcat Users List Assunto: I need to configure logs on my virtual hosting Hi, I need to configure logs on my virtual hosting. How can I do it? Till now logs are created at global logs directory to which I don't have access. I need logs in my webapps directory. - 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] *** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I need to configure logs on my virtual hosting
Thanks Bob. Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn -Original Message- From: Goel, Manish Kumar [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 4:09 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: I need to configure logs on my virtual hosting Hi, can any body help me this same thing not working on tomcat 5.0.19 version. Manish -Original Message- From: Roberto Rios [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 4:03 PM To: 'Amit Gupta'; 'Tomcat Users List' Subject: RES: I need to configure logs on my virtual hosting Hi, Yes, you can. Take a look at the admin context provided with tomcat (as an example): Context path=/admin docBase=${catalina.home}/server/webapps/admin debug=0 privileged=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_admin_log. suffix=.txt timestamp=true/ /Context Bob -Mensagem original- De: Amit Gupta [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 30 de dezembro de 2004 02:33 Para: Tomcat Users List; [EMAIL PROTECTED] Assunto: RE: I need to configure logs on my virtual hosting Hi Bob, I am using tomcat 5.0. I found that logger is used below tomcat 5.5.0. Can I use logger in context.xml in mywebapp/META-INF/context.xml? Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn -Original Message- From: Roberto Rios [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 8:30 PM To: tomcat-user@jakarta.apache.org Subject: RE: I need to configure logs on my virtual hosting Hi, Which tomcat version? For tomcat 4.X put a LOGGER component inside the context and specify the directory that you want. Take a look at (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html) This procedure works with TC 5.0.X, but it's deprecated. For TC 5.5, look at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html. Bob -Mensagem original- De: Amit Gupta [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 28 de dezembro de 2004 04:27 Para: Tomcat Users List Assunto: I need to configure logs on my virtual hosting Hi, I need to configure logs on my virtual hosting. How can I do it? Till now logs are created at global logs directory to which I don't have access. I need logs in my webapps directory. - 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] *** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - 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 arising because server had jdk 1.4 and I compiled classes with jdk 1.5
Hi, I just want to share my experience with you. I want struggling with web application for 5 days. It was working in local but not virtual hosting server. Just few minutes before I came to know reason behind my problem. 1) I compiled classes with JDK 1.5 and server had jdk 1.4.. Because of this version difference, classes were failing on hosting server. 2) My application runs on hosting server when I call from 8080 port but not on 80 port. I think hosting server is not configured to proxy '*.do' type URLs to tomcat. Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn
Re: Servletexception from nowhere :/
You have put the servlet spec jar file into your webapp classloader. Get rid of it since servlet.jar is already available via the common classloader. http://jakarta.apache.org/tomcat/faq/classnotfound.html -Tim Peter Lauri wrote: Best groupmember, I use the CommonFileUpload package to handle file uploads. I am trying to get it to work by using the first basic method (from a user-tutorial). The servlets compiles correctly in Eclipse, and I have all the libs at the correct places. Servlet-api.jar and jsp-api.jar is in the classpath. Common-fileupload.jar is in the WEB-INF/lib folder. This snippet throws an ServletExeption: public void doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); if(FileUpload.isMultipartContent(request)) { out.println(Ok, there is a multipart content...); } else { out.println(No multipart content...); } } In the Commons mailinglist they said that it is not a problem with Commonfileupload, but all other Servlets I have created works just fine. The full message is: javax.servlet.ServletException: Invoker service() exception org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java :477) org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:169) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.lang.NoClassDefFoundError: javax/servlet/ServletInputStream ImageUpload.doPost(ImageUpload.java:56) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java :419) org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:169) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Suggestions where to start to dig (I have already been digging for a week :))? -- Best of Times Peter Lauri - 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: Where do I set the -server option?
Thanks Trond, well, ok. I thought I could use my old tomcat4 CATALINA_OPTS settings. Does anyone have actually _use_ jsvc and the -server parameter? Greetings Michael Kastner Trond G. Ziarkowski schrieb: Hi, from your next post (alternatives to jsvc) I assume you are using jsvc. Run jsvc -help to see that it has a -jvm option. Here all available jvms should be listed as well. On my debian box it did not find my jvm.cfg, so I could not use the -jvm option. To see where it tries to locate your jvm.cfg run: jsvc -debug -help, and make a symlink or something to your jvm.cfg in the correct location. Trond Hello, does anybody know where to set the -server option on a linux machine? Thanks Michael Kastner - 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: AW: jsvc alternatives?
Hello Torsten, yep, thanks for the hint. I think I'll give it a shot. By the way, would mod_proxy be an alternative too? Greetings Michael Kastner Torsten Fohrer schrieb: Try wrapper.sourceforge.net -Ursprüngliche Nachricht- Von: Michael Kastner [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 30. Dezember 2004 08:21 An: Tomcat Users List Betreff: jsvc alternatives? Hello, it seems like jsvc runs very unstable on my linux system. Does anybody know any alternatives to jsvc? Greetings Michael Kastner - 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: Where do I set the -server option?
Hi again Michael, Does anyone have actually _use_ jsvc and the -server parameter? As you might have figured out, I'm using it, but I'm using it with tomcat 5.0.28. And as you also should have figured by now, the option when using jsvc is -jvm server. Trond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: I need to configure logs on my virtual hosting
Hi, Can you provide more details? Are you getting errors or the log files aren't being created? I always used logger inside my contexts and I never had problem. I never used TC5.0.19. I did an upgrade from TC4.1.30 to 5.0.28 and everything works well. Bob -Mensagem original- De: Goel, Manish Kumar [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 30 de dezembro de 2004 08:39 Para: Tomcat Users List; [EMAIL PROTECTED] Assunto: RE: I need to configure logs on my virtual hosting Hi, can any body help me this same thing not working on tomcat 5.0.19 version. Manish -Original Message- From: Roberto Rios [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 4:03 PM To: 'Amit Gupta'; 'Tomcat Users List' Subject: RES: I need to configure logs on my virtual hosting Hi, Yes, you can. Take a look at the admin context provided with tomcat (as an example): Context path=/admin docBase=${catalina.home}/server/webapps/admin debug=0 privileged=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_admin_log. suffix=.txt timestamp=true/ /Context Bob -Mensagem original- De: Amit Gupta [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 30 de dezembro de 2004 02:33 Para: Tomcat Users List; [EMAIL PROTECTED] Assunto: RE: I need to configure logs on my virtual hosting Hi Bob, I am using tomcat 5.0. I found that logger is used below tomcat 5.5.0. Can I use logger in context.xml in mywebapp/META-INF/context.xml? Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn -Original Message- From: Roberto Rios [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 8:30 PM To: tomcat-user@jakarta.apache.org Subject: RE: I need to configure logs on my virtual hosting Hi, Which tomcat version? For tomcat 4.X put a LOGGER component inside the context and specify the directory that you want. Take a look at (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html) This procedure works with TC 5.0.X, but it's deprecated. For TC 5.5, look at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html. Bob -Mensagem original- De: Amit Gupta [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 28 de dezembro de 2004 04:27 Para: Tomcat Users List Assunto: I need to configure logs on my virtual hosting Hi, I need to configure logs on my virtual hosting. How can I do it? Till now logs are created at global logs directory to which I don't have access. I need logs in my webapps directory. - 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] *** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session restart replication when using jsvc
Thanks Bill! I checked out the latest sources from CVS and now it works correctly. Thanks also to Wade for lots of good input. Regards Trond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where do I set the -server option?
Hello Trond, thanks for your patience. Of course I tried to figure out, whether there is such an option. However, jsvc --help is not explicit about this, at least from what I understand. -jvm JVM name use a specific Java Virtual Machine. Available JVMs: 'null' To me this does _not_ really look like it says, put your client/server option here. But I'll give it a shot. Thanks again for your help. Greetings Michael Kastner Trond G. Ziarkowski schrieb: Hi again Michael, Does anyone have actually _use_ jsvc and the -server parameter? As you might have figured out, I'm using it, but I'm using it with tomcat 5.0.28. And as you also should have figured by now, the option when using jsvc is -jvm server. Trond - 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: ClientAbortException in Tomcat 4.1.31 console
If the app runs as expected, I wouldn't worry too much about it. If you feel the urge to investigate further, create a simple test app the reproduces the problem I'll happily have a look at it to check what is going on. I suspect (although I haven't looked at the code) the exception is occuring in 4.1.24 but is just not reported in the same way. Mark MERCADIER Didier ROSI/SIFAC wrote: I have read that such clicks can throw this exception. But I can reproduce it alone, by using normally the application. I have tried with an older version 4.1.24-LE-JDK14 and it never happens. Thanks for your help. -Message d'origine- De : Mark Thomas [mailto:[EMAIL PROTECTED] Envoy : mercredi 29 dcembre 2004 19:36 : Tomcat Users List Objet : Re: ClientAbortException in Tomcat 4.1.31 console This is normal. Typically, it happens when the user clicks stop on their browser before the page has finished loading. Mark MERCADIER Didier ROSI/SIFAC wrote: Hi, I'm running a servlets application (with Xerces and Xalan), and I have a lot of ClientAbortException in Tomcat console. My application runs well, it doesn't crash nor redirect to an error page. Sometimes, when I restart Tomcat, these errors don't appear any more. Can someone help me ? - 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: Where do I set the -server option?
Hi Michael -jvm JVM name use a specific Java Virtual Machine. Available JVMs: 'null' It says null because jsvc cannot find your jvm.cfg file. On my system i ran jsvc -debug -help to find out where it was looking for it. I found that jsvc was expecting to find my jvm.cfg in JAVA_HOME/jre/lib, but the file resides in JAVA_HOME/jre/lib/i386. So I made a symlink to it in JAVA_HOME/jre/lib and then running jsvc -help on my box is looking like this: -jvm JVM name use a specific Java Virtual Machine. Available JVMs: 'client' 'server' Now you should be able to start jsvc with the -jvm server option set. To actually verify that the server vm is started you can put this %=System.getProperty(java.vm.name)% inside a jsp and it should say: Java HotSpot(TM) Server VM Trond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebDAV and redirects
Garret Wilson wrote: I've been struggling with the whole issue of Microsoft WebDAV clients failing to including a trailing slash in collection URIs even when I ask nicely. It looks like I can fix this with redirects, but that opens up another can of worms: the Microsoft client redirect bug. I'm trying to get the last word on this, and it looks like Mark Thomas or others may be able to set the record straight. Not sure I can set the record straight completely as it is a while since I played with any of this. TC4 and TC5 handle requests for http://www.example.com/folder differently. TC4 does a forward to http://www.example.com/folder/ whereas TC5 issues a redirect. MS clients have a varied response to the redirect. I didn't record the exact details but from memory IE (XP no SP) then tried the MS specific urls (which TC rejected) whereas IE (XP SP2) seems to be OK with the redirect. What I found at the time was the simpliest work around was to map the webdav servlet to /*. http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]msgId=2007923 Since the above thread, I have fixed the webDAV servlet so you can map it to (for example) /editmywebapp/* which makes http://www.example.com/webapp/mypage.jsp editable via http://www.example.com/webapp/editmywebapp/mypage.jsp This should make editing a webapp through webDAV a lot easier. Basically, Microsoft clients will issue a PROPFIND for http://www.example.com/folder instead of http://www.example.com/folder/ , even though the latter is the true name of the collection and the former is a file that doesn't exist. WebDAV servers get around this by issuing a redirect from http://www.example.com/folder to http://www.example.com/folder/ . It appears that some Microsoft WebFolder implementations will follow up the redirect with a GET instead of a PROPFIND, breaking WebDAV access. For this reason Apache has a redirect-carefully option for user agents such as Microsoft Data Access Internet Publishing Provider. So here are my questions: * What's the most appropriate redirect to send to redirect from http://www.example.com/folder to http://www.example.com/folder/ ? A 301 (permanent) or 302 (temporary)? Don't know. Which does Apache do? Don't know. Which does the Tomcat WebDAV servlet do? It is actually determined by the mapper and depends on the mapping. For TC4 - returns response for ../folder/ For TC5 mapped to / issues a 302 For TC5 mapped to /* returns response for .../folder/ * For those clients that do not follow redirects properly, what should be done as a workaround? Should the server simply act as if http://www.example.com/folder/ were requested when http://www.example.com/folder is requested, if the user agent is one of those recognized as buggy? I think the real question is how does the server get from the request for http://www.example.com/folder to the response for http://www.example.com/folder/. Redirects are just one way of doing it - and they don't work for some clients. Is this what Apache does for redirect-carefully? Don't know. What does the Tomcat WebDAV servlet do? For TC4 - returns response for ../folder/ For TC5 mapped to / issues a 302 For TC5 mapped to /* returns response for .../folder/ * Currently, in my implementation I'm sending back a 302 redirect, and Microsoft WebFolders handles it fine on Windows XP Professional SP2. But is it true that other versions do not follow redirects? I have certainly seen IE ignoring redirects but couldn't give you exact version numbers. I think it was IE from XP with no SP I saw this on but I am not sure. As all versions send the same user agent identification (Microsoft Data Access Internet Publishing Provider), what should the WebDAV server do---implement the redirect-carefully hack even with those clients that properly follow redirects, as the server can't tell the difference? Depends on how much control you have over the clients. The mapping to /* approach seems to have fixed all of the 302 issues we were seeing. What does the Tomcat WebDAV servlet do? Uses a mapping that means 302s are never issued. A lot of this information seems to be on the Internet, but as little pieces scattered about. As with most useful info on the internet ;). Hopefully this thread will help make this better. Thanks in advance, Garret - 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]
SV: Servletexception from nowhere :/
If you mean that I have servlet-api.jar inte WEB-INF/lib I do not. I had it in the CLASSPATH system variable (as guided in the setup of Tomcat). The only thing I have in WEB-INF/lib is mysql_connector.jar and commons-fileuplad-1.0.jar. There seems not to be any solution to this problem :( Am I stupid or what is it? Regards, Peter Lauri -Ursprungligt meddelande- Från: Tim Funk [mailto:[EMAIL PROTECTED] Skickat: den 30 december 2004 18:30 Till: Tomcat Users List Ämne: Re: Servletexception from nowhere :/ You have put the servlet spec jar file into your webapp classloader. Get rid of it since servlet.jar is already available via the common classloader. http://jakarta.apache.org/tomcat/faq/classnotfound.html -Tim Peter Lauri wrote: Best groupmember, I use the CommonFileUpload package to handle file uploads. I am trying to get it to work by using the first basic method (from a user-tutorial). The servlets compiles correctly in Eclipse, and I have all the libs at the correct places. Servlet-api.jar and jsp-api.jar is in the classpath. Common-fileupload.jar is in the WEB-INF/lib folder. This snippet throws an ServletExeption: public void doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); if(FileUpload.isMultipartContent(request)) { out.println(Ok, there is a multipart content...); } else { out.println(No multipart content...); } } In the Commons mailinglist they said that it is not a problem with Commonfileupload, but all other Servlets I have created works just fine. The full message is: javax.servlet.ServletException: Invoker service() exception org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java :477) org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:169) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.lang.NoClassDefFoundError: javax/servlet/ServletInputStream ImageUpload.doPost(ImageUpload.java:56) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java :419) org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:169) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Suggestions where to start to dig (I have already been digging for a week :))? -- Best of Times Peter Lauri - 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: SV: Servletexception from nowhere :/
The CLASSPATH is ignored by tomcat on startup. Make sure you don't have extra jars (such as servlet-api.jar) in the ext directory of your java installation. That may be messing things up. -Tim Peter Lauri wrote: If you mean that I have servlet-api.jar inte WEB-INF/lib I do not. I had it in the CLASSPATH system variable (as guided in the setup of Tomcat). The only thing I have in WEB-INF/lib is mysql_connector.jar and commons-fileuplad-1.0.jar. There seems not to be any solution to this problem :( Am I stupid or what is it? Regards, Peter Lauri -Ursprungligt meddelande- Från: Tim Funk [mailto:[EMAIL PROTECTED] Skickat: den 30 december 2004 18:30 Till: Tomcat Users List Ämne: Re: Servletexception from nowhere :/ You have put the servlet spec jar file into your webapp classloader. Get rid of it since servlet.jar is already available via the common classloader. http://jakarta.apache.org/tomcat/faq/classnotfound.html -Tim Peter Lauri wrote: Best groupmember, I use the CommonFileUpload package to handle file uploads. I am trying to get it to work by using the first basic method (from a user-tutorial). The servlets compiles correctly in Eclipse, and I have all the libs at the correct places. Servlet-api.jar and jsp-api.jar is in the classpath. Common-fileupload.jar is in the WEB-INF/lib folder. This snippet throws an ServletExeption: public void doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); if(FileUpload.isMultipartContent(request)) { out.println(Ok, there is a multipart content...); } else { out.println(No multipart content...); } } In the Commons mailinglist they said that it is not a problem with Commonfileupload, but all other Servlets I have created works just fine. The full message is: javax.servlet.ServletException: Invoker service() exception org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java :477) org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:169) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.lang.NoClassDefFoundError: javax/servlet/ServletInputStream ImageUpload.doPost(ImageUpload.java:56) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java :419) org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:169) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Suggestions where to start to dig (I have already been digging for a week :))? -- Best of Times Peter Lauri - 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]
SV: SV: Servletexception from nowhere :/
I love you all :) The solution to the problem was that I had the Commonfileupload jar in both javas ext and WEB-INF/lib... Now it works ;) Thanks everybody for the help in this issue... /Peter -Ursprungligt meddelande- Från: Tim Funk [mailto:[EMAIL PROTECTED] Skickat: den 30 december 2004 21:21 Till: Tomcat Users List Ämne: Re: SV: Servletexception from nowhere :/ The CLASSPATH is ignored by tomcat on startup. Make sure you don't have extra jars (such as servlet-api.jar) in the ext directory of your java installation. That may be messing things up. -Tim Peter Lauri wrote: If you mean that I have servlet-api.jar inte WEB-INF/lib I do not. I had it in the CLASSPATH system variable (as guided in the setup of Tomcat). The only thing I have in WEB-INF/lib is mysql_connector.jar and commons-fileuplad-1.0.jar. There seems not to be any solution to this problem :( Am I stupid or what is it? Regards, Peter Lauri -Ursprungligt meddelande- Från: Tim Funk [mailto:[EMAIL PROTECTED] Skickat: den 30 december 2004 18:30 Till: Tomcat Users List Ämne: Re: Servletexception from nowhere :/ You have put the servlet spec jar file into your webapp classloader. Get rid of it since servlet.jar is already available via the common classloader. http://jakarta.apache.org/tomcat/faq/classnotfound.html -Tim Peter Lauri wrote: Best groupmember, I use the CommonFileUpload package to handle file uploads. I am trying to get it to work by using the first basic method (from a user-tutorial). The servlets compiles correctly in Eclipse, and I have all the libs at the correct places. Servlet-api.jar and jsp-api.jar is in the classpath. Common-fileupload.jar is in the WEB-INF/lib folder. This snippet throws an ServletExeption: public void doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); if(FileUpload.isMultipartContent(request)) { out.println(Ok, there is a multipart content...); } else { out.println(No multipart content...); } } In the Commons mailinglist they said that it is not a problem with Commonfileupload, but all other Servlets I have created works just fine. The full message is: javax.servlet.ServletException: Invoker service() exception org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java :477) org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:169) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.lang.NoClassDefFoundError: javax/servlet/ServletInputStream ImageUpload.doPost(ImageUpload.java:56) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java :419) org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:169) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Suggestions where to start to dig (I have already been digging for a week :))? -- Best of Times Peter Lauri - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP compilation problem
Hello. I'm using Tomcat 5.0.29. Working from home today and trying to run a working application on my laptop, and I'm seeing an exception when trying to access the first JSP of the app. Here's the on-screen display: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:434) org.apache.jasper.compiler.Compiler.compile(Compiler.java:492) org.apache.jasper.compiler.Compiler.compile(Compiler.java:471) org.apache.jasper.compiler.Compiler.compile(Compiler.java:459) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause Compile failed; see the compiler error output for details. org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:938) org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:402) org.apache.jasper.compiler.Compiler.compile(Compiler.java:492) org.apache.jasper.compiler.Compiler.compile(Compiler.java:471) org.apache.jasper.compiler.Compiler.compile(Compiler.java:459) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.29 logs. Apache Tomcat/5.0.29 And here's the entire catalina log: StandardContext[/toa]default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 StandardContext[/manager]default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:938) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:402) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:492) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:471) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:459) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at
Re: WebDAV and redirects
Mark, Mark Thomas wrote: TC4 and TC5 handle requests for http://www.example.com/folder differently. TC4 does a forward to http://www.example.com/folder/ whereas TC5 issues a redirect. ... For TC4 - returns response for ../folder/ For TC5 mapped to / issues a 302 For TC5 mapped to /* returns response for .../folder/ ... Uses a mapping that means 302s are never issued. Thanks so much for the response. If I could just summarize here, I think what you're saying is that, with the correct servlet mapping, the Tomcat WebDAV servlet will *always* do the equivalent of a forward from http://www.example.com/folder to http://www.example.com/folder/ , and this seems to be a consequence of using the Tomcat-derived directory context as a source of the files on the back-end. This is compliant with the letter of RFC 2518 (5.2): There is a standing convention that when a collection is referred to by its name without a trailing slash, the trailing slash is automatically appended. Due to this, a resource may accept a URI without a trailing / to point to a collection. In this case it SHOULD return a content-location header in the response pointing to the URI ending with the /. For example, if a client invokes a method on http://foo.bar/blah (no trailing slash), the resource http://foo.bar/blah/ (trailing slash) may respond as if the operation were invoked on it, and should return a content-location header with http://foo.bar/blah/ in it. In general clients SHOULD use the / form of collection names. The problem with this approach, as explained on the thread http://lists.w3.org/Archives/Public/w3c-dist-auth/2002AprJun/0190.html , is that http://www.example.com/folder and http://www.example.com/folder/ could represent distinct resources. Well-behaved WebDAV clients could distinguish between the two---this is why Apache apparently uses redirect-carefully *only* for enumerated broken user agents. The Tomcat WebDAV servlet as you've described, however, forces this behavior for *all* user agents, meaning that even completely compliant WebDAV clients would not be able to distinguish between an existing http://www.example.com/folder/ collection and a non-existent http://www.example.com/folder resource. (Presumably a nice client would be able to create a http://www.example.com/folder with the Tomcat WebDAV servlet even if the http://www.example.com/folder/ collection existed, but that's just a guess---and that ignores the Linux limitation of file/directory name equality, but that's a deployment issue.) In my implementation, I'm trying to be rigorous with http://www.example.com/folder and http://www.example.com/folder/ distinction. (I'm actually using WebDAV to serve an RDF-based repository, which could have a file system, a database, or anything on the back-end, so any URI is theoretically possible.) I'll probably wind up sending back a 301 permanent redirect for everyone but a few listed rogue clients, which means that unfortunately I'll have to consider even updated MS clients as rogue as they give no version number in their User-Agent header. Cheers, Garret - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JVM Crash
I googled around and here some good(?) news, at least somebody get around the problem: http://forum.java.sun.com/thread.jspa?threadID=307252tstart=210 on of solution is : -- cut -- now I use jdk1.3.1_06 with hospot -server and it works perfectly (and faster) -- end cut --- another one was a hardware problem: -- cut -- Some part of the computer seemed to be not compatible with the FSB133 standard. So I reduced the system to FSB100. No signal 11 since that time :- -- end cut -- and here another issue with java: -- cut -- In this case, it was happening during the compilation of a reasonably large JSP. A colleague found out that there was a known issue with this version of javac compiling large methods (64Kb), which tends to happen when you have a large JSP getting compiled into a single service() method. -- end cut -- --- Amit Gupta [EMAIL PROTECTED] wrote: I am facing similar problem on user mode Linux. Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn -Original Message- From: Rodrigo Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 5:05 PM To: Tomcat Users List Subject: Re: JVM Crash Amit, I am using a dedicated server. Rodrigo Amit Gupta wrote: You are using User mode Linux or dedicated server? Amit Gupta Mobile: 91-9818052171 -Original Message- From: Rodrigo Schmidt [mailto:[EMAIL PROTECTED] Sent: Monday, December 27, 2004 11:18 PM To: tomcat-user@jakarta.apache.org Subject: JVM Crash Hello all, I deployed Atlassian Jira Enterprise 3.0.3 in Tomcat 5.0.28 and I experienced two random JVM crashes in a period of one month. The strange part is that the crashes occured when the application was at a very low load, doing almost nothing. I searched the archives for this topic, but I still can't figure out what could have caused these crashes. I have no idea whether they are related to Jira, Tomcat, J2SDK or RedHat. I would like to isolate the problem, so that I can ask the proper vendor for support. Below I will post information about my system and the JVM error logs, sorry for the long message. Any help is greatly appreciated, thanks a lot. Rodrigo System: Linux 2.4.21-4.EL #1 Fri Oct 3 18:13:58 EDT 2003 i686 i686 i386 GNU/Linux Red Hat Enterprise Linux AS release 3 (Taroon) Tomcat 5.0.28 java version 1.4.2_06 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03) Java HotSpot(TM) Server VM (build 1.4.2_06-b03, mixed mode) JAVA_OPTS=-server -Xmx512m 1GB RAM CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 09 Error log 1: Unexpected Signal : 11 occurred at PC=0xB7289E78 Function=(null) Library=/usr/local/j2sdk1.4.2_06/jre/lib/i386/server/libjvm.so 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. Current Java thread: at java.lang.String.intern(Native Method) at java.lang.Class.searchMethods(Class.java:1877) at java.lang.Class.getDeclaredMethod(Class.java:1262) at org.apache.commons.logging.impl.LogFactoryImpl.isJdk14Available(LogFactoryImpl.java:489) at org.apache.commons.logging.impl.LogFactoryImpl.getLogClassName(LogFactoryImpl.java:331) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:368) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.apache.commons.beanutils.ConvertUtilsBean.init(ConvertUtilsBean.java:130) at org.apache.commons.beanutils.BeanUtilsBean.init(BeanUtilsBean.java:110) at org.apache.commons.beanutils.BeanUtilsBean$1.initialValue(BeanUtilsBean.java:68) at org.apache.commons.beanutils.ContextClassLoaderLocal.get(ContextClassLoaderLocal.java:80) - locked 0x925030d0 (a org.apache.commons.beanutils.BeanUtilsBean$1) at org.apache.commons.beanutils.BeanUtilsBean.getInstance(BeanUtilsBean.java:78) - locked 0xaeeb91a0 (a java.lang.Class) at org.apache.commons.beanutils.ConvertUtilsBean.getInstance(ConvertUtilsBean.java:115) at org.apache.commons.beanutils.ConvertUtils.convert(ConvertUtils.java:217) at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:457) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at
Re: jsvc alternatives?
Michael Kastner wrote: Hello, it seems like jsvc runs very unstable on my linux system. Does anybody know any alternatives to jsvc? Greetings Michael Kastner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Did you see the recent post from Bill Barker to a reply I gave to another list member? He talked about the version of code for jsvc shipping with Tomcat as being very buggy. I just glanced at the release 1.0 code that I had posted about, Bill suggested downloading from the common daemon cvs to get some better code. There isn't that much to the code really, so if you are able maybe it would be easier to get that code, build it, see if it works, and if it doesn't to fix it. I haven't used it yet, but have been planning on it. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JVM Crash
Mark wrote: I googled around and here some good(?) news, at least somebody get around the problem: http://forum.java.sun.com/thread.jspa?threadID=307252tstart=210 on of solution is : -- cut -- now I use jdk1.3.1_06 with hospot -server and it works perfectly (and faster) -- end cut --- another one was a hardware problem: -- cut -- Some part of the computer seemed to be not compatible with the FSB133 standard. So I reduced the system to FSB100. No signal 11 since that time :- -- end cut -- and here another issue with java: -- cut -- In this case, it was happening during the compilation of a reasonably large JSP. A colleague found out that there was a known issue with this version of javac compiling large methods (64Kb), which tends to happen when you have a large JSP getting compiled into a single service() method. -- end cut -- --- Amit Gupta [EMAIL PROTECTED] wrote: I am facing similar problem on user mode Linux. Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn -Original Message- From: Rodrigo Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 5:05 PM To: Tomcat Users List Subject: Re: JVM Crash Amit, I am using a dedicated server. Rodrigo Amit Gupta wrote: You are using User mode Linux or dedicated server? Amit Gupta Mobile: 91-9818052171 -Original Message- From: Rodrigo Schmidt [mailto:[EMAIL PROTECTED] Sent: Monday, December 27, 2004 11:18 PM To: tomcat-user@jakarta.apache.org Subject: JVM Crash Hello all, I deployed Atlassian Jira Enterprise 3.0.3 in Tomcat 5.0.28 and I experienced two random JVM crashes in a period of one month. The strange part is that the crashes occured when the application was at a very low load, doing almost nothing. I searched the archives for this topic, but I still can't figure out what could have caused these crashes. I have no idea whether they are related to Jira, Tomcat, J2SDK or RedHat. I would like to isolate the problem, so that I can ask the proper vendor for support. Below I will post information about my system and the JVM error logs, sorry for the long message. Any help is greatly appreciated, thanks a lot. Rodrigo System: Linux 2.4.21-4.EL #1 Fri Oct 3 18:13:58 EDT 2003 i686 i686 i386 GNU/Linux Red Hat Enterprise Linux AS release 3 (Taroon) Tomcat 5.0.28 java version 1.4.2_06 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03) Java HotSpot(TM) Server VM (build 1.4.2_06-b03, mixed mode) JAVA_OPTS=-server -Xmx512m 1GB RAM CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 09 Error log 1: Unexpected Signal : 11 occurred at PC=0xB7289E78 Function=(null) Library=/usr/local/j2sdk1.4.2_06/jre/lib/i386/server/libjvm.so 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. Current Java thread: at java.lang.String.intern(Native Method) at java.lang.Class.searchMethods(Class.java:1877) at java.lang.Class.getDeclaredMethod(Class.java:1262) at org.apache.commons.logging.impl.LogFactoryImpl.isJdk14Available(LogFactoryImpl.java:489) at org.apache.commons.logging.impl.LogFactoryImpl.getLogClassName(LogFactoryImpl.java:331) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:368) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.apache.commons.beanutils.ConvertUtilsBean.init(ConvertUtilsBean.java:130) at org.apache.commons.beanutils.BeanUtilsBean.init(BeanUtilsBean.java:110) at org.apache.commons.beanutils.BeanUtilsBean$1.initialValue(BeanUtilsBean.java:68) at org.apache.commons.beanutils.ContextClassLoaderLocal.get(ContextClassLoaderLocal.java:80) - locked 0x925030d0 (a org.apache.commons.beanutils.BeanUtilsBean$1) at org.apache.commons.beanutils.BeanUtilsBean.getInstance(BeanUtilsBean.java:78) - locked 0xaeeb91a0 (a java.lang.Class) at org.apache.commons.beanutils.ConvertUtilsBean.getInstance(ConvertUtilsBean.java:115) at org.apache.commons.beanutils.ConvertUtils.convert(ConvertUtils.java:217) at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:457) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at
Re: jsvc alternatives?
Wade Chandler wrote: Michael Kastner wrote: Hello, it seems like jsvc runs very unstable on my linux system. Does anybody know any alternatives to jsvc? Greetings Michael Kastner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Did you see the recent post from Bill Barker to a reply I gave to another list member? He talked about the version of code for jsvc shipping with Tomcat as being very buggy. I just glanced at the release 1.0 code that I had posted about, Bill suggested downloading from the common daemon cvs to get some better code. There isn't that much to the code really, so if you are able maybe it would be easier to get that code, build it, see if it works, and if it doesn't to fix it. I haven't used it yet, but have been planning on it. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Just noticed by reading another message you did just that. Sorry for the late and un-needed post. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session restart replication when using jsvc
Bill Barker wrote: This is the old, buggy, code that ships with Tomcat. You need to get the code from commons-daemon CVS HEAD if you want shutdowns (and restarts) to work properly. Bill, Just thinking ahead to the next 4.1.x release - do you know if there is a commons-daemon release that includes the necessary fixes or does it have to be CVS head? Cheers, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[tomcat 5.0] context.xml treated differently in WAR and directory deployments
Hi all, It seems that META-INF/context.xml is treated differently by WAR and directory deployments, at least in tomcat 5.0.30-beta. Looking at HostConfig.java, the method 'deployWARs' checks each '.war' file for a META-INF/context.xml file (line 528) and if it exists, it is copied to the catalina configuration directory (line 546). However, no such processing occurs in the method 'deployDirectories'. Each directory in appBase is checked for a WEB-INF subdirectory, but that is all (line 683). Is this the desired behavior? Am I missing some other piece of the puzzle? For me it's troublesome since I'm using the MyEclipse Tomcat deployer that just does a (more-or-less) simple copy of the project directory to the webapp directory. This means that I have to copy the META-INF/context.xml file by hand to the configuration directory every time I modify it. While not a huge problem, it's inconvenient and were it automatic it would be easier to convince people where I work that moving to Tomcat is a good idea. :-) Thanks, Ian Flanigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsvc alternatives?
Hello Wade, I just got me the most recent nightly version and compiled it. The server seems to start nicely with all applications. Knock on wood: it seems to be working. Maybe that was just about the hint I needed. I'll do some more testing overnight. Thank you and all others who read my stuff and answered. Greetings Michael Kastner Wade Chandler schrieb: Michael Kastner wrote: Hello, it seems like jsvc runs very unstable on my linux system. Does anybody know any alternatives to jsvc? Greetings Michael Kastner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Did you see the recent post from Bill Barker to a reply I gave to another list member? He talked about the version of code for jsvc shipping with Tomcat as being very buggy. I just glanced at the release 1.0 code that I had posted about, Bill suggested downloading from the common daemon cvs to get some better code. There isn't that much to the code really, so if you are able maybe it would be easier to get that code, build it, see if it works, and if it doesn't to fix it. I haven't used it yet, but have been planning on it. Wade - 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: Where do I set the -server option?
Hello Trond, now that's an in depth explanation. Thanks a lot. Sorry for my questions, but I was somehow too much focused on the old tomcat 4.1 configuration. Thanks once again for your patience. You've helped me a lot. Greetings Michael Kastner Trond G. Ziarkowski schrieb: Hi Michael -jvm JVM name use a specific Java Virtual Machine. Available JVMs: 'null' It says null because jsvc cannot find your jvm.cfg file. On my system i ran jsvc -debug -help to find out where it was looking for it. I found that jsvc was expecting to find my jvm.cfg in JAVA_HOME/jre/lib, but the file resides in JAVA_HOME/jre/lib/i386. So I made a symlink to it in JAVA_HOME/jre/lib and then running jsvc -help on my box is looking like this: -jvm JVM name use a specific Java Virtual Machine. Available JVMs: 'client' 'server' Now you should be able to start jsvc with the -jvm server option set. To actually verify that the server vm is started you can put this %=System.getProperty(java.vm.name)% inside a jsp and it should say: Java HotSpot(TM) Server VM Trond - 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]
AW: AW: jsvc alternatives?
Hi, As example use wrapper to control/check your tomcat instance and set up a apache/proxy or apache/mod_jk in front of it, to serve static resources, or use mod_rewrite/mod_cache (as example). Mod_proxy provides only connection from apache to tomcat, like mod_jk too. apache 2.1 mod_proxy provides some very interesting additional features: - load balancing - http 1.1 connection pooling ( apache to backendserver ). - additional ajp connector (2.0: http, ftp only ). Scared from mod_jk, use mod_proxy, and with 2.1 you get performace of mod_jk, simply configuration of mod_proxy ( i hope ). See mailing list for more info. -Ursprüngliche Nachricht- Von: Michael Kastner [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 30. Dezember 2004 12:57 An: Tomcat Users List Betreff: Re: AW: jsvc alternatives? Hello Torsten, yep, thanks for the hint. I think I'll give it a shot. By the way, would mod_proxy be an alternative too? Greetings Michael Kastner Torsten Fohrer schrieb: Try wrapper.sourceforge.net -Ursprüngliche Nachricht- Von: Michael Kastner [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 30. Dezember 2004 08:21 An: Tomcat Users List Betreff: jsvc alternatives? Hello, it seems like jsvc runs very unstable on my linux system. Does anybody know any alternatives to jsvc? Greetings Michael Kastner - 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]
Disabling all but the production context
Hi, This must get asked all the time, but I've searched very intently and have not been able to find how to do this. What I would like, is that the only reachable context on my server is the production context. So let's say my domain is www.example.com, and my web-app can be reached at www.example.com/business/servlet1, I would like the latter to be the only thing reachable. So if someone goes to www.example.com they should not get anything returned. However, I would like these to be reachable for anyone on localhost. Now the documentation tells me the way to do this is by adding a Valve element to a Context. The help I could find on the Internet is mostly for Tomcat 4.0 and there they refer to the contexts being located in server.xml. I'm using 5.0.28 however, and in the server.xml file there are no Context elements. I know the Contexts for the Manager and Admin app can be found at $CATALINA_HOME/conf/Catalina/localhost/ , so there I've added appropriate Valve elements to the manager and admin xml files. But I can't find the Contexts for the Welcome Page or the Examples. Could someone please tell me how I restrict access the Welcome Page and the Examples? Thanks very much, Jonck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Looking for a few good books
I am in need of some good books for developing solid JSP code. There are a ton of books out there but I am hoping that this group has a few favorites. What I need is a book that describes how to organize a JSP Tomcat site. Describes how to compile code into servlets. As well as include those classes into JSP script. Ideally these classes should be stored in a location that can be used by all sites. Any help is greatly appreciated. Thank You Charles Killmer
Re: Looking for a few good books
For organizing a development environment, the best one I've seen is the First Web App Tutorial on the tomcat site: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html For actually coding JSPs and Servlets I still like: Core Servlets And Java Server Pages and it's followup: More Servlets and Java Server Pages. http://www.coreservlets.com Most of the books out there are somewhat outdated on deployment practices. Be sure to read: http://jakarta.apache.org/tomcat/faq/misc.html#evil because most of the books out there still use the invoker servlet in their examples. Also search this list. The question which books are best? comes up about once a month. There are some good replies in there. On Thu, 2004-12-30 at 13:01, Charles P. Killmer wrote: I am in need of some good books for developing solid JSP code. There are a ton of books out there but I am hoping that this group has a few favorites. What I need is a book that describes how to organize a JSP Tomcat site. Describes how to compile code into servlets. As well as include those classes into JSP script. Ideally these classes should be stored in a location that can be used by all sites. Any help is greatly appreciated. Thank You Charles Killmer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How Do I Install A Valve
Hi. I've written a Valve that I will configure inside the Engine element in server.xml. I've made my valve class part of the org.apache.catalina.valves package. My questions is this: Where to I put the class file so that Tomcat can use it? (I'm using Tomcat 5.0.27.) - Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does Windows needs special settings?
Hi, I'm using CVS to bring in my whole project which includes Tomcat. I can grab this just fine on any linux implementation and Tomcat will start, but on Windows I get this message: E:\-\bincatalina run (Using to get error output) Using CATALINA_BASE: e:\\ Using CATALINA_HOME: e:\---\ Using CATALINA_TMPDIR: e:\\temp Using JAVA_HOME: c:\progra~1\java\jdk1.5.0 Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap -- But if I run the Tomcat installer, and actually install Tomcat using the 'Start Tomcat' icon, it starts with no problem. Does the installer do something different with Windows that I can't just copy the files and run them? I'd like to keep Tomcat bundled with the rest of the code and not have to do a special install for Windows. - Nic. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FW: j2sdk problems
I will probably have to wait until the next time this occurs to give you accurate details on this. Thanks for the questions it helps me to know what to be aware of in regards to this issue. Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 29, 2004 3:52 PM To: Tomcat Users List Subject: Re: FW: j2sdk problems Warron French wrote: That's the problem, the j2sdk/jboss services fail after about a week and there is no log entries in the /var/log/mod_jk.log file. Or anywhere else I mentioned in my original email. Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 Do you have any information about your memory usage on your computer? Do you know which version of Tomcat it is in the JBoss distro? Which version of mod_jk/2? Wade - 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: FW: j2sdk problems
Ben, thanks for your input. Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 29, 2004 3:57 PM To: tomcat-user@jakarta.apache.org Subject: RE: FW: j2sdk problems Again you are unclear. What do you mean by fail? The JBoss process? If you mean that, then you are on the wrong list. This is for tomcat users, not JBoss users. Here is what I would do: 1) If you are having process problems with Jboss, contact a JBoss related list. 2) If you cannot get access to go from mod_jk to JBoss, check the access logs. What is the return code for the app? Is it something outside of 200-300? Is there an error given to a user, i.e., on their screen? Try bumping up the logging levels to debug in the mod_jk config. These are common troubleshooting techniques. You might want to Google for 'Apache troubleshooting' to get some tips. Ben Ricker That's the problem, the j2sdk/jboss services fail after about a week and there is no log entries in the /var/log/mod_jk.log file. Or anywhere else I mentioned in my original email. Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 29, 2004 3:26 PM To: tomcat-user@jakarta.apache.org Subject: Re: FW: j2sdk problems You probably have not had help because there is no PROBLEM listed. What is the issue? Your question is hoplessly vague as presented. If you see no errors, then what is the problem? :] Ben Ricker Can anyone help me on this issue please? I have reviewed the log files to no end on this issue. I see nothing at all in terms of errors. The problem is we are running jboss-3.2.5 in conjunction with j2sdk-1.4.1_04 on a Red Hat Linux 9 system with the 2.4.20-31.9smp kernel and I have had to restart the jboss services. I have reviewed the /var/log/messages file found nothing in reference to jboss or mod_jk2 or j2sdk. I reviewed the error_log file for the website under its configuration and found no errors pointing towards mod_jk2, however there were references to errors involving re-initializing of SSL, Directory index forbidden by rule: ~/public_html (where tilde is the homedir for the site) I also went to look at the /var/log/httpd/mod_jk.log file and there is nothing in it, however, there was a previous log file from over a week ago (since I rebooted the server and restarted the service last week). I don't know where else to look to solve this problem. Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does Windows needs special settings?
Are you using startup.bat to start Tomcat when you receive this error? %CATALINA_HOME%\bin\bootstrap.jar needs to be in the classpath when starting tomcat. This gets set in catalina.bat which is involed by startup.bat. It shouldn't be necessary to do anything special on Windows. [EMAIL PROTECTED] 12/30 12:30 pm Hi, I'm using CVS to bring in my whole project which includes Tomcat. I can grab this just fine on any linux implementation and Tomcat will start, but on Windows I get this message: E:\-\bincatalina run (Using to get error output) Using CATALINA_BASE: e:\\ Using CATALINA_HOME: e:\---\ Using CATALINA_TMPDIR: e:\\temp Using JAVA_HOME: c:\progra~1\java\jdk1.5.0 Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap -- But if I run the Tomcat installer, and actually install Tomcat using the 'Start Tomcat' icon, it starts with no problem. Does the installer do something different with Windows that I can't just copy the files and run them? I'd like to keep Tomcat bundled with the rest of the code and not have to do a special install for Windows. - Nic. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
/manager for the webs
hi List is there a way to set up the manager for each webs, so that the user can start or stop their Webapplication easily thru the web ? thanx.luke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does Windows needs special settings?
Have you verified that these are right? Using CATALINA_BASE: e:\\ Using CATALINA_HOME: e:\---\ On Thu, 2004-12-30 at 13:30, Nic Werner wrote: Hi, I'm using CVS to bring in my whole project which includes Tomcat. I can grab this just fine on any linux implementation and Tomcat will start, but on Windows I get this message: E:\-\bincatalina run (Using to get error output) Using CATALINA_BASE: e:\\ Using CATALINA_HOME: e:\---\ Using CATALINA_TMPDIR: e:\\temp Using JAVA_HOME: c:\progra~1\java\jdk1.5.0 Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap -- But if I run the Tomcat installer, and actually install Tomcat using the 'Start Tomcat' icon, it starts with no problem. Does the installer do something different with Windows that I can't just copy the files and run them? I'd like to keep Tomcat bundled with the rest of the code and not have to do a special install for Windows. - Nic. - 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: /manager for the webs
I believe, and someone will correct me if I'm wrong, you can have one manager for each host entry in your server.xml. On Thu, 2004-12-30 at 13:51, Lukas Pataki wrote: hi List is there a way to set up the manager for each webs, so that the user can start or stop their Webapplication easily thru the web ? thanx.luke - 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]
anyone know where mod_jk-1.2.8 binary is?
Hello All, The Apache.org site says the binary is there. But when you go to retrieve it, all that is offered is 1.2.6. http://jakarta.apache.org/site/binindex.cgi I need the 1.2.8 binary to use JKUnmount, and now I'm chasing my tail to install Ant, then it appears that my build.properties for mod_jk wants a path to source(?) in my Jakarta/Tomcat directory, which was installed, binary (/home/jakarta-tomcat-5.5.4/build). Any help appreciated. Thanks, Glenn -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Configuration by dnasadmin-at-1bigthink.com -- Glenn Parsons - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: /manager for the webs
hi On Thu, 30 Dec 2004 13:53:42 -0500 Ben Souther [EMAIL PROTECTED] wrote: I believe, and someone will correct me if I'm wrong, you can have one manager for each host entry in your server.xml. so maybe i missunderstood the manager-howto: cite: If you have Tomcat configured to support multiple virtual hosts (websites) you would need to configure a Manager for each. .luke On Thu, 2004-12-30 at 13:51, Lukas Pataki wrote: hi List is there a way to set up the manager for each webs, so that the user can start or stop their Webapplication easily thru the web ? thanx.luke - 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: Disabling all but the production context
The easiest thing to do is to create/add a filter for the webapps which perform the ACL controls you need. For example: I have some utilities called servlet utils here: http://funkman.home.comcast.net/servletutils-0.2/ The following example returns 403 for any request where the remoteaddress != 127.0.0.1 filter filter-nameGoAwayFilter/filter-name filter-classnet.funkman.servletutil.filter.ErrorFilter/filter-class init-param param-nameerrorMessage/param-name param-valueGo away!/param-value /init-param init-param param-nameerrorCode/param-name param-value403/param-value /init-param init-param param-namecondition/param-name param-value${request.remoteAddress ne '127.0.0.1'}/param-value /init-param /filter filter-mapping filter-nameGoAwayFilter/filter-name url-pattern/*/url-pattern /filter-mapping Just inject the snippet above into your web.xml. -Tim Jonck van der Kogel wrote: Hi, This must get asked all the time, but I've searched very intently and have not been able to find how to do this. What I would like, is that the only reachable context on my server is the production context. So let's say my domain is www.example.com, and my web-app can be reached at www.example.com/business/servlet1, I would like the latter to be the only thing reachable. So if someone goes to www.example.com they should not get anything returned. However, I would like these to be reachable for anyone on localhost. Now the documentation tells me the way to do this is by adding a Valve element to a Context. The help I could find on the Internet is mostly for Tomcat 4.0 and there they refer to the contexts being located in server.xml. I'm using 5.0.28 however, and in the server.xml file there are no Context elements. I know the Contexts for the Manager and Admin app can be found at $CATALINA_HOME/conf/Catalina/localhost/ , so there I've added appropriate Valve elements to the manager and admin xml files. But I can't find the Contexts for the Welcome Page or the Examples. Could someone please tell me how I restrict access the Welcome Page and the Examples? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Looking for a few good books
Hi. I have some servers with Apache2 + Tomcat5, with some virtual hosts inside. The servers are in production and nothing is reloaded. I've installed the Tomcat Manager to reload those virtual hosts that suffers changes from preproduction. The problem is that many times the reload fails with that error: Session already invalidated and the context goes down, only that context. Seems that this error appears when the context suffers any previous Exception. After a Tomcat restart the manager reload works very well. Here is the output error from the context log: 2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager: init: Associated with Deployer 'XXX' 2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager: init: Global resources are available 2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager: restart: Reloading web application at '/' 2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager: ManagerServlet.reload[/] java.lang.IllegalStateException: removeAttribute: Session already invalidated at org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1147) at org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1122) at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1405) at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:902) at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:539) at org.apache.catalina.session.StandardManager.unload(StandardManager.java:485) at org.apache.catalina.session.StandardManager.stop(StandardManager.java:687) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4496) at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3037) at org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:1014) at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:330) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Thanks a lot, now i've to restart Tomcat in any change made to the contexts, and is no good in production. Any help is greatly appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,
Session already invalidated
Hi. I have some servers with Apache2 + Tomcat5, with some virtual hosts inside. The servers are in production and nothing is reloaded. I've installed the Tomcat Manager to reload those virtual hosts that suffers changes from preproduction. The problem is that many times the reload fails with that error: Session already invalidated and the context goes down, only that context. Seems that this error appears when the context suffers any previous Exception. After a Tomcat restart the manager reload works very well. Here is the output error from the context log: 2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager: init: Associated with Deployer 'XXX' 2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager: init: Global resources are available 2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager: restart: Reloading web application at '/' 2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager: ManagerServlet.reload[/] java.lang.IllegalStateException: removeAttribute: Session already invalidated at org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1147) at org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1122) at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1405) at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:902) at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:539) at org.apache.catalina.session.StandardManager.unload(StandardManager.java:485) at org.apache.catalina.session.StandardManager.stop(StandardManager.java:687) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4496) at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3037) at org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:1014) at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:330) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Thanks a lot, now i've to restart Tomcat in any change made to the contexts, and is no good in production. Any help is greatly appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,
Re: Looking for a few good books
Sorry, i'm a little confused. El jue, 30-12-2004 a las 20:13, apuerta.foros escribió: Hi. I have some servers with Apache2 + Tomcat5, with some virtual hosts inside. The servers are in production and nothing is reloaded. I've installed the Tomcat Manager to reload those virtual hosts that suffers changes from preproduction. The problem is that many times the reload fails with that error: Session already invalidated and the context goes down, only that context. Seems that this error appears when the context suffers any previous Exception. After a Tomcat restart the manager reload works very well. Here is the output error from the context log: 2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager: init: Associated with Deployer 'XXX' 2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager: init: Global resources are available 2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager: restart: Reloading web application at '/' 2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager: ManagerServlet.reload[/] java.lang.IllegalStateException: removeAttribute: Session already invalidated at org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1147) at org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1122) at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1405) at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:902) at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:539) at org.apache.catalina.session.StandardManager.unload(StandardManager.java:485) at org.apache.catalina.session.StandardManager.stop(StandardManager.java:687) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4496) at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3037) at org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:1014) at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:330) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Thanks a lot, now i've to restart Tomcat in any change made to the contexts, and is
Re: /manager for the webs
Each webapps would need to be under it's own virtual Host. On Thu, 2004-12-30 at 14:05, Lukas Pataki wrote: hi On Thu, 30 Dec 2004 13:53:42 -0500 Ben Souther [EMAIL PROTECTED] wrote: I believe, and someone will correct me if I'm wrong, you can have one manager for each host entry in your server.xml. so maybe i missunderstood the manager-howto: cite: If you have Tomcat configured to support multiple virtual hosts (websites) you would need to configure a Manager for each. .luke On Thu, 2004-12-30 at 13:51, Lukas Pataki wrote: hi List is there a way to set up the manager for each webs, so that the user can start or stop their Webapplication easily thru the web ? thanx.luke - 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: /manager for the webs
Each webapps would need to be under it's own virtual Host. Sorry, each context would need to be under it's own virtual host. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: anyone know where mod_jk-1.2.8 binary is?
Did you try to Google it. Glenn Parsons wrote: Hello All, The Apache.org site says the binary is there. But when you go to retrieve it, all that is offered is 1.2.6. http://jakarta.apache.org/site/binindex.cgi I need the 1.2.8 binary to use JKUnmount, and now I'm chasing my tail to install Ant, then it appears that my build.properties for mod_jk wants a path to source(?) in my Jakarta/Tomcat directory, which was installed, binary (/home/jakarta-tomcat-5.5.4/build). Any help appreciated. Thanks, Glenn -- This message has been scanned for viruses and dangerous content by *MailScanner* http://www.sng.ecs.soton.ac.uk/mailscanner/, and is believed to be clean. Configuration by dnasadmin-at-1bigthink.com -- Glenn Parsons - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Looking for a few good books
O'Reilly is the 1 I've used and like. -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 10:02 AM To: Tomcat Users List Subject: Looking for a few good books I am in need of some good books for developing solid JSP code. There are a ton of books out there but I am hoping that this group has a few favorites. What I need is a book that describes how to organize a JSP Tomcat site. Describes how to compile code into servlets. As well as include those classes into JSP script. Ideally these classes should be stored in a location that can be used by all sites. Any help is greatly appreciated. Thank You Charles Killmer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: anyone know where mod_jk-1.2.8 binary is?
At 02:38 PM 12/30/2004, you wrote: Did you try to Google it. Glenn Parsons wrote: Hello All, The Apache.org site says the binary is there. But when you go to retrieve it, all that is offered is 1.2.6. http://jakarta.apache.org/site/binindex.cgi I need the 1.2.8 binary to use JKUnmount, and now I'm chasing my tail to install Ant, then it appears that my build.properties for mod_jk wants a path to source(?) in my Jakarta/Tomcat directory, which was installed, binary (/home/jakarta-tomcat-5.5.4/build). Any help appreciated. Thanks, Glenn Yep. Been dere done dat! First hit is to the link I gave above, though! Lot o' good that did me. I can't compile this thing. Too many steps missing from the docs for the clueless. Though, I'm not entirely clueless; I know enough to be dangerous enough to try it! Any other help kindly appreciated! -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. http://www.sng.ecs.soton.ac.uk/mailscanner/ Configuration by Glenn Parsons dnsadmin-at-1bigthink.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disabling all but the production context
Hi Tim, Thanks for your reply, I did what you said, however, when I try to load the page now it gives the following error: description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Could not evaluate condition: ${request.remoteAddress ne '127.0.0.1'} net.funkman.servletutil.filter.ConditionFilter.canDoFilter(ConditionFilt er.java:127) net.funkman.servletutil.filter.ConditionFilter.doFilter(ConditionFilter. java:79) root cause javax.servlet.jsp.el.ELException: Unable to find a value for remoteAddress in object of class org.apache.coyote.tomcat5.CoyoteRequestFacade using operator . org.apache.commons.el.Logger.logError(Logger.java:481) org.apache.commons.el.Logger.logError(Logger.java:498) org.apache.commons.el.Logger.logError(Logger.java:611) org.apache.commons.el.ArraySuffix.evaluate(ArraySuffix.java:340) org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145) org.apache.commons.el.BinaryOperatorExpression.evaluate(BinaryOperatorEx pression.java:154) org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluat orImpl.java:263) org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluat orImpl.java:190) net.funkman.servletutil.el.ElEvaluator.evaluate(ElEvaluator.java:62) net.funkman.servletutil.el.ElEvaluator.evaluateBoolean(ElEvaluator.java: 47) net.funkman.servletutil.filter.ConditionFilter.canDoFilter(ConditionFilt er.java:121) net.funkman.servletutil.filter.ConditionFilter.doFilter(ConditionFilter. java:79) Any idea what I could do? I read the JavaDocs on your site, but I couldn't find the answer there. Thanks, Jonck On Dec 30, 2004, at 8:06 PM, Tim Funk wrote: The easiest thing to do is to create/add a filter for the webapps which perform the ACL controls you need. For example: I have some utilities called servlet utils here: http://funkman.home.comcast.net/servletutils-0.2/ The following example returns 403 for any request where the remoteaddress != 127.0.0.1 filter filter-nameGoAwayFilter/filter-name filter-classnet.funkman.servletutil.filter.ErrorFilter/filter- class init-param param-nameerrorMessage/param-name param-valueGo away!/param-value /init-param init-param param-nameerrorCode/param-name param-value403/param-value /init-param init-param param-namecondition/param-name param-value${request.remoteAddress ne '127.0.0.1'}/param-value /init-param /filter filter-mapping filter-nameGoAwayFilter/filter-name url-pattern/*/url-pattern /filter-mapping Just inject the snippet above into your web.xml. -Tim Jonck van der Kogel wrote: Hi, This must get asked all the time, but I've searched very intently and have not been able to find how to do this. What I would like, is that the only reachable context on my server is the production context. So let's say my domain is www.example.com, and my web-app can be reached at www.example.com/business/servlet1, I would like the latter to be the only thing reachable. So if someone goes to www.example.com they should not get anything returned. However, I would like these to be reachable for anyone on localhost. Now the documentation tells me the way to do this is by adding a Valve element to a Context. The help I could find on the Internet is mostly for Tomcat 4.0 and there they refer to the contexts being located in server.xml. I'm using 5.0.28 however, and in the server.xml file there are no Context elements. I know the Contexts for the Manager and Admin app can be found at $CATALINA_HOME/conf/Catalina/localhost/ , so there I've added appropriate Valve elements to the manager and admin xml files. But I can't find the Contexts for the Welcome Page or the Examples. Could someone please tell me how I restrict access the Welcome Page and the Examples? - 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: RES: Apache and Tomcat VirtualHost Config Problem
Does anyone know how to do what he is suggesting? What lines should be inserted or edited in these files to differentiate the requests for jsp for each virtual host? Or does anyone know any better documentation that explains how to do this? From: Roberto Rios [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Aphra Behn' [EMAIL PROTECTED] Subject: RES: Apache and Tomcat VirtualHost Config Problem Date: Thu, 30 Dec 2004 10:59:16 -0200 Hi, Looking into your apache config, every jsp request that arrives to it will be forwarded to ajp13:localhost:8009. In your tomcat config you are telling to tomcat that every request that arrives for www.home.net or localhost or www or 10.0.0.10 will be handled by the application in /opt/jakarta-tomcat-5.0.28/webapps/home. So, the application in /opt/jakarta-tomcat-5.0.28/webapps/sample will NEVER be reached... I'm not an expert, but I think that the only way to do what you want, is doing some kind of differentiation between the requests for home and sample. Doing this, apache will be able to know to each tomcat host forward the requests. Bob -Mensagem original- De: Aphra Behn [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 29 de dezembro de 2004 23:55 Para: tomcat-user@jakarta.apache.org Assunto: Apache and Tomcat VirtualHost Config Problem Hi, I am currently using Apache httpd 2.0.52, Tomcat 5.0.28 and mod_jk2 configured with workers2.properties and so that tomcat can listen to apache requests. I want Apache httpd to serve static files and Tomcat to serve dynamic files (ex. jsp's). This all works fine if I have all dynamic files located on the url as www.mysite.com/home/file.jsp However, I cannot seem to get the dynamic files to work properly if I want them to be at the same location on the url as the static files so that www.mysite.com/file.jsp (served by Tomcat as requested by Apache httpd) and www.mysite.com/index.htm (served by Apache httpd) coexist without any problems. I did come up with a config that works partially for jsps at www.mysite.com/file.jsp but there are some problems. This is the main problem: Eventhough I am able to access all the jsp page inside CATALINA_HOME/webapp/home, I am no longer able to access any jsp page inside other directory such as CATALINA_HOME/webapp/sample directory. I have included all relevant config settings below this paragraph. What can I do diffrently so that Apache can make a direct request to both CATALINA_HOME/webapp/home and CATALINA_HOME/webapp/sample instead of just one? It seems to me that with my original setting (above mentioned as www.mysite.com/home/file.jsp), requests from Apache will start from CATALINA_HOME/webapp and start going through different directory and display it through the url each time it enter a subdirectory. However, with my current setting, instead of starting at CATALINA_HOME/webapp, I just start at CATALINA_HOME/webapp/home, so eventhough I make a request from www.mysite.com, home does not show up anymore, but that also makes it impossible to access files from a directory such as CATALINA_HOME/webapp/sample. What kind of configuration do I need to make Apache access a jsp page from Tomcat without showing up a long url path but instead just something like www.mysite.com/file.jsp no matter which folder the jsp page is located inside tomcat? Here are the relevant config lines: --- 1)Inside server.xml, I enter the following: Host name=www.home.net debug=0 appBase=/opt/jakarta-tomcat-5.0.28/webapps/home unpackWARs=true autoDeploy=true Aliaslocalhost/Alias Aliaswww/Alias Alias10.0.0.10/Alias Context path= docBase= debug=1/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=home_access_log. suffix=.txt pattern=common resolveHosts=false/ /Host Host name=www.root.net debug=0 appBase=/opt/jakarta-tomcat-5.0.28/webapps/sample unpackWARs=true autoDeploy=true Context path= docBase= debug=1/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=cust2_log. suffix=.txt pattern=common resolveHosts=false/ /Host 2) Inside worker2.properties, I include the following: uri:www.home.net/*.jsp] worker=ajp13:localhost:8009 [uri:www.sample.net/*.jsp] worker=ajp13:localhost:8009 3) Inside httpd.conf, I include the following: VirtualHost 10.0.0.10:80 DocumentRoot /usr/local/httpd-2.0.52/htdocs/www.mysite.com ServerName www.mysite.com Location /*.jsp JkUriSet worker ajp13:localhost:8009 /Location /VirtualHost --- If anybody knows of a great source of
Re: anyone know where mod_jk-1.2.8 binary is?
I hope the links below help. http://apache.planetmirror.com.au/dist/jakarta/tomcat-connectors/jk/binaries/win32/ http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/linux/jk-1.2.6/ http://archive.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/ http://ftp.solace.mh.se/pub/mirrors/www.apache.org/jakarta/tomcat-connectors/jk/binaries/win32/?C=N;O=D Glenn Parsons wrote: At 02:38 PM 12/30/2004, you wrote: Did you try to Google it. Glenn Parsons wrote: Hello All, The Apache.org site says the binary is there. But when you go to retrieve it, all that is offered is 1.2.6. http://jakarta.apache.org/site/binindex.cgi I need the 1.2.8 binary to use JKUnmount, and now I'm chasing my tail to install Ant, then it appears that my build.properties for mod_jk wants a path to source(?) in my Jakarta/Tomcat directory, which was installed, binary (/home/jakarta-tomcat-5.5.4/build). Any help appreciated. Thanks, Glenn Yep. Been dere done dat! First hit is to the link I gave above, though! Lot o' good that did me. I can't compile this thing. Too many steps missing from the docs for the clueless. Though, I'm not entirely clueless; I know enough to be dangerous enough to try it! Any other help kindly appreciated! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How Do I Install A Valve
Through some trial and error, I solved the problem. The class file apparently needs to be under CATALINA_HOME/server/classes. If one bundles it into a jar file, the jar needs to be in CATALINA_HOME/server/lib. I'm real new to Tomcat, so I don't know if this is really the place to put it. Is there anyone who can advice on best practices? Is there a better (or another) place to put this valve? Thanks, - Mark Mark Anderson wrote: Hi. I've written a Valve that I will configure inside the Engine element in server.xml. I've made my valve class part of the org.apache.catalina.valves package. My questions is this: Where to I put the class file so that Tomcat can use it? (I'm using Tomcat 5.0.27.) - Mark - 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: How Do I Install A Valve
To begin with, unless you are planning to submit your valve as a patch for inclusion, I wouldn't recommend putting it in org.apache.anything. Since Valves run inside the server, not inside the web app, they need to be in the server classpath. You can either do what you did or edit catalina.properties. -Original Message- From: Mark Anderson [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 4:48 PM To: Tomcat Users List Subject: Re: How Do I Install A Valve Through some trial and error, I solved the problem. The class file apparently needs to be under CATALINA_HOME/server/classes. If one bundles it into a jar file, the jar needs to be in CATALINA_HOME/server/lib. I'm real new to Tomcat, so I don't know if this is really the place to put it. Is there anyone who can advice on best practices? Is there a better (or another) place to put this valve? Thanks, - Mark Mark Anderson wrote: Hi. I've written a Valve that I will configure inside the Engine element in server.xml. I've made my valve class part of the org.apache.catalina.valves package. My questions is this: Where to I put the class file so that Tomcat can use it? (I'm using Tomcat 5.0.27.) - Mark - 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]
NOT REALLY SOLVED..BUT! anyone know where mod_jk-1.2.8 binary is?
At 04:31 PM 12/30/2004, you wrote: I hope the links below help. http://apache.planetmirror.com.au/dist/jakarta/tomcat-connectors/jk/binaries/win32/ http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/linux/jk-1.2.6/ http://archive.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/ http://ftp.solace.mh.se/pub/mirrors/www.apache.org/jakarta/tomcat-connectors/jk/binaries/win32/?C=N;O=D Glenn Parsons wrote: At 02:38 PM 12/30/2004, you wrote: Did you try to Google it. Glenn Parsons wrote: Hello All, The Apache.org site says the binary is there. But when you go to retrieve it, all that is offered is 1.2.6. http://jakarta.apache.org/site/binindex.cgi I need the 1.2.8 binary to use JKUnmount, and now I'm chasing my tail to install Ant, then it appears that my build.properties for mod_jk wants a path to source(?) in my Jakarta/Tomcat directory, which was installed, binary (/home/jakarta-tomcat-5.5.4/build). Any help appreciated. Thanks, Glenn Yep. Been dere done dat! First hit is to the link I gave above, though! Lot o' good that did me. I can't compile this thing. Too many steps missing from the docs for the clueless. Though, I'm not entirely clueless; I know enough to be dangerous enough to try it! Any other help kindly appreciated! Solving my own problem: I managed to get this beast compiled. Through some ugly trial and error, flogging it with apxs and some Apache src. It only ate half my day! I never specified that I needed the binary for Linux. The link for the supposed 1.2.8 binary leads to a list of distros.. the Linux directory contains only the 1.2.6 binary. It's been that way since I installed my last connector almost a month ago. Thanks for you help Dwayne! -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. http://www.sng.ecs.soton.ac.uk/mailscanner/ Configuration by Glenn Parsons dnsadmin-at-1bigthink.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ANN: Tomcat for RiA (Rich Internet Application) example live.
check out boardVU.com (only in IE for now). Tomcat is hosting Hessian + iBatis as services to JNLP for JDNC (RiA) application at above. So ... tomcat does not have to be just browser dhtml apps (try that PHP!) .V -- RiA-SoA w/JDNC http://www.SandraSF.com forums - help develop a community My blog http://www.sandrasf.com/adminBlog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TC Drops bytes when client uses Chunked Encoding AND specifying Content-Length at the same time.
We are using TC 5.0.28 on JDK 1.4.2 We have a client who POST to TC using header Transfer-encoding: chunked and at the same time specify the Content-Length header when posting to us. It seems that if the Content-Length is specified, TC is dropping the last few bytes..?? This same customer claims that his code works with the Jetty Servlet (which is the old embedded servlet in JBoss 3.2.1 and earlier). We have done some prelim testing and confirmed that a) if Content-Length is NOT specified and Chunked encoding is used, TC works as specified. b) Jetty works either way (with or without Content-Length). My questions are: 1. what is the correct behavior in HTTP 1.1? I've read through the spec but am unable to ascertain whether or not Content-Lenght should NOT be used when chunked encoding is used. 2. Is this a bug in TC? Unfortunately, our client isn't able to modify the code to NOT include the Content-Length or NOT use Chunk encoding Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session restart replication when using jsvc
Mark Thomas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Bill Barker wrote: This is the old, buggy, code that ships with Tomcat. You need to get the code from commons-daemon CVS HEAD if you want shutdowns (and restarts) to work properly. Bill, Just thinking ahead to the next 4.1.x release - do you know if there is a commons-daemon release that includes the necessary fixes or does it have to be CVS head? There has only been the c-d 1.0 release, so, yes, it has to be CVS HEAD. Cheers, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ANN: Tomcat for RiA (Rich Internet Application) example live. [OT]
Vic wrote: check out boardVU.com (only in IE for now). Tomcat is hosting Hessian + iBatis as services to JNLP for JDNC (RiA) application at above. So ... tomcat does not have to be just browser dhtml apps (try that PHP!) .V OT I do something similar. I have a package I wrote I call JMapMethods. It's easier than RMI and doesn't use SOAP like Axis, plus it's a lot easier than Axis, yet not as portable to remote applications considering I use serialized java objects, though it doesn't have to, which is nice...one could use something to serialize to XML and then other languages could use it. I made a map like class housing a HashMap underneith for the method call data. I have a client and a controller side. Every class has a client and a controller. The parameters are wrapped up in serialized maps and sent to the backend, and the return is always a JMapMethodData object. It's up to each client/controller combo to decide how best to know which method to call. I usually use Strings with method names in the map...just easier to debug. I thought about taking the framework and breaking out the specific bits and giving it to some open source. Anyways, the coolest part of it's design is that it's simple. It's secured with logins and interfaces and the works. Yet doesn't really have many complex pieces to get going with. One can take a base setup and have remote methods and local methods being called in minutes. The way the client and controller model is setup I have a LocalJMapMethodCaller and I also have an HttpJMapMethodCaller. The client uses the caller to make the method calls. JMapMethodCaller is an interface, so I guess you can see where I'm going with thatyou can write one application and run it stand alone or over the internet as long as you don't count on certain things likeobject references consistantly pointing to the same object. So, except for pieces that require file operations and threads it's all the same application. A simple test of whether or not if it's stand alone or internet based and you know if you have to send the file or large data to the backend. I built in zip capabilities, large multi-threaded/cross-server capabilites...the works all event driven for large operation watching. It's scalable basically. For instance, I have event handlers for a class which can zip and send a file to the backend. The directory can be a network drive it is stored on, and status is kept in a database. I call a method telling it what file to zip, where to send it, and to extract it. It does all of this automatically and my ui gets updated by a thread watching the event handler. So theirs another idea to go along with that type of a concept. Anyways, I hate browsers. They just don't have near as much functionality...like try to browse through a large list of data with a browser compared to a JTable...or try to manage a large amount of data remotely using a browser doing something like data entry or accounting...ick...I hate that. With java you can have a rich interface and still have a nice web appdeserialize the object and set parameters. It works like a charm. Maybe one day I'll actually get around to breaking it out enough so it can be a stand alone package and I can allow it to be used by others. If I do or don't...Java rulesof course don't forget you could always use SOAP, XML-RPC, or just use XML through PHP for the data and what not and do the same thing using a java front end for the PHP, or use ASP.net, ISAPI dlls, cgi (perl or C)...you name it. Though it makes more sense to use java on both ends:-P /OT Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I need to configure logs on my virtual hosting
Bob, Log files are not being created. I am specifying directory=logs\ in logger in context.xml. Does it matter? Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn -Original Message- From: Roberto Rios [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 5:51 PM To: 'Goel, Manish Kumar'; 'Tomcat Users List' Subject: RES: I need to configure logs on my virtual hosting Hi, Can you provide more details? Are you getting errors or the log files aren't being created? I always used logger inside my contexts and I never had problem. I never used TC5.0.19. I did an upgrade from TC4.1.30 to 5.0.28 and everything works well. Bob -Mensagem original- De: Goel, Manish Kumar [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 30 de dezembro de 2004 08:39 Para: Tomcat Users List; [EMAIL PROTECTED] Assunto: RE: I need to configure logs on my virtual hosting Hi, can any body help me this same thing not working on tomcat 5.0.19 version. Manish -Original Message- From: Roberto Rios [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 4:03 PM To: 'Amit Gupta'; 'Tomcat Users List' Subject: RES: I need to configure logs on my virtual hosting Hi, Yes, you can. Take a look at the admin context provided with tomcat (as an example): Context path=/admin docBase=${catalina.home}/server/webapps/admin debug=0 privileged=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_admin_log. suffix=.txt timestamp=true/ /Context Bob -Mensagem original- De: Amit Gupta [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 30 de dezembro de 2004 02:33 Para: Tomcat Users List; [EMAIL PROTECTED] Assunto: RE: I need to configure logs on my virtual hosting Hi Bob, I am using tomcat 5.0. I found that logger is used below tomcat 5.5.0. Can I use logger in context.xml in mywebapp/META-INF/context.xml? Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn -Original Message- From: Roberto Rios [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 8:30 PM To: tomcat-user@jakarta.apache.org Subject: RE: I need to configure logs on my virtual hosting Hi, Which tomcat version? For tomcat 4.X put a LOGGER component inside the context and specify the directory that you want. Take a look at (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html) This procedure works with TC 5.0.X, but it's deprecated. For TC 5.5, look at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html. Bob -Mensagem original- De: Amit Gupta [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 28 de dezembro de 2004 04:27 Para: Tomcat Users List Assunto: I need to configure logs on my virtual hosting Hi, I need to configure logs on my virtual hosting. How can I do it? Till now logs are created at global logs directory to which I don't have access. I need logs in my webapps directory. - 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] *** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - 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: RE: I need to configure logs on my virtual hosting
This email [EMAIL PROTECTED] is no longer available due to heavy spamming. Please visit our website http://www.alestron.com for contact info. Thank you! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: RE: I need to configure logs on my virtual hosting
This email [EMAIL PROTECTED] is no longer available due to heavy spamming. Please visit our website http://www.alestron.com for contact info. Thank you! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Monitoring Performance Tomcat 5.0.28
Hi: What would be the best way to monitor the performance of Tomcat - while in production? Apache HTTP server has an option that can view threads etc of a production web server. Does Tomcat have anything equivalent? On a separate note are there any kind of benchmarks on performance of Tomcat available online - i.e throughput, response times? It can be a challenge finding benchmarks that fits ones criterias - as there are a huge number of variables to consider. I was hoping to find one which had a study the base parameters. Have a Happy and Peaceful 2005. regards, Hari Mailvaganam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NOT REALLY SOLVED..BUT! anyone know where mod_jk-1.2.8 binary is?
Glenn Parsons wrote: Solving my own problem: I managed to get this beast compiled. Through some ugly trial and error, flogging it with apxs and some Apache src. It only ate half my day! Well, http://jakarta.apache.org/tomcat/connectors-doc/install/apache2.html States: [EMAIL PROTECTED] ~ $ ./configure --with-apxs=/opt/apache2/bin/apxs [EMAIL PROTECTED] ~ $ make [EMAIL PROTECTED] ~ $ make install I think that is missing only that you need to cd jk/native. (where the configure file is). Hardly half a day task ;), but I agree the docs can be (always) better. I never specified that I needed the binary for Linux. The link for the supposed 1.2.8 binary leads to a list of distros.. the Linux directory contains only the 1.2.6 binary. It's been that way since I installed my last connector almost a month ago. There are no official binaries for linux. Too many Linux kernels, libc's, apache servers, etc... Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]