Re: ClassCastException..probably a classpath pb
Im using tomcat 5.5. message sent to axis users.. http://www.nabble.com/ClassCastException..probably-a-classpath-pb-tf3906084.html here best regards! mgainty wrote: Please post this question to axis users group [EMAIL PROTECTED] Bon Chance/ Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: lmk To: Sent: Monday, June 11, 2007 12:57 PM Subject: ClassCastException..probably a classpath pb Hi! Im trying to deploy a custom jass login module into tomcat server.this module need a web service request for authentication. the same code works fine where it's executed locally on Eclipse, but, when I deploy a jar on server/lib folder for tomcat. i have the exception : AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.ClassCastException faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException at org.apache.axis.deployment.wsdd.WSDDTargetedChain.makeNewInstance(WSDDTargetedChain.java:157) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260) at org.apache.axis.deployment.wsdd.WSDDDeployment.getTransport(WSDDDeployment.java:410) at org.apache.axis.configuration.FileProvider.getTransport(FileProvider.java:257) at org.apache.axis.AxisEngine.getTransport(AxisEngine.java:332) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:163) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) -- have you any idea? thanks ! -- View this message in context: http://www.nabble.com/ClassCastException..probably-a-classpath-pb-tf3902685.html#a11064305 Sent from the Tomcat - User mailing list archive at Nabble.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] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/ClassCastException..probably-a-classpath-pb-tf3902685.html#a11074428 Sent from the Tomcat - User mailing list archive at Nabble.com.
Re: [OT] RE: Embed license to tomcat
Hi all, Thanks for you guys last time regarding my boss 'funky' idea for software protection. Since I am still his employee and a responsible developer, I am still planning to finish up this task. Now i am at in the forest which got a bit lost. Let me clarify again what I am going to achieve: 1. Compile all JSPs into .class (done) 2. Create key generator in order to generate Key and later put it into both Tomcat and our system 3. Create encryption key generator for the class files encryption 4. Create encrypt util class to do the encryption 5. Create my own classloader which can be used by tomcat to decrypt our class files 1 and 2 seems ok for now .. 3 and 4 is also tested fine (I am using DES for now). I had wrote a simple classloader which extends JVM's default classloader. It's decryption works fine with simple class files. When I was trying to make a similar implementation for tomcat. I found it's not that easy. There are few paths in my head which made me dizzy: Path 1. Make an independent classloader which extends URLClassLoader Path 2. Modify WebappClassLoader Path 3. As the classloading doc mentioned, configure customized loader which is located in shared folder I had tried Path 3 and it never gets me success. Any ideas about implementing custom classloader for this special purpose? Li
RE: [OT] RE: Embed license to tomcat
From: Li [mailto:[EMAIL PROTECTED] Path 1. Make an independent classloader which extends URLClassLoader Path 2. Modify WebappClassLoader Path 3. As the classloading doc mentioned, configure customized loader which is located in shared folder I had tried Path 3 and it never gets me success. Any ideas about implementing custom classloader for this special purpose? If you're distributing a custom Tomcat anyway, why not just hack WebappClassLoader? - Peter - 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: [OT] RE: Embed license to tomcat
Hi Peter, Thanks for your reply. I did few hack, the major problem is I need instantiate classloader, but WebappClassLoader is not instantiated by itself, it always failed so far. Do you know any recommendable resource so that I can read up? On 6/12/07, Peter Crowther [EMAIL PROTECTED] wrote: From: Li [mailto:[EMAIL PROTECTED] Path 1. Make an independent classloader which extends URLClassLoader Path 2. Modify WebappClassLoader Path 3. As the classloading doc mentioned, configure customized loader which is located in shared folder I had tried Path 3 and it never gets me success. Any ideas about implementing custom classloader for this special purpose? If you're distributing a custom Tomcat anyway, why not just hack WebappClassLoader? - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Small win by playing smart Big win by playing honest
swallowOutput attribute in tomcat 6
Do we have this attribute in tomcat 6. I was using tomcat 5 earlier and had this entry. DefaultContext allowLinking=true swallowOutput=true / Now after upgrading to tomcat 6, this option doesn't seem to work. Also the url http://tomcat.apache.org/tomcat-6.0-doc/config/defaultcontext.html is non-existent! Kindly send your reply to [EMAIL PROTECTED] -- Regards, Prabhu - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hi,problem when shutdown tomcat!
hi all; when i shutdown tomcat, i found following message in the catalina.out; 2007-6-12 18:18:44 org.apache.catalina.core.StandardWrapper unload * Waiting for 6 instance(s) to be deallocated* 2007-6-12 18:18:45 org.apache.catalina.core.StandardWrapper unload *Waiting for 6 instance(s) to be deallocated *2007-6-12 18:18:46 org.apache.catalina.core.StandardWrapper unload *Waiting for 6 instance(s) to be deallocated *2007-6-12 18:18:46 org.apache.catalina.core.StandardWrapper unload *Waiting for 333 instance(s) to be deallocated* 2007-6-12 18:18:47 org.apache.catalina.core.StandardWrapper unload *Waiting for 333 instance(s) to be deallocated* 2007-6-12 18:18:48 org.apache.catalina.core.StandardWrapper unload * Waiting for 333 instance(s) to be deallocated* anyone has a idea about the about messages, does it means that there is dead lock in the program? or some connection are not closed? thank you for ideas! peter
Re: hi,problem when shutdown tomcat!
Chuck answered a similar query recently: http://marc.info/?l=tomcat-userm=118113828210257w=2 Your servlets are serving long-running requests (or are in infinite loops, dead-locked etc) when you are trying to shutdown tomcat. The first thing I'd do in this situation is SIGQUIT tomcat to get a stackdump of the running threads. With that you can usually determine the changes you need to do to your servlets, if required. If the stackdump isn't a help I'd attach a profiler to see where your servlets are spending the time. I like the one bundled with netbeans. I'm sure others on the list have their own favourites. Jon Peter wrote: hi all; when i shutdown tomcat, i found following message in the catalina.out; 2007-6-12 18:18:44 org.apache.catalina.core.StandardWrapper unload * Waiting for 6 instance(s) to be deallocated* 2007-6-12 18:18:45 org.apache.catalina.core.StandardWrapper unload *Waiting for 6 instance(s) to be deallocated *2007-6-12 18:18:46 org.apache.catalina.core.StandardWrapper unload *Waiting for 6 instance(s) to be deallocated *2007-6-12 18:18:46 org.apache.catalina.core.StandardWrapper unload *Waiting for 333 instance(s) to be deallocated* 2007-6-12 18:18:47 org.apache.catalina.core.StandardWrapper unload *Waiting for 333 instance(s) to be deallocated* 2007-6-12 18:18:48 org.apache.catalina.core.StandardWrapper unload * Waiting for 333 instance(s) to be deallocated* anyone has a idea about the about messages, does it means that there is dead lock in the program? or some connection are not closed? thank you for ideas! peter - 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: .htaccess + Tomcat
Thanks for the response. Yes, the redirectPort attribute needs to match the port for the SSL Connector (in your case, 443). And it's a good thing, since IE has issues on 4.1.x when you try and use a non-default port for the SSL Connector. So do i define the redirect attrbute in the SSL part or in the non-SSL part of the server.xml document? Please advise. Thanks in advance, reym Bill Barker-2 wrote: reym [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi there, Thanks for the response. I have tried that, and it works if I directly type in https://www.mywebsite.comin the browser (I'm using IE7). This is how my server.xml file looks like for the non-SSL HTTP and SSL HTTP respectively: !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector port=80 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / !-- Define a SSL HTTP/1.1 Connector on port 8443 -- Connector port=443 maxHttpHeaderSize=8192 className=org.apache.catalina.connector.http.HttpConnector This is sooo deprecated and buggy. You should use the default Coyote Connector instead. maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=/root/.keystore keystoreType=JKS keystorePass=b0nus2ooo?? Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false protocol=TLS/ /Connector I'm not using a .htaccess file. What am i missing? I read something about a redirectPort attribute, am i suppose to be using that? Please advise. Yes, the redirectPort attribute needs to match the port for the SSL Connector (in your case, 443). And it's a good thing, since IE has issues on 4.1.x when you try and use a non-default port for the SSL Connector. Thank you for your time, and thanks in advance. I look forward to hearing from you. Kind regards, Rey Malahay Caldarale, Charles R wrote: From: reym [mailto:[EMAIL PROTECTED] Subject: .htaccess + Tomcat I have installed SSL on the server, and would like to use a .htaccess file so that when a user types in http://www.mywebsite.com he/ she will be redirected to https://www.mywebsite.com automatically. You need to become familiar with the servlet spec: http://jcp.org/aboutJava/communityprocess/mrel/jsr154/index.html In particular, look at section 12.7 for a transport-guarantee of CONFIDENTIAL. If you want all of your webapps to use HTTPS, you can put the transport-guarantee in conf/web.xml rather than in the WEB-INF/web.xml of each of the individual webapps. - 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] -- View this message in context: http://www.nabble.com/.htaccess-%2B-Tomcat-tf3899482.html#a11072000 Sent from the Tomcat - User mailing list archive at Nabble.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] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/.htaccess-%2B-Tomcat-tf3899482.html#a11077082 Sent from the Tomcat - User mailing list archive at Nabble.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]
jk_mod 'Service Temporarily Unavailable'
Hi, I've followed the mod_jk instructions perfectly from the Jboss wiki here: http://www.jboss.org/wiki/Wiki.jsp?page=3DUsingMod_jk1.2WithJBoss Yet when I go to localhost/jmx-console I get 'Service Temporarily Unavailable' Going to Jboss directly (localhost:8080/jmx-console) provides the page properly. What am I doing wrong? Thanks in advance, Dean.
RE: jk_mod 'Service Temporarily Unavailable'
Shutdown jboss Shutdown apache Start jboss ( wait till it starts fully ) Start apache Let me know how it goes -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:44 To: users@tomcat.apache.org Subject: jk_mod 'Service Temporarily Unavailable' Hi, I've followed the mod_jk instructions perfectly from the Jboss wiki here: http://www.jboss.org/wiki/Wiki.jsp?page=3DUsingMod_jk1.2WithJBoss Yet when I go to localhost/jmx-console I get 'Service Temporarily Unavailable' Going to Jboss directly (localhost:8080/jmx-console) provides the page properly. What am I doing wrong? Thanks in advance, Dean. - 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: jk_mod 'Service Temporarily Unavailable'
I'm afraid that didn't do the trick. I was hoping it would be as simple as that though! -Original Message- From: Raghupathy, Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:51 To: Tomcat Users List Subject: RE: jk_mod 'Service Temporarily Unavailable' Shutdown jboss Shutdown apache Start jboss ( wait till it starts fully ) Start apache Let me know how it goes -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:44 To: users@tomcat.apache.org Subject: jk_mod 'Service Temporarily Unavailable' Hi, I've followed the mod_jk instructions perfectly from the Jboss wiki here: http://www.jboss.org/wiki/Wiki.jsp?page=3DUsingMod_jk1.2WithJBoss Yet when I go to localhost/jmx-console I get 'Service Temporarily Unavailable' Going to Jboss directly (localhost:8080/jmx-console) provides the page properly. What am I doing wrong? Thanks in advance, Dean. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Scanned by MailDefender - managed email security from intY - www.maildefender.net - 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: jk_mod 'Service Temporarily Unavailable'
Send me your mod_jk.conf and workers.properties and mod_jk.log to my personal emailed I have cced her with -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:55 To: Tomcat Users List Subject: RE: jk_mod 'Service Temporarily Unavailable' I'm afraid that didn't do the trick. I was hoping it would be as simple as that though! -Original Message- From: Raghupathy, Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:51 To: Tomcat Users List Subject: RE: jk_mod 'Service Temporarily Unavailable' Shutdown jboss Shutdown apache Start jboss ( wait till it starts fully ) Start apache Let me know how it goes -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:44 To: users@tomcat.apache.org Subject: jk_mod 'Service Temporarily Unavailable' Hi, I've followed the mod_jk instructions perfectly from the Jboss wiki here: http://www.jboss.org/wiki/Wiki.jsp?page=3DUsingMod_jk1.2WithJBoss Yet when I go to localhost/jmx-console I get 'Service Temporarily Unavailable' Going to Jboss directly (localhost:8080/jmx-console) provides the page properly. What am I doing wrong? Thanks in advance, Dean. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Scanned by MailDefender - managed email security from intY - www.maildefender.net - 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: jk_mod 'Service Temporarily Unavailable'
Well it's literally what is in that example...but am doing so anyway... -Original Message- From: Raghupathy, Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 13:10 To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: RE: jk_mod 'Service Temporarily Unavailable' Send me your mod_jk.conf and workers.properties and mod_jk.log to my personal emailed I have cced her with -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:55 To: Tomcat Users List Subject: RE: jk_mod 'Service Temporarily Unavailable' I'm afraid that didn't do the trick. I was hoping it would be as simple as that though! -Original Message- From: Raghupathy, Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:51 To: Tomcat Users List Subject: RE: jk_mod 'Service Temporarily Unavailable' Shutdown jboss Shutdown apache Start jboss ( wait till it starts fully ) Start apache Let me know how it goes -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:44 To: users@tomcat.apache.org Subject: jk_mod 'Service Temporarily Unavailable' Hi, I've followed the mod_jk instructions perfectly from the Jboss wiki here: http://www.jboss.org/wiki/Wiki.jsp?page=3DUsingMod_jk1.2WithJBoss Yet when I go to localhost/jmx-console I get 'Service Temporarily Unavailable' Going to Jboss directly (localhost:8080/jmx-console) provides the page properly. What am I doing wrong? Thanks in advance, Dean. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Scanned by MailDefender - managed email security from intY - www.maildefender.net - 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] Scanned by MailDefender - managed email security from intY - www.maildefender.net - 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: jk_mod 'Service Temporarily Unavailable'
It might be useful to include the jk_mod.log... [Tue Jun 12 13:17:14 2007][5928:3532] [info] mod_jk.c (2743): mod_jk/1.2.23 initialized [Tue Jun 12 13:17:15 2007][5928:3532] [info] mod_jk.c (2743): mod_jk/1.2.23 initialized [Tue Jun 12 13:17:15 2007][2604:3204] [info] mod_jk.c (2743): mod_jk/1.2.23 initialized [Tue Jun 12 13:17:15 2007][2604:3204] [info] mod_jk.c (2743): mod_jk/1.2.23 initialized [Tue Jun 12 13:17:31 2007][2604:2440] [info] jk_connect.c (451): connect to 10.0.0.190:8009 failed (errno=61) [Tue Jun 12 13:17:31 2007][2604:2440] [info] jk_ajp_common.c (876): Failed opening socket to (10.0.0.190:8009) (errno=61) [Tue Jun 12 13:17:31 2007][2604:2440] [info] jk_ajp_common.c (1273): (node1) error connecting to the backend server (errno=61) [Tue Jun 12 13:17:31 2007][2604:2440] [info] jk_ajp_common.c (1941): (node1) sending request to tomcat failed, recoverable operation attempt=1 [Tue Jun 12 13:17:32 2007][2604:2440] [info] jk_connect.c (451): connect to 10.0.0.190:8009 failed (errno=61) [Tue Jun 12 13:17:32 2007][2604:2440] [info] jk_ajp_common.c (876): Failed opening socket to (10.0.0.190:8009) (errno=61) [Tue Jun 12 13:17:32 2007][2604:2440] [info] jk_ajp_common.c (1273): (node1) error connecting to the backend server (errno=61) [Tue Jun 12 13:17:32 2007][2604:2440] [info] jk_ajp_common.c (1941): (node1) sending request to tomcat failed, recoverable operation attempt=2 [Tue Jun 12 13:17:32 2007][2604:2440] [error] jk_ajp_common.c (1953): (node1) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port [Tue Jun 12 13:17:32 2007][2604:2440] [info] jk_lb_worker.c (1098): service failed, worker node1 is in error state [Tue Jun 12 13:17:32 2007][2604:2440] [info] jk_lb_worker.c (1160): All tomcat instances are busy or in error state [Tue Jun 12 13:17:32 2007]loadbalancer localhost 2.00 [Tue Jun 12 13:17:32 2007][2604:2440] [info] mod_jk.c (2254): Service error=0 for worker=loadbalancer -Original Message- From: Dean Pullen Sent: 12 June 2007 13:11 To: 'Tomcat Users List' Subject: RE: jk_mod 'Service Temporarily Unavailable' Well it's literally what is in that example...but am doing so anyway... -Original Message- From: Raghupathy, Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 13:10 To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: RE: jk_mod 'Service Temporarily Unavailable' Send me your mod_jk.conf and workers.properties and mod_jk.log to my personal emailed I have cced her with -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:55 To: Tomcat Users List Subject: RE: jk_mod 'Service Temporarily Unavailable' I'm afraid that didn't do the trick. I was hoping it would be as simple as that though! -Original Message- From: Raghupathy, Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:51 To: Tomcat Users List Subject: RE: jk_mod 'Service Temporarily Unavailable' Shutdown jboss Shutdown apache Start jboss ( wait till it starts fully ) Start apache Let me know how it goes -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:44 To: users@tomcat.apache.org Subject: jk_mod 'Service Temporarily Unavailable' Hi, I've followed the mod_jk instructions perfectly from the Jboss wiki here: http://www.jboss.org/wiki/Wiki.jsp?page=3DUsingMod_jk1.2WithJBoss Yet when I go to localhost/jmx-console I get 'Service Temporarily Unavailable' Going to Jboss directly (localhost:8080/jmx-console) provides the page properly. What am I doing wrong? Thanks in advance, Dean. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Scanned by MailDefender - managed email security from intY - www.maildefender.net - 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] Scanned by MailDefender - managed email security from intY - www.maildefender.net - 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: jk_mod 'Service Temporarily Unavailable'
I've found out the problem - took a long google session though. Seems to be due to me putting my ip in the workers file instead of a dns name. I used localhost and it worked fine... Thanks a lot for your help Gurumoorthy -Original Message- From: Raghupathy, Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 13:24 To: Dean Pullen Subject: RE: jk_mod 'Service Temporarily Unavailable' How are you starting your jboss ??? Do you start like run.bat -c all ? If you do then send me the JBOSS_HOME/server/all/deploy/jbossweb-tomcat50.sar/server.xml Else send me the JBOSS_HOME/server/all/default/jbossweb-tomcat50.sar/server.xml Regards Guru -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 13:19 To: Raghupathy, Gurumoorthy Subject: RE: jk_mod 'Service Temporarily Unavailable' It might be useful to include the jk_mod.log... [Tue Jun 12 13:17:14 2007][5928:3532] [info] mod_jk.c (2743): mod_jk/1.2.23 initialized [Tue Jun 12 13:17:15 2007][5928:3532] [info] mod_jk.c (2743): mod_jk/1.2.23 initialized [Tue Jun 12 13:17:15 2007][2604:3204] [info] mod_jk.c (2743): mod_jk/1.2.23 initialized [Tue Jun 12 13:17:15 2007][2604:3204] [info] mod_jk.c (2743): mod_jk/1.2.23 initialized [Tue Jun 12 13:17:31 2007][2604:2440] [info] jk_connect.c (451): connect to 10.0.0.190:8009 failed (errno=61) [Tue Jun 12 13:17:31 2007][2604:2440] [info] jk_ajp_common.c (876): Failed opening socket to (10.0.0.190:8009) (errno=61) [Tue Jun 12 13:17:31 2007][2604:2440] [info] jk_ajp_common.c (1273): (node1) error connecting to the backend server (errno=61) [Tue Jun 12 13:17:31 2007][2604:2440] [info] jk_ajp_common.c (1941): (node1) sending request to tomcat failed, recoverable operation attempt=1 [Tue Jun 12 13:17:32 2007][2604:2440] [info] jk_connect.c (451): connect to 10.0.0.190:8009 failed (errno=61) [Tue Jun 12 13:17:32 2007][2604:2440] [info] jk_ajp_common.c (876): Failed opening socket to (10.0.0.190:8009) (errno=61) [Tue Jun 12 13:17:32 2007][2604:2440] [info] jk_ajp_common.c (1273): (node1) error connecting to the backend server (errno=61) [Tue Jun 12 13:17:32 2007][2604:2440] [info] jk_ajp_common.c (1941): (node1) sending request to tomcat failed, recoverable operation attempt=2 [Tue Jun 12 13:17:32 2007][2604:2440] [error] jk_ajp_common.c (1953): (node1) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port [Tue Jun 12 13:17:32 2007][2604:2440] [info] jk_lb_worker.c (1098): service failed, worker node1 is in error state [Tue Jun 12 13:17:32 2007][2604:2440] [info] jk_lb_worker.c (1160): All tomcat instances are busy or in error state [Tue Jun 12 13:17:32 2007]loadbalancer localhost 2.00 [Tue Jun 12 13:17:32 2007][2604:2440] [info] mod_jk.c (2254): Service error=0 for worker=loadbalancer -Original Message- From: Raghupathy, Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 13:19 To: Dean Pullen Subject: RE: jk_mod 'Service Temporarily Unavailable' The log file ? -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 13:14 To: Raghupathy, Gurumoorthy Subject: FW: jk_mod 'Service Temporarily Unavailable' Attached, thanks. -Original Message- From: Raghupathy, Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 13:10 To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: RE: jk_mod 'Service Temporarily Unavailable' Send me your mod_jk.conf and workers.properties and mod_jk.log to my personal emailed I have cced her with -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:55 To: Tomcat Users List Subject: RE: jk_mod 'Service Temporarily Unavailable' I'm afraid that didn't do the trick. I was hoping it would be as simple as that though! -Original Message- From: Raghupathy, Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:51 To: Tomcat Users List Subject: RE: jk_mod 'Service Temporarily Unavailable' Shutdown jboss Shutdown apache Start jboss ( wait till it starts fully ) Start apache Let me know how it goes -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:44 To: users@tomcat.apache.org Subject: jk_mod 'Service Temporarily Unavailable' Hi, I've followed the mod_jk instructions perfectly from the Jboss wiki here: http://www.jboss.org/wiki/Wiki.jsp?page=3DUsingMod_jk1.2WithJBoss Yet when I go to localhost/jmx-console I get 'Service Temporarily Unavailable' Going to Jboss directly (localhost:8080/jmx-console) provides the page properly. What am I doing wrong? Thanks in advance, Dean. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Scanned by MailDefender - managed email security from intY - www.maildefender.net
Re: swallowOutput attribute in tomcat 6
Prabhu wrote: Do we have this attribute in tomcat 6. I was using tomcat 5 earlier and had this entry. DefaultContext allowLinking=true swallowOutput=true / Yes but in slightly different manner. See http://tomcat.apache.org/tomcat-6.0-doc/config/context.html 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: jk_mod 'Service Temporarily Unavailable'
Welcome one thing I always suggest is look at the logs it says cannot connect you can set the log level to debug and also see more information using ip address is the worst way to configure systems -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 13:26 To: Raghupathy, Gurumoorthy; users@tomcat.apache.org Subject: RE: jk_mod 'Service Temporarily Unavailable' I've found out the problem - took a long google session though. Seems to be due to me putting my ip in the workers file instead of a dns name. I used localhost and it worked fine... Thanks a lot for your help Gurumoorthy -Original Message- From: Raghupathy, Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 13:24 To: Dean Pullen Subject: RE: jk_mod 'Service Temporarily Unavailable' How are you starting your jboss ??? Do you start like run.bat -c all ? If you do then send me the JBOSS_HOME/server/all/deploy/jbossweb-tomcat50.sar/server.xml Else send me the JBOSS_HOME/server/all/default/jbossweb-tomcat50.sar/server.xml Regards Guru -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 13:19 To: Raghupathy, Gurumoorthy Subject: RE: jk_mod 'Service Temporarily Unavailable' It might be useful to include the jk_mod.log... [Tue Jun 12 13:17:14 2007][5928:3532] [info] mod_jk.c (2743): mod_jk/1.2.23 initialized [Tue Jun 12 13:17:15 2007][5928:3532] [info] mod_jk.c (2743): mod_jk/1.2.23 initialized [Tue Jun 12 13:17:15 2007][2604:3204] [info] mod_jk.c (2743): mod_jk/1.2.23 initialized [Tue Jun 12 13:17:15 2007][2604:3204] [info] mod_jk.c (2743): mod_jk/1.2.23 initialized [Tue Jun 12 13:17:31 2007][2604:2440] [info] jk_connect.c (451): connect to 10.0.0.190:8009 failed (errno=61) [Tue Jun 12 13:17:31 2007][2604:2440] [info] jk_ajp_common.c (876): Failed opening socket to (10.0.0.190:8009) (errno=61) [Tue Jun 12 13:17:31 2007][2604:2440] [info] jk_ajp_common.c (1273): (node1) error connecting to the backend server (errno=61) [Tue Jun 12 13:17:31 2007][2604:2440] [info] jk_ajp_common.c (1941): (node1) sending request to tomcat failed, recoverable operation attempt=1 [Tue Jun 12 13:17:32 2007][2604:2440] [info] jk_connect.c (451): connect to 10.0.0.190:8009 failed (errno=61) [Tue Jun 12 13:17:32 2007][2604:2440] [info] jk_ajp_common.c (876): Failed opening socket to (10.0.0.190:8009) (errno=61) [Tue Jun 12 13:17:32 2007][2604:2440] [info] jk_ajp_common.c (1273): (node1) error connecting to the backend server (errno=61) [Tue Jun 12 13:17:32 2007][2604:2440] [info] jk_ajp_common.c (1941): (node1) sending request to tomcat failed, recoverable operation attempt=2 [Tue Jun 12 13:17:32 2007][2604:2440] [error] jk_ajp_common.c (1953): (node1) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port [Tue Jun 12 13:17:32 2007][2604:2440] [info] jk_lb_worker.c (1098): service failed, worker node1 is in error state [Tue Jun 12 13:17:32 2007][2604:2440] [info] jk_lb_worker.c (1160): All tomcat instances are busy or in error state [Tue Jun 12 13:17:32 2007]loadbalancer localhost 2.00 [Tue Jun 12 13:17:32 2007][2604:2440] [info] mod_jk.c (2254): Service error=0 for worker=loadbalancer -Original Message- From: Raghupathy, Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 13:19 To: Dean Pullen Subject: RE: jk_mod 'Service Temporarily Unavailable' The log file ? -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 13:14 To: Raghupathy, Gurumoorthy Subject: FW: jk_mod 'Service Temporarily Unavailable' Attached, thanks. -Original Message- From: Raghupathy, Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 13:10 To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: RE: jk_mod 'Service Temporarily Unavailable' Send me your mod_jk.conf and workers.properties and mod_jk.log to my personal emailed I have cced her with -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:55 To: Tomcat Users List Subject: RE: jk_mod 'Service Temporarily Unavailable' I'm afraid that didn't do the trick. I was hoping it would be as simple as that though! -Original Message- From: Raghupathy, Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:51 To: Tomcat Users List Subject: RE: jk_mod 'Service Temporarily Unavailable' Shutdown jboss Shutdown apache Start jboss ( wait till it starts fully ) Start apache Let me know how it goes -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:44 To: users@tomcat.apache.org Subject: jk_mod 'Service Temporarily Unavailable' Hi, I've followed the mod_jk instructions perfectly from the Jboss wiki here: http://www.jboss.org/wiki/Wiki.jsp?page=3DUsingMod_jk1.2WithJBoss Yet when I go to localhost/jmx-console I get 'Service Temporarily Unavailable' Going to Jboss directly
Re: hi,problem when shutdown tomcat!
thank you for ideas i current using JBuider2006, what profiler can used in JBuider2006? thanks peter On 6/12/07, Jon Wingfield [EMAIL PROTECTED] wrote: Chuck answered a similar query recently: http://marc.info/?l=tomcat-userm=118113828210257w=2 Your servlets are serving long-running requests (or are in infinite loops, dead-locked etc) when you are trying to shutdown tomcat. The first thing I'd do in this situation is SIGQUIT tomcat to get a stackdump of the running threads. With that you can usually determine the changes you need to do to your servlets, if required. If the stackdump isn't a help I'd attach a profiler to see where your servlets are spending the time. I like the one bundled with netbeans. I'm sure others on the list have their own favourites. Jon Peter wrote: hi all; when i shutdown tomcat, i found following message in the catalina.out; 2007-6-12 18:18:44 org.apache.catalina.core.StandardWrapper unload * Waiting for 6 instance(s) to be deallocated* 2007-6-12 18:18:45 org.apache.catalina.core.StandardWrapper unload *Waiting for 6 instance(s) to be deallocated *2007-6-12 18:18:46 org.apache.catalina.core.StandardWrapper unload *Waiting for 6 instance(s) to be deallocated *2007-6-12 18:18:46 org.apache.catalina.core.StandardWrapper unload *Waiting for 333 instance(s) to be deallocated* 2007-6-12 18:18:47 org.apache.catalina.core.StandardWrapper unload *Waiting for 333 instance(s) to be deallocated* 2007-6-12 18:18:48 org.apache.catalina.core.StandardWrapper unload * Waiting for 333 instance(s) to be deallocated* anyone has a idea about the about messages, does it means that there is dead lock in the program? or some connection are not closed? thank you for ideas! peter - 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: ClassCastException..probably a classpath pb
From: lmk [mailto:[EMAIL PROTECTED] Subject: Re: ClassCastException..probably a classpath pb Im using tomcat 5.5. You most likely need to put your specialized jars in common/lib rather than server/lib. Those in server/lib are not accessible to webapps. - 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: .htaccess + Tomcat
From: reym [mailto:[EMAIL PROTECTED] Subject: Re: .htaccess + Tomcat So do i define the redirect attrbute in the SSL part or in the non-SSL part of the server.xml document? Please advise. Read the doc for redirectPort at: http://tomcat.apache.org/tomcat-5.5-doc/config/http.html If this Connector is supporting non-SSL requests, and a request is received for which a matching security-constraint requires SSL transport, Catalina will automatically redirect the request to the port number specified here. It would be a bit silly to have the port 443 Connector redirect to port 443, don't you think? You need it on the port 80 Connector so it has some idea of what to do with a request for CONFIDENTIAL traffic. - 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: hi,problem when shutdown tomcat!
Good question. I don't know. The last time I used JBuilder was way back in 2000. The Borland site suggests an OptimizeIt profiler is present in JBuilder for the Developer and Enterprise editions: http://info.borland.com/techpubs/jbuilder/ Jon Peter wrote: thank you for ideas i current using JBuider2006, what profiler can used in JBuider2006? thanks peter On 6/12/07, Jon Wingfield [EMAIL PROTECTED] wrote: Chuck answered a similar query recently: http://marc.info/?l=tomcat-userm=118113828210257w=2 Your servlets are serving long-running requests (or are in infinite loops, dead-locked etc) when you are trying to shutdown tomcat. The first thing I'd do in this situation is SIGQUIT tomcat to get a stackdump of the running threads. With that you can usually determine the changes you need to do to your servlets, if required. If the stackdump isn't a help I'd attach a profiler to see where your servlets are spending the time. I like the one bundled with netbeans. I'm sure others on the list have their own favourites. Jon Peter wrote: hi all; when i shutdown tomcat, i found following message in the catalina.out; 2007-6-12 18:18:44 org.apache.catalina.core.StandardWrapper unload * Waiting for 6 instance(s) to be deallocated* 2007-6-12 18:18:45 org.apache.catalina.core.StandardWrapper unload *Waiting for 6 instance(s) to be deallocated *2007-6-12 18:18:46 org.apache.catalina.core.StandardWrapper unload *Waiting for 6 instance(s) to be deallocated *2007-6-12 18:18:46 org.apache.catalina.core.StandardWrapper unload *Waiting for 333 instance(s) to be deallocated* 2007-6-12 18:18:47 org.apache.catalina.core.StandardWrapper unload *Waiting for 333 instance(s) to be deallocated* 2007-6-12 18:18:48 org.apache.catalina.core.StandardWrapper unload * Waiting for 333 instance(s) to be deallocated* anyone has a idea about the about messages, does it means that there is dead lock in the program? or some connection are not closed? thank you for ideas! peter - 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]
global/separate classloader for each web-app
Hi, In resin, there is a possibility to configure it with following: web-app-default !-- - Extension library for common jar files. The ext is safe - even for non-classloader aware jars. The loaded classes - will be loaded separately for each web-app, i.e. the class - itself will be distinct. -- class-loader tree-loader path=${server.rootDirectory}/ext-webapp/ /class-loader When above configuration is used then each jar placed in ext-webapp directory is loaded for each web-app X1, X2, ... just like it would be placed in X1/WEB-INF/lib, X2/WEB-INF/lib, ... Our customer asked us if it is possible in Tomcat. According to http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html it is not possible, could you please confirm or give me any tip or idea (I know that it is not correct approach - but it is customer request - cannot do much about it ;)). Maybe there is a way to extend Tomcat, maybe there is already a solution of this problem? Thanks, Hamster -- GMail::Hamster http://music-codex.com/ http://hamsterready.blogspot.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]
Re: global/separate classloader for each web-app
On 12/06/07, Jon Wingfield [EMAIL PROTECTED] wrote: You can supply a custom loader for a webapp to do this sort of thing: http://tomcat.apache.org/tomcat-5.5-doc/config/loader.html Each webapp would require a context.xml to enable the custom loader. Thank you Jon for this tip, so according to http://tomcat.apache.org/tomcat-5.5-doc/config/context.html and: in the $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps I can create my own loader (for example I can extend WebappLoader) and configure it in context.xml file. I will try it ;] Thanks, Hamster, -- GMail::Hamster http://music-codex.com/ http://hamsterready.blogspot.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]
Using log4J and getting rid of default logs in Tomcat 6
I would like to have all my logging go through log4J and not have the default XXX.date.log files created. Is there a way to do this? I got log4j working, as it says in the docs, but the localhost.date.log is still created and written to. From what I understand, I will need to put a log4j.properties in the admin and manager webapps to get these to go away, but I am not sure what to put in them. Has anyone done this? Is there a good on-line resource I can check? The logs I would like to get rid of, and replace with log4J managed logs are: 0 Jun 12 11:19 admin.2007-06-12.log 1585 Jun 12 11:20 catalina.2007-06-12.log 0 Jun 12 11:19 host-manager.2007-06-12.log 736 Jun 12 11:20 localhost.2007-06-12.log 0 Jun 12 11:19 manager.2007-06-12.log Thanks, 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]
Tomcat 6 jsp compilation
Hello, how can I say to Tomcat 6 to NOT compile jsp into .class files? This because we have more machines with a Tomcat 6 each one and they should read a read-only nfs file system in which we have precompiled .class files. Thank you. - 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: Using log4J and getting rid of default logs in Tomcat 6
As it turns out, getting rid of the old logging.properties file I had solved the problem. However, how I am not sure I am getting all the information used to be. Looking at some other examples, this seems to be the list of loggers to define. Is this correct? log4j.rootLogger=INFO, ROOT log4j.logger.org.apache.catalina=INFO, CATALINA log4j.logger.org.apache.catalina.core=INFO, CORE log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=I NFO, LOCALHOST log4j.logger.org.apache.catalina.session=INFO, SESSION Can syntax like in the logging.properties be used as well: [/host-manager] = like: log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=I NFO, MANAGER Thanks, Mark -Original Message- From: Mark Claassen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 11:31 AM To: 'Tomcat Users List' Subject: Using log4J and getting rid of default logs in Tomcat 6 I would like to have all my logging go through log4J and not have the default XXX.date.log files created. Is there a way to do this? I got log4j working, as it says in the docs, but the localhost.date.log is still created and written to. From what I understand, I will need to put a log4j.properties in the admin and manager webapps to get these to go away, but I am not sure what to put in them. Has anyone done this? Is there a good on-line resource I can check? The logs I would like to get rid of, and replace with log4J managed logs are: 0 Jun 12 11:19 admin.2007-06-12.log 1585 Jun 12 11:20 catalina.2007-06-12.log 0 Jun 12 11:19 host-manager.2007-06-12.log 736 Jun 12 11:20 localhost.2007-06-12.log 0 Jun 12 11:19 manager.2007-06-12.log Thanks, 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] - 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 6 jsp compilation
One of the things to do is to ensure that you have app specific web.xml placed in an appropriate location. This web.xml must have servlet and servlet-mapping defined for every precompiled jsp file as follows: servlet servlet-nameImageImport/servlet-name servlet-classjsp.imageupload/servlet-class /servlet servlet-mapping servlet-nameImageImport/servlet-name url-pattern/jsp/imageupload.jsp/url-pattern /servlet-mapping --Lakshmi -Original Message- From: Manca Davide [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 8:37 AM To: Tomcat Users List Subject: Tomcat 6 jsp compilation Hello, how can I say to Tomcat 6 to NOT compile jsp into .class files? This because we have more machines with a Tomcat 6 each one and they should read a read-only nfs file system in which we have precompiled .class files. Thank you. - 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 redirector
I check my isapi.log file and it says “/jsp-examples/ is a servlet ULR and should redirect to ajp13….” but I continue to get the error page 404. I have tried everything and cannot get this connect to work with Tomcat 5.5. Very frustrated and lost!! Can anyone help? Mike. - 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: global/separate classloader for each web-app
What's the point? Saving 2 Megs of hard disk space and, at the same time, risk to break deployed apps that sudeently get additionnal libs that can conflit in version with vendor supplied one? Hamster a écrit : Hi, In resin, there is a possibility to configure it with following: web-app-default !-- - Extension library for common jar files. The ext is safe - even for non-classloader aware jars. The loaded classes - will be loaded separately for each web-app, i.e. the class - itself will be distinct. -- class-loader tree-loader path=${server.rootDirectory}/ext-webapp/ /class-loader When above configuration is used then each jar placed in ext-webapp directory is loaded for each web-app X1, X2, ... just like it would be placed in X1/WEB-INF/lib, X2/WEB-INF/lib, ... Our customer asked us if it is possible in Tomcat. According to http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html it is not possible, could you please confirm or give me any tip or idea (I know that it is not correct approach - but it is customer request - cannot do much about it ;)). Maybe there is a way to extend Tomcat, maybe there is already a solution of this problem? Thanks, Hamster - 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: global/separate classloader for each web-app
On 12/06/07, David Delbecq [EMAIL PROTECTED] wrote: What's the point? Saving 2 Megs of hard disk space and, at the same time, risk to break deployed apps that sudeently get additionnal libs that can conflit in version with vendor supplied one? Don't ask me! It is their request, they said something about security concerns, fast security related libraries updated, etc... eh, do not ask ;( BTW I tried to use my own Loader in conf/context.xml it throws exceptions... I will keep working ;] Oh, and here is why it is important for me: If I will not be able to do that then they are going to put everything in commons/lib and all applications will use same version of libraries in shared classloader ;( and that is going to break all the apps ;] and someone will have to fix or upgrade them to the new approach, and it's going to be me, not funny at all. Hamster, -- GMail::Hamster http://music-codex.com/ http://hamsterready.blogspot.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]
Re: Invalid Content-Length error for the size greater than
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, Bill Barker wrote: This would let us see what mod_proxy_ajp is sending to Tomcat (which I very strongly suspect is wrong). Tomcat should still accept any valid numeric Content-Length header, even if it exceeds Integer.MAX_VALUE. The Java AJP connector currently requires an int, but should accept something larger (albeit with reduced support through the HttpServletRequest.getContentLength method). An end user should always be able to parse their own Content-Length header for large values. In this case, mod_whatever is breaking the number. However, once mod_whatever is fixed, the AJP connector will still trip over the fact that the value exceeds maxint. (Looks like you have a fix for that. Which connectors does it cover?) However, if my guess is right, then the problem is with httpd sending a bad value for the Content-Length header, so you would have to report it over there and get it fixed. I don't have enough spare cycles to test this myself, but I'm sure that between you and Chris it will get nailed down. Two mod_jk heavy-lifters frequent the list (Mladen and Rainer). If it turns out that Daniel is using mod_jk, they should be notified separately. From Daniel's messages plus the info available in the bug, it's unclear whether he is using mod_jk or mod_proxy_ajp. That information is important to identify before bothering someone on either project ;) This discussion can probably be taken off the mailing list and into Bugzilla: http://issues.apache.org/bugzilla/show_bug.cgi?id=42608 - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGbtD59CaO5/Lv0PARAhnOAJ4lyY65R4Ery20fPa0vDortYsO3vwCgroyq JSIy1JBN/u7zFBRS0nj4HKw= =+YL4 -END PGP SIGNATURE- - 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: Invalid Content-Length error for the size greater than
Bill, I believe I am using mod_proxy_ajp connector because this is what I have on my httpd.conf: ProxyPass /axis ajp://192.168.11.10:8009/axis ProxyPassReverse /axis ajp://192.168.11.10:8009/axis The version of mod_proxy_ajp is Apache/2.2.3 Thanks On Tue, 2007-06-12 at 12:59 -0400, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, Bill Barker wrote: This would let us see what mod_proxy_ajp is sending to Tomcat (which I very strongly suspect is wrong). Tomcat should still accept any valid numeric Content-Length header, even if it exceeds Integer.MAX_VALUE. The Java AJP connector currently requires an int, but should accept something larger (albeit with reduced support through the HttpServletRequest.getContentLength method). An end user should always be able to parse their own Content-Length header for large values. In this case, mod_whatever is breaking the number. However, once mod_whatever is fixed, the AJP connector will still trip over the fact that the value exceeds maxint. (Looks like you have a fix for that. Which connectors does it cover?) However, if my guess is right, then the problem is with httpd sending a bad value for the Content-Length header, so you would have to report it over there and get it fixed. I don't have enough spare cycles to test this myself, but I'm sure that between you and Chris it will get nailed down. Two mod_jk heavy-lifters frequent the list (Mladen and Rainer). If it turns out that Daniel is using mod_jk, they should be notified separately. From Daniel's messages plus the info available in the bug, it's unclear whether he is using mod_jk or mod_proxy_ajp. That information is important to identify before bothering someone on either project ;) This discussion can probably be taken off the mailing list and into Bugzilla: http://issues.apache.org/bugzilla/show_bug.cgi?id=42608 - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGbtD59CaO5/Lv0PARAhnOAJ4lyY65R4Ery20fPa0vDortYsO3vwCgroyq JSIy1JBN/u7zFBRS0nj4HKw= =+YL4 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Daniel T. Dang Software Engineer Dolphin Technology, Inc. 474 Phoenix Drive Rome, NY 13441 email: [EMAIL PROTECTED] phone: 315-838-1057 fax: 315-838-7096 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maximum length of form parameter
Hi, I have a problem I am not even sure if it's related to tomcat or not. I submit a form from a jsp to another. Some parameters of the form can get really big. When a certain parameter, say genelists, has a huge number of genes, it wouldn't work. For smaller number it still works. so the question is a) is there a set limit on the length of a parameter of a form from tomcat? b) if yes, is there any way to adjust this length? I am running tomcat 5.5. I know it's a vague question. I would be happy to provide more information..if I knew what to provide :) Please accept my apologies if this has nothing to do with tomcat. Any ideas are greatly appreciated. Thanks, Kaustubh
Help with tomcat 5.0.28 loadbalancing
Almost got it loadbalancing almost wokring need minor help finishing off. Things have chang since I havn't did this in about 3 years. I keep getting error messages in my mod_jk.log file below every time apache initializes. The connector seems to acting strange!! Can someone please look over my work here and point out the errors I've been looking at it too long. Thank you for your time. httpd.conf: __ # # Load mod_jk # This was added by Dwayne A. Ghant (6.11.07) # This add loadbalancing capabilities to tomcat server LoadModule jk_module modules/mod_jk.so # # Configure mod_jk # JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel inf workers.properties: __ # # workers.properties # # In Unix, we use forward slashes: ps=/ # list the workers by name worker.list=tomcat5_0_28A, tomcat5_0_28B, loadbalancer # # First tomcat server # worker.tomcat5_0_28A.port=11009 worker.tomcat5_0_28A.host=localhost worker.tomcat5_0_28A.type=ajp13 # Specify the size of the open connection cache. #worker.tomcat1.cachesize # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.tomcat5_0_28A.lbfactor=100 # # Second tomcat server # worker.tomcat5_0_28B.port=12009 worker.tomcat5_0_28B.host=localhost worker.tomcat5_0_28B.type=ajp13 # Specify the size of the open connection cache. #worker.tomcat2.cachesize # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.tomcat5_0_28B.lbfactor=100 # # Load Balancer worker # # # The loadbalancer (type lb) worker performs weighted round-robin # load balancing with sticky sessions. # Note: # If a worker dies, the load balancer will check its state #once in a while. Until then all work is redirected to peer #worker. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat5_0_28A, tomcat5_0_28B # # END workers.properties # __ mod_jk.log: __ [Tue Jun 12 14:21:50 2007] [5225:30880] [info] init_jk::mod_jk.c (2743): mod_jk/1.2.23 initialized [Tue Jun 12 14:21:51 2007] [5226:30880] [warn] jk_map_read_property::jk_map.c (432): The attribute 'worker.loadbalancer.balanced_workers' is deprecated - please check the documentation for the correct replacement. [Tue Jun 12 14:21:51 2007] [5226:30880] [info] init_jk::mod_jk.c (2743): mod_jk/1.2.23 initialized __ -- Dwayne A. Ghant Application Developer Temple University 215.204.3467 [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: maximum length of form parameter
On 6/12/07, kaustubh shinde [EMAIL PROTECTED] wrote: I submit a form from a jsp to another. Some parameters of the form can get really big. When a certain parameter, say genelists, has a huge number of genes, it wouldn't work. There isn't a consistent limit on URL length across different browsers and servers, but if you're hitting that limit, switch from GET to POST. HTH, -- Hassan Schroeder [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: maximum length of form parameter
Thanks for the response Hassan, I am already using POST. Kaustubh On 6/12/07, Hassan Schroeder [EMAIL PROTECTED] wrote: On 6/12/07, kaustubh shinde [EMAIL PROTECTED] wrote: I submit a form from a jsp to another. Some parameters of the form can get really big. When a certain parameter, say genelists, has a huge number of genes, it wouldn't work. There isn't a consistent limit on URL length across different browsers and servers, but if you're hitting that limit, switch from GET to POST. HTH, -- Hassan Schroeder [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: maximum length of form parameter
What if you were to assign some form of record ID that associated with a gene name so you could pass the ID's and not a descriptive name. This would reduce the number of characters in the stream. You might look at some other way to pass the information. You might be trying to bite off more than is reasonable to chew. Robert S. Harper Senior Engineer Information Access Technology, Inc. 1100 East 6600 South, Suite 300 Salt Lake City Utah USA 84121-7411 (801)265-8800 Ext. 255 FAX (801)265-8880 This e-mail is intended only for the addressee and may contain confidential and/or privileged information. Any review, retransmission, or action taken upon this information by persons other than the intended recipient is prohibited by law. If you received this communication in error, please contact us immediately at 801-265-8800. Although this e-mail and any attachments are believed to be free of any virus or other defect, it is the responsibility of the recipient to ensure that anything received or opened is virus free. No responsibility is accepted by IAT for any loss or damage in the event that such a virus or defect exists. -Original Message- From: kaustubh shinde [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 12:48 PM To: Tomcat Users List Subject: Re: maximum length of form parameter Thanks for the response Hassan, I am already using POST. Kaustubh On 6/12/07, Hassan Schroeder [EMAIL PROTECTED] wrote: On 6/12/07, kaustubh shinde [EMAIL PROTECTED] wrote: I submit a form from a jsp to another. Some parameters of the form can get really big. When a certain parameter, say genelists, has a huge number of genes, it wouldn't work. There isn't a consistent limit on URL length across different browsers and servers, but if you're hitting that limit, switch from GET to POST. HTH, -- Hassan Schroeder [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]
Re: global/separate classloader for each web-app
Hamster a écrit : On 12/06/07, David Delbecq [EMAIL PROTECTED] wrote: What's the point? Saving 2 Megs of hard disk space and, at the same time, risk to break deployed apps that sudeently get additionnal libs that can conflit in version with vendor supplied one? Don't ask me! It is their request, they said something about security concerns, fast security related libraries updated, etc... eh, do not ask ;( BTW I tried to use my own Loader in conf/context.xml it throws exceptions... I will keep working ;] Oh, and here is why it is important for me: If I will not be able to do that then they are going to put everything in commons/lib and all applications will use same version of libraries in shared classloader ;( and that is going to break all the apps ;] and someone will have to fix or upgrade them to the new approach, and it's going to be me, not funny at all. Hamster, Stupid suggestion: What about one of those approach 1) revise war build process to force inclusion of libs 2) have a server lifecyclelistener that, before loading of a webapp, copy the concerned classes to the WEB-INF/lib ? Copy seems easier than play with classloader... - 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: maximum length of form parameter
When a certain parameter, say genelists, has a huge number of genes OK, how big is huge, and how are you trying to process this? And what *exactly* is the log message associated with wouldn't work? -- Hassan Schroeder [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: maximum length of form parameter
kaustubh shinde wrote: Thanks for the response Hassan, I am already using POST. http://tomcat.apache.org/tomcat-6.0-doc/config/http.html You want maxPostSize 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]
Problem with XSL stylesheet not being applied when XML served through Tomcat
Here are two URLs http://library11.berkeley.edu/~gmills/binds_result.xml http://library11.berkeley.edu/%7Egmills/binds_result.xml http://library11.berkeley.edu:8080/...inds_result.xml http://library11.berkeley.edu:8080/noidbind/binds_result.xml In Firefox 2, the first URL results in the XSL stylesheet referenced in the XML document being applied correctly. The second URL does not. The difference is that the first URL is being served by Apache httpd 1.3.X, and the second by Tomcat 6.0. This document was generated dynamically by the app at noidbind. When I generate the document, I set the mimetype of the document to 'text/xml' and that also fails to work. All of these work in IE. Can anyone tell me what I have to do to fix this, and get the stylesheet applied when the document is served by Tomcat? Thanks; Garey Mills - 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: Using log4J and getting rid of default logs in Tomcat 6
See the note at the top of http://tomcat.apache.org/tomcat-6.0-doc/logging.html. By default, TC 6 only uses Juli for it's internal logging. Mark Claassen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] As it turns out, getting rid of the old logging.properties file I had solved the problem. However, how I am not sure I am getting all the information used to be. Looking at some other examples, this seems to be the list of loggers to define. Is this correct? log4j.rootLogger=INFO, ROOT log4j.logger.org.apache.catalina=INFO, CATALINA log4j.logger.org.apache.catalina.core=INFO, CORE log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=I NFO, LOCALHOST log4j.logger.org.apache.catalina.session=INFO, SESSION Can syntax like in the logging.properties be used as well: [/host-manager] = like: log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=I NFO, MANAGER Thanks, Mark -Original Message- From: Mark Claassen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 11:31 AM To: 'Tomcat Users List' Subject: Using log4J and getting rid of default logs in Tomcat 6 I would like to have all my logging go through log4J and not have the default XXX.date.log files created. Is there a way to do this? I got log4j working, as it says in the docs, but the localhost.date.log is still created and written to. From what I understand, I will need to put a log4j.properties in the admin and manager webapps to get these to go away, but I am not sure what to put in them. Has anyone done this? Is there a good on-line resource I can check? The logs I would like to get rid of, and replace with log4J managed logs are: 0 Jun 12 11:19 admin.2007-06-12.log 1585 Jun 12 11:20 catalina.2007-06-12.log 0 Jun 12 11:19 host-manager.2007-06-12.log 736 Jun 12 11:20 localhost.2007-06-12.log 0 Jun 12 11:19 manager.2007-06-12.log Thanks, 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] - 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: hi,problem when shutdown tomcat!
hi all; i try to use SIGQUIT but can not see the stack trace. [EMAIL PROTECTED] root]# ps -ef|grep tomcat root 26337 1 5 09:45 pts/000:00:11 /usr/java/jre1.5.0_08/bin/java -Xms256m -Xmx512m - Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager - Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties - Djava.endorsed.dirs=/opt/tomcat/common/endorsed -classpath :/opt/tomcat/bin/bootstrap.ja root 26427 26172 0 09:49 pts/000:00:00 grep tomcat [EMAIL PROTECTED] root]# kill -SIGQUIT 26337 [EMAIL PROTECTED] root]# kill -3 26337 [EMAIL PROTECTED] root]# does anyone has idea why? some artical said that if JVM set -Xrs,it will ignore the OS signal like SIGQUIT Does anyone know how can i see the stack trace in this situation? i use Tomcat 5.5.20 in linux , java, 1.5.0_10 thanks On 6/12/07, Jon Wingfield [EMAIL PROTECTED] wrote: Good question. I don't know. The last time I used JBuilder was way back in 2000. The Borland site suggests an OptimizeIt profiler is present in JBuilder for the Developer and Enterprise editions: http://info.borland.com/techpubs/jbuilder/ Jon Peter wrote: thank you for ideas i current using JBuider2006, what profiler can used in JBuider2006? thanks peter On 6/12/07, Jon Wingfield [EMAIL PROTECTED] wrote: Chuck answered a similar query recently: http://marc.info/?l=tomcat-userm=118113828210257w=2 Your servlets are serving long-running requests (or are in infinite loops, dead-locked etc) when you are trying to shutdown tomcat. The first thing I'd do in this situation is SIGQUIT tomcat to get a stackdump of the running threads. With that you can usually determine the changes you need to do to your servlets, if required. If the stackdump isn't a help I'd attach a profiler to see where your servlets are spending the time. I like the one bundled with netbeans. I'm sure others on the list have their own favourites. Jon Peter wrote: hi all; when i shutdown tomcat, i found following message in the catalina.out ; 2007-6-12 18:18:44 org.apache.catalina.core.StandardWrapper unload * Waiting for 6 instance(s) to be deallocated* 2007-6-12 18:18:45 org.apache.catalina.core.StandardWrapper unload *Waiting for 6 instance(s) to be deallocated *2007-6-12 18:18:46 org.apache.catalina.core.StandardWrapper unload *Waiting for 6 instance(s) to be deallocated *2007-6-12 18:18:46 org.apache.catalina.core.StandardWrapper unload *Waiting for 333 instance(s) to be deallocated* 2007-6-12 18:18:47 org.apache.catalina.core.StandardWrapper unload *Waiting for 333 instance(s) to be deallocated* 2007-6-12 18:18:48 org.apache.catalina.core.StandardWrapper unload * Waiting for 333 instance(s) to be deallocated* anyone has a idea about the about messages, does it means that there is dead lock in the program? or some connection are not closed? thank you for ideas! peter - 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]
Can not see the stack trace?
hi all; i try to use SIGQUIT but can not see the stack trace. [EMAIL PROTECTED] root]# ps -ef|grep tomcat root 26337 1 5 09:45 pts/000:00:11 /usr/java/jre1.5.0_08/bin/java -Xms256m -Xmx512m - Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager - Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties - Djava.endorsed.dirs=/opt/tomcat/common/endorsed -classpath :/opt/tomcat/bin/bootstrap.ja root 26427 26172 0 09:49 pts/000:00:00 grep tomcat [EMAIL PROTECTED] root]# kill -SIGQUIT 26337 [EMAIL PROTECTED] root]# kill -3 26337 [EMAIL PROTECTED] root]# does anyone has idea why? some artical said that if JVM set -Xrs,it will ignore the OS signal like SIGQUIT Does anyone know how can i see the stack trace in this situation? i use Tomcat 5.5.20 in linux , java, 1.5.0_10 thanks
RE: Using log4J and getting rid of default logs in Tomcat 6
Thanks for the reply. I did get some logging to work already, so I am assuming that I have it configured correctly. I did the compile of the extras and log4j 1.2. By removing the logging.properties, I got rid of the default logs, but I am not getting all the same output. I interpreted the documentation as saying that I can use log4J as long as I compile the extras. Are you saying that this still gives an incomplete picture? Mark -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Tuesday, June 12, 2007 9:42 PM To: users@tomcat.apache.org Subject: Re: Using log4J and getting rid of default logs in Tomcat 6 See the note at the top of http://tomcat.apache.org/tomcat-6.0-doc/logging.html. By default, TC 6 only uses Juli for it's internal logging. Mark Claassen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] As it turns out, getting rid of the old logging.properties file I had solved the problem. However, how I am not sure I am getting all the information used to be. Looking at some other examples, this seems to be the list of loggers to define. Is this correct? log4j.rootLogger=INFO, ROOT log4j.logger.org.apache.catalina=INFO, CATALINA log4j.logger.org.apache.catalina.core=INFO, CORE log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localh ost]=I NFO, LOCALHOST log4j.logger.org.apache.catalina.session=INFO, SESSION Can syntax like in the logging.properties be used as well: [/host-manager] = like: log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localh ost]=I NFO, MANAGER Thanks, Mark -Original Message- From: Mark Claassen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 11:31 AM To: 'Tomcat Users List' Subject: Using log4J and getting rid of default logs in Tomcat 6 I would like to have all my logging go through log4J and not have the default XXX.date.log files created. Is there a way to do this? I got log4j working, as it says in the docs, but the localhost.date.log is still created and written to. From what I understand, I will need to put a log4j.properties in the admin and manager webapps to get these to go away, but I am not sure what to put in them. Has anyone done this? Is there a good on-line resource I can check? The logs I would like to get rid of, and replace with log4J managed logs are: 0 Jun 12 11:19 admin.2007-06-12.log 1585 Jun 12 11:20 catalina.2007-06-12.log 0 Jun 12 11:19 host-manager.2007-06-12.log 736 Jun 12 11:20 localhost.2007-06-12.log 0 Jun 12 11:19 manager.2007-06-12.log Thanks, 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] - 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]
Re: hi,problem when shutdown tomcat!
hi all; I just found out that in linux under the /proc generate a fold 26337 does it the place which the information stores? any idea? thanks On 6/13/07, Peter [EMAIL PROTECTED] wrote: hi all; i try to use SIGQUIT but can not see the stack trace. [EMAIL PROTECTED] root]# ps -ef|grep tomcat root 26337 1 5 09:45 pts/000:00:11 /usr/java/jre1.5.0_08/bin/java -Xms256m -Xmx512m - Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager - Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties - Djava.endorsed.dirs=/opt/tomcat/common/endorsed -classpath :/opt/tomcat/bin/bootstrap.ja root 26427 26172 0 09:49 pts/000:00:00 grep tomcat [EMAIL PROTECTED] root]# kill -SIGQUIT 26337 [EMAIL PROTECTED] root]# kill -3 26337 [EMAIL PROTECTED] root]# does anyone has idea why? some artical said that if JVM set -Xrs,it will ignore the OS signal like SIGQUIT Does anyone know how can i see the stack trace in this situation? i use Tomcat 5.5.20 in linux , java, 1.5.0_10 thanks On 6/12/07, Jon Wingfield [EMAIL PROTECTED] wrote: Good question. I don't know. The last time I used JBuilder was way back in 2000. The Borland site suggests an OptimizeIt profiler is present in JBuilder for the Developer and Enterprise editions: http://info.borland.com/techpubs/jbuilder/ Jon Peter wrote: thank you for ideas i current using JBuider2006, what profiler can used in JBuider2006? thanks peter On 6/12/07, Jon Wingfield [EMAIL PROTECTED] wrote: Chuck answered a similar query recently: http://marc.info/?l=tomcat-userm=118113828210257w=2 Your servlets are serving long-running requests (or are in infinite loops, dead-locked etc) when you are trying to shutdown tomcat. The first thing I'd do in this situation is SIGQUIT tomcat to get a stackdump of the running threads. With that you can usually determine the changes you need to do to your servlets, if required. If the stackdump isn't a help I'd attach a profiler to see where your servlets are spending the time. I like the one bundled with netbeans. I'm sure others on the list have their own favourites. Jon Peter wrote: hi all; when i shutdown tomcat, i found following message in the catalina.out; 2007-6-12 18:18:44 org.apache.catalina.core.StandardWrapper unload * Waiting for 6 instance(s) to be deallocated* 2007-6-12 18:18:45 org.apache.catalina.core.StandardWrapper unload *Waiting for 6 instance(s) to be deallocated *2007-6-12 18:18:46 org.apache.catalina.core.StandardWrapper unload *Waiting for 6 instance(s) to be deallocated *2007-6-12 18:18:46 org.apache.catalina.core.StandardWrapper unload *Waiting for 333 instance(s) to be deallocated* 2007-6-12 18:18:47 org.apache.catalina.core.StandardWrapper unload *Waiting for 333 instance(s) to be deallocated* 2007-6-12 18:18:48 org.apache.catalina.core.StandardWrapper unload * Waiting for 333 instance(s) to be deallocated* anyone has a idea about the about messages, does it means that there is dead lock in the program? or some connection are not closed? thank you for ideas! peter - 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: Using log4J and getting rid of default logs in Tomcat 6
Mark Claassen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks for the reply. I did get some logging to work already, so I am assuming that I have it configured correctly. I did the compile of the extras and log4j 1.2. By removing the logging.properties, I got rid of the default logs, but I am not getting all the same output. I interpreted the documentation as saying that I can use log4J as long as I compile the extras. Are you saying that this still gives an incomplete picture? I agree that the instructions are a bit sparse. Did you actually replace $CATALINA_HOME/bin/tomcat-juli.jar with the one built in extras? Mark -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Tuesday, June 12, 2007 9:42 PM To: users@tomcat.apache.org Subject: Re: Using log4J and getting rid of default logs in Tomcat 6 See the note at the top of http://tomcat.apache.org/tomcat-6.0-doc/logging.html. By default, TC 6 only uses Juli for it's internal logging. Mark Claassen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] As it turns out, getting rid of the old logging.properties file I had solved the problem. However, how I am not sure I am getting all the information used to be. Looking at some other examples, this seems to be the list of loggers to define. Is this correct? log4j.rootLogger=INFO, ROOT log4j.logger.org.apache.catalina=INFO, CATALINA log4j.logger.org.apache.catalina.core=INFO, CORE log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localh ost]=I NFO, LOCALHOST log4j.logger.org.apache.catalina.session=INFO, SESSION Can syntax like in the logging.properties be used as well: [/host-manager] = like: log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localh ost]=I NFO, MANAGER Thanks, Mark -Original Message- From: Mark Claassen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 11:31 AM To: 'Tomcat Users List' Subject: Using log4J and getting rid of default logs in Tomcat 6 I would like to have all my logging go through log4J and not have the default XXX.date.log files created. Is there a way to do this? I got log4j working, as it says in the docs, but the localhost.date.log is still created and written to. From what I understand, I will need to put a log4j.properties in the admin and manager webapps to get these to go away, but I am not sure what to put in them. Has anyone done this? Is there a good on-line resource I can check? The logs I would like to get rid of, and replace with log4J managed logs are: 0 Jun 12 11:19 admin.2007-06-12.log 1585 Jun 12 11:20 catalina.2007-06-12.log 0 Jun 12 11:19 host-manager.2007-06-12.log 736 Jun 12 11:20 localhost.2007-06-12.log 0 Jun 12 11:19 manager.2007-06-12.log Thanks, 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] - 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] - 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: Using log4J and getting rid of default logs in Tomcat 6
Yep. And, as I said, it is working to some degree. I just want to get info from the other canned webapps in there. As well as have some certainty that I am getting what I am supposed to. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Tuesday, June 12, 2007 10:47 PM To: users@tomcat.apache.org Subject: Re: Using log4J and getting rid of default logs in Tomcat 6 Mark Claassen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks for the reply. I did get some logging to work already, so I am assuming that I have it configured correctly. I did the compile of the extras and log4j 1.2. By removing the logging.properties, I got rid of the default logs, but I am not getting all the same output. I interpreted the documentation as saying that I can use log4J as long as I compile the extras. Are you saying that this still gives an incomplete picture? I agree that the instructions are a bit sparse. Did you actually replace $CATALINA_HOME/bin/tomcat-juli.jar with the one built in extras? Mark -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Tuesday, June 12, 2007 9:42 PM To: users@tomcat.apache.org Subject: Re: Using log4J and getting rid of default logs in Tomcat 6 See the note at the top of http://tomcat.apache.org/tomcat-6.0-doc/logging.html. By default, TC 6 only uses Juli for it's internal logging. Mark Claassen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] As it turns out, getting rid of the old logging.properties file I had solved the problem. However, how I am not sure I am getting all the information used to be. Looking at some other examples, this seems to be the list of loggers to define. Is this correct? log4j.rootLogger=INFO, ROOT log4j.logger.org.apache.catalina=INFO, CATALINA log4j.logger.org.apache.catalina.core=INFO, CORE log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[local h ost]=I NFO, LOCALHOST log4j.logger.org.apache.catalina.session=INFO, SESSION Can syntax like in the logging.properties be used as well: [/host-manager] = like: log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[local h ost]=I NFO, MANAGER Thanks, Mark -Original Message- From: Mark Claassen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 11:31 AM To: 'Tomcat Users List' Subject: Using log4J and getting rid of default logs in Tomcat 6 I would like to have all my logging go through log4J and not have the default XXX.date.log files created. Is there a way to do this? I got log4j working, as it says in the docs, but the localhost.date.log is still created and written to. From what I understand, I will need to put a log4j.properties in the admin and manager webapps to get these to go away, but I am not sure what to put in them. Has anyone done this? Is there a good on-line resource I can check? The logs I would like to get rid of, and replace with log4J managed logs are: 0 Jun 12 11:19 admin.2007-06-12.log 1585 Jun 12 11:20 catalina.2007-06-12.log 0 Jun 12 11:19 host-manager.2007-06-12.log 736 Jun 12 11:20 localhost.2007-06-12.log 0 Jun 12 11:19 manager.2007-06-12.log Thanks, 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] - 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] - 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]
How to get Tomcat to send proper charset?
We just recently switched our platform from tomcat 4.124 to Tomcat 5.5.23 and now languages Japanese, Chinese (traditional) and Chinese (simplified) are not displaying properly. Here's a little background. We use servlets to build HTML code to be output (please no comments on how bad an idea this is; it's legacy code, we must support it). What we'd done up until now is determine the language to be used from the login page, save it in the session and use it to determine what character set should be output. The character set was explicitly stated in a meta header on the output web page like so html lang=ja head titlePage Title/title meta http-equiv=Content-Type content=text/html; charset=UTF-8 or html lang=en head titlePage Title/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 That is no longer working. It was suggested that tomcat was paying attention to the HTTP Content-Type header to determine what character set to display so I modified the code a little bit to use response.setContentType(text/html; charset=UTF-8) or response.setContentType(text/html; charset=iso-8859-1) depending on which was appropriate. But even though that response header is explicitly set in the code, somehow, somewhere it's changed again, because I've determined that the content type response header looks like this: Content-Type: text/html;charset=ISO-8859-1 What's going on? Why is Tomcat ignoring what we're telling it? How can we get Tomcat to send the correct response header so that our Japanese and Chinese readers can see something other than gibberish? -- Eva Allen Consulting Software Engineer, OCLC, Inc. 6565 Kilgour Pl., Dublin, OH 43017 614.764.6009 | [EMAIL PROTECTED] Views contained herein are my own; they do not necessarily reflect those of my employer