Re: Installing mod_ssl on Apache2+Tomcat+mod_jk setup...
Well yes, I did that and configure ran "normally" after a "make distclean" (I think I maight have left some junk there from last time)... Then I tried doing this : # cd $APACHE_HOME # make # make certificate # make install "make" didn't work and complained "No targets specified and no Makefile found. Stop" I can clearly see makefile there ! Then I checked Apache, like this : # apachectl -l I do not see mod_ssl compiled into it. Having said all that, I still have another major concern about openssl-0.9.6-3 vulnerability. It seems that I am going through a lot of trouble installing a faulted version. All the research I have done sofar recommends installing a second openssl-0.9.7 alongside 0.9.6-3 because redHat7.1 has dependency problems otherside. This is very irritating ! TIA (DIV=danke im voraus?) :( Simon Pabst wrote: > > That configure of yours is not quite right: > > the following is required for Apache with SSL/HTTPS Support (still called > mod_ssl): > --enable-ssl > > this is only required if the auto detection of apache can't fint the > installed open ssl: > --with-ssl=/path/to/openssl > > At 17:49 23.07.2003 +1000, you wrote: > >Hiya, thanks for the tip. > >When I ran ./configure --help, the option --enable-ssl is missing. > >So I tried this : > >./configure > > --with-apache= > > --with-ssl= > > --prefix= > >So komme ich auch nicht weiter ! > >Those options are not available in configure !?! > >TIA :( > > > >Simon Pabst wrote: > > > > > > This should go to Apache Mailing List propably. > > > > > > Apache 2 has its own mod_ssl included. > > > You still need an installed OpenSSL to use mod_ssl, > > > as how to configure: > > > > > > httpd-2.0.45 # ./configure --help|grep -i ssl > > > --enable-sslSSL/TLS support (mod_ssl) > > > --with-ssl=DIR SSL/TLS toolkit (OpenSSL) > > > > > > "Tomcat Users List" <[EMAIL PROTECTED]> schrieb am > > 14.07.03 09:56:52: > > > > > > > > Apache2.0.40 seems to ship with mod_ssl in the directory > > > > .../httpd-2.0.40/modules/ssl. > > > > But no mention of OpenSSL, although both ssl_util_ssl.c and > > > > ssl_util_ssl.h refer to OpenSSL. > > > > I ftp-ed openssl-0.9.76b.tar.gz , but they only tralk about Apache > > > > 1.3.24 as in : > > > > # configure with-apache=../apache_1.3.24 with-ssl=./open22l-0.9.6c etc > > > > Am I to understand there is no mod_ssl for Apache2+ ??? > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- > > > Simon Pabst > > > > > > E-Mail: [EMAIL PROTECTED] > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No printers when run as service.
thanks that worked the other reply is correct also Printservice and Tomcat was a previous thread on this issue if anyone else needs more information John Corrigan wrote: > You might try changing the user which tomcat runs as and see if that helps. > > -Original Message- > From: Anthony Cunningham [mailto:[EMAIL PROTECTED] > Sent: Monday, July 21, 2003 10:46 PM > To: Tomcat Users List > Subject: No printers when run as service. > > I tried searching the archives and google for this but without success. > > I am running Tomcat 4.0.4 on Windows NT 4.0 Service pack 6 (Japanese). > Due to the nature of our application we are using Adobe PDFWriter as a > virtual printer to create a PDF file on the harddrive which is then > streamed to the user and deleted. When Tomcat is run from the command > line it works ok however when run as a service the error below occurs. > Does anyone know why this might happen and a possible solution? > > thanks for the help, > Anthony Cunningham > > java.awt.print.PrinterException: No printer found. > at sun.awt.windows.WPrinterJob._startDoc(Native Method) > at sun.awt.windows.WPrinterJob.startDoc(WPrinterJob.java:680) > at sun.java2d.RasterPrinterJob.print(RasterPrinterJob.java:315) > at > ajs.dvr.client.print.PrintReport.printReport(ajs/dvr/client/print/PrintReport.java:371) > > at ajs.dvr.web.servlet.DynamicPDF.createPDF(Unknown Source) > at ajs.dvr.web.servlet.DynamicPDF.printPDF(Unknown Source) > at ajs.dvr.web.servlet.DynamicPDF.doGet(Unknown Source) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683) > > at > org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431) > > at > org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355) > > at ajs.wgfw.ctrl.SubController.gotoPage(SubController.java:1579) > at ajs.wgfw.ctrl.SubController.execute(SubController.java:323) > at > ajs.wgfw.ctrl.AbstractMainController.doMain(AbstractMainController.java:657) > > at > ajs.wgfw.ctrl.AbstractMainController.doGet(AbstractMainController.java:436) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) > > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) > > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) > > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) > > 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.java:190) > > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) > > at > org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) > > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) > > 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:2347) > > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) > > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) > > at > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) > > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) > > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) > > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) > > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) > > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > at org.apach > e.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) > > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) > > 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:1027) > > at > org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125) > > at java.lang.Thread.run(Thread.java:484) > java.awt.print.PrinterException: No printer found. > at sun.awt.windows.WPrinterJob._startDoc(Native Method) > at sun.awt.windows.WPrinterJob.startDoc(WPrinterJ
Where is mod_jk2?
Maybe I overlooked something, but I cannot find a link to download mod_jk2 (or coyote) for Apache 1.3.27 to talk with Tomcat at the jk2 website (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html). Does anyone know where the link to download mod_jk2 is? I find it incredible that there is no link to download jk2 at the jk2 website. There is only a link for mod_jk. TIA. __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat web application manager question
Hi.. sorry me again, I tried the following in my web broswer and it is working now. Thanks a lot!! especially to Yoav!!! http://localhost:8080/manager/install?path=/hello&war=file:/C:\Tomcat\Tomcat-4-1-18\webapps\hello\hello.war --- kitty winslet <[EMAIL PROTECTED]> wrote: > > Result still the same, no another application > added > > to the list. > > >Without you posting the exact, complete error > traces > >from your log files, it's hard to help with more > >precision. > > Below are the log when I add a new application.. If > you have time, tell me what's wrong or if you are > busy, it is ok thanks so much > > 2003-07-24 10:50:34 HTMLManager: > ManagerServlet.configure[file://C:\Tomcat\Tomcat-4-1-18\webapps\hello\context.xml] > java.io.IOException: java.net.UnknownHostException: > C > at > org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:341) > at > org.apache.catalina.core.StandardHost.install(StandardHost.java:803) > at > org.apache.catalina.servlets.ManagerServlet.install(ManagerServlet.java:615) > at > org.apache.catalina.servlets.HTMLManagerServlet.install(HTMLManagerServlet.java:178) > at > org.apache.catalina.servlets.HTMLManagerServlet.doGet(HTMLManagerServlet.java:139) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) > at > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:550) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) > at > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386) > at > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) > at java.lang.Thread.run(Thread.java:536) > > > --- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: > > > > Howdy, > > Perhaps you would benefit from an introduction to > > servlets type book? > > These books cover the structure of a web > application > > as well. > > Alternatively, I strongly recommend reading (and > > following) the tomcat > > app developer's guide at > > > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html > > > > >"Simply create that context path under the > webapps > > >directory. You can also specify it in context.xml > > if > > >you want,
Re: HELP! Client Authentication in Tomcat 4.1.24
Bug #15790 is only if you are fronting Tomcat with Apache/IIS/SunONE. If you are using the stand-alone connector, it doesn't apply. I'm guessing that this isn't your problem, since you'd get a different error. To use this setup, you need to be using MemoryRealm. The default DataSourceRealm doesn't handle CLIENT-CERT authentication. When I'm testing this, I usually get rid of the '', since it has a bad habit of messing up cert subjects when it re-saves the file :-). With 4.1.26, if you enable TRACE logging, it will print the cert out to the log (I use this to cut-and-paste the Subject to tomcat-users.xml). If you have log4j in common/lib, then add: log4j.logger.org.apache.tomcat.util.net.jsse=TRACE to your log4j.properties. "Farrell, Patrick" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] .. > Thanks, > > I had seen the bug you are referring to, but didn't think that this was my > problem since I don't see that exception anywhere. Is there anywhere that I > may look to find that exception just to ensure that this is truely my > problem? > > Pat > > -Original Message- > From: Jay Garala [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 23, 2003 1:44 PM > To: 'Tomcat Users List' > Subject: RE: HELP! Client Authentication in Tomcat 4.1.24 > > > This is the part you were missing. Unfortunately, the handling of Client > certs in the Jk-Coyote connector is broken in 4.1.24 (see > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15790). > > Wait for 4.1.26 or grab alpha from CVS > > -Original Message- > From: Farrell, Patrick [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 23, 2003 1:02 PM > To: '[EMAIL PROTECTED]' > Subject: HELP! Client Authentication in Tomcat 4.1.24 > > > I am attempting to use client certificate authentication with Tomcat 4.1.24, > but each time I connect via a browser (Internet Explorer) Tomcat indicates > that it is unable to authenticate with the provided credentials. > > My client certificate is a personal certificate from Thawte. The > corresponding root certificate already exists in my truststore. > > Shown below is my tomcat-users.xml file. > > > > > > > > > > > Must I do anything with the client certificate in order for the server to > trust it, or does the server simply grab the DN from the certificate and > look in the realm for a user with the corresponding DN? > > Does anyone have any information or links on how to configure tomcat users > with client authentication? > > Pat > > *** > This message is intended only for the use of the intended recipient and > may contain information that is PRIVILEGED and/or CONFIDENTIAL. If you > are not the intended recipient, you are hereby notified that any use, > dissemination, disclosure or copying of this communication is strictly > prohibited. If you have received this communication in error, please > destroy all copies of this message and its attachments and notify us > immediately. > *** > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > *** > This message is intended only for the use of the intended recipient and > may contain information that is PRIVILEGED and/or CONFIDENTIAL. If you > are not the intended recipient, you are hereby notified that any use, > dissemination, disclosure or copying of this communication is strictly > prohibited. If you have received this communication in error, please > destroy all copies of this message and its attachments and notify us > immediately. > *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat web application manager question
> Result still the same, no another application added > to the list. >Without you posting the exact, complete error traces >from your log files, it's hard to help with more >precision. Below are the log when I add a new application.. If you have time, tell me what's wrong or if you are busy, it is ok thanks so much 2003-07-24 10:50:34 HTMLManager: ManagerServlet.configure[file://C:\Tomcat\Tomcat-4-1-18\webapps\hello\context.xml] java.io.IOException: java.net.UnknownHostException: C at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:341) at org.apache.catalina.core.StandardHost.install(StandardHost.java:803) at org.apache.catalina.servlets.ManagerServlet.install(ManagerServlet.java:615) at org.apache.catalina.servlets.HTMLManagerServlet.install(HTMLManagerServlet.java:178) at org.apache.catalina.servlets.HTMLManagerServlet.doGet(HTMLManagerServlet.java:139) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:550) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) --- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: > > Howdy, > Perhaps you would benefit from an introduction to > servlets type book? > These books cover the structure of a web application > as well. > Alternatively, I strongly recommend reading (and > following) the tomcat > app developer's guide at > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html > > >"Simply create that context path under the webapps > >directory. You can also specify it in context.xml > if > >you want, but that's not required." > > I was referring to the context autodeploy ability. > Again, the doc is at > > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html > > >Result still the same, no another application added > to > >the list. But I want to know why we need to add > the > >"hello" as the new application? What does it mean? > >Without adding it as the application, the JSP still > >work as normal rig
mod_jk2 with jni+pcre, what for?
Hi everybody, I'm trying different setups of mod_jk2 for our JSP application with Apache 2.0 acting as frontend. With the help of apachewiki and Simon Pabst I've succesfuly setup Tomcat 4.1.24 with Apache 2.0.47, running Sun JDK 1.4.1 with mod_jk2 2.0.2 (jni and pcre enabled), using Unix sockets (not TCP). Obviously Tomcat is running on the same machine as Apache... My question is: Why would I like to use this setup instead of the "easier" TCP/IP method? Would jni+Unix Sockets be faster? What does the Perl Regular Expressions do in all this thing? Thanks everybody, Ivan Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: different port to have different base directory
forgot, you need to put that -f configfile stuff into two different shutdown.sh's too (i personally don't use the shutdown mechanism for stopping Tomcats, a kill -9 works better ;-) At 01:08 24.07.2003 +0200, you wrote: One tomcat with HTTP and HTTPS connector would be the simplest solution, just it won't work with the same context having two different directories (AFAIK). So either you use one tomcat and server.xml with two different Contexts, or you have use one tomcat installation, 2 different server.xml's, 2 different startup.sh's: conf/http_server.xml: HTTP Connector on 7080, shutdown port, context localservlet -> $CATALINA_HOME/webapps/ conf/https_server.xml: HTTPS Connector on 7081, different shutdown port, context localservlet -> $CATALINA_HOME/secuareapps/ Modify last line of startup.sh: bin/http_startup.sh: exec "$PRGDIR"/"$EXECUTABLE" start -f "${PRGDIR}/../conf/http_server.xml" "$@" bin/https_startup.sh: "$PRGDIR"/"$EXECUTABLE" start -f "${PRGDIR}/../conf/https_server.xml" "$@" Or leave startup.sh as it is and put the following into your tomcat init script(s). startup.sh -f /path/to/tomcat/conf/http[s]server.xml" See http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html for SSL/HTTPS configuration At 17:06 23.07.2003 -0500, you wrote: Hi, I successfully configured tomcat for mutual authentication. I would like to start tomcat server with 2 connectors listening at http://localhost:7080 https://localhost:7081 But both of them should use different base directory. i.e., when I invoke http://localhost:7080/localservlet from my browser, tomcat should try to find this servlet in "$CATALINA_HOME/webapps/" location. and if I invoke using https https://localhost:7081/localservlet it should try to find this servlet in "$CATALINA_HOME/secuareapps/" location. Is there any way of doing this without using virual hosts 'cuz I want the same hostname. Based on the port number (7080/7081) (or) protocol(http/https) they should have different base root directory i.e., for example I also do not want connections coming from http have access to look into secureapps directory and https have access to webapps. Have anybody tried this? Thanks, Vijay. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: different port to have different base directory
One tomcat with HTTP and HTTPS connector would be the simplest solution, just it won't work with the same context having two different directories (AFAIK). So either you use one tomcat and server.xml with two different Contexts, or you have use one tomcat installation, 2 different server.xml's, 2 different startup.sh's: conf/http_server.xml: HTTP Connector on 7080, shutdown port, context localservlet -> $CATALINA_HOME/webapps/ conf/https_server.xml: HTTPS Connector on 7081, different shutdown port, context localservlet -> $CATALINA_HOME/secuareapps/ Modify last line of startup.sh: bin/http_startup.sh: exec "$PRGDIR"/"$EXECUTABLE" start -f "${PRGDIR}/../conf/http_server.xml" "$@" bin/https_startup.sh: "$PRGDIR"/"$EXECUTABLE" start -f "${PRGDIR}/../conf/https_server.xml" "$@" Or leave startup.sh as it is and put the following into your tomcat init script(s). startup.sh -f /path/to/tomcat/conf/http[s]server.xml" See http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html for SSL/HTTPS configuration At 17:06 23.07.2003 -0500, you wrote: Hi, I successfully configured tomcat for mutual authentication. I would like to start tomcat server with 2 connectors listening at http://localhost:7080 https://localhost:7081 But both of them should use different base directory. i.e., when I invoke http://localhost:7080/localservlet from my browser, tomcat should try to find this servlet in "$CATALINA_HOME/webapps/" location. and if I invoke using https https://localhost:7081/localservlet it should try to find this servlet in "$CATALINA_HOME/secuareapps/" location. Is there any way of doing this without using virual hosts 'cuz I want the same hostname. Based on the port number (7080/7081) (or) protocol(http/https) they should have different base root directory i.e., for example I also do not want connections coming from http have access to look into secureapps directory and https have access to webapps. Have anybody tried this? Thanks, Vijay. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
different port to have different base directory
Hi, I successfully configured tomcat for mutual authentication. I would like to start tomcat server with 2 connectors listening at http://localhost:7080 https://localhost:7081 But both of them should use different base directory. i.e., when I invoke http://localhost:7080/localservlet from my browser, tomcat should try to find this servlet in "$CATALINA_HOME/webapps/" location. and if I invoke using https https://localhost:7081/localservlet it should try to find this servlet in "$CATALINA_HOME/secuareapps/" location. Is there any way of doing this without using virual hosts 'cuz I want the same hostname. Based on the port number (7080/7081) (or) protocol(http/https) they should have different base root directory i.e., for example I also do not want connections coming from http have access to look into secureapps directory and https have access to webapps. Have anybody tried this? Thanks, Vijay. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
logs of tomcat
Hello. In my tomcat log file (mod_jk.og) appears a lot of lines as the next line: [Wed Jul 23 23:20:58 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/graphics/image.gif' my tomcat logs the all of my images. how can i say to the tomcat to not log, and not process the images (gif.¡,jpg...) or toher files thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: invalidating sessions
I'm not sure if there is a standard/accepted method but, this is what I do. 1. Inside index.jsp, I put this: <%session.setAttribute("VALIDSESSION", Boolean.TRUE);%> 2. At the top of each jsp file, I put this: try{ Boolean validSession = (Boolean)session.getAttribute("VALIDSESSION"); } catch (Exception e) { response.sendRedirect( "index.jsp" ); } This places a value in VALIDSESSION when index.jsp loads up and then checks to see if VALIDSESSION is still valid when each JSP file is loaded afterwards. If it is not valid then the user gets redirected back to index.jsp to start over. I use JDBCRealm and FORM AUTH, so; when my session times out, I get sent to the login.jsp page, then after a successful login, j_security_check tries to send me to the page I originally requested when my session was still active. Since many pages rely on information stored in the session, errors will occur without this check. To invalidate an active session, simply do this: session.invalidate(); Hope this helps, -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** James Michelich wrote: A quick question about invalidating sessions: Is there a way to detect whether a session is still active without implementing some sort of login/logout scheme (i.e. is there some way to invalidate a session without explicit input from the user, other than simply letting it time out)? Thanks, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat training
I saw the e-mail about the tomcat training offered by http://www.galatea.com/training. Is this worth going to? Are there others? What is the best? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: invalidating sessions
You may use HttpSession.invalidate() to invalidate a session. -Original Message- From: James Michelich [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 4:30 PM To: Tomcat Users List Subject: invalidating sessions A quick question about invalidating sessions: Is there a way to detect whether a session is still active without implementing some sort of login/logout scheme (i.e. is there some way to invalidate a session without explicit input from the user, other than simply letting it time out)? Thanks, James This electronic transmission is strictly confidential to Smith & Nephew and intended solely for the addressee. It may contain information which is covered by legal, professional or other privilege. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message.
invalidating sessions
A quick question about invalidating sessions: Is there a way to detect whether a session is still active without implementing some sort of login/logout scheme (i.e. is there some way to invalidate a session without explicit input from the user, other than simply letting it time out)? Thanks, James This message has been 'sanitized'. This means that potentially dangerous content has been rewritten or removed. The following log describes which actions were taken. Sanitizer (start="1058992325"): Forcing message to be multipart/mixed, to facilitate logging. Writer (pos="1132"): Part (pos="1181"): Part (pos="200"): SanitizeFile (filename="unnamed.txt", mimetype="text/plain"): Match (rule="8"): ScanFile (file="/var/spool/filter/anomy/att-3f1ef0c5-MO3-unnamed.txt"): Scan succeeded, file is clean. Enforced policy: accept Part (pos="645"): SanitizeFile (filename="unnamed.html", mimetype="text/html"): Match (rule="8"): ScanFile (file="/var/spool/filter/anomy/att-3f1ef0c6-88E-unnamed.html"): Scan succeeded, file is clean. Enforced policy: accept Note: Styles and layers give attackers many tools to fool the user and common browsers interpret Javascript code found within style definitions. References: - http://www.securityfocus.com/bid/630 - http://archives.indenial.com/hypermail/bugtraq/2001/January2001/0512.html Rewrote HTML tag: >>_STYLE_<< as: >>_DEFANGED_STYLE_<< Rewrote HTML tag: >>_/STYLE_<< as: >>_/DEFANGED_STYLE_<< Total modifications so far: 2 Anomy 0.0.0 : Sanitizer.pm $Id: Sanitizer.pm,v 1.54 2002/02/15 16:59:07 bre Exp $ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating a custom realm [I don't know how]
Realms are loaded by the container (Tomcat), so I think you need to put them in your server/lib or server/classes directories. Derek Hung Tang wrote: Hi there, How do I create my own custom realm and plug it into Tomcat for my web application? I created CustomRealm that implements Realm. But when I added a element in my context.xml and loaded up my application, it complained that CustomRealm could not be found (ClassNotFoundException). My CustomRealm class is in my /WEB-INF/classes directory so I'm sure (as far as my application is concerned) that the class is in the proper classpath. I also placed the file in tomcat.home/common/lib but the error still persists. Any help would be appreciated. By the way, I'm using Tomcat 4.1.24 __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Derek Chen-Becker Senior Network Engineer CPI Corp, Inc. 1706 Washington Ave St. Louis, MO 63103 Phone: 314-231-1575 x6014 Fax: 314-613-6724 [EMAIL PROTECTED] PGP Key available from public key servers Fingerprint: 1C34 D81E D8A0 641D 6C8C E952 3B15 693F 9184 BC58 -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: War files don't work
Making docBase = "nsfs.war" vice "nsfs" works!! :) However; the war file is not being unpacked. It seems that unpackWARs="true" works the same as unpackWARs="false" Thanks, Rick John Turner wrote: From the docs for Context: "The Document Base (also known as the Context Root) directory for this web application, or the pathname to the web application archive file (if this web application is being executed directly from the WAR file). You may specify an absolute pathname for this directory or WAR file, or a pathname that is relative to the appBase directory of the owning Host." Thus, if you're going to put a Context entry in server.xml for "nsfs", make the docBase "nsfs.war", not "nsfs". Further: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment John Rick Roberts wrote: Does the nsfs.war file go into webapps directory or into webapps/nsfs directory? Currently, the webapps/nsfs dir does not exist. There is only the nsfs.war file setting in the webapps directory. I am assuming that Tomcat will create the webapps/nsfs directory for me when it expands the war file. I have temporarily set permissions to 777 on the webapps directory and it still does not expand, nor try to use, the war file. Rick John Turner wrote: You've told Tomcat the docBase is "nsfs". Tomcat thusly looks for a directory called "nsfs" in the Host's appBase. If it finds it, and unpackWars is true, it will unpack your WAR file into that directory (webapps/nsfs, NOT webapps). Thus, Tomcat needs r+w on webapps/nsfs. Does Tomcat have r+w on webapps/nsfs? Alternatively, make unpackWars false. John Rick Roberts wrote: My directory permissions are as follows: drwxrwx---7 root tomcat4 4096 Jul 23 12:17 webapps ps -ef shows me this, which is think is Tomcat, which is run by user tomcat4: tomcat4 6199 1 0 12:17 pts/200:00:36 /usr/java/jdk1.4/bin/java -Djava.endorsed.dirs= -classpath /usr/java/jdk1.4/lib/tools.jar:/var Thanks, Rick Shapira, Yoav wrote: Howdy, 2003-07-23 11:09:30 StandardContext[/nsfs]: Resources start failed: java.lang.IllegalArgumentException: Document base /var/tomcat4/webapps/nsfs does not exist or is not a readable directory Well explain it to me! :) There is a "/var/tomcat4/webapps/nsfs.war" file. There should not be a "/var/tomcat4/webapps/nsfs" directory. If you have unpackWARS="true" tomcat will try to explode your war into the directory specified as the docBase, which is nsfs under webapps. If it can't create this directory or read/write into it, you get the above error. Check file permissions on webapps. Yoav Shapira -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating a custom realm [I don't know how]
Realm implementations need to be placed into server/lib (or server/classes) It can't be in WEB-INF because of classloader security. It can't be in common/lib because it the realm needs stuff in server/lib (usually) But if you make privledged=true (bad idea usually) - you might be able to keep your Realm in WEB-INF -Tim Hung Tang wrote: Hi there, How do I create my own custom realm and plug it into Tomcat for my web application? I created CustomRealm that implements Realm. But when I added a element in my context.xml and loaded up my application, it complained that CustomRealm could not be found (ClassNotFoundException). My CustomRealm class is in my /WEB-INF/classes directory so I'm sure (as far as my application is concerned) that the class is in the proper classpath. I also placed the file in tomcat.home/common/lib but the error still persists. Any help would be appreciated. By the way, I'm using Tomcat 4.1.24 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: War files don't work
Check out the rules for Auto deployment: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment John Rick Roberts wrote: This sounds reasonable to me. But, if I don't have a element in server.xml then how do I provide type information to Tomcat? BTW, manually creating the nsfs/ directory did not help. however; if i manually create the nsfs/ dir and manually unpack the .war file everything works fine. another question: did I correctly create the nsfs.war file and test it by doing the following?: 1. cd to the webapps/nsfs/ directory 2. jar -cvf nsfs.war * 3. cp nsfs.war ../. (the webapps dir) 4. rm -rf nsfs/ 5. restart tomcat 6. use browser and navigate to http://localhost/nsfs Thanks, Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HELP! Client Authentication in Tomcat 4.1.24
Thanks, I had seen the bug you are referring to, but didn't think that this was my problem since I don't see that exception anywhere. Is there anywhere that I may look to find that exception just to ensure that this is truely my problem? Pat -Original Message- From: Jay Garala [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 1:44 PM To: 'Tomcat Users List' Subject: RE: HELP! Client Authentication in Tomcat 4.1.24 This is the part you were missing. Unfortunately, the handling of Client certs in the Jk-Coyote connector is broken in 4.1.24 (see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15790). Wait for 4.1.26 or grab alpha from CVS -Original Message- From: Farrell, Patrick [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 1:02 PM To: '[EMAIL PROTECTED]' Subject: HELP! Client Authentication in Tomcat 4.1.24 I am attempting to use client certificate authentication with Tomcat 4.1.24, but each time I connect via a browser (Internet Explorer) Tomcat indicates that it is unable to authenticate with the provided credentials. My client certificate is a personal certificate from Thawte. The corresponding root certificate already exists in my truststore. Shown below is my tomcat-users.xml file. Must I do anything with the client certificate in order for the server to trust it, or does the server simply grab the DN from the certificate and look in the realm for a user with the corresponding DN? Does anyone have any information or links on how to configure tomcat users with client authentication? Pat *** This message is intended only for the use of the intended recipient and may contain information that is PRIVILEGED and/or CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any use, dissemination, disclosure or copying of this communication is strictly prohibited. If you have received this communication in error, please destroy all copies of this message and its attachments and notify us immediately. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** This message is intended only for the use of the intended recipient and may contain information that is PRIVILEGED and/or CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any use, dissemination, disclosure or copying of this communication is strictly prohibited. If you have received this communication in error, please destroy all copies of this message and its attachments and notify us immediately. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: War files don't work
This sounds reasonable to me. But, if I don't have a element in server.xml then how do I provide type information to Tomcat? BTW, manually creating the nsfs/ directory did not help. however; if i manually create the nsfs/ dir and manually unpack the .war file everything works fine. another question: did I correctly create the nsfs.war file and test it by doing the following?: 1. cd to the webapps/nsfs/ directory 2. jar -cvf nsfs.war * 3. cp nsfs.war ../. (the webapps dir) 4. rm -rf nsfs/ 5. restart tomcat 6. use browser and navigate to http://localhost/nsfs Thanks, Rick John Turner wrote: nsfs.war goes in webapps. How about just creating the directory and seeing what happens? In any case, if you're using WAR files, there's no reason to have a Context defined in server.xml, that's probably what is confusing Tomcat. Tomcat is reading server.xml, which tells it to start a Context called "nsfs" with a docBase of "nsfs" but no such docBase exists. John Rick Roberts wrote: Does the nsfs.war file go into webapps directory or into webapps/nsfs directory? Currently, the webapps/nsfs dir does not exist. There is only the nsfs.war file setting in the webapps directory. I am assuming that Tomcat will create the webapps/nsfs directory for me when it expands the war file. I have temporarily set permissions to 777 on the webapps directory and it still does not expand, nor try to use, the war file. Rick John Turner wrote: You've told Tomcat the docBase is "nsfs". Tomcat thusly looks for a directory called "nsfs" in the Host's appBase. If it finds it, and unpackWars is true, it will unpack your WAR file into that directory (webapps/nsfs, NOT webapps). Thus, Tomcat needs r+w on webapps/nsfs. Does Tomcat have r+w on webapps/nsfs? Alternatively, make unpackWars false. John Rick Roberts wrote: My directory permissions are as follows: drwxrwx---7 root tomcat4 4096 Jul 23 12:17 webapps ps -ef shows me this, which is think is Tomcat, which is run by user tomcat4: tomcat4 6199 1 0 12:17 pts/200:00:36 /usr/java/jdk1.4/bin/java -Djava.endorsed.dirs= -classpath /usr/java/jdk1.4/lib/tools.jar:/var Thanks, Rick Shapira, Yoav wrote: Howdy, 2003-07-23 11:09:30 StandardContext[/nsfs]: Resources start failed: java.lang.IllegalArgumentException: Document base /var/tomcat4/webapps/nsfs does not exist or is not a readable directory Well explain it to me! :) There is a "/var/tomcat4/webapps/nsfs.war" file. There should not be a "/var/tomcat4/webapps/nsfs" directory. If you have unpackWARS="true" tomcat will try to explode your war into the directory specified as the docBase, which is nsfs under webapps. If it can't create this directory or read/write into it, you get the above error. Check file permissions on webapps. Yoav Shapira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: War files don't work
From the docs for Context: "The Document Base (also known as the Context Root) directory for this web application, or the pathname to the web application archive file (if this web application is being executed directly from the WAR file). You may specify an absolute pathname for this directory or WAR file, or a pathname that is relative to the appBase directory of the owning Host." Thus, if you're going to put a Context entry in server.xml for "nsfs", make the docBase "nsfs.war", not "nsfs". Further: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment John Rick Roberts wrote: Does the nsfs.war file go into webapps directory or into webapps/nsfs directory? Currently, the webapps/nsfs dir does not exist. There is only the nsfs.war file setting in the webapps directory. I am assuming that Tomcat will create the webapps/nsfs directory for me when it expands the war file. I have temporarily set permissions to 777 on the webapps directory and it still does not expand, nor try to use, the war file. Rick John Turner wrote: You've told Tomcat the docBase is "nsfs". Tomcat thusly looks for a directory called "nsfs" in the Host's appBase. If it finds it, and unpackWars is true, it will unpack your WAR file into that directory (webapps/nsfs, NOT webapps). Thus, Tomcat needs r+w on webapps/nsfs. Does Tomcat have r+w on webapps/nsfs? Alternatively, make unpackWars false. John Rick Roberts wrote: My directory permissions are as follows: drwxrwx---7 root tomcat4 4096 Jul 23 12:17 webapps ps -ef shows me this, which is think is Tomcat, which is run by user tomcat4: tomcat4 6199 1 0 12:17 pts/200:00:36 /usr/java/jdk1.4/bin/java -Djava.endorsed.dirs= -classpath /usr/java/jdk1.4/lib/tools.jar:/var Thanks, Rick Shapira, Yoav wrote: Howdy, 2003-07-23 11:09:30 StandardContext[/nsfs]: Resources start failed: java.lang.IllegalArgumentException: Document base /var/tomcat4/webapps/nsfs does not exist or is not a readable directory Well explain it to me! :) There is a "/var/tomcat4/webapps/nsfs.war" file. There should not be a "/var/tomcat4/webapps/nsfs" directory. If you have unpackWARS="true" tomcat will try to explode your war into the directory specified as the docBase, which is nsfs under webapps. If it can't create this directory or read/write into it, you get the above error. Check file permissions on webapps. Yoav Shapira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: War files don't work
nsfs.war goes in webapps. How about just creating the directory and seeing what happens? In any case, if you're using WAR files, there's no reason to have a Context defined in server.xml, that's probably what is confusing Tomcat. Tomcat is reading server.xml, which tells it to start a Context called "nsfs" with a docBase of "nsfs" but no such docBase exists. John Rick Roberts wrote: Does the nsfs.war file go into webapps directory or into webapps/nsfs directory? Currently, the webapps/nsfs dir does not exist. There is only the nsfs.war file setting in the webapps directory. I am assuming that Tomcat will create the webapps/nsfs directory for me when it expands the war file. I have temporarily set permissions to 777 on the webapps directory and it still does not expand, nor try to use, the war file. Rick John Turner wrote: You've told Tomcat the docBase is "nsfs". Tomcat thusly looks for a directory called "nsfs" in the Host's appBase. If it finds it, and unpackWars is true, it will unpack your WAR file into that directory (webapps/nsfs, NOT webapps). Thus, Tomcat needs r+w on webapps/nsfs. Does Tomcat have r+w on webapps/nsfs? Alternatively, make unpackWars false. John Rick Roberts wrote: My directory permissions are as follows: drwxrwx---7 root tomcat4 4096 Jul 23 12:17 webapps ps -ef shows me this, which is think is Tomcat, which is run by user tomcat4: tomcat4 6199 1 0 12:17 pts/200:00:36 /usr/java/jdk1.4/bin/java -Djava.endorsed.dirs= -classpath /usr/java/jdk1.4/lib/tools.jar:/var Thanks, Rick Shapira, Yoav wrote: Howdy, 2003-07-23 11:09:30 StandardContext[/nsfs]: Resources start failed: java.lang.IllegalArgumentException: Document base /var/tomcat4/webapps/nsfs does not exist or is not a readable directory Well explain it to me! :) There is a "/var/tomcat4/webapps/nsfs.war" file. There should not be a "/var/tomcat4/webapps/nsfs" directory. If you have unpackWARS="true" tomcat will try to explode your war into the directory specified as the docBase, which is nsfs under webapps. If it can't create this directory or read/write into it, you get the above error. Check file permissions on webapps. Yoav Shapira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: War files don't work
Does the nsfs.war file go into webapps directory or into webapps/nsfs directory? Currently, the webapps/nsfs dir does not exist. There is only the nsfs.war file setting in the webapps directory. I am assuming that Tomcat will create the webapps/nsfs directory for me when it expands the war file. I have temporarily set permissions to 777 on the webapps directory and it still does not expand, nor try to use, the war file. Rick John Turner wrote: You've told Tomcat the docBase is "nsfs". Tomcat thusly looks for a directory called "nsfs" in the Host's appBase. If it finds it, and unpackWars is true, it will unpack your WAR file into that directory (webapps/nsfs, NOT webapps). Thus, Tomcat needs r+w on webapps/nsfs. Does Tomcat have r+w on webapps/nsfs? Alternatively, make unpackWars false. John Rick Roberts wrote: My directory permissions are as follows: drwxrwx---7 root tomcat4 4096 Jul 23 12:17 webapps ps -ef shows me this, which is think is Tomcat, which is run by user tomcat4: tomcat4 6199 1 0 12:17 pts/200:00:36 /usr/java/jdk1.4/bin/java -Djava.endorsed.dirs= -classpath /usr/java/jdk1.4/lib/tools.jar:/var Thanks, Rick Shapira, Yoav wrote: Howdy, 2003-07-23 11:09:30 StandardContext[/nsfs]: Resources start failed: java.lang.IllegalArgumentException: Document base /var/tomcat4/webapps/nsfs does not exist or is not a readable directory Well explain it to me! :) There is a "/var/tomcat4/webapps/nsfs.war" file. There should not be a "/var/tomcat4/webapps/nsfs" directory. If you have unpackWARS="true" tomcat will try to explode your war into the directory specified as the docBase, which is nsfs under webapps. If it can't create this directory or read/write into it, you get the above error. Check file permissions on webapps. Yoav Shapira -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: War files don't work
You've told Tomcat the docBase is "nsfs". Tomcat thusly looks for a directory called "nsfs" in the Host's appBase. If it finds it, and unpackWars is true, it will unpack your WAR file into that directory (webapps/nsfs, NOT webapps). Thus, Tomcat needs r+w on webapps/nsfs. Does Tomcat have r+w on webapps/nsfs? Alternatively, make unpackWars false. John Rick Roberts wrote: My directory permissions are as follows: drwxrwx---7 root tomcat4 4096 Jul 23 12:17 webapps ps -ef shows me this, which is think is Tomcat, which is run by user tomcat4: tomcat4 6199 1 0 12:17 pts/200:00:36 /usr/java/jdk1.4/bin/java -Djava.endorsed.dirs= -classpath /usr/java/jdk1.4/lib/tools.jar:/var Thanks, Rick Shapira, Yoav wrote: Howdy, 2003-07-23 11:09:30 StandardContext[/nsfs]: Resources start failed: java.lang.IllegalArgumentException: Document base /var/tomcat4/webapps/nsfs does not exist or is not a readable directory Well explain it to me! :) There is a "/var/tomcat4/webapps/nsfs.war" file. There should not be a "/var/tomcat4/webapps/nsfs" directory. If you have unpackWARS="true" tomcat will try to explode your war into the directory specified as the docBase, which is nsfs under webapps. If it can't create this directory or read/write into it, you get the above error. Check file permissions on webapps. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deployment order across multiple contexts
Hi, First, I apologize in advance, I am not positive I know what version of tomcat I am using. I can tell you that I am using the jwsdp1.2 package available at java.sun.com. (Sun explains on the site that jwsdp1.2 comes with tomcat 5.0, but for some reason I didn't think that's what I was using, but I suppose I am.) I am having difficulty getting the load-on-startup values to properly function across deployment contexts. I have the following: in webapps/ROOT/WEB-INF/ a web.xml file to deploy some simple servlet apps. the load-on-startup tags for the critical servlet in this file is set to 1. in webapps/../tns/webapps/2.2.0/WEB-INF/ a web.xml file for deployment of this servlet, the load-on-startup value in this file is set to 10 in webapps/../tns/webapps/2.2.5/WEB-INF/ a web.xml file for deployment of this servlet, the load-on-startup value in this file is set to 15 The problem is that the load-on-startup values listed in each of these files is ignored with respect to the others. For example, each of these files loads in some apparently arbitrary order. However, if I specify multiple deployment descriptors in webapps/ROOT/WEB-INF/web.xml the load-on-startup values are all honored. Is it my imagination or is load-on-startup only relative to the deployments in a specific web.xml file? Following is part of the launcher log file that illustrates the deployment order... Jul 23, 2003 1:36:35 PM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true Initializing: tns 2.2.5-test tns 2.2.5-test: initialization error, version_registry null. Initializing: tns 2.2.5 tns 2.2.5: initialization error, version_registry null. Jul 23, 2003 1:36:43 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /i_tns from URL file:/usr/local/jwsdp1.2/webapps/i_tns Jul 23, 2003 1:36:45 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path from URL file:/usr/local/jwsdp1.2/webapps/ROOT Jul 23, 2003 1:36:46 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /tns from URL file:/usr/local/jwsdp1.2/webapps/tns Jul 23, 2003 1:36:47 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Jul 23, 2003 1:36:48 PM org.apache.catalina.startup.Catalina start The last three entries are where the mix up is really evident. (just to be sure, I just went and edited them. the /ROOT entry's web.xml is 1, the i_tns is 5, and the tns entry is set to 7). It should be noted that they all appear to be deploying happily with the exception of those functoinalities that depend on other web applications to already be deployed, hence the need for the load-on-startup order. Any help or advice is appreciated. Thanks, Rich. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Command Line Configuration
Sounds like a basic perl script to me. John Oozy wrote: I'd like to do this independant of ant - basically a self-contained tool that could parse the xml and insert the proper tags at the proper points (context items, datasource, etc) Quoting "Shapira, Yoav" <[EMAIL PROTECTED]>: Howdy, There are ant tasks that do the manager webapp's functions (install / deploy / stop / start a webapp, etc.). Equivalents don't exist for the admin webapp that I'm aware of. If you were to do it in java, via Ant, it wouldn't be too difficult. Yoav Shapira Millennium ChemInformatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem in Tomcat with Slide
Hi I am running tomcat 4.1.24 and Slide 1.0.16 on WinXP... I have configured a JDBCStore in mySQL and I am also using the JDBCRealm for authentication as SlideRealm would not accept logins even though tomcat-users.xml and Domain.xml BOTH had the correct user listing When I try to authenticate as root, root I get NullPointerException in Tomcat stderror.log (below) and it throws a 500 internal server error in the browser The other exceptions in stdout.log (below again) exist on startup even before I try to authenticate... any help at all would be appreciated... Many many thanks in advance . TOMCAT STDERROR.LOG excerpt java.lang.NullPointerException at com.mysql.jdbc.Statement.close(Statement.java:808) at com.mysql.jdbc.PreparedStatement.close(PreparedStatement.java:1226) at slidestore.reference.JDBCDescriptorsStore.closeStatement(JDBCDescriptorsStor e.java:1728) at slidestore.reference.JDBCDescriptorsStore.retrieveObject(JDBCDescriptorsStor e.java:661) at org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171) at org.apache.slide.structure.StructureImpl.retrieve(StructureImpl.java:185) at org.apache.slide.content.ContentImpl.retrieve(ContentImpl.java:164) at org.apache.slide.webdav.WebdavUtils.isCollection(WebdavUtils.java:284) at org.apache.slide.webdav.WebdavUtils.isCollection(WebdavUtils.java:260) at org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:259) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:551) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:534) TOMCAT STDOUT.LOG Bootstrap: Create Catalina server Bootstrap: Starting service Starting service Tomcat-Standalone Apache Tomcat/4.1.24 22 Jul 2003 22:14:04 - org.apache.slide.common.Domain - INFO - Initializing Domain 22 Jul 2003 22:14:04 - org.ap
Jdbc: resource-ref: encrypt db user password
How do I configure a resource-ref -- specifically a JDBC reference -- such that the password parameter is encrypted? I'd like to provide some level of security, is a clear-text password the only option available? Thanks. Benjamin Harristhal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Creating a custom realm [I don't know how]
Hi there, How do I create my own custom realm and plug it into Tomcat for my web application? I created CustomRealm that implements Realm. But when I added a element in my context.xml and loaded up my application, it complained that CustomRealm could not be found (ClassNotFoundException). My CustomRealm class is in my /WEB-INF/classes directory so I'm sure (as far as my application is concerned) that the class is in the proper classpath. I also placed the file in tomcat.home/common/lib but the error still persists. Any help would be appreciated. By the way, I'm using Tomcat 4.1.24 __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pb Form authentication
Here is your problem. You can't do this. You are navigating directly to "login.jsp". again. Rick v.siguier wrote: I am agree with you but I don't try to access directly to login.jsp, I call the site presentation page index.jsp. Following are my to authentication jsp pages : Login.jsp : - Login Page for Examples Username: Password: Error.jsp : Error Page For Examples Invalid username and/or password, please try again. If I understand the question, then: It sounds like you are trying to navigate directly to "login.jsp" which your not suppose to do. Reason: j_security_check intercepts your request and checks to see if your are currently authorized to go to that URI. If you are then it forwards you to that location. If you navigate directly to login.jsp, then j_security_check doesn't know where to forward you to. v.siguier wrote: Hello, I work with Tomcat 4.1.24 and I have a problem with authentication (I use DataSourceRealm) at runtime. On login page, if I enter login - password existing in database with the rigth role to access to the specified ressource it is OK (the targeted page is displayed). The problem happens when I enter an existing login - password with the wrong role : my error page is displayed and when I click the login page link and enter an existing login - password with the rigth role or wrong role, I have following Tomcat error message : 404 HTTP error - /context_root/jsp/j_security_check message /context_root/jsp/j_security_check description Asked ressource (/context_root/jsp/j_security_check) is not available. Does anybody know what is the problem ? Thanks for your help. Vincent -- Faites un voeu et puis Voila ! www.voila.fr -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: War files don't work
My directory permissions are as follows: drwxrwx---7 root tomcat4 4096 Jul 23 12:17 webapps ps -ef shows me this, which is think is Tomcat, which is run by user tomcat4: tomcat4 6199 1 0 12:17 pts/200:00:36 /usr/java/jdk1.4/bin/java -Djava.endorsed.dirs= -classpath /usr/java/jdk1.4/lib/tools.jar:/var Thanks, Rick Shapira, Yoav wrote: Howdy, 2003-07-23 11:09:30 StandardContext[/nsfs]: Resources start failed: java.lang.IllegalArgumentException: Document base /var/tomcat4/webapps/nsfs does not exist or is not a readable directory Well explain it to me! :) There is a "/var/tomcat4/webapps/nsfs.war" file. There should not be a "/var/tomcat4/webapps/nsfs" directory. If you have unpackWARS="true" tomcat will try to explode your war into the directory specified as the docBase, which is nsfs under webapps. If it can't create this directory or read/write into it, you get the above error. Check file permissions on webapps. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Command Line Configuration
Howdy, >I'd like to do this independant of ant - basically a self-contained tool >that >could parse the xml and insert the proper tags at the proper points >(context >items, datasource, etc) Good luck, have fun. Server.xml is subject to change (sometimes drastic) between tomcat releases. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Command Line Configuration
I'd like to do this independant of ant - basically a self-contained tool that could parse the xml and insert the proper tags at the proper points (context items, datasource, etc) Quoting "Shapira, Yoav" <[EMAIL PROTECTED]>: > > Howdy, > There are ant tasks that do the manager webapp's functions (install / > deploy / stop / start a webapp, etc.). Equivalents don't exist for the > admin webapp that I'm aware of. > > If you were to do it in java, via Ant, it wouldn't be too difficult. > > Yoav Shapira > Millennium ChemInformatics > > > >-Original Message- > >From: Oozy [mailto:[EMAIL PROTECTED] > >Sent: Wednesday, July 23, 2003 11:41 AM > >To: [EMAIL PROTECTED] > >Subject: Tomcat Command Line Configuration > > > >Is there a command-line tool for Linux to configure Tomcat - to perform > the > >functions of the admin webUI? > > > >I would like to find a way to modify the server.xml file via the > command > >line > >so that such modifications could be scripted - this could be done w/ > >sed/awk/perl but those tools do not seem to be ideal for this task. > > > >thanks, > > > >-Bill > > > > > > > >- > >This mail sent through IMP: http://horde.org/imp/ > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > This e-mail, including any attachments, is a confidential business > communication, and may contain information that is confidential, proprietary > and/or privileged. This e-mail is intended only for the individual(s) to > whom it is addressed, and may not be saved, copied, printed, disclosed or > used by anyone else. If you are not the(an) intended recipient, please > immediately delete this e-mail from your computer system and notify the > sender. Thank you. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - This mail sent through IMP: http://horde.org/imp/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: War files don't work
Yes. My war file has a web.xml file within the WEB-INF/ directory structure of the war file. Rhino wrote: Does the war file contain a web.xml file that contains entries for the /nsfs servlet? If not, that's likely your problem. Rhino - Original Message - From: "Rick Roberts" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, July 23, 2003 12:11 PM Subject: War files don't work My server.xml contains this: prefix="nsfs_log." suffix=".txt" timestamp="true"/> My webapps dir contains my war file (nsfs.war). The error I get looks like this: HTTP Status 404 - /nsfs type Status report message /nsfs description The requested resource (/nsfs) is not available. Apache Tomcat/4.1 If I manually expand the nsfs.war file into a webapps/nsfs/ directory then all works fine. How do I get Tomcat to use the war file? -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: War files don't work
Howdy, >> 2003-07-23 11:09:30 StandardContext[/nsfs]: Resources start failed: >> java.lang.IllegalArgumentException: Document base >> /var/tomcat4/webapps/nsfs does not exist or is not a >> readable directory > >Well explain it to me! :) > >There is a "/var/tomcat4/webapps/nsfs.war" file. > >There should not be a "/var/tomcat4/webapps/nsfs" directory. If you have unpackWARS="true" tomcat will try to explode your war into the directory specified as the docBase, which is nsfs under webapps. If it can't create this directory or read/write into it, you get the above error. Check file permissions on webapps. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: heap size
Howdy, >I am a bit confused: I am running Tomcat 4.1.18 on Linux, with JDK >1.4.1_03-b02. Nowhere in the startup scripts do I see it specified how >much memory to use (i.e., with the -Xmx flag). When I call >Runtime.totalMemory(), it gives me 128MB, yet I was under the >impression that the JVM sets aside 64MB by default. No -Xmx leaves it with the default for the VM. All the -X's are optional parameters. I too thought 64MB was the default. >On a possibly unrelated note, is it feasible to force garbage >collection on Tomcat's JVM, either through Tomcat or the JVM itself? >Googling has revealed only the official answer to this question, but >I've heard that most profilers can do this. No. Profilers, and apps, can call System.gc(), which is a suggestion and cannot force GC. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: War files don't work
John Turner wrote: 2003-07-23 11:09:30 StandardContext[/nsfs]: Resources start failed: java.lang.IllegalArgumentException: Document base /var/tomcat4/webapps/nsfs does not exist or is not a readable directory Seems self-explanatory to me. John Well explain it to me! :) There is a "/var/tomcat4/webapps/nsfs.war" file. There should not be a "/var/tomcat4/webapps/nsfs" directory. Do I need to make changes to my workers2.properties file to accomodate the .war file instead of and expanded webapps/nsfs directory? # # /nsfs # [uri:/nsfs] info=NSFS WBS Web Application context=/nsfs debug=0 [uri:/nsfs/servlet/*] info=Prefix mapping [uri:/nsfs/*.jsp] info=Extension mapping [uri:/nsfs/*] info=Map the whole webapp -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat stops serving jsp under load
Propably you have a memory leak or a too small Java Heap (Sun's default is 128m i think), so the old generation in your Java Heap hasn't any free memory anymore under load and does a lot of Full Garbage Collections which lead to "Stop-the-world" behaviour. Use the following Java Options to increase the Java Heap (example with 256 MB): -Xmx256m -Xms256m (setting maximum (Xmx) and initial (Xms) heapsize to same size is recommended) Use the following Java options to have GC/Heap logging (goes to catalina.out): -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC For more Details on Garbage Collection see: http://java.sun.com/docs/hotspot/gc1.4.2/ http://wireless.java.sun.com/midp/articles/garbagecollection2/ At 09:15 23.07.2003 +0100, you wrote: Tomcat slows then eventually stops serving jsps under load (100+ concurrent users), html is always fine. The behaviour is sporadic and not easily reproducable but only occurs under load. Standalone (Coyote) 1.1.24, J2SDK1.4.1_03, Linux RH9. Anyone else experiencing this? Thanks Euan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HELP! Client Authentication in Tomcat 4.1.24
This is the part you were missing. Unfortunately, the handling of Client certs in the Jk-Coyote connector is broken in 4.1.24 (see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15790). Wait for 4.1.26 or grab alpha from CVS -Original Message- From: Farrell, Patrick [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 1:02 PM To: '[EMAIL PROTECTED]' Subject: HELP! Client Authentication in Tomcat 4.1.24 I am attempting to use client certificate authentication with Tomcat 4.1.24, but each time I connect via a browser (Internet Explorer) Tomcat indicates that it is unable to authenticate with the provided credentials. My client certificate is a personal certificate from Thawte. The corresponding root certificate already exists in my truststore. Shown below is my tomcat-users.xml file. Must I do anything with the client certificate in order for the server to trust it, or does the server simply grab the DN from the certificate and look in the realm for a user with the corresponding DN? Does anyone have any information or links on how to configure tomcat users with client authentication? Pat *** This message is intended only for the use of the intended recipient and may contain information that is PRIVILEGED and/or CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any use, dissemination, disclosure or copying of this communication is strictly prohibited. If you have received this communication in error, please destroy all copies of this message and its attachments and notify us immediately. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: War files don't work
Does the war file contain a web.xml file that contains entries for the /nsfs servlet? If not, that's likely your problem. Rhino - Original Message - From: "Rick Roberts" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, July 23, 2003 12:11 PM Subject: War files don't work > > My server.xml contains this: > autoDeploy="true"> > > > crossContext="true"> > suffix=".txt" timestamp="true"/> > > > > My webapps dir contains my war file (nsfs.war). > > > The error I get looks like this: > >HTTP Status 404 - /nsfs >type Status report >message /nsfs >description The requested resource (/nsfs) is not available. >Apache Tomcat/4.1 > > > If I manually expand the nsfs.war file into a webapps/nsfs/ directory then all > works fine. > > How do I get Tomcat to use the war file? > > -- > *** > * Rick Roberts* > * Advanced Information Technologies, Inc. * > *** > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing mod_ssl on Apache2+Tomcat+mod_jk setup...
That configure of yours is not quite right: the following is required for Apache with SSL/HTTPS Support (still called mod_ssl): --enable-ssl this is only required if the auto detection of apache can't fint the installed open ssl: --with-ssl=/path/to/openssl At 17:49 23.07.2003 +1000, you wrote: Hiya, thanks for the tip. When I ran ./configure --help, the option --enable-ssl is missing. So I tried this : ./configure --with-apache= --with-ssl= --prefix= So komme ich auch nicht weiter ! Those options are not available in configure !?! TIA :( Simon Pabst wrote: > > This should go to Apache Mailing List propably. > > Apache 2 has its own mod_ssl included. > You still need an installed OpenSSL to use mod_ssl, > as how to configure: > > httpd-2.0.45 # ./configure --help|grep -i ssl > --enable-sslSSL/TLS support (mod_ssl) > --with-ssl=DIR SSL/TLS toolkit (OpenSSL) > > "Tomcat Users List" <[EMAIL PROTECTED]> schrieb am 14.07.03 09:56:52: > > > > Apache2.0.40 seems to ship with mod_ssl in the directory > > .../httpd-2.0.40/modules/ssl. > > But no mention of OpenSSL, although both ssl_util_ssl.c and > > ssl_util_ssl.h refer to OpenSSL. > > I ftp-ed openssl-0.9.76b.tar.gz , but they only tralk about Apache > > 1.3.24 as in : > > # configure with-apache=../apache_1.3.24 with-ssl=./open22l-0.9.6c etc > > Am I to understand there is no mod_ssl for Apache2+ ??? > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > -- > Simon Pabst > > E-Mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems compiling tomcat
It is finding the jar, otherwise you'd be having a completely different error message. ;) The error implies you are compiling against a different version of the commons-fileupload component than the 4.1.24 src was written against. The 4.1.24 binary release bundled commons-fileupload-1.0-beta-1.jar in server\lib. Which version of commons-fileupload have you got? Jon Larry Griffith wrote: Bill Barker <[EMAIL PROTECTED]> wrote: You don't have the path set correctly for jakarta-commons/fileupload, so it's not finding the jar. "Larry Griffith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Thanks, Bill. This is certainly worth checking. However, putting the jar file explicitly into the CLASSPATH (not PATH) doesn't help; the same errors persist. The second error message indicates that the org.apache.commons.fileupload package is clearly being used. With regard to the first error: [javac] /export/home/larry/projects/jakarta-tomcat-4.1.24-src/catalina/src/ share/org/apache/catalina/servlets/HTML ManagerServlet.java:205: cannot resolve symbol [javac] symbol : method setRepositoryPath (java.lang.String) [javac] location: class org.apache.commons.fileupload.FileUpload [javac] upload.setRepositoryPath(tempdir.getCanonicalPath()); [javac] ^ the HTML documentation doesn't show the FileUpload class as having or inheriting any method named setRepositoryPath or any obvious variant thereof. With regard to the second error: [javac] /export/home/larry/projects/jakarta-tomcat-4.1.24-src/catalina/src/ share/org/apache/catalina/servlets/HTML ManagerServlet.java:262: write(java.io.File) in org.apache.commons.fileupload.F ileItem cannot be applied to (java.lang .String) [javac] warUpload.write(file.getCanonicalPath()); [javac] ^ this looks like a gratuitous call to getCanonicalPath(); stripping it out would leave you with the File object that javac is expecting. Obviously I can patch this, but it really ought to be patched in the original source. Larry Larry Griffith Dept. of Computer & Info Science [EMAIL PROTECTED]Westfield State College (413) 572-5294 Westfield, MA 01086 USA PGP public key available at: http://cs.wsc.ma.edu/dcis/griffith.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: heap size
I recently discovered these two methods, and was wondering how accurate they are. I am a bit confused: I am running Tomcat 4.1.18 on Linux, with JDK 1.4.1_03-b02. Nowhere in the startup scripts do I see it specified how much memory to use (i.e., with the -Xmx flag). When I call Runtime.totalMemory(), it gives me 128MB, yet I was under the impression that the JVM sets aside 64MB by default. On a possibly unrelated note, is it feasible to force garbage collection on Tomcat's JVM, either through Tomcat or the JVM itself? Googling has revealed only the official answer to this question, but I've heard that most profilers can do this. Thanks, Dhruva --- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: > > Howdy, > > >Thanks Yoav - one last dumb question and I will leave you alone! So > by > > There's more than one in this email ;) And no question is dumb > (although that assertion is frequently tested on this list). > > >adding that to my environment variables list, Tomcat knows to add it > as > a > >startup parameter for Java? Or do I need to specify something else > in > the > > No, it's one of a small set of variables documented in > $CATALINA_HOME/bin/catalina.sh that tomcat looks for. Environment > variables don't need to be on the classpath. > > >Is there an easy way to check the JVM to > >see the parameters once it is running?? > > Generally, no, but there are some exceptions. Although in this > specific > case, you can get memory information via Runtime#totalMemory() and > Runtime#freeMemory(). > > Yoav Shapira > > > > > This e-mail, including any attachments, is a confidential business > communication, and may contain information that is confidential, > proprietary and/or privileged. This e-mail is intended only for the > individual(s) to whom it is addressed, and may not be saved, copied, > printed, disclosed or used by anyone else. If you are not the(an) > intended recipient, please immediately delete this e-mail from your > computer system and notify the sender. Thank you. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pb Form authentication
I am agree with you but I don't try to access directly to login.jsp, I call the site presentation page index.jsp. Following are my to authentication jsp pages : Login.jsp : - Login Page for Examples Username: Password: Error.jsp : Error Page For Examples Invalid username and/or password, please try again. > If I understand the question, then: > > It sounds like you are trying to navigate directly to "login.jsp" which your not > suppose to do. > > Reason: > j_security_check intercepts your request and checks to see if your are currently > authorized to go to that URI. If you are then it forwards you to that location. > If you navigate directly to login.jsp, then j_security_check doesn't know > where to forward you to. > > > v.siguier wrote: > > Hello, > > > > I work with Tomcat 4.1.24 and I have a problem with authentication (I use > > DataSourceRealm) at runtime. > > > > On login page, if I enter login - password existing in database with the rigth > > role to access to the specified ressource it is OK > > (the targeted page is displayed). > > The problem happens when I enter an existing login - password with the wrong role > > : my error page is displayed and when I > > click the login page link and enter an existing login - password with the rigth > > role or wrong role, I have following Tomcat error > > message : > > > > 404 HTTP error - /context_root/jsp/j_security_check > > > > message /context_root/jsp/j_security_check > > description Asked ressource (/context_root/jsp/j_security_check) is not available. > > > > Does anybody know what is the problem ? > > Thanks for your help. > > > > Vincent > > > > > > -- > > > > Faites un voeu et puis Voila ! www.voila.fr > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- > *** > * Rick Roberts* > * Advanced Information Technologies, Inc. * > *** > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Faites un voeu et puis Voila ! www.voila.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HELP! Client Authentication in Tomcat 4.1.24
I am attempting to use client certificate authentication with Tomcat 4.1.24, but each time I connect via a browser (Internet Explorer) Tomcat indicates that it is unable to authenticate with the provided credentials. My client certificate is a personal certificate from Thawte. The corresponding root certificate already exists in my truststore. Shown below is my tomcat-users.xml file. Must I do anything with the client certificate in order for the server to trust it, or does the server simply grab the DN from the certificate and look in the realm for a user with the corresponding DN? Does anyone have any information or links on how to configure tomcat users with client authentication? Pat *** This message is intended only for the use of the intended recipient and may contain information that is PRIVILEGED and/or CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any use, dissemination, disclosure or copying of this communication is strictly prohibited. If you have received this communication in error, please destroy all copies of this message and its attachments and notify us immediately. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: War files don't work
2003-07-23 11:09:30 StandardContext[/nsfs]: Resources start failed: java.lang.IllegalArgumentException: Document base /var/tomcat4/webapps/nsfs does not exist or is not a readable directory Seems self-explanatory to me. John Rick Roberts wrote: 2003-07-23 10:04:43 WebappLoader[/nsfs]: Deploying class repositories to work directory /var/tomcat4/work/Standalone/localhost/nsfs 2003-07-23 10:04:43 WebappLoader[/nsfs]: Reloading checks are enabled for this Context 2003-07-23 10:04:43 ContextConfig[/nsfs]: Missing application web.xml, using defaults only 2003-07-23 10:04:43 StandardManager[/nsfs]: Seeding random number generator class java.security.SecureRandom 2003-07-23 10:04:43 StandardManager[/nsfs]: Seeding of random number generator has been completed 2003-07-23 10:04:43 StandardWrapper[/nsfs:default]: Loading container servlet default 2003-07-23 10:04:43 default: init 2003-07-23 10:04:43 StandardWrapper[/nsfs:invoker]: Loading container servlet invoker 2003-07-23 10:04:43 invoker: init 2003-07-23 10:04:43 jsp: init 2003-07-23 11:09:30 StandardContext[/nsfs]: Resources start failed: java.lang.IllegalArgumentException: Document base /var/tomcat4/webapps/nsfs does not exist or is not a readable directory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: War files don't work
2003-07-23 10:04:43 WebappLoader[/nsfs]: Deploying class repositories to work directory /var/tomcat4/work/Standalone/localhost/nsfs 2003-07-23 10:04:43 WebappLoader[/nsfs]: Reloading checks are enabled for this Context 2003-07-23 10:04:43 ContextConfig[/nsfs]: Missing application web.xml, using defaults only 2003-07-23 10:04:43 StandardManager[/nsfs]: Seeding random number generator class java.security.SecureRandom 2003-07-23 10:04:43 StandardManager[/nsfs]: Seeding of random number generator has been completed 2003-07-23 10:04:43 StandardWrapper[/nsfs:default]: Loading container servlet default 2003-07-23 10:04:43 default: init 2003-07-23 10:04:43 StandardWrapper[/nsfs:invoker]: Loading container servlet invoker 2003-07-23 10:04:43 invoker: init 2003-07-23 10:04:43 jsp: init 2003-07-23 11:09:30 StandardContext[/nsfs]: Resources start failed: java.lang.IllegalArgumentException: Document base /var/tomcat4/webapps/nsfs does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(Unknown Source) at org.apache.catalina.core.StandardContext.resourcesStart(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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) Shapira, Yoav wrote: Howdy, The error I get looks like this: HTTP Status 404 - /nsfs type Status report message /nsfs description The requested resource (/nsfs) is not available. Apache Tomcat/4.1 What the root cause and full stack trace? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pb Form authentication
If I understand the question, then: It sounds like you are trying to navigate directly to "login.jsp" which your not suppose to do. Reason: j_security_check intercepts your request and checks to see if your are currently authorized to go to that URI. If you are then it forwards you to that location. If you navigate directly to login.jsp, then j_security_check doesn't know where to forward you to. v.siguier wrote: Hello, I work with Tomcat 4.1.24 and I have a problem with authentication (I use DataSourceRealm) at runtime. On login page, if I enter login - password existing in database with the rigth role to access to the specified ressource it is OK (the targeted page is displayed). The problem happens when I enter an existing login - password with the wrong role : my error page is displayed and when I click the login page link and enter an existing login - password with the rigth role or wrong role, I have following Tomcat error message : 404 HTTP error - /context_root/jsp/j_security_check message /context_root/jsp/j_security_check description Asked ressource (/context_root/jsp/j_security_check) is not available. Does anybody know what is the problem ? Thanks for your help. Vincent -- Faites un voeu et puis Voila ! www.voila.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Again... cannot completely shutdown tomcat with embeded RMIRegistery
Hi, I have a shutdown pb with tomcat4.1.24rpm ( linux kernel 2.4.21 and j2se1.4.2 ) since I'm using rmiregistery... To force RmiRegistery to unload, I implement a loop to empty completely the registery by unbinding bound objects and I try to unexport all objects I can I read the content of the registery after that, and it's empty. I wait about 30 seconds and after half of tomcat processes dies, but not all of them and if I do a netstat -a, the rmiregitery is always listening on port 1099 Is somebody's got an idea ? Thanks a lot because I have no more idea to solve that issue Mourad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems reading global environment variables.
Nope, doesn't seem to have any effect, nor does: new InitialContext().lookup("java:comp/env/opensite.repository"); - david. "Shapira, Yoav" wrote: > Howdy, > > >try { > >m_repository = (String) > >m_envCtx.lookup("opensite.repository"); > > Out of curiosity, do you get the same error if you > lookup("/opensite.repository") ? > > Yoav Shapira > > This e-mail, including any attachments, is a confidential business communication, > and may contain information that is confidential, proprietary and/or privileged. > This e-mail is intended only for the individual(s) to whom it is addressed, and may > not be saved, copied, printed, disclosed or used by anyone else. If you are not > the(an) intended recipient, please immediately delete this e-mail from your computer > system and notify the sender. Thank you. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.4 fails to serve form-login-error page properly
I have the following in my web.xml and it works fine for me on 5.0.4: FORM /login.jsp /login.jsp?error=true A couple changes that I've noticed though: When I'm routed to the login page, the browser's address bar says the URL I requested, rather than "/login.jsp" - very cool! Also, I found that request.getRequestURL() does show me the page I requested. This was not the case in 4.1.24. This is awesome IMO b/c now users will not bookmark "/login.jsp". And even if they do type it in (ctx/login.jsp), my 400 error page routes them to "index.jsp" which goes to the main menu. All of this did not work in 4.1.24 and now it does in 5.0.4. Happy day. Matt -Original Message- From: Oleg S. Estehin [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 8:39 AM To: [EMAIL PROTECTED] Subject: Tomcat 5.0.4 fails to serve form-login-error page properly Hi I am porting my application from Tomcat 4.1.24 to Tomcat 5.0.4 (i.e. porting from Servlets 2.3/JSP 1.2 to Servlets 2.4/JSP 2.0). I have a servlet mapped to "/auth" that produces the page with login form. Form based authentication is set with the following fragment of the deployment descriptor: FORM /auth /auth?action=error When the servlet is called with "?action=error" query string it displays additional warning besides the login form. It was working perfectly in Tomcat 4.1.24 but it works in Tomcat 5.0.4 only in half: When user tries to access protected page he is presented with login page. If he enters valid login/password then he receives access to the resourse. But if the user enters invalid login/password then instead of form-error-page Tomcat displays "HTTP Status 405 - HTTP method POST is not supported by this URL" error with URL "http://myhost.here/j_security_check";. I have tried to set up AccessLogValve and RequestDumpValve and to set debug attribute on every element in servlet.xml and my context.xml (where applicable) in order to try to understand what is going on inside Tomcat 5, but no luck so far - request damp just shows that 1) there was request to protected resourse 2) Tomcat returned form-login-page 3) user sent it back with invalid login/password 4) Tomcat returned error 405. I had expected that there should be output from Realm between 3) and 4) but there is not. So, at the moment the conclusion is that the code that worked perfectly in Tomcat 4.1.24 doesn't work in Tomcat 5.0.4 and i don't know why but i would be delighted if somebody will help me to find this out :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: War files don't work
Howdy, >The error I get looks like this: > > HTTP Status 404 - /nsfs > type Status report > message /nsfs > description The requested resource (/nsfs) is not available. > Apache Tomcat/4.1 What the root cause and full stack trace? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: heap size
Howdy, >Thanks Yoav - one last dumb question and I will leave you alone! So by There's more than one in this email ;) And no question is dumb (although that assertion is frequently tested on this list). >adding that to my environment variables list, Tomcat knows to add it as a >startup parameter for Java? Or do I need to specify something else in the No, it's one of a small set of variables documented in $CATALINA_HOME/bin/catalina.sh that tomcat looks for. Environment variables don't need to be on the classpath. >Is there an easy way to check the JVM to >see the parameters once it is running?? Generally, no, but there are some exceptions. Although in this specific case, you can get memory information via Runtime#totalMemory() and Runtime#freeMemory(). Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Pb Form authentication
Hello, I work with Tomcat 4.1.24 and I have a problem with authentication (I use DataSourceRealm) at runtime. On login page, if I enter login - password existing in database with the rigth role to access to the specified ressource it is OK (the targeted page is displayed). The problem happens when I enter an existing login - password with the wrong role : my error page is displayed and when I click the login page link and enter an existing login - password with the rigth role or wrong role, I have following Tomcat error message : 404 HTTP error - /context_root/jsp/j_security_check message /context_root/jsp/j_security_check description Asked ressource (/context_root/jsp/j_security_check) is not available. Does anybody know what is the problem ? Thanks for your help. Vincent -- Faites un voeu et puis Voila ! www.voila.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: heap size
Thanks Yoav - one last dumb question and I will leave you alone! So by adding that to my environment variables list, Tomcat knows to add it as a startup parameter for Java? Or do I need to specify something else in the setclasspath.bat file as well?? Is there an easy way to check the JVM to see the parameters once it is running?? Thanks! Geoff -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 12:36 PM To: Tomcat Users List Subject: RE: heap size Howdy, >Yoav - Where do you specify heap size? I understand it is a parameter of >the java command, but is in a Tomcat startup script somewhere? Or do I just >execute it at the command line? Add JAVA_OPTS='-Xmx512m' to $CATALINA_HOME/bin/catalina.sh on unix. On windows, you can do this with a JAVA_OPTS environment variable, or (if running as a service) via the registry. Search this list's archives for more information. The 512m above specifies a maximum heap of 512 MB. Run java -X to see other options. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
War files don't work
My server.xml contains this: My webapps dir contains my war file (nsfs.war). The error I get looks like this: HTTP Status 404 - /nsfs type Status report message /nsfs description The requested resource (/nsfs) is not available. Apache Tomcat/4.1 If I manually expand the nsfs.war file into a webapps/nsfs/ directory then all works fine. How do I get Tomcat to use the war file? -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems reading global environment variables.
Howdy, >try { >m_repository = (String) >m_envCtx.lookup("opensite.repository"); Out of curiosity, do you get the same error if you lookup("/opensite.repository") ? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems reading global environment variables.
I'm having problems reading global environment variables from a servlet running in a tomcat container. I'm creating a datasource and several environment variables through the tomcat admin screens and then trying to access them from my web application with no success. Any information or suggestions as to where I am going wrong would be appreciated. David Chamberlin UNDP Ecuador Here's the tomcat admin screen for a typical environment variable. Name: opensite.repository Type:java.lang.String Value: d:\David\repository Override Application Level Entries: Yes Description: Path to opensite repository Here's the corresponding entry in web.xml opensite.repository java.lang.String And here is the java code to access the variable. try { Context ctx = new InitialContext(); m_envCtx = (Context)ctx.lookup("java:comp/env"); } catch (Exception e) { if (m_inContainer) m_log.log(Level.WARNING, "Can't get container context", e); } try { m_repository = (String) m_envCtx.lookup("opensite.repository"); } catch (Exception e) { m_repository = m_tempDir + File.separator + "opensiterepository"; } The entry in server.xml written by the admin program is as follows: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Command Line Configuration
Howdy, There are ant tasks that do the manager webapp's functions (install / deploy / stop / start a webapp, etc.). Equivalents don't exist for the admin webapp that I'm aware of. If you were to do it in java, via Ant, it wouldn't be too difficult. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Oozy [mailto:[EMAIL PROTECTED] >Sent: Wednesday, July 23, 2003 11:41 AM >To: [EMAIL PROTECTED] >Subject: Tomcat Command Line Configuration > >Is there a command-line tool for Linux to configure Tomcat - to perform the >functions of the admin webUI? > >I would like to find a way to modify the server.xml file via the command >line >so that such modifications could be scripted - this could be done w/ >sed/awk/perl but those tools do not seem to be ideal for this task. > >thanks, > >-Bill > > > >- >This mail sent through IMP: http://horde.org/imp/ > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying a webapp with ant
ok... I see... it's perhaps easier to copy the war file with ant to the remote machine than using the catalina ant tasks... thanks On Wed, 2003-07-23 at 17:38, Aurele Venet wrote: > of course, sorry I meant copy it automatically using the ant script! > Build the war file using ant and tell it to build it say in /tmp, then > transfer it (using the task) to your webapp dir, and finally > install it! > > All feasable under ant. If /tmp and weapps/ are not on the same > network, then you can even ftp it using ssh from the ant script without > requiring any password exchanges! > > Michael Kessler wrote: > > >The Idea behind is to deploy a webapp automatically on severals servers > >in the cluster, manual deploy is not the problem ;-) > > > >On Wed, 2003-07-23 at 17:15, Aurele Venet wrote: > > > > > >>then copy the war to your webapps dir first and make an install from > >>there! Make sure autodeploy war file is set in your servlet.xml file so > >>at restart it will get redeployed! > >> > >>Michael Kessler wrote: > >> > >> > >> > >>>With the install task the webapp is lost after a restart, so there is no > >>>use for me... > >>> > >>>thanks > >>> > >>>On Wed, 2003-07-23 at 16:55, Aurele Venet wrote: > >>> > >>> > >>> > >>> > I managed to deploy using ant with the following script: > > > > classpath="${tomcatAntLib}" name="remove"/> > classpath="${tomcatAntLib}" name="install"/> > > depends="declare"> > url="http://localhost:8000/manager"; username="root"/> > > > url="http://localhost:8000/manager"; username="root" > war="file://${d_build}XAT.war"/> > > > note you need tomcat/4.1.24 + tomcatAntLib path variable pointing to the > ant jar file that comes with the tomcat installation. (see the tomcat > help pages for more info on ant deployment). (d_build = path to war file). > > good luck > > Vrata > > Michael Kessler wrote: > > > > > > >Hi > > > >I try to deploy my webapp with ant to our server. I searched within the > >tomcat mailarchive and of course also google, but I found no working > >solution... > > > >My war file 'member.war' has a normal webapp structure, and I added > >context.xml to the META-INF folder with the content: > > > > > > > >within the ant script i run: > > > >http://a.b.c.d:8080/manager/"; path="/member" > >username="xxx" password="xxx" war="file:{to_war}/member.war"/> > > > >In the log file I found: > > > >Manager: deploy: Deploying web application at '/member' > >Manager: Uploading WAR file to > >/usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.war > >Manager: Extracting XML file to > >/usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.xml > >StandardHost[localhost]: Installing web application from URL > >jar:file:/usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.war!/ > > > >the file member.xml has the same content as the META-INF/context.xml > > > >... but there is no context entry in server.xml nor has the webapp been > >unpacked or moved to the webapps directory!! > > > >my host entry from the server.xml: > > > > >className="org.apache.catalina.core.StandardHost" > >appBase="webapps" > >autoDeploy="true" > >configClass="org.apache.catalina.startup.ContextConfig" > >contextClass="org.apache.catalina.core.StandardContext" > >debug="0" > >deployXML="true" > >errorReportValveClass="org.apache.catalina.valves.ErrorReportValve" > >liveDeploy="true" > >mapperClass="org.apache.catalina.core.StandardHostMapper" > >name="localhost" > >unpackWARs="true"> > > > > > >Any help is very welcome... thanx > > > >Michael > > > > > > > > > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > -- Michael Kessler Customer Systems Bluewin AG Hardturmstrasse 3 Postfach 756 CH-8037 Zürich Tel: +41 (0)1 274 71 93 Fax: +41 (0)1 274 72 84 Email: [EMAIL PROTECTED] http://www.bluewin.ch http://www.bluewinag.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Command Line Configuration
Is there a command-line tool for Linux to configure Tomcat - to perform the functions of the admin webUI? I would like to find a way to modify the server.xml file via the command line so that such modifications could be scripted - this could be done w/ sed/awk/perl but those tools do not seem to be ideal for this task. thanks, -Bill - This mail sent through IMP: http://horde.org/imp/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying a webapp with ant
of course, sorry I meant copy it automatically using the ant script! Build the war file using ant and tell it to build it say in /tmp, then transfer it (using the task) to your webapp dir, and finally install it! All feasable under ant. If /tmp and weapps/ are not on the same network, then you can even ftp it using ssh from the ant script without requiring any password exchanges! Michael Kessler wrote: The Idea behind is to deploy a webapp automatically on severals servers in the cluster, manual deploy is not the problem ;-) On Wed, 2003-07-23 at 17:15, Aurele Venet wrote: then copy the war to your webapps dir first and make an install from there! Make sure autodeploy war file is set in your servlet.xml file so at restart it will get redeployed! Michael Kessler wrote: With the install task the webapp is lost after a restart, so there is no use for me... thanks On Wed, 2003-07-23 at 16:55, Aurele Venet wrote: I managed to deploy using ant with the following script: http://localhost:8000/manager"; username="root"/> http://localhost:8000/manager"; username="root" war="file://${d_build}XAT.war"/> note you need tomcat/4.1.24 + tomcatAntLib path variable pointing to the ant jar file that comes with the tomcat installation. (see the tomcat help pages for more info on ant deployment). (d_build = path to war file). good luck Vrata Michael Kessler wrote: Hi I try to deploy my webapp with ant to our server. I searched within the tomcat mailarchive and of course also google, but I found no working solution... My war file 'member.war' has a normal webapp structure, and I added context.xml to the META-INF folder with the content: within the ant script i run: http://a.b.c.d:8080/manager/"; path="/member" username="xxx" password="xxx" war="file:{to_war}/member.war"/> In the log file I found: Manager: deploy: Deploying web application at '/member' Manager: Uploading WAR file to /usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.war Manager: Extracting XML file to /usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.xml StandardHost[localhost]: Installing web application from URL jar:file:/usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.war!/ the file member.xml has the same content as the META-INF/context.xml ... but there is no context entry in server.xml nor has the webapp been unpacked or moved to the webapps directory!! my host entry from the server.xml: configClass="org.apache.catalina.startup.ContextConfig" contextClass="org.apache.catalina.core.StandardContext" debug="0" deployXML="true" errorReportValveClass="org.apache.catalina.valves.ErrorReportValve" liveDeploy="true" mapperClass="org.apache.catalina.core.StandardHostMapper" name="localhost" unpackWARs="true"> Any help is very welcome... thanx Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- V . . . . . . . . . tel:+34.918.131.331 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: heap size
Howdy, >Yoav - Where do you specify heap size? I understand it is a parameter of >the java command, but is in a Tomcat startup script somewhere? Or do I just >execute it at the command line? Add JAVA_OPTS='-Xmx512m' to $CATALINA_HOME/bin/catalina.sh on unix. On windows, you can do this with a JAVA_OPTS environment variable, or (if running as a service) via the registry. Search this list's archives for more information. The 512m above specifies a maximum heap of 512 MB. Run java -X to see other options. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
heap size
Yoav - Where do you specify heap size? I understand it is a parameter of the java command, but is in a Tomcat startup script somewhere? Or do I just execute it at the command line? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 9:55 AM To: Tomcat Users List Subject: RE: config help Howdy, Give at much memory to the heap as your server hardware will allow (-Xmx java option). I guess Windows doesn't have a ulimit-equivalent so you probably don't need to worry about that. Remove all unneeded connectors, valves, services from server.xml. Remove all unneeded webapps (examples, docs, etc.) from tomcat. If you're using a logging system that allows this configuration, turn off debug-level statements. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Geoff Peters [mailto:[EMAIL PROTECTED] >Sent: Wednesday, July 23, 2003 7:39 AM >To: [EMAIL PROTECTED] >Subject: config help > >Hi - I am currently in the process of deploying a web app using Tomcat >4.1.18, MySQL 3.23 on a Win2K Server. The app will be used heavily for a >period of 3 - 4 hours, (probably a couple of thousand hits per minute), >then never used again. > >I am wondering what exactly I should do to enhance performace - other than >some changes recommended to the server.xml file (i.e. setting debug to >zero), I am not 100% sure what some of the other changes will do, >specifically min and max processors, and other settings. Can someone please >give me some pointers as to what I can so to maximize performance over this >3-4 hour period?? > >Application is a series of MySQL based reports (all servlets), containing >several select statements and using the MySQL JDBC driver. > >Thanks for any advice! > >Geoff > >Geoff Peters, SCJPPhone : (441) 296-9640 >Applications DeveloperFax: (441) 292-1509 >Logic Communications E-mail : [EMAIL PROTECTED] >12 Par-La-Ville Road WWW: http://www.logic.bm >Hamilton, Bermuda HM JX > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please help
Are you using Tomcat and IIS in same box or different box. -Original Message- From: Pat Pomatto [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 10:53 AM To: 'Tomcat Users List' Subject: Please help I'm running Tomcat 4.1.24 with IIS. Under webapps I have myApp1, myApp2 and myApp3. All of these need to share a common images directory. Does anyone know how to do this? I've tried numerous things and nothing works. Should the images be served by Tomcat or by IIS? Please help! Pat Pomatto
Re: Deploying a webapp with ant
The Idea behind is to deploy a webapp automatically on severals servers in the cluster, manual deploy is not the problem ;-) On Wed, 2003-07-23 at 17:15, Aurele Venet wrote: > then copy the war to your webapps dir first and make an install from > there! Make sure autodeploy war file is set in your servlet.xml file so > at restart it will get redeployed! > > Michael Kessler wrote: > > >With the install task the webapp is lost after a restart, so there is no > >use for me... > > > >thanks > > > >On Wed, 2003-07-23 at 16:55, Aurele Venet wrote: > > > > > >>I managed to deploy using ant with the following script: > >> > >> > >> > >> >>classpath="${tomcatAntLib}" name="remove"/> > >> >>classpath="${tomcatAntLib}" name="install"/> > >> > >> >>depends="declare"> > >> >>url="http://localhost:8000/manager"; username="root"/> > >> > >> > >> >>url="http://localhost:8000/manager"; username="root" > >> war="file://${d_build}XAT.war"/> > >> > >> > >>note you need tomcat/4.1.24 + tomcatAntLib path variable pointing to the > >>ant jar file that comes with the tomcat installation. (see the tomcat > >>help pages for more info on ant deployment). (d_build = path to war file). > >> > >>good luck > >> > >>Vrata > >> > >>Michael Kessler wrote: > >> > >> > >> > >>>Hi > >>> > >>>I try to deploy my webapp with ant to our server. I searched within the > >>>tomcat mailarchive and of course also google, but I found no working > >>>solution... > >>> > >>>My war file 'member.war' has a normal webapp structure, and I added > >>>context.xml to the META-INF folder with the content: > >>> > >>> > >>> > >>>within the ant script i run: > >>> > >>>http://a.b.c.d:8080/manager/"; path="/member" > >>>username="xxx" password="xxx" war="file:{to_war}/member.war"/> > >>> > >>>In the log file I found: > >>> > >>>Manager: deploy: Deploying web application at '/member' > >>>Manager: Uploading WAR file to > >>>/usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.war > >>>Manager: Extracting XML file to > >>>/usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.xml > >>>StandardHost[localhost]: Installing web application from URL > >>>jar:file:/usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.war!/ > >>> > >>>the file member.xml has the same content as the META-INF/context.xml > >>> > >>>... but there is no context entry in server.xml nor has the webapp been > >>>unpacked or moved to the webapps directory!! > >>> > >>>my host entry from the server.xml: > >>> > >>> >>>className="org.apache.catalina.core.StandardHost" > >>>appBase="webapps" > >>>autoDeploy="true" > >>>configClass="org.apache.catalina.startup.ContextConfig" > >>>contextClass="org.apache.catalina.core.StandardContext" > >>>debug="0" > >>>deployXML="true" > >>>errorReportValveClass="org.apache.catalina.valves.ErrorReportValve" > >>>liveDeploy="true" > >>>mapperClass="org.apache.catalina.core.StandardHostMapper" > >>>name="localhost" > >>>unpackWARs="true"> > >>> > >>> > >>>Any help is very welcome... thanx > >>> > >>>Michael > >>> > >>> > >>> > >>> > >>> > >>> > >>>- > >>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >>> > >>> > >>> > >>> -- Michael Kessler Customer Systems Bluewin AG Hardturmstrasse 3 Postfach 756 CH-8037 Zürich Tel: +41 (0)1 274 71 93 Fax: +41 (0)1 274 72 84 Email: [EMAIL PROTECTED] http://www.bluewin.ch http://www.bluewinag.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying a webapp with ant
sorry... I meant server.xml file! Aurele Venet wrote: then copy the war to your webapps dir first and make an install from there! Make sure autodeploy war file is set in your servlet.xml file so at restart it will get redeployed! Michael Kessler wrote: With the install task the webapp is lost after a restart, so there is no use for me... thanks On Wed, 2003-07-23 at 16:55, Aurele Venet wrote: I managed to deploy using ant with the following script: http://localhost:8000/manager"; username="root"/> http://localhost:8000/manager"; username="root" war="file://${d_build}XAT.war"/> note you need tomcat/4.1.24 + tomcatAntLib path variable pointing to the ant jar file that comes with the tomcat installation. (see the tomcat help pages for more info on ant deployment). (d_build = path to war file). good luck Vrata Michael Kessler wrote: Hi I try to deploy my webapp with ant to our server. I searched within the tomcat mailarchive and of course also google, but I found no working solution... My war file 'member.war' has a normal webapp structure, and I added context.xml to the META-INF folder with the content: within the ant script i run: http://a.b.c.d:8080/manager/"; path="/member" username="xxx" password="xxx" war="file:{to_war}/member.war"/> In the log file I found: Manager: deploy: Deploying web application at '/member' Manager: Uploading WAR file to /usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.war Manager: Extracting XML file to /usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.xml StandardHost[localhost]: Installing web application from URL jar:file:/usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.war!/ the file member.xml has the same content as the META-INF/context.xml ... but there is no context entry in server.xml nor has the webapp been unpacked or moved to the webapps directory!! my host entry from the server.xml: configClass="org.apache.catalina.startup.ContextConfig" contextClass="org.apache.catalina.core.StandardContext" debug="0" deployXML="true" errorReportValveClass="org.apache.catalina.valves.ErrorReportValve" liveDeploy="true" mapperClass="org.apache.catalina.core.StandardHostMapper" name="localhost" unpackWARs="true"> Any help is very welcome... thanx Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- V . . . . . . . . . tel:+34.918.131.331 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple configuration seems to work ...
Thanks for the explanation John. Jeff John Turner wrote: If you have Apache, there's no need to use 8080 at all, and you can even disable that connector in server.xml. To do so, you would use a connector (mod_jk or mod_jk2). This gets loaded by Apache, and then you map various request URIs to be sent to Tomcat, such as "/*.jsp" and "/servlet/*". Then Apache serves your static content (GIF, HTML, JPEG), and Tomcat serves JSP and servlet. Or, you can just run Tomcat alone on port 80. Tomcat is perfectly capable of serving HTML, GIF, and the like without needing Apache at all. So, right now you are using a little bit of both with no integration. This is do-able, but probably not optimal. You can choose to use Apache + Tomcat with a connector (100% integration), or you can just use Tomcat alone (0% integration and no additional overhead from Apache). There are pros and cons to either solution, use what works best for you and fits your environment. Jeff Howard wrote: John, The webpages get called by http:///path. There's no :8080 there. Don't I still need Apache for those pages? I only place I use :8080 is in some of the webpages when I want to process a servlet. Jeff John Turner wrote: Only comment is that with :8080 on the URL there is no need for Apache at all. John Jeff Howard wrote: Hi, I just finished setting up Red Hat 9, JDK 1.4, Apache 2.0.40 and Tomcat 4.1 with help from folks on the list. After all is said and done, it wasn't too bad. Here's a quick summary of what I did. Maybe this will help others and at the same time if there's something wrong or missing maybe someone can point that out as well. - Installed Red Hat 9 - Installed JDK 1.4 - Installed Apache 2.0.40 - Installed Tomcat binary. (Had trouble geting rpm to work) - Copied the Tomcat "examples" directory to a new (parallel) directory called "myapp" - Edited the server.xml file and added a context for "myapp" - Deposited my existing servlets in /var/tomcat/webapps/myapp/WEB-INF/classes where "tomcat" is a link to my tomcat install - Restarted tomcat - Edited my html references to servlets to be http://:8080/myapp/servlet/ This appears to work. I didn't edit any of the web.xml files or install any connector(s) to Apache. I'm a novice at this so perhaps some of this needs to be done but the webpages execute the servlets and the results are accurate. Does anyone have any comments, suggestions? Thanks very much to everyone that provided help along the way. Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: achieving a clients (browsers) certificate in a webapp - SOLVED
thanks jay as i meantioned before, i've already solved it. 4.1.26 is out as an alpha-version and i took the jk-connector from this release with my tomcat 4.1.24 installation.. until now, it works really fine like that.. -Original Message- From: Jay Garala [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 23. Juli 2003 17:06 To: 'Tomcat Users List' Subject: RE: achieving a clients (browsers) certificate in a webapp The Apache - Tomcat - mod_ssl only works with Tomcat 4.0.6!! Sorry i totally forgot that i had put this bug in a long time ago. Wait til 4.1.26 comes out.. it is resolved there! Jay -Original Message- From: Karli Christoph (CSE) [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 7:27 AM To: 'Tomcat Users List' Subject: RE: achieving a clients (browsers) certificate in a webapp this helped me a lot!! now i've installed the native jk connector from jakarta-tomcat-connectors-4.1.26 (where this bug is fixed) - and suddenly i achieve the clients certificate in my webapps.. thanks! -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 23. Juli 2003 05:48 To: [EMAIL PROTECTED] Subject: Re: achieving a clients (browsers) certificate in a webapp "Karli Christoph (CSE)" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > we have the ssl-configuration in the file ssl.conf which gets > included by httpd.conf. > > it tells me that the Jk* - entries aren't supposed to be at this > place.. ? > > and if i enter the line > > SSLVerifyClient require (or optional) > This is the part you were missing. Unfortunately, the handling of Client certs in the Jk-Coyote connector is broken in 4.1.24 (see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15790). > ..i get an empty page in my browser.. (ajp13 problem?) > > it really seems like this is a configuration-war.. > > i think during the ssl-handshaking of apache and the client-browser, > apache doesn't ask for the client-certificate (which is in fact > optional) > > hmm.. anyone wanna give another shot? > > > -Original Message- > From: Jay Garala [mailto:[EMAIL PROTECTED] > Sent: Dienstag, 22. Juli 2003 18:11 > To: 'Tomcat Users List' > Subject: RE: achieving a clients (browsers) certificate in a webapp > > > Oh I've done this before!!! > > In your SSL section in httd.conf > > > // Change accordingly > #SSLVerifyClient require > #SSLVerifyDepth 1 > ##SSLOptions +StdEnvVars +ExportCertData > # > ## > # JkOptions +ForwardKeySize +ForwardURICompat > ## JkExtractSSL On > # JkHTTPSIndicator HTTPS > ### JkSESSIONIndicator SSL_SESSION_ID > # JkCIPHERIndicator SSL_CIPHER > # JkCERTSIndicator SSL_CLIENT_CERT > // NEED THIS > # JkEnvVar SSL_CLIENT_CERT SSL_CLIENT_CERT > > then in ur Servlet do: > > String apacheClientCert = (String) request.getAttribute("SSL_CLIENT_CERT"); > java.security.cert.CertificateFactory cf = > CertificateFactory.getInstance("X.509"); > String cert = removePEMData(apacheClientCert); > sun.misc.BASE64Decoder dec = new sun.misc.BASE64Decoder(); > byte[] bcert = dec.decodeBuffer(cert); > ByteArrayInputStream bais = new ByteArrayInputStream(bcert); > X509Certificate x509 = (X509Certificate) cf.generateCertificate(bais); > bais.close(); > > ... Now you got your Client cert... if you want the server cert > add JkEnvVar SSL_SERVER_CERT SSL_SERVER_CERT in httpd and mirror changes in > servlet > > public String removePEMData(String cert) > { > String begin = "-BEGIN CERTIFICATE-"; > String end = "-END CERTIFICATE-"; > int s = cert.indexOf(begin); > if (s >= 0) > cert = cert.substring( s+begin.length(),cert.indexOf(end)); > return cert; > } > > -Original Message- > From: Karli Christoph (CSE) [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 22, 2003 11:53 AM > To: 'Tomcat Users List' > Subject: RE: achieving a clients (browsers) certificate in a webapp > > > that's the point.. > > with the following code > > String certAttribute = "javax.servlet.request.X509Certificate"; > X509Certificate certificate[] = (java.security.cert.X509Certificate[]) > request.getAttribute(certAttribute); > > for (Enumeration e = request.getAttributeNames(); e.hasMoreElements();) { > System.out.println("attribute: " + e.nextElement()); > } > > > > we just can achieve the following attributes: > > attribute: javax.servlet.include.servlet_path > attribute: javax.servlet.include.context_path > attribute: javax.servlet.request.cipher_suite > attribute: javax.servlet.request.key_size > attribute: javax.servlet.include.request_uri > > any other ideas? > > > -Original Message- > From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED] > Sent: Dienstag, 22. Juli 2003 17:39 > To: 'Tomcat Users List' > Subject: RE: achieving a clients (browsers) certificate in a webapp > > > The 'javax.servlet.request.X509Certificate' request property will give you > the client certificate chain. It contains an array of > java.security.cert.X509Certificate O
Re: Deploying a webapp with ant
then copy the war to your webapps dir first and make an install from there! Make sure autodeploy war file is set in your servlet.xml file so at restart it will get redeployed! Michael Kessler wrote: With the install task the webapp is lost after a restart, so there is no use for me... thanks On Wed, 2003-07-23 at 16:55, Aurele Venet wrote: I managed to deploy using ant with the following script: http://localhost:8000/manager"; username="root"/> http://localhost:8000/manager"; username="root" war="file://${d_build}XAT.war"/> note you need tomcat/4.1.24 + tomcatAntLib path variable pointing to the ant jar file that comes with the tomcat installation. (see the tomcat help pages for more info on ant deployment). (d_build = path to war file). good luck Vrata Michael Kessler wrote: Hi I try to deploy my webapp with ant to our server. I searched within the tomcat mailarchive and of course also google, but I found no working solution... My war file 'member.war' has a normal webapp structure, and I added context.xml to the META-INF folder with the content: within the ant script i run: http://a.b.c.d:8080/manager/"; path="/member" username="xxx" password="xxx" war="file:{to_war}/member.war"/> In the log file I found: Manager: deploy: Deploying web application at '/member' Manager: Uploading WAR file to /usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.war Manager: Extracting XML file to /usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.xml StandardHost[localhost]: Installing web application from URL jar:file:/usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.war!/ the file member.xml has the same content as the META-INF/context.xml ... but there is no context entry in server.xml nor has the webapp been unpacked or moved to the webapps directory!! my host entry from the server.xml: configClass="org.apache.catalina.startup.ContextConfig" contextClass="org.apache.catalina.core.StandardContext" debug="0" deployXML="true" errorReportValveClass="org.apache.catalina.valves.ErrorReportValve" liveDeploy="true" mapperClass="org.apache.catalina.core.StandardHostMapper" name="localhost" unpackWARs="true"> Any help is very welcome... thanx Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- V . . . . . . . . . tel:+34.918.131.331 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please help
Howdy, Since you already have a front-end (IIS) anyways, use it for the images. Have a directory on it /images, and have all your image URLs be /images/img1.gif etc., instead of /myApp1/images/img1.gif. One alternative is to have an images webapp on tomcat and use it to serve the images, again with the same URLs as above. Yet another option is to have copies of the images with each webapp. Yoav Shapira Millennium ChemInformatics -Original Message- From: Pat Pomatto [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 10:53 AM To: 'Tomcat Users List' Subject: Please help I'm running Tomcat 4.1.24 with IIS. Under webapps I have myApp1, myApp2 and myApp3. All of these need to share a common images directory. Does anyone know how to do this? I've tried numerous things and nothing works. Should the images be served by Tomcat or by IIS? Please help! Pat Pomatto This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please help
Use IIS. Set up a new virtual host. Call it "images.your-domain.com". In all web pages for all three apps, reference "images.your-domain.com" for image URLs. Problem solved. John Pat Pomatto wrote: I’m running Tomcat 4.1.24 with IIS. Under webapps I have myApp1, myApp2 and myApp3. All of these need to share a common images directory. Does anyone know how to do this? I’ve tried numerous things and nothing works. Should the images be served by Tomcat or by IIS? Please help! Pat Pomatto - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying a webapp with ant
With the install task the webapp is lost after a restart, so there is no use for me... thanks On Wed, 2003-07-23 at 16:55, Aurele Venet wrote: > I managed to deploy using ant with the following script: > > > > classpath="${tomcatAntLib}" name="remove"/> > classpath="${tomcatAntLib}" name="install"/> > > depends="declare"> > url="http://localhost:8000/manager"; username="root"/> > > > url="http://localhost:8000/manager"; username="root" > war="file://${d_build}XAT.war"/> > > > note you need tomcat/4.1.24 + tomcatAntLib path variable pointing to the > ant jar file that comes with the tomcat installation. (see the tomcat > help pages for more info on ant deployment). (d_build = path to war file). > > good luck > > Vrata > > Michael Kessler wrote: > > >Hi > > > >I try to deploy my webapp with ant to our server. I searched within the > >tomcat mailarchive and of course also google, but I found no working > >solution... > > > >My war file 'member.war' has a normal webapp structure, and I added > >context.xml to the META-INF folder with the content: > > > > > > > >within the ant script i run: > > > >http://a.b.c.d:8080/manager/"; path="/member" > >username="xxx" password="xxx" war="file:{to_war}/member.war"/> > > > >In the log file I found: > > > >Manager: deploy: Deploying web application at '/member' > >Manager: Uploading WAR file to > >/usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.war > >Manager: Extracting XML file to > >/usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.xml > >StandardHost[localhost]: Installing web application from URL > >jar:file:/usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.war!/ > > > >the file member.xml has the same content as the META-INF/context.xml > > > >... but there is no context entry in server.xml nor has the webapp been > >unpacked or moved to the webapps directory!! > > > >my host entry from the server.xml: > > > > >className="org.apache.catalina.core.StandardHost" > >appBase="webapps" > >autoDeploy="true" > >configClass="org.apache.catalina.startup.ContextConfig" > >contextClass="org.apache.catalina.core.StandardContext" > >debug="0" > >deployXML="true" > >errorReportValveClass="org.apache.catalina.valves.ErrorReportValve" > >liveDeploy="true" > >mapperClass="org.apache.catalina.core.StandardHostMapper" > >name="localhost" > >unpackWARs="true"> > > > > > >Any help is very welcome... thanx > > > >Michael > > > > > > > > > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- Michael Kessler Customer Systems Bluewin AG Hardturmstrasse 3 Postfach 756 CH-8037 Zürich Tel: +41 (0)1 274 71 93 Fax: +41 (0)1 274 72 84 Email: [EMAIL PROTECTED] http://www.bluewin.ch http://www.bluewinag.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic Context
Elisabeth, not sure what you use for uploading mechanism (i use the o-reilly classes - cos.jar) but just to say that we upload images to a dir on the server which are then included in a dyanmic page which is served by a jsp works fine! Not sure the content of your files, but if you manage to same them on disc then you can dynamically refer to them form either servlet or jsp by embedding them! Vrata-madrid! ;-) Elisabeth Rotbach wrote: Hi, 1) My goal is to store into th server files uploaded and the user must be able to consult these documents. My main application is deployed with a war. To consult document, I have found this solution : creation of an another webapp (docBase -> store directory). 2) >>>A webapp shouldn't create other webapps. Ok! But, how works the manager ? Elisabeth - Toulouse From: "Shapira, Yoav" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Subject: RE: Dynamic Context Date: Tue, 22 Jul 2003 13:45:52 -0400 Howdy, >I have already post this question, but I haven't find the solution. Sometimes when solutions aren't posted, it's because people have read the question and don't feel like delving into what seems like a bad design to start with ;) A webapp shouldn't create other webapps. It should be independent and self-contained. If you insist on going this route, good luck ;) If you're open to other designs, perhaps you could state your design goals and people can help you with other, more elegant ways of achieving these goals. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Trouvez l'âme soeur sur MSN Rencontres ! http://g.msn.fr/FR1000/9551 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- V . . . . . . . . . tel:+34.918.131.331 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple configuration seems to work ...
If you have Apache, there's no need to use 8080 at all, and you can even disable that connector in server.xml. To do so, you would use a connector (mod_jk or mod_jk2). This gets loaded by Apache, and then you map various request URIs to be sent to Tomcat, such as "/*.jsp" and "/servlet/*". Then Apache serves your static content (GIF, HTML, JPEG), and Tomcat serves JSP and servlet. Or, you can just run Tomcat alone on port 80. Tomcat is perfectly capable of serving HTML, GIF, and the like without needing Apache at all. So, right now you are using a little bit of both with no integration. This is do-able, but probably not optimal. You can choose to use Apache + Tomcat with a connector (100% integration), or you can just use Tomcat alone (0% integration and no additional overhead from Apache). There are pros and cons to either solution, use what works best for you and fits your environment. Jeff Howard wrote: John, The webpages get called by http:///path. There's no :8080 there. Don't I still need Apache for those pages? I only place I use :8080 is in some of the webpages when I want to process a servlet. Jeff John Turner wrote: Only comment is that with :8080 on the URL there is no need for Apache at all. John Jeff Howard wrote: Hi, I just finished setting up Red Hat 9, JDK 1.4, Apache 2.0.40 and Tomcat 4.1 with help from folks on the list. After all is said and done, it wasn't too bad. Here's a quick summary of what I did. Maybe this will help others and at the same time if there's something wrong or missing maybe someone can point that out as well. - Installed Red Hat 9 - Installed JDK 1.4 - Installed Apache 2.0.40 - Installed Tomcat binary. (Had trouble geting rpm to work) - Copied the Tomcat "examples" directory to a new (parallel) directory called "myapp" - Edited the server.xml file and added a context for "myapp" - Deposited my existing servlets in /var/tomcat/webapps/myapp/WEB-INF/classes where "tomcat" is a link to my tomcat install - Restarted tomcat - Edited my html references to servlets to be http://:8080/myapp/servlet/ This appears to work. I didn't edit any of the web.xml files or install any connector(s) to Apache. I'm a novice at this so perhaps some of this needs to be done but the webpages execute the servlets and the results are accurate. Does anyone have any comments, suggestions? Thanks very much to everyone that provided help along the way. Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: achieving a clients (browsers) certificate in a webapp
The Apache - Tomcat - mod_ssl only works with Tomcat 4.0.6!! Sorry i totally forgot that i had put this bug in a long time ago. Wait til 4.1.26 comes out.. it is resolved there! Jay -Original Message- From: Karli Christoph (CSE) [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 7:27 AM To: 'Tomcat Users List' Subject: RE: achieving a clients (browsers) certificate in a webapp this helped me a lot!! now i've installed the native jk connector from jakarta-tomcat-connectors-4.1.26 (where this bug is fixed) - and suddenly i achieve the clients certificate in my webapps.. thanks! -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 23. Juli 2003 05:48 To: [EMAIL PROTECTED] Subject: Re: achieving a clients (browsers) certificate in a webapp "Karli Christoph (CSE)" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > we have the ssl-configuration in the file ssl.conf which gets > included by httpd.conf. > > it tells me that the Jk* - entries aren't supposed to be at this > place.. ? > > and if i enter the line > > SSLVerifyClient require (or optional) > This is the part you were missing. Unfortunately, the handling of Client certs in the Jk-Coyote connector is broken in 4.1.24 (see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15790). > ..i get an empty page in my browser.. (ajp13 problem?) > > it really seems like this is a configuration-war.. > > i think during the ssl-handshaking of apache and the client-browser, > apache doesn't ask for the client-certificate (which is in fact > optional) > > hmm.. anyone wanna give another shot? > > > -Original Message- > From: Jay Garala [mailto:[EMAIL PROTECTED] > Sent: Dienstag, 22. Juli 2003 18:11 > To: 'Tomcat Users List' > Subject: RE: achieving a clients (browsers) certificate in a webapp > > > Oh I've done this before!!! > > In your SSL section in httd.conf > > > // Change accordingly > #SSLVerifyClient require > #SSLVerifyDepth 1 > ##SSLOptions +StdEnvVars +ExportCertData > # > ## > # JkOptions +ForwardKeySize +ForwardURICompat > ## JkExtractSSL On > # JkHTTPSIndicator HTTPS > ### JkSESSIONIndicator SSL_SESSION_ID > # JkCIPHERIndicator SSL_CIPHER > # JkCERTSIndicator SSL_CLIENT_CERT > // NEED THIS > # JkEnvVar SSL_CLIENT_CERT SSL_CLIENT_CERT > > then in ur Servlet do: > > String apacheClientCert = (String) request.getAttribute("SSL_CLIENT_CERT"); > java.security.cert.CertificateFactory cf = > CertificateFactory.getInstance("X.509"); > String cert = removePEMData(apacheClientCert); > sun.misc.BASE64Decoder dec = new sun.misc.BASE64Decoder(); > byte[] bcert = dec.decodeBuffer(cert); > ByteArrayInputStream bais = new ByteArrayInputStream(bcert); > X509Certificate x509 = (X509Certificate) cf.generateCertificate(bais); > bais.close(); > > ... Now you got your Client cert... if you want the server cert > add JkEnvVar SSL_SERVER_CERT SSL_SERVER_CERT in httpd and mirror changes in > servlet > > public String removePEMData(String cert) > { > String begin = "-BEGIN CERTIFICATE-"; > String end = "-END CERTIFICATE-"; > int s = cert.indexOf(begin); > if (s >= 0) > cert = cert.substring( s+begin.length(),cert.indexOf(end)); > return cert; > } > > -Original Message- > From: Karli Christoph (CSE) [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 22, 2003 11:53 AM > To: 'Tomcat Users List' > Subject: RE: achieving a clients (browsers) certificate in a webapp > > > that's the point.. > > with the following code > > String certAttribute = "javax.servlet.request.X509Certificate"; > X509Certificate certificate[] = (java.security.cert.X509Certificate[]) > request.getAttribute(certAttribute); > > for (Enumeration e = request.getAttributeNames(); e.hasMoreElements();) { > System.out.println("attribute: " + e.nextElement()); > } > > > > we just can achieve the following attributes: > > attribute: javax.servlet.include.servlet_path > attribute: javax.servlet.include.context_path > attribute: javax.servlet.request.cipher_suite > attribute: javax.servlet.request.key_size > attribute: javax.servlet.include.request_uri > > any other ideas? > > > -Original Message- > From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED] > Sent: Dienstag, 22. Juli 2003 17:39 > To: 'Tomcat Users List' > Subject: RE: achieving a clients (browsers) certificate in a webapp > > > The 'javax.servlet.request.X509Certificate' request property will give you > the client certificate chain. It contains an array of > java.security.cert.X509Certificate Objects. Element [0] is the client > certificate, Element [1] is the CA for the client certificate etc. > > > > -Original Message- > From: Karli Christoph (CSE) [mailto:[EMAIL PROTECTED] > Sent: 22 July 2003 16:04 > To: 'Tomcat Users List' > Subject: achieving a clients (browsers) certificate in a webapp > > > now this seems like a big task! > > we've been trying to achieve a clients certificate from the request-o
Please help
I’m running Tomcat 4.1.24 with IIS. Under webapps I have myApp1, myApp2 and myApp3. All of these need to share a common images directory. Does anyone know how to do this? I’ve tried numerous things and nothing works. Should the images be served by Tomcat or by IIS? Please help! Pat Pomatto
RE: achieving a clients (browsers) certificate in a webapp
ROFL thats my bug! -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 11:48 PM To: [EMAIL PROTECTED] Subject: Re: achieving a clients (browsers) certificate in a webapp "Karli Christoph (CSE)" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > we have the ssl-configuration in the file ssl.conf which gets > included by httpd.conf. > > it tells me that the Jk* - entries aren't supposed to be at this > place.. ? > > and if i enter the line > > SSLVerifyClient require (or optional) > This is the part you were missing. Unfortunately, the handling of Client certs in the Jk-Coyote connector is broken in 4.1.24 (see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15790). > ..i get an empty page in my browser.. (ajp13 problem?) > > it really seems like this is a configuration-war.. > > i think during the ssl-handshaking of apache and the client-browser, > apache doesn't ask for the client-certificate (which is in fact > optional) > > hmm.. anyone wanna give another shot? > > > -Original Message- > From: Jay Garala [mailto:[EMAIL PROTECTED] > Sent: Dienstag, 22. Juli 2003 18:11 > To: 'Tomcat Users List' > Subject: RE: achieving a clients (browsers) certificate in a webapp > > > Oh I've done this before!!! > > In your SSL section in httd.conf > > > // Change accordingly > #SSLVerifyClient require > #SSLVerifyDepth 1 > ##SSLOptions +StdEnvVars +ExportCertData > # > ## > # JkOptions +ForwardKeySize +ForwardURICompat > ## JkExtractSSL On > # JkHTTPSIndicator HTTPS > ### JkSESSIONIndicator SSL_SESSION_ID > # JkCIPHERIndicator SSL_CIPHER > # JkCERTSIndicator SSL_CLIENT_CERT > // NEED THIS > # JkEnvVar SSL_CLIENT_CERT SSL_CLIENT_CERT > > then in ur Servlet do: > > String apacheClientCert = (String) request.getAttribute("SSL_CLIENT_CERT"); > java.security.cert.CertificateFactory cf = > CertificateFactory.getInstance("X.509"); > String cert = removePEMData(apacheClientCert); > sun.misc.BASE64Decoder dec = new sun.misc.BASE64Decoder(); > byte[] bcert = dec.decodeBuffer(cert); > ByteArrayInputStream bais = new ByteArrayInputStream(bcert); > X509Certificate x509 = (X509Certificate) cf.generateCertificate(bais); > bais.close(); > > ... Now you got your Client cert... if you want the server cert > add JkEnvVar SSL_SERVER_CERT SSL_SERVER_CERT in httpd and mirror changes in > servlet > > public String removePEMData(String cert) > { > String begin = "-BEGIN CERTIFICATE-"; > String end = "-END CERTIFICATE-"; > int s = cert.indexOf(begin); > if (s >= 0) > cert = cert.substring( s+begin.length(),cert.indexOf(end)); > return cert; > } > > -Original Message- > From: Karli Christoph (CSE) [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 22, 2003 11:53 AM > To: 'Tomcat Users List' > Subject: RE: achieving a clients (browsers) certificate in a webapp > > > that's the point.. > > with the following code > > String certAttribute = "javax.servlet.request.X509Certificate"; > X509Certificate certificate[] = (java.security.cert.X509Certificate[]) > request.getAttribute(certAttribute); > > for (Enumeration e = request.getAttributeNames(); e.hasMoreElements();) { > System.out.println("attribute: " + e.nextElement()); > } > > > > we just can achieve the following attributes: > > attribute: javax.servlet.include.servlet_path > attribute: javax.servlet.include.context_path > attribute: javax.servlet.request.cipher_suite > attribute: javax.servlet.request.key_size > attribute: javax.servlet.include.request_uri > > any other ideas? > > > -Original Message- > From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED] > Sent: Dienstag, 22. Juli 2003 17:39 > To: 'Tomcat Users List' > Subject: RE: achieving a clients (browsers) certificate in a webapp > > > The 'javax.servlet.request.X509Certificate' request property will give you > the client certificate chain. It contains an array of > java.security.cert.X509Certificate Objects. Element [0] is the client > certificate, Element [1] is the CA for the client certificate etc. > > > > -Original Message- > From: Karli Christoph (CSE) [mailto:[EMAIL PROTECTED] > Sent: 22 July 2003 16:04 > To: 'Tomcat Users List' > Subject: achieving a clients (browsers) certificate in a webapp > > > now this seems like a big task! > > we've been trying to achieve a clients certificate from the request-object, > which > failed because there is no parameter for achieving the x509Certificate > installed > in the browser of the client out of the request-object > (javax.servlet.ServletRequest). > > the certification of the server works fine, except the fact that the > server-name > on the certificate doesn't match the actual server-name of the webserver > (we're about > to change the server-name) > > anyway, we've spend the whole day - but we had no chance to figure out where > the > problem's hidden. > > what we use: > jdk 1.3 > apache 2.0.45 with openssl > tomcat 4.1.24 > mod_jk
Re: Deploying a webapp with ant
I managed to deploy using ant with the following script: http://localhost:8000/manager"; username="root"/> http://localhost:8000/manager"; username="root" war="file://${d_build}XAT.war"/> note you need tomcat/4.1.24 + tomcatAntLib path variable pointing to the ant jar file that comes with the tomcat installation. (see the tomcat help pages for more info on ant deployment). (d_build = path to war file). good luck Vrata Michael Kessler wrote: Hi I try to deploy my webapp with ant to our server. I searched within the tomcat mailarchive and of course also google, but I found no working solution... My war file 'member.war' has a normal webapp structure, and I added context.xml to the META-INF folder with the content: within the ant script i run: http://a.b.c.d:8080/manager/"; path="/member" username="xxx" password="xxx" war="file:{to_war}/member.war"/> In the log file I found: Manager: deploy: Deploying web application at '/member' Manager: Uploading WAR file to /usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.war Manager: Extracting XML file to /usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.xml StandardHost[localhost]: Installing web application from URL jar:file:/usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.war!/ the file member.xml has the same content as the META-INF/context.xml ... but there is no context entry in server.xml nor has the webapp been unpacked or moved to the webapps directory!! my host entry from the server.xml: configClass="org.apache.catalina.startup.ContextConfig" contextClass="org.apache.catalina.core.StandardContext" debug="0" deployXML="true" errorReportValveClass="org.apache.catalina.valves.ErrorReportValve" liveDeploy="true" mapperClass="org.apache.catalina.core.StandardHostMapper" name="localhost" unpackWARs="true"> Any help is very welcome... thanx Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- V . . . . . . . . . tel:+34.918.131.331 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dynamic Context
Hi, 1) My goal is to store into th server files uploaded and the user must be able to consult these documents. My main application is deployed with a war. To consult document, I have found this solution : creation of an another webapp (docBase -> store directory). 2) >>>A webapp shouldn't create other webapps. Ok! But, how works the manager ? Elisabeth - Toulouse From: "Shapira, Yoav" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Subject: RE: Dynamic Context Date: Tue, 22 Jul 2003 13:45:52 -0400 Howdy, >I have already post this question, but I haven't find the solution. Sometimes when solutions aren't posted, it's because people have read the question and don't feel like delving into what seems like a bad design to start with ;) A webapp shouldn't create other webapps. It should be independent and self-contained. If you insist on going this route, good luck ;) If you're open to other designs, perhaps you could state your design goals and people can help you with other, more elegant ways of achieving these goals. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Trouvez l'âme soeur sur MSN Rencontres ! http://g.msn.fr/FR1000/9551 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: LifecycleListener Do not work
Howdy, >Eventually I used a servlet spec listener which is better to do from a lot >of reasons. Good. >...It seems there is an unbreakble wall between a web-app and tomcat and >you can be either > in this side or the other. You can be in the middle (common/lib), but all the classes that need access to tomcat internals need to be there. Regardless, the servlet spec listener approach is better. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.4 fails to serve form-login-error page properly
Hi I am porting my application from Tomcat 4.1.24 to Tomcat 5.0.4 (i.e. porting from Servlets 2.3/JSP 1.2 to Servlets 2.4/JSP 2.0). I have a servlet mapped to "/auth" that produces the page with login form. Form based authentication is set with the following fragment of the deployment descriptor: FORM /auth /auth?action=error When the servlet is called with "?action=error" query string it displays additional warning besides the login form. It was working perfectly in Tomcat 4.1.24 but it works in Tomcat 5.0.4 only in half: When user tries to access protected page he is presented with login page. If he enters valid login/password then he receives access to the resourse. But if the user enters invalid login/password then instead of form-error-page Tomcat displays "HTTP Status 405 - HTTP method POST is not supported by this URL" error with URL "http://myhost.here/j_security_check";. I have tried to set up AccessLogValve and RequestDumpValve and to set debug attribute on every element in servlet.xml and my context.xml (where applicable) in order to try to understand what is going on inside Tomcat 5, but no luck so far - request damp just shows that 1) there was request to protected resourse 2) Tomcat returned form-login-page 3) user sent it back with invalid login/password 4) Tomcat returned error 405. I had expected that there should be output from Realm between 3) and 4) but there is not. So, at the moment the conclusion is that the code that worked perfectly in Tomcat 4.1.24 doesn't work in Tomcat 5.0.4 and i don't know why but i would be delighted if somebody will help me to find this out :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploying a webapp with ant
Hi I try to deploy my webapp with ant to our server. I searched within the tomcat mailarchive and of course also google, but I found no working solution... My war file 'member.war' has a normal webapp structure, and I added context.xml to the META-INF folder with the content: within the ant script i run: http://a.b.c.d:8080/manager/"; path="/member" username="xxx" password="xxx" war="file:{to_war}/member.war"/> In the log file I found: Manager: deploy: Deploying web application at '/member' Manager: Uploading WAR file to /usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.war Manager: Extracting XML file to /usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.xml StandardHost[localhost]: Installing web application from URL jar:file:/usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.war!/ the file member.xml has the same content as the META-INF/context.xml ... but there is no context entry in server.xml nor has the webapp been unpacked or moved to the webapps directory!! my host entry from the server.xml: Any help is very welcome... thanx Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple configuration seems to work ...
John, The webpages get called by http:///path. There's no :8080 there. Don't I still need Apache for those pages? I only place I use :8080 is in some of the webpages when I want to process a servlet. Jeff John Turner wrote: Only comment is that with :8080 on the URL there is no need for Apache at all. John Jeff Howard wrote: Hi, I just finished setting up Red Hat 9, JDK 1.4, Apache 2.0.40 and Tomcat 4.1 with help from folks on the list. After all is said and done, it wasn't too bad. Here's a quick summary of what I did. Maybe this will help others and at the same time if there's something wrong or missing maybe someone can point that out as well. - Installed Red Hat 9 - Installed JDK 1.4 - Installed Apache 2.0.40 - Installed Tomcat binary. (Had trouble geting rpm to work) - Copied the Tomcat "examples" directory to a new (parallel) directory called "myapp" - Edited the server.xml file and added a context for "myapp" - Deposited my existing servlets in /var/tomcat/webapps/myapp/WEB-INF/classes where "tomcat" is a link to my tomcat install - Restarted tomcat - Edited my html references to servlets to be http://:8080/myapp/servlet/ This appears to work. I didn't edit any of the web.xml files or install any connector(s) to Apache. I'm a novice at this so perhaps some of this needs to be done but the webpages execute the servlets and the results are accurate. Does anyone have any comments, suggestions? Thanks very much to everyone that provided help along the way. Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: LifecycleListener Do not work
Hi Yoav, Eventually I used a servlet spec listener which is better to do from a lot of reasons. Regarding your suggestion on putting the listener in common/lib, It is the firest thing I try but then I have the opposite problem: my listener cannot call classes from my web-app. ...It seems there is an unbreakble wall between a web-app and tomcat and you can be either in this side or the other. Thanks, Adi -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 2:02 PM To: Tomcat Users List Subject: RE: LifecycleListener Do not work Howdy, You're on the right track: tomcat needs the class on startup. Put your listener (and any classes it needs) in $CATALINA_HOME/common/lib instead of your webapp's WEB-INF/lib. As always, I ask: can you justify using a Catalina-specific LifecycleListener and not a spec-standard ServletContextListener? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Adi Katz [mailto:[EMAIL PROTECTED] >Sent: Wednesday, July 23, 2003 4:21 AM >To: [EMAIL PROTECTED] >Subject: LifecycleListener Do not work > >Hello, > >I implemented org.apache.catalina.LifecycleListener and registered it in >server.xml in the following way: > > > ... > > ... > > >Naturally mypackage.MyListener is in my webapp but it seems that when >server.xml is being parsed on tomcat startup my listener class is not >accessible from catalina side. and i get a classNotFound Exception. > >I feel there is something very messy with the class loading going on in >tomcat side. > >Does anybody have an idea/examople how to implement a >org.apache.catalina.LifecycleListener and to use it in server.xml ? > >Thanks, >Adi > > > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WAR That Runs Fine Under Tomcat 4.1.24 Fails Under 4.0.6 - InvalidDataSource
Funny, I had the opposite problem (worked under 4.0.6, died horribly under 4.1.24). Can you send a stack trace? I can't remember off the top of my head, but I think there's a way to inspect the JNDI tree under Tomcat. Derek Michael Duffy wrote: I've written a Web app that works fine under Tomcat 4.1.24. It uses an app-specific Context to set up a JNDI data source that works fine. It uses the org.apache.commons.dbcp.BasicDataSourceFactory and the Oracle 9.2 JDBC type IV thin driver. The Oracle JDBC driver JAR is in TOMCAT_HOME/common/lib; all other JARs are in the WEB-INF/lib directory inside the deployed WAR. A vendor has shipped s'ware to me that has been tested under Tomcat 4.0.6. The vendor won't guarantee proper operation under 4.1.24, because it hasn't been tested there. I downloaded 4.0.6, installed it on my machine, put my app WAR in TOMCAT_HOME/webapps, and put the into the server.xml. The Oracle JDBC JARs are in TOMCAT_HOME/common/lib. I checked the resources page to make sure that my Context from 4.1.24 was okay for 4.0.6. There were no errors in the log file when I started up the app. The XML parser accepted the server.xml without a problem. I got the app log file that I asked for, and I can see debug info from my front controller servlet being written to it. However, as soon as it tries to access the database I get a "DataSource invalid - no suitable driver" error. Everything that I gave to 4.0.6 works perfectly under 4.1.24. What common error causes this? I scanned the Archive link from the mailing list page, but nothing suitable appeared. Thanks - MOD __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Derek Chen-Becker Senior Network Engineer CPI Corp, Inc. 1706 Washington Ave St. Louis, MO 63103 Phone: 314-231-1575 x6014 Fax: 314-613-6724 [EMAIL PROTECTED] PGP Key available from public key servers Fingerprint: 1C34 D81E D8A0 641D 6C8C E952 3B15 693F 9184 BC58 -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple configuration seems to work ...
Only comment is that with :8080 on the URL there is no need for Apache at all. John Jeff Howard wrote: Hi, I just finished setting up Red Hat 9, JDK 1.4, Apache 2.0.40 and Tomcat 4.1 with help from folks on the list. After all is said and done, it wasn't too bad. Here's a quick summary of what I did. Maybe this will help others and at the same time if there's something wrong or missing maybe someone can point that out as well. - Installed Red Hat 9 - Installed JDK 1.4 - Installed Apache 2.0.40 - Installed Tomcat binary. (Had trouble geting rpm to work) - Copied the Tomcat "examples" directory to a new (parallel) directory called "myapp" - Edited the server.xml file and added a context for "myapp" - Deposited my existing servlets in /var/tomcat/webapps/myapp/WEB-INF/classes where "tomcat" is a link to my tomcat install - Restarted tomcat - Edited my html references to servlets to be http://:8080/myapp/servlet/ This appears to work. I didn't edit any of the web.xml files or install any connector(s) to Apache. I'm a novice at this so perhaps some of this needs to be done but the webpages execute the servlets and the results are accurate. Does anyone have any comments, suggestions? Thanks very much to everyone that provided help along the way. Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Simple configuration seems to work ...
Hi, I just finished setting up Red Hat 9, JDK 1.4, Apache 2.0.40 and Tomcat 4.1 with help from folks on the list. After all is said and done, it wasn't too bad. Here's a quick summary of what I did. Maybe this will help others and at the same time if there's something wrong or missing maybe someone can point that out as well. - Installed Red Hat 9 - Installed JDK 1.4 - Installed Apache 2.0.40 - Installed Tomcat binary. (Had trouble geting rpm to work) - Copied the Tomcat "examples" directory to a new (parallel) directory called "myapp" - Edited the server.xml file and added a context for "myapp" - Deposited my existing servlets in /var/tomcat/webapps/myapp/WEB-INF/classes where "tomcat" is a link to my tomcat install - Restarted tomcat - Edited my html references to servlets to be http://:8080/myapp/servlet/ This appears to work. I didn't edit any of the web.xml files or install any connector(s) to Apache. I'm a novice at this so perhaps some of this needs to be done but the webpages execute the servlets and the results are accurate. Does anyone have any comments, suggestions? Thanks very much to everyone that provided help along the way. Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring Tomcat (NEWBIE)
Sweet success at last !!! :-) I have tried the ENV values suggested in http://jakarta.apache.org/tomcat/faq/misc.html#compile i.e.: _RUNJAVA="%JAVA_HOME%\bin\java" _RUNJAVAW="%JAVA_HOME%\bin\javaw" _RUNJDB="%JAVA_HOME%\bin\jdb" _RUNJAVAC="%JAVA_HOME%\bin\javac" After making the ENV changes, I reinstalled Tomcat and then it worked! HOORAY! - Olumide but I'm still getting the HTTP Status 500 Error message: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. OK so what am I still doing wrong? How know if everything is OK? Is it enough to just do go to http://localhost:8080/, even when I have no servlets? Or could I just try an older version of Tomcat? Thanks for helping the novice - Olumide - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WAR That Runs Fine Under Tomcat 4.1.24 Fails Under 4.0.6 - Invalid DataSource
Okay, I've got it. I moved the Commons and jdbc2_0-stdext JARs into TOMCAT_HOME/common/lib and everything is fine again. --- Michael Duffy <[EMAIL PROTECTED]> wrote: > > I've written a Web app that works fine under Tomcat > 4.1.24. It uses an app-specific Context to set up a > JNDI data source that works fine. It uses the > org.apache.commons.dbcp.BasicDataSourceFactory and > the > Oracle 9.2 JDBC type IV thin driver. The Oracle > JDBC > driver JAR is in TOMCAT_HOME/common/lib; all other > JARs are in the WEB-INF/lib directory inside the > deployed WAR. > > A vendor has shipped s'ware to me that has been > tested > under Tomcat 4.0.6. The vendor won't guarantee > proper > operation under 4.1.24, because it hasn't been > tested > there. > > I downloaded 4.0.6, installed it on my machine, put > my > app WAR in TOMCAT_HOME/webapps, and put the > > into the server.xml. The Oracle JDBC JARs are in > TOMCAT_HOME/common/lib. I checked the resources > page > to make sure that my Context from 4.1.24 was okay > for > 4.0.6. There were no errors in the log file when I > started up the app. The XML parser accepted the > server.xml without a problem. I got the app log > file > that I asked for, and I can see debug info from my > front controller servlet being written to it. > > However, as soon as it tries to access the database > I > get a "DataSource invalid - no suitable driver" > error. > > Everything that I gave to 4.0.6 works perfectly > under > 4.1.24. What common error causes this? I scanned > the > Archive link from the mailing list page, but nothing > suitable appeared. Thanks - MOD > > > > __ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site > design software > http://sitebuilder.yahoo.com > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: config help
Another tip: use PrepareStatements instead of normal Statements, as they get precompiled and cached and improve performance. > If a connection is opened in the init() method, and > closed in the destroy method, would that not mean > that the "concurrency" only applies to the amount of > time needed to instantiate, create, use to get data > and then destroy? I assume you refer to the init/destroy methods within your servlet? You then create the DB connection as a member variable of the servlet or what? If so: bad idea, that means ONE connection for ALL your users, so a major bottleneck here. > So if I am assuming 2000 - 3000 users accessing the > information over the same time frame (3 - 4 hours), > what would be the estimate of required concurrent > users? Does that mean "simultaneous" HTTP / JDBC > requests?? I does mean 3000-4000 db connect calls (if you have one per session), while a pool (in a datasource) being set to e.g. 128, would only create 128 connections, but re-use them. I suggest something like this in your servlets (if your datasource is setup), ignoring exceptions and error handling: doRequest(){ Connection c = datasource.getConnection(); // do your thing here c.close(); } Closing this connection returns it to the pool, it does not physically break the connection with the DB server. > Thanks.. > > Geoff > > -Original Message- > From: Riaan Oberholzer > [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 23, 2003 9:01 AM > To: Tomcat Users List > Subject: RE: config help > > > It sounds as if you are indeed opening/closing > connections as you need them. > > You need to configure a datasource for your db > connections: > > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html > > Its fairly easy to set up and the gain is > significant. > I would say it is probably a good practice to use > this > anyway, even if you do not expect heavy traffic. > > > --- Geoff Peters <[EMAIL PROTECTED]> wrote: > > Andoni - thanks for the advice - someone else just > > mentioned the same thing in a reply (Riaan) - > > setting the datasource connection pool parameter - > > where would this parameter go? Is it a parameter > at > > the server level config or application level? We > > have a MySQL person in house, I will ask her about > > the maximum concurrent MySQL connections > > > > Thanks, Geoff > > > > -Original Message- > > From: Andoni [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, July 23, 2003 8:54 AM > > To: Tomcat Users List > > Subject: Re: config help > > > > > > I would recommend you write a tiny java program > that > > keeps opening > > connections to your database and counting the > number > > of open connections. > > Then when it starts getting errors you can shut > the > > connections but record > > the maximum number of open connections. > > > > Then since your period is so intense you should > put > > your initial pool of > > open connections to very close to this number. > e.g. > > if your max number of > > connections is, 170 (like mine) then set your > > initial pool size to 140-150 > > so that there is practically no connection > > opening/closing done by your > > program while it's running. > > > > Andoni. > > > > > > - Original Message - > > From: "Geoff Peters" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, July 23, 2003 12:38 PM > > Subject: config help > > > > > > Hi - I am currently in the process of deploying a > > web app using Tomcat > > 4.1.18, MySQL 3.23 on a Win2K Server. The app will > > be used heavily for a > > period of 3 - 4 hours, (probably a couple of > > thousand hits per minute), then > > never used again. > > > > I am wondering what exactly I should do to enhance > > performace - other than > > some changes recommended to the server.xml file > > (i.e. setting debug to > > zero), I am not 100% sure what some of the other > > changes will do, > > specifically min and max processors, and other > > settings. Can someone please > > give me some pointers as to what I can so to > > maximize performance over this > > 3-4 hour period?? > > > > Application is a series of MySQL based reports > (all > > servlets), containing > > several select statements and using the MySQL JDBC > > driver. > > > > Thanks for any advice! > > > > Geoff > > > > Geoff Peters, SCJPPhone : (441) > > 296-9640 > > Applications DeveloperFax: (441) > > 292-1509 > > Logic Communications E-mail : > > [EMAIL PROTECTED] > > 12 Par-La-Ville Road WWW: > > http://www.logic.bm > > Hamilton, Bermuda HM JX > > > > > > > - > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > - > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For ad
RE: tomcat web application manager question
Hi..Shapira and Dear All, May I know what do you mean by "Simply create that context path under the webapps directory. You can also specify it in context.xml if you want, but that's not required." Can you explain in more detail? Do u mean add context entry in server.xml? or what? what is the content of the context.xml file that you are refering to? Where should I save the file? "Use \\ for backslash or alternatively forward slashes throughout the whole URL. Start with file:// not just a single slash." Result still the same, no another application added to the list. But I want to know why we need to add the "hello" as the new application? What does it mean? Without adding it as the application, the JSP still work as normal right? "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: Howdy, >After that I decided to create index.html and hello.jsp file to a different >directory C:\Tomcat\Tomcat-4-1-18\webapps\hello\ But \hello is not in >the context path, that's why I go to http://server:port/hello/index.html, I >got 404. So I need to specify the context path in the Tomcat Web >Application Manager??? Simply create that context path under the webapps directory. You can also specify it in context.xml if you want, but that's not required. >I create a context.xml with the following content and save to hello folder. >>debug="0" reloadable="true" crossContext="true"> Call it hello.xml not context.xml. >PATH = /hello >Config URL= file:/C:\Tomcat\Tomcat-4-1-18\webapps\hello\context.xml >WAR URL= file:/C:\Tomcat\Tomcat-4-1-18\webapps\hello\hello.war I'm not sure this is a valid URL. Use \\ for backslash or alternatively forward slashes throughout the whole URL. Start with file:// not just a single slash. See the manager app how-to for URL details. Yoav Shapira http://mobile.yahoo.com.au - Yahoo! Mobile - Check & compose your email via SMS on your Telstra or Vodafone mobile. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Controlling access to webapps from ajp13 connector
Try isSecure() in the request object. John Nathan Ward wrote: How can I configure Tomcat to filter requests received via the ajp13 connector on port 8009 based on whether the HTTP Request was received on a secure connection or not? I see the following in the souce code for tomcat4.CoyoteConnector class in the jakarta-tomcat-connector project: /** * Return the port number to which a request should be redirected if * it comes in on a non-SSL port and is subject to a security constraint * with a transport guarantee that requires SSL. */ public int getRedirectPort() { return (this.redirectPort); } That is the kind of thing I believe I need to use. However, I don't yet see any documentation on what other settings are related to this and how to use them. I guess I have to continue reading the source code. Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WAR That Runs Fine Under Tomcat 4.1.24 Fails Under 4.0.6 - Invalid DataSource
I've written a Web app that works fine under Tomcat 4.1.24. It uses an app-specific Context to set up a JNDI data source that works fine. It uses the org.apache.commons.dbcp.BasicDataSourceFactory and the Oracle 9.2 JDBC type IV thin driver. The Oracle JDBC driver JAR is in TOMCAT_HOME/common/lib; all other JARs are in the WEB-INF/lib directory inside the deployed WAR. A vendor has shipped s'ware to me that has been tested under Tomcat 4.0.6. The vendor won't guarantee proper operation under 4.1.24, because it hasn't been tested there. I downloaded 4.0.6, installed it on my machine, put my app WAR in TOMCAT_HOME/webapps, and put the into the server.xml. The Oracle JDBC JARs are in TOMCAT_HOME/common/lib. I checked the resources page to make sure that my Context from 4.1.24 was okay for 4.0.6. There were no errors in the log file when I started up the app. The XML parser accepted the server.xml without a problem. I got the app log file that I asked for, and I can see debug info from my front controller servlet being written to it. However, as soon as it tries to access the database I get a "DataSource invalid - no suitable driver" error. Everything that I gave to 4.0.6 works perfectly under 4.1.24. What common error causes this? I scanned the Archive link from the mailing list page, but nothing suitable appeared. Thanks - MOD __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: My Tomcat + Apache + mod_jk HOWTO
That's what I do. I actually have an Include file for each VirtualHost, named hostname.conf. Then in httpd.conf, I have multiple includes: Include conf/host1.conf Include conf/host2.conf ... This makes it easy to change things using external system scripts and "perl -pi -e" given a list of hostnames. For example, if you had 20 virtual hosts, and wanted to move the document roots for 10 of them to a new partition, you would do something like: for hostname in `cat hostname.lst` do perl -pi -e 's|old_docroot|new_docroot|g' conf/$hostname.conf done John Bill Saez wrote: Plus I figure I can create a file myself that I can include...that would keep things clean. Bill -Original Message- From: Juan Nin [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 9:20 AM To: Tomcat Users List Subject: Re: My Tomcat + Apache + mod_jk HOWTO From: "Bill Saez" <[EMAIL PROTECTED]> Maybe you can define this once at server (global) context using "Directotry" insted of "Location": Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp AllowOverride None deny from all - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Controlling access to webapps from ajp13 connector
How can I configure Tomcat to filter requests received via the ajp13 connector on port 8009 based on whether the HTTP Request was received on a secure connection or not? I see the following in the souce code for tomcat4.CoyoteConnector class in the jakarta-tomcat-connector project: /** * Return the port number to which a request should be redirected if * it comes in on a non-SSL port and is subject to a security constraint * with a transport guarantee that requires SSL. */ public int getRedirectPort() { return (this.redirectPort); } That is the kind of thing I believe I need to use. However, I don't yet see any documentation on what other settings are related to this and how to use them. I guess I have to continue reading the source code. Nathan
RE: config help
I guess my confusion arises from lack of complete understanding of what is going on. So, does "Concurrent Users" differ from "requests"? If a connection is opened in the init() method, and closed in the destroy method, would that not mean that the "concurrency" only applies to the amount of time needed to instantiate, create, use to get data and then destroy? After the page has been requested and passed to the browser, wouldn't the connection be available for gc immediately? So if I am assuming 2000 - 3000 users accessing the information over the same time frame (3 - 4 hours), what would be the estimate of required concurrent users? Does that mean "simultaneous" HTTP / JDBC requests?? Thanks.. Geoff -Original Message- From: Riaan Oberholzer [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 9:01 AM To: Tomcat Users List Subject: RE: config help It sounds as if you are indeed opening/closing connections as you need them. You need to configure a datasource for your db connections: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html Its fairly easy to set up and the gain is significant. I would say it is probably a good practice to use this anyway, even if you do not expect heavy traffic. --- Geoff Peters <[EMAIL PROTECTED]> wrote: > Andoni - thanks for the advice - someone else just > mentioned the same thing in a reply (Riaan) - > setting the datasource connection pool parameter - > where would this parameter go? Is it a parameter at > the server level config or application level? We > have a MySQL person in house, I will ask her about > the maximum concurrent MySQL connections > > Thanks, Geoff > > -Original Message- > From: Andoni [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 23, 2003 8:54 AM > To: Tomcat Users List > Subject: Re: config help > > > I would recommend you write a tiny java program that > keeps opening > connections to your database and counting the number > of open connections. > Then when it starts getting errors you can shut the > connections but record > the maximum number of open connections. > > Then since your period is so intense you should put > your initial pool of > open connections to very close to this number. e.g. > if your max number of > connections is, 170 (like mine) then set your > initial pool size to 140-150 > so that there is practically no connection > opening/closing done by your > program while it's running. > > Andoni. > > > - Original Message - > From: "Geoff Peters" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, July 23, 2003 12:38 PM > Subject: config help > > > Hi - I am currently in the process of deploying a > web app using Tomcat > 4.1.18, MySQL 3.23 on a Win2K Server. The app will > be used heavily for a > period of 3 - 4 hours, (probably a couple of > thousand hits per minute), then > never used again. > > I am wondering what exactly I should do to enhance > performace - other than > some changes recommended to the server.xml file > (i.e. setting debug to > zero), I am not 100% sure what some of the other > changes will do, > specifically min and max processors, and other > settings. Can someone please > give me some pointers as to what I can so to > maximize performance over this > 3-4 hour period?? > > Application is a series of MySQL based reports (all > servlets), containing > several select statements and using the MySQL JDBC > driver. > > Thanks for any advice! > > Geoff > > Geoff Peters, SCJPPhone : (441) > 296-9640 > Applications DeveloperFax: (441) > 292-1509 > Logic Communications E-mail : > [EMAIL PROTECTED] > 12 Par-La-Ville Road WWW: > http://www.logic.bm > Hamilton, Bermuda HM JX > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring Tomcat (NEWBIE)
Howdy, Is this the full trace: there's no root cause?? Take the .java file for your .jsp from tomcat's work directory and try to compile it yourself. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Olumide [mailto:[EMAIL PROTECTED] >Sent: Wednesday, July 23, 2003 9:30 AM >To: Tomcat Users List >Subject: Re: Configuring Tomcat (NEWBIE) > >> I have tried the ENV values suggested in >> >>> http://jakarta.apache.org/tomcat/faq/misc.html#compile >> > >Here is the full error log - I hope it helps your diagnosis. > >Thanks > >- Olumde > > >** ERROR * > >type Exception report > >message >description The server encountered an internal error () that prevented >it from fulfilling this request. >exception >org.apache.jasper.JasperException: Unable to compile class for JSP > >An error occurred at line: -1 in the jsp file: null > >Generated servlet error: >[javac] Since fork is true, ignoring compiler setting. >[javac] Compiling 1 source file >[javac] Since fork is true, ignoring compiler setting. > >at >org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH andl >er.java:130) >at >org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j ava: >293) >at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353) >at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) >at >org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j ava: >473) >at >org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava: >190) >at >org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295 ) >at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) >at >org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio >nFilterChain.java:247) >at >org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC >hain.java:193) >at >org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.j >ava:256) >at >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo >keNext(StandardPipeline.java:643) >at >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) >at >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) >at >org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.j >ava:191) >at >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo >keNext(StandardPipeline.java:643) >at >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) >at >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) >at >org.apache.catalina.core.StandardContext.invoke(StandardContext.java:24 15) >at >org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:18 >0) >at >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo >keNext(StandardPipeline.java:643) >at >org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV alve >.java:171) >at >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo >keNext(StandardPipeline.java:641) >at >org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:17 >2) >at >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo >keNext(StandardPipeline.java:641) >at >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) >at >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) >at >org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve .jav >a:174) >at >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo >keNext(StandardPipeline.java:643) >at >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) >at >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) >at >org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) >at >org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:5 94) >at >org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process Conn >ection(Http11Protocol.java:392) >at >org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5 65) >at >org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.ja >va:619) >at java.lang.Thread.run(Thread.java:536) > > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is
Re: Configuring Tomcat (NEWBIE)
I have tried the ENV values suggested in http://jakarta.apache.org/tomcat/faq/misc.html#compile Here is the full error log - I hope it helps your diagnosis. Thanks - Olumde ** ERROR * type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]