wiki on tomcat
hi, I am using friki, a java implementation of wiki, on tomcat. i have been using if for the past 6 months. but for the past two days the server is giving an error The requested resource (/friki) is not available. all the files and permissions are same as used to be earlier. Plz suggest what can be the possible reasons. regards ashvin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Possible wrong link on binaries page to daemon
Fixed. Thanks :). Parsons Technical Services [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Yoav or site guru, On the binaries page the link for the commons daemon is pointing to the = Alpha package. If I ftp into a server there is an Alpha version and a = regular version 1.0. Which file should the link point to? The plain 1.0 = has been updated for TC5 and contains two different startup scripts. Doug www.parsonstechnical.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
URGENT: Axis Tomcat webservices at runtime
System: Windows XP Pro Tomcat 4.1.27 J2RE 1.4.2_01 Axis 1.1 I am using Axis to deploy webservices during Tomcat runtime. I use AdminClient.main to deploy the webservices, JAVA2WSDL.main to generate the WSDL at runtime in my webapplication. When I restart Tomcat after deployement and wsdl generation, everything works fine. When I try to access the new webservice wsdl during runtime without restarting Tomcat, I get a LifeCycle Error, CL stopped. Does anybody know if it is possible to access the new webservice (deployed with its wsdl) at runtime without restarting tomcat? Rudolf Feyerkleist - Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs
Confirmation
Norton AntiVirus gelöscht1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat server stopping immediately after starting.
Hi I have installed tomcat4.1 newly.. When I started the server either using starup.bat / Catalina.bat, The server starting and immediately shuttingdown automatically.. I have set the Catalina_home and tomcat_home env var's upto the tomcat4.1 folder.. Please do the needful. If I missed something Thanks regards Ravindra This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat server stopping immediately after starting.
I had this problem when tomcat's http connector tried to use port 8080, while Oracle was already using it. Otherwise, to have more messages, start tomcat in debug : replace start by debug in startup.bat (line 41 : call %EXECUTABLE% debug %CMD_LINE_ARGS%) -Message d'origine- De : Reddy, Ravindranath (Cognizant) [mailto:[EMAIL PROTECTED] Envoyé : mercredi 5 mai 2004 10:09 À : [EMAIL PROTECTED] Objet : Tomcat server stopping immediately after starting. Hi I have installed tomcat4.1 newly.. When I started the server either using starup.bat / Catalina.bat, The server starting and immediately shuttingdown automatically.. I have set the Catalina_home and tomcat_home env var's upto the tomcat4.1 folder.. Please do the needful. If I missed something Thanks regards Ravindra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
links encoding issue
Hi, guys. the problem that freaks me out. I got a couple of thousand xml files that are processed by cocoon, firstly receiving requests by tomcat 5.0.18. Some of them (files) contain german specific symbols that are out of standard encoding (I mean out of [a-zA-Z]). And whatever I tried to get tomcat catch the file name it doesn't work. for example this one doesn't work: a href=de.v.f_hren.1.xmlde.v.f_hren.1.xml/a and there's this line at the beginning too: meta http-equiv=Content-Type content=text/html; charset=UTF-8 gentoo linux, I assume tomcat uses utf-8. Is there a specific option for that thing, or tomcat uses JRE settings? Anyway, does someone got on with a problem like this one? I can't rename the file names as that's a part of a project that I'm not the one who can do such modifications. any issues would be appreciated. best regards, alex. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1.29 getRemoteHost() returns null
Hi I am using Tomcat 4.1.29 with JK connector. The api request.getRemoteHost() returns null. I also made enableLookup=true in the connector properties Is there anything else i need to configure ? Thanks Surendra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems runnning servlet
Dear Friends, I've installed my web application in C:\Program Files\Apache Group\Tomcat 4.1\webapps\absc51 However, when I launch via http://shanthi:8080/absc51/absc/default.htm , I got the error message as below: eHTTP Status 404 - /absc51/absc/default.htm type - Status report e message - /absc51/absc/default.htm description - The requested resource (/absc51/absc/default.htm) is not available. Attached is C:\Program Files\Apache Group\Tomcat 4.1\webapps\absc51\WEB-INF\web.xml and also the log files. Any ideas how to resolve this? Thanks for the help in advance. (See attached file: web.xml)(See attached file: localhost_log.2004-05-05.txt)(See attached file: stderr.log)(See attached file: stdout.log) Regards, Francis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: links encoding issue
sorry, the link's supposed to be a href=de.v.fhren.1.xmlde.v.fhren.1.xml/a On Wed, 5 May 2004 10:35:30 +0200 alex [EMAIL PROTECTED] wrote: Hi, guys. the problem that freaks me out. I got a couple of thousand xml files that are processed by cocoon, firstly receiving requests by tomcat 5.0.18. Some of them (files) contain german specific symbols that are out of standard encoding (I mean out of [a-zA-Z]). And whatever I tried to get tomcat catch the file name it doesn't work. for example this one doesn't work: a href=de.v.f_hren.1.xmlde.v.f_hren.1.xml/a and there's this line at the beginning too: meta http-equiv=Content-Type content=text/html; charset=UTF-8 gentoo linux, I assume tomcat uses utf-8. Is there a specific option for that thing, or tomcat uses JRE settings? Anyway, does someone got on with a problem like this one? I can't rename the file names as that's a part of a project that I'm not the one who can do such modifications. any issues would be appreciated. best regards, alex. - 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]
java.library.path
Hello, In the file RELEASE-PLAN-4.1.txt, found in the src dir of Tomcat, it says something like: [quote] Nice To Have Fixes Before Final Release: --- Catalina ... 5858 Add tomcat dir to java.library.path ... [/quote] I wonder when this will be implemented, because I think this is the solution to my problem. And, if you read so far, this is my problem: I have a Java application that runs on Tomcat (4.1.27) / Windows. My application requires a .dll file that I have to put in system32 folder. The worst thing is that I have to have different versions of the application running at the same time, which leads to different versions of the .dll. I wonder how can I put the .dll in different places for each application and tell Tomcat about this? Thanks, /EC
load balancing jk2 how to wait till context is truely available
hi everyone, I've got two Jboss (alternatively 2 tomcat) instances working with jk2 and load balancing with level failover. So everything works beautifull - when my first server is down, the second one fills the gap. Problem now is: when server1 restarts jk2 sends all requests to him, allthough he's not yet truely ready - hasn't loaded the necessary context . So I get an 500 error from tomcat, which is really stupid cause my backup server could still handle the requests. So my question is: Is there a way to tell jk2 to wait till a certain context is loaded before switching back. thanks for reply, frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
weird jdbc error
Hi all, I'm experiencing a unusual problem in Apache Tomcat/4.1 sdk:1.4.1_03-b02 Linux 2.4.20-8 i386 I've got an application running on commons-DBCP everything seems ok: - libs in the commons/lib folder - datasource in the context: Resource name=jdbc/devel4_minePooledDS scope=Shareable type=javax.sql.DataSource/ ResourceParams name=jdbc/devel4_minePooledDS parameter nameurl/name valuejdbc:oracle:thin:@10.10.45.4:1521:orlx/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxIdle/name value3/value /parameter parameter namemaxWait/name value500/value /parameter parameter namemaxActive/name value30/value /parameter parameter namepassword/name valuemine/value /parameter parameter nameusername/name valuemine/value /parameter /ResourceParams - enabled in web.xml: resource-ref descriptionResource for DB connections/description res-ref-namejdbc/devel4_minePooledDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref - used in this way: InitialContext initCtx = new InitialContext(); DataSource ds = (DataSource)initCtx.lookup(java:comp/env/jdbc/devel4_minePooledDS); Connection conn = ds.getConnection(); - the application simply doesnt start with the following errors, not so helpful, to be honest: 2004-05-04 09:46:06 StandardWrapperValve[action]: Allocate exception for servlet action javax.servlet.ServletException: Servlet.init() for servlet action threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown Source) at org.apache.catalina.core.StandardWrapper.allocate(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: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) - Root Cause - java.lang.StackOverflowError at gnu.xml.pipeline.ValidationConsumer$ChildrenRecognizer.acceptElement(ValidationConsumer.java:1795) at gnu.xml.pipeline.ValidationConsumer$ChildrenRecognizer.acceptElement(ValidationConsumer.java:1795) at gnu.xml.pipeline.ValidationConsumer$ChildrenRecognizer.acceptElement(ValidationConsumer.java:1795) at gnu.xml.pipeline.ValidationConsumer$ChildrenRecognizer.acceptElement(ValidationConsumer.java:1795) at gnu.xml.pipeline.ValidationConsumer$ChildrenRecognizer.acceptElement(ValidationConsumer.java:1795) at gnu.xml.pipeline.ValidationConsumer$ChildrenRecognizer.acceptElement(ValidationConsumer.java:1795) .. . . I didn't find anything similar any helop will be appreciated thanks in advance jc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: load balancing jk2 how to wait till context is truely available
seems I just found myself a little workaround for this problem by setting the timeout property of the loadbalancer to 60. now instead of showing the 500 error from tomcat jk2 waits up to 60 seconds, which is far long enough for the context to load. so no 500 errors no more. Still if someone knows a better way, I'd like to hear from it. frank Frank Duffner wrote: hi everyone, I've got two Jboss (alternatively 2 tomcat) instances working with jk2 and load balancing with level failover. So everything works beautifull - when my first server is down, the second one fills the gap. Problem now is: when server1 restarts jk2 sends all requests to him, allthough he's not yet truely ready - hasn't loaded the necessary context . So I get an 500 error from tomcat, which is really stupid cause my backup server could still handle the requests. So my question is: Is there a way to tell jk2 to wait till a certain context is loaded before switching back. thanks for reply, frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can servlet generate a Web page first, then continue to run ?
hi, I want to show a page immediately after the visiters' Form Submitting ,then do some logical processing at backgroud(this will assume a long time, so it may bother the visitor). I surpose to do these in one servlet. How can I do this? Thanks stan
RE: Can servlet generate a Web page first, then continue to run ?
If you explicitely close your writer (the outputstream) in your servlet, the client will receive your page, and your servlet will be able to continue to work : protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException , IOException { PrintWriter out = response.getWriter(); out.println(Page to display to client); out.close(); // Do some work in your servlet... } -Message d'origine- De: lixiaoquan [mailto:[EMAIL PROTECTED] Envoy: mercredi 5 mai 2004 12:02 : [EMAIL PROTECTED] Objet: Can servlet generate a Web page first, then continue to run ? hi, I want to show a page immediately after the visiters' Form Submitting ,then do some logical processing at backgroud(this will assume a long time, so it may bother the visitor). I surpose to do these in one servlet. How can I do this? Thanks stan
Re: Can servlet generate a Web page first, then continue to run ?
hi, It works. Thank you so much. stan - Original Message - From: STOCKHOLM, Raymond [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 6:16 PM Subject: RE: Can servlet generate a Web page first, then continue to run ? If you explicitely close your writer (the outputstream) in your servlet, the client will receive your page, and your servlet will be able to continue to work : protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException , IOException { PrintWriter out = response.getWriter(); out.println(Page to display to client); out.close(); // Do some work in your servlet... } -Message d'origine- De : lixiaoquan [mailto:[EMAIL PROTECTED] Envoy : mercredi 5 mai 2004 12:02 : [EMAIL PROTECTED] Objet : Can servlet generate a Web page first, then continue to run ? hi, I want to show a page immediately after the visiters' Form Submitting ,then do some logical processing at backgroud(this will assume a long time, so it may bother the visitor). I surpose to do these in one servlet. How can I do this? Thanks stan
Re: secureCookie parameter for Tomcat 5.0.19?
This was discussed a few times in the past and there might be a bugzilla report. If you submit a patch - it might have a chance at being committed - but the past discussions tried to discourage the proposed functionality. A workaround might be to RESET (that is, resend) the cookie without the SECURE flag turned on. -Tim [EMAIL PROTECTED] wrote: Hello configuration gurus, I recently upgraded to Tomcat 5.0.19, and I wonder if there is a solution to this problem yet. The problem is that in the Tomcat 4 (and apparently Tomcat 5) series, tomcat forces it so that if a session starts under https, then the session cookie is FORCED to be secure. I understand that this is to protect people from having hijacked sessions as a general case. However, there are some of us that manage this on our own (sending our own secure cookie that we use to make sure https pages aren't hijacked), and we would like our session cookie to be available to http AND https, as we move back and forth through those pages depending on the sensitivity of the content. If the session is created under http, then it is available to http and https. The problem only happens when the session is created under https. And, unfortunately, my app has quite a few places where the session NEEDS to be created under https, but needs to be available to http and https pages. If this secureCookie option is not in Tomcat 5, does anyone else have a solution? In the past, I've had to recompile the AJP mod_jk code after commenting out the following lines where it creates the session cookie: if (hreq.isSecure()) cookie.setSecure(true); I know that others have also asked about this, and I'm hoping there's a better solution than having to comment out those lines and recompile the code every time there is a Tomcat update. Any help is appreciated. Thank you, -Raiden Johnson -- Forwarded message -- Date: Mon, 25 Nov 2002 17:23:27 -0800 (PST) Subject: Is there a secureCookie type of paramater for Tomcat 4.1.12? Hello, Tomcat 3.3.2 has a secureCookie paramater that restores the old behavior of not making the sessionId cookie a secure cookie if it was created under https. Is there such a parameter in 4.1.12? I know there has been a thread debating the reasons as to why a session that is created under https is not available to http pages. However, I have an application that was designed for the old spec, in which a session was available to both http and https pages, regardless of which protocol the session was created under. I have avoided the security problem of hijacked sessions by making sure that sensitive pages are ALWAYS require https, and I drop a secure cookie of my own when someone logs in (the login page is under https of course), so that even if someone hijacks the http pages, they cannot hijack the https pages without passing back that cookie (whose contents I store in the session for verification). However, since upgrading to 4.1.12, I have realized that my application can no longer function, because I rely on people creating a session under https... and then accessing non-sensitive pages under http. But, in 4.1.12, the session is not available to subsequently accessed http pages... and I really don't want to start encrypting these non-sensitive pages. (But, I do want the user logged in before they can access these pages.) Does something like the secureCookie parameter exist in 4.1.12? Thanks, Raiden - 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: virtual directory in Tomcat
No. You'd need to set up a Context http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html -Tim Paul wrote: Is this a valid tag within server.xml for Tomcat 4x or Tomcat 5x? virtual-directory virtual-path=/BTSdata real-path=D:\BTSdata / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can servlet generate a Web page first, then continue to run ?
You can use event-listeners. In servlet 2.3 there are two types of events: application- and session-. Servlet 2.4 adds another one request/response-events. This way, you code is much more modular. -Original Message- From: lixiaoquan [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 8:02 PM To: [EMAIL PROTECTED] Subject: Can servlet generate a Web page first, then continue to run ? hi, I want to show a page immediately after the visiters' Form Submitting ,then do some logical processing at backgroud(this will assume a long time, so it may bother the visitor). I surpose to do these in one servlet. How can I do this? Thanks stan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5.0.19, some problemns
hello when i star the tomcat 5.0.19, i am stating with this version, appears this error in the catalina.log file: 05-may-2004 13:24:27 org.apache.catalina.startup.ContextConfig applicationConfig INFO: Falta el archivo web.xml de la aplicaciónb. Utilizando los parámetros por defecto StandardEngine[Catalina].StandardHost[gest.domain.com].StandardContext[] in the directory of this host i have one dir (WEB-INF) and inside of this directory the web.xml file. the configuration for this host in the server.xml file is (as i made in tomcat 4.1.30): Host name=gest.domain.com debug=0 appBase=/home/www/domain unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=log_log. suffix=.txt timestamp=true/ Context path= docBase= reloadable=true crossContext=true Resource name=jdbc/DATABASE auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/DATABASE parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueorg.postgresql.Driver/value /parameter parameter nameurl/name valuejdbc:postgresql://127.0.0.1:5432/db/value /parameter parameter nameusername/name valuenvolucionuser/value /parameter parameter namepassword/name valuenvolucion.user/value /parameter parameter namemaxActive/name value100/value /parameter parameter namemaxIdle/name value20/value /parameter parameter namemaxWait/name value-1/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value60/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter /ResourceParams /Context /Host i need load , into my java apps, some values from the web.xml file. how can i solve it? the second problem with the tomcat 5.0.19 is: if i oput my classes into the WEB-INF/classes directory, the system doesn't found the. i must tro put into the common/classes directory. how can i solve it? how must i to configure to sove these 2 problems?ç this configuration into the tomcat 4.1.30 runs well but not into the 5.0.19 thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mail Delivery (failure tomcat-user@jakarta.apache.org)
If the message will not displayed automatically, follow the link to read the delivered message. Received message is available at: www.jakarta.apache.org/inbox/tomcat-user/read.php?sessionid-15156 file attachment: message.scr The file attached to this email was removed because it is infected with the [EMAIL PROTECTED] virus.
RE: links encoding issue
Take care with URL encoding, you must convert your values based on correct URL encoding, for example: space is %20, ü is %FC, it´s just hex based numbers. This page can show you more information about it: http://www.blooberry.com/indexdot/html/topics/urlencoding.htm -- De: alex[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quarta-feira, 5 de maio de 2004 5:35 Para: [EMAIL PROTECTED] Assunto: links encoding issue Hi, guys. the problem that freaks me out. I got a couple of thousand xml files that are processed by cocoon, firstly receiving requests by tomcat 5.0.18. Some of them (files) contain german specific symbols that are out of standard encoding (I mean out of [a-zA-Z]). And whatever I tried to get tomcat catch the file name it doesn't work. for example this one doesn't work: a href=de.v.f_hren.1.xmlde.v.f_hren.1.xml/a and there's this line at the beginning too: meta http-equiv=Content-Type content=text/html; charset=UTF-8 gentoo linux, I assume tomcat uses utf-8. Is there a specific option for that thing, or tomcat uses JRE settings? Anyway, does someone got on with a problem like this one? I can't rename the file names as that's a part of a project that I'm not the one who can do such modifications. any issues would be appreciated. best regards, alex. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Notify
Bad Gateway: The message has been attached. +++ Attachment: No Virus found +++ Kaspersky AntiVirus - www.kaspersky.com file attachment: message.txt .pif The file attached to this email was removed because it is infected with the [EMAIL PROTECTED] virus. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: wiki on tomcat
Howdy, Looks at your logs. Possible reasons include all those that can cause a java program to fail in addition to all of those that can cause a web application to fail. Yoav Shapira Millennium Research Informatics -Original Message- From: Ashvin Agrawal [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 2:00 AM To: [EMAIL PROTECTED] Subject: wiki on tomcat hi, I am using friki, a java implementation of wiki, on tomcat. i have been using if for the past 6 months. but for the past two days the server is giving an error The requested resource (/friki) is not available. all the files and permissions are same as used to be earlier. Plz suggest what can be the possible reasons. regards ashvin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Crashes with this is catalina.out
Hi, the same problem. But we didnt have any problems like that at all with jrockit. And jrockit has the jmeter tool to help me do better benchmarks. So my opinion is sun jdk is slow. You havent notice this problem with the sun jdk on linux? JMeter has nothing to do with JRockit, it's an Apache tool that's JVM-agnostic. And no, I haven't noticed the problem you report with the Sun JDK on Linux boxes. You may wish to file a bug report with Sun. 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]
error during google portlet sample deploy
Hi, I begin with portlets and i tried to deployed sourceforge POST portlets samples in eXo portal. RSS works fine but I get following error with google portlet (it works fine with jetty + eXo). I tried with tomcat 5.019, 5.0.22 and 5.0.24. Can someone tell me what's worng ? François ##DEPLOY PORTLET: GooglePortletSample java.lang.IllegalStateException: can't declare any more prefixes in this context at org.xml.sax.helpers.NamespaceSupport$Context.declarePrefix(Unknown So urce) at org.xml.sax.helpers.NamespaceSupport.declarePrefix(Unknown Source) at org.apache.crimson.parser.Parser2.processAttributeNS(Parser2.java:177 1) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1620) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667) at org.apache.crimson.parser.Parser2.parse(Parser2.java:337) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448) at exo.commons.jaxb.impl.runtime.UnmarshallerImpl.unmarshal(Unmarshaller Impl.java:142) at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm arshallerImpl.java:131) at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm arshallerImpl.java:178) at exo.services.portletcontainer.impl.servlet.PortletApplicationListener .contextInitialized(PortletApplicationListener.java:69) at org.apache.catalina.core.StandardContext.listenerStart(StandardContex t.java:3805) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 321) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:823) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80 7) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep loyer.java:277) at org.apache.catalina.core.StandardHost.install(StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j ava:683) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432 ) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1064) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :327) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:119) at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost. java:800) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p rocessChildren(ContainerBase.java:1619) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p rocessChildren(ContainerBase.java:1628) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.r un(ContainerBase.java:1608) at java.lang.Thread.run(Thread.java:534)
RE: error during google portlet sample deploy
Hi, Are you deploying a crimson parser with your webapp? If so, did you read tomcat's release notes or other documentation regarding the configuration of XML parsers? Yoav Shapira Millennium Research Informatics -Original Message- From: zze-MORON François FTRD/DMI/REN [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 9:00 AM To: [EMAIL PROTECTED] Subject: error during google portlet sample deploy Hi, I begin with portlets and i tried to deployed sourceforge POST portlets samples in eXo portal. RSS works fine but I get following error with google portlet (it works fine with jetty + eXo). I tried with tomcat 5.019, 5.0.22 and 5.0.24. Can someone tell me what's worng ? François ##DEPLOY PORTLET: GooglePortletSample java.lang.IllegalStateException: can't declare any more prefixes in this context at org.xml.sax.helpers.NamespaceSupport$Context.declarePrefix(Unknown So urce) at org.xml.sax.helpers.NamespaceSupport.declarePrefix(Unknown Source) at org.apache.crimson.parser.Parser2.processAttributeNS(Parser2.java:177 1) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1620) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667) at org.apache.crimson.parser.Parser2.parse(Parser2.java:337) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448) at exo.commons.jaxb.impl.runtime.UnmarshallerImpl.unmarshal(Unmarshaller Impl.java:142) at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm arshallerImpl.java:131) at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm arshallerImpl.java:178) at exo.services.portletcontainer.impl.servlet.PortletApplicationListener .contextInitialized(PortletApplicationListener.java:69) at org.apache.catalina.core.StandardContext.listenerStart(StandardContex t.java:3805) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 321) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:823) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80 7) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep loyer.java:277) at org.apache.catalina.core.StandardHost.install(StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j ava:683) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432 ) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1064) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :327) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:119) at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost. java:800) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p rocessChildren(ContainerBase.java:1619) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p rocessChildren(ContainerBase.java:1628) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.r un(ContainerBase.java:1608) at java.lang.Thread.run(Thread.java:534) 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: Word file
Please have a look at the attached file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Crashes with this is catalina.out
On Wed, May 05, 2004 at 08:51:23AM -0400, Shapira, Yoav wrote: : You may wish to file a bug report with Sun. -and with BEA, as well, if JRockit has been the root of your stability problems. Call me old-fashioned... I'll take slow-and-steady over fast-and-crashy any day. ;) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange error
On Tue, May 04, 2004 at 02:30:16PM -0600, Nathan Maves wrote: : What could cause this error in Tomcat 5.0.19. : : 2004-05-04 14:21:02 StandardContext[/manager]HTMLManager: : ManagerServlet.reload[/ReportViewer] : java.lang.ThreadDeath : at : org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader : .java:1270) : [snip] : It happens when I place an object in the session and then click reload : from the webapp manager. Any object, or a particular object? (especially a custom object) Does said object do anything with threads, such as calling ::stop()? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : error during google portlet sample deploy
I simply installed tomcat, deployed eXo platform and deployed this google search portlet. François -Message d'origine- De : Shapira, Yoav [mailto:[EMAIL PROTECTED] Envoyé : mercredi 5 mai 2004 15:11 À : Tomcat Users List Objet : RE: error during google portlet sample deploy Hi, Are you deploying a crimson parser with your webapp? If so, did you read tomcat's release notes or other documentation regarding the configuration of XML parsers? Yoav Shapira Millennium Research Informatics -Original Message- From: zze-MORON François FTRD/DMI/REN [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 9:00 AM To: [EMAIL PROTECTED] Subject: error during google portlet sample deploy Hi, I begin with portlets and i tried to deployed sourceforge POST portlets samples in eXo portal. RSS works fine but I get following error with google portlet (it works fine with jetty + eXo). I tried with tomcat 5.019, 5.0.22 and 5.0.24. Can someone tell me what's worng ? François ##DEPLOY PORTLET: GooglePortletSample java.lang.IllegalStateException: can't declare any more prefixes in this context at org.xml.sax.helpers.NamespaceSupport$Context.declarePrefix(Unknown So urce) at org.xml.sax.helpers.NamespaceSupport.declarePrefix(Unknown Source) at org.apache.crimson.parser.Parser2.processAttributeNS(Parser2.java:177 1) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1620) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667) at org.apache.crimson.parser.Parser2.parse(Parser2.java:337) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448) at exo.commons.jaxb.impl.runtime.UnmarshallerImpl.unmarshal(Unmarshaller Impl.java:142) at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm arshallerImpl.java:131) at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm arshallerImpl.java:178) at exo.services.portletcontainer.impl.servlet.PortletApplicationListener .contextInitialized(PortletApplicationListener.java:69) at org.apache.catalina.core.StandardContext.listenerStart(StandardContex t.java:3805) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 321) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:823) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80 7) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep loyer.java:277) at org.apache.catalina.core.StandardHost.install(StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j ava:683) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432 ) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1064) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :327) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:119) at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost. java:800) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p rocessChildren(ContainerBase.java:1619) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p rocessChildren(ContainerBase.java:1628) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.r un(ContainerBase.java:1608) at java.lang.Thread.run(Thread.java:534) 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: RE : error during google portlet sample deploy
Hi, I simply installed tomcat, deployed eXo platform and deployed this google search portlet. Is there a crimson.jar or another XML parser jar in the eXo platform or in this google search portlet ? 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: java.library.path
are you saying that passing in -Djava.library.path=xxx in catalina.bat (JAVA_OPTS) doesn't work for you? - Original Message - From: Cocalea, Eugen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 3:45 AM Subject: java.library.path Hello, In the file RELEASE-PLAN-4.1.txt, found in the src dir of Tomcat, it says something like: [quote] Nice To Have Fixes Before Final Release: --- Catalina ... 5858 Add tomcat dir to java.library.path ... [/quote] I wonder when this will be implemented, because I think this is the solution to my problem. And, if you read so far, this is my problem: I have a Java application that runs on Tomcat (4.1.27) / Windows. My application requires a .dll file that I have to put in system32 folder. The worst thing is that I have to have different versions of the application running at the same time, which leads to different versions of the .dll. I wonder how can I put the .dll in different places for each application and tell Tomcat about this? Thanks, /EC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: secureCookie parameter for Tomcat 5.0.19?
Tim Funk [EMAIL PROTECTED] wrote: This was discussed a few times in the past and there might be a bugzilla report. If you submit a patch - it might have a chance at being committed - but the past discussions tried to discourage the proposed functionality. A workaround might be to RESET (that is, resend) the cookie without the SECURE flag turned on. -Tim [EMAIL PROTECTED] wrote: Hello configuration gurus, I recently upgraded to Tomcat 5.0.19, and I wonder if there is a solution to this problem yet. The problem is that in the Tomcat 4 (and apparently Tomcat 5) series, tomcat forces it so that if a session starts under https, then the session cookie is FORCED to be secure. I understand that this is to protect people from having hijacked sessions as a general case. However, there are some of us that manage this on our own (sending our own secure cookie that we use to make sure https pages aren't hijacked), and we would like our session cookie to be available to http AND https, as we move back and forth through those pages depending on the sensitivity of the content. If the session is created under http, then it is available to http and https. The problem only happens when the session is created under https. And, unfortunately, my app has quite a few places where the session NEEDS to be created under https, but needs to be available to http and https pages. This is EXACTLY what I just figured out was happening to me under 5.0.16; in my app, it looked like some session information wasn't getting passed. My solution was to get the secure cookie, make in un-secure, and put it back so when my app switched to http after https authentication, that cookie would be found. But then, I'm fortunate in that there's only one place in my code where this happens, so I had a minimal amount of code to change. It would be nice if an https-generated cookie was available to both http and https on a configurable basis. -- Lynn Hollerman. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : RE : error during google portlet sample deploy
There is a googleapi.jar in which I found crimson parser. -Message d'origine- De : Shapira, Yoav [mailto:[EMAIL PROTECTED] Envoyé : mercredi 5 mai 2004 15:20 À : Tomcat Users List Objet : RE: RE : error during google portlet sample deploy Hi, I simply installed tomcat, deployed eXo platform and deployed this google search portlet. Is there a crimson.jar or another XML parser jar in the eXo platform or in this google search portlet ? 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 : error during google portlet sample deploy
Hi, There is a googleapi.jar in which I found crimson parser. Try repackaging the jar without the crimson parser classes. 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]
XSLT in Tomcat apps
does anyone out there use XSLT with Tomcat 4 or 5? if so, which xslt processor do you use, and how do you make it accessible via Tomcat to your web apps? i cannot seem to find any documentation toward using xslt with Tomcat. i have been struggling with this issue for days now, so even a vague pointer in the right direction would be a great help. thanks, paul.
RE: XSLT in Tomcat apps
Hi, I bet a bunch of people use Xalan. There's plenty of docs on it, starting with the web site itself (http://xml.apache.org/xalan-j/index.html), which has servlet examples among others (http://xml.apache.org/xalan-j/samples.html). There's even a session on it in the upcoming open source convention: http://conferences.oreillynet.com/cs/os2004/view/e_sess/5408. Beyond that, google has many hits for xalan webapp xalan tomcat and other search combinations. Yoav Shapira Millennium Research Informatics -Original Message- From: Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 9:59 AM To: Tomcat Users List Subject: XSLT in Tomcat apps does anyone out there use XSLT with Tomcat 4 or 5? if so, which xslt processor do you use, and how do you make it accessible via Tomcat to your web apps? i cannot seem to find any documentation toward using xslt with Tomcat. i have been struggling with this issue for days now, so even a vague pointer in the right direction would be a great help. thanks, paul. 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: XSLT in Tomcat apps
Hi There, We use the Xerces XML parser and the Xalan XSLT processor. all are downloadable from http://xml.apache.org We usually just add the jar files to the WEB-INF/lib directory or in the j2sdk1.4.2_xx/jre/lib/endorsed directory is we are using a JDK later than 1.3 Hope this helps Pete -Original Message- From: Paul [mailto:[EMAIL PROTECTED] Sent: 05 May 2004 14:59 To: Tomcat Users List Subject: XSLT in Tomcat apps does anyone out there use XSLT with Tomcat 4 or 5? if so, which xslt processor do you use, and how do you make it accessible via Tomcat to your web apps? i cannot seem to find any documentation toward using xslt with Tomcat. i have been struggling with this issue for days now, so even a vague pointer in the right direction would be a great help. thanks, paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange error
The object is a custom object. The only difference I can find is that this object has some event listeners attached to it. It is an implementation of a Tree object. The only java objects that it uses are Map, TreeMap and few other util classes. Nathan On May 5, 2004, at 7:18 AM, QM wrote: On Tue, May 04, 2004 at 02:30:16PM -0600, Nathan Maves wrote: : What could cause this error in Tomcat 5.0.19. : : 2004-05-04 14:21:02 StandardContext[/manager]HTMLManager: : ManagerServlet.reload[/ReportViewer] : java.lang.ThreadDeath : at : org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade r : .java:1270) : [snip] : It happens when I place an object in the session and then click reload : from the webapp manager. Any object, or a particular object? (especially a custom object) Does said object do anything with threads, such as calling ::stop()? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.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 : RE : error during google portlet sample deploy
It works fine now. Thanks. It's a little victory for a novice like me !!! :-) Now the portlet doesn't work, but it's another problem ! -Message d'origine- De : Shapira, Yoav [mailto:[EMAIL PROTECTED] Envoyé : mercredi 5 mai 2004 15:49 À : Tomcat Users List Objet : RE : error during google portlet sample deploy Hi, There is a googleapi.jar in which I found crimson parser. Try repackaging the jar without the crimson parser classes. 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: XSLT in Tomcat apps
i usually deploy the xalan.jar into $catalina_base/shared/lib then i advise to set something like System.setProperty(javax.xml.parsers.DocumentBuilderFactory, org.apache.xerces.jaxp.DocumentBuilderFactoryImpl); System.setProperty(javax.xml.transform.TransformerFactory, org.apache.xalan.processor.TransformerFactoryImpl); System.setProperty(javax.xml.parsers.SAXParserFactory, org.apache.xerces.jaxp.SAXParserFactoryImpl); then work on the org.w at an appropriate place (or pass them as -D - option when starting the server or wherever) does anyone out there use XSLT with Tomcat 4 or 5? if so, which xslt processor do you use, and how do you make it accessible via Tomcat to your web apps? i cannot seem to find any documentation toward using xslt with Tomcat. i have been struggling with this issue for days now, so even a vague pointer in the right direction would be a great help. thanks, paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.library.path
No. I don't use catalina.bat to run Tomcat, but the Windows service. But it might be an idea to use the Windows service 'JVM Option Number X' parameter to tell Tomcat where it can get the .dll. Might this work? -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 4:38 PM To: Tomcat Users List Subject: Re: java.library.path are you saying that passing in -Djava.library.path=xxx in catalina.bat (JAVA_OPTS) doesn't work for you? - Original Message - From: Cocalea, Eugen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 3:45 AM Subject: java.library.path Hello, In the file RELEASE-PLAN-4.1.txt, found in the src dir of Tomcat, it says something like: [quote] Nice To Have Fixes Before Final Release: --- Catalina ... 5858 Add tomcat dir to java.library.path ... [/quote] I wonder when this will be implemented, because I think this is the solution to my problem. And, if you read so far, this is my problem: I have a Java application that runs on Tomcat (4.1.27) / Windows. My application requires a .dll file that I have to put in system32 folder. The worst thing is that I have to have different versions of the application running at the same time, which leads to different versions of the .dll. I wonder how can I put the .dll in different places for each application and tell Tomcat about this? Thanks, /EC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can servlet generate a Web page first, then continue to run ?
Stan, I have done something similar in a servlet by reposting to the same servlet. The way I did this is by out-putting a hidden value in the submission, then using a getParameter to retrieve this value on the next submit. The first page was the user submitting some data, which when submitted brought up a proof-read-page. If everything was OK they would hit the submit button again (so the same page was actually generated twice. The servlet would know to go to the correct processing part of the servlet because of the hidden parameter would direct it to that part of the servlet that did the processing. For example, I hid a value called action with a value of step2. In my servlet I had code that... if(action.equals(step2)){ ..do something ...}+ So how might this apply to your problem? I'm not sure :-( but it might spark an idea. Tom Kochanowicz -Original Message- From: lixiaoquan [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 5:02 AM To: [EMAIL PROTECTED] Subject: Can servlet generate a Web page first, then continue to run ? hi, I want to show a page immediately after the visiters' Form Submitting ,then do some logical processing at backgroud(this will assume a long time, so it may bother the visitor). I surpose to do these in one servlet. How can I do this? Thanks stan --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Clustering with 5.0.19
Hi, I've successfully clustered two instances of Tomcat on different machines and I'm now trying to do some fine tuning on a struts based site. I want to make sure that the session is only being replicated when it needs to be. I have useDirtyFlag=true although I'm not sure that it isn't still being re-sent after every request. I have the following Cluster element in my server.xml - Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false debug=10 printToScreen=true useDirtyFlag=true Although I have the debug/printToScreen attributes, I'm not seeing any debug information about session replication. How can I get some debug info? Any help greatly appreciated! Thanks, Sam Lawrence - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Clustering with 5.0.19
useDirtyFlag is not used with the DeltaManager, only with the SimpleTcpReplicationManager. As the name suggest, the DeltaManager only replicates deltas, and hence it can only replicate when the session is dirty. The clustering configuration has changed a little bit since 5.0.19, to make it more modularized. Also, the debug flag is a thing of the past, the clustering module is currently using the commons logger, same way all the other components are using it. Filip - Original Message - From: Sam Lawrence [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 9:26 AM Subject: Clustering with 5.0.19 Hi, I've successfully clustered two instances of Tomcat on different machines and I'm now trying to do some fine tuning on a struts based site. I want to make sure that the session is only being replicated when it needs to be. I have useDirtyFlag=true although I'm not sure that it isn't still being re-sent after every request. I have the following Cluster element in my server.xml - Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false debug=10 printToScreen=true useDirtyFlag=true Although I have the debug/printToScreen attributes, I'm not seeing any debug information about session replication. How can I get some debug info? Any help greatly appreciated! Thanks, Sam Lawrence - 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]
domain name help
I have Apache2, Tomcat 4.1 and jk2 configured and working properly when I use http://localhost/examples. However, I would like to only have to type http://www.mydomain.com (without the /examples) to access the site. The problem I am having is that once I get to the examples page, none of the jsp or serverlets examples work because the url path is missing examples. Am I missing a config setting somewhere? Please help. Thank you. Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Clustering with 5.0.19
Thanks Filip, Do you know if there is any way I can get some debug info from 5.0.19? I'd feel happier going with a release build if possible. Kind regards, Sam. -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: 05 May 2004 15:31 To: Tomcat Users List Subject: Re: Clustering with 5.0.19 useDirtyFlag is not used with the DeltaManager, only with the SimpleTcpReplicationManager. As the name suggest, the DeltaManager only replicates deltas, and hence it can only replicate when the session is dirty. The clustering configuration has changed a little bit since 5.0.19, to make it more modularized. Also, the debug flag is a thing of the past, the clustering module is currently using the commons logger, same way all the other components are using it. Filip - Original Message - From: Sam Lawrence [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 9:26 AM Subject: Clustering with 5.0.19 Hi, I've successfully clustered two instances of Tomcat on different machines and I'm now trying to do some fine tuning on a struts based site. I want to make sure that the session is only being replicated when it needs to be. I have useDirtyFlag=true although I'm not sure that it isn't still being re-sent after every request. I have the following Cluster element in my server.xml - Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false debug=10 printToScreen=true useDirtyFlag=true Although I have the debug/printToScreen attributes, I'm not seeing any debug information about session replication. How can I get some debug info? Any help greatly appreciated! Thanks, Sam Lawrence - 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: domain name help
i am not sure, but does this not have to do with setting up a default startup page in the following Apache config file: httpd.conf specifically lines in that file something like as follows, DocumentRoot C:/Tomcat41/webapps/ROOT DirectoryIndex index.html index.jsp - Original Message - From: Charles Jordan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 10:32 AM Subject: domain name help I have Apache2, Tomcat 4.1 and jk2 configured and working properly when I use http://localhost/examples. However, I would like to only have to type http://www.mydomain.com (without the /examples) to access the site. The problem I am having is that once I get to the examples page, none of the jsp or serverlets examples work because the url path is missing examples. Am I missing a config setting somewhere? Please help. Thank you. Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - 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]
mod_jk2 tomcat
Hi, I have two tomcat server one in Machine1 and another to machine2 their name is www..biz and i want to do work clustering : in machine1 tomcat5.0.19 apache2 mod_jk2 in machine2 tomcat5.0.19 apache2 mod_jk2 my workers2.properties on machine1 is : --- [logger] level=DEBUG [config:] file=/usr/local/apache2/conf/workers2.properties debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 # Alternate file logger [logger.file:0] level=DEBUG file=/usr/local/apache2/logs/jk2.log [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess serve rs file=/var/run/jk2.shm size=1048576 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=0 [lb:lb] info=Default load balancer. debug=0 [channel.socket:localhost:8009] info=Ajp13 forwarding to localhost 8009 debug=10 tomcatId=tomcat lb_factor=99 group=lb ver=1 graceful=0 disabled=0 [channel.socket:192.168.0.68:8009] info=Ajp13 forwarding to 192.168.0.68 8009 debug=10 tomcatId=tomcat lb_factor=33 group=lb ver=1 graceful=0 disabled=0 [status:] info=Status worker, displays runtime informations [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: [uri:/pro/*.jsp] info=Prefix mapping [uri:/pro/*.jsp] info=Extension mapping [uri:/pro/*] info=The pro webapp. debug=0 the server.xml : !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / Engine jvmRoute=tomcat1 name=Standalone defaultHost=localhost debug= 0 when i start apache: [Wed May 05 16:58:52 2004] [notice] config.update(): done logger [Wed May 05 16:58:52 2004] [notice] config.update(): done config: [Wed May 05 16:58:52 2004] [notice] config.update(): done uriMap: [Wed May 05 16:58:52 2004] ( info ) [jk_logger_file.c (176)] Level DEBUG 0 [Wed May 05 16:58:52 2004] [notice] config.update(): done logger.file:0 [Wed May 05 16:58:52 2004] [notice] config.update(): done shm: [Wed May 05 16:58:52 2004] [notice] config.update(): done workerEnv: [Wed May 05 16:58:52 2004] [notice] config.update(): done lb:lb [Wed May 05 16:58:52 2004] [notice] config.update(): done channel.socket:localhost:8009 [Wed May 05 16:58:52 2004] [notice] config.update(): done channel.socket:192.168.0.68:8009 [Wed May 05 16:58:52 2004] [notice] config.update(): done status: [Wed May 05 16:58:52 2004] [notice] config.update(): done uri:/jkstatus/* [Wed May 05 16:58:52 2004] [notice] config.update(): done uri:/pro/*.jsp [Wed May 05 16:58:52 2004] [notice] config.update(): done uri:/pro/*.jsp [Wed May 05 16:58:52 2004] [notice] config.update(): done uri:/pro/* When i send a request only the server who i send the request answer .. can someone help me thanks for answer. Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache2/mod_jk2 : Alias and JkUriSet don't work together
Hi ! I'm using Apache 2.0.49 with mod_jk 2.0.4 on Windows. Every thing works fine if i write all jk2 configuration in workers2.properties. But know, I would like to write some of it in httpd.conf, and something doesn't work. This works fine : Location /root/test JkUriSet worker ajp13:localhost:8009 /Location A call to http://domain/root/test is redirected to Tomcat as expected. but this : Alias /root /the/path/you/want Location /root/test JkUriSet worker ajp13:localhost:8009 /Location doesn't work anymore ! I get now 404 error for http://domain/root/test !! Apache seems to ignore any other configuration about /root after the definition of the alias. So, how can I do ? Thanks Damien Lecan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
log4j logging in Tomcat WAS: Clustering with 5.0.19
you need to enable it at the logger level, the code is currently logging with Log.info/Log.debug etc You can make is use log4j and do it using the log4j conf file http://jakarta.apache.org/commons/logging/guide.html To make some simple steps, I remember there was thread on this last week, not sure if they got it to work so here are the steps, let me know if you have problems 1. Download latest log4j package 2. Put the log4j-1.2.8.jar (or whatever name it is) in your $CATALINA_HOME/bin 3. In catalina.sh/catalina.bat add the log4j to the system classpath 4. in catalina.sh/catalina.bat, on the top add the JAVA_OPTS setting like this JAVA_OPTS=-Dlog4j.debug -Dlogj4.configuration=$CATALINA_HOME/bin/log4j.properties 5. Put your log4j.properties file in CATALINA_HOME/bin of course, if you are on windows you will need to change / for \ and $ for %% but I am sure you can figure that for yourself :) Filip - Original Message - From: Sam Lawrence [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 10:00 AM Subject: RE: Clustering with 5.0.19 Thanks Filip, Do you know if there is any way I can get some debug info from 5.0.19? I'd feel happier going with a release build if possible. Kind regards, Sam. -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: 05 May 2004 15:31 To: Tomcat Users List Subject: Re: Clustering with 5.0.19 useDirtyFlag is not used with the DeltaManager, only with the SimpleTcpReplicationManager. As the name suggest, the DeltaManager only replicates deltas, and hence it can only replicate when the session is dirty. The clustering configuration has changed a little bit since 5.0.19, to make it more modularized. Also, the debug flag is a thing of the past, the clustering module is currently using the commons logger, same way all the other components are using it. Filip - Original Message - From: Sam Lawrence [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 9:26 AM Subject: Clustering with 5.0.19 Hi, I've successfully clustered two instances of Tomcat on different machines and I'm now trying to do some fine tuning on a struts based site. I want to make sure that the session is only being replicated when it needs to be. I have useDirtyFlag=true although I'm not sure that it isn't still being re-sent after every request. I have the following Cluster element in my server.xml - Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false debug=10 printToScreen=true useDirtyFlag=true Although I have the debug/printToScreen attributes, I'm not seeing any debug information about session replication. How can I get some debug info? Any help greatly appreciated! Thanks, Sam Lawrence - 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]
mod_jk hangs
Just yesterday we started running into problems requesting pages on our production website through mod_jk. Previously everything had been working fine for months. Essentially what happens is when you request the page for the first time (doesn't seem to matter what browser you're using) the browser just sits and spins. Then after hitting refresh (Ctrl+R) a couple times it finally comes up. Subsequent visits to the same page continue to work for me in Mozilla but after closing IE and reopening it after a couple more requests it hangs again. In case it helps, the site in question is http://www.atmreports.com. I simply cannot figure out what is going on. I do see many errors in the mod_jk.log, but these had been there before when everything worked fine too: [Wed May 05 09:27:46 2004] [jk_ajp_common.c (1137)]: Error reading reply from tomcat. Tomcat is down or network problems. [Wed May 05 09:27:46 2004] [jk_ajp_common.c (1290)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Wed May 05 09:27:46 2004] [jk_ajp_common.c (1309)]: sending request to tomcat failed in send loop. err=0 [Wed May 05 09:27:46 2004] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-1 A few things to note, any of which may contribute to the problem but for the life of me I can't figure out how: 1. On Friday we just moved out datacenter to a new location. However we see this problem even internally at the location so I don't believe it is any sort of routing issue (and the problem didn't start until Tuesday). 2. The clock on this webserver was many hours off. On Tuesday (yes, the day the problems started) the clock was synchronized and the timezone correctly set so the machine now has correct time. This seems to be the most probable cause simply because it happened around the same time, but I just can't understand why or how. 3. Yesterday we rebooted the box to see if that would help. It did. We didn't have any more problems at all that day until this morning we see the problems again. Today we recycled just tomcat and that seems to have fixed it as well, though I expect that by tomorrow I will see the problem again. 4. I wouldn't think this could have anything to do with that new Sasser worm, but listing that just in case. The machine is running Linux kernel 2.4.20-8 with httpd-2.0.40-21 and jakarta-tomcat-5.0.18. We are running 4 instances of tomcat on the box, each started with the following JVM options: -Xmn128M -Xmx1024M -Djava.awt.headless=true Nothing having to do with configuration has changed at all in a long time. Here is the relevant configuration sections: # Mod_jk (Tomcat connector) LoadModule jk_module modules/mod_jk.so IfModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T /IfModule ...and later (in a VirtualHost section)... JKMount /myreports balancer JKMount /myreports/* balancer Here is our workers.properties file (comments removed): workers.java_home=/usr/java/j2sdk1.4.2_03 ps=/ worker.list=balancer worker.ajp13_0.port=8090 worker.ajp13_0.host=localhost worker.ajp13_0.type=ajp13 worker.ajp13_0.lbfactor=1 worker.ajp13_1.port=8091 worker.ajp13_1.host=localhost worker.ajp13_1.type=ajp13 worker.ajp13_1.lbfactor=1 worker.ajp13_2.port=8092 worker.ajp13_2.host=localhost worker.ajp13_2.type=ajp13 worker.ajp13_2.lbfactor=1 worker.ajp13_3.port=8093 worker.ajp13_3.host=localhost worker.ajp13_3.type=ajp13 worker.ajp13_3.lbfactor=1 worker.balancer.type=lb worker.balancer.balanced_workers=ajp13_0, ajp13_1, ajp13_2, ajp13_3 worker.balancer.sticky_session=1 Any help would be greatly appreciated! Thanks, -shawn -- Shawn Wilson [EMAIL PROTECTED] Software Developer, ATMReports.com PH: 877-327-0873, FAX: 406-294-5806 smime.p7s Description: S/MIME Cryptographic Signature
Encoding problems hwen using tomcat through mod_jk
Hi there. SuSE 8.2 default packages: (Apache 1.3.27, Tomcat 4.1.18, mod_jk 1.2.2-dev) Java: Sun 1.4.2_03 I've searched the archives and didn't find an answer so I'm sending my problem to the list. In my development environment I use Tomcat directly through the 8080 port and special characters like áéíóúñ show ok on the resulting pages generated from the servlets. But in the production server we're using apache httpd as a front-end and mod_jk as a connector to tomcat using port 8009. The problem is that in this environment the special characters are replaced whith a ? (question sign). ¿Any guide on how to resolve this? Thank you in advance. Diego - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk hangs
You might want to check to make sure you have enough tomcat threads for each apache thread. I usually give tomcat a few more threads than apache just to make sure I do not run out. ---snip !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 minSpareThreads=100 maxSpareThreads=300 protocol=AJP/1.3 / ---snip So you might want to increase min and max spare threads to accomodate more requestes from apache to tomcat via mod_jk. Randall -Original Message- From: Shawn Wilson [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 9:50 AM To: [EMAIL PROTECTED] Subject: mod_jk hangs Just yesterday we started running into problems requesting pages on our production website through mod_jk. Previously everything had been working fine for months. Essentially what happens is when you request the page for the first time (doesn't seem to matter what browser you're using) the browser just sits and spins. Then after hitting refresh (Ctrl+R) a couple times it finally comes up. Subsequent visits to the same page continue to work for me in Mozilla but after closing IE and reopening it after a couple more requests it hangs again. In case it helps, the site in question is http://www.atmreports.com. I simply cannot figure out what is going on. I do see many errors in the mod_jk.log, but these had been there before when everything worked fine too: [Wed May 05 09:27:46 2004] [jk_ajp_common.c (1137)]: Error reading reply from tomcat. Tomcat is down or network problems. [Wed May 05 09:27:46 2004] [jk_ajp_common.c (1290)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Wed May 05 09:27:46 2004] [jk_ajp_common.c (1309)]: sending request to tomcat failed in send loop. err=0 [Wed May 05 09:27:46 2004] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-1 A few things to note, any of which may contribute to the problem but for the life of me I can't figure out how: 1. On Friday we just moved out datacenter to a new location. However we see this problem even internally at the location so I don't believe it is any sort of routing issue (and the problem didn't start until Tuesday). 2. The clock on this webserver was many hours off. On Tuesday (yes, the day the problems started) the clock was synchronized and the timezone correctly set so the machine now has correct time. This seems to be the most probable cause simply because it happened around the same time, but I just can't understand why or how. 3. Yesterday we rebooted the box to see if that would help. It did. We didn't have any more problems at all that day until this morning we see the problems again. Today we recycled just tomcat and that seems to have fixed it as well, though I expect that by tomorrow I will see the problem again. 4. I wouldn't think this could have anything to do with that new Sasser worm, but listing that just in case. The machine is running Linux kernel 2.4.20-8 with httpd-2.0.40-21 and jakarta-tomcat-5.0.18. We are running 4 instances of tomcat on the box, each started with the following JVM options: -Xmn128M -Xmx1024M -Djava.awt.headless=true Nothing having to do with configuration has changed at all in a long time. Here is the relevant configuration sections: # Mod_jk (Tomcat connector) LoadModule jk_module modules/mod_jk.so IfModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T /IfModule ...and later (in a VirtualHost section)... JKMount /myreports balancer JKMount /myreports/* balancer Here is our workers.properties file (comments removed): workers.java_home=/usr/java/j2sdk1.4.2_03 ps=/ worker.list=balancer worker.ajp13_0.port=8090 worker.ajp13_0.host=localhost worker.ajp13_0.type=ajp13 worker.ajp13_0.lbfactor=1 worker.ajp13_1.port=8091 worker.ajp13_1.host=localhost worker.ajp13_1.type=ajp13 worker.ajp13_1.lbfactor=1 worker.ajp13_2.port=8092 worker.ajp13_2.host=localhost worker.ajp13_2.type=ajp13 worker.ajp13_2.lbfactor=1 worker.ajp13_3.port=8093 worker.ajp13_3.host=localhost worker.ajp13_3.type=ajp13 worker.ajp13_3.lbfactor=1 worker.balancer.type=lb worker.balancer.balanced_workers=ajp13_0, ajp13_1, ajp13_2, ajp13_3 worker.balancer.sticky_session=1 Any help would be greatly appreciated! Thanks, -shawn -- Shawn Wilson [EMAIL PROTECTED] Software Developer, ATMReports.com PH: 877-327-0873, FAX: 406-294-5806 - To unsubscribe, e-mail: [EMAIL PROTECTED]
Re: mod_jk hangs
I can understand how that could help, is there a different syntax for maxSpareThreads for tomcat4 than tomcat5? I see minProcessors and maxProcessors in my configuration, but nothing about minSpareThreads or maxSpareThreads I'm using tomcat 4.1.30 Daniel Randall Svancara wrote: You might want to check to make sure you have enough tomcat threads for each apache thread. I usually give tomcat a few more threads than apache just to make sure I do not run out. ---snip !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 minSpareThreads=100 maxSpareThreads=300 protocol=AJP/1.3 / ---snip So you might want to increase min and max spare threads to accomodate more requestes from apache to tomcat via mod_jk. Randall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk hangs
Also, do these attributes need to be set on the HttpConnector on 8080 as well as the AJP or Coyote connector on 8009? Daniel Gibby wrote: I can understand how that could help, is there a different syntax for maxSpareThreads for tomcat4 than tomcat5? I see minProcessors and maxProcessors in my configuration, but nothing about minSpareThreads or maxSpareThreads I'm using tomcat 4.1.30 Daniel Randall Svancara wrote: You might want to check to make sure you have enough tomcat threads for each apache thread. I usually give tomcat a few more threads than apache just to make sure I do not run out. ---snip !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 minSpareThreads=100 maxSpareThreads=300 protocol=AJP/1.3 / ---snip So you might want to increase min and max spare threads to accomodate more requestes from apache to tomcat via mod_jk. Randall - 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]
Tomcat does not accept new versions of jar or class files
Hi all, I've got a strange problem: Tomcat 4 does not use the new class or jar files I give it. Of course I restarted Tomcat, I even rebooted Windows. There is no way to make Tomcat use the new files. A colleage once had the same problem. After he had deleted the old class file, Tomcat reported a ClassNotFoundEx or so. Then he put the new class file - and guess what: Tomcat used the old one again. The colleage actually solved the problem by booting the Unix machine Tomcat ran on. Unfortunately even this does not work in my case now. Has anyone realized similar problems and does know what to do? Does Tomcat have some kind of caching directory? Or could it be the JVM that does some caching, in my case 1.4.2_02 from Sun? Thanks in advance. Andreas -- Sie haben neue Mails! - Die GMX Toolbar informiert Sie beim Surfen! Jetzt aktivieren unter http://www.gmx.net/info - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk hangs
On tomcat 4.1.30 it is minProcessors and maxProcessors. And by the look of our production box, I could stand to increase the size a little bit too. !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=75 maxProcessors=300 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Randall -Original Message- From: Daniel Gibby [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 10:04 AM To: Tomcat Users List Subject: Re: mod_jk hangs Also, do these attributes need to be set on the HttpConnector on 8080 as well as the AJP or Coyote connector on 8009? Daniel Gibby wrote: I can understand how that could help, is there a different syntax for maxSpareThreads for tomcat4 than tomcat5? I see minProcessors and maxProcessors in my configuration, but nothing about minSpareThreads or maxSpareThreads I'm using tomcat 4.1.30 Daniel Randall Svancara wrote: You might want to check to make sure you have enough tomcat threads for each apache thread. I usually give tomcat a few more threads than apache just to make sure I do not run out. ---snip !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 minSpareThreads=100 maxSpareThreads=300 protocol=AJP/1.3 / ---snip So you might want to increase min and max spare threads to accomodate more requestes from apache to tomcat via mod_jk. Randall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat does not accept new versions of jar or class files
Hi, Has anyone realized similar problems and does know what to do? Does Tomcat have some kind of caching directory? Or could it be the JVM that does some caching, in my case 1.4.2_02 from Sun? Neither tomcat nor the JVM do any class caching that would survive a JVM restart, much less a system reboot. Are you sure you're putting the class in the right place? 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: mod_jk hangs
Okay, here is the section from our server.xml in production: Service name=Catalina Connector port=8080 / !-- This is here for compatibility only, not required -- Connector port=8090 protocol=AJP/1.3 / Engine name=Catalina defaultHost=localhost jvmRoute=ajp13_0 Logger className=org.apache.catalina.logger.FileLogger / Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase / Host name=localhost appBase=webapps / /Engine /Service I thought it interesting the comment that this is here for compatibility only, not required. It sounds to me that connector is required if I want AJP/1.3 isn't it? I can't remember if that comment was there or if I (mistakingly) added it. Anyways, I see that I could probably do well to add the minSpareThreads and maxSpareThreads parameters. Any idea where I should look in my httpd.conf file to see what values to set these to? Thanks, -shawn Randall Svancara wrote: You might want to check to make sure you have enough tomcat threads for each apache thread. I usually give tomcat a few more threads than apache just to make sure I do not run out. ---snip !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 minSpareThreads=100 maxSpareThreads=300 protocol=AJP/1.3 / ---snip So you might want to increase min and max spare threads to accomodate more requestes from apache to tomcat via mod_jk. Randall -Original Message- From: Shawn Wilson [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 9:50 AM To: [EMAIL PROTECTED] Subject: mod_jk hangs Just yesterday we started running into problems requesting pages on our production website through mod_jk. Previously everything had been working fine for months. Essentially what happens is when you request the page for the first time (doesn't seem to matter what browser you're using) the browser just sits and spins. Then after hitting refresh (Ctrl+R) a couple times it finally comes up. Subsequent visits to the same page continue to work for me in Mozilla but after closing IE and reopening it after a couple more requests it hangs again. In case it helps, the site in question is http://www.atmreports.com. I simply cannot figure out what is going on. I do see many errors in the mod_jk.log, but these had been there before when everything worked fine too: [Wed May 05 09:27:46 2004] [jk_ajp_common.c (1137)]: Error reading reply from tomcat. Tomcat is down or network problems. [Wed May 05 09:27:46 2004] [jk_ajp_common.c (1290)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Wed May 05 09:27:46 2004] [jk_ajp_common.c (1309)]: sending request to tomcat failed in send loop. err=0 [Wed May 05 09:27:46 2004] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-1 A few things to note, any of which may contribute to the problem but for the life of me I can't figure out how: 1. On Friday we just moved out datacenter to a new location. However we see this problem even internally at the location so I don't believe it is any sort of routing issue (and the problem didn't start until Tuesday). 2. The clock on this webserver was many hours off. On Tuesday (yes, the day the problems started) the clock was synchronized and the timezone correctly set so the machine now has correct time. This seems to be the most probable cause simply because it happened around the same time, but I just can't understand why or how. 3. Yesterday we rebooted the box to see if that would help. It did. We didn't have any more problems at all that day until this morning we see the problems again. Today we recycled just tomcat and that seems to have fixed it as well, though I expect that by tomorrow I will see the problem again. 4. I wouldn't think this could have anything to do with that new Sasser worm, but listing that just in case. The machine is running Linux kernel 2.4.20-8 with httpd-2.0.40-21 and jakarta-tomcat-5.0.18. We are running 4 instances of tomcat on the box, each started with the following JVM options: -Xmn128M -Xmx1024M -Djava.awt.headless=true Nothing having to do with configuration has changed at all in a long time. Here is the relevant configuration sections: # Mod_jk (Tomcat connector) LoadModule jk_module modules/mod_jk.so IfModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T /IfModule ...and later (in a VirtualHost section)... JKMount /myreports balancer JKMount /myreports/* balancer Here is our workers.properties file (comments
Re-Deploy WebApp
Hello, I have a problem about a lot of deployement on différent Web server. Some file in my webapp are specific of a server and some files can be modify (I know all files modified). In the first deploy, it's not a problem. But when i want to update my webapp if i download a new war, my webapp delete the specific file. Do you know a solution about this problem. If you have link, project or key word to help me thanks PS : Sorry for my english, if you want more information, contact me -- *Franck DARRAS *
RE: mod_jk hangs
Well, that depends on what platform and how apache was compiled. As I understand on windows, apache uses the mpm modules and unix it uses forking or it can use mpm. You need to find the section for you platform and make the ajustments as neccessary. Below is the section where you need to look in your apache configuration file, usually called httpd.conf, but i have seen them named apache.conf (gentoo anyone). But you can see the min and max spare servers/threads listed in each section. Just adjust accordingly. I hope this helps. IfModule prefork.c StartServers 75 MinSpareServers 75 MaxSpareServers 300 MaxClients 300 MaxRequestsPerChild 0 /IfModule # worker MPM # StartServers: initial number of server processes to start # MaxClients: maximum number of simultaneous client connections # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadsPerChild: constant number of worker threads in each server process # MaxRequestsPerChild: maximum number of requests a server process serves IfModule worker.c StartServers 75 MaxClients 300 MinSpareThreads 75 MaxSpareThreads 300 ThreadsPerChild 25 MaxRequestsPerChild 0 /IfModule # perchild MPM # NumServers: constant number of server processes # StartThreads: initial number of worker threads in each server process # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # MaxThreadsPerChild: maximum number of worker threads in each server process # MaxRequestsPerChild: maximum number of connections per server process IfModule perchild.c NumServers 75 StartThreads 75 MinSpareThreads 75 MaxSpareThreads 300 MaxThreadsPerChild 20 MaxRequestsPerChild 0 /IfModule # WinNT MPM # ThreadsPerChild: constant number of worker threads in the server process # MaxRequestsPerChild: maximum number of requests a server process serves IfModule mpm_winnt.c ThreadsPerChild 250 MaxRequestsPerChild 0 /IfModule -Original Message- From: Shawn Wilson [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 10:21 AM To: Tomcat Users List Subject: Re: mod_jk hangs Okay, here is the section from our server.xml in production: Service name=Catalina Connector port=8080 / !-- This is here for compatibility only, not required -- Connector port=8090 protocol=AJP/1.3 / Engine name=Catalina defaultHost=localhost jvmRoute=ajp13_0 Logger className=org.apache.catalina.logger.FileLogger / Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase / Host name=localhost appBase=webapps / /Engine /Service I thought it interesting the comment that this is here for compatibility only, not required. It sounds to me that connector is required if I want AJP/1.3 isn't it? I can't remember if that comment was there or if I (mistakingly) added it. Anyways, I see that I could probably do well to add the minSpareThreads and maxSpareThreads parameters. Any idea where I should look in my httpd.conf file to see what values to set these to? Thanks, -shawn Randall Svancara wrote: You might want to check to make sure you have enough tomcat threads for each apache thread. I usually give tomcat a few more threads than apache just to make sure I do not run out. ---snip !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 minSpareThreads=100 maxSpareThreads=300 protocol=AJP/1.3 / ---snip So you might want to increase min and max spare threads to accomodate more requestes from apache to tomcat via mod_jk. Randall -Original Message- From: Shawn Wilson [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 9:50 AM To: [EMAIL PROTECTED] Subject: mod_jk hangs Just yesterday we started running into problems requesting pages on our production website through mod_jk. Previously everything had been working fine for months. Essentially what happens is when you request the page for the first time (doesn't seem to matter what browser you're using) the browser just sits and spins. Then after hitting refresh (Ctrl+R) a couple times it finally comes up. Subsequent visits to the same page continue to work for me in Mozilla but after closing IE and reopening it after a couple more requests it hangs again. In case it helps, the site in question is http://www.atmreports.com. I simply cannot figure out what is going on. I do see many errors in the mod_jk.log, but these had been there before when everything worked fine too: [Wed May 05 09:27:46 2004] [jk_ajp_common.c (1137)]: Error reading reply from tomcat.
Re: mod_jk hangs
Looks like the maximum for everyting in my config was 150 so I'll try setting maxSpareThreads for Tomcat to 150 as well. If this is indeed the cause of the problem, any idea why it would just start happening yesterday after months without problem? My only guess is that perhaps we just happened to reach some threshold of traffic yesterday that we never did before. Actually, that may indeed be the case since we usually get a surge of traffic during the beginning of a month. Thanks, -shawn Randall Svancara wrote: Well, that depends on what platform and how apache was compiled. As I understand on windows, apache uses the mpm modules and unix it uses forking or it can use mpm. You need to find the section for you platform and make the ajustments as neccessary. Below is the section where you need to look in your apache configuration file, usually called httpd.conf, but i have seen them named apache.conf (gentoo anyone). But you can see the min and max spare servers/threads listed in each section. Just adjust accordingly. I hope this helps. IfModule prefork.c StartServers 75 MinSpareServers 75 MaxSpareServers 300 MaxClients 300 MaxRequestsPerChild 0 /IfModule # worker MPM # StartServers: initial number of server processes to start # MaxClients: maximum number of simultaneous client connections # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadsPerChild: constant number of worker threads in each server process # MaxRequestsPerChild: maximum number of requests a server process serves IfModule worker.c StartServers 75 MaxClients 300 MinSpareThreads 75 MaxSpareThreads 300 ThreadsPerChild 25 MaxRequestsPerChild 0 /IfModule # perchild MPM # NumServers: constant number of server processes # StartThreads: initial number of worker threads in each server process # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # MaxThreadsPerChild: maximum number of worker threads in each server process # MaxRequestsPerChild: maximum number of connections per server process IfModule perchild.c NumServers 75 StartThreads 75 MinSpareThreads 75 MaxSpareThreads 300 MaxThreadsPerChild 20 MaxRequestsPerChild 0 /IfModule # WinNT MPM # ThreadsPerChild: constant number of worker threads in the server process # MaxRequestsPerChild: maximum number of requests a server process serves IfModule mpm_winnt.c ThreadsPerChild 250 MaxRequestsPerChild 0 /IfModule -Original Message- From: Shawn Wilson [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 10:21 AM To: Tomcat Users List Subject: Re: mod_jk hangs Okay, here is the section from our server.xml in production: Service name=Catalina Connector port=8080 / !-- This is here for compatibility only, not required -- Connector port=8090 protocol=AJP/1.3 / Engine name=Catalina defaultHost=localhost jvmRoute=ajp13_0 Logger className=org.apache.catalina.logger.FileLogger / Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase / Host name=localhost appBase=webapps / /Engine /Service I thought it interesting the comment that this is here for compatibility only, not required. It sounds to me that connector is required if I want AJP/1.3 isn't it? I can't remember if that comment was there or if I (mistakingly) added it. Anyways, I see that I could probably do well to add the minSpareThreads and maxSpareThreads parameters. Any idea where I should look in my httpd.conf file to see what values to set these to? Thanks, -shawn Randall Svancara wrote: You might want to check to make sure you have enough tomcat threads for each apache thread. I usually give tomcat a few more threads than apache just to make sure I do not run out. ---snip !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 minSpareThreads=100 maxSpareThreads=300 protocol=AJP/1.3 / ---snip So you might want to increase min and max spare threads to accomodate more requestes from apache to tomcat via mod_jk. Randall -Original Message- From: Shawn Wilson [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 9:50 AM To: [EMAIL PROTECTED] Subject: mod_jk hangs Just yesterday we started running into problems requesting pages on our production website through mod_jk. Previously everything had been working fine for months. Essentially what happens is when you request the page for the first time (doesn't seem to matter what browser you're using) the browser just sits and spins. Then after hitting refresh (Ctrl+R) a couple times it finally comes up.
RE: mod_jk hangs
I bet your traffic has increase enough that hitting your limit. I implemented a web app at the beginning of this year and I eventually had to increase maximum for everything as our usage increased. Randall -Original Message- From: Shawn Wilson [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 10:46 AM To: Tomcat Users List Subject: Re: mod_jk hangs Looks like the maximum for everyting in my config was 150 so I'll try setting maxSpareThreads for Tomcat to 150 as well. If this is indeed the cause of the problem, any idea why it would just start happening yesterday after months without problem? My only guess is that perhaps we just happened to reach some threshold of traffic yesterday that we never did before. Actually, that may indeed be the case since we usually get a surge of traffic during the beginning of a month. Thanks, -shawn Randall Svancara wrote: Well, that depends on what platform and how apache was compiled. As I understand on windows, apache uses the mpm modules and unix it uses forking or it can use mpm. You need to find the section for you platform and make the ajustments as neccessary. Below is the section where you need to look in your apache configuration file, usually called httpd.conf, but i have seen them named apache.conf (gentoo anyone). But you can see the min and max spare servers/threads listed in each section. Just adjust accordingly. I hope this helps. IfModule prefork.c StartServers 75 MinSpareServers 75 MaxSpareServers 300 MaxClients 300 MaxRequestsPerChild 0 /IfModule # worker MPM # StartServers: initial number of server processes to start # MaxClients: maximum number of simultaneous client connections # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadsPerChild: constant number of worker threads in each server process # MaxRequestsPerChild: maximum number of requests a server process serves IfModule worker.c StartServers 75 MaxClients 300 MinSpareThreads 75 MaxSpareThreads 300 ThreadsPerChild 25 MaxRequestsPerChild 0 /IfModule # perchild MPM # NumServers: constant number of server processes # StartThreads: initial number of worker threads in each server process # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # MaxThreadsPerChild: maximum number of worker threads in each server process # MaxRequestsPerChild: maximum number of connections per server process IfModule perchild.c NumServers 75 StartThreads 75 MinSpareThreads 75 MaxSpareThreads 300 MaxThreadsPerChild 20 MaxRequestsPerChild 0 /IfModule # WinNT MPM # ThreadsPerChild: constant number of worker threads in the server process # MaxRequestsPerChild: maximum number of requests a server process serves IfModule mpm_winnt.c ThreadsPerChild 250 MaxRequestsPerChild 0 /IfModule -Original Message- From: Shawn Wilson [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 10:21 AM To: Tomcat Users List Subject: Re: mod_jk hangs Okay, here is the section from our server.xml in production: Service name=Catalina Connector port=8080 / !-- This is here for compatibility only, not required -- Connector port=8090 protocol=AJP/1.3 / Engine name=Catalina defaultHost=localhost jvmRoute=ajp13_0 Logger className=org.apache.catalina.logger.FileLogger / Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase / Host name=localhost appBase=webapps / /Engine /Service I thought it interesting the comment that this is here for compatibility only, not required. It sounds to me that connector is required if I want AJP/1.3 isn't it? I can't remember if that comment was there or if I (mistakingly) added it. Anyways, I see that I could probably do well to add the minSpareThreads and maxSpareThreads parameters. Any idea where I should look in my httpd.conf file to see what values to set these to? Thanks, -shawn Randall Svancara wrote: You might want to check to make sure you have enough tomcat threads for each apache thread. I usually give tomcat a few more threads than apache just to make sure I do not run out. ---snip !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 minSpareThreads=100 maxSpareThreads=300 protocol=AJP/1.3 / ---snip So you might want to increase min and max spare threads to accomodate more requestes from apache to tomcat via mod_jk. Randall -Original Message- From: Shawn Wilson
RE: mod_jk hangs
Dang, my literacy skilz suck today. Sorry about that everyone. Have a good day. -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 10:49 AM To: Tomcat Users List Subject: RE: mod_jk hangs I bet your traffic has increase enough that hitting your limit. I implemented a web app at the beginning of this year and I eventually had to increase maximum for everything as our usage increased. Randall -Original Message- From: Shawn Wilson [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 10:46 AM To: Tomcat Users List Subject: Re: mod_jk hangs Looks like the maximum for everyting in my config was 150 so I'll try setting maxSpareThreads for Tomcat to 150 as well. If this is indeed the cause of the problem, any idea why it would just start happening yesterday after months without problem? My only guess is that perhaps we just happened to reach some threshold of traffic yesterday that we never did before. Actually, that may indeed be the case since we usually get a surge of traffic during the beginning of a month. Thanks, -shawn Randall Svancara wrote: Well, that depends on what platform and how apache was compiled. As I understand on windows, apache uses the mpm modules and unix it uses forking or it can use mpm. You need to find the section for you platform and make the ajustments as neccessary. Below is the section where you need to look in your apache configuration file, usually called httpd.conf, but i have seen them named apache.conf (gentoo anyone). But you can see the min and max spare servers/threads listed in each section. Just adjust accordingly. I hope this helps. IfModule prefork.c StartServers 75 MinSpareServers 75 MaxSpareServers 300 MaxClients 300 MaxRequestsPerChild 0 /IfModule # worker MPM # StartServers: initial number of server processes to start # MaxClients: maximum number of simultaneous client connections # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadsPerChild: constant number of worker threads in each server process # MaxRequestsPerChild: maximum number of requests a server process serves IfModule worker.c StartServers 75 MaxClients 300 MinSpareThreads 75 MaxSpareThreads 300 ThreadsPerChild 25 MaxRequestsPerChild 0 /IfModule # perchild MPM # NumServers: constant number of server processes # StartThreads: initial number of worker threads in each server process # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # MaxThreadsPerChild: maximum number of worker threads in each server process # MaxRequestsPerChild: maximum number of connections per server process IfModule perchild.c NumServers 75 StartThreads 75 MinSpareThreads 75 MaxSpareThreads 300 MaxThreadsPerChild 20 MaxRequestsPerChild 0 /IfModule # WinNT MPM # ThreadsPerChild: constant number of worker threads in the server process # MaxRequestsPerChild: maximum number of requests a server process serves IfModule mpm_winnt.c ThreadsPerChild 250 MaxRequestsPerChild 0 /IfModule -Original Message- From: Shawn Wilson [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 10:21 AM To: Tomcat Users List Subject: Re: mod_jk hangs Okay, here is the section from our server.xml in production: Service name=Catalina Connector port=8080 / !-- This is here for compatibility only, not required -- Connector port=8090 protocol=AJP/1.3 / Engine name=Catalina defaultHost=localhost jvmRoute=ajp13_0 Logger className=org.apache.catalina.logger.FileLogger / Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase / Host name=localhost appBase=webapps / /Engine /Service I thought it interesting the comment that this is here for compatibility only, not required. It sounds to me that connector is required if I want AJP/1.3 isn't it? I can't remember if that comment was there or if I (mistakingly) added it. Anyways, I see that I could probably do well to add the minSpareThreads and maxSpareThreads parameters. Any idea where I should look in my httpd.conf file to see what values to set these to? Thanks, -shawn Randall Svancara wrote: You might want to check to make sure you have enough tomcat threads for each apache thread. I usually give tomcat a few more threads than apache just to make sure I do not run out. ---snip !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 minSpareThreads=100
RE: Tomcat does not accept new versions of jar or class files
Hi, thank you for your quick response. Now it works. The reason was: I really got the wrong class file due to a chaining of unfortunate circumstances: the build process did not run last night and I didn't realize it because my wristwatch showed the yesterday date (because April's got only 30 days) :-( Regards, Andreas Hi, Has anyone realized similar problems and does know what to do? Does Tomcat have some kind of caching directory? Or could it be the JVM that does some caching, in my case 1.4.2_02 from Sun? Neither tomcat nor the JVM do any class caching that would survive a JVM restart, much less a system reboot. Are you sure you're putting the class in the right place? 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] -- Sie haben neue Mails! - Die GMX Toolbar informiert Sie beim Surfen! Jetzt aktivieren unter http://www.gmx.net/info - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 tomcat
Just one note. Because of the way that lb_factor works, having a factor as high as yours is absurd and a bit self defeating. You also might want to look into the level parameter instead of the lb_factor parameter. Check out the jk2 docs on the web page for psuedo code explaining my comments. --Angus -Original Message- From: keita elhadji [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 11:30 AM To: [EMAIL PROTECTED] Subject: mod_jk2 tomcat Hi, I have two tomcat server one in Machine1 and another to machine2 their name is www..biz and i want to do work clustering : in machine1 tomcat5.0.19 apache2 mod_jk2 in machine2 tomcat5.0.19 apache2 mod_jk2 my workers2.properties on machine1 is : --- [logger] level=DEBUG [config:] file=/usr/local/apache2/conf/workers2.properties debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 # Alternate file logger [logger.file:0] level=DEBUG file=/usr/local/apache2/logs/jk2.log [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess serve rs file=/var/run/jk2.shm size=1048576 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=0 [lb:lb] info=Default load balancer. debug=0 [channel.socket:localhost:8009] info=Ajp13 forwarding to localhost 8009 debug=10 tomcatId=tomcat lb_factor=99 group=lb ver=1 graceful=0 disabled=0 [channel.socket:192.168.0.68:8009] info=Ajp13 forwarding to 192.168.0.68 8009 debug=10 tomcatId=tomcat lb_factor=33 group=lb ver=1 graceful=0 disabled=0 [status:] info=Status worker, displays runtime informations [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: [uri:/pro/*.jsp] info=Prefix mapping [uri:/pro/*.jsp] info=Extension mapping [uri:/pro/*] info=The pro webapp. debug=0 the server.xml : !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / Engine jvmRoute=tomcat1 name=Standalone defaultHost=localhost debug= 0 when i start apache: [Wed May 05 16:58:52 2004] [notice] config.update(): done logger [Wed May 05 16:58:52 2004] [notice] config.update(): done config: [Wed May 05 16:58:52 2004] [notice] config.update(): done uriMap: [Wed May 05 16:58:52 2004] ( info ) [jk_logger_file.c (176)] Level DEBUG 0 [Wed May 05 16:58:52 2004] [notice] config.update(): done logger.file:0 [Wed May 05 16:58:52 2004] [notice] config.update(): done shm: [Wed May 05 16:58:52 2004] [notice] config.update(): done workerEnv: [Wed May 05 16:58:52 2004] [notice] config.update(): done lb:lb [Wed May 05 16:58:52 2004] [notice] config.update(): done channel.socket:localhost:8009 [Wed May 05 16:58:52 2004] [notice] config.update(): done channel.socket:192.168.0.68:8009 [Wed May 05 16:58:52 2004] [notice] config.update(): done status: [Wed May 05 16:58:52 2004] [notice] config.update(): done uri:/jkstatus/* [Wed May 05 16:58:52 2004] [notice] config.update(): done uri:/pro/*.jsp [Wed May 05 16:58:52 2004] [notice] config.update(): done uri:/pro/*.jsp [Wed May 05 16:58:52 2004] [notice] config.update(): done uri:/pro/* When i send a request only the server who i send the request answer .. can someone help me thanks for answer. Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger sur http://fr.messenger.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: Tomcat does not accept new versions of jar or class files
Hi, thank you for your quick response. Now it works. The reason was: I really got the wrong class file due to a chaining of unfortunate circumstances: the build process did not run last night and I didn't realize it because my wristwatch showed the yesterday date (because April's got only 30 days) :-( Wow, that's a good one! LOL. Glad you've figured it out. Yoav 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]
unhandled type in logs
I've recently started getting a lot of unhandled type messages in my logs - usually in groups of 5-7 lines in a row. I'm experiencing it on one of my webapps, but not other ones. It doesn't seem to affect the performance, reliability or functionality of my app - but it doesn't look good. Any ideas how to fix this? Could it be a corrupt JAR or something? Thanks, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: unhandled type in logs
Hi, Can you post a sample message? Yoav Shapira Millennium Research Informatics -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 1:19 PM To: Tomcat Users List Subject: unhandled type in logs I've recently started getting a lot of unhandled type messages in my logs - usually in groups of 5-7 lines in a row. I'm experiencing it on one of my webapps, but not other ones. It doesn't seem to affect the performance, reliability or functionality of my app - but it doesn't look good. Any ideas how to fix this? Could it be a corrupt JAR or something? Thanks, Matt - 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: Confirmation
[EMAIL PROTECTED] wrote: - 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: unhandled type in logs
This is what I'm seeing in my logs: [apptracker] DEBUG [http8080-Processor24] ResumeAction.edit(77) | Entering 'edit' method unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type [apptracker] DEBUG [http8080-Processor24] GeneralAction.edit(56) | Entering 'edit' method [apptracker] DEBUG [http8080-Processor24] ResumeManagerImpl.getGeneral(237) | fetching general information... [apptracker] DEBUG [http8080-Processor24] GeneralAction.setupList(133) | adding an empty previous employment record [apptracker] DEBUG [http8080-Processor24] GeneralAction.setupList(144) | adding an empty relatives record unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type [apptracker] DEBUG [http8080-Processor20] GeneralAction.edit(56) | Entering 'edit' method unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type [apptracker] DEBUG [http8080-Processor20] ResumeManagerImpl.getGeneral(237) | fetching general information... On May 5, 2004, at 11:22 AM, Shapira, Yoav wrote: Hi, Can you post a sample message? Yoav Shapira Millennium Research Informatics -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 1:19 PM To: Tomcat Users List Subject: unhandled type in logs I've recently started getting a lot of unhandled type messages in my logs - usually in groups of 5-7 lines in a row. I'm experiencing it on one of my webapps, but not other ones. It doesn't seem to affect the performance, reliability or functionality of my app - but it doesn't look good. Any ideas how to fix this? Could it be a corrupt JAR or something? Thanks, Matt - 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: unhandled type in logs
Hi, Strange. Are you sure it's from the tocmat classes? Yoav Shapira Millennium Research Informatics -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 2:43 PM To: Tomcat Users List Subject: Re: unhandled type in logs This is what I'm seeing in my logs: [apptracker] DEBUG [http8080-Processor24] ResumeAction.edit(77) | Entering 'edit' method unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type [apptracker] DEBUG [http8080-Processor24] GeneralAction.edit(56) | Entering 'edit' method [apptracker] DEBUG [http8080-Processor24] ResumeManagerImpl.getGeneral(237) | fetching general information... [apptracker] DEBUG [http8080-Processor24] GeneralAction.setupList(133) | adding an empty previous employment record [apptracker] DEBUG [http8080-Processor24] GeneralAction.setupList(144) | adding an empty relatives record unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type [apptracker] DEBUG [http8080-Processor20] GeneralAction.edit(56) | Entering 'edit' method unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type [apptracker] DEBUG [http8080-Processor20] ResumeManagerImpl.getGeneral(237) | fetching general information... On May 5, 2004, at 11:22 AM, Shapira, Yoav wrote: Hi, Can you post a sample message? Yoav Shapira Millennium Research Informatics -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 1:19 PM To: Tomcat Users List Subject: unhandled type in logs I've recently started getting a lot of unhandled type messages in my logs - usually in groups of 5-7 lines in a row. I'm experiencing it on one of my webapps, but not other ones. It doesn't seem to affect the performance, reliability or functionality of my app - but it doesn't look good. Any ideas how to fix this? Could it be a corrupt JAR or something? Thanks, Matt - 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] 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]
SSL CA (PKCS10) Problem
Our internal CA issued us a PKCS10 certificate but we can not get Tomcat 5.0.19 to recognize it. We imported the PKCS10 Cert using Keytool (java) which worked well. We then added the created .keystore to a new Connector using port 443. Here is the error that we are getting WARNING: Reinitializing ServerSocket May 3, 2004 9:29:59 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket SEVERE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8443]] ignored exception: java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: No available certificate corresponds to the SSL cipher suites which are enabled. java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: No available certificate corresponds to the SSL cipher suites which are enabled. at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocke tFactory.java:154) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint. java:410) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 591) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:688) at java.lang.Thread.run(Thread.java:534) Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unhandled type in logs
I have no idea what it's from - I suspect it's from a corrupt JAR or something else in my code - but everything works fine - that's why it's so wierd. I definitely don't think it's related to Tomcat, but I was hoping someone on this list might've seen it before. Matt P.S. I'm able to reproduce it on OS X, Win XP and Fedora - all running Tomcat 5.0.19. On May 5, 2004, at 12:46 PM, Shapira, Yoav wrote: Hi, Strange. Are you sure it's from the tocmat classes? Yoav Shapira Millennium Research Informatics -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 2:43 PM To: Tomcat Users List Subject: Re: unhandled type in logs This is what I'm seeing in my logs: [apptracker] DEBUG [http8080-Processor24] ResumeAction.edit(77) | Entering 'edit' method unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type [apptracker] DEBUG [http8080-Processor24] GeneralAction.edit(56) | Entering 'edit' method [apptracker] DEBUG [http8080-Processor24] ResumeManagerImpl.getGeneral(237) | fetching general information... [apptracker] DEBUG [http8080-Processor24] GeneralAction.setupList(133) | adding an empty previous employment record [apptracker] DEBUG [http8080-Processor24] GeneralAction.setupList(144) | adding an empty relatives record unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type [apptracker] DEBUG [http8080-Processor20] GeneralAction.edit(56) | Entering 'edit' method unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type unhandled type [apptracker] DEBUG [http8080-Processor20] ResumeManagerImpl.getGeneral(237) | fetching general information... On May 5, 2004, at 11:22 AM, Shapira, Yoav wrote: Hi, Can you post a sample message? Yoav Shapira Millennium Research Informatics -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 1:19 PM To: Tomcat Users List Subject: unhandled type in logs I've recently started getting a lot of unhandled type messages in my logs - usually in groups of 5-7 lines in a row. I'm experiencing it on one of my webapps, but not other ones. It doesn't seem to affect the performance, reliability or functionality of my app - but it doesn't look good. Any ideas how to fix this? Could it be a corrupt JAR or something? Thanks, Matt - 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] 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: unhandled type in logs
Hi, I have no idea what it's from - I suspect it's from a corrupt JAR or something else in my code - but everything works fine - that's why it's so wierd. I definitely don't think it's related to Tomcat, but I was hoping someone on this list might've seen it before. Where does the ResumeAction class come from? 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: unhandled type in logs
It's a Struts Action that I wrote - but the error is not specify to that class. It *does* seem to only happen after Actions are invoked though. I tried replacing all my Struts 1.1 JARs - but that didn't seem to fix anything. I have another app that uses pretty much the same architecture, but no error occurs over there. I did a search on Google for unhandled type tomcat and found this: http://www.google.com/search?q=%22unhandled+type%22+tomcat Don't know if bcel is used by Tomcat though. Maybe it's used in one of my other bundled projects (i.e. Hibernate, Spring, JSTL). Matt On May 5, 2004, at 12:53 PM, Shapira, Yoav wrote: Hi, I have no idea what it's from - I suspect it's from a corrupt JAR or something else in my code - but everything works fine - that's why it's so wierd. I definitely don't think it's related to Tomcat, but I was hoping someone on this list might've seen it before. Where does the ResumeAction class come from? 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: unhandled type in logs
Hi, BCEL is not used directly by tomcat (and not included in the tomcat distribution). I'm pretty sure it's by Hibernate, as Hibernate uses CGLIB which uses BCEL. Yoav Shapira Millennium Research Informatics -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 3:05 PM To: Tomcat Users List Subject: Re: unhandled type in logs It's a Struts Action that I wrote - but the error is not specify to that class. It *does* seem to only happen after Actions are invoked though. I tried replacing all my Struts 1.1 JARs - but that didn't seem to fix anything. I have another app that uses pretty much the same architecture, but no error occurs over there. I did a search on Google for unhandled type tomcat and found this: http://www.google.com/search?q=%22unhandled+type%22+tomcat Don't know if bcel is used by Tomcat though. Maybe it's used in one of my other bundled projects (i.e. Hibernate, Spring, JSTL). Matt On May 5, 2004, at 12:53 PM, Shapira, Yoav wrote: Hi, I have no idea what it's from - I suspect it's from a corrupt JAR or something else in my code - but everything works fine - that's why it's so wierd. I definitely don't think it's related to Tomcat, but I was hoping someone on this list might've seen it before. Where does the ResumeAction class come from? 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] 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]
Start and Stop Tomcat
I am looking for the correct and best way to stop and start Tomcat 4.0.6 when using IIS as the Webserver. I am new to Webserver and Servlet container so help information is welcome. Thanks Roxann L. Merrill - This e-mail is the exclusive, private and confidential property of the sender. The information contained in it is intended solely for the use of the sender and the intended recipient. If you are not the intended recipient you are hereby advised that any unauthorized disclosure, copying, distribution or the taking of any action in reliance on the contents of this message is strictly prohibited. If you have received this e-mail in error, please notify us immediately by telephone (call the USF Corporation Technical Support Center at 1-800-753-4563) and then destroy this document and any copies in any form immediately. Finally, the recipient should check this email and any attachments for the presence of viruses. USF Corporation accepts no liability for any damage caused by any virus transmitted by this email. -
Re: unhandled type in logs
Thanks. I tried upgrading from Hibernate 2.1.2 to Hibernate 2.1.3, but it didn't fix the issue. Oh well... I guess I'll just live with it... Matt On May 5, 2004, at 1:12 PM, Shapira, Yoav wrote: Hi, BCEL is not used directly by tomcat (and not included in the tomcat distribution). I'm pretty sure it's by Hibernate, as Hibernate uses CGLIB which uses BCEL. Yoav Shapira Millennium Research Informatics -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 3:05 PM To: Tomcat Users List Subject: Re: unhandled type in logs It's a Struts Action that I wrote - but the error is not specify to that class. It *does* seem to only happen after Actions are invoked though. I tried replacing all my Struts 1.1 JARs - but that didn't seem to fix anything. I have another app that uses pretty much the same architecture, but no error occurs over there. I did a search on Google for unhandled type tomcat and found this: http://www.google.com/search?q=%22unhandled+type%22+tomcat Don't know if bcel is used by Tomcat though. Maybe it's used in one of my other bundled projects (i.e. Hibernate, Spring, JSTL). Matt On May 5, 2004, at 12:53 PM, Shapira, Yoav wrote: Hi, I have no idea what it's from - I suspect it's from a corrupt JAR or something else in my code - but everything works fine - that's why it's so wierd. I definitely don't think it's related to Tomcat, but I was hoping someone on this list might've seen it before. Where does the ResumeAction class come from? 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] 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]
auto deploying the default web application
My application is packaged as a war file. I'd like to configure it as the default web application, and have auto-deploy active so that I can copy a new war file into the appbase directory and have it automatically deployed. I've only found one way of doing this (I'm using Tomcat 5.0.19): the war file must be named ROOT.war, and the context for the app must be defined with a path of /, as in the following: Context path=/ docBase=ROOT.war debug=0/ The documentation is specific that the path should be not / for the default app. And I've come across messages on this mailing list that say there's nothing special about the name ROOT. However, if I name the war file something else, the first time I drop a new war file into the appbase directory, hoping for an auto deploy, the application goes belly up instead (tomcat displays an error). All other variations that I've tried (and I've tried many) either resulted in tomcat errors or the auto-deploy would not work. Even though my current approach seems to work OK, it seems funky, not consistent with the documentation. Anyone have feedback on how this should be done? === Notice: This e-mail message, together with any attachments, contains information of Symyx Technologies, Inc. that may be confidential, proprietary, copyrighted, privileged and/or protected work product, and is meant solely for the intended recipient. If you are not the intended recipient, and have received this message in error, please contact the sender immediately, permanently delete the original and any copies of this email and any attachments thereto. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ssl-only access to a page?
Is it possible to make a page accessible only via an ssl port? Of course I can (and will) check for the protocol in a servlet (and re-direct if necessary), but it would be nice to prevent non-ssl access to certain pages altogether. Thanks, bw - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ssl-only access to a page?
Yes. Look up transport guarantees in the servlet spec. They are specified in web.xml Mark -Original Message- From: Barnet Wagman [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 9:27 PM To: Tomcat Users List Subject: ssl-only access to a page? Is it possible to make a page accessible only via an ssl port? Of course I can (and will) check for the protocol in a servlet (and re-direct if necessary), but it would be nice to prevent non-ssl access to certain pages altogether. Thanks, bw - 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]
Tomcat 5.X and IIS 6
I previously set up Tomcat 4.x with IIS 6.x. I'm now trying Tomcat 5.x with IIS 6.x. I've followed the documentation found here: http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html I'm having trouble getting it to work. I find it strange that this documentation does not mention the server.xml file at all. Have there been any serious changes in the last year? Do I not need to set up virtual hosts in server.xml anymore? Any help will be appreciated.
JK2 (2.0.4 latest) and IIS DocUpload Problem - NEW
Background: I have a default instance of Tomcat (4.1.29) running on a Windows 2000 box with the new JK2 connector (2.0.4) latest with the fix for not being able to upload more than 56Kb. Using the most recent upload.war available on http://www.servlets.com/ (yes, Jason Hunters) Problem: When I attempt to xfer a file (easiest with large files like 10MB) and then cancel the upload the new IIS redirector does not relay the fact that the IO stream was interrupted. Instead it closes the transfer. This makes the upload servlet think that it has received the file successfully. In fact, the IIS redirector does something one step uglier. It sends two files BOTH with normal closure of the stream and thus the servlet thinks that it has received two files with the same name. If I do the exact same thing without the IIS redirector this problem does not exist. If further information is needed please respond here. thanks, e __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Max Number of Http connections
Hi, I am using tomcat 4.1.30 with Axis 1.1 final. I am using persistent http connections. So each client has couple of http connections open at a time. The problem I am running into is that after a certain number of connections, the server sends a connection close header in the http response. I have seen this problem after 50 to 60 concurrent connections. Is there a limit on max number of tcp/http connections? Is there a way to print the http messages on the server side? Thanks, Sandeep _ Watch LIVE baseball games on your computer with MLB.TV, included with MSN Premium! http://join.msn.com/?page=features/mlbpgmarket=en-us/go/onm00200439ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How does a servlet get a username
How does a servlet get a username from a user that has been authenticated using either BASIC or FORM authentication? Paul This email and any files transmitted with it are proprietary and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of ITT Industries, Inc. The recipient should check this email and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How does a servlet get a username
request.getRemoteUser() request.getUserPrincipal() See the servlet spec for more information. Mark -Original Message- From: Celona, Paul - AES [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 11:30 PM To: Tomcat Users List Subject: How does a servlet get a username How does a servlet get a username from a user that has been authenticated using either BASIC or FORM authentication? Paul This email and any files transmitted with it are proprietary and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of ITT Industries, Inc. The recipient should check this email and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this email. - 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]
jndi (jdbc) access out of container
Hello Can I access jndi out of container (from simple test application) ? regards Haris Peco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jndi (jdbc) access out of container
On Thu, May 06, 2004 at 12:44:57AM +, snpe wrote: : Can I access jndi out of container (from simple test application) ? In other words, you would like to access Tomcat's JNDI provider outside of a Tomcat-managed webapp? Not possible. This has been discussed on the list before. What is your end-goal here? There may be another way. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DB connection pool problem
Hi, Sorry I was messing up my code by making several changes. If I add that statement, I get the following SQL exception is generated Cannot create JDBC driver of class '' for connect URL 'null'. Any idea about what corrections I need to make. Avinash Arora -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 4:29 PM To: Tomcat Users List Subject: RE: DB connection pool problem You have to add con = dataSource.getConnection(); after dataSource = (DataSource)ctx.lookup(jdbc/conversion); -Original Message- From: Arora, Avinash [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:54 PM To: David Smith; Tomcat Users List Subject: RE: DB connection pool problem Sorry for creating the confusion. Actually I was seeing the connection object to be null for long time. But at last moment I made those silly changes to present it in a better way. Sorry about it. But now I printing the connection object and finding it to be null. I cannot understand, the reason for connection object to be null, even when datasource object is not null. Is it because that I am not able to connect to database? If yes what could be the reason. If I specify the attributes, using Direct JDBC by using Class.forName() and DriverManager.getConnection(), I can connect to data base and read all the values. But the problem comes when I use Connection pooling. Where shuld I look for correction?? -- Part of my code and JSP o/p - public LinkedList selectCP(){ LinkedList ll = new LinkedList(); Connection con = null; Statement stmt = null; ResultSet rs = null; DataSource dataSource = null; try{ Context init = new InitialContext(); Context ctx = (Context) init.lookup(java:comp/env); dataSource = (DataSource)ctx.lookup(jdbc/conversion); ll.add(dataSource object is); ll.add(dataSource); } catch(NamingException e){ System.out.println(Exception thrown is+e.getMessage()); ll.add(Naming Exception thrown); } finally{ if(dataSource == null){ ll.add(DataSource object is null); return ll; } else{ ll.add(Data source object is not null); } } try{ ll.add(Inside try.); ll.add(con is); ll.add(con); if(con == null){ ll.add(Inside try. Connection object found to be null); ll.add(con); return ll; } else{ ll.add(Connection object inside else is); ll.add(con);} } } catch(SQLException e) { System.err.println(SQL EXCEPTION+e.getMessage()); ll.add(SQL Exception ); ll.add(e.getMessage()); } catch(Exception e) { System.err.println( class not found exception+e.getMessage()); ll.add(Exception generated:); ll.add(e.getMessage()); } finally{ if(con == null) ll.add(Connection object is null); } try{ stmt.close(); } catch(Exception e){} try{ rs.close(); } catch(Exception e){} try{ con.close(); } catch(Exception e){} return ll; } ---O/P-- --- I am pasting the ll obtained on browser-- [dataSource object is, [EMAIL PROTECTED], Data source object is not null, Inside try., con is, null, Inside try. Connection object found to be null, null, Connection object is null] -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 1:35 PM To: Tomcat Users List Subject: Re: DB connection pool problem Sorry about the last post. It's been a looonnng day and I didn't read it very well :-(. From what I see, you're comparing conn to null before even attempting to get a connection. Try comparing dataSource to null instead of conn in the second catch block. Then do dataSource.getConnection() if dataSource != null. --David David Smith wrote: I'm a bit confused on your code: try{ // load the driver class file //Class.forName(com.mysql.jdbc.Driver).newInstance(); //establishing the connection if(con == null){ ll.add(Inside 1st try. Connection object found to be null); Why are you doing a Class.forName call after getting a datasource object? I think you're mixing incompatible database access methods. Try doing
Re: ssl-only access to a page?
Or the faq. http://jakarta.apache.org/tomcat/faq/security.html#https -Tim Mark Thomas wrote: Yes. Look up transport guarantees in the servlet spec. They are specified in web.xml Mark -Original Message- From: Barnet Wagman [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 9:27 PM To: Tomcat Users List Subject: ssl-only access to a page? Is it possible to make a page accessible only via an ssl port? Of course I can (and will) check for the protocol in a servlet (and re-direct if necessary), but it would be nice to prevent non-ssl access to certain pages altogether. Thanks, bw - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: links encoding issue
On 5/5/2004 8:31 PM, Edson Alves Pereira wrote: Take care with URL encoding, you must convert your values based on correct URL encoding, for example: space is %20, ü is %FC, it´s just hex based numbers. This page can show you more information about it: http://www.blooberry.com/indexdot/html/topics/urlencoding.htm -- De: alex[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada:quarta-feira, 5 de maio de 2004 5:35 Para: [EMAIL PROTECTED] Assunto:links encoding issue Hi, guys. the problem that freaks me out. I got a couple of thousand xml files that are processed by cocoon, firstly receiving requests by tomcat 5.0.18. Some of them (files) contain german specific symbols that are out of standard encoding (I mean out of [a-zA-Z]). And whatever I tried to get tomcat catch the file name it doesn't work. for example this one doesn't work: a href=de.v.f_hren.1.xmlde.v.f_hren.1.xml/a and there's this line at the beginning too: meta http-equiv=Content-Type content=text/html; charset=UTF-8 gentoo linux, I assume tomcat uses utf-8. Is there a specific option for that thing, or tomcat uses JRE settings? Anyway, does someone got on with a problem like this one? I can't rename the file names as that's a part of a project that I'm not the one who can do such modifications. any issues would be appreciated. best regards, alex. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I guess you can use c:url value=yourlink.jsp var=varUrl c:param name=anyparam value=anyparamvalue/ /c:url a href=${varUrl} your link name/a - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DB connection pool problem
Have you tried to put the configuration text in GlobalNamingResources instead of context block? To me, the message tells that the web.xml and java code is fine. The server.xml is not edited correctly. in you server.xml, you put ResourceParams name=jdbc/conversion, but where is the resource jdbc/conversion? -Original Message- From: Arora, Avinash [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 4:07 PM To: Daxin Zuo; Tomcat Users List Subject: RE: DB connection pool problem Hi, Sorry I was messing up my code by making several changes. If I add that statement, I get the following SQL exception is generated Cannot create JDBC driver of class '' for connect URL 'null'. Any idea about what corrections I need to make. Avinash Arora -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 4:29 PM To: Tomcat Users List Subject: RE: DB connection pool problem You have to add con = dataSource.getConnection(); after dataSource = (DataSource)ctx.lookup(jdbc/conversion); -Original Message- From: Arora, Avinash [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:54 PM To: David Smith; Tomcat Users List Subject: RE: DB connection pool problem Sorry for creating the confusion. Actually I was seeing the connection object to be null for long time. But at last moment I made those silly changes to present it in a better way. Sorry about it. But now I printing the connection object and finding it to be null. I cannot understand, the reason for connection object to be null, even when datasource object is not null. Is it because that I am not able to connect to database? If yes what could be the reason. If I specify the attributes, using Direct JDBC by using Class.forName() and DriverManager.getConnection(), I can connect to data base and read all the values. But the problem comes when I use Connection pooling. Where shuld I look for correction?? -- Part of my code and JSP o/p - public LinkedList selectCP(){ LinkedList ll = new LinkedList(); Connection con = null; Statement stmt = null; ResultSet rs = null; DataSource dataSource = null; try{ Context init = new InitialContext(); Context ctx = (Context) init.lookup(java:comp/env); dataSource = (DataSource)ctx.lookup(jdbc/conversion); ll.add(dataSource object is); ll.add(dataSource); } catch(NamingException e){ System.out.println(Exception thrown is+e.getMessage()); ll.add(Naming Exception thrown); } finally{ if(dataSource == null){ ll.add(DataSource object is null); return ll; } else{ ll.add(Data source object is not null); } } try{ ll.add(Inside try.); ll.add(con is); ll.add(con); if(con == null){ ll.add(Inside try. Connection object found to be null); ll.add(con); return ll; } else{ ll.add(Connection object inside else is); ll.add(con);} } } catch(SQLException e) { System.err.println(SQL EXCEPTION+e.getMessage()); ll.add(SQL Exception ); ll.add(e.getMessage()); } catch(Exception e) { System.err.println( class not found exception+e.getMessage()); ll.add(Exception generated:); ll.add(e.getMessage()); } finally{ if(con == null) ll.add(Connection object is null); } try{ stmt.close(); } catch(Exception e){} try{ rs.close(); } catch(Exception e){} try{ con.close(); } catch(Exception e){} return ll; } ---O/P-- --- I am pasting the ll obtained on browser-- [dataSource object is, [EMAIL PROTECTED], Data source object is not null, Inside try., con is, null, Inside try. Connection object found to be null, null, Connection object is null] -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 1:35 PM To: Tomcat Users List Subject: Re: DB connection pool problem Sorry about the last post. It's been a looonnng day and I didn't read it very well :-(. From what I see, you're comparing conn to null before even attempting to get a connection. Try comparing dataSource to null instead of conn in the second catch block. Then do dataSource.getConnection() if dataSource != null. --David David Smith wrote: I'm a bit
Re: Start and Stop Tomcat
On 5/6/2004 3:28 AM, Merrill, Roxann wrote: I am looking for the correct and best way to stop and start Tomcat 4.0.6 when using IIS as the Webserver. I am new to Webserver and Servlet container so help information is welcome. Thanks Roxann L. Merrill if its installed as a service you can start/stop from the administration tool - services. to restart just the app you can use the http://tomcat_host:8080/manager/html. i havent use 4.0.6 coz its a bit old for me :). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]