Strange PING errors within Tomcat
All I have tomcat 5.5.7 installed on SUSE linux 9.0 and when i start it up after some of my web applications have been installed i get errors like these which in turn take the system down with memory errors. And i can't find any information on this. Is this tomcat or my web applications. [ POA RootPOA - rid: 133 oid: 02 14 28 40 20 4A 14 06 4B 0B opname: ping - cannot process request, because object is already in the deactivation process ] [ POA RootPOA - rid: 151633 oid: 0C 14 28 34 0A 46 4B 4A 01 33 2D opname: ping - cannot process request, because object is already in the deactivation proc ess ] [ POA RootPOA - rid: 68 oid: 03 14 28 40 21 0F 36 1B 0B 0B opname: ping - cannot process request, because object is already in the deactivation process ] [ POA RootPOA - rid: 37808 oid: 0D 14 28 34 0A 46 4B 4A 01 33 2D opname: ping - cannot process request, because object is already in the deactivation proce ss ] [ POA RootPOA - rid: 13 oid: 02 14 28 40 21 0F 36 1B 0B 0B opname: ping - cannot process request, because object is already in the deactivation process ] 16-Dec-2005 16:36:39 org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached [ POA RootPOA - rid: 153091 oid: 0D 14 28 34 0A 4C 10 2C 01 34 2B opname: ping - cannot process request, because object is already in the deactivation proc ess ] [ POA RootPOA - rid: 37 oid: 04 14 28 40 20 42 15 35 1B 42 opname: ping - cannot process request, because object is already in the deactivation process ] [ POA RootPOA - rid: 158 oid: 05 14 28 40 20 42 15 35 1B 42 opname: ping - cannot process request, because object is already in the deactivation process ] 16-Dec-2005 16:36:48 org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached 16-Dec-2005 16:37:08 org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached 16-Dec-2005 16:37:08 org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached 16-Dec-2005 16:37:08 org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached 16-Dec-2005 16:37:08 org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached 16-Dec-2005 16:37:08 org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached 16-Dec-2005 16:37:08 org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached 16-Dec-2005 16:37:08 org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached Exception in thread EngineClientConnectorThread[daemon]_4 - CONTROL com.apama.util.CompoundRuntimeException at com.apama.services.event.internal.EngineClientConnectorThread.run(EngineClientConnectorThread.java:113) Caused by: java.lang.OutOfMemoryError: PermGen space [ POA RootPOA - rid: 134 oid: 03 14 28 40 20 4A 14 06 4B 0B opname: ping - cannot process request, because object is already in the deactivation process ] 16-Dec-2005 16:37:12 org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached 16-Dec-2005 16:37:17 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception (java.lang.OutOfMemoryError: PermGen space) executing [EMAIL PROTECTED], terminating thread [ POA RootPOA - rid: 152099 oid: 0C 14 28 34 0A 4D 04 18 06 35 opname: ping - cannot process request, because object is already in the deactivation process ] [ POA RootPOA - rid: 152100 oid: 0D 14 28 34 0A 4D 04 18 06 35 opname: ping - cannot process request, because object is already in the deactivation process ] Exception in thread EngineClientConnectorThread[daemon]_5 - CONTROL com.apama.util.CompoundRuntimeException [ POA RootPOA - rid: 39828 oid: 0A 14 28 34 0A 4D 4C 47 01 00 05 opname: ping - cannot process request, because object is already in the deactivation proce ss ] Exception in thread DashboardScenarioServiceBase$WebRestartSenderThread[daemon] java.lang.OutOfMemoryError: PermGen space [ POA RootPOA - rid: 38101 oid: 0E 14 28 34 0A 4D 04 18 06 35 opname: ping - cannot process request, because object is already in the deactivation process ] [ POA RootPOA - rid: 32111 oid: 0C 14 28 34 0A 42 3F 39 02 16 1A opname: ping - cannot process request, because object is already in the deactivation proce ss ] [ POA RootPOA - rid: 1 oid: 10 14 28 34 0A 46 4B 4A 01 33 2D opname: ping - cannot process request, because object is already in the deactivation process ] Exception in thread DashboardScenarioServiceBase$WebRestartSenderThread[daemon] java.lang.OutOfMemoryError: PermGen space Exception in thread TP-Processor68 java.lang.OutOfMemoryError: PermGen space [ POA RootPOA - rid: 149599 oid: 0B 14 28 34 0A 4D 4C 47 01 00 05 opname: ping - cannot process request, because object is already in the deactivation proc ess ] [ POA RootPOA - rid: 7 oid: 0D 14 28 34 0B 01 0E 10 01 4B 32 opname: ping - cannot process request, because object is already in the
Re: Apache Portable Runtime not found on the java.library.path
just for the records, indeed disabling the APR listener is solving the problem. Just tried out and it works. Thanks very much for your support George On Tue, Dec 20, 2005 at 01:46:55PM -0500, Adam Constabaris wrote: FTP wrote: I face the same problem with: Tomcat 5.5.12 jdk: 1.5.06 and cannot find the library you suggest in order to include it! APR integration isn't yet fully part of the Tomcat distribution, as far as I can tell (I think it's misleading of them to enable the APR listener on startup, because it makes you think you're supposed to use it). I'm not sure how stable the Tomcat developers consider the APR integration, so if you're at all concerned about that, it's probably easier to just comment out the Listener instead. If you want to use the APR libraries, first read http://tomcat.apache.org/tomcat-5.5-doc/apr.html to see if there are precompiled binaries for your platform (Windows only, AFAICT). If not, (a) install APR (http://apr.apache.org); if you use Linux, your distribution may ship the APR in a package. (b) compile libtcnative-1.so by unpacking $TOMCAT_HOME/bin/tomcat-native.tar.gz and following (most of) the instructions there; NOTE if you don't need openSSL support, be warned that --without-ssl switch did not work for me with tomcat-native-1.1.0 (ships with 5.5.12; 1.1.1 with 5.5.14-beta did honor that switch). HTH AC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: access denied to Tomcat manager
Could be as simple as not having added a user with manager role to tomcat-users.xml. From: vineesh kumar [EMAIL PROTECTED] Date: 2005/12/21 Wed AM 12:58:08 EST To: Tomcat Users List users@tomcat.apache.org Subject: Re: access denied to Tomcat manager you may not have access permission to the directory containing the manager utils, check the permission of the directory webapps an others On 12/21/05, Ariel Pashtan [EMAIL PROTECTED] wrote: Hi, For some reason I cannot access the Tomcat Manager application from the Tomcat home page. While I can access Tomcat Administration, access to the manager is denied: HTTP Status 403 - Access to the requested resource has been denied Any suggestions on how to resolve this? Thanks for your help! Ariel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question configurung JBDCRealm (Tomcat 5.5.9)
Hi all! I have got a question regarding setup of a JBDCRealm. I read the HOW-TO on Tomcat homepage, and I am wondering about the database structure. I have an existing application, and the database it uses has got a table 'users' with the follwing columns: login, password, roleid,... where the roleid is a foreign key to the table 'roles' which has columns 'id' and 'rolename'. It is sufficient for me because every user can only have one role. Is there a way to use this database structure with JDBCRealm? Or do I have to add more tables as described in the HOW-TO? My database structure already contains all information, so it would be overhead to produce an extra table, I think. I tried the following: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.postgresql.Driver connectionURL=jdbc:postgresql://localhost:5432/ testwebapp?user=loginamp;password=pwd userTable=users userNameCol=login userCredCol=password userRoleTable=users roleNameCol=roleid / but I got problems on roleNameCol=roleid. How can I get the rolename from table roles? Perhaps I missed something, and someone has an idea. Thanks Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ServletContextListener - how to detect http path of web application?
Thanks Tim. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 21 December 2005 11:23 To: Tomcat Users List Subject: Re: ServletContextListener - how to detect http path of web application? There is no way to detect the contextPath on servletInit. It can only be done after the first request. (Using HttpServletRequest.getContextPath()) -Tim [EMAIL PROTECTED] wrote: Hi, Apols for a newbie question, I didn't have much luck with the archives or in Google. In my ServletContextListener.contextInitialized method, I need to detect the public http path of my web app. i.e. http://servername/approot/ How can I do this? event.getServletContext().getResource(/) gives me jndi:/localhost/, not very helpful. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For more information about Barclays Capital, please visit our web site at http://www.barcap.com. Internet communications are not secure and therefore the Barclays Group does not accept legal responsibility for the contents of this message. Although the Barclays Group operates anti-virus programmes, it does not accept responsibility for any damage whatsoever that is caused by viruses being passed. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Barclays Group. Replies to this email may be monitored by the Barclays Group for operational or business reasons. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat error
Hi there, sure enough I'm trying to run tomcat on Solaris 8 and tomcat 5.5.12. The error I'm getting in ${CATALINA_HOME}/logs/catalina.out again is Dec 21, 2005 12:02:35 PM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-5050 Dec 21, 2005 12:02:35 PM org.apache.jk.common.ChannelSocketacceptConnections WARNING: Exception executing accept java.net.SocketException: Invalid argument at java.net.PlainSocketImpl.socketSetOption(Native Method) at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264) at java.net.Socket.setSoLinger(Socket.java:869) at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:298) at org.apache.jk.common.ChannelSocket.acceptConnections( ChannelSocket.java:637) at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt( ChannelSocket.java:847) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Dec 21, 2005 12:02:36 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Dec 21, 2005 12:02:37 PM org.apache.coyote.http11.Http11BaseProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-5050 Dec 21, 2005 12:02:37 PM org.apache.catalina.core.AprLifecycleListenerlifecycleEvent INFO: Failed shutdown of Apache Portable Runtime On 12/20/05, marju jalloh [EMAIL PROTECTED] wrote: something wrong about the coyoto protocol context what is your enviroment.operating system,version tomcat Marju James Taylor [EMAIL PROTECTED] wrote: Hi there, Can someone please help me resolve the following error I keep getting; INFO: Server startup in 9072 ms Dec 20, 2005 6:18:58 PM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-1979 Dec 20, 2005 6:18:58 PM org.apache.jk.common.ChannelSocketacceptConnections WARNING: Exception executing accept java.net.SocketException: Invalid argument at java.net.PlainSocketImpl.socketSetOption(Native Method) at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264) at java.net.Socket.setSoLinger(Socket.java:869) at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java :298) at org.apache.jk.common.ChannelSocket.acceptConnections( ChannelSocket.java:637) at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt( ChannelSocket.java:847) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Dec 20, 2005 6:18:59 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Dec 20, 2005 6:19:00 PM org.apache.coyote.http11.Http11BaseProtocoldestroy INFO: Stopping Coyote HTTP/1.1 on http-1979 Dec 20, 2005 6:19:00 PM org.apache.catalina.core.AprLifecycleListenerlifecycleEvent INFO: Failed shutdown of Apache Portable Runtime __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
AW: Question configurung JBDCRealm (Tomcat 5.5.9)
Hi andy! As in the HOW-TO described you need two tables, one table 'users' that holds the username and the password, and one table that holds the username and the roles the user is given (it is a mapping from users to roles). My database has also two tables, but the first table holds username, password AND roles, and the second table only is a collection of role names, assigned with an id. So my tables look like this: table users username(login) | password | roleid peter | secret| 0 andy| terces| 1 table roles id | rolename 0 | admin 1 | someuser I tried several combinations of tables/columnnames in my realm config, but none worked. Thanks Peter -Ursprüngliche Nachricht- Von: andy gordon [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 21. Dezember 2005 12:51 An: Tomcat Users List Betreff: Re: Question configurung JBDCRealm (Tomcat 5.5.9) Peter, If I understand what you described, it looks like your database is ok but your specification to tomcat is ever so slightly off. Change your server.xml in a way so that the role elements reference the role table and not users table. HTH - andy [EMAIL PROTECTED] wrote: Hi all! I have got a question regarding setup of a JBDCRealm. I read the HOW-TO on Tomcat homepage, and I am wondering about the database structure. I have an existing application, and the database it uses has got a table 'users' with the follwing columns: login, password, roleid,... where the roleid is a foreign key to the table 'roles' which has columns 'id' and 'rolename'. It is sufficient for me because every user can only have one role. Is there a way to use this database structure with JDBCRealm? Or do I have to add more tables as described in the HOW-TO? My database structure already contains all information, so it would be overhead to produce an extra table, I think. I tried the following: debug=99 driverName=org.postgresql.Driver connectionURL=jdbc:postgresql://localhost:5432/ testwebapp?user=loginpassword=pwd userTable=users userNameCol=login userCredCol=password userRoleTable=users roleNameCol=roleid / but I got problems on roleNameCol=roleid. How can I get the rolename from table roles? Perhaps I missed something, and someone has an idea. Thanks Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat error
Hi there, sure enough I'm trying to run tomcat on Solaris 8 and tomcat 5.5.12. The error I'm getting in ${CATALINA_HOME}/logs/catalina.out again is Dec 21, 2005 12:02:35 PM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-5050 Dec 21, 2005 12:02:35 PM org.apache.jk.common.ChannelSocketacceptConnection= s WARNING: Exception executing accept java.net.SocketException: Invalid argument at java.net.PlainSocketImpl.socketSetOption(Native Method) at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264) at java.net.Socket.setSoLinger(Socket.java:869) at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:298= ) at org.apache.jk.common.ChannelSocket.acceptConnections( ChannelSocket.java:637) at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt( ChannelSocket.java:847) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Dec 21, 2005 12:02:36 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Dec 21, 2005 12:02:37 PM org.apache.coyote.http11.Http11BaseProtocol destro= y INFO: Stopping Coyote HTTP/1.1 on http-5050 Dec 21, 2005 12:02:37 PM org.apache.catalina.core.AprLifecycleListenerlifecycleEvent INFO: Failed shutdown of Apache Portable Runtime
tomcat-apache ajp13 connection problem (answer time)
hello there, i have two servers inside the dmz, one with redhat 9 the other with fedora core 4. the box running with fedora core has tomcat 5.5.9 and apache 2.0.54. the connection is made with ajp13. the redhat 9 has an older apache and java version. these two servers run separated, so each one has all it needs on its system. there are multiple virtual hosts and web applications on each server. accessing such a web application from localhost works well, the same when beeing inside the dmz and using a testclient. now the problem, requests from outside the dmz work still well for the redhat 9 installation, fedora core 4 however has answer times between page and image loads that are from multiple seconds to minutes! i have looked at all known log files, but got no errors at all, there is simply a wait time between multiple requests and i dont see why. running tomcat on port 80 as standalone however works correctly from outside the dmz. apache as standalone too. however as soon as the ajp13 connector connects the two, from outside the dmz requests slow down. has anybody an idea where i might have a closer look too to get this problem solved ? thanks a lot, stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DNS error, no reply from Tomcat and no clues in the log
I'm trying to upgrade to Tomcat 5.5.14 on Windows2000. The JRE is 1.4.2_03. I've deployed the compatability patch, and commented out the Apache Portable Runtime listener from the 'server.xml'. I encountered an error when starting Tomcat for the first time after installation. The service starts normally, but the browser reports a DNS error. Netstat reports that Tomcat is listening on 8080 (for IP 0.0.0.0). But if I telnet to the machine's IP address and connect to port 8080 there is no reply. Perhaps Tomcat is listening on a different IP? Most perplexing, the Tomcat logs show nothing unusual. Below are the (rather short) logs from my Tomcat startup. What's missing here? The Catalina logs stop before the expected 'org.apache.catalina.startup.HostConfig checkResources', WAR deployment and context loading. There are three areas I suspect issues to arise: - The Java environment is a bit weird, with several versions of the JDK on the system. When the Tomcat installer prompted for a JRE, the path suggested was invalid. I opted to use 'D:\j2sdk1.4.2_03\jre' since I can see there is a JRE there, and JAVA_HOME points to 'D:\j2sdk1.4.2_03'. If I enter 'java -version' at the command line, I get: java version 1.4.2_03 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02) Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode) - A JK2 ISAPI redirector is in place, and I'm working the installation around it. This is because we can't restart the World Wide Web publishing service - it's a production service. - There's a separate instance of JRun on the machine, listening on port 8000 I think. Is that the same as the MBean Server? Any suggestions would be helpful. Jakarta Service Log ` [2005-12-21 19:13:07] [info] Running Service... [2005-12-21 19:13:07] [info] Starting service... [2005-12-21 19:13:09] [info] Service started in 1531 ms. Catalina Log ``` Dec 21, 2005 7:13:11 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Dec 21, 2005 7:13:12 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 2890 ms Dec 21, 2005 7:13:12 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Dec 21, 2005 7:13:12 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.14 Dec 21, 2005 7:13:12 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Dec 21, 2005 7:13:21 PM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Dec 21, 2005 7:13:22 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Dec 21, 2005 7:13:22 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/110 config=null Dec 21, 2005 7:13:22 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 10203 ms STDOUT Log ``` Created MBeanServer with ID: 197a37c:1084d05bf2a:-8000:sinccbwb2kp02:1 Localhost Log ``` Dec 21, 2005 7:13:15 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Dec 21, 2005 7:13:15 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Dec 21, 2005 7:13:16 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Dec 21, 2005 7:13:16 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Dec 21, 2005 7:13:18 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Dec 21, 2005 7:13:18 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Regards, Bill Claxton ([EMAIL PROTECTED]) MSN: [EMAIL PROTECTED] Skype: [EMAIL PROTECTED] Blog: http://learningweb.blogspot.com
Re: Question configurung JBDCRealm (Tomcat 5.5.9)
Guten Tag Peter Since rolNameCol is defined as The name of the column, in the user roles table, that contains the name of a role assigned to this user. so you will need 2 tables 'users' and 'user-roles' Then you will need to create 2 tables 'users' and 'user-roles' where user_name is a foreign key to role assigned within the 'user_roles' table create table users ( user_name varchar(15) not null primary key, user_pass varchar(15) not null ); create table user_roles ( user_name varchar(15) not null, role_name varchar(15) not null, primary key (user_name, role_name) ); begreife? Martin - Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://localhost:389; userPattern=uid={0},ou=people,dc=mycompany,dc=com roleBase=ou=groups,dc=mycompany,dc=com roleName=cn roleSearch=(uniqueMember={0}) / - Original Message - From: [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, December 21, 2005 6:03 AM Subject: Question configurung JBDCRealm (Tomcat 5.5.9) Hi all! I have got a question regarding setup of a JBDCRealm. I read the HOW-TO on Tomcat homepage, and I am wondering about the database structure. I have an existing application, and the database it uses has got a table 'users' with the follwing columns: login, password, roleid,... where the roleid is a foreign key to the table 'roles' which has columns 'id' and 'rolename'. It is sufficient for me because every user can only have one role. Is there a way to use this database structure with JDBCRealm? Or do I have to add more tables as described in the HOW-TO? My database structure already contains all information, so it would be overhead to produce an extra table, I think. I tried the following: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.postgresql.Driver connectionURL=jdbc:postgresql://localhost:5432/ testwebapp?user=loginamp;password=pwd userTable=users userNameCol=login userCredCol=password userRoleTable=users roleNameCol=roleid / but I got problems on roleNameCol=roleid. How can I get the rolename from table roles? Perhaps I missed something, and someone has an idea. Thanks Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: access denied to Tomcat manager
I had a user with manager role, however that did not resolve the problem. Could it be that the Tomcat Manager application was inadvertently undeployed and that it needs to be redeployed? If so, how does one redeploy the manager? Thanks! -Original Message- From: Warren Pace [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 21, 2005 4:43 AM To: Tomcat Users List Subject: Re: Re: access denied to Tomcat manager Could be as simple as not having added a user with manager role to tomcat-users.xml. From: vineesh kumar [EMAIL PROTECTED] Date: 2005/12/21 Wed AM 12:58:08 EST To: Tomcat Users List users@tomcat.apache.org Subject: Re: access denied to Tomcat manager you may not have access permission to the directory containing the manager utils, check the permission of the directory webapps an others On 12/21/05, Ariel Pashtan [EMAIL PROTECTED] wrote: Hi, For some reason I cannot access the Tomcat Manager application from the Tomcat home page. While I can access Tomcat Administration, access to the manager is denied: HTTP Status 403 - Access to the requested resource has been denied Any suggestions on how to resolve this? Thanks for your help! Ariel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DNS error, no reply from Tomcat and no clues in the log
From: Caldarale, Charles R Subject: RE: DNS error, no reply from Tomcat and no clues in the log From: William Claxton [mailto:[EMAIL PROTECTED] Subject: DNS error, no reply from Tomcat and no clues in the log But if I telnet to the machine's IP address and connect to port 8080 there is no reply. Firewall, perhaps? I just tried this on two different platforms and get no response to a telnet open on an active, verified functional Tomcat port, so the no reply behavior appears to be normal. - 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apr port + tomcat
Thomas Hartwig wrote: Hello, I try to use the APR (1.2.2) in conjunction with tomcat 5.5.12 and tomcat-native-1.1.0. All works fine except one thing: I can only use it with root privileges, because the tomcat connector wants to establish the port 98 for its communication (see stacktrace below). I have not found a possibility to change this behaviour, do you have an idea how to reconfigure this port? For security reasons I would like to run tomcat under an unprivileged user. Hello. I've exactly the same stack. No process is using port 98, but as I'm not a root user, I can't bind on this address. I don't wan't to start the server as Root, I will double check the docs to see if I've forgot something, but if someone has the answer... best regards. Aurélien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apr port + tomcat
Aurélien DEHAY wrote: I've exactly the same stack. No process is using port 98, but as I'm not a root user, I can't bind on this address. This message (98) is APR OS error (EADDRINUSE). Tomcat has been changed to display the real message (5.5.13+) instead the OS errno. I don't wan't to start the server as Root, I will double check the docs to see if I've forgot something, but if someone has the answer... The reason is probably because either real port (8080) is in use or the previous Tomcat version was shut down improperly. Wait a wile (cca 240 sec) until the OS recycles the zombie descriptor. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error - processCallbacks status 2
Hello, I'm using : - Apache 1.3.33 - Tomcat 5 - mod_jk I have processCallbacks status 2 in the log catalina.out . This error appends frequently. Does anyone met this problem. Thank you in advance for help, Damiens.
Illegal Access
Greetings All Some of the pages on a site running on localhost is throwing an Illegal Access error with java.net.BindException. I cannot think why some pages are causing this and other are not. I am running WindowsXP with Tomcat 5.5.12. Any ideas what may be causing this? Thank you in advance. -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Business.Solution.Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error - processCallbacks status 2
Hello There appears to be a mis-configuration in the jk-handlers could you forward the applicable /etc/httpd/conf.d/mod_jk.conf AND /etc/httpd/conf/mod_jk.properties Anyone else? Martin- - Original Message - From: LEBLANC, Damiens [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, December 21, 2005 10:31 AM Subject: Error - processCallbacks status 2 Hello, I'm using : - Apache 1.3.33 - Tomcat 5 - mod_jk I have processCallbacks status 2 in the log catalina.out . This error appends frequently. Does anyone met this problem. Thank you in advance for help, Damiens.
Re: Illegal Access
what does the ConnectorPort specified for catalina's default non-SSL HTTP/1.1 Connector say? what does stdout_MMDD.log say? If your run netstat -a do you see the hostname:ConnectorPort is the state in a 'listening' mode ? Martin- - Original Message - From: Schalk [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, December 21, 2005 10:51 AM Subject: Illegal Access Greetings All Some of the pages on a site running on localhost is throwing an Illegal Access error with java.net.BindException. I cannot think why some pages are causing this and other are not. I am running WindowsXP with Tomcat 5.5.12. Any ideas what may be causing this? Thank you in advance. -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Business.Solution.Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Illegal Access
From: Schalk [mailto:[EMAIL PROTECTED] Subject: Re: Illegal Access To add onto this, what is the default username and password for the Tomcat Manager application? There isn't one. You have to add the appropriate userid and role to your authentication realm (conf/tomcat-users.xml, by default). - 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apr port + tomcat
Hello. Mladen Turk wrote: Aurélien DEHAY wrote: I've exactly the same stack. No process is using port 98, but as I'm not a root user, I can't bind on this address. This message (98) is APR OS error (EADDRINUSE). Tomcat has been changed to display the real message (5.5.13+) instead the OS errno. I don't wan't to start the server as Root, I will double check the docs to see if I've forgot something, but if someone has the answer... The reason is probably because either real port (8080) is in use or the previous Tomcat version was shut down improperly. Wait a wile (cca 240 sec) until the OS recycles the zombie descriptor. Ok, I'll check that, thank you. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apr port + tomcat
Aurélien DEHAY wrote: Hello. Mladen Turk wrote: The reason is probably because either real port (8080) is in use or the previous Tomcat version was shut down improperly. Wait a wile (cca 240 sec) until the OS recycles the zombie descriptor. Ok, I'll check that, thank you. Works fine. Very fine. A huge thanks. Aurélien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error - processCallbacks status 2
Please display these entries from your httpd.conf file LoadModule JKWorkersFile JKLogFile JKLogLevel JKMount Merci Martin- - Original Message - From: LEBLANC, Damiens [EMAIL PROTECTED] To: Martin Gainty [EMAIL PROTECTED] Cc: users@tomcat.apache.org Sent: Wednesday, December 21, 2005 11:11 AM Subject: RE: Error - processCallbacks status 2 Thank you for your response, But, I have no files mod_jk.conf and mod_jk.properties. The jk handler is compiled with Apache 1.3.33 and I'm working on SUN/Solaris 8 platform. I have only: - httpd.conf which contains (for section 1 and section 2): ## ## httpd.conf -- Apache HTTP server configuration file ## hbergement Entreprise Web Hosting ### Section 1: Identification du serveur ## #ResourceConfig conf/srm.conf #AccessConfig conf/access.conf ServerName nr0u0194 ServerAdmin [EMAIL PROTECTED] ServerSignature Off #LoadModule ssl_modulelibexec/libssl.so #LoadModule jk_module libexec/mod_jk.so LoadModule php4_modulelibexec/libphp4.so #LoadModule php5_modulelibexec/libphp5.so #AddModule mod_jk.c AddModule mod_php4.c #AddModule mod_php5.c ### Section 2: Definition des parametres de connections au plugin apj13 (tomcat) ##- JkWorkersFile /appli/apache/apache_dist/conf/workers.properties JkLogFile /appli/apache/log/httpd/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] #JkShmFile /appli/apache/log/httpd/jksmfile #JkShmSize 20M - worker.properties which contains : worker.list=ajp13 worker.ajp13.type=ajp13 worker.ajp13.host=10.92.41.189 worker.ajp13.port=8002 Thanks in Advance, Damiens. -Message d'origine- De : Martin Gainty [mailto:[EMAIL PROTECTED] Envoyé : mercredi 21 décembre 2005 16:58 À : LEBLANC, Damiens Cc : users@tomcat.apache.org Objet : Re: Error - processCallbacks status 2 Hello There appears to be a mis-configuration in the jk-handlers could you forward the applicable /etc/httpd/conf.d/mod_jk.conf AND /etc/httpd/conf/mod_jk.properties Anyone else? Martin- - Original Message - From: LEBLANC, Damiens [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, December 21, 2005 10:31 AM Subject: Error - processCallbacks status 2 Hello, I'm using : - Apache 1.3.33 - Tomcat 5 - mod_jk I have processCallbacks status 2 in the log catalina.out . This error appends frequently. Does anyone met this problem. Thank you in advance for help, Damiens. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Illegal Access
Martin Gainty wrote: what does the ConnectorPort specified for catalina's default non-SSL HTTP/1.1 Connector say? what does stdout_MMDD.log say? If your run netstat -a do you see the hostname:ConnectorPort is the state in a 'listening' mode ? Martin- - Original Message - From: Schalk [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, December 21, 2005 10:51 AM Subject: Illegal Access Greetings All Some of the pages on a site running on localhost is throwing an Illegal Access error with java.net.BindException. I cannot think why some pages are causing this and other are not. I am running WindowsXP with Tomcat 5.5.12. Any ideas what may be causing this? Thank you in advance. what does the ConnectorPort specified for catalina's default non-SSL HTTP/1.1 Connector say? -- Is this the port used to access all non SSL apps in webapps? If so, this is localhost:8080 No stdout_MMDD.log for today is written. Ran netstat -a but could not find hostname:ConnectorPort (I am assuming hostname will be localhost in this case) in Local or Foreign addresses. Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Business.Solution.Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ServletContextListener - how to detect http path of web application?
Tim is right, you can't do it directly. You *might* be able to construct it in a roundabout way though... Let's assumg you know the method, http vs. https, and its always one or the other. Let's also assume that the display-name element in web.xml names the application context (i.e., if the URL is http://myserver/myapp, then display-namemyappdisplay-name. I believe the following (without actually trying it) would work... String s = http://;; s += new InetAddress.getHostName(); s += / + servletContext.getServletContextName(); Kind of hack solution, but it might be OK for your application (assuming it actually works!) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Wed, December 21, 2005 6:22 am, Tim Funk said: There is no way to detect the contextPath on servletInit. It can only be done after the first request. (Using HttpServletRequest.getContextPath()) -Tim [EMAIL PROTECTED] wrote: Hi, Apols for a newbie question, I didn't have much luck with the archives or in Google. In my ServletContextListener.contextInitialized method, I need to detect the public http path of my web app. i.e. http://servername/approot/ How can I do this? event.getServletContext().getResource(/) gives me jndi:/localhost/, not very helpful. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.x context path priority
Hi David, Thanks for your reply. But i didn't got it properly; How do you say that the defined context with /myapps/conf will get precedence over /myapps and subfolder conf in this application ?? The document you referred is for tomcat 5.5, is that also same for tomcat 5.0.x versions? Any tomcat developers wish to contribute? foojava On 12/20/05, David Smith [EMAIL PROTECTED] wrote: Just looking up some other info, I ran accross this which directly answers your question: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html --David David Smith wrote: I'm not sure there is a documented spec on this at the container (tomcat) level. One of the tomcat developers would know best about this, but I would imagine tomcat handles such issues the same way servlet mappings within a webapp are handled. The longest matching path is the one that's chosen. --David foo java wrote: Hi, I am trying to find a documented solution for one of my problems with tomcat contexts. I would like to ask about the tomcat servlet container( 5.x) and it's prioritised handling of the context paths in the following situation. A pointer to official documentation will be of much help to me. If you consider the following structure for my application(web) source: myapps myapps--conf myapps--JSP myapps--WEB-INF myapps--WEB-INF/classes The conf directory in my application holds css and images. Suppose, i deployed one of my context in tomcat as context path=/myapps docBase=/path/to/source /context The situation is there are many contexts deployed in the tomcat using the same source (myapps). But, if i want to make some of the contexts to have it's own conf directory and using the docbase as normal for sources. I am planning to do it the following way: if i deploy one more context say /myapps/conf context path=/myapps/conf docBase=/external/path/to/conf/dir /context P.S: i have used a / to add conf path to the new context. FINAL DOUBT Is it ensured by the tomcat container that any request that comes for /myapps/conf will be directed to the new context deployed and not within the sources. I have tested it and it seems to work as fine. But i need official documentation (for my superiors not to say that i assume!!) which shows the priority in which tomcat considers the request processing. I hope i m able to convey my query. thanks and regards, foojava - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Tomcat 5.5.7][Win2K Server]Network hangs when TC running
Hi, We're facing a strange problem here with Tomcat 5.5.7 When it is running for a while, the network just hangs: it doesn't even reply to ping requests and netstat blocks after showing three or four results. It happens even when Tomcat doesn't receive any request. Then, if we stop Tomcat, the server starts replying to the ping requests. Same if we access our webapp from the server (using 'localhost' in the url). I've never seen something like that. It's making us crazy. Any help or any idea about the reason for this will be greatly appreciated. Thanks, Jean-Pol.
RE: ServletContextListener - how to detect http path of web application?
Thanks, I might try that. I already made a javax.servlet.Filter, that catches the first request to the server, calls HttpServletRequest.getContextPath(), and stores the result. Of course the Filter actually gets hit on *every single request* to the server. You might call it a brute force solution :-) Iain -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: 21 December 2005 17:00 To: Tomcat Users List Cc: Tomcat Users List Subject: Re: ServletContextListener - how to detect http path of web application? Tim is right, you can't do it directly. You *might* be able to construct it in a roundabout way though... Let's assumg you know the method, http vs. https, and its always one or the other. Let's also assume that the display-name element in web.xml names the application context (i.e., if the URL is http://myserver/myapp, then display-namemyappdisplay-name. I believe the following (without actually trying it) would work... String s = http://;; s += new InetAddress.getHostName(); s += / + servletContext.getServletContextName(); Kind of hack solution, but it might be OK for your application (assuming it actually works!) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Wed, December 21, 2005 6:22 am, Tim Funk said: There is no way to detect the contextPath on servletInit. It can only be done after the first request. (Using HttpServletRequest.getContextPath()) -Tim [EMAIL PROTECTED] wrote: Hi, Apols for a newbie question, I didn't have much luck with the archives or in Google. In my ServletContextListener.contextInitialized method, I need to detect the public http path of my web app. i.e. http://servername/approot/ How can I do this? event.getServletContext().getResource(/) gives me jndi:/localhost/, not very helpful. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For more information about Barclays Capital, please visit our web site at http://www.barcap.com. Internet communications are not secure and therefore the Barclays Group does not accept legal responsibility for the contents of this message. Although the Barclays Group operates anti-virus programmes, it does not accept responsibility for any damage whatsoever that is caused by viruses being passed. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Barclays Group. Replies to this email may be monitored by the Barclays Group for operational or business reasons. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat NTLM authentication
Hello Everybody, I have implemented the Samba solution to authenticate MSIE clients against a windows domain controller and, If the credentials are correct, then they are authenticated and the user is authorized to see a particular page. So everything is good. Now, if I insert wrong credentials then a blank/white page is returned to my browser. I would like to add an error message to this page so the user will be noticed that his credentials have not been accepted. I have added the following error-page tags in my conf/web.xml file with no results. error-page error-code404/error-code location/404.jsp/location /error-page error-page error-code500/error-code location/500.jsp/location /error-page error-page exception-typejava.lang.Throwable/exception-type location/all_errors.jsp/location /error-page Is there any way to get a solution to this problem? I appreciate your feedback. Thank you, -Camil
Re: ServletContextListener - how to detect http path of web application?
Iain- Unless of course you only make this assignment in the init method Thanks, Martin- - Original Message - From: [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, December 21, 2005 12:17 PM Subject: RE: ServletContextListener - how to detect http path of web application? Thanks, I might try that. I already made a javax.servlet.Filter, that catches the first request to the server, calls HttpServletRequest.getContextPath(), and stores the result. Of course the Filter actually gets hit on *every single request* to the server. You might call it a brute force solution :-) Iain -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: 21 December 2005 17:00 To: Tomcat Users List Cc: Tomcat Users List Subject: Re: ServletContextListener - how to detect http path of web application? Tim is right, you can't do it directly. You *might* be able to construct it in a roundabout way though... Let's assumg you know the method, http vs. https, and its always one or the other. Let's also assume that the display-name element in web.xml names the application context (i.e., if the URL is http://myserver/myapp, then display-namemyappdisplay-name. I believe the following (without actually trying it) would work... String s = http://;; s += new InetAddress.getHostName(); s += / + servletContext.getServletContextName(); Kind of hack solution, but it might be OK for your application (assuming it actually works!) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Wed, December 21, 2005 6:22 am, Tim Funk said: There is no way to detect the contextPath on servletInit. It can only be done after the first request. (Using HttpServletRequest.getContextPath()) -Tim [EMAIL PROTECTED] wrote: Hi, Apols for a newbie question, I didn't have much luck with the archives or in Google. In my ServletContextListener.contextInitialized method, I need to detect the public http path of my web app. i.e. http://servername/approot/ How can I do this? event.getServletContext().getResource(/) gives me jndi:/localhost/, not very helpful. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For more information about Barclays Capital, please visit our web site at http://www.barcap.com. Internet communications are not secure and therefore the Barclays Group does not accept legal responsibility for the contents of this message. Although the Barclays Group operates anti-virus programmes, it does not accept responsibility for any damage whatsoever that is caused by viruses being passed. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Barclays Group. Replies to this email may be monitored by the Barclays Group for operational or business reasons. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Illegal Access
Ariel Pashtan wrote: I may have a similar problem where I cannot access the manager application although the user rights are set correctly. The logon prompt is not even shown - the access denied status is shown immediately. Not sure what the problem is... -Original Message- From: Schalk [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 21, 2005 10:30 AM To: Tomcat Users List Subject: Re: Illegal Access Caldarale, Charles R wrote: From: Schalk [mailto:[EMAIL PROTECTED] Subject: Re: Illegal Access To add onto this, what is the default username and password for the Tomcat Manager application? There isn't one. You have to add the appropriate userid and role to your authentication realm (conf/tomcat-users.xml, by default). - Chuck It is set as such: user username=admin password=tomcat roles=admin,manager/ Another aspect is that I am using ANT to do the stopping ans starting, here are the tasks: target name=start description=Start Tomcat application start url=${tomcat.manager.url} username=${tomcat.manager.username} password=${tomcat.manager.password} path=/${name}/ /target target name=stop description=Stop Tomcat application stop url=${tomcat.manager.url} username=${tomcat.manager.username} password=${tomcat.manager.password} path=/${name}/ /target For username and password I have them set as previously mentioned in the build.properties file. -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Business.Solution.Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ServletContextListener - how to detect http path of web application?
Frank, your solution (using the ServletContext) does work. Thanks. Martin, I can't get a HttpServletRequest from Filter.init. I can get a ServletContext... but I can also get that from a ServletContextListener. So I can throw away this silly Filter now. Cheers everyone. -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: 21 December 2005 17:28 To: Shepherd, Iain: IT (LDN) Cc: Tomcat Users List Subject: Re: ServletContextListener - how to detect http path of web application? Iain- Unless of course you only make this assignment in the init method Thanks, Martin- - Original Message - From: [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, December 21, 2005 12:17 PM Subject: RE: ServletContextListener - how to detect http path of web application? Thanks, I might try that. I already made a javax.servlet.Filter, that catches the first request to the server, calls HttpServletRequest.getContextPath(), and stores the result. Of course the Filter actually gets hit on *every single request* to the server. You might call it a brute force solution :-) Iain -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: 21 December 2005 17:00 To: Tomcat Users List Cc: Tomcat Users List Subject: Re: ServletContextListener - how to detect http path of web application? Tim is right, you can't do it directly. You *might* be able to construct it in a roundabout way though... Let's assumg you know the method, http vs. https, and its always one or the other. Let's also assume that the display-name element in web.xml names the application context (i.e., if the URL is http://myserver/myapp, then display-namemyappdisplay-name. I believe the following (without actually trying it) would work... String s = http://;; s += new InetAddress.getHostName(); s += / + servletContext.getServletContextName(); Kind of hack solution, but it might be OK for your application (assuming it actually works!) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Wed, December 21, 2005 6:22 am, Tim Funk said: There is no way to detect the contextPath on servletInit. It can only be done after the first request. (Using HttpServletRequest.getContextPath()) -Tim [EMAIL PROTECTED] wrote: Hi, Apols for a newbie question, I didn't have much luck with the archives or in Google. In my ServletContextListener.contextInitialized method, I need to detect the public http path of my web app. i.e. http://servername/approot/ How can I do this? event.getServletContext().getResource(/) gives me jndi:/localhost/, not very helpful. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For more information about Barclays Capital, please visit our web site at http://www.barcap.com. Internet communications are not secure and therefore the Barclays Group does not accept legal responsibility for the contents of this message. Although the Barclays Group operates anti-virus programmes, it does not accept responsibility for any damage whatsoever that is caused by viruses being passed. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Barclays Group. Replies to this email may be monitored by the Barclays Group for operational or business reasons. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Seamless Container Authentication
Our users don't currently logon to our Tomcat servers directly; they are redirected to the Tomcat servers with their encrypted credentials (a security token). Our Tomcat Database Realm then seamlessly re-authenticates the user on the Tomcat server. We currently don't use Tomcat's container management for this but would like to but we need a way to logon to a Tomcat server instance seamlessly using the security credentials provided on the URL. We currently call servlets that then call the Database Realm directly. Is there a way to configure Tomcat so that when a protected resource is accessed it will attempt to authenticate the user to the container from the remote/custom Security Credentials in the URL before prompting the user for their Security Credentials ('j_security_check' logon page)? Thanks, Robert
Re: tomcat 5.x context path priority
That passage hasn't changed since Tomcat 4. Think of it this way. When the request comes in, the very first decision tomcat has to make is what context should handle the request. It compares the incoming URI to it's list of context paths and sends the request to the context with the longest match. The next decision tomcat makes is what servlet mapping within a context is to handle the request. Again, the longest match wins. This is how index.html of the admin webapp trumps /admin/index.html of the ROOT context when the admin webapp is installed. The ROOT context path is simply while the admin webapp's context path is /admin. Admin being the longest match wins. By extension if you had a context named admins and the request is to /admins/index.html, it would go to the admins context instead of the admin context. Again, longest match wins. --David foo java wrote: Hi David, Thanks for your reply. But i didn't got it properly; How do you say that the defined context with /myapps/conf will get precedence over /myapps and subfolder conf in this application ?? The document you referred is for tomcat 5.5, is that also same for tomcat 5.0.x versions? Any tomcat developers wish to contribute? foojava On 12/20/05, David Smith [EMAIL PROTECTED] wrote: Just looking up some other info, I ran accross this which directly answers your question: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html --David David Smith wrote: I'm not sure there is a documented spec on this at the container (tomcat) level. One of the tomcat developers would know best about this, but I would imagine tomcat handles such issues the same way servlet mappings within a webapp are handled. The longest matching path is the one that's chosen. --David foo java wrote: Hi, I am trying to find a documented solution for one of my problems with tomcat contexts. I would like to ask about the tomcat servlet container( 5.x) and it's prioritised handling of the context paths in the following situation. A pointer to official documentation will be of much help to me. If you consider the following structure for my application(web) source: myapps myapps--conf myapps--JSP myapps--WEB-INF myapps--WEB-INF/classes The conf directory in my application holds css and images. Suppose, i deployed one of my context in tomcat as context path=/myapps docBase=/path/to/source /context The situation is there are many contexts deployed in the tomcat using the same source (myapps). But, if i want to make some of the contexts to have it's own conf directory and using the docbase as normal for sources. I am planning to do it the following way: if i deploy one more context say /myapps/conf context path=/myapps/conf docBase=/external/path/to/conf/dir /context P.S: i have used a / to add conf path to the new context. FINAL DOUBT Is it ensured by the tomcat container that any request that comes for /myapps/conf will be directed to the new context deployed and not within the sources. I have tested it and it seems to work as fine. But i need official documentation (for my superiors not to say that i assume!!) which shows the priority in which tomcat considers the request processing. I hope i m able to convey my query. thanks and regards, foojava - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
log4j - Class.forname - black magie
Hello I succeed by black magie to have log via log4j under tomcat 5.5.9. So when a call my servlet, I have some trace into a file (/tmp/phl.log). I said black magie, because I had a lot of problems to put the log4.jar in the right place. Now, I have just installed the tomcat 5.5.12, reinstalled by web application and of course the same log4j.properties file. But no more trace. So As I have no change the lo4j.properties, I think it is a tomcat problem. Tests : On another computer : installation of tomcat 5.5.12 (+ compat for JRE 1.4) + modify HelloWorld example code to have trace with log4j. Call the servlet = Get exception : Class logger (from log4j) is not found. OK Add in apache_tomcat.5.5.12/shared/lib the log4j.jar, call the servlet, get the HTML page and the trace into a file. OK Go back on the first computer : suppress all log4j.jar into the Tomcat Environment (/apache-tomcat-5.5.12). Call the servlet = Get the HTML content, No trace, and of course no exception ! Why ? Where does tomcat find the log4j.jar ? Just for fun, I add in my servlet code : try { l = Class.forName(Logger) ; } catch (java.lang.ClassNotFoundException ex) { reshtml.putString(pEX Class not Found /p) ; } Call the servlet = Get the HTML content + EX Class not Found + No trace, and of course no exception. If I replace Logger by a tool class (that I use to generated the HTML code), the same exception message, but I see the HTML code, so I see the result of the tool class that produces this HTML code. Questions : - It seems that Class.forName does not work in tomcat. Why ? bad definition ot the PATH ? - How to set the PATH for Class.forName ? - Where is the log4j.jar ? Or Why does I have no exception ? Is there some cache into the TOMCAT server ? - Is it possible to load by hand log4j (with Class.forName or other mechanism) and then get (How ? ) the path used to get this library ? - And the main question : How must I configure the tomcat server to have log4j trace into my servlet code ? Which version of log4j (5.2.11, or more ) ? Whee must I put the log4j.jar : tomcat.5.5.12/share/lib ? Thanks PHL. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0 : 401 errors do NOT send back a www-authenticate field :(
2005/12/19, Francis Galiegue [EMAIL PROTECTED]: Hello, As the subject says, we have a problem with Tomcat 5.0 (5.0.27 through 5.0.30 to be precise) where a servlet invoked from tomcat5 does NOT send a www-authenticate header back, resulting in a definitive 401 error. This violates RFC 2616 (paragraph 14.47). Well, nevermind, the error came from the application... It sent the error before setting the header. Sorry for the inconvenience... Have fun, -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] One2team - 12bis rue de la Pierre Levée, 75011 Paris - 0143381980 When it comes to performance, weight is everything - Tiff Needell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ServletContextListener - how to detect http path of web application?
Subject: Re: ServletContextListener - how to detect http path of web application? We have a similar sounding problem. We want a ContextListener to be able to determine the http path and the port, in order to advertise webapps via ZeroConf MDNS (Rendezvous, Bonjour, whatever they are calling it this week.) Currently we have to configure the path and port in web.xml. Is there a way to get the information out of an MBean or something? JBoss-specific would be okay. Because of the way we configure it, it's entirely possible for the URI and port to be wrong. Since it's in a listener declaration, and not in the servlet itself, we really haven't found any solutions. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Which version of Tomcat on SuSE?
Which version of Tomcat should I use on SuSE Enterprise Server v9? Nigel DeFreitas Insurance Services Office 201 469 3939
Re: Which version of Tomcat on SuSE?
Hi Nigel, The answer of this question depends upon many aspects like, (1) What kind of web-application would you like to serve with Tomcat? (2) Which J2SE\J2RE version are you using? (3) Do you require any special things from Tomcat besides an application server? I mean does your application rely on certain code of Tomcat? Tomcat is independent from operating system. It can be configured to achieve highest performace differently in different environment. So if you can post little detail about your setup environment , may be Tomcat experts can answer the question easily on this forum. Hope it helps. Regards, Dhaval --- DeFreitas, Nigel [EMAIL PROTECTED] wrote: Which version of Tomcat should I use on SuSE Enterprise Server v9? Nigel DeFreitas Insurance Services Office 201 469 3939 __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
bug in manager port?
Hi, When the standard port 8080 is used for Tomcat, there are no issues with accessing the Tomcat Manager application. However, when another port is used (defined in server.xml), access to the manager is denied. Could it be a bug, where the port number 8080 is hard-coded in some place? Ariel
Re: bug in manager port?
Ariel Pashtan wrote: When the standard port 8080 is used for Tomcat, there are no issues with accessing the Tomcat Manager application. However, when another port is used (defined in server.xml), access to the manager is denied. Could it be a bug, where the port number 8080 is hard-coded in some place? Nope. The manager works fine on port 80 (or for that matter any other port I've ever tried) :-) Something else in your configuration is causing your problem. -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE: Error - processCallbacks status 2
Is the LoadModule jk_module line in your httpd.conf commented out? From: LEBLANC, Damiens [EMAIL PROTECTED] Date: 2005/12/21 Wed AM 11:11:47 EST To: Martin Gainty [EMAIL PROTECTED] CC: users@tomcat.apache.org Subject: RE: Error - processCallbacks status 2 Thank you for your response, But, I have no files mod_jk.conf and mod_jk.properties. The jk handler is compiled with Apache 1.3.33 and I'm working on SUN/Solaris 8 platform. I have only: - httpd.conf which contains (for section 1 and section 2): ## ## httpd.conf -- Apache HTTP server configuration file ## hbergement Entreprise Web Hosting ### Section 1: Identification du serveur ## #ResourceConfig conf/srm.conf #AccessConfig conf/access.conf ServerName nr0u0194 ServerAdmin [EMAIL PROTECTED] ServerSignature Off #LoadModule ssl_modulelibexec/libssl.so #LoadModule jk_module libexec/mod_jk.so LoadModule php4_modulelibexec/libphp4.so #LoadModule php5_modulelibexec/libphp5.so #AddModule mod_jk.c AddModule mod_php4.c #AddModule mod_php5.c ### Section 2: Definition des parametres de connections au plugin apj13 (tomcat) ##- JkWorkersFile /appli/apache/apache_dist/conf/workers.properties JkLogFile /appli/apache/log/httpd/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] #JkShmFile /appli/apache/log/httpd/jksmfile #JkShmSize 20M - worker.properties which contains : worker.list=ajp13 worker.ajp13.type=ajp13 worker.ajp13.host=10.92.41.189 worker.ajp13.port=8002 Thanks in Advance, Damiens. -Message d'origine- De : Martin Gainty [mailto:[EMAIL PROTECTED] Envoyé : mercredi 21 décembre 2005 16:58 À : LEBLANC, Damiens Cc : users@tomcat.apache.org Objet : Re: Error - processCallbacks status 2 Hello There appears to be a mis-configuration in the jk-handlers could you forward the applicable /etc/httpd/conf.d/mod_jk.conf AND /etc/httpd/conf/mod_jk.properties Anyone else? Martin- - Original Message - From: LEBLANC, Damiens [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, December 21, 2005 10:31 AM Subject: Error - processCallbacks status 2 Hello, I'm using : - Apache 1.3.33 - Tomcat 5 - mod_jk I have processCallbacks status 2 in the log catalina.out . This error appends frequently. Does anyone met this problem. Thank you in advance for help, Damiens. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Which version of Tomcat on SuSE?
I'm not tied to a specific version of JDK/Servlet spec. It's just going to be a web module serving up a simple web-service protected by basic auth. Thanks. -Original Message- From: Dhaval Patel [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 21, 2005 5:02 PM To: Tomcat Users List Subject: Re: Which version of Tomcat on SuSE? Hi Nigel, The answer of this question depends upon many aspects like, (1) What kind of web-application would you like to serve with Tomcat? (2) Which J2SE\J2RE version are you using? (3) Do you require any special things from Tomcat besides an application server? I mean does your application rely on certain code of Tomcat? Tomcat is independent from operating system. It can be configured to achieve highest performace differently in different environment. So if you can post little detail about your setup environment , may be Tomcat experts can answer the question easily on this forum. Hope it helps. Regards, Dhaval --- DeFreitas, Nigel [EMAIL PROTECTED] wrote: Which version of Tomcat should I use on SuSE Enterprise Server v9? Nigel DeFreitas Insurance Services Office 201 469 3939 __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Which version of Tomcat on SuSE?
From: DeFreitas, Nigel [mailto:[EMAIL PROTECTED] Subject: RE: Which version of Tomcat on SuSE? I'm not tied to a specific version of JDK/Servlet spec. It's just going to be a web module serving up a simple web-service protected by basic auth. The 5.5.x series demonstrates noticeably better performance than previous versions, and requires only a JRE, not a JDK. If you're running on a 1.4 JRE, you'll also need the compatibility package, which is on the main Tomcat download page. - 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mod_jk and Security
I'm abstracting it to a db with a timeout included. That way both Tomcat and Apache can check for a valid user. --- Dave Morrow [EMAIL PROTECTED] wrote: Hi all. I have a website running under Tomcat 5.5.9 I would like to use mod_jk to allow Apache to serve all static content however, I cannot figure out how to serve this content only if the user has already logged into the application. This application uses Tomcat sessions. Anyone have experience in this? David A. Morrow Technical Systems Lead Autodata Solutions Company [EMAIL PROTECTED] http://www.autodata.net NEW !!! Tel: (519) 963-3020 Fax: (519) 451-6615 Poor planning on your part does not necessarily constitute an emergency on my part! This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk (1.2.14 1.2.15) bug
Hello, Recently I found a possibel mod_jk bug. I'm using Apache 1.3.34, mod_jk 1.2.14, and Jetty 5.1.15. The bug surfaced once I started rewriting URLs with mod_rewrite. It appears that mod_jk sends a cookie2 header as cookie header, which Jetty cannot handle. The full description of the problem, including HTTP headers that I sniffed with a proxy can be found here: http://my.opera.com/community/forums/topic.dml?id=112287 Initially I thought this was a bug in Opera or in Jetty, but a person in the above thread pointed out this is a (known?) mod_jk bug. I looked around tomcat.apache.org, but couldn't find a link to JIRA or Bugzilla, nor a list of known issues. Does anyone know anything about this? Is this a known issue? I'd be VERY happy to help narrow this down. Thanks, Otis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DNS error, no reply from Tomcat and no clues in the log
Charles, Compare an unused port and an active Tomcat, and there is a difference. Tomcat will clear the screen and wait for input. An unused port will appear to hang there and eventually time out. For our production server, after Tomcat installation the Telnet session appears like its communicating with an unused port (no listener). At 10:32 PM 12/21/2005, you wrote: From: Caldarale, Charles R Subject: RE: DNS error, no reply from Tomcat and no clues in the log From: William Claxton [mailto:[EMAIL PROTECTED] Subject: DNS error, no reply from Tomcat and no clues in the log But if I telnet to the machine's IP address and connect to port 8080 there is no reply. Firewall, perhaps? I just tried this on two different platforms and get no response to a telnet open on an active, verified functional Tomcat port, so the no reply behavior appears to be normal. - 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Regards, Bill Claxton ([EMAIL PROTECTED]) MSN: [EMAIL PROTECTED] Skype: [EMAIL PROTECTED] Blog: http://learningweb.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DNS error, no reply from Tomcat and no clues in the log
From: William Claxton [mailto:[EMAIL PROTECTED] Subject: RE: DNS error, no reply from Tomcat and no clues in the log Compare an unused port and an active Tomcat, and there is a difference. Tomcat will clear the screen and wait for input. An unused port will appear to hang there and eventually time out. That's not quite the behavior I'm observing on either of the platforms I'm running Tomcat on right now. Rather, a telnet to an active Tomcat port just sits for 20 seconds and then the connection drops; a telnet to an inactive port results in an almost immediate connection refused message in less than a second. Ethereal traces of the above show that in the first case the telnet client is waiting for the expected telnet protocol negotiation, but instead gets a TCP FIN after 20 seconds; in the second case, the remote TCP handler sends an immediate reset, and the Windows telnet client retries twice more before displaying the refused message. If you're seeing something other than the above, then perhaps there's a proxy or firewall doing something odd? - 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk (1.2.14 1.2.15) bug
OG [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, Recently I found a possibel mod_jk bug. I'm using Apache 1.3.34, mod_jk 1.2.14, and Jetty 5.1.15. The bug surfaced once I started rewriting URLs with mod_rewrite. It appears that mod_jk sends a cookie2 header as cookie header, which Jetty cannot handle. The full description of the problem, including HTTP headers that I sniffed with a proxy can be found here: http://my.opera.com/community/forums/topic.dml?id=112287 Initially I thought this was a bug in Opera or in Jetty, but a person in the above thread pointed out this is a (known?) mod_jk bug. I looked around tomcat.apache.org, but couldn't find a link to JIRA or Bugzilla, nor a list of known issues. Does anyone know anything about this? Is this a known issue? I'd be VERY happy to help narrow this down. It's a known issue. See http://marc.theaimsgroup.com/?l=tomcat-devm=113397833612749w=2. The bug should be harmless for Tomcat, but I can't say about Jetty. In any case, there are two patches in the thread: Choose your favorite, apply it, and rebuild mod_jk. Thanks, Otis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [mod_jk] concurrency control problem
Grzegorz Tańczyk wrote: Hello My configuration is: - single machine with Slackware 10 - apache 2.0.55 with worker MPM - tomcat 5.5.4 - mod_jk 1.2.15 Here is my apache-tomcat configuration [user]-[mydomain.com vhost]-ProxyPass-[localhost vhost]-JKMount-[Tomcat] Perhaps posting workers.properties would help. Everything works almost fine, but in some unknown circumstances I see in apache status that all workers(1000) are busy in R or W state. Did you set the cachesize for workers? Here is a simple math: (MaxClients/ThreadsPerChild)*cachesize=maxThreads You might also add retries=60 to the worker. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]