banner reserved URL ??
Hi All, Is the context 'banner' reserved in tomcat 5.5.9 ? I have a cocoon app running under tomcat and the URL http://www.domain.com/mycocoonapp/banner is not caught by the cocoon servlet but by tomcat instead If so, are there any other reserved contexts ? Any doc on that ? Cheers, Jerome Jerome Benezech [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: Handling SSL Client Auth abort
Hi Bill, Thanks for your answer. I've tried to download the source code for Tomcat 5.5.23, but I can't find a JIO Connector. Is JIO an abbrevation for something? Can you point me to a place, where I can find the source code and possibly make my own patch? regards, kews Bill Barker wrote: Subscriber [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, ...unfortunately I never get that far where I can catch the exception. The exception is thrown within Tomcat and in my application code. (I'll assume there's a rather critical not missing from the last clause in the above sentence.) Of course - NOT in my application code :-) If the client refuses the certificate or otherwise breaks the connection during the SSL negotiation, no servlet has been selected to receive the message, so there's no one to deliver the exception to. The servlet spec doesn't seem to have any notion of container-oriented error pages, so I think you're out of luck without custom code inside Tomcat. - Chuck This is OK - but how do I put custom code into the Tomcat? I've already coded a custom realm for the purpose of verifying the certificate - could I use this realm to catch the exception? Nope. The realm only gets called after the client sends the cert. If she cancels, then TC just returns an error. You could use a Valve to see if this has happened, but the socket has already been shutdown by this time (at least with the JIO connector), so you can't send anything back to the client. I seem to remember that there is a patch in BZ for 5.5.x to modify the JIO connector to handle this (but I'm too lazy to look it up :). I don't know the APR connector well enough to know how to make the same type of modification there. Regards, kews - 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] __ NOD32 2255 (20070509) Information __ This message was checked by NOD32 antivirus system. http://www.eset.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: WAR deployment incomplete (sometimes)
Oh... sorry think I gave wrong impression... I understood article to be talking about the META-INF context file... ie one guy said his web.xml file does not appear after deploy, and said he discovered it has nothing to do with web xml, its because the the context xml file has the wrong xml format personally I think everyone is guessing, but it certainly does seem to be happening to some unlucky people. - Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, May 10, 2007 3:23 AM Subject: RE: WAR deployment incomplete (sometimes) From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: WAR deployment incomplete (sometimes) Found this article. http://archives.devshed.com/forums/java-118/missing-application-web-xml- 1620719.html Which, unfortunately, came to what I think was the wrong conclusion. I suspect the real problem was the erroneous inclusion of a docBase attribute in the Context element. ?xml version=1.0 encoding=UTF-8? Context path=/ I hope you don't have the above in your web.xml, since the Context element doesn't go there. And, of course, having a path attribute in a Context element is not valid unless the Context is in server.xml, which is strongly discouraged. - 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] - 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: httpd/JK/Tomcat hung connections
Please update mod_jk. 1.2.6 is *very* outdated. We are now at 1.2.22 and a lot of things have improved. After upgrading, check your configuration against the reference guide in the docs, especially the pages for the worker properties and Apache directives. You might want to add some more timeouts. BTW: Maximum Apache parallelity of 150 does not really fit to a maximum tomcat parallelity of 1500 unless your tomcat does serious extra work . Regards, Rainer Brantley Hobbs wrote: All, I have a web application that appears to run just fine at low loads, but when we ramp up to high load levels, strange things start happening. The symptoms are a *ton* of apparently hung threads on the tomcat status page for my JK connector. They're in stage S, with 0KB sent and 0KB recv and they never die. Eventually, we reach a point on httpd where we get: [error] server reached MaxClients setting, consider raising the MaxClients setting And when we reach this point, the entire httpd server stops responding. I post this to the tomcat list because this same server serves PHP under similar (or worse) loads with no problems. Here's my worker properties file: worker.lbJ2EE.balanced_workers=web1 worker.web1.type=ajp13 worker.web1.host=128.192.100.14 worker.web1.port=8009 worker.web1.lbfactor=1 worker.web1.retries=5 worker.web1.connection_pool_timeout=60 Here's my AJP connector's configuration: Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 maxThreads=1500 backlog=300 connectionTimeout=6/ Here's my httpd worker.c configuration IfModule worker.c StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 /IfModule Tomcat 5.5.23 (Sun jvm 1.6.0-b105) Apache 2.0.52 mod_jk 1.2.6 All running on RHEL4 Any help appreciated! I don't have a great deal of Tomcat load tuning experience. Brantley Hobbs - 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: banner reserved URL ??
Jerome Benezech wrote: Hi All, Is the context 'banner' reserved in tomcat 5.5.9 ? Upgrade! That's *old*, current version is 5.5.23. I have a cocoon app running under tomcat and the URL http://www.domain.com/mycocoonapp/banner is not caught by the cocoon servlet but by tomcat instead Tomcat doesn't reserve any URLs. Sounds like your app or deployment config is screwy. Check your cocoon servlet mapping. p If so, are there any other reserved contexts ? Any doc on that ? Cheers, Jerome Jerome Benezech [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] smime.p7s Description: S/MIME Cryptographic Signature
Re: WAR deployment incomplete (sometimes)
Johnny Kewl wrote: I hope you don't have the above in your web.xml, since the Context element doesn't go there. And, of course, having a path attribute in a Context element is not valid unless the Context is in server.xml, which is strongly discouraged. - Chuck I'm starting to hear an 'Intel'-like jingle... every time this... gets posted to the list p 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] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
R: Msql Connector/J
Guy, I've already configured mysql. It correctly work whit Apache and PHP, I need only to join it whit Tomcat. The David/s suggestion work fine, if I place the jar file in WEB-INF\lib directory, Tomcat try to connect. But, even though I specify the user and password in the connectionURL, connectionURL = jdbc:mysql://localhost:3306/bi?user=myuser;password=mypassword, my Tomcat return: Error 500: javax.servlet.ServletException: Access denied for user ''@'localhost' (using password: NO) :-( I the JNDI Datasource HOW-TO ( http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html ) I'ved see that I need to configure the server.xml and the web.xml files. But, I belive, it's a particular specific use of Tomcat and MySql and I don't need that, I just want a connection whit my application an mysql, not from the Application Server and Mysql... P.S. hearty congratulations, I think you are best comunity on the world, swift, accurate and efficient! Thanks! Massimiliano Pasqualoni http://www.pasqualoni.it =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Scanned with Copfilter Version 0.83beta3a (ProxSMTP 1.4) AntiVirus: ClamAV 0.88.4/3224 - Wed May 9 17:25:29 2007 by Markus Madlener @ http://www.copfilter.org - 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: R: Msql Connector/J
Massimiliano PASQUALONI wrote: Guy, I've already configured mysql. It correctly work whit Apache and PHP, I need only to join it whit Tomcat. The David/s suggestion work fine, if I place the jar file in WEB-INF\lib directory, Tomcat try to connect. But, even though I specify the user and password in the connectionURL, connectionURL = jdbc:mysql://localhost:3306/bi?user=myuser;password=mypassword, my Tomcat return: Error 500: javax.servlet.ServletException: Access denied for user ''@'localhost' (using password: NO) Strongly recommend that you use a JNDI Datasource - it handles connection pooling for you and will provide a *much* better base to build your app on. In the examples in the JNDI Datasource doc, you supply the username and password as attributes, not in the URL. I the JNDI Datasource HOW-TO ( http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html ) I'ved see that I need to configure the server.xml and the web.xml files. But, I belive, it's a particular specific use of Tomcat and MySql and I don't need that, I just want a connection whit my application an mysql, not from the Application Server and Mysql... The config required is minimal, and offers speed improvements amongst other things. Retrieving a DataSource from JNDI is much quicker than creating a new one every time you want to hit the database. It's pretty standard to do this, and more unusual not to, in my experience. rgds p P.S. hearty congratulations, I think you are best comunity on the world, swift, accurate and efficient! Thanks! Massimiliano Pasqualoni http://www.pasqualoni.it =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Scanned with Copfilter Version 0.83beta3a (ProxSMTP 1.4) AntiVirus: ClamAV 0.88.4/3224 - Wed May 9 17:25:29 2007 by Markus Madlener @ http://www.copfilter.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
2 apache with mod_jk and only one Jboss
Hello Is this possible? We have configure 2 apache pointing to the same jboss without modifying the jboss configuration and we find some strange problems. Sometimes it does not work. Where can I find more information about how to do that. We need this because we have 2 applications in Jboss and one needs a client certificate and the other doesn't. We have configure one apache to ask for the certificate. Please give me some help Thanks
2 connectors (http and https) and how make manager manage all apps
Hello, Working with Tomcat 5 and Debian (without Apache as front-end) I have two groups of applications. The first one have been configured to work through https and the second one with http. My problem is that the manager application doesn't detect the http applications, so for restarting, stopping and loading them, I have to restart the whole Tomcat. Here is my Tomcat's server.xml *?xml version=1.0 encoding=UTF-8? Server Listener className=org.apache.catalina.core.AprLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/ Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase pathname=conf/tomcat-users.xml factory=org.apache.catalina.users.MemoryUserDatabaseFactory/ /GlobalNamingResources * * Service name=Catalina Connector port=443 scheme=https secure=true minSpareThreads=25 clientAuth=false keystorePass=xx keystoreFile=/opt/apache-tomcat-5.5.20/keystores/.keystore maxSpareThreads=75 maxThreads=150 sslProtocol=TLS/ Engine defaultHost=localhost name=Catalina Realm className=org.apache.catalina.realm.UserDatabaseRealm/ Host appBase=webappsStandard name=localhost/ /Engine /Service Service name=webappsGIS Connector port=80 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true compression=on compressableMiMeType=test/html,text/xml,text/plain,application/xml,application/pdf/ Engine defaultHost=geoserver name=webappsGIS Realm className=org.apache.catalina.realm.UserDatabaseRealm/ Host appBase=gis name=geoserver/ /Engine /Service* */Server* Best regards, Jacobo. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[install as win service] procrun windows executable ? is tomcat5.exe obsolete?
Hi, I want to install tomcat 5.0.28 as a windows service. in a batch, I call the exécutable Tomcat5.exe (Prunsrv). it works however, - the tomcat 5.0 documentation says nothing about tomcat5.exe - the tomcat 5.5 documentation says that the Tomcat5.exe function is obsolete : This section of the documentation applies to procrun 1.0, and is now obsolete. http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html Anybody knows if the Tomcat5.exe executable shipped with tomcat version 5.0.28 is obsolete? Unfortunately, I could not find the procrun windows executable files http://jakarta.apache.org/commons/daemon/procrun.html Anybody knows where I could find more documentation about procrun and procrun windows executables files ? thank you in advance Pascal _ Gagnez des pc Windows Vista avec Live.com http://www.image-addict.fr/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
R: Msql Connector/J
Hey! After my congratulations no one can help me? Even though I specify the user and password in the connectionURL: connectionURL = jdbc:mysql://localhost:3306/bi?user=myuser;password=mypassword my Tomcat return: Error 500: javax.servlet.ServletException: Access denied for user ''@'localhost' (using password: NO) Some idea?!?!? =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Scanned with Copfilter Version 0.83beta3a (ProxSMTP 1.4) AntiVirus: ClamAV 0.88.4/3225 - Thu May 10 10:08:21 2007 by Markus Madlener @ http://www.copfilter.org - 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: [install as win service] procrun windows executable ? is tomcat5.exe obsolete?
the procrun files for tomcat can be found in Tomcat SVN, http://svn.apache.org/viewvc/tomcat/connectors/trunk/procrun/bin/ you can also try out an alternative wrapper, works in a similar fashion http://people.apache.org/~fhanik/wrapper.html Filip Pascal Fonte wrote: Hi, I want to install tomcat 5.0.28 as a windows service. in a batch, I call the exécutable Tomcat5.exe (Prunsrv). it works however, - the tomcat 5.0 documentation says nothing about tomcat5.exe - the tomcat 5.5 documentation says that the Tomcat5.exe function is obsolete : This section of the documentation applies to procrun 1.0, and is now obsolete. http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html Anybody knows if the Tomcat5.exe executable shipped with tomcat version 5.0.28 is obsolete? Unfortunately, I could not find the procrun windows executable files http://jakarta.apache.org/commons/daemon/procrun.html Anybody knows where I could find more documentation about procrun and procrun windows executables files ? thank you in advance Pascal _ Gagnez des pc Windows Vista avec Live.com http://www.image-addict.fr/ - 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]
R: Msql Connector/J
Well, I've fix the problem by myself! :-) The connector work fine, the proplem is in the code. We don't need to specify the db account in the connection url, but when we create the connectio: String connection = DriverManager.getConnection(dbUrl, dbuser, dbpassword); to reassume: for install the connector just put it in the webapp's /WEB-INF/lib directory. CU! -Messaggio originale- Da: Massimiliano PASQUALONI [mailto:[EMAIL PROTECTED] Inviato: giovedì 10 maggio 2007 12.37 A: 'Tomcat Users List' Oggetto: R: Msql Connector/J Hey! After my congratulations no one can help me? Even though I specify the user and password in the connectionURL: connectionURL = jdbc:mysql://localhost:3306/bi?user=myuser;password=mypassword my Tomcat return: Error 500: javax.servlet.ServletException: Access denied for user ''@'localhost' (using password: NO) Some idea?!?!? =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Scanned with Copfilter Version 0.83beta3a (ProxSMTP 1.4) AntiVirus: ClamAV 0.88.4/3225 - Thu May 10 10:08:21 2007 by Markus Madlener @ http://www.copfilter.org - 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 with Copfilter Version 0.83beta3a (ProxSMTP 1.4) AntiVirus: ClamAV 0.88.4/3225 - Thu May 10 10:08:21 2007 by Markus Madlener @ http://www.copfilter.org - 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: [Fwd: static fields suddenly started sharing]
Thanks for the suggestions, guys. This has been a tricky one to work through but I think I have the answer - kind of. A number of people responded with help for which I am grateful (think: 2am and I'm all alone and it has to be fixed by morning, it is so nice to see a helpful message come through). What I thought I was seeing was the static fields suddenly being shared between two apps. I got reports of errors from the live site (to which I have no direct access) and I reproduced a similar problem on my dev environment. When I looked deeper I found the statics were shared between the two apps so I concluded the same thing was happening on the live site. It certainly explained what they reported from the live site. But two different things were happening. On my dev system I run tomcat under eclipse, using the plugin. It has always worked fine. I recently started using ivy in my eclipse projects and that seems to do something odd to the class loader which is what I was seeing. Filip Hanlik suggested I use this code to see how the classloader was loading: ClassLoader parent = this.getClass().getClassLoader(); while ( parent != null ) { if (parent instance of URLClassLoader) { //print URLs using getURLS() method parent = parent.getParent(); } I put a variation of this into my contextlisterner classes and it showed this (edited for brevity) 10-05-2007 20:45:58 parent=org.apache.catalina.loader.WebappClassLoader 10-05-2007 20:45:58 file:/C:/projects/Hermes/HermesAdmin/WEB-INF/classes/ 10-05-2007 20:45:58 file:/C:/projects/Hermes/HermesAdmin/WEB-INF/lib/HermesServer.jar 10-05-2007 20:45:58 file:/C:/projects/Hermes/HermesAdmin/WEB-INF/lib/MaduraApplet-2.0.jar 10-05-2007 20:45:58 file:/C:/projects/Hermes/HermesAdmin/WEB-INF/lib/MaduraServer-2.0.jar This is the relevant library 10-05-2007 20:45:58 parent=org.apache.catalina.loader.StandardClassLoader 10-05-2007 20:45:58 file:C:/Program Files/Apache Group/Tomcat 4.1/shared/classes/ ... 10-05-2007 20:45:58 parent=org.apache.catalina.loader.StandardClassLoader 10-05-2007 20:45:58 file:C:/Program Files/Apache Group/Tomcat 4.1/common/classes/ ... 10-05-2007 20:45:58 parent=sun.misc.Launcher$AppClassLoader 10-05-2007 20:45:58 file:/C:/projects/Hermes/HermesServer/classes/ 10-05-2007 20:45:58 file:/C:/eclipsev32/plugins/org.junit_3.8.1/junit.jar 10-05-2007 20:45:58 file:/C:/Program%20Files/Apache%20Group/Tomcat%204.1/common/lib/servlet.jar ... 10-05-2007 20:45:58 file:/C:/projects/ivy_resources_madura/ivy_cache/senanque/Madura/jars/MaduraServer-2.0.jar and here it is again !! 10-05-2007 20:45:58 file:/C:/projects/ivy_resources_madura/ivy_cache/senanque/Madura/jars/MaduraApplet-2.0.jar ... 10-05-2007 20:45:58 file:/C:/projects/ivy_resources_madura/ivy_cache/apache/xerces/jars/xerces-2.0.2.jar 10-05-2007 20:45:58 file:/C:/Program%20Files/Apache%20Group/Tomcat%204.1/bin/bootstrap.jar 10-05-2007 20:45:58 file:/C:/j2sdk1.4.2_11/lib/tools.jar 10-05-2007 20:45:58 parent=sun.misc.Launcher$ExtClassLoader 10-05-2007 20:45:58 file:/C:/j2sdk1.4.2_11/jre/lib/ext/dnsns.jar 10-05-2007 20:45:58 file:/C:/j2sdk1.4.2_11/jre/lib/ext/ldapsec.jar 10-05-2007 20:45:58 file:/C:/j2sdk1.4.2_11/jre/lib/ext/localedata.jar 10-05-2007 20:45:58 file:/C:/j2sdk1.4.2_11/jre/lib/ext/sunjce_provider.jar So the problem is that the ivy libraries are loading too early. I don't see a way to control this from the eclipse UI but it is no problem to test the apps one at a time. This might help someone else though. I tried it running stand-alone on the tomcat 5.5 system on my dev machine and thought I reproduced the error but I cannot now so I will put that down to late night brain fade. The live site has mysteriously righted itself. The only thing I know they did there was to clear the app directories in webapps and restart the server. It is just possible that they were doing something ridiculous and not telling me, they aren't very used to tomcat. The most likely scenario was that they had managed to get two instances of it running and the phantom application was locking the real one. I'm getting too specific to my app here, which is not useful, so I'll stop. Anyway, thanks again for the help. I've mentioned Filip but the responses from Christopher Schultz and Johnny Kewl were very welcome too. Oh, and Christopher asked which library I was using. It isn't one you'd know, a home grown framework used for internal projects. Regards Roger - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
R: R: Msql Connector/J
Sorry, I don't have calculate the time zone :-) =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Scanned with Copfilter Version 0.83beta3a (ProxSMTP 1.4) AntiVirus: ClamAV 0.88.4/3225 - Thu May 10 10:08:21 2007 by Markus Madlener @ http://www.copfilter.org - 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: http chunking in Tomcat 5.5
Its enabled by default. IIRC - you can't disable it unless you set the content length for the response. (See the servlet spec / google for how to set content length) -Tim Alexander Wolff wrote: How can i enable/disable http chunking in Tomcat 5.5? thanks in advance, Alexander - 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: 2 apache with mod_jk and only one Jboss
This is possible. But strange problems doesn't really provide any details to how to solve the issue. Since you have 2 apache's and one tomcat - you need to ensure you have tomcat configured to accept the appropriate amount of connections from both apaches. For example - if each apache can create 100 connections to tomcat - then tomcat needs to be configured to accept 200 connections. -Tim Arturo Martinez wrote: Hello Is this possible? We have configure 2 apache pointing to the same jboss without modifying the jboss configuration and we find some strange problems. Sometimes it does not work. Where can I find more information about how to do that. We need this because we have 2 applications in Jboss and one needs a client certificate and the other doesn't. We have configure one apache to ask for the certificate. Please give me some help Thanks - 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: httpd/JK/Tomcat hung connections
Rainer, Thanks for the reply! You're certainly right on the JK version. Can you be more specific on the add some more timeouts comment? Do you mean a higher number on connection_pool_timeout? Also, should the relationship between httpd's MaxClients and the connector's maxThreads be 1:1 or what? The httpd server does do additional work besides simply front-ending Tomcat, so I'd assume that we'd want MaxClients to be at least the same as MaxThreads, and probably much more depending on how much additional work the httpd server does. Is this reasonable? I'm just trying to get a handle on the relationships. Thanks, Brantley Rainer Jung wrote: Please update mod_jk. 1.2.6 is *very* outdated. We are now at 1.2.22 and a lot of things have improved. After upgrading, check your configuration against the reference guide in the docs, especially the pages for the worker properties and Apache directives. You might want to add some more timeouts. BTW: Maximum Apache parallelity of 150 does not really fit to a maximum tomcat parallelity of 1500 unless your tomcat does serious extra work . Regards, Rainer Brantley Hobbs wrote: All, I have a web application that appears to run just fine at low loads, but when we ramp up to high load levels, strange things start happening. The symptoms are a *ton* of apparently hung threads on the tomcat status page for my JK connector. They're in stage S, with 0KB sent and 0KB recv and they never die. Eventually, we reach a point on httpd where we get: [error] server reached MaxClients setting, consider raising the MaxClients setting And when we reach this point, the entire httpd server stops responding. I post this to the tomcat list because this same server serves PHP under similar (or worse) loads with no problems. Here's my worker properties file: worker.lbJ2EE.balanced_workers=web1 worker.web1.type=ajp13 worker.web1.host=128.192.100.14 worker.web1.port=8009 worker.web1.lbfactor=1 worker.web1.retries=5 worker.web1.connection_pool_timeout=60 Here's my AJP connector's configuration: Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 maxThreads=1500 backlog=300 connectionTimeout=6/ Here's my httpd worker.c configuration IfModule worker.c StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 /IfModule Tomcat 5.5.23 (Sun jvm 1.6.0-b105) Apache 2.0.52 mod_jk 1.2.6 All running on RHEL4 Any help appreciated! I don't have a great deal of Tomcat load tuning experience. Brantley Hobbs - 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: 2 apache with mod_jk and only one Jboss
Thanks The problems are that the apache can not redirect to the jboss sometimes. When I try to connect to one apache the other seems that stop working. After sometime they start working again without doing nothing. Where do I configure the number of connections? How do I have to configure Jboss jboss-4.0.4.GA\server\default\deploy\jbossweb-tomcat55.sar\server.xml ? I only have both apache workers.properties like this: worker.list=loadbalancer,status # Define Node1 # modify the host as your host IP or DNS name. #worker.node1.port=8009 #worker.node1.host=172.30.112.108 #worker.node1.type=ajp13 #worker.node1.lbfactor=1 # worker.node1.connection_pool_size=10 (1) # Define Node2 # modify the host as your host IP or DNS name. worker.node2.port=8009 worker.node2.host= 172.30.112.109 worker.node2.type=ajp13 worker.node2.lbfactor=1 # worker.node1.connection_pool_size=10 (1) # Load-balancing behaviour worker.loadbalancer.type=lb #worker.loadbalancer.balance_workers=node1,node2 worker.loadbalancer.balance_workers=node2 # Status worker for managing load balancer worker.status.type=status Thanks 2007/5/10, Tim Funk [EMAIL PROTECTED]: This is possible. But strange problems doesn't really provide any details to how to solve the issue. Since you have 2 apache's and one tomcat - you need to ensure you have tomcat configured to accept the appropriate amount of connections from both apaches. For example - if each apache can create 100 connections to tomcat - then tomcat needs to be configured to accept 200 connections. -Tim Arturo Martinez wrote: Hello Is this possible? We have configure 2 apache pointing to the same jboss without modifying the jboss configuration and we find some strange problems. Sometimes it does not work. Where can I find more information about how to do that. We need this because we have 2 applications in Jboss and one needs a client certificate and the other doesn't. We have configure one apache to ask for the certificate. Please give me some help Thanks - 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: Msql Connector/J
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, Martin Gainty wrote: Any idea on how to configure MySQL with ENGINE=INNODB would be much appreciated or does MySQL have to be rebuilt for that option? Binary MySQL versions since 4.0 have InnoDB both built-in and configured. If you want to turn it off, you need to add the skip-innodb configuration directive. You can find tons of documentation on InnoDB itself directly in the MySQL documentation for each version of MySQL: 3.23 - 4.1: http://dev.mysql.com/doc/refman/4.1/en/innodb.html 5.0 : http://dev.mysql.com/doc/refman/5.0/en/innodb.html 5.1 : http://dev.mysql.com/doc/refman/5.1/en/innodb.html Creating a table with the InnoDB storage engine is easy... you do it the same way you choose any storage engine in MySQL: CREATE TABLE foo ( ... ) ENGINE=InnoDB ... ; Martin, I'm not sure why you claim that MySQL has either or documentation or that what exists is poor. In my experience it is quite extensive and, for the most part, comprehensive. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGQwxf9CaO5/Lv0PARAi7zAJ4voBYWdy1qtv6vCUHu0hNLp+crZwCfcnqq KmfeC3j3ix0odLqj+XgAAF0= =IzOj -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: banner reserved URL ??
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jerome, Jerome Benezech wrote: Is the context 'banner' reserved in tomcat 5.5.9 ? I have a cocoon app running under tomcat and the URL http://www.domain.com/mycocoonapp/banner is not caught by the cocoon servlet but by tomcat instead Unless you have a nonstandard configuration, mycocoonapp is the context in this case, not banner. Could that be the problem? I believe you want all of your Cocoon pipeline mappings to start with /banner, not /mycocoonapp, since Cocoon removes the context name from the URL before it matches anything. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGQw1B9CaO5/Lv0PARAkoWAKC0cUvlKqWbHaHcCSnUObr+Lr47XQCeOkeH pEFKibdPxC9SJnGUKUIn7jo= =9r/S -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: R: Msql Connector/J
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Massimiliano, Massimiliano PASQUALONI wrote: But, even though I specify the user and password in the connectionURL, connectionURL = jdbc:mysql://localhost:3306/bi?user=myuser;password=mypassword, my Tomcat return: Error 500: javax.servlet.ServletException: Access denied for user ''@'localhost' (using password: NO) Using password: NO means that the password is not being sent correctly to the database server. You have an error in your URL: the ; should be a , just like a regular URL. That's probably why the password is being ignored. In fact, I'll bet that the username being used is myuser;password=mypassword. I agree with Pid's recommendation to use JNDI for your database connection. If you do that, you can use the same connection pool for Tomcat's realm authentication and your own application as well, instead of separate sets of connections. (If you setup a JDBCRealm, Tomcat manages either a single connection or a separate set of connections for authentication. I've seen misconfigurations where the application can connect to the database but the realm cannot. Oops!) - -chris :-( I the JNDI Datasource HOW-TO ( http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html ) I'ved see that I need to configure the server.xml and the web.xml files. But, I belive, it's a particular specific use of Tomcat and MySql and I don't need that, I just want a connection whit my application an mysql, not from the Application Server and Mysql... P.S. hearty congratulations, I think you are best comunity on the world, swift, accurate and efficient! Thanks! Massimiliano Pasqualoni http://www.pasqualoni.it =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Scanned with Copfilter Version 0.83beta3a (ProxSMTP 1.4) AntiVirus: ClamAV 0.88.4/3224 - Wed May 9 17:25:29 2007 by Markus Madlener @ http://www.copfilter.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGQw4i9CaO5/Lv0PARAgucAJ0cPOJt9BCbcRgLb67hafQ8N/7DwgCfQqj6 YNRwHUtyL5WAVcj1srNE+Js= =02Hj -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: httpd/JK/Tomcat hung connections
Brantley Hobbs wrote: Rainer, Thanks for the reply! You're certainly right on the JK version. Can you be more specific on the add some more timeouts comment? Do you mean a higher number on connection_pool_timeout? Have a look at connect_timeout and prepost_timeout. Usually I also use reply_timeout, but this one not with a very low limit. You connection_pool_timeout looks OK, you might want to increase it for efficiency, but that's not critical. Also, should the relationship between httpd's MaxClients and the connector's maxThreads be 1:1 or what? The httpd server does do additional work besides simply front-ending Tomcat, so I'd assume that we'd want MaxClients to be at least the same as MaxThreads, and probably much more depending on how much additional work the httpd server does. Is this reasonable? I'm just trying to get a handle on the relationships. You are exactly right. Usually the extra work done by Apache is high concerning request counts (e.g. if Apache serves all the static contents), but most of the extra work is done very quickly. So in case you've got 1 Apache and 1 Tomcat, and Apache only serves additional small static content, you can keep the numbers in sync. If there is a n:1 or 1:n relationship (n1), you might need to adjust. If Apache serves long running downloads or scripts, you might also need to give it more allowed parallelity than tomcat. MaxThreads bigger than MaxClients is mostly the case, if you have 2 Apache, 2 Tomcat and each Apache can use both Tomcats. Then you would choose MaxThreads close to 2*MaxClients, so that in case you need to shut down one of your tomcats, the other one will still be able to accept enough connections from both Apaches. Thanks, Brantley Regards, Rainer - 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: [install as win service] procrun windows executable ? is tomcat5.exe obsolet
Thank you very much. Now, with the wrapper I have an alternative way to install tomcat 5.0.28 as a windows service. However, I would like to make sure: - the tomcat5.exe procrun executable works fine with tomcat 5.0 - I can use the procrun documentation to manage the tomcat5.exe procrun executable. Thank you again Pascal the procrun files for tomcat can be found in Tomcat SVN, http://svn.apache.org/viewvc/tomcat/connectors/trunk/procrun/bin/ you can also try out an alternative wrapper, works in a similar fashion http://people.apache.org/~fhanik/wrapper.html Filip Pascal Fonte wrote: Hi, I want to install tomcat 5.0.28 as a windows service. in a batch, I call the exécutable Tomcat5.exe (Prunsrv). it works however, - the tomcat 5.0 documentation says nothing about tomcat5.exe - the tomcat 5.5 documentation says that the Tomcat5.exe function is obsolete : This section of the documentation applies to procrun 1.0, and is now obsolete. http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html Anybody knows if the Tomcat5.exe executable shipped with tomcat version 5.0.28 is obsolete? Unfortunately, I could not find the procrun windows executable files http://jakarta.apache.org/commons/daemon/procrun.html Anybody knows where I could find more documentation about procrun and procrun windows executables files ? thank you in advance Pascal _ Gagnez des pc Windows Vista avec Live.com http://www.image-addict.fr/ - 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] _ Ten : Messenger en illimité sur votre mobile ! http://mobile.live.fr/messenger/ten/ - 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: httpd/JK/Tomcat hung connections
Rainer, Thanks for all the info. Hopefully we can get this thing whipped into shape. Brantley Rainer Jung wrote: Brantley Hobbs wrote: Rainer, Thanks for the reply! You're certainly right on the JK version. Can you be more specific on the add some more timeouts comment? Do you mean a higher number on connection_pool_timeout? Have a look at connect_timeout and prepost_timeout. Usually I also use reply_timeout, but this one not with a very low limit. You connection_pool_timeout looks OK, you might want to increase it for efficiency, but that's not critical. Also, should the relationship between httpd's MaxClients and the connector's maxThreads be 1:1 or what? The httpd server does do additional work besides simply front-ending Tomcat, so I'd assume that we'd want MaxClients to be at least the same as MaxThreads, and probably much more depending on how much additional work the httpd server does. Is this reasonable? I'm just trying to get a handle on the relationships. You are exactly right. Usually the extra work done by Apache is high concerning request counts (e.g. if Apache serves all the static contents), but most of the extra work is done very quickly. So in case you've got 1 Apache and 1 Tomcat, and Apache only serves additional small static content, you can keep the numbers in sync. If there is a n:1 or 1:n relationship (n1), you might need to adjust. If Apache serves long running downloads or scripts, you might also need to give it more allowed parallelity than tomcat. MaxThreads bigger than MaxClients is mostly the case, if you have 2 Apache, 2 Tomcat and each Apache can use both Tomcats. Then you would choose MaxThreads close to 2*MaxClients, so that in case you need to shut down one of your tomcats, the other one will still be able to accept enough connections from both Apaches. Thanks, Brantley Regards, Rainer - 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]
Java HotSpot warning when using jsvc
I have started using jsvc to launch Tomcat. I am running Tomcat 6.0.13 on Fedora Core 6. My JDK is 6.0u1. I get a warning on startup. Not sure if this should be cause of concern. Anybody seen this before? Is there an explanation? Will this impact functionality or performance in any way? Is there a way to fix this? Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed I have seen a bug report (ASF Bugzilla 30052) on this issue (JSVC instability). Is JSVC stable? Martin - 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: 2 connectors (http and https) and how make manager manage all apps
From: Jacobo Rodríguez [mailto:[EMAIL PROTECTED] Subject: 2 connectors (http and https) and how make manager manage all apps My problem is that the manager application doesn't detect the http applications, so for restarting, stopping and loading them, I have to restart the whole Tomcat. You need two manager.xml files - one for each Service/Host combination. A given manager app cannot operate on anything outside of its own Host. You should be able to copy the manager.xml from conf/Catalina/localhost into the conf/webappsGIS/geoserver directory, and then acces it via the appropriate geoserver URL. - 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 Embedded - Limitations?
so there are no limitations? so tomcat embedded works the same as regular tomcat? markt wrote: risky57 wrote: Does anyone know the limitations on tomcat embedded? None. 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] -- View this message in context: http://www.nabble.com/Tomcat-Embedded---Limitations--tf3716562.html#a10412857 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]
Re: WAR deployment incomplete (sometimes)
issue occurs on windows, linux and solaris. Manual unpacking of WAR (jar -xf ROOT.war) does not fail; all files are correctly unpacked. Thanks though. (P.S. I work with OP) Johnny Kewl wrote: Try rename it to a zip... and the unzip it or see wot windows does? -- View this message in context: http://www.nabble.com/WAR-deployment-incomplete-%28sometimes%29-tf3716171.html#a10412879 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]
Re: Tomcat Embedded - Limitations?
markt wrote: risky57 wrote: Does anyone know the limitations on tomcat embedded? None. 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] -- View this message in context: http://www.nabble.com/Tomcat-Embedded---Limitations--tf3716562.html#a10412976 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]
Re: Need help getting application to work on Tomcat 5.x
You winning? Huge error hey... enuf to scare the hell out of an accountant... ha ha but its probably just a little thing wrong. Its just telling you the XML is screwed in web.xml. Typically will be something in your web.xml file that looks like this servlet-mapping servlet-nameTheServletName/servlet-name url-pattern/TheServletName/url-pattern /servlet-mapping and yours is making Tomcat very unhappy... - Original Message - From: Allison, Clemon [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, May 08, 2007 7:42 PM Subject: Need help getting application to work on Tomcat 5.x Can someone assist me with getting a war file to start on Tomcat 5.x? I've followed the how-to docs for deploying a war file, but still get an error when attemptin gto start it. A snippet of the error file: May 8, 2007 12:19:58 PM org.apache.catalina.startup.ContextConfig applicationConfig SEVERE: Parse error in application web.xml java.lang.IllegalArgumentException: Invalid url-pattern ConsolidatedInvoiceController in servlet mapping at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.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 org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:263) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:624) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4290) at org.apache.catalina.core.StandardHostDeployer.start(StandardHostDeployer.java:830) at org.apache.catalina.core.StandardHost.start(StandardHost.java:991) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1322) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:530) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:104) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at
Tomcat 5.5 clustering
I was wondering what people use for cluster monitoring and administration. I have my test cluster set up with the farm deployer so deployment/undeployment across the cluster are easy enough. What I'm looking for is something like what the admin and manager appliactions can do but on a cluster basis. Or can these applications be made cluster aware and just haven't noticed. I'm also looking fo rmonitoring applications. This would be something perhaps like Jconsole. But Tomcat and cluster aware.
multiple instance of tomcat
I am running multiple instance of tomcat, now on new instance I want to add some jar files to the lib folder. But for some reason I don't think it is picking up the new library from this instance I doubt this may be because tomcat class path is still pointing to the original instance and loading jar files from that location. If it is so any one knows how to change that. -- View this message in context: http://www.nabble.com/multiple-instance-of-tomcat-tf3722099.html#a10414908 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]
RE: error-page and TC 5.5.23
Is this just a boring question, or has no-one else run into the problem? -Original Message- From: gb1071nx [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 2:22 PM To: Tomcat Users List Subject: RE: error-page and TC 5.5.23 I'm just adding to this: When I remove the mapping for the error-code 500, then I get the standard tc5.5 error page. So my exception-type error-page directive is being ignored. So it does appear that http://issues.apache.org/bugzilla/show_bug.cgi?id=37062#c4 isn't fixed. And won't be fixed? It occurs to me that this should break quite a few working apps though, so surely someone else has reported it? Searching further, I found this: http://issues.apache.org/bugzilla/show_bug.cgi?id=40135 Is it then now a requirement that for JSP's, we *must* use the errorPage directive? Or is there a way to get the more generic web.xml error-page config to work? And can anyone explain what is meant by development mode (from comment in bug 37062 and how to switch it off (to see if that makes my error-page's work again) -Original Message- From: gb1071nx [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 12:39 PM To: Tomcat Users List Subject: error-page and TC 5.5.23 Hello, I'm starting the process of migrating some of our server from 5.0.29 to 5.5.23, and I've found that the 'nice' useful stacktraces with linenumbers are back, and working beautifully in 5.5.23. But I do find the following issues as well: I have the following test page: html body % if (true) { throw new java.sql.SQLException(TEST); } % /body /html And the following web.xml: ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 error-page exception-typejava.sql.SQLException/exception-type location/error/database.jsp/location /error-page error-page error-code500/error-code location/error/500.jsp/location /error-page /web-app And when I call the page throwing the SQLException, I get the error page for the error-code 500. Tomcat5.0 does not behave like that, 5.5 does. Which is the correct behaviour? (or perhaps: is there a way to configure 5.5 so that it acts like 5.0?) I recall this bug report: http://issues.apache.org/bugzilla/show_bug.cgi?id=37062#c4 . Has the bug reported in comment#4 been fixed? Is this the bug I'm experiencing in my test page? Also, I can confirm the following bug, I also experience it: http://issues.apache.org/bugzilla/show_bug.cgi?id=42314 - 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: error-page and TC 5.5.23
Reading the comments on the bug issue you cited, it looks like it's fixed, but with side effects -- namely the exception traps aren't available any more. What do you want anyone to say here? --David gb1071nx wrote: Is this just a boring question, or has no-one else run into the problem? -Original Message- From: gb1071nx [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 2:22 PM To: Tomcat Users List Subject: RE: error-page and TC 5.5.23 I'm just adding to this: When I remove the mapping for the error-code 500, then I get the standard tc5.5 error page. So my exception-type error-page directive is being ignored. So it does appear that http://issues.apache.org/bugzilla/show_bug.cgi?id=37062#c4 isn't fixed. And won't be fixed? It occurs to me that this should break quite a few working apps though, so surely someone else has reported it? Searching further, I found this: http://issues.apache.org/bugzilla/show_bug.cgi?id=40135 Is it then now a requirement that for JSP's, we *must* use the errorPage directive? Or is there a way to get the more generic web.xml error-page config to work? And can anyone explain what is meant by development mode (from comment in bug 37062 and how to switch it off (to see if that makes my error-page's work again) -Original Message- From: gb1071nx [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 12:39 PM To: Tomcat Users List Subject: error-page and TC 5.5.23 Hello, I'm starting the process of migrating some of our server from 5.0.29 to 5.5.23, and I've found that the 'nice' useful stacktraces with linenumbers are back, and working beautifully in 5.5.23. But I do find the following issues as well: I have the following test page: html body % if (true) { throw new java.sql.SQLException(TEST); } % /body /html And the following web.xml: ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 error-page exception-typejava.sql.SQLException/exception-type location/error/database.jsp/location /error-page error-page error-code500/error-code location/error/500.jsp/location /error-page /web-app And when I call the page throwing the SQLException, I get the error page for the error-code 500. Tomcat5.0 does not behave like that, 5.5 does. Which is the correct behaviour? (or perhaps: is there a way to configure 5.5 so that it acts like 5.0?) I recall this bug report: http://issues.apache.org/bugzilla/show_bug.cgi?id=37062#c4 . Has the bug reported in comment#4 been fixed? Is this the bug I'm experiencing in my test page? Also, I can confirm the following bug, I also experience it: http://issues.apache.org/bugzilla/show_bug.cgi?id=42314 - 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: multiple Tomcat on one host with multiple IPs using the same port
Hi Chuck and list, The problem I have now is once I started the first Tomcat I could not start any of others if I use the same port 80xx, the log complains about the port has already been used. On one host I have 4 different IPs 10.2.2.1 10.2.2.2 10.2.2.3 10.2.2.4 Please let me know if it's possible to setup 4 tomcat like below with 4 tomcat java processes 10.2.2.1.8080 *.*0 0 49152 0 LISTEN 10.2.2.2.8080 *.*0 0 49152 0 LISTEN 10.2.2.3.8080 *.*0 0 49152 0 LISTEN 10.2.2.4.8080 *.*0 0 49152 0 LISTEN Thanks for any comments. Regards, Ran -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 09, 2007 9:14 PM To: Tomcat Users List Subject: RE: multiple Tomcat on one host with multiple IPs using the same port From: Ran Li [mailto:[EMAIL PROTECTED] Subject: multiple Tomcat on one host with multiple IPs using the same port I need to setup 4 Tomcat on one host, this host has multiple IPs, is it possible to set them up with multiple IPs using the same listening port 8080? Assuming you want each instance of Tomcat to use a separate IP address, you must configure the desired IP address in each Connector element of each Tomcat. By default, the Connector address is 0.0.0.0, which indicates all IP addresses configured for the box. The Host elements do not need to be changed. Look here for details: http://tomcat.apache.org/tomcat-5.5-doc/config/http.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] - 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: error-page and TC 5.5.23
I was under the impression that the exception traps are part of the spec, somewhere in srv.9.9. I expect someone here to say: yes, it's part of the spec that we broke in TC 5.5, and we'll fix it or : that's not part of the spec, so who cares that it doesn't work or: part of the spec, but who cares. I just want a response from someone with the power to fix it, that it will be fixed (or not). -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2007 10:20 AM To: Tomcat Users List Subject: Re: error-page and TC 5.5.23 Reading the comments on the bug issue you cited, it looks like it's fixed, but with side effects -- namely the exception traps aren't available any more. What do you want anyone to say here? --David gb1071nx wrote: Is this just a boring question, or has no-one else run into the problem? -Original Message- From: gb1071nx [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 2:22 PM To: Tomcat Users List Subject: RE: error-page and TC 5.5.23 I'm just adding to this: When I remove the mapping for the error-code 500, then I get the standard tc5.5 error page. So my exception-type error-page directive is being ignored. So it does appear that http://issues.apache.org/bugzilla/show_bug.cgi?id=37062#c4 isn't fixed. And won't be fixed? It occurs to me that this should break quite a few working apps though, so surely someone else has reported it? Searching further, I found this: http://issues.apache.org/bugzilla/show_bug.cgi?id=40135 Is it then now a requirement that for JSP's, we *must* use the errorPage directive? Or is there a way to get the more generic web.xml error-page config to work? And can anyone explain what is meant by development mode (from comment in bug 37062 and how to switch it off (to see if that makes my error-page's work again) -Original Message- From: gb1071nx [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 12:39 PM To: Tomcat Users List Subject: error-page and TC 5.5.23 Hello, I'm starting the process of migrating some of our server from 5.0.29 to 5.5.23, and I've found that the 'nice' useful stacktraces with linenumbers are back, and working beautifully in 5.5.23. But I do find the following issues as well: I have the following test page: html body % if (true) { throw new java.sql.SQLException(TEST); } % /body /html And the following web.xml: ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 error-page exception-typejava.sql.SQLException/exception-type location/error/database.jsp/location /error-page error-page error-code500/error-code location/error/500.jsp/location /error-page /web-app And when I call the page throwing the SQLException, I get the error page for the error-code 500. Tomcat5.0 does not behave like that, 5.5 does. Which is the correct behaviour? (or perhaps: is there a way to configure 5.5 so that it acts like 5.0?) I recall this bug report: http://issues.apache.org/bugzilla/show_bug.cgi?id=37062#c4 . Has the bug reported in comment#4 been fixed? Is this the bug I'm experiencing in my test page? Also, I can confirm the following bug, I also experience it: http://issues.apache.org/bugzilla/show_bug.cgi?id=42314 - 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: SingleSignOn Valve Not Challenging
I have added an auth constraint auth-constraint role-name*/role-name /auth-constraint I am now challenged but when I login I get an error: HTTP Status 403 - Access to the requested resource has been denied When I look at the LDAP logs I see that I am successfully returning 1 entry, and if I provide invalid credentials I continue to be challenged. I think this would be an issue with tomcat's security setup, but I am not sure where to look or how to debug this as no logs are being generated that would show me what/where the error might be. Thanks, Dan Caldarale, Charles R wrote: From: Daniel Curran [mailto:[EMAIL PROTECTED] Subject: SingleSignOn Valve Not Challenging security-constraint display-nameExample Security Constraint/display-name web-resource-collection web-resource-nameProtected Area/web-resource-name url-pattern/*/url-pattern /web-resource-collection /security-constraint login-config auth-methodBASIC/auth-method realm-nameSingle Sign-on Example/realm-name /login-config You're missing auth-constraint within security-constraint and security-role within web-app. - 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] - 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: multiple Tomcat on one host with multiple IPs using the same port
On 5/10/07, Ran Li [EMAIL PROTECTED] wrote: The problem I have now is once I started the first Tomcat I could not start any of others if I use the same port 80xx, the log complains about the port has already been used. It sounds like you haven't configured each Connector with the desired IP specified. -- 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: multiple Tomcat on one host with multiple IPs using the same port
The shutdown listener binds hardcoded on 127.0.0.1. Make sure they're on a different port for each tomcat instance. Regards, Sebastiaan Hassan Schroeder wrote: On 5/10/07, Ran Li [EMAIL PROTECTED] wrote: The problem I have now is once I started the first Tomcat I could not start any of others if I use the same port 80xx, the log complains about the port has already been used. It sounds like you haven't configured each Connector with the desired IP specified. - 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: error-page and TC 5.5.23
I don't like bothering the dev list with things that I'm not 100% sure are 'real' problems. Same with buzilla; why commit the ultimate affrontery of entering a bugzilla report, just so someone can close it with a snipe and an INVALID. And I just can't believe that after all this time, I'm the first person to 'discover' this bug. That's why I was asking around here first. But, perhaps you have enboldened me. ;) -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2007 10:41 AM To: Tomcat Users List Subject: Re: error-page and TC 5.5.23 I know there are committers reading this list, but you might want to ping this question off the dev list. You could also search for a follow up issue in bugzilla to address the new problem. If one doesn't exist, go ahead and submit one. --David gb1071nx wrote: I was under the impression that the exception traps are part of the spec, somewhere in srv.9.9. I expect someone here to say: yes, it's part of the spec that we broke in TC 5.5, and we'll fix it or : that's not part of the spec, so who cares that it doesn't work or: part of the spec, but who cares. I just want a response from someone with the power to fix it, that it will be fixed (or not). -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2007 10:20 AM To: Tomcat Users List Subject: Re: error-page and TC 5.5.23 Reading the comments on the bug issue you cited, it looks like it's fixed, but with side effects -- namely the exception traps aren't available any more. What do you want anyone to say here? --David gb1071nx wrote: Is this just a boring question, or has no-one else run into the problem? -Original Message- From: gb1071nx [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 2:22 PM To: Tomcat Users List Subject: RE: error-page and TC 5.5.23 I'm just adding to this: When I remove the mapping for the error-code 500, then I get the standard tc5.5 error page. So my exception-type error-page directive is being ignored. So it does appear that http://issues.apache.org/bugzilla/show_bug.cgi?id=37062#c4 isn't fixed. And won't be fixed? It occurs to me that this should break quite a few working apps though, so surely someone else has reported it? Searching further, I found this: http://issues.apache.org/bugzilla/show_bug.cgi?id=40135 Is it then now a requirement that for JSP's, we *must* use the errorPage directive? Or is there a way to get the more generic web.xml error-page config to work? And can anyone explain what is meant by development mode (from comment in bug 37062 and how to switch it off (to see if that makes my error-page's work again) -Original Message- From: gb1071nx [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 12:39 PM To: Tomcat Users List Subject: error-page and TC 5.5.23 Hello, I'm starting the process of migrating some of our server from 5.0.29 to 5.5.23, and I've found that the 'nice' useful stacktraces with linenumbers are back, and working beautifully in 5.5.23. But I do find the following issues as well: I have the following test page: html body % if (true) { throw new java.sql.SQLException(TEST); } % /body /html And the following web.xml: ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 error-page exception-typejava.sql.SQLException/exception-type location/error/database.jsp/location /error-page error-page error-code500/error-code location/error/500.jsp/location /error-page /web-app And when I call the page throwing the SQLException, I get the error page for the error-code 500. Tomcat5.0 does not behave like that, 5.5 does. Which is the correct behaviour? (or perhaps: is there a way to configure 5.5 so that it acts like 5.0?) I recall this bug report: http://issues.apache.org/bugzilla/show_bug.cgi?id=37062#c4 . Has the bug reported in comment#4 been fixed? Is this the bug I'm experiencing in my test page? Also, I can confirm the following bug, I also experience it: http://issues.apache.org/bugzilla/show_bug.cgi?id=42314 --- -- 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:
Mailing List on Tomcat?
Has anyone seen or heard of a mailing list built on Tomcat? More I use this mailing list, more I appreciate the technology, and I think Tomcat is an almost perfect platform for the technology. Sort of thing that can probably be done with nothing more than an email address. Be nice to allow people to participate in your own projects or hobby's just load up your own mailing list. Think theres enormous room for creativity... like the ability to search via email... I want to build something like this as another Tomcat tool... any feedback much appreciated... thanks... Johnny Kewl eMail: JohnNo Spamkewlstuff.co.za -- replace No Spam with @ -- Cell: +027-72- 473-9331 Java Developer (Tomcat Aficionado) Free Tomcat software at http://coolese.100free.com/
RE: SingleSignOn Valve Not Challenging
From: Daniel Curran [mailto:[EMAIL PROTECTED] Subject: Re: SingleSignOn Valve Not Challenging I have added an auth constraint auth-constraint role-name*/role-name /auth-constraint To quote from the servlet spec: 'The special role name * is a shorthand for all role names defined in the deployment descriptor.' You still need to enumerate the valid roles with security-role elements. - 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: SingleSignOn Valve Not Challenging
you're expecting the * (wildcard) to apply to stuff in your realm, it doesn't. I believe you have to define the roles in (security-role) web.xml, and your * applies to the roles defined by security-role Filip Daniel Curran wrote: I have added an auth constraint auth-constraint role-name*/role-name /auth-constraint I am now challenged but when I login I get an error: HTTP Status 403 - Access to the requested resource has been denied When I look at the LDAP logs I see that I am successfully returning 1 entry, and if I provide invalid credentials I continue to be challenged. I think this would be an issue with tomcat's security setup, but I am not sure where to look or how to debug this as no logs are being generated that would show me what/where the error might be. Thanks, Dan Caldarale, Charles R wrote: From: Daniel Curran [mailto:[EMAIL PROTECTED] Subject: SingleSignOn Valve Not Challenging security-constraint display-nameExample Security Constraint/display-name web-resource-collection web-resource-nameProtected Area/web-resource-name url-pattern/*/url-pattern /web-resource-collection /security-constraint login-config auth-methodBASIC/auth-method realm-nameSingle Sign-on Example/realm-name /login-config You're missing auth-constraint within security-constraint and security-role within web-app. - 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] - 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: SingleSignOn Valve Not Challenging
When you mention valid roles. The role has to be in LDAP as well as enumerated in a security-role list? I am not sure where how the connection should be working here. Is there a way to authenticate the user without requiring a specific role? Thanks, Dan Caldarale, Charles R wrote: From: Daniel Curran [mailto:[EMAIL PROTECTED] Subject: Re: SingleSignOn Valve Not Challenging I have added an auth constraint auth-constraint role-name*/role-name /auth-constraint To quote from the servlet spec: 'The special role name * is a shorthand for all role names defined in the deployment descriptor.' You still need to enumerate the valid roles with security-role elements. - 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] - 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: Mailing List on Tomcat?
James is a better platform http://james.apache.org/ Filip Johnny Kewl wrote: Has anyone seen or heard of a mailing list built on Tomcat? More I use this mailing list, more I appreciate the technology, and I think Tomcat is an almost perfect platform for the technology. Sort of thing that can probably be done with nothing more than an email address. Be nice to allow people to participate in your own projects or hobby's just load up your own mailing list. Think theres enormous room for creativity... like the ability to search via email... I want to build something like this as another Tomcat tool... any feedback much appreciated... thanks... Johnny Kewl eMail: JohnNo Spamkewlstuff.co.za -- replace No Spam with @ -- Cell: +027-72- 473-9331 Java Developer (Tomcat Aficionado) Free Tomcat software at http://coolese.100free.com/ No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.6/795 - Release Date: 5/9/2007 3:07 PM - 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: SingleSignOn Valve Not Challenging
From: Daniel Curran [mailto:[EMAIL PROTECTED] Subject: Re: SingleSignOn Valve Not Challenging The role has to be in LDAP as well as enumerated in a security-role list? Yes. The source of the role associated with the principal is completely independent of the authorization checks. - 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: SingleSignOn Valve Not Challenging
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel, Daniel Curran wrote: Is there a way to authenticate the user without requiring a specific role? As has been previously stated, the role-name*/role-name in your auth-constraint deployment descriptor will work; you just have to make sure that you have define all possible roles in the deployment descriptor using security-role elements. Otherwise, Tomcat has no idea which ones should be okay. The '*' is just an alias for any role defined in the deployment descriptor. I don't think you can accept any arbitrary role. It has to be pre-defined (though it does not matter which one it matches). I think that means that you can't administer this particular part of your application through JDAP exclusively. :( - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGQ0zZ9CaO5/Lv0PARAjC2AKCi66x/MA+T6nJOgxwTMri2+u9DCACgvCu8 e81L+OkigQBqo89+3ZXfKys= =Y1ec -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: SingleSignOn Valve Not Challenging
Or, like us, use an old bugged tomcat version that allowed, on * role all authenticated users instead of all user having a role enumerated in web.xml. Those old tomcat version break servlet specs but are handy if you are not too regardant to specifications :) Or use your own realm that add a fake 'authenticated' role to any user it authenticated Or just give a bit of work to your lazy ldap admin. :D Christopher Schultz a écrit : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel, Daniel Curran wrote: Is there a way to authenticate the user without requiring a specific role? As has been previously stated, the role-name*/role-name in your auth-constraint deployment descriptor will work; you just have to make sure that you have define all possible roles in the deployment descriptor using security-role elements. Otherwise, Tomcat has no idea which ones should be okay. The '*' is just an alias for any role defined in the deployment descriptor. I don't think you can accept any arbitrary role. It has to be pre-defined (though it does not matter which one it matches). I think that means that you can't administer this particular part of your application through JDAP exclusively. :( - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGQ0zZ9CaO5/Lv0PARAjC2AKCi66x/MA+T6nJOgxwTMri2+u9DCACgvCu8 e81L+OkigQBqo89+3ZXfKys= =Y1ec -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] - 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: error-page and TC 5.5.23
That's why I suggested searching bugzilla before opening a bug report. I doubt though that it'll get marked off as INVALID if it's in the spec and you can provide a simple war file demonstrating the problem. --David gb1071nx wrote: I don't like bothering the dev list with things that I'm not 100% sure are 'real' problems. Same with buzilla; why commit the ultimate affrontery of entering a bugzilla report, just so someone can close it with a snipe and an INVALID. And I just can't believe that after all this time, I'm the first person to 'discover' this bug. That's why I was asking around here first. But, perhaps you have enboldened me. ;) -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2007 10:41 AM To: Tomcat Users List Subject: Re: error-page and TC 5.5.23 I know there are committers reading this list, but you might want to ping this question off the dev list. You could also search for a follow up issue in bugzilla to address the new problem. If one doesn't exist, go ahead and submit one. --David gb1071nx wrote: I was under the impression that the exception traps are part of the spec, somewhere in srv.9.9. I expect someone here to say: yes, it's part of the spec that we broke in TC 5.5, and we'll fix it or : that's not part of the spec, so who cares that it doesn't work or: part of the spec, but who cares. I just want a response from someone with the power to fix it, that it will be fixed (or not). -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2007 10:20 AM To: Tomcat Users List Subject: Re: error-page and TC 5.5.23 Reading the comments on the bug issue you cited, it looks like it's fixed, but with side effects -- namely the exception traps aren't available any more. What do you want anyone to say here? --David gb1071nx wrote: Is this just a boring question, or has no-one else run into the problem? -Original Message- From: gb1071nx [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 2:22 PM To: Tomcat Users List Subject: RE: error-page and TC 5.5.23 I'm just adding to this: When I remove the mapping for the error-code 500, then I get the standard tc5.5 error page. So my exception-type error-page directive is being ignored. So it does appear that http://issues.apache.org/bugzilla/show_bug.cgi?id=37062#c4 isn't fixed. And won't be fixed? It occurs to me that this should break quite a few working apps though, so surely someone else has reported it? Searching further, I found this: http://issues.apache.org/bugzilla/show_bug.cgi?id=40135 Is it then now a requirement that for JSP's, we *must* use the errorPage directive? Or is there a way to get the more generic web.xml error-page config to work? And can anyone explain what is meant by development mode (from comment in bug 37062 and how to switch it off (to see if that makes my error-page's work again) -Original Message- From: gb1071nx [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 12:39 PM To: Tomcat Users List Subject: error-page and TC 5.5.23 Hello, I'm starting the process of migrating some of our server from 5.0.29 to 5.5.23, and I've found that the 'nice' useful stacktraces with linenumbers are back, and working beautifully in 5.5.23. But I do find the following issues as well: I have the following test page: html body % if (true) { throw new java.sql.SQLException(TEST); } % /body /html And the following web.xml: ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 error-page exception-typejava.sql.SQLException/exception-type location/error/database.jsp/location /error-page error-page error-code500/error-code location/error/500.jsp/location /error-page /web-app And when I call the page throwing the SQLException, I get the error page for the error-code 500. Tomcat5.0 does not behave like that, 5.5 does. Which is the correct behaviour? (or perhaps: is there a way to configure 5.5 so that it acts like 5.0?) I recall this bug report: http://issues.apache.org/bugzilla/show_bug.cgi?id=37062#c4 . Has the bug reported in comment#4 been fixed? Is this the bug I'm experiencing in my test page? Also, I can confirm the following bug, I also experience it: http://issues.apache.org/bugzilla/show_bug.cgi?id=42314 --- --
Tomcat 6.0.9 not recognizing deletion of Applet class
Hi, I have a JApplet class in my $CATALINA_HOME/webapps/mywebapp directory called applet.NVACApplet. It is part of the applet package. I load this applet through NVAC.jsp. I was making some changes to the class and recompiled. However, after reloading the webapp and making numerous changes, I began to notice the applet, when I navigated to it at http://localhost:port/mywebapp/NVAC.jsp was not changing at all. At first, I figured something was wrong with my Java code. However, that compiled fine and I was getting no errors at runtime, and the applet was apparently loading. Finding this highly unusual, I deleted the entire applet package from $CATALINA_HOME/webapps/mywebapp, as well as the applet package from WEB-INF/classes. Then, I navigated to $CATALINA_HOME and did a find command, searching for NVAC*, and did not find any NVACApplet class floating around anywhere. However, when I navigate to the JSP page, it STILL loads the Applet. If I change the name of the applet it is loading I obviously get a NoClassDefFoundError, which apparently means it is somehow finding applet.NVACApplet, which makes absolutely no sense to me. I've shutdown Tomcat numerous times and rebooted. I've tried everything I can think of, but I'm completely clueless. Where on earth could it be finding this applet class? I've deleted every instance of applet.NVACApplet I could find from my entire computer. Is it storing the class in some directory somewhere? Here is the JSP page code, if it helps: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html titleNVAC Polling Controller/title body applet code=applet.NVACApplet width=200 height=100 Your browser does not support the applet tag. /applet % //Service.init(); % % //out.print(Service.showString()); % /body /html 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]
Re: Tomcat MBean JMX Notifications
Any ideas? -- View this message in context: http://www.nabble.com/Tomcat-MBean-JMX-Notifications-tf3718134.html#a10423193 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]
url-pattern troubles...
Ok, this should have been simple. But Tomcat doesn't seem to be doing what I thought it would- I have a bunch of jsp files under a directory called protected. I want a filter to be invoked when these files are accessed. I also have a directory called includes under protected. I DON'T want the filter to be invoked when files under includes are accessed. I cannot change this directory structure. I used the pattern /protected/*.jsp for the filter in question and hoped that Tomcat will realize that I want the filter invoked only for those files under protected. However, Tomcat doesn't like the pattern (I get a stacktrace- Invalid url-pattern...). Tomcat doesn't complain about /*.jsp or /protected/* (except it invokes the filter for all the files under /protected/includes), but it complains about /protected/*.jsp. So, whats the pattern to use? Thanks, Av. Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA. http://answers.yahoo.com/dir/?link=listsid=396545367 - 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: Exception processing Global JNDI Resources - on FC6Tomcat5.5.17
That class is in naming-factory-dbcp.jar which is in Tomcat's common/lib directory - at least, that's where it is if you install the official Tomcat release from apache.org. That JAR seems to be missing from the classloader path displayed in your error message, so either you deleted the required JAR or the RPM you installed is fubar (which is generally the case, from what I hear). -- Len On 5/10/07, Tim Alberts [EMAIL PROTECTED] wrote: I'm running FC6 with Tomcat 5.5.17 (standard rpm packages from the FC6 distribution). The main problem I'm having is getting my database connection pool setup.I'm getting a severe error that seems to be the source, but not sure what the easy fix is. Obviously the java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory means Tomcat can't find a class it needs, but as I'm running all rpms from FC6 I assumed everything would be 'plug and play'. Does anyone have some suggestions for fixing this quick? Thank you in advance. Below is the server.xml... ?xml version=1.0 encoding=UTF-8? Server Listener className=org.apache.catalina.core.AprLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/ Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=jdbc/MSIWebDB type=javax.sql.DataSource maxWait=5000 password=boo url=jdbc:mysql://msisql.inside.msi:3306/msi_intranet maxActive=4 driverClassName=com.mysql.jdbc.Driver username=msi_intranet maxIdle=2/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml/ /GlobalNamingResources Service name=Catalina Connector port=8080 redirectPort=8443 maxSpareThreads=75 maxThreads=150 connectionTimeout=2 minSpareThreads=25 /Connector Connector port=8009 redirectPort=8443 protocol=AJP/1.3 /Connector Engine defaultHost=localhost name=Catalina Realm className=org.apache.catalina.realm.UserDatabaseRealm/ Host appBase=webapps name=localhost /Host /Engine /Service /Server Below are the server logs from startup... 10-May-07 4:06:51 PM org.apache.catalina.core.AprLifecycleListenerlifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/gcj-4.1.1 10-May-07 4:06:51 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 10-May-07 4:06:51 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 837 ms 10-May-07 4:06:51 PM org.apache.catalina.core.NamingContextListeneraddResource WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory instance 10-May-07 4:06:51 PM org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans SEVERE: Exception processing Global JNDI Resources javax.naming.NamingException: Could not create resource factory instance at org.apache.naming.factory.ResourceFactory.getObjectInstance( naming-factory-5.5.17.jar.so) at javax.naming.spi.NamingManager.getObjectInstance(libgcj.so.7rh) at org.apache.naming.NamingContext.lookup(naming-factory-5.5.17.jar.so) at org.apache.naming.NamingContext.lookup(naming-factory-5.5.17.jar.so) at org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal( naming-resources-5.5.17.jar.so) at org.apache.naming.NamingContextBindingsEnumeration.next( naming-resources-5.5.17.jar.so) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans( catalina-5.5.17.jar.so7ygbw0.so) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans( catalina-5.5.17.jar.so7ygbw0.so) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans( catalina-5.5.17.jar.so7ygbw0.so) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent (catalina-5.5.17.jar.so7ygbw0.so) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent( catalina-5.5.17.jar.so7ygbw0.so) at org.apache.catalina.core.StandardServer.start( catalina-5.5.17.jar.so7ygbw0.so) at org.apache.catalina.startup.Catalina.start( catalina-5.5.17.jar.so7ygbw0.so) at java.lang.reflect.Method.invoke(libgcj.so.7rh) at org.apache.catalina.startup.Bootstrap.start(bootstrap.jar.so) at org.apache.catalina.startup.Bootstrap.main(bootstrap.jar.so) Caused by: java.lang.ClassNotFoundException:
Re: url-pattern troubles...
On 5/10/07, webzo [EMAIL PROTECTED] wrote: Ok, this should have been simple. But Tomcat doesn't seem to be doing what I thought it would- I have a bunch of jsp files under a directory called protected. I want a filter to be invoked when these files are accessed. I also have a directory called includes under protected. I DON'T want the filter to be invoked when files under includes are accessed. I cannot change this directory structure. I used the pattern /protected/*.jsp for the filter in question BZZZT. See the Servlet Spec -- SRV.11.2 Your pattern is invalid (and so is /*.jsp -- if that actually worked, it's a bug.) The url-pattern isn't a wide-open regexp, so I think you'll have to change your Filter to ignore the includes subdirectory, unless you can differentiate based on the request type (client request, forward, include -- see SRV.6.2.5). 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: banner reserved URL ??
I might be using the wrong terms rather. mycocoonwebapp is the cocoon context. The cocoon servlet matches /cocoonwebapp/* The weird thing is that any URL is caught by cocoon fine but URLs ending with bannerSo http://www.domain.com/mycocoonapp/index.html : cocoon OK http://www.domain.com/mycocoonapp/anything : cocoon OK http://www.domain.com/mycocoonapp/anything/anything: cocoon OK http://www.domain.com/mycocoonapp/banner : TOMCAT NOT OK http://www.domain.com/mycocoonapp/anything/banner : TOMCAT NOT OK I have declared nothing special regarding a banner URL in my webapp so I guessed it came from Tomcat. Thanks for your help. I'll contact the sys admin as my app is hosted on a shared server (and I have no access to tomcat conf), see if he did anything special Maybe it's a policy of the provider regarding advertisement or some stuff like that ? --- Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jerome, Jerome Benezech wrote: Is the context 'banner' reserved in tomcat 5.5.9 ? I have a cocoon app running under tomcat and the URL http://www.domain.com/mycocoonapp/banner is not caught by the cocoon servlet but by tomcat instead Unless you have a nonstandard configuration, mycocoonapp is the context in this case, not banner. Could that be the problem? I believe you want all of your Cocoon pipeline mappings to start with /banner, not /mycocoonapp, since Cocoon removes the context name from the URL before it matches anything. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGQw1B9CaO5/Lv0PARAkoWAKC0cUvlKqWbHaHcCSnUObr+Lr47XQCeOkeH pEFKibdPxC9SJnGUKUIn7jo= =9r/S -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] Jerome Benezech [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: tomcat starts then stops after some seconds...
i was using tomcat two days ago and now i cannot...i guess i uninstall then reinstall...tomcat starts then stops after some seconds...tomcat 5 i have used by i tried 6 too to get rid of the problem...help me...
Loading external url as local
Hello, In one of my webpage, one frame is loading an external url, using iframe tag. The loading process works fine, but I need to access component in this frame, to launch some actions on them. When I tryed that I get a Permission denied error, because the iframe is loaded from an external domain tahn my application. I tried to used apache server configured as a reverse proxy, to load the iframe in a way that tomcat thinks it's loaded from local domain. What i did is in my jsp page, i have iframe src=http://localhost/externallink; in my apache server conf: ProxyPass /externallink http://www.externaldomain/externalpage.asp ProxyPassReverse /externallin khttp://www.externaldomain/externalpage.asp The page is loaded fine in the frame, but i still have the permission denied error. So it seems that tomcat still sees that it's coming from external domain. Did i forgot some configuration? Does someone know how to solve this issue ? Thanks, Mélanie _ Découvrez le Blog heroic Fantaisy d'Eragon! http://eragon-heroic-fantasy.spaces.live.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: TomCat users' list, forum or documentation ?
Hassan, On May 10, 2007, at 12:59 PM, Hassan Schroeder wrote: If this directory that's in the ZIP file is the webapp itself, you should be able to just copy it into the webapps directory and run. Though you may want to rename it as suggested to something simple like 'jforum' because that's the path you'll access it by... Thanks for the reply. I'm still not sure what JForum installation instruction register the JForum application within your Servlet means so I just ignored it. I downloaded a fresh copy of TomCat and put it on another server since I didn't know how to set up JForum to use the same TomCat as my MySQL-based Confluence and JIRA installations. [As a matter of fact, I'm still looking for info that will let me understand the functional architecture in TomCat and Apache+TomCat installations ... who does the serving of what and how do they collaborate ? That's getting off the current topic] After a few stumbles (due to missing files in the JForum installation archive I'm almost there. I've gotten to the point where I'm getting some org.hsqldb.jdbcDriver permission error that I'll bring back to the JForum forum. If you're new to all this, you'll definitely be skipping the merging idea in #2 :-) This is definitely different from the web and applications I installed and managed starting back in '95. I have a lot to unlearn before I can get the correct mindset to understand the current software suites. It would probably be easier if I was coming at it without the prior experience. I really appreciate the hints and suggestions. They nudged me far enough to get started. Thanks, -Sven - 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 starts and immediately stops...why????
tomcat starts and immediately(5 secs) stops...i uninstall and reinstall it...and update it to tomcat 6...problem continues and no error message is displayed only standart page not displayed is seemed...
Re: tomcat starts and immediately stops...why????
baran topal wrote: tomcat starts and immediately(5 secs) stops...i uninstall and reinstall it...and update it to tomcat 6...problem continues and no error message is displayed only standart page not displayed is seemed... Ahh.. but you should consult the all knowing logs for details. See the log directory in your tomcat install directory You should see one named catalina.out which usually consumes output normally headed for standard out or standard error. I'm guessing a port conflict. --David - 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.0.9 not recognizing deletion of Applet class
On 5/10/07, Daniel Gresh [EMAIL PROTECTED] wrote: Here is the JSP page code, if it helps: The problem may be because you're using applet tag within XHTML strict. The applet tag is not supported in XHTML 1.1 (and was depricated in HTML 4.01), you are encouraged to upgrade to the object tag or to an even better jsp:plugin http://java.sun.com/products/jsp/syntax/2.0/syntaxref2023.html#1004158 tag. Although, upgrading may or may not solve your particular problem, at least it offers the satisfaction that the code is valid, so that the browser can process it correctly. Also check if the applet is being cached somewhere, try deleting the browsers cache. That may help in solving the problem. I don't think this problem has anything to do with Tomcat, for further help this forum http://forum.java.sun.com/forum.jspa?forumID=421 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html titleNVAC Polling Controller/title body applet code=applet.NVACApplet width=200 height=100 Your browser does not support the applet tag. /applet % //Service.init(); % % //out.print(Service.showString()); % /body /html Thanks, Dan Regards Rashmi - 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: banner reserved URL ??
Cocoon typically tries to handle all requests so chances are it's cocoon's fault. Check your sitemap.xmap files for where it handles the pattern **/banner. Also the cocoon list would be much better at helping you figure this out. --David Jerome Benezech wrote: I might be using the wrong terms rather. mycocoonwebapp is the cocoon context. The cocoon servlet matches /cocoonwebapp/* The weird thing is that any URL is caught by cocoon fine but URLs ending with bannerSo http://www.domain.com/mycocoonapp/index.html : cocoon OK http://www.domain.com/mycocoonapp/anything : cocoon OK http://www.domain.com/mycocoonapp/anything/anything: cocoon OK http://www.domain.com/mycocoonapp/banner : TOMCAT NOT OK http://www.domain.com/mycocoonapp/anything/banner : TOMCAT NOT OK I have declared nothing special regarding a banner URL in my webapp so I guessed it came from Tomcat. Thanks for your help. I'll contact the sys admin as my app is hosted on a shared server (and I have no access to tomcat conf), see if he did anything special Maybe it's a policy of the provider regarding advertisement or some stuff like that ? --- Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jerome, Jerome Benezech wrote: Is the context 'banner' reserved in tomcat 5.5.9 ? I have a cocoon app running under tomcat and the URL http://www.domain.com/mycocoonapp/banner is not caught by the cocoon servlet but by tomcat instead Unless you have a nonstandard configuration, mycocoonapp is the context in this case, not banner. Could that be the problem? I believe you want all of your Cocoon pipeline mappings to start with /banner, not /mycocoonapp, since Cocoon removes the context name from the URL before it matches anything. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGQw1B9CaO5/Lv0PARAkoWAKC0cUvlKqWbHaHcCSnUObr+Lr47XQCeOkeH pEFKibdPxC9SJnGUKUIn7jo= =9r/S -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] Jerome Benezech [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: tomcat starts and immediately stops...why????
i use 2100 in my senior project presentation as port...8080 for oracle XE...no problem occured for 5 months but now...i can't...and no error messages i have...he starts and then stops..in fact the starting bar fills upto half then diseappears...thank god while my senior project he didn't fail me...:) but for user manual for my program i need him revive...i know catalina but which file exactly i must control for log? 2007/5/11, David Smith [EMAIL PROTECTED]: baran topal wrote: tomcat starts and immediately(5 secs) stops...i uninstall and reinstall it...and update it to tomcat 6...problem continues and no error message is displayed only standart page not displayed is seemed... Ahh.. but you should consult the all knowing logs for details. See the log directory in your tomcat install directory You should see one named catalina.out which usually consumes output normally headed for standard out or standard error. I'm guessing a port conflict. --David - 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 starts and immediately stops...why????
Ok... let's start this from the top. What OS is this being run on and how are you starting it? That'll clue me in on the startup script method used which should have some influence. --David baran topal wrote: i use 2100 in my senior project presentation as port...8080 for oracle XE...no problem occured for 5 months but now...i can't...and no error messages i have...he starts and then stops..in fact the starting bar fills upto half then diseappears...thank god while my senior project he didn't fail me...:) but for user manual for my program i need him revive...i know catalina but which file exactly i must control for log? 2007/5/11, David Smith [EMAIL PROTECTED]: baran topal wrote: tomcat starts and immediately(5 secs) stops...i uninstall and reinstall it...and update it to tomcat 6...problem continues and no error message is displayed only standart page not displayed is seemed... Ahh.. but you should consult the all knowing logs for details. See the log directory in your tomcat install directory You should see one named catalina.out which usually consumes output normally headed for standard out or standard error. I'm guessing a port conflict. --David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Smith Network Operations Supervisor Department of Entomology Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: (607) 255-9571 Fax: (607) 255-0940 - 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: Exception processing Global JNDI Resources - on FC6Tomcat5.5.17
On 5/10/07, Tim Alberts [EMAIL PROTECTED] wrote: I'm running FC6 with Tomcat 5.5.17 (standard rpm packages from the FC6 distribution). The default rpm packages seem to have some problem, they seem to depend on each other and often stall Linux. It's best to install Linux Fedora minus the RPMs , and get whatever software you need straight from the source. - 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 starts and immediately stops...why????
well i am using windows xp and i start regularly:)) adn well my team mate says he has some problem he says command prompt he uses services.msc and open from sevies i try the same way but apache fails again after 5 seconds... 2007/5/11, David Smith [EMAIL PROTECTED]: Ok... let's start this from the top. What OS is this being run on and how are you starting it? That'll clue me in on the startup script method used which should have some influence. --David baran topal wrote: i use 2100 in my senior project presentation as port...8080 for oracle XE...no problem occured for 5 months but now...i can't...and no error messages i have...he starts and then stops..in fact the starting bar fills upto half then diseappears...thank god while my senior project he didn't fail me...:) but for user manual for my program i need him revive...i know catalina but which file exactly i must control for log? 2007/5/11, David Smith [EMAIL PROTECTED]: baran topal wrote: tomcat starts and immediately(5 secs) stops...i uninstall and reinstall it...and update it to tomcat 6...problem continues and no error message is displayed only standart page not displayed is seemed... Ahh.. but you should consult the all knowing logs for details. See the log directory in your tomcat install directory You should see one named catalina.out which usually consumes output normally headed for standard out or standard error. I'm guessing a port conflict. --David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Smith Network Operations Supervisor Department of Entomology Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: (607) 255-9571 Fax: (607) 255-0940 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple Tomcat 6 instances with catalina.base
What can I do to get multiple Tomcat instances running under Tomcat 6? I've installed Tomcat, set CATALINA_HOME environment variable, and in my startup script I say the following: startup -Dcatalina.base=pathToBaseDir Right now the baseDir that I point to in the startup script is completely empty. I was hoping that Tomcat would populate it with some defaults, but I guess not. What do I need to copy over - the following, or any more/less? - conf - logs - temp - webapp - work Also, when I execute the startup script as mentioned before, the logs in CATALINA_HOME are populated and the server starts up successfully, regardless of the fact that I told it to use another catalina.base. Shouldn't it be giving an error rather than silently reverting to the CATALINA_HOME files? -- View this message in context: http://www.nabble.com/Multiple-Tomcat-6-instances-with-catalina.base-tf3725226.html#a10425155 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]
Re: tomcat starts and immediately stops...why????
not some... same... soorry for english here 6 a.m. i have to sleep now:) 2007/5/11, baran topal [EMAIL PROTECTED]: well i am using windows xp and i start regularly:)) adn well my team mate says he has some problem he says command prompt he uses services.msc and open from sevies i try the same way but apache fails again after 5 seconds... 2007/5/11, David Smith [EMAIL PROTECTED]: Ok... let's start this from the top. What OS is this being run on and how are you starting it? That'll clue me in on the startup script method used which should have some influence. --David baran topal wrote: i use 2100 in my senior project presentation as port...8080 for oracle XE...no problem occured for 5 months but now...i can't...and no error messages i have...he starts and then stops..in fact the starting bar fills upto half then diseappears...thank god while my senior project he didn't fail me...:) but for user manual for my program i need him revive...i know catalina but which file exactly i must control for log? 2007/5/11, David Smith [EMAIL PROTECTED]: baran topal wrote: tomcat starts and immediately(5 secs) stops...i uninstall and reinstall it...and update it to tomcat 6...problem continues and no error message is displayed only standart page not displayed is seemed... Ahh.. but you should consult the all knowing logs for details. See the log directory in your tomcat install directory You should see one named catalina.out which usually consumes output normally headed for standard out or standard error. I'm guessing a port conflict. --David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Smith Network Operations Supervisor Department of Entomology Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: (607) 255-9571 Fax: (607) 255-0940 - 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 starts and immediately stops...why????
hey if u use msn...add me [EMAIL PROTECTED] but don't mail to this address ibarelt save it...a pal from department hacked it...he was jealous of me i guess...:( 2007/5/11, baran topal [EMAIL PROTECTED]: not some... same... soorry for english here 6 a.m. i have to sleep now:) 2007/5/11, baran topal [EMAIL PROTECTED]: well i am using windows xp and i start regularly:)) adn well my team mate says he has some problem he says command prompt he uses services.msc and open from sevies i try the same way but apache fails again after 5 seconds... 2007/5/11, David Smith [EMAIL PROTECTED]: Ok... let's start this from the top. What OS is this being run on and how are you starting it? That'll clue me in on the startup script method used which should have some influence. --David baran topal wrote: i use 2100 in my senior project presentation as port...8080 for oracle XE...no problem occured for 5 months but now...i can't...and no error messages i have...he starts and then stops..in fact the starting bar fills upto half then diseappears...thank god while my senior project he didn't fail me...:) but for user manual for my program i need him revive...i know catalina but which file exactly i must control for log? 2007/5/11, David Smith [EMAIL PROTECTED]: baran topal wrote: tomcat starts and immediately(5 secs) stops...i uninstall and reinstall it...and update it to tomcat 6...problem continues and no error message is displayed only standart page not displayed is seemed... Ahh.. but you should consult the all knowing logs for details. See the log directory in your tomcat install directory You should see one named catalina.out which usually consumes output normally headed for standard out or standard error. I'm guessing a port conflict. --David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Smith Network Operations Supervisor Department of Entomology Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: (607) 255-9571 Fax: (607) 255-0940 - 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 starts and immediately stops...why????
i install it from scratch...and i will copy my webapps and i will copy common/lib of mine to the original one..i must i have jars i have developped...i am now sending the logs as a zipped file... 2007/5/11, baran topal [EMAIL PROTECTED]: hey if u use msn...add me [EMAIL PROTECTED] but don't mail to this address ibarelt save it...a pal from department hacked it...he was jealous of me i guess...:( 2007/5/11, baran topal [EMAIL PROTECTED]: not some... same... soorry for english here 6 a.m. i have to sleep now:) 2007/5/11, baran topal [EMAIL PROTECTED]: well i am using windows xp and i start regularly:)) adn well my team mate says he has some problem he says command prompt he uses services.msc and open from sevies i try the same way but apache fails again after 5 seconds... 2007/5/11, David Smith [EMAIL PROTECTED]: Ok... let's start this from the top. What OS is this being run on and how are you starting it? That'll clue me in on the startup script method used which should have some influence. --David baran topal wrote: i use 2100 in my senior project presentation as port...8080 for oracle XE...no problem occured for 5 months but now...i can't...and no error messages i have...he starts and then stops..in fact the starting bar fills upto half then diseappears...thank god while my senior project he didn't fail me...:) but for user manual for my program i need him revive...i know catalina but which file exactly i must control for log? 2007/5/11, David Smith [EMAIL PROTECTED]: baran topal wrote: tomcat starts and immediately(5 secs) stops...i uninstall and reinstall it...and update it to tomcat 6...problem continues and no error message is displayed only standart page not displayed is seemed... Ahh.. but you should consult the all knowing logs for details. See the log directory in your tomcat install directory You should see one named catalina.out which usually consumes output normally headed for standard out or standard error. I'm guessing a port conflict. --David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Smith Network Operations Supervisor Department of Entomology Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: (607) 255-9571 Fax: (607) 255-0940 - 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: Multiple Tomcat 6 instances with catalina.base
From: lightbulb432 [mailto:[EMAIL PROTECTED] Subject: Multiple Tomcat 6 instances with catalina.base in my startup script I say the following: startup -Dcatalina.base=pathToBaseDir Despite what RUNNING.txt says, I don't think that works. You actually need to set the CATALINA_BASE environment variable prior to invoking the startup.bat script. Right now the baseDir that I point to in the startup script is completely empty. I was hoping that Tomcat would populate it with some defaults, but I guess not. Tomcat won't - that's up to you. However, logs, temp, and work should all initially be empty, so all you really need to set up are conf and webapps. With the simplified classloading hierarchy of Tomcat 6, there's not much that's documented as shared anymore; according to RUNNING.txt, it's just bin, not even the lib directory. However, examining catalina.properties shows that lib is actually referenced via CATALINA_HOME, not CATALINA_BASE, so that would seem to be shared across multiple instances and need not be copied. - 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: [fedora-java] Exception processing Global JNDI Resources - on FC6Tomcat5.5.17
On Thu, 2007-05-10 at 17:36 -0600, Aaron Luchko wrote: On Thu, 2007-05-10 at 16:23 -0700, Tim Alberts wrote: java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory means Tomcat can't find a class it needs, but as I'm running all rpms from FC6 I assumed everything would be 'plug and play'. Does anyone have some suggestions for fixing this quick? This is because there were some jars missing from the corresponding version of the jpackage rpm https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=238192 Until the package is updated the workaround I'm using is to manually add naming-factory-dbcp.jar to /var/lib/tomcat5/common/lib/ The real issue is that upstream tomcat5 build creates the naming-factory-dbcp.jar and others by extracting classes from commons-dbcp, collections, etc. and sticking them under the org.apache.tomcat.x package (I personally dont like it but some claim they prefer this since they can include newer/older j-c-* jars in their webapps and prevent classloading issues) . Until recently, JPackage has been sym-linking to j-c-dbcp.jar etc. produced by the relevant jakarta-commons-* rpm directly without changing the packages. It is only recently that these jakarta-commons-* packages have been modified to produce a -tomcat5 package that have these renamed packages which tomcat5 sym-links to. For the moment, a workaround I would go with is to add a Resource tag in your /etc/tomcat5/server.xml file nexted under the GlobalNamingResources tag with factory=org.apache.commons.dbcp.BasicDataSourceFactory attribute or doing the same thing in your web-app's context.xml nested inside the the Context tag... You can refer to http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html for reference. However, I do think there are several benefits to going to 5.5.23 for tomcat5, I just havent evaluated all the changes necessary in Fedora 6/7. I will update bz# 238192 when I am ready. Vivek signature.asc Description: This is a digitally signed message part
Context Descriptors
The following regarding Context Descriptors is in the documentation for Tomcat 6. I'm wondering why the included contexts such as /examples, /docs, /host-manager, and ROOT (/) don't have Context Descriptors generated as described below. The locations for Context Descriptors are; $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml $CATALINA_HOME/webapps/[webappname]/META-INF/context.xml If a Context Descriptor is not provided for a Context, Tomcat automatically creates one and places it in (1) with a filename of [webappname].xml although if manually created, the filename need not match the web application name as Tomcat is concerned only with the Context configuration contained within the Context Descriptor file(s). The only one that I see one for is /manager, which leads to my next question. Why, under /manager, do I see the following in /manager/manager.xml: Context docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false !-- Link to the user database we will get roles from -- ResourceLink name=users global=UserDatabase type=org.apache.catalina.UserDatabase/ /Context And the following in /manager/META-INF/context.xml? Why the presence of two context descriptors? Context antiResourceLocking=false privileged=true / And finally, why do I see the docBase as ${catalina.home}/server/webapps/manager in the previous manager.xml, when the default Tomcat 6 installation doesn't even have a server directory? What confuses me is how it still works even when that directory isn't there or created. -- View this message in context: http://www.nabble.com/Context-Descriptors-tf3725427.html#a10425763 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]
Re: Tomcat Embedded - Limitations?
risky57 wrote: so there are no limitations? Correct so tomcat embedded works the same as regular tomcat? Regular Tomcat *is* embedded Tomcat (with a wrapper around it). 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]