java.lang.reflect.InvocationTargetException
Hi, I am using tomcat to deploy a business registry service recently, and I use APIs provided by uddi4j to talk to uddi registry, and the following is the problem that I encountered: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.reflect.InvocationTargetException faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:csesci04 java.lang.reflect.InvocationTargetException at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645) at org.apache.axis.Message.getSOAPEnvelope(Message.java:424) at org.apache.axis.message.addressing.handler.AddressingHandler.processClientResponse(AddressingHandler.java:305) at org.apache.axis.message.addressing.handler.AddressingHandler.invoke(AddressingHandler.java:110) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:190) at org.apache.axis.client.Call.invokeEngine(Call.java:2727) at org.apache.axis.client.Call.invoke(Call.java:2710) at org.apache.axis.client.Call.invoke(Call.java:2386) at org.apache.axis.client.Call.invoke(Call.java:2309) at org.apache.axis.client.Call.invoke(Call.java:1766) at uk.ac.besc.DataCentre.security.SecureOperation.Call(SecureOperation.java:238) at uk.ac.besc.DataCentre.client.Client.main(Client.java:79) so, does anyone know how to resolve this problem? Thanks advance. daiyue _ 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
the future of Tomcat... (JEE 5 and Tomcat 6)
Hi! We're heavy TC 5.x users with lots of sucessfull production cases in Brazil using Hibernate, Struts and others OSS (after bad EJB 2.x experiences like many companies)... But now with EJB 3.0 and JSF 1.2 - and lots of improvements in the JEE specification - we'll have to migrate to a JEE 5 environment. Our questions are: Will Tomcat 6.0 really support JSF 1.2 and JSP 2.1? If so, is there any date? We know that Sun is promoting Glassfish also as servlet/jsp reference and that Craig McClanahan is also commited with that... what can we expected from Tomcat after this definition? (We'd like to be able to work with both, since we can already get EJB3 detached 'containers'... and we have many customers with TC 5.x in production!) Since Tomcat is a very sucessfull Apache OSS project with lots of strategic interests around it, these information would be very helpfull for lots of companies like us. Thank you in advance! Paulo Alvim Powerlogic -- Esta mensagem foi verificada pelo sistema de antivírus e acredita-se estar livre de perigo. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.reflect.InvocationTargetException
weng daiyue wrote: Hi, I am using tomcat to deploy a business registry service recently, and I use APIs provided by uddi4j to talk to uddi registry, and the following is the problem that I encountered: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException 1. This is really an axis question, not a Tomcat question. 2. This usually means some exception has occurred on the server side. Check your logs (or add some logging if you don't have any) Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: the future of Tomcat... (JEE 5 and Tomcat 6)
Tomcat 6.0 is getting polish with respect to the docs at the moment and there are other technical discussions as can be found on the dev list. Tomcat will support JSP2.1. Personally - I'm not on top of the JSF spec but if all it requires is a JSP2.1 container - then you should be good to go. There is no date for release - but inertia seems like there should be an alpha release in the coming weeks. (My opinion only - there has been NO talk of dates on the dev list at this point) The building on tomcat 6 is very easy so you can easily check it out from SVN and kick the tires. -Tim Paulo Alvim wrote: Hi! We're heavy TC 5.x users with lots of sucessfull production cases in Brazil using Hibernate, Struts and others OSS (after bad EJB 2.x experiences like many companies)... But now with EJB 3.0 and JSF 1.2 - and lots of improvements in the JEE specification - we'll have to migrate to a JEE 5 environment. Our questions are: Will Tomcat 6.0 really support JSF 1.2 and JSP 2.1? If so, is there any date? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: the future of Tomcat... (JEE 5 and Tomcat 6)
Thanks Tim, I have subscribed to the dev list to stay informed... this Alpha release would be very welcome at this moment! -Mensagem original- De: Tim Funk [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 3 de outubro de 2006 08:39 Para: Tomcat Users List Assunto: Re: the future of Tomcat... (JEE 5 and Tomcat 6) Tomcat 6.0 is getting polish with respect to the docs at the moment and there are other technical discussions as can be found on the dev list. Tomcat will support JSP2.1. Personally - I'm not on top of the JSF spec but if all it requires is a JSP2.1 container - then you should be good to go. There is no date for release - but inertia seems like there should be an alpha release in the coming weeks. (My opinion only - there has been NO talk of dates on the dev list at this point) The building on tomcat 6 is very easy so you can easily check it out from SVN and kick the tires. -Tim Paulo Alvim wrote: Hi! We're heavy TC 5.x users with lots of sucessfull production cases in Brazil using Hibernate, Struts and others OSS (after bad EJB 2.x experiences like many companies)... But now with EJB 3.0 and JSF 1.2 - and lots of improvements in the JEE specification - we'll have to migrate to a JEE 5 environment. Our questions are: Will Tomcat 6.0 really support JSF 1.2 and JSP 2.1? If so, is there any date? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Esta mensagem foi verificada pelo sistema de antivírus e acredita-se estar livre de perigo. -- Esta mensagem foi verificada pelo sistema de antivírus e acredita-se estar livre de perigo. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: the future of Tomcat... (JEE 5 and Tomcat 6)
Paulo Did you look at Seam http://www.jboss.com/products/seam ? JBoss Seam is a powerful new application framework to build next generation Web 2.0 applications by unifying and integrating popular service oriented architecture (SOA) technologies like Asynchronous JavaScript and XML(AJAX), Java Server Faces(JSF), Enterprise Java Beans(EJB3), Java Portlets and Business Process Management(BPM) and workflow. ... Seam applications can be deployed on Tomcat. [http://labs.jboss.com/portal/jbossseam/faq] Q: Can I run Seam outside of JBoss AS? A: Yes, you can run Seam applications in plain Tomcat 5.5+ or in the Sun GlassFish application server. To run Seam application in Tomcat, you need a number of additional library files and a few configuration files to bootstrap the JBoss EJB3 inside Tomcat. Please refer to the tomcat ANT build target for the Seam booking example (in the examples/booking directory of the Seam distribution) for more on how to build a Tomcat WAR for Seam applications. Refer to this blog post on how to run Seam in Sun's Glassfish application server. Hope this helps. With Best Regards Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 |-+--- | | Paulo Alvim | | | [EMAIL PROTECTED]| | | c.com.br | | | | | | 03.10.06 13:11 | | | Please respond | | | to Tomcat Users| | | List | | | | |-+--- --| | | |To: users@tomcat.apache.org | |cc: | |Subject: the future of Tomcat... (JEE 5 and Tomcat 6) | | | |Distribute: | |Personal? |---| | || [ ] x | | ||---| | | | --| Hi! We're heavy TC 5.x users with lots of sucessfull production cases in Brazil using Hibernate, Struts and others OSS (after bad EJB 2.x experiences like many companies)... But now with EJB 3.0 and JSF 1.2 - and lots of improvements in the JEE specification - we'll have to migrate to a JEE 5 environment. Our questions are: Will Tomcat 6.0 really support JSF 1.2 and JSP 2.1? If so, is there any date? We know that Sun is promoting Glassfish also as servlet/jsp reference and that Craig McClanahan is also commited with that... what can we expected from Tomcat after this definition? (We'd like to be able to work with both, since we can already get EJB3 detached 'containers'... and we have many customers with TC 5.x in production!) Since Tomcat is a very sucessfull Apache OSS project with lots of strategic interests around it, these information would be very helpfull for lots of companies like us. Thank you in advance! Paulo Alvim Powerlogic -- Esta mensagem foi verificada pelo sistema de antivírus e acredita-se estar livre de perigo. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly confidential and they may not be used or disclosed by someone who is not a named recipient. If you have received this email in error please notify the sender by replying to this
Embedding Tomcat 5.5.17
Hi! I'm embedding tomcat 5.5.17 in my Java Aplication. When I create the engine, it says: StandardEngine[null]. It works, but is it normal? Shouldn't be: StandardEngine[catalina]? Thanks in advance, Miguel Ricardo - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat memory usage questions
Hi, We recently developed and deployed a web based application using the following technologies... Struts Spring Hibernate 3.0 Mysql 5.0 tomcat 5.5 Linux Fedora Core 4 After the system went live, I have been monitoring the CPU and memory usages. I dread the outOfMemory errors and am a little paranoid about it. There are 2 main processes I am monitoring, tomcat and mysqld. The tomcat process memory usage is slowly creeping up...after 8 hours of application usage it is at 13.3% and the mysqld memory usage is at 1.3%. I am wondering what kind of pattern I should be observing for the memory usages. Should it go up and then down again (like the CPU usage)? Or is it ok for it to slowly go up (the way it is doing right now)? The swap memory is not being used, so I am guessing thats a good thing. Also, someone told me that hibernate and spring will try and cache everything it can, which could be the cause of the memory creeping up slowly. Is this true? and if it is, will this be a problem when the memory gets to a high number like 80 or 90% ? Also, is there a way to tell if there are any processes spawned by tomcat that are hanging around uselessly? Any help, ideas, tips would be appreciated. I am just concerned about having any memory issues with this LIVE application. Thanks, -Riz. http://forum.springframework.org/newreply.php?do=newreplyp=79473 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat memory usage questions
The memory should peak at some point and the go up and down with need. There are a few things you have to be aware of though. The garbage collector is a very low priority thread so if your server never has a dull moment, you end up exhausting memory just because the garbage collector does not get a chance to run. Care in development should be taken with respect to use of objects and having circular references. You can cause memory leaks with circular references because you might leave free and object from the servlet but then have two objects referring to each other and the GC will not see them as having gone out of scope. Another thing to think about is if you are doing a lot of string concatenation the StringBuffer object is much better to use than the String object. StringBuffer will be easier on memory and more efficient. Robert S. Harper Information Access Technology, Inc. -Original Message- From: Rizwan Merchant [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 7:41 AM To: tomcat Subject: tomcat memory usage questions Hi, We recently developed and deployed a web based application using the following technologies... Struts Spring Hibernate 3.0 Mysql 5.0 tomcat 5.5 Linux Fedora Core 4 After the system went live, I have been monitoring the CPU and memory usages. I dread the outOfMemory errors and am a little paranoid about it. There are 2 main processes I am monitoring, tomcat and mysqld. The tomcat process memory usage is slowly creeping up...after 8 hours of application usage it is at 13.3% and the mysqld memory usage is at 1.3%. I am wondering what kind of pattern I should be observing for the memory usages. Should it go up and then down again (like the CPU usage)? Or is it ok for it to slowly go up (the way it is doing right now)? The swap memory is not being used, so I am guessing thats a good thing. Also, someone told me that hibernate and spring will try and cache everything it can, which could be the cause of the memory creeping up slowly. Is this true? and if it is, will this be a problem when the memory gets to a high number like 80 or 90% ? Also, is there a way to tell if there are any processes spawned by tomcat that are hanging around uselessly? Any help, ideas, tips would be appreciated. I am just concerned about having any memory issues with this LIVE application. Thanks, -Riz. http://forum.springframework.org/newreply.php?do=newreplyp=79473 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat memory usage questions
Robert Harper wrote: Another thing to think about is if you are doing a lot of string concatenation the StringBuffer object is much better to use than the String object. StringBuffer will be easier on memory and more efficient. Unless you concatenate strings in multiple threads it's better to use StringBuilder. -- Mikolaj Rydzewski [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
RE: tomcat memory usage questions
From: Robert Harper [mailto:[EMAIL PROTECTED] Subject: RE: tomcat memory usage questions Care in development should be taken with respect to use of objects and having circular references. You can cause memory leaks with circular references because you might leave free and object from the servlet but then have two objects referring to each other and the GC will not see them as having gone out of scope. Simply not true. Only reference counter collectors have issues with circular references, and no modern JVMs use that technique. A set of objects that are referenced only by themselves are not reachable from the roots and are easily collectable. Here's a decent reference for memory tuning: http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat memory usage questions
Thanks for the response Robert. Is it abnormal to see the mem usage % for tomcat to go as high as 80 or 90%? Currently its only at 11%, but I am wondering at what point I should start panicking. :) Robert Harper wrote: The memory should peak at some point and the go up and down with need. There are a few things you have to be aware of though. The garbage collector is a very low priority thread so if your server never has a dull moment, you end up exhausting memory just because the garbage collector does not get a chance to run. Care in development should be taken with respect to use of objects and having circular references. You can cause memory leaks with circular references because you might leave free and object from the servlet but then have two objects referring to each other and the GC will not see them as having gone out of scope. Another thing to think about is if you are doing a lot of string concatenation the StringBuffer object is much better to use than the String object. StringBuffer will be easier on memory and more efficient. Robert S. Harper Information Access Technology, Inc. -Original Message- From: Rizwan Merchant [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 7:41 AM To: tomcat Subject: tomcat memory usage questions Hi, We recently developed and deployed a web based application using the following technologies... Struts Spring Hibernate 3.0 Mysql 5.0 tomcat 5.5 Linux Fedora Core 4 After the system went live, I have been monitoring the CPU and memory usages. I dread the outOfMemory errors and am a little paranoid about it. There are 2 main processes I am monitoring, tomcat and mysqld. The tomcat process memory usage is slowly creeping up...after 8 hours of application usage it is at 13.3% and the mysqld memory usage is at 1.3%. I am wondering what kind of pattern I should be observing for the memory usages. Should it go up and then down again (like the CPU usage)? Or is it ok for it to slowly go up (the way it is doing right now)? The swap memory is not being used, so I am guessing thats a good thing. Also, someone told me that hibernate and spring will try and cache everything it can, which could be the cause of the memory creeping up slowly. Is this true? and if it is, will this be a problem when the memory gets to a high number like 80 or 90% ? Also, is there a way to tell if there are any processes spawned by tomcat that are hanging around uselessly? Any help, ideas, tips would be appreciated. I am just concerned about having any memory issues with this LIVE application. Thanks, -Riz. http://forum.springframework.org/newreply.php?do=newreplyp=79473 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using MX4J's HTTP Connector with Tomcat 5.5 and JDK 1.5
Hi, I'd like to get Tomcat 5.5 on JDK 1.5 to use MX4J's HTTP Connector in order to avoid firewall issues. Could someone please provide me with a quick rundown? Thanks Dan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
isapi_redirect.dll
I'm using Tomcat 5.0.25 with Windows 2000 Advanced Server. I am confused with what version of isapi_redirector to use. Any help would be appreciated.
Re: isapi_redirect.dll
Reis, Tom wrote: I'm using Tomcat 5.0.25 with Windows 2000 Advanced Server. I am confused with what version of isapi_redirector to use. Any help would be appreciated. http://tomcat.apache.org/download-connectors.cgi Use 1.2.19 Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: the future of Tomcat... (JEE 5 and Tomcat 6)
Thanks Bruno, Have you already tried Seam using Tomcat 5.5 and JSF 1.2? Does it really work? Paulo -Mensagem original- De: Bruno Georges [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 3 de outubro de 2006 09:39 Para: Tomcat Users List Cc: users@tomcat.apache.org Assunto: Re: the future of Tomcat... (JEE 5 and Tomcat 6) Paulo Did you look at Seam http://www.jboss.com/products/seam ? JBoss Seam is a powerful new application framework to build next generation Web 2.0 applications by unifying and integrating popular service oriented architecture (SOA) technologies like Asynchronous JavaScript and XML(AJAX), Java Server Faces(JSF), Enterprise Java Beans(EJB3), Java Portlets and Business Process Management(BPM) and workflow. ... Seam applications can be deployed on Tomcat. [http://labs.jboss.com/portal/jbossseam/faq] Q: Can I run Seam outside of JBoss AS? A: Yes, you can run Seam applications in plain Tomcat 5.5+ or in the Sun GlassFish application server. To run Seam application in Tomcat, you need a number of additional library files and a few configuration files to bootstrap the JBoss EJB3 inside Tomcat. Please refer to the tomcat ANT build target for the Seam booking example (in the examples/booking directory of the Seam distribution) for more on how to build a Tomcat WAR for Seam applications. Refer to this blog post on how to run Seam in Sun's Glassfish application server. Hope this helps. With Best Regards Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 |-+--- | | Paulo Alvim | | | [EMAIL PROTECTED]| | | c.com.br | | | | | | 03.10.06 13:11 | | | Please respond | | | to Tomcat Users| | | List | | | | |-+--- --- ---| | | |To: users@tomcat.apache.org | |cc: | |Subject: the future of Tomcat... (JEE 5 and Tomcat 6) | | | |Distribute: | |Personal? |---| | || [ ] x | | ||---| | | | --- ---| Hi! We're heavy TC 5.x users with lots of sucessfull production cases in Brazil using Hibernate, Struts and others OSS (after bad EJB 2.x experiences like many companies)... But now with EJB 3.0 and JSF 1.2 - and lots of improvements in the JEE specification - we'll have to migrate to a JEE 5 environment. Our questions are: Will Tomcat 6.0 really support JSF 1.2 and JSP 2.1? If so, is there any date? We know that Sun is promoting Glassfish also as servlet/jsp reference and that Craig McClanahan is also commited with that... what can we expected from Tomcat after this definition? (We'd like to be able to work with both, since we can already get EJB3 detached 'containers'... and we have many customers with TC 5.x in production!) Since Tomcat is a very sucessfull Apache OSS project with lots of strategic interests around it, these information would be very helpfull for lots of companies like us. Thank you in advance! Paulo Alvim Powerlogic -- Esta mensagem foi verificada pelo sistema de antivírus e acredita-se estar livre de perigo. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly confidential and they may not be used or disclosed by someone who is not a named recipient. If you have received this email in error please notify the sender by replying to this email inserting the word misdirected as the message and delete this e-mail from your system. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Esta mensagem foi verificada pelo sistema de antivírus e acredita-se estar livre de perigo. -- Esta mensagem foi verificada pelo sistema de antivírus e acredita-se estar livre de perigo. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Classloader hierarchy viewer?
If you find something like that, please let me know :). Something like that would prevent a lot of headaches, since Tomact has given me quite some headaches and I have had to find some unwanted work arounds. --Luis R. On 10/2/06, Timothy Collett [EMAIL PROTECTED] wrote: Greetings. Does anyone know of a tool that can be used to show all the classes available at each level of the classloader hierarchy? I have been having various problems with classes not being available in the right places, and such a tool would be extremely useful in troubleshooting... Timothy Collett -- We do not inherit the world from our parents; we borrow it from our children - American Indian Proverb - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IIS 6.0 with JK 1.2.19
There is no problem with the missing arrow. http://support.microsoft.com/kb/317204/en-us says: In Internet Information Services (IIS) 6.0, an ISAPI filter that has been added at the site level does not load until the Web server has served at least one request to that site. Once I made a request to the site, I got my green arrow. I used the Default Web Site for the filter, and not the enclosing Web Sites folder. Although, when I rebooted and before making another request, I got the green arrow anyway. I am however getting errors in the iis_redirect.log: [error] jk_uri_worker_map.c (322): invalid context *.jsp [error] jk_uri_worker_map.c (615): invalid mapping rule *.jsp-main [emerg] jk_isapi_plugin.c (1253): Unable to read worker file C:\Inetpub\wwwroot\tomcat\conf\worker.properties. I changed permissions for the \conf folder as I did for \logs and \bin\native below, rebooted, and still get this [emerg] error. Ideas? Mitchell Fisher | Unisys Corp., ST, ClearPath MCP | Net 385-3450 External 610-648-3450 Fax 610-695-5060 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. -Original Message- From: Fisher, Mitchell L [mailto:[EMAIL PROTECTED] Sent: Monday, October 02, 2006 2:36 PM To: Tomcat Users List Subject: RE: IIS 6.0 with JK 1.2.19 Turk, Mladen wrote: One of the problems can be caused by the access rights for the folder having isapi_redirect.dll Also the IIS process must have full access rights to logs folder. I changed security of \tomcat\bin\native \tomcat\logs to: . IIS_WPG to Allow Full Control . Internet Guest Account to Allow Full Control . Users to Allow Full Control Restarted IIS and no change. Is this what you meant? I have not created a log file in the logs folder. Sometimes the IIS Metabase can get corrupted. Use the IIS MetabaseExplorer from: http://www.ripcordsoftware.com/IISMetabaseExplorer/Default.aspx http://www.ripcordsoftware.com/IISMetabaseExplorer/Default.aspx and remove any duplicate Filter entries for jakarta if they exist. Great tool. But it only shows two jakarta entries: \W3SVC\1\Filters\jakarta 1002 MD_KEY_TYPE Server String 20 IIsFilter 2041 MD_FILTER_IMAGE_PATH Server String 112 C:\Inetpub\wwwroot\tomcat\bin\native\isapi_redirect.dll \W#SVC\1\ROOT\jakarta 1002 MD_KEY_TYPEServer String 34 IIsWebVirtualDir 2102 MD_APP_FRIENDLY_NAME INH WAMString 16 jakarta 2103 MD_APP_ROOT INH File String 50 /LM/W3SVC/1/Root/jakarta 2104 MD_APP_ISOLATED INH WAMNumber 4 2 3001 MD_VR_PATHINH File String 74 C:\Inetpub\wwwroot\tomcat\bin\native 6005 MD_DIRECTORY_BROWSING INH File Number 4 1073741886 6016 MD_ACCESS_PERMINH File Number 4 517 -Mitch - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IIS 6.0 with JK 1.2.19
I'm not sure about the iis redirect, but in general mod_jk only permitts patterns with a leading slash /. So please try /*.jsp. Regards, Rainer Fisher, Mitchell L schrieb: There is no problem with the missing arrow. http://support.microsoft.com/kb/317204/en-us says: In Internet Information Services (IIS) 6.0, an ISAPI filter that has been added at the site level does not load until the Web server has served at least one request to that site. Once I made a request to the site, I got my green arrow. I used the Default Web Site for the filter, and not the enclosing Web Sites folder. Although, when I rebooted and before making another request, I got the green arrow anyway. I am however getting errors in the iis_redirect.log: [error] jk_uri_worker_map.c (322): invalid context *.jsp [error] jk_uri_worker_map.c (615): invalid mapping rule *.jsp-main [emerg] jk_isapi_plugin.c (1253): Unable to read worker file C:\Inetpub\wwwroot\tomcat\conf\worker.properties. I changed permissions for the \conf folder as I did for \logs and \bin\native below, rebooted, and still get this [emerg] error. Ideas? Mitchell Fisher | Unisys Corp., ST, ClearPath MCP | Net 385-3450 External 610-648-3450 Fax 610-695-5060 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. -Original Message- From: Fisher, Mitchell L [mailto:[EMAIL PROTECTED] Sent: Monday, October 02, 2006 2:36 PM To: Tomcat Users List Subject: RE: IIS 6.0 with JK 1.2.19 Turk, Mladen wrote: One of the problems can be caused by the access rights for the folder having isapi_redirect.dll Also the IIS process must have full access rights to logs folder. I changed security of \tomcat\bin\native \tomcat\logs to: . IIS_WPG to Allow Full Control . Internet Guest Account to Allow Full Control . Users to Allow Full Control Restarted IIS and no change. Is this what you meant? I have not created a log file in the logs folder. Sometimes the IIS Metabase can get corrupted. Use the IIS MetabaseExplorer from: http://www.ripcordsoftware.com/IISMetabaseExplorer/Default.aspx http://www.ripcordsoftware.com/IISMetabaseExplorer/Default.aspx and remove any duplicate Filter entries for jakarta if they exist. Great tool. But it only shows two jakarta entries: \W3SVC\1\Filters\jakarta 1002 MD_KEY_TYPE Server String 20 IIsFilter 2041 MD_FILTER_IMAGE_PATH Server String 112 C:\Inetpub\wwwroot\tomcat\bin\native\isapi_redirect.dll \W#SVC\1\ROOT\jakarta 1002 MD_KEY_TYPEServer String 34 IIsWebVirtualDir 2102 MD_APP_FRIENDLY_NAME INH WAMString 16 jakarta 2103 MD_APP_ROOT INH File String 50 /LM/W3SVC/1/Root/jakarta 2104 MD_APP_ISOLATED INH WAMNumber 4 2 3001 MD_VR_PATHINH File String 74 C:\Inetpub\wwwroot\tomcat\bin\native 6005 MD_DIRECTORY_BROWSING INH File Number 4 1073741886 6016 MD_ACCESS_PERMINH File Number 4 517 -Mitch - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Response already committed
I'm getting a problem that appears to occur randomly. If I request the same page in my webapp over and over most of the time it will come up fine but sometimes tomcat won't return anything and I'll get a blank page and this error in the log: Oct 3, 2006 4:20:22 PM org.apache.jk.core.MsgContext action INFO: Response already committed It also happens for static files like stylesheets so sometimes you will request a page and then the styles won't get loaded. Anyone have any clues as to what this could be? I'm googling around and looking through my tomcat book but haven't found an answer yet. I'm using tomcat 5.5 with the mod_jk connector and apache 2. Here is my server.xml: Server port=8005 shutdown=SHUTDOWN GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8080 / !-- Define an AJP 1.3 Connector on port 8029 -- Connector port=8029 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / !-- Define the top level container in our container hierarchy -- Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true / !-- Define the default virtual host Note: XML Schema validation will not work with Xerces 2.2. -- Host name=domain.company.com appBase=hosts/domain debug=0 unpackWARs=true autoDeploy=false Context path= docBase=. / /Host /Engine /Service /Server -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Response already committed
From: Dan Adams [mailto:[EMAIL PROTECTED] Subject: Response already committed I'm getting a problem that appears to occur randomly. If I request the same page in my webapp over and over most of the time it will come up fine but sometimes tomcat won't return anything and I'll get a blank page and this error in the log: Oct 3, 2006 4:20:22 PM org.apache.jk.core.MsgContext action INFO: Response already committed Any chance that the logic in your servlet is not thread-safe? Repeatedly submitting requests could get more than one going at the same time, causing improperly scoped variables to be overwritten. For example, is request-specific data being stored in the session? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help with session replication using PersistentManager and FileStore
We have a load balancer and several Tomcat instances. Currently this cluster uses sticky sessions, ie. the load balancer routes the request to the Tomcat instance holding the session which belongs to the request. The goal is to change our configuration so that all sessions are persisted to a shared network filesystem, thus allowing non-sticky sessions -- ie. any tomcat instance can handle a request. The Overview section of the Tomcat 5.5 Clustering/Session Replication HOW-TO (http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html) suggests that this configuration is possible: 1. Using session persistence, and saving the session to a shared file system (PersistenceManager + FileStore). I've tried the following Manager config: Manager className=org.apache.catalina.session.PersistentManager maxActiveSessions=-1 maxIdleBackup=0 maxIdleSwap=0 minIdleSwap=0 Store className=org.apache.catalina.session.FileStore directory=sessions/ /Manager maxIdleBackup=0 because we want the session to become instantly eligible for persisting to the store, maxIdleSwap=0 to have it persisted right after last access, minIdleSwap=0 (similarly). With this configuration, the session is still not persisted immediately, instead it seems to occur a minute or so later. If a new request for the same session is routed by the load balancer to another Tomcat, and the original Tomcat still hasn't persisted it to the filesystem, then the new request will get an old copy of the session or none at all. Have I misunderstood something here? Matt - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Response already committed
Hmm, I don't think that is the culprit. I think all of our stuff is thread safe. We're using a framework (Tapestry) which shields us from threading issues like that and prevents us from storing request stuff in the session. Also, if that were the case would that cause problems when loading static files? I don't think so. Also, we are using a filter which when it tries to do a redirect will throw an error complaining about this so this happens way before our app ever gets to do anything: ERROR: response is comitted cannot forward (this is a very strange problem!, check you haven't done anything to the response (ie, written to it) before here On Tue, 2006-10-03 at 15:39 -0500, Caldarale, Charles R wrote: From: Dan Adams [mailto:[EMAIL PROTECTED] Subject: Response already committed I'm getting a problem that appears to occur randomly. If I request the same page in my webapp over and over most of the time it will come up fine but sometimes tomcat won't return anything and I'll get a blank page and this error in the log: Oct 3, 2006 4:20:22 PM org.apache.jk.core.MsgContext action INFO: Response already committed Any chance that the logic in your servlet is not thread-safe? Repeatedly submitting requests could get more than one going at the same time, causing improperly scoped variables to be overwritten. For example, is request-specific data being stored in the session? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help with session replication using PersistentManager and FileStore
Simple, Don't use it! Use real In Memory- session replication and Non-Stickyness is not support and usefull at java web application. Please, read the servlet spec. Peter Am 03.10.2006 um 22:46 schrieb Matthew Kennedy: We have a load balancer and several Tomcat instances. Currently this cluster uses sticky sessions, ie. the load balancer routes the request to the Tomcat instance holding the session which belongs to the request. The goal is to change our configuration so that all sessions are persisted to a shared network filesystem, thus allowing non-sticky sessions -- ie. any tomcat instance can handle a request. The Overview section of the Tomcat 5.5 Clustering/Session Replication HOW-TO (http://tomcat.apache.org/tomcat-5.5-doc/cluster- howto.html) suggests that this configuration is possible: 1. Using session persistence, and saving the session to a shared file system (PersistenceManager + FileStore). I've tried the following Manager config: Manager className=org.apache.catalina.session.PersistentManager maxActiveSessions=-1 maxIdleBackup=0 maxIdleSwap=0 minIdleSwap=0 Store className=org.apache.catalina.session.FileStore directory=sessions/ /Manager maxIdleBackup=0 because we want the session to become instantly eligible for persisting to the store, maxIdleSwap=0 to have it persisted right after last access, minIdleSwap=0 (similarly). With this configuration, the session is still not persisted immediately, instead it seems to occur a minute or so later. If a new request for the same session is routed by the load balancer to another Tomcat, and the original Tomcat still hasn't persisted it to the filesystem, then the new request will get an old copy of the session or none at all. Have I misunderstood something here? Matt - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5 / debian : Connection failed
Hi ! I've setup in my Tomcat 5.5's webapp this pool : Resource name=jdbc/mydb scope=Shareable type=javax.sql.DataSource/ ResourceParams name=jdbc/mydb parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameurl/name valuejdbc:postgresql://127.0.0.1/mydb/value /parameter parameter namedriverClassName/namevalueorg.postgresql.Driver/value /parameter parameter nameusername/name valuemydb/value /parameter parameter namepassword/name valuemydb/value /parameter parameter namemaxWait/name value3000/value /parameter parameter namemaxIdle/name value100/value /parameter parameter namemaxActive/name value10/value /parameter /ResourceParams When I launch this JSP % javax.naming.Context initCtx = new javax.naming.InitialContext(); javax.naming.Context envCtx = (javax.naming.Context) initCtx.lookup(java:comp/env); javax.sql.DataSource ds = (javax.sql.DataSource) envCtx.lookup(jdbc/mydb); java.sql.Connection conn = ds.getConnection(); if (conn!=null) { out.println(Connexion OK); } else { out.println(Connexion KO !); } % it gives me : 2006-10-03 22:51:29 StandardWrapperValve[jsp]: Servlet.service() pour la servlet jsp a généré une exception org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Quelque chose d'inhabituel a provoqué l'échec du pilote. Veuillez faire un rapport sur cette erreur.) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav a:855) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5 40) at org.apache.jsp.test_jsp._jspService(test_jsp.java:50) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 24) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16 1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:245) at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterCh ain.java:177) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain .java:156) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:152) at org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:188) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:21 7) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:197) at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterCh ain.java:177) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain .java:156) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:152) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at
Tomcat logging problem
Hi, I am running tomcat 5.5.17 under opensuse 10.1 and my JVM version is 1.5.0_06. I am running my tomcat as a seperate tomcat user and starting it at boot time using the following script in /etc/init.d. #!/bin/sh # # Startup script for Tomcat JAVA_HOME=/usr/lib/jvm/java export JAVA_HOME start_tomcat=/home/tomcat/apache-tomcat-5.5.17/bin/startup.sh stop_tomcat=/home/tomcat/apache-tomcat-5.5.17/bin/shutdown.sh start() { echo -n Starting tomcat: su -c ${start_tomcat} - tomcat echo done. } stop() { echo -n Shutting down tomcat: ${stop_tomcat} echo done. } # See how we were called case $1 in start) start ;; stop) stop ;; restart) stop sleep 10 start ;; *) echo Usage: $0 {start|stop|restart} esac I get following error output in my catalina.out file java.util.logging.ErrorManager: 4 java.io.FileNotFoundException: /home/tomcat/apache-tomcat-5.5.17 /logs/localhost.2006-10-02.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.init(FileOutputStream.java:177) at java.io.FileOutputStream.init(FileOutputStream.java:102) at java.io.FileWriter.init(FileWriter.java:61) at org.apache.juli.FileHandler.open(FileHandler.java:256) at org.apache.juli.FileHandler.init(FileHandler.java:50) java.util.logging.ErrorManager: 4 java.io.FileNotFoundException: /home/tomcat/apache-tomcat-5.5.17 /logs/admin.2006-10-02.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) . java.util.logging.ErrorManager: 4 java.io.FileNotFoundException: /home/tomcat/apache-tomcat-5.5.17/logs/host- manager.2006-10-02.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) As a result nothing is being logged. On checking I found that the log files were being created with owner as root instead of tomcat. Can someone please help me find where am i going wrong. Thanks Tejas
RE: Tomcat 5.5 / debian : Connection failed
OK I've found. For .deb Tomcat found on unstable non-free, edit the files in /etc/tomcat5/policy.d/04webapps.policy to add such a line : permission java.net.SocketPermission 127.0.0.1:5432, connect; _ De : DeMZed [mailto:[EMAIL PROTECTED] Envoyé : mercredi 4 octobre 2006 00:08 À : 'users@tomcat.apache.org' Objet : Tomcat 5.5 / debian : Connection failed Hi ! I've setup in my Tomcat 5.5's webapp this pool : Resource name=jdbc/mydb scope=Shareable type=javax.sql.DataSource/ ResourceParams name=jdbc/mydb parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameurl/name valuejdbc:postgresql://127.0.0.1/mydb/value /parameter parameter namedriverClassName/namevalueorg.postgresql.Driver/value /parameter parameter nameusername/name valuemydb/value /parameter parameter namepassword/name valuemydb/value /parameter parameter namemaxWait/name value3000/value /parameter parameter namemaxIdle/name value100/value /parameter parameter namemaxActive/name value10/value /parameter /ResourceParams When I launch this JSP % javax.naming.Context initCtx = new javax.naming.InitialContext(); javax.naming.Context envCtx = (javax.naming.Context) initCtx.lookup(java:comp/env); javax.sql.DataSource ds = (javax.sql.DataSource) envCtx.lookup(jdbc/mydb); java.sql.Connection conn = ds.getConnection(); if (conn!=null) { out.println(Connexion OK); } else { out.println(Connexion KO !); } % it gives me : 2006-10-03 22:51:29 StandardWrapperValve[jsp]: Servlet.service() pour la servlet jsp a généré une exception org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Quelque chose d'inhabituel a provoqué l'échec du pilote. Veuillez faire un rapport sur cette erreur.) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav a:855) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5 40) at org.apache.jsp.test_jsp._jspService(test_jsp.java:50) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 24) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16 1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:245) at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterCh ain.java:177) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain .java:156) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:152) at org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:188) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:21 7) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:197) at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterCh ain.java:177) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain .java:156) at java.security.AccessController.doPrivileged(Native Method)
RE: Tomcat logging problem
I tried your script both ways and it worked flawlessly on a CentOS 3.6 box. I would take a look under which user the jvm is running after you start your script. (ps -ef | grep java) If it is running as root then that might indicate that something about the su command isn't working as expected. It also might be that you once ran the jvm as root and it isn't your startup script at all but the fact that the log files were once created with root ownership. Thus, subsequent tomcat invocations fail to write to existing logs due to invalid permissions. Have you tried removing the logs and running your startup script again? Also, in my experience it would be better to add more checking to see that the java vm has truly stopped in the restart logic. Java has to unload everything at stop time and 10 seconds is not always enough. The default shutdown.sh script will exit with a normal return code even if the jvm is still running. So, a good number of times, the listening ports will still be in use when the start command is executed throwing lots of nasty exceptions. You could modify startup.sh so that it doesn't exit until the jvm is stopped, or modify your 'sleep' statement such that it has process checking logic that waits for some period of time for the jvm to exit and if it fails kill it. The latter is more desirable since you will probably upgrade tomcat at some point and do not want to risk losing your changes or having to adapt them as the startup and shutdown scripts change over time. -Original Message- From: Tejas Dhedia [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 6:00 PM To: users@tomcat.apache.org Subject: Tomcat logging problem Hi, I am running tomcat 5.5.17 under opensuse 10.1 and my JVM version is 1.5.0_06. I am running my tomcat as a seperate tomcat user and starting it at boot time using the following script in /etc/init.d. #!/bin/sh # # Startup script for Tomcat JAVA_HOME=/usr/lib/jvm/java export JAVA_HOME start_tomcat=/home/tomcat/apache-tomcat-5.5.17/bin/startup.sh stop_tomcat=/home/tomcat/apache-tomcat-5.5.17/bin/shutdown.sh start() { echo -n Starting tomcat: su -c ${start_tomcat} - tomcat echo done. } stop() { echo -n Shutting down tomcat: ${stop_tomcat} echo done. } # See how we were called case $1 in start) start ;; stop) stop ;; restart) stop sleep 10 start ;; *) echo Usage: $0 {start|stop|restart} esac I get following error output in my catalina.out file java.util.logging.ErrorManager: 4 java.io.FileNotFoundException: /home/tomcat/apache-tomcat-5.5.17 /logs/localhost.2006-10-02.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.init(FileOutputStream.java:177) at java.io.FileOutputStream.init(FileOutputStream.java:102) at java.io.FileWriter.init(FileWriter.java:61) at org.apache.juli.FileHandler.open(FileHandler.java:256) at org.apache.juli.FileHandler.init(FileHandler.java:50) java.util.logging.ErrorManager: 4 java.io.FileNotFoundException: /home/tomcat/apache-tomcat-5.5.17 /logs/admin.2006-10-02.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) . java.util.logging.ErrorManager: 4 java.io.FileNotFoundException: /home/tomcat/apache-tomcat-5.5.17/logs/host- manager.2006-10-02.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) As a result nothing is being logged. On checking I found that the log files were being created with owner as root instead of tomcat. Can someone please help me find where am i going wrong. Thanks Tejas - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
4.1.34 stability vote in progress
All, Just a quick note to let you know that a stability vote is currently taking place for 4.1.34 on the dev list. If you have feedback to provide and are subscribed to the dev list please reply to the relevant thread. If you have feedback (positive or negative) and are not subscribed to the dev list, please feel free to comment on this thread and I'll transfer a summary of the issues raised to the dev list as appropriate. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]