Issue when using tomcat JDBC Connection Pool with a shared resource
Hi, I would like to use the Tomcat JDBC Connection Pool with a shared resource so I've read : http://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html#Standalone and http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Resource_Links and tried to do the same but when I try to access to my servlet I get the following message: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1452) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044) at testPackage.DBTest.doGet(DBTest.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:620) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:612) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:524) at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:493) at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307) at java.sql.DriverManager.getDriver(DriverManager.java:262) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1437) ... 25 more Environment : Win 7 Java - jdk 1.7.0.65 Tomcat - 7.0.57 MySQL - 5.1.18 Tomcat service properties: -Dcatalina.home=Y:\Programs\Tomcat\Tomcat7 -Dcatalina.base=Y:\00-Prod\data\catalina -Djava.endorsed.dirs=Y:\Programs\Tomcat\Tomcat7\endorsed -Djava.io.tmpdir=Y:\Programs\Tomcat\Tomcat7\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=Y:\Programs\Tomcat\Tomcat7\conf\logging.properties -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -XX:MaxPermSize=512m CATALINA_HOME/lib contents ... tomcat-dbcp.jar tomcat-jdbc.jar ... CATALINA_BASE/lib contents: mysql-connector-java-5.1.18-bin.jar CATALINA_BASE/conf/server.xml ... ... GlobalNamingResources ... -- Resource name=sharedDataSource global=sharedDataSource auth=Container type=javax.sql.DataSource factory=org.apache.tomcat.jdbc.pool.DataSourceFactory driverClassName=com.mysql.jdbc.Driver
Re: Setting JVM Parameters in Windows Service for Tomcat7
Hi Matthias, Mikolaj is right, you can set the tomcat and java properties by running tomcatw.exe (%CATALINA_HOME%\bin) Hope this helps Jean-Louis -Matthias Müller mm4...@googlemail.com a écrit : - A : users@tomcat.apache.org De : Matthias Müller mm4...@googlemail.com Date : 20/09/2012 11:57 Objet : Setting JVM Parameters in Windows Service for Tomcat7 Hi, I want to set JVM Parameters in a Windows Service (Windows7) for Tomcat7 (7.0.30) The documentation tells, that this could be done by calling tomcat7 //US//Tomcat7 ... This method works, but it is not practicable for our production environment, because these settings are stored in the registry. Is it possible to specify these parameters in setenv.bat or somewhere else? When I start tomcat with catalina.bat run the setenv.bat is read. But when I start tomcat as a windows service the setenv.bat is ignored. Matthias - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Running Tomcat on different architecture machine but keeping the same catalina_base
Hi everybody, by now, my tomcat (7.026) is running on a windows xp 32bits and separate locations for catalina_home and catalina_base are used. I would like to change mi machine: 64b instead of a 32b one So I've re-installed a new tomcat 7.0.26 (the same installer - 32b/64b) on another machine (windows 7) and i would like to re-use my previous catalina_base. Before running tomcat (64b), I've cleaned the work directory in catalina_base; Result: It doesn't work ! - I can't even access to the manager application Symptom: the request is looping until time-out is reached Any ideas on where should I look at ? Regards Jean-Louis Matéo
Re: Running Tomcat on different architecture machine but keeping the same catalina_base
The problem was caused by a webapp (xwiki) - now, i just have to find out why this webapp doesn't work correctly. Without this webapp, it's ok Jean-Louis Matéo -jean-louis.ma...@bull.net a écrit : - A : users@tomcat.apache.org De : jean-louis.ma...@bull.net Date : 10/09/2012 11:13 Objet : Running Tomcat on different architecture machine but keeping the same catalina_base Hi everybody, by now, my tomcat (7.026) is running on a windows xp 32bits and separate locations for catalina_home and catalina_base are used. I would like to change mi machine: 64b instead of a 32b one So I've re-installed a new tomcat 7.0.26 (the same installer - 32b/64b) on another machine (windows 7) and i would like to re-use my previous catalina_base. Before running tomcat (64b), I've cleaned the work directory in catalina_base; Result: It doesn't work ! - I can't even access to the manager application Symptom: the request is looping until time-out is reached Any ideas on where should I look at ? Regards Jean-Louis Matéo
Re: Running Tomcat on different architecture machine but keeping the same catalina_base
Sorry, the problem was not related to Tomcat 32b or 64b - that's what I meant so this post is over thanks Jean-Louis Matéo -André Warnier a...@ice-sa.com a écrit : - A : Tomcat Users List users@tomcat.apache.org De : André Warnier a...@ice-sa.com Date : 10/09/2012 16:41 Objet : Re: Running Tomcat on different architecture machine but keeping the same catalina_base jean-louis.ma...@bull.net wrote: The problem was caused by a webapp (xwiki) - now, i just have to find out why this webapp doesn't work correctly. Without this webapp, it's ok Thanks for following up on the list. It saves people time, to follow-up on other posts. Jean-Louis Matéo -jean-louis.ma...@bull.net a écrit : - A : users@tomcat.apache.org De : jean-louis.ma...@bull.net Date : 10/09/2012 11:13 Objet : Running Tomcat on different architecture machine but keeping the same catalina_base Hi everybody, by now, my tomcat (7.026) is running on a windows xp 32bits and separate locations for catalina_home and catalina_base are used. I would like to change mi machine: 64b instead of a 32b one So I've re-installed a new tomcat 7.0.26 (the same installer - 32b/64b) on another machine (windows 7) and i would like to re-use my previous catalina_base. Before running tomcat (64b), I've cleaned the work directory in catalina_base; Result: It doesn't work ! - I can't even access to the manager application Symptom: the request is looping until time-out is reached Any ideas on where should I look at ? Regards Jean-Louis Matéo - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Running tomcat on windows - getting a threaddump - Unable to open the Event Mutex
Hi everybody, so far, to get a threaddump from tomcat I used to run : # jstack -l tomcat-pid threaddump.txt now, I would like to use the tomcat systray but when I click threaddump the following message appears: The specified file cannot be found Unable to open the Event Mutex What's wrong ? Regards Jean-Louis
Tomcat tuning
Tomcat : 5.0.28 Java : 1.4.2 SR8 Apache : 2.2.4 Mod_jk : 1.2.25 Hi everybody, is there any doc. about the tuning of tomcat ? Best Regards Jean-Louis Matéo - 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éf. : RE: Tomcat tuning
I just want to know which are the server.xml options I have to cleverly adjust Thank you _ |-+ | | Caldarale, | | | Charles R | | | Chuck.Caldarale@| | | unisys.com | | || | | 16/04/2008 16:49 | | | Veuillez répondre| | | à Tomcat Users | | | List| | || |-+ --| | | |Pour : Tomcat Users List users@tomcat.apache.org | |cc : | |Objet : RE: Tomcat tuning | --| From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Tomcat tuning Tomcat : 5.0.28 Java : 1.4.2 SR8 Apache : 2.2.4 Mod_jk : 1.2.25 is there any doc. about the tuning of tomcat ? There are several things you can do: 1) Use a newer JVM. 2) Use a newer version of Tomcat. 3) Don't use httpd unless you really need it for something other than serving static content. It's kind of pointless to try to improve performance of products that are several years old when newer versions are demonstratably much faster. - 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]
Réf. : Re: Réf. : RE: Tomcat tuning
OK. You're right. I just think there must be best practices in configuring Tomcat while Apache is in frontend. |-+--- | | David kerber| | | [EMAIL PROTECTED]| | | n.net | | | | | | 16/04/2008 17:12| | | Veuillez| | | répondre à | | | Tomcat Users | | | List | | | | |-+--- --| | | |Pour : Tomcat Users List users@tomcat.apache.org | |cc : | |Objet : Re: Réf. : RE: Tomcat tuning | --| [EMAIL PROTECTED] wrote: I just want to know which are the server.xml options I have to cleverly adjust To achieve what end? The defaults work pretty well for many situations; that's why they're the defaults. If they aren't working for you, tell us a bit more about your hardware, application, number of users, etc, and we may be able to give some better advice. It may be that just more RAM will solve your issue... D Thank you _ |-+ | | Caldarale, | | | Charles R | | | Chuck.Caldarale@| | | unisys.com | | || | | 16/04/2008 16:49 | | | Veuillez répondre| | | à Tomcat Users | | | List| | || |-+ --| | | |Pour : Tomcat Users List users@tomcat.apache.org | |cc : | |Objet : RE: Tomcat tuning | --| From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Tomcat tuning Tomcat : 5.0.28 Java : 1.4.2 SR8 Apache : 2.2.4 Mod_jk : 1.2.25 is there any doc. about the tuning of tomcat ? There are several things you can do: 1) Use a newer JVM. 2) Use a newer version of Tomcat. 3) Don't use httpd unless you really need it for something other than serving static content. It's kind of pointless to try to improve performance of products that are several years old when newer versions are demonstratably much faster. - 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] - 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éf. : RE: Tomcat tuning
All right ... playing with those options is a pretty good first track for me and I'll follow it Thank you very much Charlie |-+--- | | Charlie| | | Wingate| | | [EMAIL PROTECTED]| | | data.com | | | | | | 16/04/2008 17:25| | | Veuillez| | | répondre à | | | Tomcat Users | | | List | | | | |-+--- --| | | |Pour : Tomcat Users List users@tomcat.apache.org | |cc : | |Objet : RE: Tomcat tuning | --| I have played with max threads, min spare threads max spare threads in sever.xml in performance tuning. The defaults from a tomcat install were dreadfully low for the load testing I was doing. I also have increased the java memory available to Tomcat during that same testing. I got performance increases with respect to load capacity, obviously so, with all of these settings and what I found to be the best. I do not know of any documents that directly speak to performance tuning; but would love to know if there are any also. Cheers Charlie The significant problems we have cannot be solved at the same level of thinking with which we created them. ~ Albert Einstein -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 16, 2008 10:41 AM To: users@tomcat.apache.org Subject: Tomcat tuning Importance: High Tomcat : 5.0.28 Java : 1.4.2 SR8 Apache : 2.2.4 Mod_jk : 1.2.25 Hi everybody, is there any doc. about the tuning of tomcat ? Best Regards Jean-Louis Matéo - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals computer viruses. --- This message is a CONFIDENTIAL communication. If you are not the intended recipient, please do not read, copy, or use it, and do not disclose it to others. Please notify the sender of the delivery error by replying to this message, and then delete it from your system. Thank you. This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals computer viruses. - 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éf. : Re: Disabling the sessions
Hi everybody, It seems that filtering by programming is the best solution many thanks Len for your response. Best Regards Jean-Louis Matéo Bull, Architect of an Open World TM Bull SA - 53 r de l'Etang BP39 - 69578 LIMONEST tél - 08 20 08 20 00 fax - 04 72 52 51 24 __ BULL TELESERVICE : Support et conseil logiciels progiciels multi-éditeurs GCOS - AIX - Open Source - Microsoft __ |-+--- | | Len Popp | | | [EMAIL PROTECTED]| | | com| | | | | | 13/03/2008 06:40| | | Veuillez| | | répondre à | | | Tomcat Users | | | List | | | | |-+--- ---| | | |Pour : Tomcat Users List users@tomcat.apache.org | |cc : | |Objet : Re: Disabling the sessions | ---| There's an article here: http://randomcoder.com/articles/jsessionid-considered-harmful that describes how to disable URL rewriting using a filter. -- Len On 3/12/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Tomcat : Java : Hi everybody, is there any way to turn off the jsessionid (disabling the rewriting URL) ? Thank you very much Best Regards Jean-Louis Matéo - 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]
Disabling the sessions
Tomcat : Java : Hi everybody, is there any way to turn off the jsessionid (disabling the rewriting URL) ? Thank you very much Best Regards Jean-Louis Matéo - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6.0 and JSF 1.2
Tomcat : 6 Java : JDK SUN 1.6.0_04 Hi everybody, I would like to work with JSF 1.2 embedded in Tomcat 6.0 Where can I find an How-to ? I 've tried to do the exercices from the Marty Hall site (coresrvlets) but I failed Many thanks Best Regards Jean-Louis Matéo - 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éf. : RE: Filtering the apache clients
Hello, thank you Chuck, Ben and all at this list for your responses I think I'll try the apache secret feature but i don't know which attribute it matches under tomcat ajp connector conf ? Any idea ? Regards Jean-Louis Matéo Bull, Architect of an Open World TM Bull SA - 53 r de l'Etang BP39 - 69578 LIMONEST tél - 08 20 08 20 00 fax - 04 72 52 51 24 __ BULL TELESERVICE : Support et conseil logiciels progiciels multi-éditeurs GCOS - AIX - Open Source - Microsoft __ Ben Stringer [EMAIL PROTECTED] Pour : Tomcat Users List users@tomcat.apache.org cc : Objet : RE: Filtering the apache clients 19/01/2008 08:31 Veuillez répondre à Tomcat Users List On Fri, 2008-01-18 at 10:53 -0600, Caldarale, Charles R wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Filtering the apache clients Is there any way of configuring the Tomcat Connector to only accept AJP connections from a specific apache server? 1) Comment out the other Connector elements. 2) Configure the RemoteAddrValve for the desired IP address: http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Remote%20Addre ss%20Filter - Chuck In addition to Chuck's suggestions, you may also be interested in the secret setting that can be set in workers.properties on Apache HTTPD and in the tomcat connector conf. This allows you to specify a shared secret between Apache HTTPD and Tomcat, so connections will only be accepted if the secret is provided in the connection attempt. Search for secret in this page: http://tomcat.apache.org/connectors-doc/reference/workers.html Cheers, Ben 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]
Tomcat sources files
Hi everybody, which source files tomcat (apache-tomcat-6.0.14-src\java\org\apache) handles the server.xml contents. Precisely, I would like to know which source parses the Connector tag ? Thank you Regards Jean-Louis Matéo Bull, Architect of an Open World TM Bull SA - 53 r de l'Etang BP39 - 69578 LIMONEST tél - 08 20 08 20 00 fax - 04 72 52 51 24 __ BULL TELESERVICE : Support et conseil logiciels progiciels multi-éditeurs GCOS - AIX - Open Source - Microsoft __ - 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éf. : Re: Réf. : RE: Filtering the apache clients
Yes, it works. Here is an excerpt of my workers.properties: ... worker.list=web1,jkstatus worker.web1.host=127.0.0.1 worker.web1.port=8009 worker.web1.type=ajp13 worker.web1.lbfactor=1 worker.web1.secret=password ... and this one, my server.xml: Connector port=8009 redirectPort=8443 protocol=AJP/1.3 request.useSecret=True request.secret=password Note that within workers.properties, password have not to be between quotes Thank you very much Best Regards Jean-Louis Matéo Bull, Architect of an Open World TM Bull SA - 53 r de l'Etang BP39 - 69578 LIMONEST tél - 08 20 08 20 00 fax - 04 72 52 51 24 __ BULL TELESERVICE : Support et conseil logiciels progiciels multi-éditeurs GCOS - AIX - Open Source - Microsoft __ Rainer Jung [EMAIL PROTECTED] Pour : Tomcat Users List users@tomcat.apache.org pdata.decc : Objet : Re: Réf. : RE: Filtering the apache clients 21/01/2008 11:54 Veuillez répondre à Tomcat Users List [EMAIL PROTECTED] wrote: Hello, thank you Chuck, Ben and all at this list for your responses I think I'll try the apache secret feature but i don't know which attribute it matches under tomcat ajp connector conf ? Any idea ? At least http://tomcat.apache.org/connectors-doc/reference/workers.html tells us: Use request.useSecret=true and request.secret=secret key word in your Tomcat AJP Connector configuration. Unfortunately the information doesn't seem to be included in the Tomcat docs. Let us know, if it works. Regards, Rainer Ben Stringer [EMAIL PROTECTED] Pour : Tomcat Users List users@tomcat.apache.org cc : Objet : RE: Filtering the apache clients 19/01/2008 08:31 Veuillez répondre à Tomcat Users List On Fri, 2008-01-18 at 10:53 -0600, Caldarale, Charles R wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Filtering the apache clients Is there any way of configuring the Tomcat Connector to only accept AJP connections from a specific apache server? 1) Comment out the other Connector elements. 2) Configure the RemoteAddrValve for the desired IP address: http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Remote%20Addre ss%20Filter - Chuck In addition to Chuck's suggestions, you may also be interested in the secret setting that can be set in workers.properties on Apache HTTPD and in the tomcat connector conf. This allows you to specify a shared secret between Apache HTTPD and Tomcat, so connections will only be accepted if the secret is provided in the connection attempt. Search for secret in this page: http://tomcat.apache.org/connectors-doc/reference/workers.html Cheers, Ben - 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]
Filtering the apache clients
Jean-Louis Mateo Pour : users@tomcat.apache.org 18/01/2008 17:09 cc : Objet : Filtering the apache clients Hello, Is there any way of configuring the Tomcat Connector to only accept AJP connections from a specific apache server ? It seems that the Connector can accept any requests from any machine. I don't want to do a filtering IP by the unix means (no firewall). Thank you for your response Regards Jean-Louis Matéo Bull, Architect of an Open World TM Bull SA - 53 r de l'Etang BP39 - 69578 LIMONEST tél - 08 20 08 20 00 fax - 04 72 52 51 24 __ BULL TELESERVICE : Support et conseil logiciels progiciels multi-éditeurs GCOS - AIX - Open Source - Microsoft __ - 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éf. : Missing JMX.jar in Tomcat 5.5.23?
Hello, maybe you have to download from here but I'm not sure http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/download.jsp Jesse Barnum [EMAIL PROTECTED] Pour : Tomcat Users List users@tomcat.apache.org orks.comcc : Objet : Missing JMX.jar in Tomcat 5.5.23? 05/07/2007 02:05 Veuillez répondre à Tomcat Users List When I try to embed Tomcat 5.5.23 into my application, I get an error message about a missing MBeanRegistration (see stack trace at end). It seems like I need JMX.jar. This document ( http:// tomcat.apache.org/tomcat-5.5-doc/realm-howto.html ) states that you will need the JMX jar and the commons-logging jar (either commons- logging-api.jar or commons-logging.jar). Both of these are included with the Tomcat distribution, but I don't see JMX.jar anywhere in the core distribution. Exception in thread main java.lang.NoClassDefFoundError: javax/ management/MBeanRegistration at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at com.prosc.servlet.embedded.TomcatWrapper.start(TomcatWrapper.java: 75) at com.prosc.servertoolbox.plugin.ServerToolboxModel.start (ServerToolboxModel.java:25) at com.prosc.servertoolbox.plugin.ServerToolboxModel.main (ServerToolboxModel.java:36) --Jesse Barnum, President, 360Works http://www.360works.com (770) 234-9293 - 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]
Administration Tomcat
Tomcat : 5.5.23 Java : Hi everybody, i've downloaded the apache-tomcat-5.5.23-admin.zip file to administrate my tomcat server. Now i've an admin directory under %CATALINA-HOME%/webapps. But when I try to access it through http://localhost:8080/admin I get the following message: The admin.login_jsp servlet is not available There's no jsp files under the admin directory. What's wrong ? Many thanks Best Regards Jean-Louis Matéo - 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éf. : Re: Administration Tomcat
Thank you very much David, it's OK Best regards David Smith [EMAIL PROTECTED] Pour : Tomcat Users List users@tomcat.apache.org u cc : Objet : Re: Administration Tomcat 20/04/2007 18:02 Veuillez répondre à Tomcat Users List Move the admin webapp to server/webapps right along side the manager and host-manager webapps. Also make sure the provided admin.xml is in the %CATALINA_HOME%/conf/Catalina/localhost directory. --David [EMAIL PROTECTED] wrote: Tomcat : 5.5.23 Java : Hi everybody, i've downloaded the apache-tomcat-5.5.23-admin.zip file to administrate my tomcat server. Now i've an admin directory under %CATALINA-HOME%/webapps. But when I try to access it through http://localhost:8080/admin I get the following message: The admin.login_jsp servlet is not available There's no jsp files under the admin directory. What's wrong ? Many thanks Best Regards Jean-Louis Matéo - 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]
Réf. : RE: Administration Tomcat
Hello Barry, i did just the way David said to me and it's OK ; the user and password I gave were: admin , admin. It's the default values. Bye Propes, Barry L [EMAIL PROTECTED] Pour : Tomcat Users List users@tomcat.apache.org igroup.com cc : Objet : RE: Administration Tomcat 20/04/2007 18:16 Veuillez répondre à Tomcat Users List I've never been able to get this to work. I believe I've got the roles and tomcat-users xml file properly configured, but I always get invalid password. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, April 20, 2007 10:48 AM To: users@tomcat.apache.org Subject: Administration Tomcat Importance: High Tomcat : 5.5.23 Java : Hi everybody, i've downloaded the apache-tomcat-5.5.23-admin.zip file to administrate my tomcat server. Now i've an admin directory under %CATALINA-HOME%/webapps. But when I try to access it through http://localhost:8080/admin I get the following message: The admin.login_jsp servlet is not available There's no jsp files under the admin directory. What's wrong ? Many thanks Best Regards Jean-Louis Matéo - 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]
Réf. : RE: Administration Tomcat
many thanks Best Regards David Short [EMAIL PROTECTED] Pour : 'Tomcat Users List' users@tomcat.apache.org om cc : Objet : RE: Administration Tomcat 20/04/2007 18:21 Veuillez répondre à Tomcat Users List I just got it to work. Here's what you need to do: 1) Unzip the file to a temporary directory (temp_dir). 2) Copy the %temp_dir%\conf\catalina\localhost\admin.xml file to %tomcat_home%\conf\Catalina\localhost directory. 3) Copy the %temp_dir%\server\webapps\admin directory to the %tomcat_home%\server\webapps directory. Notice the server\webapps not \webapps. 4) Restart Tomcat and it should work. -Original Message- From: Propes, Barry L [mailto:[EMAIL PROTECTED] Sent: Friday, April 20, 2007 9:17 AM To: Tomcat Users List Subject: RE: Administration Tomcat I've never been able to get this to work. I believe I've got the roles and tomcat-users xml file properly configured, but I always get invalid password. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, April 20, 2007 10:48 AM To: users@tomcat.apache.org Subject: Administration Tomcat Importance: High Tomcat : 5.5.23 Java : Hi everybody, i've downloaded the apache-tomcat-5.5.23-admin.zip file to administrate my tomcat server. Now i've an admin directory under %CATALINA-HOME%/webapps. But when I try to access it through http://localhost:8080/admin I get the following message: The admin.login_jsp servlet is not available There's no jsp files under the admin directory. What's wrong ? Many thanks Best Regards Jean-Louis Matéo - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Réf. : Tomcat Administration
Hello, you can find it at this URL http://tomcat.apache.org/download-55.cgi Best regards Venkata Naveen venkatanaveen.alapati Pour : users@tomcat.apache.org @gmail.comcc : Objet : Tomcat Administration 17/04/2007 07:46 Veuillez répondre à Tomcat Users List hi Hi iam unable to get the tomcat administration page. It is giving the message like Tomcat's administration web application is no longer installed by default. Download and install the admin package to use it. where to get the tomcat admin package, and how to install that admin into the tomcat directory. please help me friends... Thanks regards Venkata Naveen -- View this message in context: http://www.nabble.com/Tomcat-Administration-tf3588935.html#a10029555 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Specific context.xml
Tomcat : 5.5.20 Hello, is there any way to to declare a context.xml for one application ($CATALINA_HOME/webapps/MyAppli/META-INF) and not for each ($CATALINA_HOME/conf/context.xml). If I declare it under .../conf -- it's OK but under MyAppli/META-INF -- it's KO !!! Any idea ? many thanks Best Regards Jean-Louis Matéo - 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éf. : Re: Browsing Tomcat from an MC4j console (jmx)
Many thanks Nicholas for your quick answer I'll read the article Best Regards Jean-Louis Matéo Bull, Architect of an Open World TM Bull SA - 53 r de l'Etang BP39 - 69578 LIMONEST tél - 08 20 08 20 00 fax - 04 72 52 51 24 __ BULL TELESERVICE : Support et conseil logiciels progiciels multi-éditeurs GCOS - AIX - Open Source - Microsoft __ Nicholas Sushkin [EMAIL PROTECTED] Pour : users@tomcat.apache.org nance.com cc : Objet : Re: Browsing Tomcat from an MC4j console (jmx) 29/03/2007 18:21 Veuillez répondre à Tomcat Users List Jean-Louis, Basically, you specify the port number when you enable JMX access during tomcat startup. Google for tomcat enable jmx. Here's a good article: http://www.javaworld.com/javaworld/jw-08-2005/jw-0801-jmx.html It looks like if you started Tomcat using set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.port=8999 then the URL would be service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi On Thursday 29 March 2007 09:53, [EMAIL PROTECTED] wrote: My tomcat 5..5.20 is well running and i want to administrate it from an MC4J console but I don't know which url I have to invoke it The URL is formed like this: service:jmx:rmi://localhost/jndi/rmi://localhost:port/protocoleconnec tor_name_of_tomcat_instance Which port, protocole and name_of_tomcat_instance do I have to choose ? -- Nicholas Sushkin, Senior Software Engineer http://www.openfinance.com http://www.wealthinformationexchange.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]
Réf. : Re: A second administration port
Hello everybody, I was not clear about my problem. I would like to have an access to servlets-examples (or another web application) in precising another port than 8080 so I did the following configuration. Creating a new service within server.xml this way: ... ... Service name=Another_service Connector port=9090 redirectPort=9443 minSpareThreads=25 connectionTimeout=2 maxSpareThreads=75 maxThreads=150 /Connector Engine defaultHost=localhost name=anything Realm className=org.apache.catalina.realm.JAASRealm appName=anything/ Host appBase=D:\Programmes\Tomcat 5.5.20\Test_Another_service name=localhost /Host /Engine /Service ... ... Under D:\Programmes\Tomcat 5.5.20\Test_Another_service I've deployed servlets-examples manually by copying the directory servlets-examples from webapps; I can invoke with my browser the url: http://localhost:9090/servlets-examples; and it works fine. Now I would like to deploy, undeploy, start or stop the servlets-examples context by using my browser and not manually, invoking http://localhost:9090; as I do with http://localhost:8080;. I've duplicated the manager and ROOT entries below $CATALINA_HOME/Test_Another_Service. I well reach the index but when I click The Tomcat Manager, it keeps on requiring me an identification; i can't escape from it. Any idea ? Best Regards Jean-Louis Matéo Bull, Architect of an Open World TM Bull SA - 53 r de l'Etang BP39 - 69578 LIMONEST tél - 08 20 08 20 00 fax - 04 72 52 51 24 __ BULL TELESERVICE : Support et conseil logiciels progiciels multi-éditeurs GCOS - AIX - Open Source - Microsoft __ [EMAIL PROTECTED] o.zaPour : Tomcat Users List users@tomcat.apache.org cc : 28/03/2007 19:30 Objet : Re: A second administration port Veuillez répondre à Tomcat Users List Here you go found some docs can check all settings 4 ure self 2. Configuring the Manager Web Application The Manager web application lets you perform simple management tasks on your web applications through a more simplified web user interface than that of the Admin web app. The Manager web application is defined in the auto-deployment file CATALINA_BASE/webapps/manager.xml. You must edit this file to ensure that the path specified in the docBase attribute of the Context element is absolute; that is, the absolute path of CATALINA_HOME/server/webapps/manager. If you're using the default UserDatabaseRealm, you'll need to add a user and role to the CATALINA_BASE/conf/tomcat-users.xml file. For now, just edit this file, and add a role named manager to your users database: role name=manager/ You must also have a user who is assigned the manager role. Add a user line like this after the existing user entries (changing the password to something a bit more secure): user name=manager password=deep_dark_secret roles=manager/ Then restart Tomcat and visit the URL http://localhost/manager/list to see the plain-text manager interface, or http://localhost/manager/html/list for the simple HTML manager interface. Either way, your Manager application should now be working. The Manager application lets you install new web applications on a non-persistent basis, for testing. If we have a web application in /home/user/hello and want to test it by installing it under the URI /hello, we put /hello in the first text input field (for Path) and file:/home/user/hello in the second text input field (for Config URL).
A second administration port
Tomcat : 5.5.20 Java : BEA JRockit 1.5.0_08 Hello, I have configured a second address administration (9000): I have defined within the server.xml a second service as: Connector port=9000 ..., with an entry Host on which i've defined an AppBase attribute different from webapps. All work fine. Now I would like to administrate my web applications from the new port: deploy, undeploy, start or stop How can I do this ? Thanks Best Regards Jean-Louis Matéo - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Creating a new connector through the administration web
Hello, Tomcat 5.5.20 , Java Sun 1.4.2_12 I've created a new connector with a specific address (http://localhost:8080 ) -- it's OK After committing changes, I can see the tag connector within the server.xml file but there's no ipaddress attribute so after the next start, we cannot see the ip address binded to this connector Is it normal ? Best Regards Jean-Louis Matéo Bull, Architect of an Open World TM Bull SA - 53 r de l'Etang BP39 - 69578 LIMONEST tél - 08 20 08 20 00 fax - 04 72 52 51 24 __ BULL TELESERVICE : Support et conseil logiciels progiciels multi-éditeurs GCOS - AIX - Open Source - Microsoft __ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]