Strange Problems with Tomcat and Apache
I'm having horrible experiences with Tomcat and Apache.When I run stress tools for my application , I face strange problems each day. The environment I've been using are jdk1.3.1,Tomcat3.2,Apache1.3.12 and jdbc driver for sql server 2000. The problems I'm facing are : 1. Tomcat crashes after 15-20 hrs of stress testing. 2. CPU utilization of Apache process goes to 100% after 4-5 hrs. 3. After 15 hrs , I could not access anything of website and log says Connection closed by Peer socket. 4. Cookie name Path is a reserved token exception. I'm facing any one of these problems each day. Should upgrading to higher versions of Apache and Tomcat will solve the problems. Please help. Regards Rajesh -Original Message- From: Rajesh Mishra Sent: Thursday, May 23, 2002 10:07 AM To: [EMAIL PROTECTED] Subject: Apcahe's CPU goes to 100% I'm using Apache1.3.12 and Tomcat3.2 for my application.After stress testing for 4 hours , CPU utilization of Apache.exe process goes to 100%. As a result when I try to access the website , I'm getting timeouts. But I could still access the website with tomcat port. Has anyone experienced this problem .I'm using mod_jk for this purpose Regards Rajesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Re[2]: reloading with ant
-Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 16:59 To: Tomcat Users List Subject: Re[2]: reloading with ant Hello John, I wouldn't mind see your working version even if it is copy/pasted. At least we know that it works and can extend from that example. Jake I've attached the build file, hope it's useful. For folk new to this thread, it's basically the same build file that comes in the sample app with Tomcat, but I've added tasks to: (a) deploy, remove and list web-apps, based on the catalina-ant.jar that comes with more recent builds of Tomcat. (b) archive src, docs, and war. (into a zip file - I've not implemented the targz target I mention in the comments). thanks, jake No problem. John -- John Niven Please reply through mailing list catalina-ant-build.xml Description: Binary data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Openssl
Does anyone know how to generate cert using openssl an apply to tomcat instead of keytool ?
startup and shutdown on Windows
Dear all I try to shutdown or restart the tomcat but no way , it give me the following error . There is no process running on 8080 nor process running on the shutdown port . I feel that this problem will be solved if i restart my machine , but i dont like to try this solution now. Any idea Thanks C:\Tomcat\jakarta-tomcat-4.0.3\binshutdown Using CATALINA_BASE: C:\Tomcat\jakarta-tomcat-4.0.3 Using CATALINA_HOME: C:\Tomcat\jakarta-tomcat-4.0.3 Using CATALINA_TMPDIR: C:\Tomcat\jakarta-tomcat-4.0.3\temp Using JAVA_HOME: c:\j2sdk1.4.0 Catalina.stop: java.net.ConnectException: Connection refused: connect java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148) at java.net.Socket.connect(Socket.java:425) at java.net.Socket.connect(Socket.java:375) at java.net.Socket.init(Socket.java:290) at java.net.Socket.init(Socket.java:118) at org.apache.catalina.startup.Catalina.stop(Catalina.java:831) at org.apache.catalina.startup.Catalina.execute(Catalina.java:683) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) C:\Tomcat\jakarta-tomcat-4.0.3\binshutdown Using CATALINA_BASE: C:\Tomcat\jakarta-tomcat-4.0.3 Using CATALINA_HOME: C:\Tomcat\jakarta-tomcat-4.0.3 Using CATALINA_TMPDIR: C:\Tomcat\jakarta-tomcat-4.0.3\temp Using JAVA_HOME: c:\j2sdk1.4.0 Catalina.stop: java.net.ConnectException: Connection refused: connect java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148) at java.net.Socket.connect(Socket.java:425) at java.net.Socket.connect(Socket.java:375) at java.net.Socket.init(Socket.java:290) at java.net.Socket.init(Socket.java:118) at org.apache.catalina.startup.Catalina.stop(Catalina.java:831) at org.apache.catalina.startup.Catalina.execute(Catalina.java:683) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) C:\Tomcat\jakarta-tomcat-4.0.3\bin
CPU goes to 100%
We are using Apache 1.3.12, Tomcat 4.0.1 and AJP13 connector for our servlet application. After stress testing, java.exe process takes all CPU time and CPU Usage goes to 100%. Memory usage grows up as well and we have to restart a tomcat in order to continue working. Any help will be appreciated. Regards Irina -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: startup and shutdown on Windows
There is no process running on 8080 nor process running on the shutdown port . then it would seem that the server is already shutdown... what error message do you get when you call startup? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
??? Where's javax.servlet.* Source Code ???
Hello all, I'm using Tomcat v4.0.4 B3. Does anyone know where I can find the soure code for the javax.servlet.* classes? I thought they used to be distributed w/Tomcat source code but it seems those days are gone. Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: startup and shutdown on Windows
Thanks Chris for your pointer . it works well now , it was shutdown :))) Thanks - Original Message - From: Chris Campbell [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, May 23, 2002 11:30 AM Subject: RE: startup and shutdown on Windows There is no process running on 8080 nor process running on the shutdown port . then it would seem that the server is already shutdown... what error message do you get when you call startup? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat 4.0 + apache 1.3 + mod_ssl
Damn, these are GREAT!! Thanks, Jakarta Tomcat Newsgroup (@Basebeans.com) wrote: Subject: Re: tomcat 4.0 + apache 1.3 + mod_ssl From: Bruno V [EMAIL PROTECTED] === Here are some SSL explanations http://www.codesta.com/knowledge/technical/tomcat_warp_apache/page_01.jsp and in http://www.galatea.com/flashguides/ too I will try to keep it up to date on http://bruno.vernay.free.fr/HowTo/Apache-tomcat/bWebServer/references.html I guess that there are better place for this kind of info, but didn't find it. Maybe it should be on the Tomcat site to avoid an explosion of the mailing list ? By the way, the mailing list should be separated by installation configuration and web application ... if possible ... It's amazing how often this question come to the list. I wonder if I am right to post my same response every time ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Jason Barr Vendor Manager Thawte Tech Support www.thawte.com/cgi/support/contents.exe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
http status 500 internal error when loading localhost:8080
Hello all I have just installed Tomcat for the first time. Sorry if this question is lame. I can't seem to find the answer when I searched the archive. I have successfully started the Tomcat server. I am running it on windows 2000. I cannot load the index.jsp file at http://localhost:8080. So I changed the port to 8088 . . . still no joy. I have been at this all day searching for a solution in the archives. Here is the error message that I am getting: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown Source) at org.apache.catalina.core.StandardWrapper.allocate(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:376) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:518) at java.lang.Thread.run(Thread.java:484) root cause java.lang.NoSuchMethodError at org.apache.jasper.compiler.TldLocationsCache.processJars(Unknown Source) at org.apache.jasper.compiler.TldLocationsCache.(Unknown Source) at org.apache.jasper.EmbededServletOptions.(Unknown Source) at org.apache.jasper.servlet.JspServlet.init(Unknown Source) at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown Source) at org.apache.catalina.core.StandardWrapper.allocate(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at
SIGSEGV 11* segmentation violation
Hi, Im trying to run tomcat 3.3 on a freebsd 4.5 box with jdk1.2.2 running. When i run sh tomcat.shs start i get SIGSEGV 11* segmentation violation. WHat do u thinks its causing this i read thru the archive email regarding this stuff i followed thier siggestion on double checking my PATH and CLASSPATH. What do u think?Did i miss something along the way please helpThank you in advance jmer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: os x/unix
Try apple's developer web site: http://developer.apple.com/internet/macosx/tomcat1.html On 23/5/02 1:49 am, Oki DZ [EMAIL PROTECTED] wrote: On 05/23 03:56 daniel bleich wrote: I am trying to find help online on installing Tomcat on Mac OS X. I must have made a mistake in trying to install it originally and need to remove the jakarta-tomcat-4.0.3-src directory from the users dir so I can try and start again. Why did you get the source? If all you need is just to run Tomcat (and build some webapps), I believe getting the binary would be much easier; untar it, and have a /usr/local/tomcat/bin/catalina.sh start. I tried rmdir -r jakarta-tomcat-4.0.3-src but its somehow linked with root and it wont give me permission, even when I log in as the administrator. Any help as to where I should direct this question would be must appreiciated. Thanks. With administrator, you meant root, right? Well, maybe there were some files that had the r flag removed. To remove the directory, just login to root and cd to where the jakarta-tomcat-4.0.3-src directory resides and rm -rf jakarta-tomcat-4.0.3-src. BTW, isn't Tomcat package available for OS X? Oki -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Memory Realm
Hi all Can any one send to me a sample portion of server.xml that configure memory realm for a context and the associated tomcat-users.xml ? Thanks in advance
RE: Use Worker MPM with mod_webapp
I got same case for Apache2.0.36. I find that if I made every requests with 1 second interval, all requests can be finished. However if I change it to about 100 ms, the request fails with the error_log stating the MaxClient exceeds. Do someone has tried tuning up Apache using worker MPM and successfully integrate with Tomcat in Solaris Environment? Thx. and Regards. Steve. -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 1:54 PM To: Tomcat Users List Subject: Re: Use Worker MPM with mod_webapp Does mod_webapp work well with Worker MPM?? I find no problem when I am using prefork MPM but return code to be 500 when I am using worker MPM. My config is Apache2.0.35, mod_webapp built from jakarta-tomcat-connector-src, jdk1.3.1, Solaris8. OS: Tru64 UNIX 4.0D (Digital UNIX or DEC OSF/1) Apache 2.0.36 worker MPM mod_webapp from jakarta-tomcat-connectors-4.0.2-01-src built using GCC 3.0 Working like a charm. With 2.0.35 I couldn't get a connection. Tomcat side would yell Premature end of header and Apache would log [crit] listener thread didn't exit. 2.0.36 works without hickups. Does anyone know what are leader and threadpool MPMs? They appear in ./configure, but no docs. Nix. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: ??? Where's javax.servlet.* Source Code ???
On Thu, 23 May 2002 03:26:06 -0500 Tony LaPaso [EMAIL PROTECTED] wrote: Hello all, I'm using Tomcat v4.0.4 B3. Does anyone know where I can find the soure code for the javax.servlet.* classes? Should be in a file called servlet.jar or servlet_*.jar or something ... Look in ${TOMCAT_HOME}/common/lib/ subdirectory Yours, Haakon Hansen, Norway -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat won't start.
Hi there I installed Tomcat 4.0.3 on my Windows 2000 machine. I do not have Apache Web Server installed. I have JDK1.3.1. I have the relevant environment variables set accordingly. Tomcat won't start when I start the Tomat Service. I check the stdout.log file and get the following error below: Can somebody please help me in resolving the reason why I am getting this and how I can get Tomcat to start and run?This is very urgent that I get this going. Thanks ~Glen Create Catalina server Exception during startup processing java.lang.reflect.InvocationTargetException: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl could not be instantiated: java.lang.SecurityException: sealing violation at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:141) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:224) at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:189) at org.apache.catalina.startup.CatalinaService.execute(CatalinaService.java:171 ) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:428) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Use Worker MPM with mod_webapp
On Thu, May 23, 2002 at 10:49:53AM +0800, Steve Wong wrote: Does mod_webapp workwell with Worker MPM?? I find no problem when I am using prefork MPM but return code to be 500 = when I am using worker MPM. My config is Apache2.0.35, mod_webapp built from = jakarta-tomcat-connector-src, jdk1.3.1, Solaris8. I use the worker mpm on Linux, as well as Apache 2 and mod_webapp. It works for me What do the apache logs say? Cheers, Simon -- If You Can't Live Without Me, Why Aren't You Dead? My Life Story. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat won't start.
Hi Barbara, I am using tomcat 4.0.3 full, not the LE one. ~Glen Hi Glen, I guess you have tomcat4.0.3 LE. This version of Tomcat does not include an XML Parser since it is designed for use with jdk1.4 (jdk1.4 has an XML Parser included). If I am right, the solution is: Get the other Tomcat edition (not the lightweight one). regards, Barbara Tomcat won't start when I start the Tomat Service. I check the stdout.log file and get the following error below: Can somebody please help me in resolving the reason why I am getting this and how I can get Tomcat to start and run?This is very urgent that I get this going. Thanks ~Glen Create Catalina server Exception during startup processing java.lang.reflect.InvocationTargetException: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl could not be instantiated: java.lang.SecurityException: sealing violation at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:141) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:224) at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:189) at org.apache.catalina.startup.CatalinaService.execute(CatalinaService.java:171 ) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:428) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
http status 500 internal error when loading localhost:8080
Hello all . . . Found this in the log file. Don't know what it means . . . does anyone else out there understand? 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path /webdav 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path /tomcat-docs 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path /admin 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path /manager 2002-05-23 08:55:51 NamingContextListener[/Standalone/localhost/manager]: Failed to unbind object: javax.naming.NameNotFoundException: Name users is not bound in this Context 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path -Original Message- From: Lynne Gurney [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 09:32 To: [EMAIL PROTECTED] Subject: http status 500 internal error when loading localhost:8080 Hello all I have just installed Tomcat for the first time. Sorry if this question is lame. I can't seem to find the answer when I searched the archive. I have successfully started the Tomcat server. I am running it on windows 2000. I cannot load the index.jsp file at http://localhost:8080. So I changed the port to 8088 . . . still no joy. I have been at this all day searching for a solution in the archives. Here is the error message that I am getting: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown Source) at org.apache.catalina.core.StandardWrapper.allocate(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:376) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:518) at java.lang.Thread.run(Thread.java:484) root cause java.lang.NoSuchMethodError at org.apache.jasper.compiler.TldLocationsCache.processJars(Unknown Source) at org.apache.jasper.compiler.TldLocationsCache.(Unknown Source) at org.apache.jasper.EmbededServletOptions.(Unknown Source) at org.apache.jasper.servlet.JspServlet.init(Unknown Source) at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown Source) at org.apache.catalina.core.StandardWrapper.allocate(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at
Tomcat security Guidelines and Checklist
Dear All We are going to install tomact 4 under Windows2000 servers in the production servers . So what is the security checklist should I follow to secure Tomcat ? Thanks in Advance Waiting your reply
Re: ??? Where's javax.servlet.* Source Code ???
The Servlet API src is not distributed with Tomcat. You can download it from: http://jakarta.apache.org/builds/jakarta-servletapi-4/nightly/src/ -prabhakar Does anyone know where I can find the soure code for the javax.servlet.* classes? I thought they used to be distributed w/Tomcat source code but it seems those days are gone. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help Required for Session Problem
Hi, We are developing a Web based JSP application which is running on Apache 1.3.20 + Tomcat 3.2.2 + Jdk1.3.1 + Windows NT 4.0. We are facing a session related problem in our application. The problem is as follows: The application creates a session for each user during the time of logging and set to a maximum inactive interval of 8 hours. Each option in our application validates the session object during the form loading and sends it to the login screen if the session is a new object. We found after an intensive test that without calling an 'invalidate()' or 'removeAttribute()' randomly existing session objects expires and new object is automatically created. We would like your help to know, 1) what are the possible reasons for a session object to expire automatically? 2) Has tomcat any limitations on the number of threads or user request for a single context? 3) Can any internal exceptions cause the session object to be killed? Thanks in advance Regards H.Rajesh [EMAIL PROTECTED] SoftSolutions Pvt Ltd, Chennai India -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Connection Pool Configuration OT!!
Hi, D Watson wrote: BTW, which version of WS are you using? WebSphere 4.0 on a Sun Enterprise, with Solaris 8. Fabio. -- Fabio Mengue - Centro de Computacao - Unicamp [EMAIL PROTECTED] [EMAIL PROTECTED] Quem se mata de trabalhar merece mesmo morrer. - Millor -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
mod_jk.conf not generated on startup (Tomcat3.3.1, RH Linux)
Hi, hope someone can give me some advice on this: I'm currently setting up Tomcat3.3.1, Apache 1.3 on Redhat linux 7.2 with mod_jk I'm trying to generate the mod_jk.conf-auto file. Trying to generate it on startup from the command line($/etc/tomcat3/tomcat3 start jkconf) did'nt work so I edited server.xml as follows: ContextManager workDir=/var/spool/tomcat3 jkconf=true Tomcat now tries to generate the file, and has created the /etc/tomcat3/conf/auto directory ok, but I get the following errors while Tomcat is starting: java.lang.RunTimeException:Unable to create path to config file: /etc/tomcat3/logs/mod_jk.log - i.e the path is defaulting to TOMCAT_HOME. and then a couple more similar ones related to IIS and netscape webserver log files. I installed from an RPM. I've tried specifying the Tomcat log directory in server.xml as follows: ApacheConfig noRoot=true jkLog=/usr/logs/tomcat3/mod_jk.log jkDebug=true / I've also commented out the lines for IIS and the netscape server in server.xml, which at least stopped those errors, now I just have the mod_jk.log one. Here's the StackTrace: ApacheConfig: Error generating automatic apache configuration java.lang.RuntimeException: Unable to create path to config file :/usr/logs/tomc at3/mod_jk.log at org.apache.tomcat.util.io.FileUtil.getConfigFile(FileUtil.java) at org.apache.tomcat.modules.config.ApacheConfig.initProperties(ApacheCo nfig.java) at org.apache.tomcat.modules.config.ApacheConfig.execute(ApacheConfig.ja va) at org.apache.tomcat.modules.config.BaseJkConfig.engineState(BaseJkConfi g.java) at org.apache.tomcat.core.ContextManager.setState(ContextManager.java) at org.apache.tomcat.core.ContextManager.init(ContextManager.java) at org.apache.tomcat.startup.EmbededTomcat.initContextManager(EmbededTom cat.java) at org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java) at org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java) at org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12S upport.java) at java.security.AccessController.doPrivileged(Native Method) at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support. java) at org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils. java) at org.apache.tomcat.startup.Main.execute(Main.java) at org.apache.tomcat.startup.Main.main(Main.java) Would I be better off trying to compile mod_kj from source? The only other thing I can think of is that the tomcat3 user (wich Tomcat is started by) doesn't have rights to create directories here - although Tomcat created the /etc/tomcat3/conf/auto directory so I suppose the tomcat3 user must have the correct permissions to write here. I hope somebody out there has had the same problem and found a fix! Thanks Paul _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
mime-types?
Hi! I'm using tomcat 3.3.1! I have 2 pictures: pic1.gif pic1.png When I use these pics in html (e.g.: img src=pic1.png) both pics are displayed correctly! BUT when I access the pics' URL directly, I see the gif correct, but instead of the png-image, I see the png's raw data displayed in my browser (I tried with MSIE, NS4, NS6, Opera, Konqueror)! what is happening??? thanks michi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat on Windows2000 as a service
Check your %JAVA_HOME%\jre\bin\ directory - you may not have a classic directory in it, you may have hotspot directory instead (and I think there are other possibilities, instead of classic/hotspot?) My Answer : -- I have no hotspot nor classic directory in %JAVA_HOME%\jre\bin\ , I have 2 folders called server and client contains the jvm.dll , I used the server directory . If that doesn't work, I'd check that CATALINA_HOME and JAVA_HOME are set correctly - from a command prompt My Answer : -- They are set correctly I found that %CATALINA_HOME%\logs\stderr.log is empty . And the service is exist in the control panel , but can not be started and give a message saying internal error upon restarting it!!! Here it is my command again : C:\Tomcat\jakarta-tomcat-4.0.3\bintomcat.exe -install ApacheTomcat %JAVA_HOME% \jre\bin\client\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%J AVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% -xrs -start org.apach e.catalina.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap - params stop -out %CATALINA_HOME%\logs\stderr.log The service was successfully installed. Any idea - Original Message - From: John Niven [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, May 22, 2002 3:43 PM Subject: RE: Tomcat on Windows2000 as a service -Original Message- From: Mohammed Omar [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 12:44 To: Tomcat Users List Subject: Re: Tomcat on Windows2000 as a service I made that and the service exist now and i can stop and start it , but i see that the stop and restart of the service has no effect on Tomcat , wen i call a servlet from IIS , it does not run untill I startup tomcat from its startup command in the bin directory whether the service started in the control panel or not . any idea!! Mohammed Check your %JAVA_HOME%\jre\bin\ directory - you may not have a classic directory in it, you may have hotspot directory instead (and I think there are other possibilities, instead of classic/hotspot?) If so, change the install line accordingly. (Before changing the install script and re-installing the Tomcat service, you'll first need to uninstall the service - use this: %CATALINA_HOME%\bin\tomcat.exe -uninstall ApacheTomcat ) If that doesn't work, I'd check that CATALINA_HOME and JAVA_HOME are set correctly - from a command prompt, type: echo %CATALINA_HOME% (expected response: path to Tomcat) echo %JAVA_HOME% (expected response: path to JDK) One final thing - you are running Tomcat 4+, aren't you? If you're running Tomcat 3 you'll need to replace CATALINA_HOME with TOMCAT_HOME - and there may be other changes required. Sorry, but the only times I've used Tomcat 3 in anger is on Solaris. thanks HTH! John -- John Niven Please reply through mailing list -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Enabling SSL in tomcat--specific questions
Thanks! I downloaded JDK1.4 and it worked like a charm too. I guess I'll never figure out what was causing my exception. Best regards! Aaron -Original Message- From: Oki DZ [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 7:06 PM To: Tomcat Users List Subject: Re: Enabling SSL in tomcat--specific questions On 05/23 03:14 Rutledge, Aaron wrote: If I am able to create a .keyfile, do I have JSSE installed correctly? I use JDK1.4 and Tomcat 4.0.3; it was all I needed to get SSL running. (And the .keystore file, of course, in the root's home directory; because I run Tomcat under root.) FYI, the certificate's passphrase has to be changeit. Oki -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
mod_jk apache-1.3.24 mass-hosting
Hello, I'm running apache-1.3.24 with mod_jk and my problem is, that tomcat-3.3.1 requires me to specify each virtualhost with docPath in an apps-*.xml file. But since I'm hosting several hunderts of virtualhosts, I don't want to generate a new .xml-file each time a change applies and restart tomcat. I mean: I would like to be able to call .jsp-scripts the same way I call .php and .pl-scripts. How can I do this without specifying each virtualhost in a xml.file? Does this work with the older mod_jserv or with a newer version of tomcat? Each virutalhost has it's own home directory, that means the autowebapp-tag doesn't work. Any ideas? Regards Marten Lehmann -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat on Windows2000 as a service
-Original Message- From: Mohammed Omar [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 13:55 To: Tomcat Users List Subject: Re: Tomcat on Windows2000 as a service Check your %JAVA_HOME%\jre\bin\ directory - you may not have a classic directory in it, you may have hotspot directory instead (and I think there are other possibilities, instead of classic/hotspot?) My Answer : -- I have no hotspot nor classic directory in %JAVA_HOME%\jre\bin\ , I have 2 folders called server and client contains the jvm.dll , I used the server directory . OK, I'm still on JDK1.2.2 - not used these but they sound right. I suspect server is the right one - anyone care to coment? If that doesn't work, I'd check that CATALINA_HOME and JAVA_HOME are set correctly - from a command prompt My Answer : -- They are set correctly OK. I found that %CATALINA_HOME%\logs\stderr.log is empty . And the service is exist in the control panel , but can not be started and give a message saying internal error upon restarting it!!! Here it is my command again : C:\Tomcat\jakarta-tomcat-4.0.3\bintomcat.exe -install ApacheTomcat %JAVA_HOME% \jre\bin\client\jvm.dll There seems to be a [space] between %JAVA_HOME% and \jre on the 2nd line...but I'm clutching at straws now. -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%J AVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% -xrs -start org.apach e.catalina.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap - params stop -out %CATALINA_HOME%\logs\stderr.log The service was successfully installed. One final thing: if you can't get this to work from the command line there's a product (Service+, I think) that will automate the process - I've not used it, but it's been mentioned on this list. Any idea Fast running out, I'm afraid! Good luck, John -- John Niven Please reply through mailing list -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.1.0 nightly build - problem deploying
Subject: Tomcat 4.1.0 nightly build - problem deploying From: Chris Miller [EMAIL PROTECTED] === I'm trying to deploy an app on the latest nightly build of Tomcat 4.1. Several of the WEB-INF/lib/*.jar files are not being deployed, and the error is the same for each one (shown below). Any ideas what is causing this? I assume that there's something wrong with the jar file, but I have no idea what that something is... What is Tomcat actually doing with the jar file at this point? Any help greatly appreciated! Thanks, Chris 2002-05-23 14:04:45 WebappLoader[]: Deploy JAR /WEB-INF/lib/oscache.jar to C:\mydocs\deploy\swebcms\bin\..\webapps\swebcms\WEB-INF\lib\oscache.jar ... 2002-05-23 14:04:45 WebappLoader[]: Reloading checks are enabled for this Context 2002-05-23 14:04:47 ContextConfig[] Exception processing JAR at resource path /WEB-INF/lib/oscache.jar javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/oscache.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(Unknown Source) at org.apache.catalina.startup.ContextConfig.tldScan(Unknown Source) at org.apache.catalina.startup.ContextConfig.start(Unknown Source) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(Unknown Source) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown Source) at org.apache.catalina.core.StandardContext.start(Unknown Source) at org.apache.catalina.core.ContainerBase.start(Unknown Source) at org.apache.catalina.core.StandardHost.start(Unknown Source) at org.apache.catalina.core.ContainerBase.start(Unknown Source) at org.apache.catalina.core.StandardEngine.start(Unknown Source) at org.apache.catalina.core.StandardService.start(Unknown Source) at org.apache.catalina.core.StandardServer.start(Unknown Source) at org.apache.catalina.startup.Catalina.start(Unknown Source) at org.apache.catalina.startup.Catalina.execute(Unknown Source) at org.apache.catalina.startup.Catalina.process(Unknown Source) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) - Root Cause - java.io.IOException: The system cannot find the path specified at java.io.Win32FileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1162) at java.io.File.createTempFile(File.java:1247) at java.io.File.createTempFile(File.java:1284) at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:143) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:138) at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:43) at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:81) at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:88) at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:7 2) at org.apache.catalina.startup.ContextConfig.tldScanJar(Unknown Source) at org.apache.catalina.startup.ContextConfig.tldScan(Unknown Source) at org.apache.catalina.startup.ContextConfig.start(Unknown Source) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(Unknown Source) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown Source) at org.apache.catalina.core.StandardContext.start(Unknown Source) at org.apache.catalina.core.ContainerBase.start(Unknown Source) at org.apache.catalina.core.StandardHost.start(Unknown Source) at org.apache.catalina.core.ContainerBase.start(Unknown Source) at org.apache.catalina.core.StandardEngine.start(Unknown Source) at org.apache.catalina.core.StandardService.start(Unknown Source) at org.apache.catalina.core.StandardServer.start(Unknown Source) at org.apache.catalina.startup.Catalina.start(Unknown Source) at org.apache.catalina.startup.Catalina.execute(Unknown Source) at org.apache.catalina.startup.Catalina.process(Unknown Source) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat on Windows2000 as a service
Thanks for your help I downloaded Jk_nt_service , it solved all problems. Thanks - Original Message - From: John Niven [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, May 23, 2002 4:24 PM Subject: RE: Tomcat on Windows2000 as a service -Original Message- From: Mohammed Omar [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 13:55 To: Tomcat Users List Subject: Re: Tomcat on Windows2000 as a service Check your %JAVA_HOME%\jre\bin\ directory - you may not have a classic directory in it, you may have hotspot directory instead (and I think there are other possibilities, instead of classic/hotspot?) My Answer : -- I have no hotspot nor classic directory in %JAVA_HOME%\jre\bin\ , I have 2 folders called server and client contains the jvm.dll , I used the server directory . OK, I'm still on JDK1.2.2 - not used these but they sound right. I suspect server is the right one - anyone care to coment? If that doesn't work, I'd check that CATALINA_HOME and JAVA_HOME are set correctly - from a command prompt My Answer : -- They are set correctly OK. I found that %CATALINA_HOME%\logs\stderr.log is empty . And the service is exist in the control panel , but can not be started and give a message saying internal error upon restarting it!!! Here it is my command again : C:\Tomcat\jakarta-tomcat-4.0.3\bintomcat.exe -install ApacheTomcat %JAVA_HOME% \jre\bin\client\jvm.dll There seems to be a [space] between %JAVA_HOME% and \jre on the 2nd line...but I'm clutching at straws now. -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%J AVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% -xrs -start org.apach e.catalina.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap - params stop -out %CATALINA_HOME%\logs\stderr.log The service was successfully installed. One final thing: if you can't get this to work from the command line there's a product (Service+, I think) that will automate the process - I've not used it, but it's been mentioned on this list. Any idea Fast running out, I'm afraid! Good luck, John -- John Niven Please reply through mailing list -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat on Windows2000 as a service
-Original Message- From: Mohammed Omar [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 14:32 To: Tomcat Users List Subject: Re: Tomcat on Windows2000 as a service Thanks for your help I downloaded Jk_nt_service , it solved all problems. OK, my turn to ask for _your_ help! What's jk-nt-service, and where can I find it - I've had more than my fair share of problems trying to install Tomcat as an NT service...! Thanks Best wishes John -- John Niven Please reply through mailing list -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Too Many Users
Dear All I get this message when browsing a site under tomcat Too Many Users There are too many connected users. Please try again later I received this message when i was refreshing the site pages very quickly , how i extend the number of concurrent user? or number of running processes ?!!! Thanks -- If there is any misunderstanding , please contact me at: Mohammed Omar Harf Information Technology (Cairo) Phone : (202)2759256 EXT: 320 Fax : (202)2759261 Mobile : +20101806319 Email: [EMAIL PROTECTED]
Re: Tomcat on Windows2000 as a service
You are welcome :-) go to : http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt It is very good , has the instructions and link to install Jk_nt_service . Thanks - Original Message - From: John Niven [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, May 23, 2002 4:41 PM Subject: RE: Tomcat on Windows2000 as a service -Original Message- From: Mohammed Omar [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 14:32 To: Tomcat Users List Subject: Re: Tomcat on Windows2000 as a service Thanks for your help I downloaded Jk_nt_service , it solved all problems. OK, my turn to ask for _your_ help! What's jk-nt-service, and where can I find it - I've had more than my fair share of problems trying to install Tomcat as an NT service...! Thanks Best wishes John -- John Niven Please reply through mailing list -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
MAPPING configuration error for request URI
I haven't seen any reply to this so I am still puzzled about this error. However, I tried starting up jboss and tomcat seperately and it worked - at least I am able to get to the localhost:8080 tomcat page. Can anyone shed some light on why this happens and why I get the MAPPING configuration error for request URI error? Mike -Original Message- From: Nelson, Mike Sent: Wednesday, May 22, 2002 4:14 PM To: 'Tomcat Users List' Subject: RE: MAPPING configuration error for request URI Sorry, I meant to say I get this error when I point my browser at http://localhost:8080 Mike -Original Message- From: Nelson, Mike Sent: Wednesday, May 22, 2002 4:12 PM To: '[EMAIL PROTECTED]' Subject: MAPPING configuration error for request URI I downloaded JBoss-2.4.4_Tomcat-4.0.1.zip, unpackaged, set my env vars (JAVA_HOME=c:\jdk1.3.1, TOMCAT_HOME=c:\apps\JBoss\catalina, SERVLETAPI_HOME=%TOMCAT_HOME%\common, CLASSPATH=%JAVA_HOME%\lib\tools.jar, PATH=%JAVA_HOME%\bin;%PATH%) and I get this error when executing the run_with_catalina.bat file. I saw some references to this error online, but I didn't see any resolutions. Can anyone tell me what this problem is and how to fix it? The rest of the error is below for reference: [INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING configuration error for request URI [ERROR,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] process.invoke java.lang.NullPointerException at org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve. java:280) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106 ) at java.lang.Thread.run(Thread.java:479) Thank You, Mike -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Too Many Users
change the maxprocessor setting in the server.xml file. peter lin Mohammed Omar wrote: Dear All I get this message when browsing a site under tomcat Too Many Users There are too many connected users. Please try again later I received this message when i was refreshing the site pages very quickly , how i extend the number of concurrent user? or number of running processes ?!!! Thanks -- If there is any misunderstanding , please contact me at: Mohammed Omar Harf Information Technology (Cairo) Phone : (202)2759256 EXT: 320 Fax : (202)2759261 Mobile : +20101806319 Email: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Too Many Users
What is the ideal number for it? and how i know how many processes my sites need to operate without showing this bad message for the visitors? Thanks - Original Message - From: peter lin [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, May 23, 2002 5:06 PM Subject: Re: Too Many Users change the maxprocessor setting in the server.xml file. peter lin Mohammed Omar wrote: Dear All I get this message when browsing a site under tomcat Too Many Users There are too many connected users. Please try again later I received this message when i was refreshing the site pages very quickly , how i extend the number of concurrent user? or number of running processes ?!!! Thanks -- If there is any misunderstanding , please contact me at: Mohammed Omar Harf Information Technology (Cairo) Phone : (202)2759256 EXT: 320 Fax : (202)2759261 Mobile : +20101806319 Email: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
increase performance dual processor board
Hi, is it possible to increase performance of tomcat using linux and a dual processor bord ? Günter Kukies
Mod Webapp?
Hey, since I couldn't find very much info about mod_jk, and was having problems, I decided to use mod_webapp to connect apache 1.3.23 and tomcat 4.0.3 (on a fresh install of redhat 7.0). it worked great when I first installed it, then I rebooted the box. tomcat starts fine, when I try to start apache it says: [Thu May 23 09:24:49 2002] 5323 (wa_main.c:77) WebApp Library initializing [Thu May 23 09:24:49 2002] 5323 (wa_main.c:81) Initializing APR [Thu May 23 09:24:49 2002] 5323 (pr_info.c:66) INFO provider initialized [Thu May 23 09:24:49 2002] 5323 (pr_warp.c:62) WARP provider initialized [Thu May 23 09:24:49 2002] 5323 (wa_main.c:101) WebApp Library initialized Syntax error on line 997 of /opt/apache/conf/httpd.conf: Cannot get socket address information ./apachectl start: httpd could not be started the relevant part of my httpd.conf is: LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp web5:8008 WebAppDeploy examples warpConnection /examples does anyone have any idea what the problem might be? what I am confused about is (as with mod_jk), the connector worked fine until I rebooted the box. Unfortunately , the error string I'm getting Cannot get socket address information turns up 0 hits on a usenet search, so I have no idea what the problem may be. has anyone even ever tried to get apache/tomcat4 working on redhat 7? I have asked a couple of questions on this list before and didn't get any responses. anyways, thanks in advance for any help/thoughts you may have. --paul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: increase performance dual processor board
only if it's got 2 processors ;-^) ROTFL Günter Kukies wrote: Hi, is it possible to increase performance of tomcat using linux and a dual processor bord ? Günter Kukies -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Mod Webapp?
Just a wild guess: Is web5 defined on your network (either in DNS or hosts file)? I have mod_webapp working between apache 2.0.36 and tomcat 4.0.3. If I change my configuration to specify an unknown host I get the same error you're seeing. Hope this helps -Jay -Original Message- From: Paul Sanwald [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 9:49 AM To: 'Tomcat Users List' Subject: Mod Webapp? Hey, since I couldn't find very much info about mod_jk, and was having problems, I decided to use mod_webapp to connect apache 1.3.23 and tomcat 4.0.3 (on a fresh install of redhat 7.0). it worked great when I first installed it, then I rebooted the box. tomcat starts fine, when I try to start apache it says: [Thu May 23 09:24:49 2002] 5323 (wa_main.c:77) WebApp Library initializing [Thu May 23 09:24:49 2002] 5323 (wa_main.c:81) Initializing APR [Thu May 23 09:24:49 2002] 5323 (pr_info.c:66) INFO provider initialized [Thu May 23 09:24:49 2002] 5323 (pr_warp.c:62) WARP provider initialized [Thu May 23 09:24:49 2002] 5323 (wa_main.c:101) WebApp Library initialized Syntax error on line 997 of /opt/apache/conf/httpd.conf: Cannot get socket address information ./apachectl start: httpd could not be started the relevant part of my httpd.conf is: LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp web5:8008 WebAppDeploy examples warpConnection /examples does anyone have any idea what the problem might be? what I am confused about is (as with mod_jk), the connector worked fine until I rebooted the box. Unfortunately , the error string I'm getting Cannot get socket address information turns up 0 hits on a usenet search, so I have no idea what the problem may be. has anyone even ever tried to get apache/tomcat4 working on redhat 7? I have asked a couple of questions on this list before and didn't get any responses. anyways, thanks in advance for any help/thoughts you may have. --paul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DataSources and JNDI
I'm trying to get the Microsoft SQL Driver to work in doing DataSources. It has a class called com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory, but I must not be getting the config right or something because it keeps returning Nulls out of the JNDI. server.xml: Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namefactory/name valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory/value /parameter parameter nameuser/name valuesa/value /parameter parameter namepassword/name valueremoved/value /parameter parameter namedatabaseName/name valueTestdatabasevalue /parameter parameter nameserverName/name valuemyserver/value /parameter parameter namePortNumber/name value1433/value /parameter /ResourceParams java Code: Context ctx = new InitialContext(); DataSource ds = (DataSource) ctx.lookup(java:/comp/env/jdbc/TestDB); Thanks for any help you can give. Adam Greene Team Leader ROMulin Group Inc Ph: (506) 863-1014 Fax: (506) 854-6886 http://www.romulin.com
mod_webapp speed
Hi, The transfer speed of apache+mod_webapp is 4 times slower than the tomcat HTTP Connector. Is this the normal case? It just feels very slow in my case. Apache 1.3.24 Tomcat 4.0.3 Solaris 8 Mike -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Too Many Users
that depends on the hardware you're using, the application and what you consider acceptable response time. I'm using tomcat 4.0.3, but there should be similar parameters in 3.3.1 Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=false redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ acceptCount: is the queue size if all the processors are busy maxProcessors: I would set this to 1.5-2 times the maximum you desire. other people prefer different settings. you'll have to play with it and figure out what setting is acceptable to you. my suggestion is to benchmark your application and decide what the acceptable response time is. once you know that, it's easier to tune the parameters. peter lin Mohammed Omar wrote: What is the ideal number for it? and how i know how many processes my sites need to operate without showing this bad message for the visitors? Thanks - Original Message - From: peter lin [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, May 23, 2002 5:06 PM Subject: Re: Too Many Users change the maxprocessor setting in the server.xml file. peter lin Mohammed Omar wrote: Dear All I get this message when browsing a site under tomcat Too Many Users There are too many connected users. Please try again later I received this message when i was refreshing the site pages very quickly , how i extend the number of concurrent user? or number of running processes ?!!! Thanks -- If there is any misunderstanding , please contact me at: Mohammed Omar Harf Information Technology (Cairo) Phone : (202)2759256 EXT: 320 Fax : (202)2759261 Mobile : +20101806319 Email: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
User to start Tomcat under
Hi there, I'm new to this list and have an operating practice question. Forgive me if this has been covered before. I'm running Tomcat on a Solaris platform and starting it out of init.d. Right now it is starting and running under the root user. Is this appropriate? Should I start it as a different user? Apache starts as root but then forks off the real processes as under the nobody user. It seems I might want to try to accomplish something similar for Tomcat. Thanks in advance for any help... _ Mark Annal e-mail: [EMAIL PROTECTED] TARGUSinfo phone : (585) 598-7011 255 Woodcliff Drive fax : (585) 598-7001 Fairport, NY 14450 web : www.targusinfo.com _ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Can't print in Tomcat 4
I have a program that prints report on server. It worked fine in Tomcat 3.2. But, after I upgraded to Tomcat 4.0.3, it does work anymore. I found that it stops at: PageFormat pf = job.defaultPage(); where job is PrinterJob job = PrinterJob.getPrinterJob(); Any idea that can make printing work with Tomcat 4? Many thanks Jack Li
Connection Pooling with Tomcat 4.0.3?
Hi there, we use tc4.0.3 and setup a datasource in server.xml. When meassuring the time to get a JDBC connection we get results between 100 and 1000 ms. I was expecting results like 5-50 ms. Is there any connection pooling enabled at all? Do I need to do some additional configurations than specified in the docs? How can I tweak the pool size? What connection pool is used by default? Cheers, Mariano -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Expanding WARS in webapps/ROOT
Can anybody tell me how to get a war file to expand in the webapps/ROOT directory. Thanks Donie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Expanding WARS in webapps/ROOT
Name it ROOT.war and store it in the webapps dir. ~~K -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 11:55 AM To: 'Tomcat Users List' Subject: Expanding WARS in webapps/ROOT Can anybody tell me how to get a war file to expand in the webapps/ROOT directory. Thanks Donie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Mod Webapp?
i agree with Jay that web5 definitely has to exist but also i think you have to add the webapp module after you've loaded it - put the line AddModule mod_webapp.c with all the other AddModules in the conf file hope that helps steven On 23/5/02 2:57 pm, Paulsen, Jay [EMAIL PROTECTED] wrote: Just a wild guess: Is web5 defined on your network (either in DNS or hosts file)? I have mod_webapp working between apache 2.0.36 and tomcat 4.0.3. If I change my configuration to specify an unknown host I get the same error you're seeing. Hope this helps -Jay -Original Message- From: Paul Sanwald [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 9:49 AM To: 'Tomcat Users List' Subject: Mod Webapp? Hey, since I couldn't find very much info about mod_jk, and was having problems, I decided to use mod_webapp to connect apache 1.3.23 and tomcat 4.0.3 (on a fresh install of redhat 7.0). it worked great when I first installed it, then I rebooted the box. tomcat starts fine, when I try to start apache it says: [Thu May 23 09:24:49 2002] 5323 (wa_main.c:77) WebApp Library initializing [Thu May 23 09:24:49 2002] 5323 (wa_main.c:81) Initializing APR [Thu May 23 09:24:49 2002] 5323 (pr_info.c:66) INFO provider initialized [Thu May 23 09:24:49 2002] 5323 (pr_warp.c:62) WARP provider initialized [Thu May 23 09:24:49 2002] 5323 (wa_main.c:101) WebApp Library initialized Syntax error on line 997 of /opt/apache/conf/httpd.conf: Cannot get socket address information ./apachectl start: httpd could not be started the relevant part of my httpd.conf is: LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp web5:8008 WebAppDeploy examples warpConnection /examples does anyone have any idea what the problem might be? what I am confused about is (as with mod_jk), the connector worked fine until I rebooted the box. Unfortunately , the error string I'm getting Cannot get socket address information turns up 0 hits on a usenet search, so I have no idea what the problem may be. has anyone even ever tried to get apache/tomcat4 working on redhat 7? I have asked a couple of questions on this list before and didn't get any responses. anyways, thanks in advance for any help/thoughts you may have. --paul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Steven Shingler -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Mod Webapp?
Interestingly enough, I don't have the 'AddModule mod_webapp.c' statement in my httpd.conf. I am using Apache 2, however - I don't know if that makes a difference. -Original Message- From: steven shingler [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 12:08 PM To: Tomcat Users List Subject: Re: Mod Webapp? i agree with Jay that web5 definitely has to exist but also i think you have to add the webapp module after you've loaded it - put the line AddModule mod_webapp.c with all the other AddModules in the conf file hope that helps steven On 23/5/02 2:57 pm, Paulsen, Jay [EMAIL PROTECTED] wrote: Just a wild guess: Is web5 defined on your network (either in DNS or hosts file)? I have mod_webapp working between apache 2.0.36 and tomcat 4.0.3. If I change my configuration to specify an unknown host I get the same error you're seeing. Hope this helps -Jay -Original Message- From: Paul Sanwald [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 9:49 AM To: 'Tomcat Users List' Subject: Mod Webapp? Hey, since I couldn't find very much info about mod_jk, and was having problems, I decided to use mod_webapp to connect apache 1.3.23 and tomcat 4.0.3 (on a fresh install of redhat 7.0). it worked great when I first installed it, then I rebooted the box. tomcat starts fine, when I try to start apache it says: [Thu May 23 09:24:49 2002] 5323 (wa_main.c:77) WebApp Library initializing [Thu May 23 09:24:49 2002] 5323 (wa_main.c:81) Initializing APR [Thu May 23 09:24:49 2002] 5323 (pr_info.c:66) INFO provider initialized [Thu May 23 09:24:49 2002] 5323 (pr_warp.c:62) WARP provider initialized [Thu May 23 09:24:49 2002] 5323 (wa_main.c:101) WebApp Library initialized Syntax error on line 997 of /opt/apache/conf/httpd.conf: Cannot get socket address information ./apachectl start: httpd could not be started the relevant part of my httpd.conf is: LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp web5:8008 WebAppDeploy examples warpConnection /examples does anyone have any idea what the problem might be? what I am confused about is (as with mod_jk), the connector worked fine until I rebooted the box. Unfortunately , the error string I'm getting Cannot get socket address information turns up 0 hits on a usenet search, so I have no idea what the problem may be. has anyone even ever tried to get apache/tomcat4 working on redhat 7? I have asked a couple of questions on this list before and didn't get any responses. anyways, thanks in advance for any help/thoughts you may have. --paul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Steven Shingler -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Expanding WARS in webapps/ROOT
Afterwards, restart tomcat -Original Message- From: Kevin Grey [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 12:06 PM To: 'Tomcat Users List' Subject: RE: Expanding WARS in webapps/ROOT Name it ROOT.war and store it in the webapps dir. ~~K -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 11:55 AM To: 'Tomcat Users List' Subject: Expanding WARS in webapps/ROOT Can anybody tell me how to get a war file to expand in the webapps/ROOT directory. Thanks Donie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JDBC
Hi all, I have inserted some images into a sql server 2000 database. Now I'm trying to query the images and view them with a servlet but I can't. I have got a lot of examples of how to do it but they don't work!! I will be very grateful if anyone can send an example that works. I have: Tomcat 4 Forte for Java Jdk 1.4 Thanks in advance, Marta -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Ant question
Hey guys, When building ant from source. The jakarta-ant-1.4.1-optional.jar, does this contain all the additional jar files, needed to build ant. It seems that on the site http://jakarta.apache.org/ant/manual/install.html the section at the bottom, it is recommend to go to all the site and get all the jars from there also. Such as the junit.jar from junit.org. Do I really need to go to all of these sites and get the jar files. THanks, Chad -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Mod Webapp?
On Thu, May 23, 2002 at 05:07:49PM +, steven shingler wrote: i agree with Jay that web5 definitely has to exist but also i think you have to add the webapp module after you've loaded it - put the line AddModule mod_webapp.c with all the other AddModules in the conf file Not with Apache 2.x --- that's one of the small httpd.conf syntax changes. :) Cheers, Simon -- Irrigation of the land with seawater desalinated by fusion power is ancient. It's called 'rain'. -- Michael McClary, in alt.fusion -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Ant question
You only need to download the ones you want. The build script does a check to see which libs are in the classpath, then builds accordingly. So if you only want to use JUnit, then just download the JUnit.jar (and any other dependencies JUnit has, if any). ~~K -Original Message- From: chad kellerman [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 12:31 PM To: [EMAIL PROTECTED] Subject: Ant question Hey guys, When building ant from source. The jakarta-ant-1.4.1-optional.jar, does this contain all the additional jar files, needed to build ant. It seems that on the site http://jakarta.apache.org/ant/manual/install.html the section at the bottom, it is recommend to go to all the site and get all the jars from there also. Such as the junit.jar from junit.org. Do I really need to go to all of these sites and get the jar files. THanks, Chad -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Mod Webapp?
ah-hah - cool well that's good to know - thanks Simon if Paul's still wrestling with this though - you said you were using apache 1.3.23 - so i still reckon you'll need the add_module line its easy to check though i reckon - if all yr other load_modules have corresponding add_modules - then you need it clear as mud? On 23/5/02 4:36 pm, Simon Stewart [EMAIL PROTECTED] wrote: On Thu, May 23, 2002 at 05:07:49PM +, steven shingler wrote: i agree with Jay that web5 definitely has to exist but also i think you have to add the webapp module after you've loaded it - put the line AddModule mod_webapp.c with all the other AddModules in the conf file Not with Apache 2.x --- that's one of the small httpd.conf syntax changes. :) Cheers, Simon Steven Shingler -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Session variables RAM vs. DB Queries
I'm currently doing DB Queries and holding the users information in session objects... trying to keep the query load on the database down to a minimum by using these session objects (MVC2). My question is where do I draw the line as far as how much RAM each user gets? When do I free up those session objects and querying the database for information again? Are there any guides on this? thanks in advance, Rich __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: SIGSEGV 11* segmentation violation
which version of the C++ libraries do you have? freebsd 4.5 is the newest-greatest, right? (forgive me, been a while) On 5/23/02 1:33 AM, Joseph G. Mercado [EMAIL PROTECTED] wrote: Hi, Im trying to run tomcat 3.3 on a freebsd 4.5 box with jdk1.2.2 running. When i run sh tomcat.shs start i get SIGSEGV 11* segmentation violation. WHat do u thinks its causing this i read thru the archive email regarding this stuff i followed thier siggestion on double checking my PATH and CLASSPATH. What do u think?Did i miss something along the way please helpThank you in advance jmer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Some JSP Questions...
Hi, I am currently building a Webapp for a project and I came on a couple of questions I didn¹t find any answer to. So if one of you has time to go through them and answer to them I would be thankful. Maybe it would be better to reply to my personal address directly for I guess my questions might be somehow unrelated to the main threads in this list... 1) I am using some static inclusions along the way, ie jsp:include page=²...² /, and in the included files I want to do some repetitive security check and/or connection check. When building the included files under my Java Development Environement (JBuilder 6), I am allowed to use session, request, and response object from inside the included files. Great... But I tried then to call the response.sendRedirect() methode, but when my Webapp was running the redirection was just simply skipped with no apparent reason... Any idea? Anything I missed? Or? 2) Is there a way to use general constant defined either in a Java Class or in a Java Interface from inside JSP directive tag. For example I have a constant with the URL of the standard error page. I would like to call the constant instead of writing explicitly %@ param errorPage=²...² %. Or I would like to use, inside a jsp:include or jsp:forward, some parameterNames or paramaterValues that are constant. Is it a dream? Or is it possible somehow? 3) Is there a way to force re-initialization of, or invalidating, a JavaBean that was given the scope = ³session² without invalidating the whole session? As far as I am understanding, whenever you invalidate a session, you loose everything done so far, bean variables and attributes... Right? Oh and by the way are bean variables and attributes stored differently or are bean variables just another way to use session attributes? Sincerely, Frederick Aubert --- (`-''-/).___..--''`-._ `6_ 6 ) `-. ( ).`-.__.`) Frederick Aubert (_Y_.)' ._ ) `._ `. ``-..-' _..`--'_..-_/ /--'_.' ,'[EMAIL PROTECTED] (il),-'' (li),' ((!.-' ---
Re: DataSources and JNDI
are you following microsoft's directions? they worked for me on jboss at least. On 5/23/02 8:04 AM, Adam Greene [EMAIL PROTECTED] wrote: I'm trying to get the Microsoft SQL Driver to work in doing DataSources. It has a class called com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory, but I must not be getting the config right or something because it keeps returning Nulls out of the JNDI. server.xml: Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namefactory/name valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory/value /parameter parameter nameuser/name valuesa/value /parameter parameter namepassword/name valueremoved/value /parameter parameter namedatabaseName/name valueTestdatabasevalue /parameter parameter nameserverName/name valuemyserver/value /parameter parameter namePortNumber/name value1433/value /parameter /ResourceParams java Code: Context ctx = new InitialContext(); DataSource ds = (DataSource) ctx.lookup(java:/comp/env/jdbc/TestDB); Thanks for any help you can give. Adam Greene Team Leader ROMulin Group Inc Ph: (506) 863-1014 Fax: (506) 854-6886 http://www.romulin.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Session variables RAM vs. DB Queries
you should absolutely minimize the amount of things you keep in the session, IMHO. The database is made for scaling like this, session objects are not. Basically the database will be able to handle concurrent uses better than cramming data into the session. I store very little information in the session, especially because the more data you store there, the less scalable your application becomes. just my 2 cents --- minimize. fillup On 5/23/02 10:10 AM, Richard Diaz [EMAIL PROTECTED] wrote: I'm currently doing DB Queries and holding the users information in session objects... trying to keep the query load on the database down to a minimum by using these session objects (MVC2). My question is where do I draw the line as far as how much RAM each user gets? When do I free up those session objects and querying the database for information again? Are there any guides on this? thanks in advance, Rich __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mime-types?
your browser needs to be mime-typed AND your tomcat application needs to be mime-typed you can set tomcat's mime-types in your web.xml file. search google for tomcat web.xml mime types As far as your browser -- many browsers are not preconfigured to view png images alone -- this happens to me all the time. If the image appears in context, the browser will guess that it is a PNG image and display it, but coming over the wire with no page, many browsers don't know what to do with it. Some browsers allow you to tell them what to do with specific mime-types (i'm thinking IE 5 on the mac specifically) -- if your browser does, try it. otherwise you might be out of luck on the browser front (but DO fix the web.xml first and see if that helps). fillup On 5/23/02 5:24 AM, Michael Reutter [EMAIL PROTECTED] wrote: Hi! I'm using tomcat 3.3.1! I have 2 pictures: pic1.gif pic1.png When I use these pics in html (e.g.: img src=pic1.png) both pics are displayed correctly! BUT when I access the pics' URL directly, I see the gif correct, but instead of the png-image, I see the png's raw data displayed in my browser (I tried with MSIE, NS4, NS6, Opera, Konqueror)! what is happening??? thanks michi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: increase performance dual processor board
only if it's got 2 processors ;-^) funny! but in case the original person isn't sure what you meant -- YES since tomcat is highly multithreaded (or multi-lightweight-processed on linux that would be ;) and can run threads in parallel, and the threads are implemented at the C++ level in the virtual machinethe answer is an emphatic yes. fillup On 5/23/02 7:52 AM, David Cassidy [EMAIL PROTECTED] wrote: only if it's got 2 processors ;-^) ROTFL Günter Kukies wrote: Hi, is it possible to increase performance of tomcat using linux and a dual processor bord ? Günter Kukies -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
Hi, would some body helped me? I installed tomcat on Windows 2000, I could make it work (partialy), when I try to run the JSP samples, it shows an error message which I pasted below. It seems that the problem might be a bad configuration, but I really don´t know. Regards, Antonio Salazar Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Unknown Source) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
RE: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
Antonio - Do you have the Java SDK installed (with the compiler)? If so, you need to set an environmental value JAVA_HOME=path to the Java SDK and restart Tomcat. The error means it can't find the Java compiler in the tools.jar file. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: SALAZAR,ANTONIO (Non-HP-Guadalajara,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 10:33 AM To: Tomcat distribution list (E-mail) Subject: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error Hi, would some body helped me? I installed tomcat on Windows 2000, I could make it work (partialy), when I try to run the JSP samples, it shows an error message which I pasted below. It seems that the problem might be a bad configuration, but I really don´t know. Regards, Antonio Salazar Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Unknown Source) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at
RE: Openssl
You can do this in one of the two ways: A. Use keytool to generate certificate signing request and openssl to sign it. Sub-steps: 1. Generate key-pair using keytool ( -genkey operation ) 2. Generate Certificate Signing Request or CSR ( -certreq ) 3. Sign CSR with openssl ( ca operation in openssl ) 4. Import openssl CA certificate into keystore specified in step 1. Remember to use a different alias than in step 1. 5. Import the signed certificate ( generated by step 3 ) into the keystore. Remember to use the same alias as in step 1. 6. Remove the CA certificate entry from the keystore. Without step 4, step 5 will fail ( as keytool cannot form a certificate chain ). Without step 6, there is a possiblity that tomcat might present the wrong certificate to the client ( as JSSE uses the first certificate it finds in the keystore, using an order determined by a hash function ). B. Create a PKCS8 certificate ( or certificate chain ) and import it in a keystore. -- steps left as an exercise. Note: If you find the steps bit complicated and hard to get right, You are not alone :). I spent many frustrating hours to get it right. But you get an idea. I do have plans to document these but have not been able to find time. Pankaj Kumar Web Services Architect HP Middleware http://www.pankaj-k.net -Original Message- From: Lee Chin Khiong [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 10:21 PM To: '[EMAIL PROTECTED]' Subject: Openssl Does anyone know how to generate cert using openssl an apply to tomcat instead of keytool ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
Hi Roger, No I don't, I have already installed the JDK, are both SDK or JDK the same? Thanks so much! Antonio Salazar -Original Message- From: Whitcomb, Roger [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 12:36 PM To: Tomcat Users List Subject: RE: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error Antonio - Do you have the Java SDK installed (with the compiler)? If so, you need to set an environmental value JAVA_HOME=path to the Java SDK and restart Tomcat. The error means it can't find the Java compiler in the tools.jar file. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: SALAZAR,ANTONIO (Non-HP-Guadalajara,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 10:33 AM To: Tomcat distribution list (E-mail) Subject: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error Hi, would some body helped me? I installed tomcat on Windows 2000, I could make it work (partialy), when I try to run the JSP samples, it shows an error message which I pasted below. It seems that the problem might be a bad configuration, but I really don´t know. Regards, Antonio Salazar Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Unknown Source) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) at
RE: [JBoss-user] Access InitialContext of Tomcat 4.0.2
-Message d'origine- De: Dirk Storck [mailto:[EMAIL PROTECTED]] Date: jeudi 23 mai 2002 01:51 À: Jboss User (E-Mail); Tomcat User (E-Mail) Objet: [JBoss-user] Access InitialContext of Tomcat 4.0.2 Hi, I know it doesnt belongs to this mailing list but maybe someone can help. How can I access the InitialContext of Tomcat from whithin an external java programm? from the embedded catalina ? there are no tomcat InitialContext, since jboss propose it's own InitialContext... to contact EJB and MBeans resources, just include the jboss\client\jnp-client.jar, the jndi.properties and alike as explained in jboss doc http://www.jboss.org/online-manual/HTML/ch01s15.html if you want to use a separate Tomcat, in order to contact Jboss resources you need to add the same jnp-client.jar, jndi.properties to the server classpath (I think you can simply put it in the common/lib ) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
If it has a tools.jar under the lib directory, you're fine. BUT, you need to set JAVA_HOME in the system environment space to point to the base directory where the JDK/SDK is installed. Mine is in c:\j2sdk1.4.0 and the tools.jar is in c:\j2sdk1.4.0\lib Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: SALAZAR,ANTONIO (Non-HP-Guadalajara,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 10:39 AM To: 'Tomcat Users List' Subject: RE: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error Hi Roger, No I don't, I have already installed the JDK, are both SDK or JDK the same? Thanks so much! Antonio Salazar -Original Message- From: Whitcomb, Roger [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 12:36 PM To: Tomcat Users List Subject: RE: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error Antonio - Do you have the Java SDK installed (with the compiler)? If so, you need to set an environmental value JAVA_HOME=path to the Java SDK and restart Tomcat. The error means it can't find the Java compiler in the tools.jar file. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: SALAZAR,ANTONIO (Non-HP-Guadalajara,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 10:33 AM To: Tomcat distribution list (E-mail) Subject: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error Hi, would some body helped me? I installed tomcat on Windows 2000, I could make it work (partialy), when I try to run the JSP samples, it shows an error message which I pasted below. It seems that the problem might be a bad configuration, but I really don´t know. Regards, Antonio Salazar Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at
Re: Mod Webapp?
On Thu, May 23, 2002 at 05:46:40PM +, steven shingler wrote: ah-hah - cool well that's good to know - thanks Simon if Paul's still wrestling with this though - you said you were using apache 1.3.23 - so i still reckon you'll need the add_module line its easy to check though i reckon - if all yr other load_modules have corresponding add_modules - then you need it clear as mud? Re-read the original post: you're right, of course, Paulsen does need to include a load_module directive at least. Cheers, Simon -- I've gone through over-stressed to physical exhaustion... what's next? Tuesday --- Simon Burr Kyle Hearn -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [Coyote] Coyote 1.0 Release Candidate 2 available
Remy, Can you tell me if org.apache.coyote.tomcat4.CoyoteServerSocketFactory when used for SSL supports the keystoreType attribute? As far as I can tell, it doesn't. I'm hoping to be able to use it with a PKCS12 keystore rather than the default JKS keystore. This works fine using the old HTTP connector, but, not with Coyote. Jon - Original Message - From: Remy Maucherat [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, May 22, 2002 12:26 AM Subject: [Coyote] Coyote 1.0 Release Candidate 2 available Coyote 1.0 RC 2 is now available, and includes: - HTTP/1.1 protocol handler - JK 2 protocol handler, with support for the AJP 1.3 protocol - An adapter for Tomcat 3.3.x - An adapter for Tomcat 4.x The only change over RC 1 is fixing compatibility with Tomcat 4.0.x. Note: The version of Coyote included in Tomcat 4.0.4 Beta 3 (Coyote 1.0 Beta 9) was not subject to this problem. Binaries can be downloaded at: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/coyote/release/v1 .0-rc2/ Installation instructions for both 3.3.x and 4.0.x are given on the download page. The Tomcat 4.1.x milestones already include this new connector, and use it for HTTP/1.1 and AJP 1.3 support. Remy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JNDI, DataSource and Cannot create resource instance
Folks-- I've been beating myself to death over this issue (and have read as many of the archives on both this, the postgres-jdbc and google resources) and never even get to the point where those solutions work: Here's the story: I'm using postgresql jdbc drivers that come with RedHat 7.2 (and I've tried a lot of others). I'm using the Tomcat 4.0.3 RPM version (and had to manually add the tyrex classes, though that changed nothing). I've set things up according to the JNDI Howto: But when I execute this line of code: ConnectionPoolDataSource pooledDataSource = (ConnectionPoolDataSource)envContext.lookup(jdbc/ecosystem); I get a NamingException with a message: Cannot create resource instance. What exactly is this message telling me? I'm thinking that it cannot create an instance of the javax.sql.DataSource instance (which is in my web.xml and server.xml), but the jdbc drivers are there (and only one copy) and aren't in my webapp lib dir, and so on and so forth. I'm trying to get out of using PoolMan since it's no longer in development and gives me a Concurrancy exception when I try to run db transactions against it. Hints much appreciated! Keith -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
Roger I am getting this error as well but a different error message. Could you please have a look at the error in my email - subject: http status 500 internal error when loading localhost:8080? I would be most grateful. Lynne -Original Message- From: Whitcomb, Roger [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 18:45 To: Tomcat Users List Subject: RE: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error If it has a tools.jar under the lib directory, you're fine. BUT, you need to set JAVA_HOME in the system environment space to point to the base directory where the JDK/SDK is installed. Mine is in c:\j2sdk1.4.0 and the tools.jar is in c:\j2sdk1.4.0\lib Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: SALAZAR,ANTONIO (Non-HP-Guadalajara,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 10:39 AM To: 'Tomcat Users List' Subject: RE: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error Hi Roger, No I don't, I have already installed the JDK, are both SDK or JDK the same? Thanks so much! Antonio Salazar -Original Message- From: Whitcomb, Roger [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 12:36 PM To: Tomcat Users List Subject: RE: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error Antonio - Do you have the Java SDK installed (with the compiler)? If so, you need to set an environmental value JAVA_HOME=path to the Java SDK and restart Tomcat. The error means it can't find the Java compiler in the tools.jar file. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: SALAZAR,ANTONIO (Non-HP-Guadalajara,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 10:33 AM To: Tomcat distribution list (E-mail) Subject: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error Hi, would some body helped me? I installed tomcat on Windows 2000, I could make it work (partialy), when I try to run the JSP samples, it shows an error message which I pasted below. It seems that the problem might be a bad configuration, but I really don´t know. Regards, Antonio Salazar Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at
forcing SSL
I'm trying to clear one last hurdle on this whole SSL thing. How exactly do I force a certain page to require https protocol? The How-To on SSL (which I have just about memorized at this point) states... Any pages which absolutely require a secure connection should check the protocol type associated with the page request and take the appropriate action of https is not specified. Can this be done in the web.xml file or is this done within each JSP or Servlet? Is it possible to seamlessly redirect a user who requests a page through http to be switched to https without altering the source code of each page? I've scanned every e-mail on SSL on this list since November and I've seen many similar requests, but nobody has ever answered it. Weird. If somebody could point me in the right direction I would be very grateful. Regards! Aaron -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Some JSP Questions...
--- Frederick Aubert [EMAIL PROTECTED] wrote: Hi, I am currently building a Webapp for a project and I came on a couple of questions I didn¹t find any answer to. So if one of you has time to go through them and answer to them I would be thankful. Maybe it would be better to reply to my personal address directly for I guess my questions might be somehow unrelated to the main threads in this list... 1) I am using some static inclusions along the way, ie jsp:include page=²...² /, and in the included files I want to do some repetitive security check and/or connection check. When building the included files under my Java Development Environement (JBuilder 6), I am allowed to use session, request, and response object from inside the included files. Great... But I tried then to call the response.sendRedirect() methode, but when my Webapp was running the redirection was just simply skipped with no apparent reason... Any idea? Anything I missed? Or? I suspect this is because you have already committed a response from the including page. But wiser heads will have to confirm or deny. 2) Is there a way to use general constant defined either in a Java Class or in a Java Interface from inside JSP directive tag. For example I have a constant with the URL of the standard error page. I would like to call the constant instead of writing explicitly %@ param errorPage=²...² %. Or I would like to use, inside a jsp:include or jsp:forward, some parameterNames or paramaterValues that are constant. Is it a dream? Or is it possible somehow? 3) Is there a way to force re-initialization of, or invalidating, a JavaBean that was given the scope = ³session² without invalidating the whole session? As far as I am understanding, whenever you invalidate a session, you loose everything done so far, bean variables and attributes... Right? Oh and by the way are bean variables and attributes stored differently or are bean variables just another way to use session attributes? You have to write the bean class. You could always set the bean = null . Attributes don't require you to write another class, but I still prefer beans. Sincerely, Frederick Aubert --- (`-''-/).___..--''`-._ `6_ 6 ) `-. ( ).`-.__.`) Frederick Aubert (_Y_.)' ._ ) `._ `. ``-..-' _..`--'_..-_/ /--'_.' ,' [EMAIL PROTECTED] (il),-'' (li),' ((!.-' --- = [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: forcing SSL
Hi, RA I'm trying to clear one last hurdle on this whole SSL thing. How RA exactly do I force a certain page to require https protocol? The How-To RA on SSL (which I have just about memorized at this point) states... RA Any pages which absolutely require a secure connection should check the RA protocol type associated with the page request and take the appropriate RA action of https is not specified. RA Can this be done in the web.xml file or is this done within each JSP or RA Servlet? Is it possible to seamlessly redirect a user who requests a RA page through http to be switched to https without altering the source RA code of each page? I've scanned every e-mail on SSL on this list since RA November and I've seen many similar requests, but nobody has ever RA answered it. Weird. If somebody could point me in the right direction RA I would be very grateful. Regards! Aaron Yes, put the following into the web-xml security-constraint part and tomcat redirects automaticly to ssl if the resource was requested. user-data-constraint transport-guarantee CONFIDENTIAL /transport-guarantee /user-data-constraint it is necessary that ssl is correctly set up in server.xml. Have a look at the HOW-To on the tomcat homepage so long Ingo Bruell --- [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ# 40377720 OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C 953C 8FE7 C648 169E E5FC Germany PGP-Public-Key available at pgpkeys.mit.edu -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
IIS and Tomcat: I am stuck with this for last two days : Can somebody help
Hi All, I am using win2k professional, IIS 5.0 and Tomcat4.0.3 I want to configure IIS and tomcat. I followed the instructions and setup the ISAPI filer on IIS. I see a green arrow against the ISAPI filter. When I send in a request I see the following entry made in the IIS log: 07:30:30 127.0.0.1 GET /jakarta/isapi_redirect.dll 500. i dont see any entries in my redirector log though I have increased the log level to info Subsequently the tomcat ISAPI redirector is not forwarding the request to my tomcat worker (I am monitoring for any activity on the port on which tomcat ajp connector is listening). The trouble shooting section in doc says http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html If the number following GET /... is 500, check the following: Make sure the virtual directory created was called jakarta. Make sure that the extension_uri setting is correct. Check the workers.properties file and make sure the port setting for workers used is the same as the port specified in the server.xml for the ajp13 or ajp12 connectors, normally this ports are 8007 for ajp12 and 8009 for ajp13. I check all three and all of them are fine, infact apache works my tomcat ajp connector using the same workers.properties file. Has anybody got this configuration to work? Any pointers to what I should do further will be greatly appreciated. Thanx Ganesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Can somebody answer if this is a supported configuration?
I want to run multiples instances of embedded Tomcat all against the same base directory. Is such a configuration supported? 1. Can all the instance work off the same web application files on disk - will there be any problem between the tomcat instances all sharing the same web application files on disk? 2. Will there be a problem with the work directory. I cant seem to find an api to tell every embedded tomcat to use different directories. 3. Are there any problems with this configuration? Can somebody help? Thanx in advance, Ganesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: IIS and Tomcat: I am stuck with this for last two days : Can somebody help
Check the names of the extension_uri and the real dll, are the same? The error you are getting it's related to that issue mainly, so the trobuleshooting directions you got in that doc.. Can you send the complete list of files from jakarta virtual dir, export and post your registry settings or post your properties file ( isapi_redirector.properties ) , whtever methood you choosed to configure the i_r.dll Saludos , Ignacio J. Ortega msg54538/bin0.bin Description: application/ms-tnef -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: IIS and Tomcat: I am stuck with this for last two days : Can somebody help
The default registry entries have a typo. Check the value for: HKEY_LOCALMACHINE\Software\Apache Software Foundation\Jakarta Isapi Redirector\1.0\extension_uri The default value is isapi_redirect.dll, but the DLL name is isapi_redirector.dll. Also check the name of your worker.properties file. The documentation uses workers.properties and worker.properties interchangeably. Pick one or the other and make sure everything is configured to use this name. -Original Message- From: Sankaranarayanan (Ganesh) Ganapathy [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 3:00 PM To: [EMAIL PROTECTED] Subject: IIS and Tomcat: I am stuck with this for last two days : Can somebody help Hi All, I am using win2k professional, IIS 5.0 and Tomcat4.0.3 I want to configure IIS and tomcat. I followed the instructions and setup the ISAPI filer on IIS. I see a green arrow against the ISAPI filter. When I send in a request I see the following entry made in the IIS log: 07:30:30 127.0.0.1 GET /jakarta/isapi_redirect.dll 500. i dont see any entries in my redirector log though I have increased the log level to info Subsequently the tomcat ISAPI redirector is not forwarding the request to my tomcat worker (I am monitoring for any activity on the port on which tomcat ajp connector is listening). The trouble shooting section in doc says http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html If the number following GET /... is 500, check the following: Make sure the virtual directory created was called jakarta. Make sure that the extension_uri setting is correct. Check the workers.properties file and make sure the port setting for workers used is the same as the port specified in the server.xml for the ajp13 or ajp12 connectors, normally this ports are 8007 for ajp12 and 8009 for ajp13. I check all three and all of them are fine, infact apache works my tomcat ajp connector using the same workers.properties file. Has anybody got this configuration to work? Any pointers to what I should do further will be greatly appreciated. Thanx Ganesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
submissions: form or HREF?
is it better to use HREF or form when calling controller servlets? i like the fact you can't 'open in a new window' the form option. any advice/articles on this? thanks again!! __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: forcing SSL
THANK YOU! -Original Message- From: Ingo Bruell [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 1:03 PM To: Tomcat Users List Subject: Re: forcing SSL Hi, RA I'm trying to clear one last hurdle on this whole SSL thing. How RA exactly do I force a certain page to require https protocol? The How-To RA on SSL (which I have just about memorized at this point) states... RA Any pages which absolutely require a secure connection should check the RA protocol type associated with the page request and take the appropriate RA action of https is not specified. RA Can this be done in the web.xml file or is this done within each JSP or RA Servlet? Is it possible to seamlessly redirect a user who requests a RA page through http to be switched to https without altering the source RA code of each page? I've scanned every e-mail on SSL on this list since RA November and I've seen many similar requests, but nobody has ever RA answered it. Weird. If somebody could point me in the right direction RA I would be very grateful. Regards! Aaron Yes, put the following into the web-xml security-constraint part and tomcat redirects automaticly to ssl if the resource was requested. user-data-constraint transport-guarantee CONFIDENTIAL /transport-guarantee /user-data-constraint it is necessary that ssl is correctly set up in server.xml. Have a look at the HOW-To on the tomcat homepage so long Ingo Bruell --- [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ# 40377720 OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C 953C 8FE7 C648 169E E5FC Germany PGP-Public-Key available at pgpkeys.mit.edu -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problems reloading class files
Hey List, First off, I am quite new to jakarta. So, anything that you may consider mumbling or incomplete, I apologize. Here the problem: A problem exists, when I reload an HttpServlet (class) in a web server. Initially, it works, but when I reload the page, it doesn't work. Then once, I reload the page again, it works, then reload - doesn't. It's extremely weird. Does someone have any idea as to what I could be doing wrong? I have enclose snippets from each of the appropiate configuration files. Please take a look, and see where I could have made my mistake. This problem doesn't exist in mozilla, but does happen in IE, Netscape, and Opera. (Here's the example) http://www.elitetravelerclub.com/runtime/HelloWorldExample * server.xml snip snip Context path=/runtime docBase=runtime debug=0 privileged=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_runtime_log. suffix=.txt timestamp=true/ snip snip * httpd.conf snip snip LoadModule webapp_module libexec/apache/mod_webapp.so WebAppConnection warpConnection warp localhost:8008 WebAppDeploy runtime warpConnection /runtime/ snip snip web.xml snip snip servlet servlet-nameHelloWorldExample/servlet-name description This is a test servlet /description servlet-classHelloWorldExample/servlet-class /servlet servlet-mapping servlet-nameHelloWorldExample/servlet-name url-pattern/HelloWorldExample/url-pattern /servlet-mapping snip snip * Thanks Much, Paul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: http status 500 internal error when loading localhost:8080
What version of Tomcat are you running? And what version of the Java SDK? Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Lynne Gurney [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 3:38 AM To: [EMAIL PROTECTED] Subject: http status 500 internal error when loading localhost:8080 Hello all . . . Found this in the log file. Don't know what it means . . . does anyone else out there understand? 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path /webdav 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path /tomcat-docs 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path /admin 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path /manager 2002-05-23 08:55:51 NamingContextListener[/Standalone/localhost/manager]: Failed to unbind object: javax.naming.NameNotFoundException: Name users is not bound in this Context 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path -Original Message- From: Lynne Gurney [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 09:32 To: [EMAIL PROTECTED] Subject: http status 500 internal error when loading localhost:8080 Hello all I have just installed Tomcat for the first time. Sorry if this question is lame. I can't seem to find the answer when I searched the archive. I have successfully started the Tomcat server. I am running it on windows 2000. I cannot load the index.jsp file at http://localhost:8080. So I changed the port to 8088 . . . still no joy. I have been at this all day searching for a solution in the archives. Here is the error message that I am getting: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown Source) at org.apache.catalina.core.StandardWrapper.allocate(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:376) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:518) at java.lang.Thread.run(Thread.java:484) root cause java.lang.NoSuchMethodError at org.apache.jasper.compiler.TldLocationsCache.processJars(Unknown Source) at org.apache.jasper.compiler.TldLocationsCache.(Unknown Source) at org.apache.jasper.EmbededServletOptions.(Unknown Source) at org.apache.jasper.servlet.JspServlet.init(Unknown Source) at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown Source) at
Mod_webapp Unstable
Hi, I'm working on an app that uses Apache 1.3.2 + Tomcat 4.0.3 + SSL (through OpenSA) on Windows 2000 server. I've been using the mod_webapp connector, but have found it to be very unstable when serving up my JSPs. A lot of time I get a HTTP 404 or 500 error, and sometimes my page will be displayed. Does anyone know what the most recent version of mod_webapp is? The version I have is 1.0, dated October 9, 2001, and I got it off the Tomcat site. I would like to know if there is a more stable release of mod_webapp. Thanks, Bo winmail.dat Description: application/ms-tnef -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: IIS and Tomcat: I am stuck with this for last two days : Can somebody help
Wagoner Ignacio, you guys were indeed right - the extension_uri registry entry had the dll name wrong! It works after I fixed that. Thanx a bunch! Regards Ganesh -Original Message- From: Wagoner, Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 12:07 PM To: 'Tomcat Users List' Subject: RE: IIS and Tomcat: I am stuck with this for last two days : Can somebody help The default registry entries have a typo. Check the value for: HKEY_LOCALMACHINE\Software\Apache Software Foundation\Jakarta Isapi Redirector\1.0\extension_uri The default value is isapi_redirect.dll, but the DLL name is isapi_redirector.dll. Also check the name of your worker.properties file. The documentation uses workers.properties and worker.properties interchangeably. Pick one or the other and make sure everything is configured to use this name. -Original Message- From: Sankaranarayanan (Ganesh) Ganapathy [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 3:00 PM To: [EMAIL PROTECTED] Subject: IIS and Tomcat: I am stuck with this for last two days : Can somebody help Hi All, I am using win2k professional, IIS 5.0 and Tomcat4.0.3 I want to configure IIS and tomcat. I followed the instructions and setup the ISAPI filer on IIS. I see a green arrow against the ISAPI filter. When I send in a request I see the following entry made in the IIS log: 07:30:30 127.0.0.1 GET /jakarta/isapi_redirect.dll 500. i dont see any entries in my redirector log though I have increased the log level to info Subsequently the tomcat ISAPI redirector is not forwarding the request to my tomcat worker (I am monitoring for any activity on the port on which tomcat ajp connector is listening). The trouble shooting section in doc says http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html If the number following GET /... is 500, check the following: Make sure the virtual directory created was called jakarta. Make sure that the extension_uri setting is correct. Check the workers.properties file and make sure the port setting for workers used is the same as the port specified in the server.xml for the ajp13 or ajp12 connectors, normally this ports are 8007 for ajp12 and 8009 for ajp13. I check all three and all of them are fine, infact apache works my tomcat ajp connector using the same workers.properties file. Has anybody got this configuration to work? Any pointers to what I should do further will be greatly appreciated. Thanx Ganesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Mod_webapp Unstable
This is exactly what happening to me on my freeBSD machine. Paul On Thu, 23 May 2002 12:18:50 -0700 Bo Min Jiang [EMAIL PROTECTED] wrote: Hi, I'm working on an app that uses Apache 1.3.2 + Tomcat 4.0.3 + SSL (through OpenSA) on Windows 2000 server. I've been using the mod_webapp connector, but have found it to be very unstable when serving up my JSPs. A lot of time I get a HTTP 404 or 500 error, and sometimes my page will be displayed. Does anyone know what the most recent version of mod_webapp is? The version I have is 1.0, dated October 9, 2001, and I got it off the Tomcat site. I would like to know if there is a more stable release of mod_webapp. Thanks, Bo -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
apache+tomcat4.0.1+mod_webapp on RH6.2
Dear all, I originally have a RH7.2 system, ran apache+tomcat4.0.1+mod_webapp without problem. Now, my system need a migration, and unluckily, the `new` system is RH6.2 I built my own mod_webapp.so and my apache (installed by rpms: apache-devel-1.3.12-2 and apache-1.3.14-2.6.2) cannot load the mod_webapp.so and complaints: [root@budgettarget apache-1.3]# /etc/init.d/httpd restart Shutting down http:[FAILED] Starting httpd: Syntax error on line 253 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_webapp.so into server: /etc/httpd/modules/mod_webapp.so: undefined symbol: pthread_sigmask [FAILED] I do: [root@mydomain /root]# rpm -qf /lib/libc.so.6 glibc-2.1.3-23 What should i do, should i upgrade my glibc? or self-compile my mod_webapp? Please help. Best regards, Simon. == -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JDK1.4 JSSE
Is there a version of tomcat that uses the current jdk1.4 JSSE implementation? Thank You ___ Carlos Javier Rivera Vazquez GE Network Solutions 1990 West Nasa Blvd. Melbourne, Florida 32904 Phone: 321-435-5383 mailto:[EMAIL PROTECTED] http://www.gepower.com/geharrisenergy Most papers in Computer Science describe how their author learned what someone else already knew. -- Peter Landin, Circa 1967 __ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Getting USERNAME/PASSWORD from HTTP headers
Hi all How do I get the username and password from the http authentication headers... Thanks Donie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Getting USERNAME/PASSWORD from HTTP headers
request.getHeader() see the documentation for HttpServletRequest On 5/23/02 12:27 PM, Donie Kelly [EMAIL PROTECTED] wrote: Hi all How do I get the username and password from the http authentication headers... Thanks Donie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Getting USERNAME/PASSWORD from HTTP headers
That's grand but I then have to base64 decode the result. I was hoping there was a nice way ;) Donie -Original Message- From: Phillip Morelock [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 20:38 To: Tomcat Users List Subject:Re: Getting USERNAME/PASSWORD from HTTP headers request.getHeader() see the documentation for HttpServletRequest On 5/23/02 12:27 PM, Donie Kelly [EMAIL PROTECTED] wrote: Hi all How do I get the username and password from the http authentication headers... Thanks Donie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Getting USERNAME/PASSWORD from HTTP headers
This nice way is: request.getRemoteUser(). However, this doesn't seem to work with mod_webapp, I haven't figured out why and no one had an explanation when I asked. I'm using an ugly base64 decode as a work around until I get another connector working. getRemoteUser() does seem to work (from what others have posted) with jk if you put the following in the connector part of you server.xml tomcatAuthentication=false I haven't figured out what relation coyote has to all this, related to jk, competitor, etc. Seems to be different than mod_webapp. Lloyd -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 3:35 PM To: 'Tomcat Users List' Subject: RE: Getting USERNAME/PASSWORD from HTTP headers That's grand but I then have to base64 decode the result. I was hoping there was a nice way ;) Donie -Original Message- From: Phillip Morelock [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 20:38 To: Tomcat Users List Subject: Re: Getting USERNAME/PASSWORD from HTTP headers request.getHeader() see the documentation for HttpServletRequest On 5/23/02 12:27 PM, Donie Kelly [EMAIL PROTECTED] wrote: Hi all How do I get the username and password from the http authentication headers... Thanks Donie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Getting USERNAME/PASSWORD from HTTP headers
i believe there is free code somewhere available for this -- it's really easy. search google for base64 decode java source it's the second result. it's public domain with no restrictions. fillup On 5/23/02 12:35 PM, Donie Kelly [EMAIL PROTECTED] wrote: That's grand but I then have to base64 decode the result. I was hoping there was a nice way ;) Donie -Original Message- From: Phillip Morelock [mailto:[EMAIL PROTECTED]] Sent:23 May 2002 20:38 To:Tomcat Users List Subject:Re: Getting USERNAME/PASSWORD from HTTP headers request.getHeader() see the documentation for HttpServletRequest On 5/23/02 12:27 PM, Donie Kelly [EMAIL PROTECTED] wrote: Hi all How do I get the username and password from the http authentication headers... Thanks Donie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Web development forum
The servlet-interest mailing list still appears to be alive at javasoft/sun. I think you can subscribe via http://archives.javasoft.com/. But I don't want to discourage you from starting your own. I too have some general thoughts I would like to discuss on web app architecture (eg. do we need model-2 anymore?). Cheers Drew -Original Message- From: Michael Teter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 8:33 AM To: tomcat-user Subject: Web development forum Howdy again. Thanks for the good responses to my web development/methodology question post. New Question: Does there exist an active forum for discussion of (generally Tomcat-related) web development? Ideally such a forum would focus on experiences with different web development technologies or methodologies. Also useful would be tales of production experiences. If no such forum exists, I'm inclined to start one. From responses I got about my earlier post, there is interest in this. Comments? Thanks, Michael __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_webapp speed
I did some testing of a non-trivial web application that I have using Jakarta Jmeter with Apache 1.2.23 running on RedHat 7.2. I found that there was no difference between going through Mod_WebApp and going through the http 1.1 connector. The times were the same regardless of which way I went. You might want to download JMeter and test your application so that you have some concrete numbers. -Original Message- From: Michael Forster [mailto:[EMAIL PROTECTED]] Sent: 23 May, 2002 9:17 AM To: [EMAIL PROTECTED] Subject: mod_webapp speed Hi, The transfer speed of apache+mod_webapp is 4 times slower than the tomcat HTTP Connector. Is this the normal case? It just feels very slow in my case. Apache 1.3.24 Tomcat 4.0.3 Solaris 8 Mike -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Getting USERNAME/PASSWORD from HTTP headers
Thanks Llyod, I'm using Tomcat in standalone mode and getRemoteUser() returned null?? I'm using tomcat 4.0.1 Thanks Donie -Original Message- From: Lloyd Meinholz [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 20:48 To: 'Tomcat Users List' Subject:RE: Getting USERNAME/PASSWORD from HTTP headers This nice way is: request.getRemoteUser(). However, this doesn't seem to work with mod_webapp, I haven't figured out why and no one had an explanation when I asked. I'm using an ugly base64 decode as a work around until I get another connector working. getRemoteUser() does seem to work (from what others have posted) with jk if you put the following in the connector part of you server.xml tomcatAuthentication=false I haven't figured out what relation coyote has to all this, related to jk, competitor, etc. Seems to be different than mod_webapp. Lloyd -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 3:35 PM To: 'Tomcat Users List' Subject: RE: Getting USERNAME/PASSWORD from HTTP headers That's grand but I then have to base64 decode the result. I was hoping there was a nice way ;) Donie -Original Message- From: Phillip Morelock [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 20:38 To: Tomcat Users List Subject: Re: Getting USERNAME/PASSWORD from HTTP headers request.getHeader() see the documentation for HttpServletRequest On 5/23/02 12:27 PM, Donie Kelly [EMAIL PROTECTED] wrote: Hi all How do I get the username and password from the http authentication headers... Thanks Donie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Getting USERNAME/PASSWORD from HTTP headers
there have been several discussions here of problems with getRemoteUser and my only advice will be to repeat that you should just grab raw headers -- even if just for debugging. This has always worked for me quite well. That code link I sent provides direct base64--String decoding. fillup On 5/23/02 1:19 PM, Donie Kelly [EMAIL PROTECTED] wrote: Thanks Llyod, I'm using Tomcat in standalone mode and getRemoteUser() returned null?? I'm using tomcat 4.0.1 Thanks Donie -Original Message- From: Lloyd Meinholz [mailto:[EMAIL PROTECTED]] Sent:23 May 2002 20:48 To:'Tomcat Users List' Subject:RE: Getting USERNAME/PASSWORD from HTTP headers This nice way is: request.getRemoteUser(). However, this doesn't seem to work with mod_webapp, I haven't figured out why and no one had an explanation when I asked. I'm using an ugly base64 decode as a work around until I get another connector working. getRemoteUser() does seem to work (from what others have posted) with jk if you put the following in the connector part of you server.xml tomcatAuthentication=false I haven't figured out what relation coyote has to all this, related to jk, competitor, etc. Seems to be different than mod_webapp. Lloyd -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 3:35 PM To: 'Tomcat Users List' Subject: RE: Getting USERNAME/PASSWORD from HTTP headers That's grand but I then have to base64 decode the result. I was hoping there was a nice way ;) Donie -Original Message- From: Phillip Morelock [mailto:[EMAIL PROTECTED]] Sent:23 May 2002 20:38 To:Tomcat Users List Subject:Re: Getting USERNAME/PASSWORD from HTTP headers request.getHeader() see the documentation for HttpServletRequest On 5/23/02 12:27 PM, Donie Kelly [EMAIL PROTECTED] wrote: Hi all How do I get the username and password from the http authentication headers... Thanks Donie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Manager App for Virtual Hosts
What is the easiest way to set up the Manager webapp for Virtual Hosts? Thank you. Tim Bourg -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]