Re: Tomcat Issue with HPUX
you not counting the threads which are used by jvm and tomcat itself, and those are more than 5. Try with max threads = 25 and check whether this works at all on your machine. regards Leon On 8/10/07, pkt [EMAIL PROTECTED] wrote: HI All I and running tomcat on HPUX machine. The problem is that on HP machine the maximum thread per process allowed is 65 ( default), so i configured max thread count in server.xml to 60. I used JMeter to check the behavior when there is enough load on tomcat. What i have observed is that even though i configured its maxthread count not to exceed 60 it is reaching 65 and as soon as it goes beyond 65 tomcat throws OutOfMemoryError. After this the thread are killed ( probably by the OS) and then the thread count comes back to around 27 but tomcat does not process any new request any more. What i was expecting is that once the threads are killed and thread count comes back to 27 it should again start processing new request. One option is that to increase the max thread per process limit of HP to high value, but administrators are not very convinced with this idea Any pointers on this issue. Thanks and Regards Pankaj Tiwari -- View this message in context: http://www.nabble.com/Tomcat-Issue-with-HPUX-tf4246754.html#a12085566 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]
Re: Tomcat Issue with HPUX
i tried to do that but still the thread count goes beyond 45-50. so i guess with some more load it will go beyond 65. And yes the figure is total of jvm and tomcat. But is there any way to restrict this to not exceed 65. Leon Rosenberg-3 wrote: you not counting the threads which are used by jvm and tomcat itself, and those are more than 5. Try with max threads = 25 and check whether this works at all on your machine. regards Leon On 8/10/07, pkt [EMAIL PROTECTED] wrote: HI All I and running tomcat on HPUX machine. The problem is that on HP machine the maximum thread per process allowed is 65 ( default), so i configured max thread count in server.xml to 60. I used JMeter to check the behavior when there is enough load on tomcat. What i have observed is that even though i configured its maxthread count not to exceed 60 it is reaching 65 and as soon as it goes beyond 65 tomcat throws OutOfMemoryError. After this the thread are killed ( probably by the OS) and then the thread count comes back to around 27 but tomcat does not process any new request any more. What i was expecting is that once the threads are killed and thread count comes back to 27 it should again start processing new request. One option is that to increase the max thread per process limit of HP to high value, but administrators are not very convinced with this idea Any pointers on this issue. Thanks and Regards Pankaj Tiwari -- View this message in context: http://www.nabble.com/Tomcat-Issue-with-HPUX-tf4246754.html#a12085566 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Tomcat-Issue-with-HPUX-tf4246754.html#a12086742 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]
Error in access_log when launching an application GUI
Hi all I am trying to launch the ArcIMS ADmin Utility GUI (GIS Application) and receiving the following error in the access_log [info] jk_handler::mod_jk.c (2254): No body with status=404 for worker=ajp13 MY mod_jk file looks as follows. Any help much appreciated loadmodule jk_module modules/mod_jk.so jkworkersfile /usr/local/apache/conf/workers2.properties jklogfile logs/mod_jk.log jkloglevel info jklogstampformat [%a %b %d %H:%M:%S %Y] JkMount /*.jsp ajp13 JkMount /*.java ajp13 JkMount /*.class ajp13 JkMount /servlet* ajp13 JkMount /imf/* ajp13 JkMount /manager/* ajp13 JkMount /admin/* ajp13 JkMount /jkstatus/* ajp13 JkMount /scripts* ajp13 JkMount /.esri* ajp13 Regards / Cordialement / Mit freundlichen Grüßen -- Dean Lonsdale Dean Lonsdale/UK/IBM [EMAIL PROTECTED] Systems Architect IBM Systems Technology Group Senior Accredited IT Specialist Tivoli Certified Consultant IBM UK Ltd, Washway Road, Manchester Ext: 07834 252463 Mobex: 264328 +44 (0)1253 731299 View the Systems Group website at http://w3-03.ibm.com/systemstechnology/index.html Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
Re: 6.0.13 MySQL DBCP Example
To make use a GlobalNamingResources .. /GlobalNamingResources, you'll have to put a ResourceLink element in your webapp's context.xml file. See the end of http://tomcat.apache.org/tomcat-6.0-doc/config/globalresources.html for more information. --David G M wrote: Thanks! It worked when I put the Context.../ in the context.xml of my webapp META-INF directory. However when I tried to put it in the global context.xml it doesn't work. Tomcat should put this information in his example. Why it doesn't work in the global context.xml, any ideas? Here is the context if you need to check it out. ?xml version=1.0 encoding=UTF-8? !-- The contents of this file will be loaded for each web application -- Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=gabo password=huevos driverClassName= com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/javatest?autoReconnect=true/ /Context Thank you a lot, is great to have my app up and running! Gabriel Moreno 2007/8/9, Caldarale, Charles R [EMAIL PROTECTED]: From: David Smith [mailto:[EMAIL PROTECTED] Subject: Re: 6.0.13 MySQL DBCP Example 1. I would merge the Context / element from server.xml to your context.xml file and remove the Context element from your server.xml. Just a point of clarification: the context.xml above refers to the one in your webapp's META-INF directory, not the global one in Tomcat's conf directory. - 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: Define tomcat ports
Milanez, Marcus schrieb: We need have two tomcat instances (different versions, 5.0.xx and 6.0.xx) running in the same server. We need it because we have some web applications deployed in Tomcat 5 which don't start in Tomcat 6. We won't have enough time to migrate all the applications to adhere some Tomcat 6 issues, so we need this scenario for a while. I would like to know whether there are port numbers restrictions, or I'm free to configure any number I like... The actual values of the port numbers Tomcat is told to bind to don't matter. Nevertheless the natural restrictions apply. For example, no two applications can bind to the same port, on unix-like systems you'll need root privileges to bind to ports 1024. Especially: if you want to run two Tomcat instances, you'll have to make sure that all ports one instance listens to are different from all ports the other (or any other application on the machine) listens to. This applies to all configured Connectors and the shutdown ports (unless you use jsvc). Regards mks - 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: Define tomcat ports
afaik port 1 - 1024 are so-called privileged ports (at least in unix / linux) which require superuser-right (root). since it's not the best idea running tomcat as root, you'll be fine choosing any port above 1024. also, you should make sure not to choose a port that's already been taken. in linux, a netstat -lnp will tell your which ports are no more available. cheers gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using MSAccess database for container authentication
you did give it a DSN of some sort? Do you have the correct driver or MDAC update? -Original Message- From: remmons [mailto:[EMAIL PROTECTED] Sent: Friday, August 10, 2007 10:40 AM To: users@tomcat.apache.org Subject: Using MSAccess database for container authentication I am trying to use an MSAccess database for container authentication in Tomcat 5.5.23. When I start Tomcat, I get this message in the catalina.-MM-DD.log: Aug 10, 2007 10:50:30 AM org.apache.catalina.realm.JDBCRealm start SEVERE: Exception opening database connection java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source) at sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source) at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source) at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:701) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:769) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1006) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Aug 10, 2007 10:50:30 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled I setup my realm in server.xml as follows: Realm className=org.apache.catalina.realm.JDBCRealm driverName=sun.jdbc.odbc.JdbcOdbcDriver connectionURL=jdbc:odbc:Auth userTable=User userNameCol=UserName userCredCol=Password userRoleTable=User_Role roleNameCol=RoleName / where Auth.mdb is the name of my MSAccess database. I configured Auth.mdb in my ODBC Data Source Administrator, and I am able to access it and display its tables from a Java application. I am using Tomcat 5.5.23. Has anyone used an MSAccess database via JDBC-ODBC for authentication in Tomcat? Can anyone tell me what I am doing wrong? -- View this message in context: http://www.nabble.com/Using-MSAccess-database-for-container-authentication-tf4249487.html#a12093749 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]
Re: Using MSAccess database for container authentication
didn't imply there was a need for additional jars. Just trying to make clear he needed the one the one with that class. . Also didn't mean to complicate it, just trying to help figure out where the issue was going. On 8/10/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel, Daniel Stephens wrote: Also, make sure that whatever jar file has this sun.jdbc.odbc.JdbcOdbcDriver class, is located in your tomcat common/lib. This is a standard class that comes with the Sun JRE. There is no need for any additional JAR files. As well as having a binding in your context.xml or web.xml like below. And have the datasource configured in the server.xml or equivalent(I think 5.5 sets up the Datasources a little different). but you'll need the following configured. The OP is using a JDBC realm, not configuring a DataSource. Don't complicate things, here. I would advise the OP to check online for how to connect Java to Access in general before adding Tomcat into the mix. Using MS Access requires you to setup an ODBC DataSource in Windows. Have you done that? Is it called Auth? The connection URL was jdbc:odbc:Auth, so it should be. I've never used Access with Java (or by itself, for that matter), but I've seen connection URLs like this, too: jdbc:odbc:;DRIVER=Microsoft Access Driver (*.mdb); DBQ=D:\\path_to_db\db.mdb;PWD=mypass This appears to define it's own data source instead of requiring you to create one in the control panel. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGvJzU9CaO5/Lv0PARAgg1AJ90pWZ/jhYheC/bCL/uG+bHZAxPNACdF4Xb PQqTPRSwxn24giPvVRwlzxQ= =We8r -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: Using MSAccess database for container authentication
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel, Daniel Stephens wrote: Also, make sure that whatever jar file has this sun.jdbc.odbc.JdbcOdbcDriver class, is located in your tomcat common/lib. This is a standard class that comes with the Sun JRE. There is no need for any additional JAR files. As well as having a binding in your context.xml or web.xml like below. And have the datasource configured in the server.xml or equivalent(I think 5.5 sets up the Datasources a little different). but you'll need the following configured. The OP is using a JDBC realm, not configuring a DataSource. Don't complicate things, here. I would advise the OP to check online for how to connect Java to Access in general before adding Tomcat into the mix. Using MS Access requires you to setup an ODBC DataSource in Windows. Have you done that? Is it called Auth? The connection URL was jdbc:odbc:Auth, so it should be. I've never used Access with Java (or by itself, for that matter), but I've seen connection URLs like this, too: jdbc:odbc:;DRIVER=Microsoft Access Driver (*.mdb); DBQ=D:\\path_to_db\db.mdb;PWD=mypass This appears to define it's own data source instead of requiring you to create one in the control panel. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGvJzU9CaO5/Lv0PARAgg1AJ90pWZ/jhYheC/bCL/uG+bHZAxPNACdF4Xb PQqTPRSwxn24giPvVRwlzxQ= =We8r -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]
RES: Define tomcat ports
Thanks Gregor! -Mensagem original- De: Gregor Schneider [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 10 de agosto de 2007 11:49 Para: Tomcat Users List Assunto: Re: Define tomcat ports afaik port 1 - 1024 are so-called privileged ports (at least in unix / linux) which require superuser-right (root). since it's not the best idea running tomcat as root, you'll be fine choosing any port above 1024. also, you should make sure not to choose a port that's already been taken. in linux, a netstat -lnp will tell your which ports are no more available. cheers gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - 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]
RES: Define tomcat ports
Thank you Markus! I'll take a careful look at server.xml file! -Mensagem original- De: Markus Schönhaber [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 10 de agosto de 2007 11:55 Para: users@tomcat.apache.org Assunto: Re: Define tomcat ports Milanez, Marcus schrieb: We need have two tomcat instances (different versions, 5.0.xx and 6.0.xx) running in the same server. We need it because we have some web applications deployed in Tomcat 5 which don't start in Tomcat 6. We won't have enough time to migrate all the applications to adhere some Tomcat 6 issues, so we need this scenario for a while. I would like to know whether there are port numbers restrictions, or I'm free to configure any number I like... The actual values of the port numbers Tomcat is told to bind to don't matter. Nevertheless the natural restrictions apply. For example, no two applications can bind to the same port, on unix-like systems you'll need root privileges to bind to ports 1024. Especially: if you want to run two Tomcat instances, you'll have to make sure that all ports one instance listens to are different from all ports the other (or any other application on the machine) listens to. This applies to all configured Connectors and the shutdown ports (unless you use jsvc). Regards mks - 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]
URL Decoding Question
Hi, Does Tomcat decode a URL-encoded request before evaluating it against servlet url-patterns? I have a form whose submit action URL includes the jsessionid like this: form action=Example.action;jsessionid=196273839CE41F0BFBA445F63D3880EB method=post When the form is submitted, the request is going through a kind of proxy that performs a URL encode before forwarding the request. When the request is received by Tomcat (v. 6.0.14) it looks like this: http://foo/Example.action%3Bjsessionid% 3D196273839CE41F0BFBA445F63D3880EB I have a servlet url-pattern for *.action. It works fine for request URLs like: http://foo/Example.action and also http://foo/Example.action;jsessionid=196273839CE41F0BFBA445F63D3880EB But when the re-encoded request URL is encountered (below again), Tomcat gives a 404 error. http://foo/Example.action%3Bjsessionid% 3D196273839CE41F0BFBA445F63D3880EB I do not have any control over the proxy that is doing this re-encoding. I have two questions: 1. Is the URL encoding that is being done in the above example appropriate? 2. Shouldn't Tomcat be URL-decoding this and turning it into its original form? Hope you can shed some light on this. Thanks, T. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using MSAccess database for container authentication
Also, make sure that whatever jar file has this sun.jdbc.odbc.JdbcOdbcDriver class, is located in your tomcat common/lib. As well as having a binding in your context.xml or web.xml like below. And have the datasource configured in the server.xml or equivalent(I think 5.5 sets up the Datasources a little different). but you'll need the follwing configured.. datasurce: Resource name=jdbc/AccessDS type=javax.sql.DataSource/ ResourceParams name=jdbc/AccessDS parameternamefactory/namevalue org.apache.commons.dbcp.BasicDataSourceFactory/value/parameter parameternamemaxActive/namevalue10/value/parameter parameternamemaxIdle/namevalue8/value/parameter parameternameminIdle/namevalue5/value/parameter parameternamemaxWait/namevalue1000/value/parameter parameternameusername/namevalueusername/value/parameter parameternamepassword/namevaluepassword/value/parameter parameternamedriverClassName/namevalue sun.jdbc.odbc.JdbcOdbcDriver/value/parameter !-- This URL parameter may be different since it's jdbc.odbc -- parameternameurl/namevaluejdbc:oracle:thin:@host :port:sid/value/parameter !-- This URL parameter may be different since it's jdbc.odbc -- parameternameremoveAbandoned/namevaluetrue/value/parameter parameternameremoveAbandonedTimeout/namevalue10/value/parameter parameternamelogAbandoned/namevaluetrue/value/parameter /ResourceParams resourcelink: ResourceLink name=jdbc/AccessDS global=jdbc/AccessDS type= javax.sql.DataSource / this is meerly an example, you may have to search the web for the correct way to bind it. reference in web or context.xml resource-ref res-ref-namejdbc/AccessDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref On 8/10/07, Propes, Barry L [EMAIL PROTECTED] wrote: you did give it a DSN of some sort? Do you have the correct driver or MDAC update? -Original Message- From: remmons [mailto:[EMAIL PROTECTED] Sent: Friday, August 10, 2007 10:40 AM To: users@tomcat.apache.org Subject: Using MSAccess database for container authentication I am trying to use an MSAccess database for container authentication in Tomcat 5.5.23. When I start Tomcat, I get this message in the catalina.-MM-DD.log: Aug 10, 2007 10:50:30 AM org.apache.catalina.realm.JDBCRealm start SEVERE: Exception opening database connection java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source) at sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source) at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source) at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:701) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:769) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java :1006) at org.apache.catalina.core.StandardEngine.start( StandardEngine.java:443) at org.apache.catalina.core.StandardService.start( StandardService.java:448) at org.apache.catalina.core.StandardServer.start( StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Aug 10, 2007 10:50:30 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled I setup my realm in server.xml as follows: Realm className=org.apache.catalina.realm.JDBCRealm driverName=sun.jdbc.odbc.JdbcOdbcDriver connectionURL=jdbc:odbc:Auth userTable=User userNameCol=UserName userCredCol=Password userRoleTable=User_Role roleNameCol=RoleName / where Auth.mdb is the name of my MSAccess database. I configured Auth.mdb in my ODBC Data Source Administrator, and I am able to access it and display its tables from a Java application. I am using Tomcat 5.5.23. Has anyone used an MSAccess database via JDBC-ODBC for authentication in Tomcat? Can anyone tell me what I am doing wrong? -- View this message in context: http://www.nabble.com/Using-MSAccess-database-for-container-authentication-tf4249487.html#a12093749 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To
RE: Tomcat Issue with HPUX
| From: pkt [mailto:[EMAIL PROTECTED] | Sent: Friday, 10 August, 2007 00:38 | | One option is that to increase the max thread per process limit of HP to | high value, but administrators are not very convinced with this idea | | Any pointers on this issue. Have your admins check out the Java Out-of-Box tool for HP-UX (see http://www.hp.com/products1/unix/java/?jumpid=go/java). If you increase max_thread_proc, don't forget about nkthreads. - The information contained in this message is confidential proprietary property of Nelnet, Inc. and its affiliated companies (Nelnet) and is intended for the recipient only. Any reproduction, forwarding, or copying without the express permission of Nelnet is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to this e-mail. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using MSAccess database for container authentication
I am trying to use an MSAccess database for container authentication in Tomcat 5.5.23. When I start Tomcat, I get this message in the catalina.-MM-DD.log: Aug 10, 2007 10:50:30 AM org.apache.catalina.realm.JDBCRealm start SEVERE: Exception opening database connection java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source) at sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source) at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source) at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:701) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:769) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1006) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Aug 10, 2007 10:50:30 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled I setup my realm in server.xml as follows: Realm className=org.apache.catalina.realm.JDBCRealm driverName=sun.jdbc.odbc.JdbcOdbcDriver connectionURL=jdbc:odbc:Auth userTable=User userNameCol=UserName userCredCol=Password userRoleTable=User_Role roleNameCol=RoleName / where Auth.mdb is the name of my MSAccess database. I configured Auth.mdb in my ODBC Data Source Administrator, and I am able to access it and display its tables from a Java application. I am using Tomcat 5.5.23. Has anyone used an MSAccess database via JDBC-ODBC for authentication in Tomcat? Can anyone tell me what I am doing wrong? -- View this message in context: http://www.nabble.com/Using-MSAccess-database-for-container-authentication-tf4249487.html#a12093749 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: Define tomcat ports
Markus Schönhaber schrieb: Especially: if you want to run two Tomcat instances, you'll have to make sure that all ports one instance listens to are different from all ports the other (or any other application on the machine) listens to. To phrase that more exactly: you can have to applications bind to the same port number only if they bind to this port on different IP addresses. Regards mks - 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 Restarting
En l'instant précis du 10/08/07 15:45, [EMAIL PROTECTED] s'exprimait en ces termes: Hi everybody, I would like to know what really happen when tomcat is restarted. This is because I need to know the risks of restarting during production time. I mean, if, for example, a servlet is running and at that moment I restart, does tomcat will wait until the jvm finishes and give the generated response or it will just kill every running/pending jvm process? It first shutdown all applications then exit all http-thread. During shutdown of application, it first make it unreacheable via http, then call destroy on all servelt. It give time for currently running requests to finish . I don't know if there is a timeout on this (like a request taking 20 minutes to finish could be stopped). In fact, is there any risk about missing financial transactions? If you are using transaction nothing will be done prior to commit and everything will be done after comit. It's atomic (the principle of a transaction) and not handle by java (its your database that is implementing 2 steps commits). Thank you ;-) ¡Sé un mejor fotógrafo! Perfecciona tu técnica y encuentra las mejores fotos. http://mx.yahoo.com/promos/mejorfotografo.html - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.noooxml.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]
Define tomcat ports
Hi, We need have two tomcat instances (different versions, 5.0.xx and 6.0.xx) running in the same server. We need it because we have some web applications deployed in Tomcat 5 which don't start in Tomcat 6. We won't have enough time to migrate all the applications to adhere some Tomcat 6 issues, so we need this scenario for a while. I would like to know whether there are port numbers restrictions, or I'm free to configure any number I like... 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]
memory leaks (Tomcat 5.5.20 and JDK 1.6)
Hello Tomcat Users , Our web application uses Tomcat 5.5.20 with Java 1.6. The application's front end is designed in Flex and back end is web servcies deployed on axis. The application id running out of memory in about 2 days. We are optimizing the code and fixing memory leaks . is there a way to find out if Tomcat 5.5.20 has any inherent memory leaks. We are using J profiler and J probe for determining the memory usage of the appliocation during run time. Found this JIRa issue regaring memory leaks in functional tests (Tomcat 5.5.20) http://jira.atlassian.com/browse/JRA-12524?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel Please let me know, if you found any memory leak issues in Tomcat 5.5.20 . I think that 5.5.20 is a stable version of Tomcat, just wanted to know if there are any memory issues in this version. thank you, Suchitha.
Re: Tomcat and path with pound sign (#) - ClassNotFoundException
I'm not sure the topic is ready to be nailed shut just yet... The problem is due to the way Tomcat converts pathnames to URLs when it uses URLClassLoader. Tomcat calls the method File.toURL and that fails when there's a # in the pathname. But the Javadoc for File.toURL suggests a workaround: Convert the pathname to a URI first, then to a URL. I tried that (in ClassLoaderFactory) and it seem to fix the classloader problem. Tomcat starts up fine - but it can't compile any JSPs. So there are other components of Tomcat that have similar problems. So, my advice is to see how hard it would be for you to get the #s out of your pathnames. That may be easier than fixing Tomcat. -- Len On 8/9/07, Markus Schiegl [EMAIL PROTECTED] wrote: Hi all, just to close the topic on this mailing list: As jetty suffers from exactly the same problem i'm rather confident this is not a tomcat problem but part of the java classloader and its implementation. Next - and last - stop for confirmation: Sun :-) kind regards, Markus Alexey Solofnenko wrote: Try running bash -x catalina.sh run to see if Java is started correctly. If it is not, try running the same command from a normal directory, and run the same command yourself without using scripts provided with Tomcat. - Alexey. Markus Schiegl wrote: Hi, you're right about # as a special char for different programming languages. but nevertheless the # sign is a valid character for directory and file names (in contrast to * or / for example) for unix and windows. If it's wise to use it is another question but sometimes it's just beyond your control. The same problem (# in directory name) and error message (ClassNotFoundException) happens with Windows XP. Confirms my suspicion this beeing a Java and/or Tomcat issue. kind regards, Markus Propes, Barry L wrote: isn't that likely because in some languages like PHP, Python and Perl the # is to comment out a line, and it will invariably break the code? Because I thought some on this list were integrating Tomcat with those languages. -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Thursday, August 09, 2007 7:58 AM To: Tomcat Users List Subject: Re: Tomcat and path with pound sign (#) - ClassNotFoundException On 8/8/07, Markus Schiegl [EMAIL PROTECTED] wrote: Has anybody been able to start a tomcat server from such a directory? I copied a working installation from /usr/local/apache-tomcat-6.0.13 to /usr/local/apache-tomcat#6.0.13, set CATALINA_HOME and got this: ./bin/catalina.sh run Using CATALINA_BASE: /usr/local/apache-tomcat#6.0.13 Using CATALINA_HOME: /usr/local/apache-tomcat#6.0.13 Using CATALINA_TMPDIR: /usr/local/apache-tomcat#6.0.13/temp Using JRE_HOME: /usr/local/jdk1.6.0_02/jre java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390) So it seems a genuine limitation... HTH, - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using MSAccess database for container authentication
Christopher Schultz-2 wrote: This is a standard class that comes with the Sun JRE. There is no need for any additional JAR files. I would advise the OP to check online for how to connect Java to Access in general before adding Tomcat into the mix. Using MS Access requires you to setup an ODBC DataSource in Windows. Have you done that? Is it called Auth? The connection URL was jdbc:odbc:Auth, so it should be. Yes, sun.jdbc.odbc.JdbcOdbcDriver is in the Java distrubition rt.jar, and I did not think it had to be added to Tomcat/common/lib, but I tried it anyhow. It had no effect. Yes, I did set up and configure a DSN, named Auth, in the ODBC Data source administrator. I can connect to Auth via JDBC-ODBC from a stand alone Java Application I wrote. I am able to access Auth it and display its tables. I did state this in my original message. The ODBC data source is definitely working, but I cannot get Tomcat to connect to it. The driver sun.jdbc.odbc.JdbcOdbcDriver is definitely working because I use it in my stand alone Java application to connect to Auth and display its tables. I do not seem to be able to get Tomcat to connect to any ODBC data source. The ODBC administrator has a trace function. When I access Auth from my stand alone Java App, it generates a bunch of log entries in the ODBC log. When I start Tomcat, and try to open a secured document, zero entries are generated in the ODBC log. It is as if Tomcat does not know ODBC exists. Christopher Schultz-2 wrote: I've never used Access with Java (or by itself, for that matter), but I've seen connection URLs like this, too: jdbc:odbc:;DRIVER=Microsoft Access Driver (*.mdb); DBQ=D:\\path_to_db\db.mdb;PWD=mypass This appears to define it's own data source instead of requiring you to create one in the control panel. The server.xml Realm entry which I used (below) was copied directly from the original server.xml supplied with Tomcat, where it was commented out. I commented out the Realm entry which directs Tomcat to use the tomcat-users.xml file for authentication. All I did was change jdbc:odbc:CATALINA to jdbc:odbc:Auth, and edit the names of the tables and columns to reflect my actual MSAccess database. Realm className=org.apache.catalina.realm.JDBCRealm driverName=sun.jdbc.odbc.JdbcOdbcDriver connectionURL=jdbc:odbc:Auth userTable=User userNameCol=UserName userCredCol=Password userRoleTable=User_Role roleNameCol=RoleName / Do I need to make some other entry in server.xml? Do I need to make an entry in some other configuration file? Thanks for any additional hints you can provide. -- View this message in context: http://www.nabble.com/Using-MSAccess-database-for-container-authentication-tf4249487.html#a12097330 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]
Tomcat Restarting
Hi everybody, I would like to know what really happen when tomcat is restarted. This is because I need to know the risks of restarting during production time. I mean, if, for example, a servlet is running and at that moment I restart, does tomcat will wait until the jvm finishes and give the generated response or it will just kill every running/pending jvm process? In fact, is there any risk about missing financial transactions? Thank you ;-) ¡Sé un mejor fotógrafo! Perfecciona tu técnica y encuentra las mejores fotos. http://mx.yahoo.com/promos/mejorfotografo.html - 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: Self-Signed Certificate for Tomcat JVM and CAS
I don't know if this is a right list to ask this question. I tried to configure shibboleth which uses Tomcat with CAS authentication. I received an error: Unable to validate ProxyTicketValidator I did google search on this topic and understood the reason causing this problem is Tomcat JVM doesn't trust the SSL cert of the CAS server. Since I am still in the testing stage, I can't get a CA certificate but the self-signed certificate. If my understanding is correct, the self signed certificate via openssl doesn't have jks format but Tomcat JVM only accept jks format certificate. I am just wondering if any one can give me some instruction how to create a self-signed certificate and private key which can be used or imported to both Tomcat JVM and CAS server. Thanks, Lisa
Re: Log file analyser for Access Log Valve output
... or you could also look for web log analyzers on the web. If you used the Apache Httpd compatible access log format, any analyzer built to work on Apache Httpd should theoretically work on the Tomcat access log. --David Lyallex wrote: Looks interesting. Thanks On 8/10/07, David Smith [EMAIL PROTECTED] wrote: As I understand it access log valve outputs a compatible format to Apache Httpd so Webalizer should be able to analyze and provide reports. --David Lyallex wrote: Hi Tomcat 5.5.23 Java 1.5.0_10 First let me say thanks to the users on this list that have answered my (no doubt irritating) questions over the past few weeks. Thanks in no small part to you my new application is flying along on Tomcat and is all blinged up with AJAX, SSL certification, DataSources, logging and all sorts of other nonsense, fantastic stuff. At the risk of enraging some on this list I was wondering if I might ask about viewers for the output from the Access Log Valve. question name='mode' value='timid' I have read the appropriate documentation and I understand that the output is in some sort of standard format. I'm about to start fiddling with the pattern attribute. The docs state These logs can later be analyzed by standard log analysis tools ... hmm. googling log analysis tools returns 53k hits. Can anyone advise on a tool that I can incorporate into my application that will let me analyze my logs via my (web based) admin interface ? I will of course continue looking myself. Thanks in advance Duncan /question - 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: Log file analyser for Access Log Valve output
As I understand it access log valve outputs a compatible format to Apache Httpd so Webalizer should be able to analyze and provide reports. --David Lyallex wrote: Hi Tomcat 5.5.23 Java 1.5.0_10 First let me say thanks to the users on this list that have answered my (no doubt irritating) questions over the past few weeks. Thanks in no small part to you my new application is flying along on Tomcat and is all blinged up with AJAX, SSL certification, DataSources, logging and all sorts of other nonsense, fantastic stuff. At the risk of enraging some on this list I was wondering if I might ask about viewers for the output from the Access Log Valve. question name='mode' value='timid' I have read the appropriate documentation and I understand that the output is in some sort of standard format. I'm about to start fiddling with the pattern attribute. The docs state These logs can later be analyzed by standard log analysis tools ... hmm. googling log analysis tools returns 53k hits. Can anyone advise on a tool that I can incorporate into my application that will let me analyze my logs via my (web based) admin interface ? I will of course continue looking myself. Thanks in advance Duncan /question - 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 Issue with HPUX
David Delbecq wrote: En l'instant précis du 10/08/07 10:34, Rainer Jung s'exprimait en ces termes: The question about Tomcat serving no more requests, once you reached the OS thread limit: if a new request comes in, the listening thread serves the request and a new thread is taken out of the pool to do the next accept on the port. If the pool is empty, it will try o create new threads for this task. If this fails, there will be no more thread listening on the connector port, so your tomcat is not reachable any more. Not to mention, on most unix OSes, in java, when you reach the maximum Thread limit and you try to allocated a new thread you get a java.lang.OutOfMemoryError, which, as most errors, are not catch by code :) And that's exactly the point, were we (Tomcat) usually loose our accept thread. But as always: first comes OOME, then comes undefined behaviour ... - 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 Issue with HPUX
En l'instant précis du 10/08/07 10:34, Rainer Jung s'exprimait en ces termes: The question about Tomcat serving no more requests, once you reached the OS thread limit: if a new request comes in, the listening thread serves the request and a new thread is taken out of the pool to do the next accept on the port. If the pool is empty, it will try o create new threads for this task. If this fails, there will be no more thread listening on the connector port, so your tomcat is not reachable any more. Not to mention, on most unix OSes, in java, when you reach the maximum Thread limit and you try to allocated a new thread you get a java.lang.OutOfMemoryError, which, as most errors, are not catch by code :) Regards, Rainer David Delbecq wrote: Just for information, we run tomcat on HP-UX with no special tomcat limitation on max thread. We also use a NIS (aka Yellow pages) based JNDI authentification. We sun the sun provided NIS context for jndi. This tool is known by us to create something around 200+ temporary threads to get it's datas (yes awful!). We never hit a maximum Thread limit from the OS. Maybe it will be easier to ask the server admin to increase the max threads per process to something like 2000+ which is more reasonnable for a server imho. Another solution could be to use green threads (JVM handled threads and task switching as opposed to OS handled threads and task switching) if they are available on your JVM En l'instant précis du 10/08/07 09:40, pkt s'exprimait en ces termes: i tried to do that but still the thread count goes beyond 45-50. so i guess with some more load it will go beyond 65. And yes the figure is total of jvm and tomcat. But is there any way to restrict this to not exceed 65. Leon Rosenberg-3 wrote: you not counting the threads which are used by jvm and tomcat itself, and those are more than 5. Try with max threads = 25 and check whether this works at all on your machine. regards Leon On 8/10/07, pkt [EMAIL PROTECTED] wrote: HI All I and running tomcat on HPUX machine. The problem is that on HP machine the maximum thread per process allowed is 65 ( default), so i configured max thread count in server.xml to 60. I used JMeter to check the behavior when there is enough load on tomcat. What i have observed is that even though i configured its maxthread count not to exceed 60 it is reaching 65 and as soon as it goes beyond 65 tomcat throws OutOfMemoryError. After this the thread are killed ( probably by the OS) and then the thread count comes back to around 27 but tomcat does not process any new request any more. What i was expecting is that once the threads are killed and thread count comes back to 27 it should again start processing new request. One option is that to increase the max thread per process limit of HP to high value, but administrators are not very convinced with this idea Any pointers on this issue. Thanks and Regards Pankaj Tiwari -- View this message in context: http://www.nabble.com/Tomcat-Issue-with-HPUX-tf4246754.html#a12085566 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] -- http://www.noooxml.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: Using MSAccess database for container authentication
are you sure you have the right type driver for JDBC thru the web? In your standalone Java app connecting to MS Access, is that thru the web? It's not is it? maybe you should attempt to download another one. http://developers.sun.com/product/jdbc/drivers -Original Message- From: remmons [mailto:[EMAIL PROTECTED] Sent: Friday, August 10, 2007 2:10 PM To: users@tomcat.apache.org Subject: Re: Using MSAccess database for container authentication Christopher Schultz-2 wrote: This is a standard class that comes with the Sun JRE. There is no need for any additional JAR files. I would advise the OP to check online for how to connect Java to Access in general before adding Tomcat into the mix. Using MS Access requires you to setup an ODBC DataSource in Windows. Have you done that? Is it called Auth? The connection URL was jdbc:odbc:Auth, so it should be. Yes, sun.jdbc.odbc.JdbcOdbcDriver is in the Java distrubition rt.jar, and I did not think it had to be added to Tomcat/common/lib, but I tried it anyhow. It had no effect. Yes, I did set up and configure a DSN, named Auth, in the ODBC Data source administrator. I can connect to Auth via JDBC-ODBC from a stand alone Java Application I wrote. I am able to access Auth it and display its tables. I did state this in my original message. The ODBC data source is definitely working, but I cannot get Tomcat to connect to it. The driver sun.jdbc.odbc.JdbcOdbcDriver is definitely working because I use it in my stand alone Java application to connect to Auth and display its tables. I do not seem to be able to get Tomcat to connect to any ODBC data source. The ODBC administrator has a trace function. When I access Auth from my stand alone Java App, it generates a bunch of log entries in the ODBC log. When I start Tomcat, and try to open a secured document, zero entries are generated in the ODBC log. It is as if Tomcat does not know ODBC exists. Christopher Schultz-2 wrote: I've never used Access with Java (or by itself, for that matter), but I've seen connection URLs like this, too: jdbc:odbc:;DRIVER=Microsoft Access Driver (*.mdb); DBQ=D:\\path_to_db\db.mdb;PWD=mypass This appears to define it's own data source instead of requiring you to create one in the control panel. The server.xml Realm entry which I used (below) was copied directly from the original server.xml supplied with Tomcat, where it was commented out. I commented out the Realm entry which directs Tomcat to use the tomcat-users.xml file for authentication. All I did was change jdbc:odbc:CATALINA to jdbc:odbc:Auth, and edit the names of the tables and columns to reflect my actual MSAccess database. Realm className=org.apache.catalina.realm.JDBCRealm driverName=sun.jdbc.odbc.JdbcOdbcDriver connectionURL=jdbc:odbc:Auth userTable=User userNameCol=UserName userCredCol=Password userRoleTable=User_Role roleNameCol=RoleName / Do I need to make some other entry in server.xml? Do I need to make an entry in some other configuration file? Thanks for any additional hints you can provide. -- View this message in context: http://www.nabble.com/Using-MSAccess-database-for-container-authentication-tf4249487.html#a12097330 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]
Re: Error in access_log when launching an application GUI
Which platform? Which version of mod_jk? Content of workers.properties? In case you use version 1.2.24: this has been withdrawn soon after release, because it had a bug related to the message you cite. But since that version was only available for very few days, I doubt that's the reason. You could try the 1.2.25 we will very likely release later today. It is already available - but not yet oficially released - under http://tomcat.apache.org/dev/dist/tomcat-connectors/jk/ If you send the same request to a Tomcat http connector: - do you also get a 404? - does the response have a body, or only the http protocol headers? - are you using a custom error page for 404 in you web.xml? If nothing helps (and you answered the questions), set your JkLogLevel to debug and try the problematic request and give us the full mod_jk log file lines for this request. Regards, Rainer Dean Lonsdale wrote: Hi all I am trying to launch the ArcIMS ADmin Utility GUI (GIS Application) and receiving the following error in the access_log [info] jk_handler::mod_jk.c (2254): No body with status=404 for worker=ajp13 MY mod_jk file looks as follows. Any help much appreciated loadmodule jk_module modules/mod_jk.so jkworkersfile /usr/local/apache/conf/workers2.properties jklogfile logs/mod_jk.log jkloglevel info jklogstampformat [%a %b %d %H:%M:%S %Y] JkMount /*.jsp ajp13 JkMount /*.java ajp13 JkMount /*.class ajp13 JkMount /servlet* ajp13 JkMount /imf/* ajp13 JkMount /manager/* ajp13 JkMount /admin/* ajp13 JkMount /jkstatus/* ajp13 JkMount /scripts* ajp13 JkMount /.esri* ajp13 Regards / Cordialement / Mit freundlichen Grüßen -- IBM *Dean Lonsdale* _Dean Lonsdale/UK/IBM_ mailto:Dean - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Issue with HPUX
I would agree, that 65 is a very low thread limit for a J2EE web container, at least if it will get serious load. Java Enterprise gets its performance out of concurrency. Your observation, that you actually run out of threads already proves you, that you will need more than 65 threads. So I would also first try to push the limit upwards to a couple of hundreds of threads. That should be no problem at all for modern operating systems. If you want to learn, how man extra threads there are, send your tomcat process a kill -QUIT and have a look at catalina.out. The QUIT signal lets the JVM write a thread dump to the ouput, which gets redirected to catalina.out by the standard tomcat startup script. The thread dump contains a block of text for each thread in the JVM. The Threads belonging to an AJP connector will be named TP-Processor, the ones for the HTTP(S)-Connectors will have the ports in their names. The other additional threads also partially depend on the number of contexts you deployed. Look at their names. The question about Tomcat serving no more requests, once you reached the OS thread limit: if a new request comes in, the listening thread serves the request and a new thread is taken out of the pool to do the next accept on the port. If the pool is empty, it will try o create new threads for this task. If this fails, there will be no more thread listening on the connector port, so your tomcat is not reachable any more. Regards, Rainer David Delbecq wrote: Just for information, we run tomcat on HP-UX with no special tomcat limitation on max thread. We also use a NIS (aka Yellow pages) based JNDI authentification. We sun the sun provided NIS context for jndi. This tool is known by us to create something around 200+ temporary threads to get it's datas (yes awful!). We never hit a maximum Thread limit from the OS. Maybe it will be easier to ask the server admin to increase the max threads per process to something like 2000+ which is more reasonnable for a server imho. Another solution could be to use green threads (JVM handled threads and task switching as opposed to OS handled threads and task switching) if they are available on your JVM En l'instant précis du 10/08/07 09:40, pkt s'exprimait en ces termes: i tried to do that but still the thread count goes beyond 45-50. so i guess with some more load it will go beyond 65. And yes the figure is total of jvm and tomcat. But is there any way to restrict this to not exceed 65. Leon Rosenberg-3 wrote: you not counting the threads which are used by jvm and tomcat itself, and those are more than 5. Try with max threads = 25 and check whether this works at all on your machine. regards Leon On 8/10/07, pkt [EMAIL PROTECTED] wrote: HI All I and running tomcat on HPUX machine. The problem is that on HP machine the maximum thread per process allowed is 65 ( default), so i configured max thread count in server.xml to 60. I used JMeter to check the behavior when there is enough load on tomcat. What i have observed is that even though i configured its maxthread count not to exceed 60 it is reaching 65 and as soon as it goes beyond 65 tomcat throws OutOfMemoryError. After this the thread are killed ( probably by the OS) and then the thread count comes back to around 27 but tomcat does not process any new request any more. What i was expecting is that once the threads are killed and thread count comes back to 27 it should again start processing new request. One option is that to increase the max thread per process limit of HP to high value, but administrators are not very convinced with this idea Any pointers on this issue. Thanks and Regards Pankaj Tiwari -- View this message in context: http://www.nabble.com/Tomcat-Issue-with-HPUX-tf4246754.html#a12085566 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]
Regarding OLE
Hello, is it possible to invoke equation editor of MS Word from text area, so that what ever mathematical equation edited can directly be updated in to the text area. Regards Girish S.Havaldar
Re: Tomcat Issue with HPUX
Just for information, we run tomcat on HP-UX with no special tomcat limitation on max thread. We also use a NIS (aka Yellow pages) based JNDI authentification. We sun the sun provided NIS context for jndi. This tool is known by us to create something around 200+ temporary threads to get it's datas (yes awful!). We never hit a maximum Thread limit from the OS. Maybe it will be easier to ask the server admin to increase the max threads per process to something like 2000+ which is more reasonnable for a server imho. Another solution could be to use green threads (JVM handled threads and task switching as opposed to OS handled threads and task switching) if they are available on your JVM En l'instant précis du 10/08/07 09:40, pkt s'exprimait en ces termes: i tried to do that but still the thread count goes beyond 45-50. so i guess with some more load it will go beyond 65. And yes the figure is total of jvm and tomcat. But is there any way to restrict this to not exceed 65. Leon Rosenberg-3 wrote: you not counting the threads which are used by jvm and tomcat itself, and those are more than 5. Try with max threads = 25 and check whether this works at all on your machine. regards Leon On 8/10/07, pkt [EMAIL PROTECTED] wrote: HI All I and running tomcat on HPUX machine. The problem is that on HP machine the maximum thread per process allowed is 65 ( default), so i configured max thread count in server.xml to 60. I used JMeter to check the behavior when there is enough load on tomcat. What i have observed is that even though i configured its maxthread count not to exceed 60 it is reaching 65 and as soon as it goes beyond 65 tomcat throws OutOfMemoryError. After this the thread are killed ( probably by the OS) and then the thread count comes back to around 27 but tomcat does not process any new request any more. What i was expecting is that once the threads are killed and thread count comes back to 27 it should again start processing new request. One option is that to increase the max thread per process limit of HP to high value, but administrators are not very convinced with this idea Any pointers on this issue. Thanks and Regards Pankaj Tiwari -- View this message in context: http://www.nabble.com/Tomcat-Issue-with-HPUX-tf4246754.html#a12085566 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] -- http://www.noooxml.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: memory leaks (Tomcat 5.5.20 and JDK 1.6)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Suchitha, suchitha koneru wrote: The application id running out of memory in about 2 days. We are optimizing the code and fixing memory leaks . is there a way to find out if Tomcat 5.5.20 has any inherent memory leaks. Many people are using various Tomcat versions without any apparent memory leaks. I would guess that either: 1. You simply need more memory to support the numbers of users you have. 2. Your application is leaking objects or resources. Found this JIRa issue regaring memory leaks in functional tests (Tomcat 5.5.20) http://jira.atlassian.com/browse/JRA-12524?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel If you read past the description of the bug, you'd see: 1. This was a bug logged against JIRA, which is a bug-tracking tool. 2. The issue was identified as a problem with JIRA and corrected. Please let me know, if you found any memory leak issues in Tomcat 5.5.20 . I think that 5.5.20 is a stable version of Tomcat, just wanted to know if there are any memory issues in this version. You should upgrade to 5.5.23 if possible, since that is the latest 5.5 version available. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGvMnM9CaO5/Lv0PARAk/1AKC55XkD04fjgfliobXpsl6W0I7RJACfaiCm iVKULZJEn1h7Bpp89hdWFLo= =p7FV -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]
Converting workers2.properties file to workers.properties
All We are moving from JK2 to JK and would like some information/help on how to convert a workers2.properties file (JK2) to workers.properties (JK) any help greatly appreciated..apols but this question comes from an Apache novice.. Regards / Cordialement / Mit freundlichen Grüßen -- Dean Lonsdale Dean Lonsdale/UK/IBM [EMAIL PROTECTED] Systems Architect IBM Systems Technology Group Senior Accredited IT Specialist Tivoli Certified Consultant IBM UK Ltd, Washway Road, Manchester Ext: 07834 252463 Mobex: 264328 +44 (0)1253 731299 View the Systems Group website at http://w3-03.ibm.com/systemstechnology/index.html Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
java.net.BindException: Address already in use
First, I just want to say that I sure appreciate all the help I am getting on this list and I don't deserve to even associate with highly intelligent beings such as yourselves. We shutdown and restart our tomcat 5.5.23 server nightly. Initially, a maintenance page for system backup gets copied and then it gets bounced with the shutdown.sh and startup.sh scripts. Since we upgraded last Friday, it's not always starting up. I see this message in the log: SEVERE: Error initializing endpoint java.net.BindException: Address already in use (errno:226):80 I've checked server.xml and I only have one connector using this port. Perhaps all the connections are not getting terminated when it shuts down? How do I fix this problem? How do I figure out what is the cause?
RE: java.net.BindException: Address already in use
that's ok -- I'm on here! : ) -Original Message- From: Susan Richards [mailto:[EMAIL PROTECTED] Sent: Friday, August 10, 2007 3:28 PM To: users@tomcat.apache.org Subject: java.net.BindException: Address already in use First, I just want to say that I sure appreciate all the help I am getting on this list and I don't deserve to even associate with highly intelligent beings such as yourselves. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.net.BindException: Address already in use
are you using TC at port 80 or port 8080? Can you switch it to 8080 in your xml file? -Original Message- From: Susan Richards [mailto:[EMAIL PROTECTED] Sent: Friday, August 10, 2007 3:28 PM To: users@tomcat.apache.org Subject: java.net.BindException: Address already in use First, I just want to say that I sure appreciate all the help I am getting on this list and I don't deserve to even associate with highly intelligent beings such as yourselves. We shutdown and restart our tomcat 5.5.23 server nightly. Initially, a maintenance page for system backup gets copied and then it gets bounced with the shutdown.sh and startup.sh scripts. Since we upgraded last Friday, it's not always starting up. I see this message in the log: SEVERE: Error initializing endpoint java.net.BindException: Address already in use (errno:226):80 I've checked server.xml and I only have one connector using this port. Perhaps all the connections are not getting terminated when it shuts down? How do I fix this problem? How do I figure out what is the cause? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.net.BindException: Address already in use
It's at port 80 443. We don't have any iptables setup to reroute users from 80 to 8080. I asked our unix guy and he didn't want to do it. Propes, Barry L [EMAIL PROTECTED] 8/10/2007 3:35 PM are you using TC at port 80 or port 8080? Can you switch it to 8080 in your xml file? -Original Message- From: Susan Richards [mailto:[EMAIL PROTECTED] Sent: Friday, August 10, 2007 3:28 PM To: users@tomcat.apache.org Subject: java.net.BindException: Address already in use First, I just want to say that I sure appreciate all the help I am getting on this list and I don't deserve to even associate with highly intelligent beings such as yourselves. We shutdown and restart our tomcat 5.5.23 server nightly. Initially, a maintenance page for system backup gets copied and then it gets bounced with the shutdown.sh and startup.sh scripts. Since we upgraded last Friday, it's not always starting up. I see this message in the log: SEVERE: Error initializing endpoint java.net.BindException: Address already in use (errno:226):80 I've checked server.xml and I only have one connector using this port. Perhaps all the connections are not getting terminated when it shuts down? How do I fix this problem? How do I figure out what is the cause? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.net.BindException: Address already in use
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Susan, Susan Richards wrote: First, I just want to say that I sure appreciate all the help I am getting on this list and I don't deserve to even associate with highly intelligent beings such as yourselves. Seriously, don't say that. :( We shutdown and restart our tomcat 5.5.23 server nightly. Initially, a maintenance page for system backup gets copied and then it gets bounced with the shutdown.sh and startup.sh scripts. Since we upgraded last Friday, it's not always starting up. I see this message in the log: SEVERE: Error initializing endpoint java.net.BindException: Address already in use (errno:226):80 Don't forget that shutdown.sh only sends a shutdown notification to Tomcat -- it doesn't wait for the shutdown to complete before the script ends. So, you can't just do shutdown.sh followed by startup.sh and expect a clean server bounce. The quick fix is to introduce some delay between the shutdown and startup. The problem is, it might not take a predictable amount of time to shutdown, so you can't just guess at 5 seconds and leave it at that. The best thing to do would be to watch catalina.out for the shutdown message that Tomcat emits as it goes down, and /then/ call startup.sh. Honestly, if you're already comfortable bouncing Tomcat every night, you can probably just introduce an arbitrary delay between invoking scripts and be fine. Just out of curiosity, why do you bounce Tomcat every night? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGvM1+9CaO5/Lv0PARAkNmAJ41+SQAwk3qhjVWGUn1ePWWnRhV4wCcDsbT ZA3mjT3gTNF+DhDJPyjm4aM= =7tQ6 -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]
[ANN] Apache Tomcat JK 1.2.25 Web Server Connector released
The Apache Tomcat team is pleased to announce the immediate availability of version 1.2.25 of the Apache Tomcat Connectors. It contains connectors, which allow a web server such as Apache HTTPD, Microsoft IIS and Sun Web Server to act as a front end to the Tomcat web application server. This version contains several enhancements and fixes a number of minor bugs of the previous versions. See http://tomcat.apache.org/connectors-doc/miscellaneous/changelog.html for a complete list of changes. Source distribtions can be downloaded from an Apache Software Foundation mirror at: http://tomcat.apache.org/download-connectors.cgi Binary distributions for a number of different operating systems and web servers can be downloaded from an Apache Software Foundation mirror at: http://tomcat.apache.org/download-connectors.cgi Syncing the release to the download mirrors might take up to 48 hours. Documentation for using Apache Tomcat Connectors can be found at: http://tomcat.apache.org/connectors-doc/ Thank you, -- The Apache Tomcat Team - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.net.BindException: Address already in use
Just out of curiosity, why do you bounce Tomcat every night? We backup our database that the web application interfaces with. We stop our listener after we bounce it and put a maintenance page out. Our application gives a 'System Error Detected' to the user if we don't do things in the right order. I suppose I could just copy the maintenance page and not bounce it I did have a delay, but then we switched scripts for a different problem. I will try going back to the old script now because that problem is resolved. I hope. Thanks. Christopher Schultz [EMAIL PROTECTED] 8/10/2007 3:41 PM -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Susan, Susan Richards wrote: First, I just want to say that I sure appreciate all the help I am getting on this list and I don't deserve to even associate with highly intelligent beings such as yourselves. Seriously, don't say that. :( We shutdown and restart our tomcat 5.5.23 server nightly. Initially, a maintenance page for system backup gets copied and then it gets bounced with the shutdown.sh and startup.sh scripts. Since we upgraded last Friday, it's not always starting up. I see this message in the log: SEVERE: Error initializing endpoint java.net.BindException: Address already in use (errno:226):80 Don't forget that shutdown.sh only sends a shutdown notification to Tomcat -- it doesn't wait for the shutdown to complete before the script ends. So, you can't just do shutdown.sh followed by startup.sh and expect a clean server bounce. The quick fix is to introduce some delay between the shutdown and startup. The problem is, it might not take a predictable amount of time to shutdown, so you can't just guess at 5 seconds and leave it at that. The best thing to do would be to watch catalina.out for the shutdown message that Tomcat emits as it goes down, and /then/ call startup.sh. Honestly, if you're already comfortable bouncing Tomcat every night, you can probably just introduce an arbitrary delay between invoking scripts and be fine. Just out of curiosity, why do you bounce Tomcat every night? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ( http://enigmail.mozdev.org/ ) iD8DBQFGvM1+9CaO5/Lv0PARAkNmAJ41+SQAwk3qhjVWGUn1ePWWnRhV4wCcDsbT ZA3mjT3gTNF+DhDJPyjm4aM= =7tQ6 -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: Log file analyser for Access Log Valve output
Looks interesting. Thanks On 8/10/07, David Smith [EMAIL PROTECTED] wrote: As I understand it access log valve outputs a compatible format to Apache Httpd so Webalizer should be able to analyze and provide reports. --David Lyallex wrote: Hi Tomcat 5.5.23 Java 1.5.0_10 First let me say thanks to the users on this list that have answered my (no doubt irritating) questions over the past few weeks. Thanks in no small part to you my new application is flying along on Tomcat and is all blinged up with AJAX, SSL certification, DataSources, logging and all sorts of other nonsense, fantastic stuff. At the risk of enraging some on this list I was wondering if I might ask about viewers for the output from the Access Log Valve. question name='mode' value='timid' I have read the appropriate documentation and I understand that the output is in some sort of standard format. I'm about to start fiddling with the pattern attribute. The docs state These logs can later be analyzed by standard log analysis tools ... hmm. googling log analysis tools returns 53k hits. Can anyone advise on a tool that I can incorporate into my application that will let me analyze my logs via my (web based) admin interface ? I will of course continue looking myself. Thanks in advance Duncan /question - 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: memory leaks (Tomcat 5.5.20 and JDK 1.6)
Thank you so Chris , I missed the part which talks about jira's memory leak issue. Will try to increase the heap memory and detect more memory leaks. On 8/10/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Suchitha, suchitha koneru wrote: The application id running out of memory in about 2 days. We are optimizing the code and fixing memory leaks . is there a way to find out if Tomcat 5.5.20 has any inherent memory leaks. Many people are using various Tomcat versions without any apparent memory leaks. I would guess that either: 1. You simply need more memory to support the numbers of users you have. 2. Your application is leaking objects or resources. Found this JIRa issue regaring memory leaks in functional tests (Tomcat 5.5.20) http://jira.atlassian.com/browse/JRA-12524?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel If you read past the description of the bug, you'd see: 1. This was a bug logged against JIRA, which is a bug-tracking tool. 2. The issue was identified as a problem with JIRA and corrected. Please let me know, if you found any memory leak issues in Tomcat 5.5.20. I think that 5.5.20 is a stable version of Tomcat, just wanted to know if there are any memory issues in this version. You should upgrade to 5.5.23 if possible, since that is the latest 5.5 version available. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGvMnM9CaO5/Lv0PARAk/1AKC55XkD04fjgfliobXpsl6W0I7RJACfaiCm iVKULZJEn1h7Bpp89hdWFLo= =p7FV -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: Self-Signed Certificate for Tomcat JVM and CAS
Lisa Tan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I don't know if this is a right list to ask this question. I tried to configure shibboleth which uses Tomcat with CAS authentication. I received an error: Unable to validate ProxyTicketValidator I did google search on this topic and understood the reason causing this problem is Tomcat JVM doesn't trust the SSL cert of the CAS server. Since I am still in the testing stage, I can't get a CA certificate but the self-signed certificate. If my understanding is correct, the self signed certificate via openssl doesn't have jks format but Tomcat JVM only accept jks format certificate. If you had read the friendly manual at http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html, you would know that this isn't true :). While it talks about the keystore, the truststore works the same way. So use openssl to create a pkcs12 file, specify this as the truststore, in whatever way you need to do from the CAS docs, and you should be good to go. I am just wondering if any one can give me some instruction how to create a self-signed certificate and private key which can be used or imported to both Tomcat JVM and CAS server. Thanks, Lisa - 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: URL Decoding Question
Thoku Hansen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Does Tomcat decode a URL-encoded request before evaluating it against servlet url-patterns? I have a form whose submit action URL includes the jsessionid like this: form action=Example.action;jsessionid=196273839CE41F0BFBA445F63D3880EB method=post When the form is submitted, the request is going through a kind of proxy that performs a URL encode before forwarding the request. When the request is received by Tomcat (v. 6.0.14) it looks like this: http://foo/Example.action%3Bjsessionid% 3D196273839CE41F0BFBA445F63D3880EB I have a servlet url-pattern for *.action. It works fine for request URLs like: http://foo/Example.action and also http://foo/Example.action;jsessionid=196273839CE41F0BFBA445F63D3880EB But when the re-encoded request URL is encountered (below again), Tomcat gives a 404 error. http://foo/Example.action%3Bjsessionid% 3D196273839CE41F0BFBA445F63D3880EB I do not have any control over the proxy that is doing this re-encoding. I have two questions: 1. Is the URL encoding that is being done in the above example appropriate? No, ';' is a legitimate character in a URL, so by encoding it the proxy is changing the name of the resource being asked for. 2. Shouldn't Tomcat be URL-decoding this and turning it into its original form? No, because with the ';' it is a parameter to the URL, and with %3B it is just a normal character in the URL (e.g. a file name that happens to have a ';' in it's name). Hope you can shed some light on this. Thanks, T. - 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]