Re: Can Tomcat 5 use PKCS10 certificates? (Was SSL CA (PKCS10) Problem)
Nathan Maves [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is anyone aware of problems using a PKCS10 cert with Tomcat 5.0.19? Nope. At a guess, you haven't imported the CA cert into your keystore. From your description, you may also be missing the private key. Your best bet is to review the Tomcat ssl-howto, and see which steps you skipped :). On May 5, 2004, at 12:49 PM, Nathan Maves wrote: Our internal CA issued us a PKCS10 certificate but we can not get Tomcat 5.0.19 to recognize it. We imported the PKCS10 Cert using Keytool (java) which worked well. We then added the created .keystore to a new Connector using port 443. Here is the error that we are getting WARNING: Reinitializing ServerSocket May 3, 2004 9:29:59 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket SEVERE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8443]] ignored exception: java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: No available certificate corresponds to the SSL cipher suites which are enabled. java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: No available certificate corresponds to the SSL cipher suites which are enabled. at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESock etFactory.java:154) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint .java:410) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 591) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.java:688) at java.lang.Thread.run(Thread.java:534) Nathan - 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]
AW: Tomcat 4 Clustering
It is running as root with j2se 1.4.2, so I think it must be an other problem. Could it be, that java miss some nativ libraries? The tomcat's are running in a chroot-environment. Jens -Ursprüngliche Nachricht- Von: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 6. Mai 2004 18:18 An: Tomcat Users List Betreff: Re: Tomcat 4 Clustering this code uses Java.nio packages. if you are running this as a non privileged user, there is a chance that it fails to open the socket. as you can see, the problem is in native code, java.io.IOException: No such file or directory at sun.nio.ch.DevPollArrayWrapper.init(Native Method) try to run it as root and see if that solves it, if it does, you have to figure out what permissions to add to your user Filip - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 06, 2004 10:59 AM Subject: WG: Tomcat 4 Clustering Hi all, I'm playing with Clustering on Tomcat 4.1.30 (1 Solaris-Server called eules with 2 tomcat instances). The only usefull solution I found, is your replicator (tomcat-replication.jar). But there are some problems and I hope that you can help me. :) When I start tomcat 1, I'll see the following message/exception: --- [FH] Starting member listener local:tcp://eules:4001 port =45566 Replication multicast service started... Replication Worker Thread:Tcp Replication Thread[2] is ready to handle requests. Replication Worker Thread:Tcp Replication Thread[1] is ready to handle requests. Replication listener listening on address eules/169.46.84.13 and port 4001 java.io.IOException: No such file or directory at sun.nio.ch.DevPollArrayWrapper.init(Native Method) at sun.nio.ch.DevPollArrayWrapper.init(DevPollArrayWrapper.java:59) at sun.nio.ch.DevPollSelectorImpl.init(DevPollSelectorImpl.java:54) at sun.nio.ch.DevPollSelectorProvider.openSelector(DevPollSelectorProvider.java :18) at java.nio.channels.Selector.open(Selector.java:209) at org.apache.catalina.cluster.ReplicationListener.listen(ReplicationListener.j ava:65) at org.apache.catalina.cluster.ReplicationListener.run(ReplicationListener.java :46) [InMemoryReplicationManager] No other members, skipping session state transfer --- I don't know, if this is really a problem, but when I start tomcat 2, I'll see the following message/exception: tomcat 1: --- [InMemoryReplicationManager] Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4002,169.46. 84.13,4002] Member added:tcp://eules:4002 --- tomcat 2: --- [FH] Starting member listener local:tcp://eules:4002 port =45566 Replication Worker Thread:Tcp Replication Thread[1] is ready to handle requests. Replication multicast service started... Replication Worker Thread:Tcp Replication Thread[2] is ready to handle requests. Replication listener listening on address eules/169.46.84.13 and port 4002 [InMemoryReplicationManager] Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4001,169.46. 84.13,4001] Member added:tcp://eules:4001 java.io.IOException: No such file or directory at sun.nio.ch.DevPollArrayWrapper.init(Native Method) at sun.nio.ch.DevPollArrayWrapper.init(DevPollArrayWrapper.java:59) at sun.nio.ch.DevPollSelectorImpl.init(DevPollSelectorImpl.java:54) at sun.nio.ch.DevPollSelectorProvider.openSelector(DevPollSelectorProvider.java :18) at java.nio.channels.Selector.open(Selector.java:209) at org.apache.catalina.cluster.ReplicationListener.listen(ReplicationListener.j ava:65) at org.apache.catalina.cluster.ReplicationListener.run(ReplicationListener.java :46) [InMemoryReplicationManager] Retrieving session state from org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4001,169.46.84.13, 4001], will timeout after 2 minutes. [InMemoryReplicationManager] Unable to send message through TCP channel java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at java.net.Socket.init(Socket.java:309) at java.net.Socket.init(Socket.java:153) at
RE: How to limit time for Connector threads?
Hi Yoav and Antonio, I am not absolutely sure, but I think (with high probability) that the bug is in our application. I am not original author of this application but I have to take care about it. Now I know that there are some strangenesses in source code of this app. Yet one reason why I think that it is in our app. The server stops answer on http (but it still answers on https). It is still running. I have to stop it. During the standard stopping of server I can see message like Waiting for 175 instance(s) to be deallocated right after message about removing of this app. The problem began to occur when we started to use this app as the main web page. The app URL had been accessible for weeks before but only through the link from the old main web page. After that, the traffic has been multiplied (by 10 or 20). The problem occurs once a day (in average). But interesting is that it is not in time of the highest traffic. It occurs mainly in the morning or evening. I am going to try Antonio's proposal. Also I would like to try some profiling tool. But it will take a lot of time to find and repair something, I think. So, let's go back to my original question. I think that it is common situation that, due to the some mistake in source code, the execution of a request thread is very long or infinite. And the server should not to go down by this kind of mistakes. I send (in attachment) to you very simple example of it. Execution time of this example is about 100 seconds but imagine that it can be hours. I think that the server should stop this thread after some time period. Is this possible? How can I tell the server to do this? Thank you, Lipi -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 8:47 PM To: Tomcat Users List Subject: RE: How to limit time for Connector threads? Hi, What the original poster meant is not that there is a race condition in Tomcat, but in his own web application. I don't think so, but either one of us could be misinterpreting the original post. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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 - server status
I've never had any trouble running either of the 2 apps. Both have always worked out of the box. This would raise the question to me whether tomcat is actually running. What happens when you browse to port 8080 on that box? Are there any indicators in catalina.out in the logs directory? Which changes do you refer to? Ta Matt -Original Message- From: John Najarian [mailto:[EMAIL PROTECTED] Sent: 07 May 2004 06:32 To: 'Tomcat Users List' Subject: RE: tomcat 5 - server status Hi Matt, I can't answer your question but I'd like to ask you one. I'm running tomcat 5.019 on XP and I can't get the admin or manager apps to work. Any pointers? I did make the changes in the readme and restarted tomcat but I've had no success. Thanks, John -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 5:11 AM To: Tomcat Users List (E-mail) Subject: tomcat 5 - server status Hi, There seems to be some strange entries on the server status page in the tomcat 5 manager app. There are the obvious request entries which are fine, then there are entries with all question marks which I take to be unused threads but the erroneous one seem to have an IP and a time and are in Keepalive state but they don't have a request detailed. Has anyone got any idea what these are? Ta Matt Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to limit time for Connector threads?
I see that there is no source code in the mail attachment. So, here is the source code of loop.jsp: -- Start... % int limit = 100; for(int i = 0; i limit; i++) { System.out.println(Attempt number: + i); out.print(br); out.print(Attempt number: + i); out.flush(); try { Thread.sleep(1000); } catch(InterruptedException exc) {exc.printStackTrace();} } % ...End --- Regards, Lipi -Original Message- From: rlipi [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 9:17 AM To: 'Tomcat Users List' Subject: RE: How to limit time for Connector threads? Hi Yoav and Antonio, I am not absolutely sure, but I think (with high probability) that the bug is in our application. I am not original author of this application but I have to take care about it. Now I know that there are some strangenesses in source code of this app. Yet one reason why I think that it is in our app. The server stops answer on http (but it still answers on https). It is still running. I have to stop it. During the standard stopping of server I can see message like Waiting for 175 instance(s) to be deallocated right after message about removing of this app. The problem began to occur when we started to use this app as the main web page. The app URL had been accessible for weeks before but only through the link from the old main web page. After that, the traffic has been multiplied (by 10 or 20). The problem occurs once a day (in average). But interesting is that it is not in time of the highest traffic. It occurs mainly in the morning or evening. I am going to try Antonio's proposal. Also I would like to try some profiling tool. But it will take a lot of time to find and repair something, I think. So, let's go back to my original question. I think that it is common situation that, due to the some mistake in source code, the execution of a request thread is very long or infinite. And the server should not to go down by this kind of mistakes. I send (in attachment) to you very simple example of it. Execution time of this example is about 100 seconds but imagine that it can be hours. I think that the server should stop this thread after some time period. Is this possible? How can I tell the server to do this? Thank you, Lipi -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 8:47 PM To: Tomcat Users List Subject: RE: How to limit time for Connector threads? Hi, What the original poster meant is not that there is a race condition in Tomcat, but in his own web application. I don't think so, but either one of us could be misinterpreting the original post. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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 JK2 and IIS 5
From memory, Tomcat runs the default ajp13 connector off of port 8009 not 8080 which is the default HTTP connector port. You worker2.properties file should specify to use port 8009 for your ajp13 connector and not 8018. In your server.xml file look for an entry similar to: !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / to see what port your ajp13 connector is listening on. Regards, Shane. -Original Message- From: Raymond Blum [mailto:[EMAIL PROTECTED] Sent: Friday, 7 May 2004 12:00 PM To: Tomcat Users List Subject: Tomcat 5 JK2 and IIS 5 Hi I am struggling to get IIS 5.0 to pass off JSP and servlet context requests to tomcat 5.0.19 under Windows 2000.I have downloaded and installed what I believe to be a usable copy of isapi_redirector2,dll and have configured the virtual directory Jakarta under one of the web servers in my IIS server. Tomcat is running at 8018, not 8080 I can get to XXX.XXX.XXX.XXX:8018/servlet-examples/ just fine I map /servlet-examples/* to tomcat in workers2.properties and then I try the following XXX.XXX.XXX.XXX/servlet-examples which yields the response The servlet container is temporary unavailable or being upgraded (I have found that this message seems to come from mod_jk and it only is received in response to one of my mapped server paths, so I assume that the URI mapping is being successfully interpreted and that the problem is in my Tomcat and/or workers configuration) I portscan the machine at XXX.XXX.XXX.XXX and port 8009 is open so I assume that tomcat is there and listening. Any tips greatly appreciated! I have searched the archives and googled this a dozen ways. ---Raymond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Passing init parameters to event listener
Hi all, I'd like to pass init parameters to event listener (in my case, it's session listener) instead of hard coding those parameters. But event listeners do not support init parameters like filters do. I know that I can get SetvletContext from events (thus getting the ServletContext attributes for the context), but that'll be at time when event happens, not listener init time. Any better way? Thanks, Dennis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Clustering with 5.0.19
Filip, Not sure if you saw this yesterday, I think there were some email problems. Any help would be greatly appreciated. Thanks, Sam. -Original Message- From: Sam Lawrence [mailto:[EMAIL PROTECTED] Sent: 06 May 2004 11:27 To: Tomcat Users List Subject: RE: log4j logging in Tomcat WAS: Clustering with 5.0.19 Thanks Filip, I got some logging, but far more than is useful to try and debug what session replication is going on. If I switch to a recent (nightly?) build, will I be able to add debugging specifically for the clustering? (by adding a Logger child element to Cluster in server.xml?) Up to now I've been trying to see what's going on by watching the replication packets over the network. I added a custom HttpSessionAttributeListener/HttpSessionListener to my webapp (via a listener element in my web.xml) and I'm not seeing any session events although I am seeing replication data being passed between the two servers. I'm using the DeltaManager so my assumption was that I shouldn't be. Any ideas? Please let me know what other info would be useful to paint a more complete picture! Sam. -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: 05 May 2004 16:48 To: Tomcat Users List Subject: log4j logging in Tomcat WAS: Clustering with 5.0.19 you need to enable it at the logger level, the code is currently logging with Log.info/Log.debug etc You can make is use log4j and do it using the log4j conf file http://jakarta.apache.org/commons/logging/guide.html To make some simple steps, I remember there was thread on this last week, not sure if they got it to work so here are the steps, let me know if you have problems 1. Download latest log4j package 2. Put the log4j-1.2.8.jar (or whatever name it is) in your $CATALINA_HOME/bin 3. In catalina.sh/catalina.bat add the log4j to the system classpath 4. in catalina.sh/catalina.bat, on the top add the JAVA_OPTS setting like this JAVA_OPTS=-Dlog4j.debug -Dlogj4.configuration=$CATALINA_HOME/bin/log4j.prop erties 5. Put your log4j.properties file in CATALINA_HOME/bin of course, if you are on windows you will need to change / for \ and $ for %% but I am sure you can figure that for yourself :) Filip - Original Message - From: Sam Lawrence [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 10:00 AM Subject: RE: Clustering with 5.0.19 Thanks Filip, Do you know if there is any way I can get some debug info from 5.0.19? I'd feel happier going with a release build if possible. Kind regards, Sam. -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: 05 May 2004 15:31 To: Tomcat Users List Subject: Re: Clustering with 5.0.19 useDirtyFlag is not used with the DeltaManager, only with the SimpleTcpReplicationManager. As the name suggest, the DeltaManager only replicates deltas, and hence it can only replicate when the session is dirty. The clustering configuration has changed a little bit since 5.0.19, to make it more modularized. Also, the debug flag is a thing of the past, the clustering module is currently using the commons logger, same way all the other components are using it. Filip - Original Message - From: Sam Lawrence [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 9:26 AM Subject: Clustering with 5.0.19 Hi, I've successfully clustered two instances of Tomcat on different machines and I'm now trying to do some fine tuning on a struts based site. I want to make sure that the session is only being replicated when it needs to be. I have useDirtyFlag=true although I'm not sure that it isn't still being re-sent after every request. I have the following Cluster element in my server.xml - Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false debug=10 printToScreen=true useDirtyFlag=true Although I have the debug/printToScreen attributes, I'm not seeing any debug information about session replication. How can I get some debug info? Any help greatly appreciated! Thanks, Sam Lawrence - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe,
JNDIRealm strangeness
Hi All ! I wonder if anyone has seen this anomaly, when following my instructions on setting up a JNDIRealm, on my website (http://cymulacrum.net/writings/adv_tomcat/c487.html). I wrote these instructions after version 5.0.19 of Tomcat came out and fixed the character encoding issue in the JNDIRealm. In my document I described how to : 1. Setup OpenLDAP so it runs with SSL/TLS enabled 2. Setup Tomcat's JNDIRealm so that it communicates with ldap://localhost:636, the secure port instead of 389. I never noticed anything strange, because my JNDIRealm setup seemed to work fine, but when I tried to put SecurityFilter on, I found an error. Thinking that it was probably SecurityFilter, I looked at the logfiles, and I was surprised to find that, even before I had installed SecurityFilter, there was that same error being logged inside catalina.out. I just never bothered to look before because everything seemed to be running fine. Here's what the error looks like. It only occurs on startup, all LDAP operations work fine with no errors: JNDIRealm[Catalina]: Connecting to URL ldap://localhost:636 JNDIRealm[Catalina]: Exception performing authentication javax.naming.CommunicationException: Request: 1 cancelled at com.sun.jndi.ldap.LdapRequest.getReplyBer(LdapRequest.java:76) at com.sun.jndi.ldap.Connection.readReply(Connection.java:433) at com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:356) at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:187) at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2615) at com.sun.jndi.ldap.LdapCtx.init(LdapCtx.java:293) at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:190) at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:208) at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:153) at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:83) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:256) at javax.naming.InitialContext.init(InitialContext.java:232) at javax.naming.InitialContext.init(InitialContext.java:208) rest of errors snipped I'm not really sure where to begin, or even if it is significant (since LDAP authentication still works). If you want to repeat this error for yourself, you can follow the instructions on my web page. Any help would be greatly appreciated ! Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JNDIRealm strangeness
Hi, Knowledge on configuring JNDIRealms security: zip! Knowledge on the JNDI LDAP interface: guru! The root cause: javax.naming.CommunicationException, refers to there being an underlying network problem with communicating between the LDAP client, and the LDAP server. The message received from the ldap driver: Request: 1 cancelled is the reason as to why this error occured. As can be seen its not very helpful. (I've been spoilt on receiving error codes from servers and detailed messages and such). You appear to be using the Sun JNDI LDAP reference implementation, which I found to not always offer the best error messages. I cant remember if it has any extra logging capabilities (from memory it doesn't) to try and wring more information out of the driver, however the key to solving the problem may lie elsewhere. I would recommended turning on the detailed debugging in your LDAP server to determine what error it is trying to communicate back to the LDAP driver (and if the server is successfully contacted in this first instance), by of course inspecting its logs. This approach I have had to use a number of times on less than helpful LDAP drivers that don't seem to think good error messages are needed. You are trying to use a secure SSL connection to the LDAP server, but it does not appear to be SSL related as you normally get a specific SSL error back when it is SSL related, usually ugly and unhelpful. Regards, Shane. -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Friday, 7 May 2004 4:32 PM To: Tomcat Users List Subject: JNDIRealm strangeness Hi All ! I wonder if anyone has seen this anomaly, when following my instructions on setting up a JNDIRealm, on my website (http://cymulacrum.net/writings/adv_tomcat/c487.html). I wrote these instructions after version 5.0.19 of Tomcat came out and fixed the character encoding issue in the JNDIRealm. In my document I described how to : 1. Setup OpenLDAP so it runs with SSL/TLS enabled 2. Setup Tomcat's JNDIRealm so that it communicates with ldap://localhost:636, the secure port instead of 389. I never noticed anything strange, because my JNDIRealm setup seemed to work fine, but when I tried to put SecurityFilter on, I found an error. Thinking that it was probably SecurityFilter, I looked at the logfiles, and I was surprised to find that, even before I had installed SecurityFilter, there was that same error being logged inside catalina.out. I just never bothered to look before because everything seemed to be running fine. Here's what the error looks like. It only occurs on startup, all LDAP operations work fine with no errors: JNDIRealm[Catalina]: Connecting to URL ldap://localhost:636 JNDIRealm[Catalina]: Exception performing authentication javax.naming.CommunicationException: Request: 1 cancelled at com.sun.jndi.ldap.LdapRequest.getReplyBer(LdapRequest.java:76) at com.sun.jndi.ldap.Connection.readReply(Connection.java:433) at com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:356) at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:187) at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2615) at com.sun.jndi.ldap.LdapCtx.init(LdapCtx.java:293) at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:190) at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:208) at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:153) at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:83) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:256) at javax.naming.InitialContext.init(InitialContext.java:232) at javax.naming.InitialContext.init(InitialContext.java:208) rest of errors snipped I'm not really sure where to begin, or even if it is significant (since LDAP authentication still works). If you want to repeat this error for yourself, you can follow the instructions on my web page. Any help would be greatly appreciated ! Regards, pascal chong - 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: How to limit time for Connector threads?
On Fri, 7 May 2004, rlipi wrote: | So, let's go back to my original question. I think that it is common | situation that, due to the some mistake in source code, the execution of | a request thread is very long or infinite. And the server should not to | go down by this kind of mistakes. You are coding in java. It is not possible to preemptively control a Thread's execution cycle, in particular its termination. Trust me - check it up - there are -no ways- to kill a Thread. The reasons behind this are complex - but revolves around the problem of leaving mutex-sections correctly (monitors) when terminating a Thread. Thus: code correct! (The JSR 121 will fix this proble: http://jcp.org/en/jsr/detail?id=121. The way they solve it, is that they in effect instantiate -an entirely new JVM- for each thing that must be terminatable.) Kind regards, Endre - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1.30 doesn't with CoyoteConnector (missing bundle for locale en_US)
Hello all I've upgraded Tomcat 4.1.12 to 4.1.30 and now I can not start the Tomcat with CoyoteConnector. Within the previous version and the same configuration there was no such problem. Please see the dump of exception below. I found the starting process looks for LocalStrings_xx_YY.properties file in appropriate jar archive, but in fact there exist only fr, ja and unnamed (default english) versions. I can change the operating system locale settings to en_US, en_GB, cz_CS,..., so then the Tomcat looks for another version, but it brings no improvement. Is it some new feature of Tomcat 4.1.30 towards 4.1.12 version to use such local extension? How can I force Tomcat to start with default LocalStrings.properties regardless to locale settings? I found Tomcat can start with CatalinaHttpConnector instead, with the same configuration and settings, but I really need Coyote. Please help me. I'm running JDK 1.3.0 and Linux, tested on Win2k as well with the same problem. Thank you in advance Peter [ERROR] Digester - -Begin event threw exception java.util.MissingResourceException: Can't find bundle for base name org.apache.coyote.tomcat4.LocalStrings, locale en_USjava.util.MissingResourceException: Can't find bundle for base name org.apache.coyote.tomcat4.LocalStrings, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:707) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:670) at java.util.ResourceBundle.getBundle(ResourceBundle.java:546) at org.apache.catalina.util.StringManager.init(StringManager.java:115) at org.apache.catalina.util.StringManager.getManager(StringManager.java:260) at org.apache.coyote.tomcat4.CoyoteConnector.init(CoyoteConnector.java:274) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:253) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Catalina.start: java.util.MissingResourceException: Can't find bundle for base name org.apache.coyote.tomcat4.LocalStrings, locale en_US java.util.MissingResourceException: Can't find bundle for base name org.apache.coyote.tomcat4.LocalStrings, locale en_USat org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.startElement(Digester.java:1276) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Re: How to limit time for Connector threads?
rlipi wrote: I am going to try Antonio's proposal. Also I would like to try some profiling tool. But it will take a lot of time to find and repair something, I think. If you are dealing with a programming error like an infinite loop or a deadlock, you may have better luck using a debugger, rather than a profiling tool :-) Most of the popular IDEs (JBuilder, Eclipse, Idea, etc) can do remote debugging, so you just need to start your server (or a copy of it) in debug mode and connect to it from the IDE. In case you do not have any IDE, my recommendation is Eclipse, as it is free and needs no complicated installation. In case you do not know how to use remote debugging, I am pretty sure you can search through the archives in this list, or do some googling ;-) Hope it helps you, Rodrigo Ruiz -- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.678 / Virus Database: 440 - Release Date: 06/05/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1.29 - Tomcat 4.0.1 - App Problems
Hi all, I had to port application from Tomcat 4.1.29 where it is running without problems on Tomcat 4.0.1 and I encountered on errors with every jsp page. Below is text of error message. It seems to be the inadequate web.xml (it is need change the web.xml file?)? Or there is not support for Servlet 2.3 and JSP 1.2 in Tomcat 4.0.1? the error message: ... exception javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871) root cause java.lang.ClassCastException at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:93) at org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:183) at org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCache.java:165) ... Does anybody know where the problem is? For avise thanks in advance. Best regarsd, Ondrej. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: specifying location of confg file
The standard way to specify configuration data in J2EE is through JNDI. With this, I am not telling you to drop your config file, but specify its path there ;-) In Tomcat, the JNDI tree is specified in the server.xml descriptor. You will find good documentation on this topic on the tomcat web pages Rodrigo Ruiz Milt Epstein wrote: On Thu, 6 May 2004, Arora, Avinash wrote: Hi, How can we specify the location of config file, so that we don't have to hardcode it in our code. Thanks. You can specify the location in the config file. Oh wait, never mind. Other alternatives are specifying it as init-param's (either servlet or context) in web.xml. Still somewhat hard-coded, but not as bad as putting it in the servlet code itself. A bit of a bootstrapping issue here. Also, I think I saw something here recently about being to specify certain init-param's in server.xml, not sure of the details, maybe that's a possibility. Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.678 / Virus Database: 440 - Release Date: 06/05/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: How to limit time for Connector threads?
Hi Rodrigo, it is possible to debug a remote server in eclipse, which is not started in the ide? Do you have a link where I can find informations about this technique or a little bit time to explain it for me? Thanx Jens -Ursprüngliche Nachricht- Von: Rodrigo Ruiz [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. Mai 2004 12:27 An: Tomcat Users List Betreff: Re: How to limit time for Connector threads? rlipi wrote: I am going to try Antonio's proposal. Also I would like to try some profiling tool. But it will take a lot of time to find and repair something, I think. If you are dealing with a programming error like an infinite loop or a deadlock, you may have better luck using a debugger, rather than a profiling tool :-) Most of the popular IDEs (JBuilder, Eclipse, Idea, etc) can do remote debugging, so you just need to start your server (or a copy of it) in debug mode and connect to it from the IDE. In case you do not have any IDE, my recommendation is Eclipse, as it is free and needs no complicated installation. In case you do not know how to use remote debugging, I am pretty sure you can search through the archives in this list, or do some googling ;-) Hope it helps you, Rodrigo Ruiz -- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.678 / Virus Database: 440 - Release Date: 06/05/2004 - 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]
Disable Directory listing
How can I disable Directory listing in Tomcat? Thanks, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Disable Directory listing
In the web.xml in the conf directory, set the listings param to have a value of false like this: servlet servlet-namedefault/servlet-name servlet-class org.apache.catalina.servlets.DefaultServlet /servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namelistings/param-name param-valuefalse/param-value /init-param load-on-startup1/load-on-startup /servlet Thanks, Scott Stewart [Manager, Software Development] [EMAIL PROTECTED] ClearSky Mobile Media, Inc. 56 E. Pine Street Suite 200 Orlando, FL 32801 USA -Original Message- From: Brett Simpson [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 6:43 AM To: [EMAIL PROTECTED] Subject: Disable Directory listing How can I disable Directory listing in Tomcat? Thanks, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disable Directory listing
Never mind. I figured it out. [EMAIL PROTECTED] 5/7/2004 7:42:32 AM How can I disable Directory listing in Tomcat? Thanks, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk problems - Need help!
Greetings. Having a problem with mod_jk2 in some instances. Am hoping someone has some sort of feedback as to what could be causing it. Right the scenario: WinXP Pro Apache 2.0.49 (with the WinSock2 API disabled - same even with it enabled) Tomcat 5.0.19 mod_jk2/2.02 The JSP: A JSP page with a large amount of processing and/or generating a large amount of HTML to return to the client. The processing is mostly handled with custom tags on the JSP page. the output uses tables for positioning of the returning data - and in the offending JSP(s) there is a fair amount of processing that occurs while builiding the output buffer (note that we are buffering te output before sending it back to the client. The problems that occur: When running through Apache (mod_jk2) to the JSP page all works fine on a number of JSP pages. At a certain point (always the JSP described above) the output that is generated from the request is REALLY messed up! Below is a chunk of the HTML that is returned from the request (sorry it is ugly!): = BROKEN OUTPUT CHUNK === input type=text name=materialQty_52 tabindex=3 onblur=setZero(this) onkeyup=alterValues(52, false) value=1 size=5 /td td$input class=readonlyinputs type=text readonl XT *8 X % ! ` H r |+ I.E{j 0 p T $ r |[EMAIL PROTECTED]:E{ e x c e l . x l sH @ 1 5yG ! !FILE0 ; 8 X % ! ` H s |+C.yj 0 p V $ s |+ y a m i p r o . s a m H @ 1 5yG ! !FILE0 8 % ! ` H s2r:. %y'j 0 x Z $ s0(?0(?y W I N D O W ~ 1 . L N K a P 0 r $ s0(?0(?y W i n d o w s M e d i a P l a y e r . l n k H @ 1J 5yG ! !FILE0 v% 8 % ! ` H sbG`d7. 4 j 0 p X $ sbGbG0)uX T d e s k t o p . i n ip T [.ShellClassInfo] [EMAIL PROTECTED],-21787 yG ! !FILE0 z*8 % ` H G [EMAIL PROTECTED]'j 0 x Z $ GG ? R E M O T E ~ 1 . L N K t a n 0 l $ GG ? R e m o t e A s s i s t a n c e . l n kH @ ? ? 1 5yG FILE0 t 8 % ` H ' .N'j 0 x Z $ (( W I N D O W ~ 1 . L N K o r e 0 j $ (( W i n d o w s E x p l o r e r . l n k H @ 1Y yyG FILE0 v% 8 8 % ln ` H 2 . 4 j 0 p X $ GG d e s k t o p . i n i( [.ShellClassInfo] [EMAIL PROTECTED],-21782 [LocalizedFileNames] Windows Media [EMAIL PROTECTED]:\WINDOWS\inf\unregmp2.exe,-4 Remote [EMAIL PROTECTED],-152 Outlook Express. [EMAIL PROTECTED],-22053 yG FILE0 6s 8 % ` H [EMAIL PROTECTED]'j 0 x Z $ WGWG T O U R W I ~ 1 . L N K X P 0 h $ WGWG T o u r W i n d o w s X P . l n kH @ 1 5yG input type=text name=materialQty_59 tabindex=10 onblur=setZero(this) onkeyup=alterValues(59, false) value=0 size=5 /td = END BROKEN OUTPUT CHUNK === In addition, the HTTP headers are also being written out to the content on the above JSP (as follows) after another batch of similar to above. One this that is interesting is if you look at the chunk below, you will see that there are Context / blocks being written to the HTML!! Also these Context / blocks are for OTHER sites runnin on the same server (same Apache different Virtual Hosts, same Tomcat, differnet hosts). Note that all the sites are using the same AJP Connector in the jk comms (the uri mounts are done in the Apache VirtualHosts blocks using JkUriSet directives within nested Location / blocks. Anyway, the other messed output chunk: =
RE: mod_jk problems - Need help!
I don't think that the problem is caused by the tomcat side. The output looks pretty much like a memory or a disk dump. You normally can't access memory outside of the java process from within tomcat. (Native libraries excluded) So I think it's mod_jk, apache or the jvm that cause this problem. To me it's looking like a read past the end of the response. -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 1:53 PM To: '[EMAIL PROTECTED]' Subject: mod_jk problems - Need help! n d o w s M e d i a P l a y e r . l n k H d e s k t o p . i n ip T [.ShellClassInfo] [EMAIL PROTECTED],-21787
Can't connect from applet
I have developed an applet that can connect to the database and access the data I need. When I run the same applet under Tomcat, I get the following exception Unable to connect to any hosts due to exception java.security.AccessControlException: access denied (java.net.SocketPermission 10.1.1.243:3306 connect, resolve) I only get this exception when I run a browser on the same computer (10.1.1.243) that tomcat/mysql are running from. Accessing this from other browsers on other computers is not a problem. Is this an issue with MySql or Tomcat or Applets? This email and any files transmitted with it are proprietary 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 notify the sender. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of ITT Industries, Inc. The recipient should check this email and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this email.
Re: JNDIRealm strangeness
Hi Shane ! Thanks for the description and advice! I managed to finally turn on OpenLDAP logging (a pain in Fedora Core 1), and set the loglevel to 256. Here's what I get. When the Tomcat server starts up, the connection errors seem to be related to port 636 : May 7 19:51:50 localhost slapd[6049]: conn=4 fd=11 ACCEPT from IP=127.0.0.1:32892 (IP=0.0.0.0:636) May 7 19:51:50 localhost slapd[6049]: conn=4 fd=11 closed May 7 19:51:50 localhost slapd[6049]: conn=5 fd=11 ACCEPT from IP=127.0.0.1:32894 (IP=0.0.0.0:389) May 7 19:51:50 localhost slapd[6049]: conn=5 op=0 BIND dn= method=128 May 7 19:51:50 localhost slapd[6049]: conn=5 op=0 RESULT tag=97 err=0 text= May 7 19:52:02 localhost slapd[6049]: conn=6 fd=12 ACCEPT from IP=127.0.0.1:32895 (IP=0.0.0.0:636) May 7 19:52:02 localhost slapd[6049]: conn=6 fd=12 closed May 7 19:52:02 localhost slapd[6049]: conn=7 fd=12 ACCEPT from IP=127.0.0.1:32897 (IP=0.0.0.0:389) May 7 19:52:02 localhost slapd[6049]: conn=7 op=0 BIND dn= method=128 May 7 19:52:02 localhost slapd[6049]: conn=7 op=0 RESULT tag=97 err=0 text= Bumping up loglevel to 4095, I get these details for the errors on port 636: May 7 20:03:56 localhost slapd[6346]: connection_read(11): TLS accept error error=-1 id=0, closing May 7 20:03:56 localhost slapd[6346]: connection_closing: readying conn=0 sd=11 for close May 7 20:03:56 localhost slapd[6346]: connection_close: conn=0 sd=11 Seems to indicate that there is something wrong with my SSL/TLS connection. But my JNDIRealm still works ! Users can still authenticate successfully. Does the connection fallback to port 389 if a connection on 636 is not possible? Thanks for the help, Shane ! If you have any further suggestions, I would really appreciate it ! Regards, pascal chong Shane Linley wrote: Hi, Knowledge on configuring JNDIRealms security: zip! Knowledge on the JNDI LDAP interface: guru! The root cause: javax.naming.CommunicationException, refers to there being an underlying network problem with communicating between the LDAP client, and the LDAP server. The message received from the ldap driver: Request: 1 cancelled is the reason as to why this error occured. As can be seen its not very helpful. (I've been spoilt on receiving error codes from servers and detailed messages and such). You appear to be using the Sun JNDI LDAP reference implementation, which I found to not always offer the best error messages. I cant remember if it has any extra logging capabilities (from memory it doesn't) to try and wring more information out of the driver, however the key to solving the problem may lie elsewhere. I would recommended turning on the detailed debugging in your LDAP server to determine what error it is trying to communicate back to the LDAP driver (and if the server is successfully contacted in this first instance), by of course inspecting its logs. This approach I have had to use a number of times on less than helpful LDAP drivers that don't seem to think good error messages are needed. You are trying to use a secure SSL connection to the LDAP server, but it does not appear to be SSL related as you normally get a specific SSL error back when it is SSL related, usually ugly and unhelpful. Regards, Shane. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
install4iis.js can not find WEB SERVER ROOT dir
Hi I have a Windows 2K box with IIS 5 and Tomcat 5.0.19. Downloaded the newest connectors, 2.0.4 and am trying to use the install4iis.js file. I get the following msg Unable to find Web Server ROOT direcrory. (sic) I used the -h but none of the command line options seem to be meant to address this. Any help greatly appreciated ---Raymond
Re: Clustering with 5.0.19
I'm not sure what your problem is, what you need to do, is to 1. stop tomcat 2. clear the old logs out 3. enable debug logging like mentioned in the email below 4. start tomcat 5. Hit each tomcat once 6. email us the logs, that will tell us a lot more Filip - Original Message - From: Sam Lawrence [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Friday, May 07, 2004 3:10 AM Subject: RE: Clustering with 5.0.19 Filip, Not sure if you saw this yesterday, I think there were some email problems. Any help would be greatly appreciated. Thanks, Sam. -Original Message- From: Sam Lawrence [mailto:[EMAIL PROTECTED] Sent: 06 May 2004 11:27 To: Tomcat Users List Subject: RE: log4j logging in Tomcat WAS: Clustering with 5.0.19 Thanks Filip, I got some logging, but far more than is useful to try and debug what session replication is going on. If I switch to a recent (nightly?) build, will I be able to add debugging specifically for the clustering? (by adding a Logger child element to Cluster in server.xml?) Up to now I've been trying to see what's going on by watching the replication packets over the network. I added a custom HttpSessionAttributeListener/HttpSessionListener to my webapp (via a listener element in my web.xml) and I'm not seeing any session events although I am seeing replication data being passed between the two servers. I'm using the DeltaManager so my assumption was that I shouldn't be. Any ideas? Please let me know what other info would be useful to paint a more complete picture! Sam. -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: 05 May 2004 16:48 To: Tomcat Users List Subject: log4j logging in Tomcat WAS: Clustering with 5.0.19 you need to enable it at the logger level, the code is currently logging with Log.info/Log.debug etc You can make is use log4j and do it using the log4j conf file http://jakarta.apache.org/commons/logging/guide.html To make some simple steps, I remember there was thread on this last week, not sure if they got it to work so here are the steps, let me know if you have problems 1. Download latest log4j package 2. Put the log4j-1.2.8.jar (or whatever name it is) in your $CATALINA_HOME/bin 3. In catalina.sh/catalina.bat add the log4j to the system classpath 4. in catalina.sh/catalina.bat, on the top add the JAVA_OPTS setting like this JAVA_OPTS=-Dlog4j.debug -Dlogj4.configuration=$CATALINA_HOME/bin/log4j.prop erties 5. Put your log4j.properties file in CATALINA_HOME/bin of course, if you are on windows you will need to change / for \ and $ for %% but I am sure you can figure that for yourself :) Filip - Original Message - From: Sam Lawrence [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 10:00 AM Subject: RE: Clustering with 5.0.19 Thanks Filip, Do you know if there is any way I can get some debug info from 5.0.19? I'd feel happier going with a release build if possible. Kind regards, Sam. -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: 05 May 2004 15:31 To: Tomcat Users List Subject: Re: Clustering with 5.0.19 useDirtyFlag is not used with the DeltaManager, only with the SimpleTcpReplicationManager. As the name suggest, the DeltaManager only replicates deltas, and hence it can only replicate when the session is dirty. The clustering configuration has changed a little bit since 5.0.19, to make it more modularized. Also, the debug flag is a thing of the past, the clustering module is currently using the commons logger, same way all the other components are using it. Filip - Original Message - From: Sam Lawrence [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 9:26 AM Subject: Clustering with 5.0.19 Hi, I've successfully clustered two instances of Tomcat on different machines and I'm now trying to do some fine tuning on a struts based site. I want to make sure that the session is only being replicated when it needs to be. I have useDirtyFlag=true although I'm not sure that it isn't still being re-sent after every request. I have the following Cluster element in my server.xml - Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false debug=10 printToScreen=true useDirtyFlag=true Although I have the debug/printToScreen attributes, I'm not seeing any debug information about session replication. How can I get some debug info? Any help greatly appreciated! Thanks, Sam Lawrence - 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
Re: Tomcat 4 Clustering
try to run tomcat outside the chroot environment, I bet that will solve your problem Filip - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, May 07, 2004 1:56 AM Subject: AW: Tomcat 4 Clustering It is running as root with j2se 1.4.2, so I think it must be an other problem. Could it be, that java miss some nativ libraries? The tomcat's are running in a chroot-environment. Jens -Ursprüngliche Nachricht- Von: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 6. Mai 2004 18:18 An: Tomcat Users List Betreff: Re: Tomcat 4 Clustering this code uses Java.nio packages. if you are running this as a non privileged user, there is a chance that it fails to open the socket. as you can see, the problem is in native code, java.io.IOException: No such file or directory at sun.nio.ch.DevPollArrayWrapper.init(Native Method) try to run it as root and see if that solves it, if it does, you have to figure out what permissions to add to your user Filip - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 06, 2004 10:59 AM Subject: WG: Tomcat 4 Clustering Hi all, I'm playing with Clustering on Tomcat 4.1.30 (1 Solaris-Server called eules with 2 tomcat instances). The only usefull solution I found, is your replicator (tomcat-replication.jar). But there are some problems and I hope that you can help me. :) When I start tomcat 1, I'll see the following message/exception: --- [FH] Starting member listener local:tcp://eules:4001 port =45566 Replication multicast service started... Replication Worker Thread:Tcp Replication Thread[2] is ready to handle requests. Replication Worker Thread:Tcp Replication Thread[1] is ready to handle requests. Replication listener listening on address eules/169.46.84.13 and port 4001 java.io.IOException: No such file or directory at sun.nio.ch.DevPollArrayWrapper.init(Native Method) at sun.nio.ch.DevPollArrayWrapper.init(DevPollArrayWrapper.java:59) at sun.nio.ch.DevPollSelectorImpl.init(DevPollSelectorImpl.java:54) at sun.nio.ch.DevPollSelectorProvider.openSelector(DevPollSelectorProvider.java :18) at java.nio.channels.Selector.open(Selector.java:209) at org.apache.catalina.cluster.ReplicationListener.listen(ReplicationListener.j ava:65) at org.apache.catalina.cluster.ReplicationListener.run(ReplicationListener.java :46) [InMemoryReplicationManager] No other members, skipping session state transfer --- I don't know, if this is really a problem, but when I start tomcat 2, I'll see the following message/exception: tomcat 1: --- [InMemoryReplicationManager] Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4002,169.46. 84.13,4002] Member added:tcp://eules:4002 --- tomcat 2: --- [FH] Starting member listener local:tcp://eules:4002 port =45566 Replication Worker Thread:Tcp Replication Thread[1] is ready to handle requests. Replication multicast service started... Replication Worker Thread:Tcp Replication Thread[2] is ready to handle requests. Replication listener listening on address eules/169.46.84.13 and port 4002 [InMemoryReplicationManager] Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4001,169.46. 84.13,4001] Member added:tcp://eules:4001 java.io.IOException: No such file or directory at sun.nio.ch.DevPollArrayWrapper.init(Native Method) at sun.nio.ch.DevPollArrayWrapper.init(DevPollArrayWrapper.java:59) at sun.nio.ch.DevPollSelectorImpl.init(DevPollSelectorImpl.java:54) at sun.nio.ch.DevPollSelectorProvider.openSelector(DevPollSelectorProvider.java :18) at java.nio.channels.Selector.open(Selector.java:209) at org.apache.catalina.cluster.ReplicationListener.listen(ReplicationListener.j ava:65) at org.apache.catalina.cluster.ReplicationListener.run(ReplicationListener.java :46) [InMemoryReplicationManager] Retrieving session state from org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4001,169.46.84.13, 4001], will timeout after 2 minutes. [InMemoryReplicationManager] Unable to send message through TCP channel java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at
RE: Can't connect from applet
Hi, It's an applet security issue. Read http://java.sun.com/sfaq/ especially the part about originating host. Yoav Shapira Millennium Research Informatics -Original Message- From: Celona, Paul - AES [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 10:42 AM To: [EMAIL PROTECTED] Subject: Can't connect from applet I have developed an applet that can connect to the database and access the data I need. When I run the same applet under Tomcat, I get the following exception Unable to connect to any hosts due to exception java.security.AccessControlException: access denied (java.net.SocketPermission 10.1.1.243:3306 connect, resolve) I only get this exception when I run a browser on the same computer (10.1.1.243) that tomcat/mysql are running from. Accessing this from other browsers on other computers is not a problem. Is this an issue with MySql or Tomcat or Applets? This email and any files transmitted with it are proprietary 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 notify the sender. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of ITT Industries, Inc. The recipient should check this email and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this email. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
the requested resource is unavailable
Ok, this is driving me nuts... I have a webapp running on tomcat 5.0.19. In the web.xml file, I have servlet mappings for all my servlets. All my servlets behave properly except for a new one i just deployed. Here's it's web.xml entry: servlet servlet-nameRequestMobileID/servlet-name display-nameRequestMobileID/display-name servlet-classcom.Optima.Results.MobileServlets.RequestMobileID/servlet-class /servlet The jave class file itself is deployed correctly at *webapp_root*/WEB-INF/classes/com/Optima/Results/MobileServlets/RequestMobileID.class However, when I point my browser to http://myhost/webapp_root/RequestMobileID, i get a requested resource unavailable 404 error. what gives? could tomcat be somehow caching my old web.xml before i added this entry or something? any help would be greatly appreciated. Matt Tucker thoughtbot cell: 617 775 0742 office: 617 876 4780 www.thoughtbot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: the requested resource is unavailable
On Fri, May 07, 2004 at 12:17:09PM -0400, Matt Tucker wrote: : servlet :servlet-nameRequestMobileID/servlet-name :display-nameRequestMobileID/display-name : : servlet-classcom.Optima.Results.MobileServlets.RequestMobileID/servlet-class : /servlet What's the servlet-mapping entry? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: the requested resource is unavailable
Matt, What is the other part of you mapping in the web.xml? Doug - Original Message - From: Matt Tucker [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, May 07, 2004 12:17 PM Subject: the requested resource is unavailable Ok, this is driving me nuts... I have a webapp running on tomcat 5.0.19. In the web.xml file, I have servlet mappings for all my servlets. All my servlets behave properly except for a new one i just deployed. Here's it's web.xml entry: servlet servlet-nameRequestMobileID/servlet-name display-nameRequestMobileID/display-name servlet-classcom.Optima.Results.MobileServlets.RequestMobileID/servlet-cl ass /servlet The jave class file itself is deployed correctly at *webapp_root*/WEB-INF/classes/com/Optima/Results/MobileServlets/RequestMobil eID.class However, when I point my browser to http://myhost/webapp_root/RequestMobileID, i get a requested resource unavailable 404 error. what gives? could tomcat be somehow caching my old web.xml before i added this entry or something? any help would be greatly appreciated. Matt Tucker thoughtbot cell: 617 775 0742 office: 617 876 4780 www.thoughtbot.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]
problem setting --WorkingPath in service.bat (2.0.24)
I'm trying to set --WorkingPath in service.bat, but it doesn't seem to do anything. It used to in Tomcat-5.0.19 but doesn't in Tomcat-5.0.24. Is there a new property to set the working path for the service? I also tried adding the property PR_WORKINGPATH, but that didn't do anything either. Now, I know that I can bring up the gui and set it manually, but my requirement is to set it in the script so no manipulation of the gui is necessary. BTW, it would be *really* nice if the docs were updated to show all the properties available. The commons-daemon procrun site ( http://jakarta.apache.org/commons/daemon/procrun.html ) hasn't been updated since January 13. Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to limit time for Connector threads?
I haven't done this myself, but here is a link: http://marc.theaimsgroup.com/?l=tomcat-userm=107373227524598w=2 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 6:33 AM To: [EMAIL PROTECTED] Subject: AW: How to limit time for Connector threads? Hi Rodrigo, it is possible to debug a remote server in eclipse, which is not started in the ide? Do you have a link where I can find informations about this technique or a little bit time to explain it for me? Thanx Jens -Ursprüngliche Nachricht- Von: Rodrigo Ruiz [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. Mai 2004 12:27 An: Tomcat Users List Betreff: Re: How to limit time for Connector threads? rlipi wrote: I am going to try Antonio's proposal. Also I would like to try some profiling tool. But it will take a lot of time to find and repair something, I think. If you are dealing with a programming error like an infinite loop or a deadlock, you may have better luck using a debugger, rather than a profiling tool :-) Most of the popular IDEs (JBuilder, Eclipse, Idea, etc) can do remote debugging, so you just need to start your server (or a copy of it) in debug mode and connect to it from the IDE. In case you do not have any IDE, my recommendation is Eclipse, as it is free and needs no complicated installation. In case you do not know how to use remote debugging, I am pretty sure you can search through the archives in this list, or do some googling ;-) Hope it helps you, Rodrigo Ruiz -- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.678 / Virus Database: 440 - Release Date: 06/05/2004 - 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: How to limit time for Connector threads?
Maybe I have wrong idea about possibilities of debugging tools but I think that it will not help. We have above 100 000 hits a day and the problem occurs only once a day. It can be a result of one special request or (with greater probability) it is result of some combination of requests. In both cases I don't know these requests nor the particular place where the problem is. Therefore, I need some statistical information about server behavior before problem and/or all possible information about server status in the time of problem. Can debugger help me with this? Lipi -Original Message- From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 12:27 PM To: Tomcat Users List Subject: Re: How to limit time for Connector threads? rlipi wrote: I am going to try Antonio's proposal. Also I would like to try some profiling tool. But it will take a lot of time to find and repair something, I think. If you are dealing with a programming error like an infinite loop or a deadlock, you may have better luck using a debugger, rather than a profiling tool :-) Most of the popular IDEs (JBuilder, Eclipse, Idea, etc) can do remote debugging, so you just need to start your server (or a copy of it) in debug mode and connect to it from the IDE. In case you do not have any IDE, my recommendation is Eclipse, as it is free and needs no complicated installation. In case you do not know how to use remote debugging, I am pretty sure you can search through the archives in this list, or do some googling ;-) Hope it helps you, Rodrigo Ruiz -- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.678 / Virus Database: 440 - Release Date: 06/05/2004 - 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: the requested resource is unavailable
aandthat's my problem. thanks fellas for making me see the depths of my own stupidity. Matt Tucker thoughtbot cell: 617 775 0742 office: 617 876 4780 www.thoughtbot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Your archive
Your document is attached. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: the requested resource is unavailable
Just be thankful you saw it before you stepped in it. Been there. Done that. Doug - Original Message - From: Matt Tucker [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, May 07, 2004 12:34 PM Subject: Re: the requested resource is unavailable aandthat's my problem. thanks fellas for making me see the depths of my own stupidity. Matt Tucker thoughtbot cell: 617 775 0742 office: 617 876 4780 www.thoughtbot.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: AW: How to limit time for Connector threads?
I'm wondering the same question. How do I setup tomcat to debug remotely? I found this doc: http://jakarta.apache.org/site/idedev-rdeclipse.html But in that page, it just assumes that you've got tomcat already setup to debug remotely, and it doesn't give a link anywhere on the page on how to do it. Could someone post the link? AND it would be nice if someone added the link to the above idedev-rdeclipse page Thanks, Daniel [EMAIL PROTECTED] wrote: Hi Rodrigo, it is possible to debug a remote server in eclipse, which is not started in the ide? Do you have a link where I can find informations about this technique or a little bit time to explain it for me? Thanx Jens -Ursprüngliche Nachricht- Von: Rodrigo Ruiz [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. Mai 2004 12:27 An: Tomcat Users List Betreff: Re: How to limit time for Connector threads? rlipi wrote: I am going to try Antonio's proposal. Also I would like to try some profiling tool. But it will take a lot of time to find and repair something, I think. If you are dealing with a programming error like an infinite loop or a deadlock, you may have better luck using a debugger, rather than a profiling tool :-) Most of the popular IDEs (JBuilder, Eclipse, Idea, etc) can do remote debugging, so you just need to start your server (or a copy of it) in debug mode and connect to it from the IDE. In case you do not have any IDE, my recommendation is Eclipse, as it is free and needs no complicated installation. In case you do not know how to use remote debugging, I am pretty sure you can search through the archives in this list, or do some googling ;-) Hope it helps you, Rodrigo Ruiz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Encoding problems hwen using tomcat through mod_jk
No, not add. Change the default one. -Yan -Original Message- From: Diego Algorta Casamayou [mailto:[EMAIL PROTECTED] Sent: May 6, 2004 16:32 To: Tomcat Users List Subject: Re: Encoding problems hwen using tomcat through mod_jk Yansheng Lin escribió: In your apache conf file, you may want to specify the default encoding to be utf-8 instead of iso-8859-1. There may be other ways. Thank you, but it didn't work. Same result. Tried with: AddDefaultCharset on and AddDefaultCharset utf-8 and AddDefaultCharset iso8859-1 (yes, I've restarted apache) Diego. - 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: Question about memory
Hi, it's very interesting feature. I am trying it. But I have problem with authorization. The manager web pages are password protected. I see that there are two Config Elements that maybe can help: Login Config Element HTTP Authorization Manager But I don't know which one to use and how to configure it (what to write into Base URL of the HTTP Authorization Manager. I have tried o lot of possibilities but I am still receiving only: sampleResult timeStamp=1083937698899 dataType=text threadName=server monitoring1-1 label=Server status time=20 responseMessage=Unauthorized responseCode=401 success=false/ Thank you for any suggestions, Lipi -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 8:13 PM To: Tomcat Users List Subject: RE: Question about memory by the way, you can view the performance of Tomcat using JMeter. it will make a request to the status page and then graph the results. peter Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Here is a blurp i found searching through google for memory top and tomcat: It wouldn't hurt to quote or link to your sources ;) Supposedly tomcat 5 has a status page that displays memory usage. That might be more accurate. It's http://host:port/manager/status. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk problems - Need help!
I've heard that if you have 5.0.19 that you really should be using the latest mod_jk2 connector 2.0.4 Carl Olivier wrote: Greetings. Having a problem with mod_jk2 in some instances. Am hoping someone has some sort of feedback as to what could be causing it. Right the scenario: WinXP Pro Apache 2.0.49 (with the WinSock2 API disabled - same even with it enabled) Tomcat 5.0.19 mod_jk2/2.02 The JSP: A JSP page with a large amount of processing and/or generating a large amount of HTML to return to the client. The processing is mostly handled with custom tags on the JSP page. the output uses tables for positioning of the returning data - and in the offending JSP(s) there is a fair amount of processing that occurs while builiding the output buffer (note that we are buffering te output before sending it back to the client. The problems that occur: When running through Apache (mod_jk2) to the JSP page all works fine on a number of JSP pages. At a certain point (always the JSP described above) the output that is generated from the request is REALLY messed up! Below is a chunk of the HTML that is returned from the request (sorry it is ugly!): = BROKEN OUTPUT CHUNK === input type=text name=materialQty_52 tabindex=3 onblur=setZero(this) onkeyup=alterValues(52, false) value=1 size=5 /td td$input class=readonlyinputs type=text readonl XT *8 X % ! ` H r |+ I.E{j 0 p T $ r |[EMAIL PROTECTED]:E{ e x c e l . x l sH @ 1 5yG ! !FILE0 ; 8 X % ! ` H s |+C.yj 0 p V $ s |+ y a m i p r o . s a m H @ 1 5yG ! !FILE0 8 % ! ` H s2r:. %y'j 0 x Z $ s0(?0(?y W I N D O W ~ 1 . L N K a P 0 r $ s0(?0(?y W i n d o w s M e d i a P l a y e r . l n k H @ 1J 5yG ! !FILE0 v% 8 % ! ` H sbG`d7. 4 j 0 p X $ sbGbG0)uX T d e s k t o p . i n ip T [.ShellClassInfo] [EMAIL PROTECTED],-21787 yG ! !FILE0 z*8 % ` H G [EMAIL PROTECTED]'j 0 x Z $ GG ? R E M O T E ~ 1 . L N K t a n 0 l $ GG ? R e m o t e A s s i s t a n c e . l n kH @ ? ? 1 5yG FILE0 t 8 % ` H ' .N'j 0 x Z $ (( W I N D O W ~ 1 . L N K o r e 0 j $ (( W i n d o w s E x p l o r e r . l n k H @ 1Y yyG FILE0 v% 8 8 % ln ` H 2 . 4 j 0 p X $ GG d e s k t o p . i n i( [.ShellClassInfo] [EMAIL PROTECTED],-21782 [LocalizedFileNames] Windows Media [EMAIL PROTECTED]:\WINDOWS\inf\unregmp2.exe,-4 Remote [EMAIL PROTECTED],-152 Outlook Express. [EMAIL PROTECTED],-22053 yG FILE0 6s 8 % ` H [EMAIL PROTECTED]'j 0 x Z $ WGWG T O U R W I ~ 1 . L N K X P 0 h $ WGWG T o u r W i n d o w s X P . l n kH @ 1 5yG input type=text name=materialQty_59 tabindex=10 onblur=setZero(this) onkeyup=alterValues(59, false) value=0 size=5 /td = END BROKEN OUTPUT CHUNK === In addition, the HTTP headers are also being written out to the content on the above JSP (as follows) after another batch of similar to above. One this that is interesting is if you look at the chunk below, you will see that there are Context / blocks being written to the HTML!! Also these Context / blocks are for OTHER sites runnin on the same server (same Apache different Virtual Hosts, same Tomcat, differnet hosts). Note that all the sites are using the same AJP Connector in the jk comms (the uri mounts are done in the Apache VirtualHosts blocks using
RE: Include file?
ok, since I know nothing about adding xml entites to the server.xml, I'm sure there has to be examples out there. I'll take a look and hopefully I'll be able to come back with something. Thanks, Steve -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 8:21 PM To: Tomcat Users List Subject: Re: Include file? You have to do it via XML entities. (A non-intuitive process - YMMV) -Tim Steven Garrett wrote: Hi, I was wondering if you can use include in the server.xml. What I want to do is to define a bunch of different virtual hosts within my tomcat instance, but don't want to have to constantly change the server.xml. Is this possible. I've searched the archives and the web and I don't see anything telling me on way or the other. - 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: How to limit time for Connector threads?
I don't think that a debugger will help much in this case. A profiler might help, if you can reproduce the error in a test environment. (see below) Some ideas: - Use the access log to try to reproduce the error in a test environment. (AFAIK apache jmeter has the ability to create a test case from an access log) If you can reproduce the error, try to cut down the test case to the bare minimum that exposes the problem, then you might have luck with a profiler. - Write a servlet filter that logs the processing time for each request. - Extend the filter to interrupt the current thread if it takes to long and dump some data. -Original Message- From: rlipi [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 2:20 PM To: 'Tomcat Users List' Subject: RE: How to limit time for Connector threads? Maybe I have wrong idea about possibilities of debugging tools but I think that it will not help. We have above 100 000 hits a day and the problem occurs only once a day. It can be a result of one special request or (with greater probability) it is result of some combination of requests. In both cases I don't know these requests nor the particular place where the problem is. Therefore, I need some statistical information about server behavior before problem and/or all possible information about server status in the time of problem. Can debugger help me with this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem setting --WorkingPath in service.bat (2.0.24)
-Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] I'm trying to set --WorkingPath in service.bat, but it doesn't seem to do anything. It used to in Tomcat-5.0.19 but doesn't in Tomcat-5.0.24. Is there a new property to set the working path for the service? I also tried adding the property PR_WORKINGPATH, but that didn't do anything either. Now, I know that I can bring up the gui and set it manually, but my requirement is to set it in the script so no manipulation of the gui is necessary. Use the --StartPath and --StopPath. Those are the working paths for startup or shutdown processes, and are used to set the custom working paths. The preferred way of running TC since 5.0.19 is using jni, so you don't need them. BTW, it would be *really* nice if the docs were updated to show all the properties available. The commons-daemon procrun site ( http://jakarta.apache.org/commons/daemon/procrun.html ) hasn't been updated since January 13. You are right about that. Lack of time I'm afraid. MT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Include file?
Steven Garrett wrote: ok, since I know nothing about adding xml entites to the server.xml, I'm sure there has to be examples out there. I'll take a look and hopefully I'll be able to come back with something. Uh, there's an example in the Ant FAQ that was (somewhat obliquely) pointed to yesterday; adapted, you just need something like: !DOCTYPE Server [ !ENTITY vhosts SYSTEM file:/usr/local/tomcat/conf/virtual.xml ] !-- and within your Engine section, in this case -- vhosts; The only difference I found from the Ant example was that it needed the full path or produced a FileNotFoundException. No big deal... Tested in W2K/TC4 and OSX/TC5. FWIW! -- 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: Tomcat 5 JK2 and IIS 5
Yes, I am running the ajp connectors at 8009, the 8018 is where Tomcat is listening for HTTP requests instead of the default of 8080 I do have the entry you describe below ---Raymond On May 7, 2004, at 3:59 AM, Shane Linley wrote: From memory, Tomcat runs the default ajp13 connector off of port 8009 not 8080 which is the default HTTP connector port. You worker2.properties file should specify to use port 8009 for your ajp13 connector and not 8018. In your server.xml file look for an entry similar to: !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / to see what port your ajp13 connector is listening on. Regards, Shane. -Original Message- From: Raymond Blum [mailto:[EMAIL PROTECTED] Sent: Friday, 7 May 2004 12:00 PM To: Tomcat Users List Subject: Tomcat 5 JK2 and IIS 5 Hi I am struggling to get IIS 5.0 to pass off JSP and servlet context requests to tomcat 5.0.19 under Windows 2000.I have downloaded and installed what I believe to be a usable copy of isapi_redirector2,dll and have configured the virtual directory Jakarta under one of the web servers in my IIS server. Tomcat is running at 8018, not 8080 I can get to XXX.XXX.XXX.XXX:8018/servlet-examples/ just fine I map /servlet-examples/* to tomcat in workers2.properties and then I try the following XXX.XXX.XXX.XXX/servlet-examples which yields the response The servlet container is temporary unavailable or being upgraded (I have found that this message seems to come from mod_jk and it only is received in response to one of my mapped server paths, so I assume that the URI mapping is being successfully interpreted and that the problem is in my Tomcat and/or workers configuration) I portscan the machine at XXX.XXX.XXX.XXX and port 8009 is open so I assume that tomcat is there and listening. Any tips greatly appreciated! I have searched the archives and googled this a dozen ways. ---Raymond - 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: How to limit time for Connector threads?
A follow up to my previous mail. You may try following snippet. (I havn't tried it in a filter chain, so I'm not shure if the exception reaches the filter) InterruptTimer mTimer = new InterruptTimer(5000, 10); mTimer.start(); try { doChain() // Don't have the correct syntax at hand... } catch (??InterruptedIOException?? ex) { // Log what you think to be helpfull } mTimer.reset(); public class InterruptTimer extends Thread { long oEndTime = 0; int oSleepTime = 10; Thread oStartingThread = Thread.currentThread(); Thread oRunningThread = null; public InterruptTimer(int aLength, int aSleepTime) { // Both times are in ms oSleepTime = aSleepTime; oEndTime = System.currentTimeMillis() + aLength; } public void run() { oRunningThread = Thread.currentThread(); // Loop until the end time is reached or reset() was called. while (System.currentTimeMillis() oEndTime) { try { Thread.sleep(oSleepTime); } catch (InterruptedIOException ex) { } } if (oEndTime 0) { timeout(); } } public void reset() { oEndTime = 0; } public void timeout() { oStartingThread.interrupt(); } } -Original Message- From: Ralph Einfeldt Sent: Friday, May 07, 2004 7:12 PM To: Tomcat Users List Subject: RE: How to limit time for Connector threads? - Extend the filter to interrupt the current thread if it takes to long and dump some data. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Encoding problems hwen using tomcat through mod_jk
I've succeded! No, it wasn't fault of apache, tomcat or even mod_jk... it whas bad RPM dependencies on SuSE 8.2! I installed glibc-i18ndata glibc-locale restarted tomcat and apache and everything worked ok. Thank you anyway! Bytes DAC Yansheng Lin escribió: No, not add. Change the default one. -Yan -Original Message- From: Diego Algorta Casamayou [mailto:[EMAIL PROTECTED] Sent: May 6, 2004 16:32 To: Tomcat Users List Subject: Re: Encoding problems hwen using tomcat through mod_jk Yansheng Lin escribió: In your apache conf file, you may want to specify the default encoding to be utf-8 instead of iso-8859-1. There may be other ways. Thank you, but it didn't work. Same result. Tried with: AddDefaultCharset on and AddDefaultCharset utf-8 and AddDefaultCharset iso8859-1 (yes, I've restarted apache) Diego. - 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]
jk2: url mapping problem with apache
Hello all, Is there a way to configure mod_jk2 to check the full URL and/or the port the client uses to connect to the apache server? The problem I'm having is this: I have three webapps: public authorized secure I have three apache virtual servers: http://www.foo.bar; (HTTP - non-encrypted port 80) https://www.foo.bar; (HTTPS - SSL-encrypted port 443) https://secure.foo.bar; (HTTPS - SSL with client certs port 443) Everything works fine, almost (apache talks to Tomcat and Tomcat serves up my servlets): Example: http://www.foo.bar/public/servlet/HappyWebApp; https://www.foo.bar/authorized/servlet/NotForEverybodyWebApp; https://secure.foo.bar/secure/servlet/DoubleSecretProbationWebApp; But, I think what is happening is because the first and second examples share the same URL (minus the 'https' and 443 instead of port 80), JK2, doesn't distinguis between them, and after some security checking, I found I can do this: http://www.foo.bar/authorized/servlet/NotForEverybodyWebApp; NOT GOOD! conversely, https://www.foo.bar/public/servlet/HappyWebApp; will serve up a public webapp. Anything to the third pairing works because it is 'secure.foo.bar' and thus is a different URL (at least I THINK that is what is going on). I get a URL' cannot be found if I try to jump to a a secure webapp from http://www* or https://www*, and vice versa. This is how it should be for all of them. My workers2.properties looks like this: (snip) [channel.socket:localhost:8009] port=8009 host=localhost [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:www.foo.bar/public/servlet/*] group=ajp13:localhost:8009 [uri:www.foo.bar/authorized/servlet/*] group=ajp13:localhost:8009 [uri:secure.foo.bar/secure/servlet/*] group=ajp13:localhost:8009 (end) And the directives I use in httpd.conf and ssl.conf (apache2) are: In the 'MAIN' server configuration: Location /public/servlet/* JKUriSet worker ajp13:localhost:8009 /Location Virtual Host authorized: Location /authorized/servlet/* JKUriSet worker ajp13:localhost:8009 /Location And Virtual Host secure: Location /secure/servlet/* JKUriSet worker ajp13:localhost:8009 /Location Any thoughts, advice, directions, instructions, or implements of destruction on this matter would be greatly appreciated. Thanks, Duane Winner [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk problems - Need help!
Hey. In reply to my own post: I have now deployed the latest mod_jk2 buiild (2.04) that I compiled to the server mentioned below. The problem has now gone! Unfortunately there is one small problem though - which I detailed in a Bugzilla post: http://issues.apache.org/bugzilla/show_bug.cgi?id=28758 Any input would still be appreciated! Best regards, Carl -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: 07 May 2004 01:53 PM To: '[EMAIL PROTECTED]' Subject: mod_jk problems - Need help! Greetings. Having a problem with mod_jk2 in some instances. Am hoping someone has some sort of feedback as to what could be causing it. Right the scenario: WinXP Pro Apache 2.0.49 (with the WinSock2 API disabled - same even with it enabled) Tomcat 5.0.19 mod_jk2/2.02 The JSP: A JSP page with a large amount of processing and/or generating a large amount of HTML to return to the client. The processing is mostly handled with custom tags on the JSP page. the output uses tables for positioning of the returning data - and in the offending JSP(s) there is a fair amount of processing that occurs while builiding the output buffer (note that we are buffering te output before sending it back to the client. The problems that occur: When running through Apache (mod_jk2) to the JSP page all works fine on a number of JSP pages. At a certain point (always the JSP described above) the output that is generated from the request is REALLY messed up! Below is a chunk of the HTML that is returned from the request (sorry it is ugly!): = BROKEN OUTPUT CHUNK === input type=text name=materialQty_52 tabindex=3 onblur=setZero(this) onkeyup=alterValues(52, false) value=1 size=5 /td td$input class=readonlyinputs type=text readonl XT *8 X % ! ` H r |+ I.E{j 0 p T $ r |[EMAIL PROTECTED]:E{ e x c e l . x l sH @ 1 5yG ! !FILE0 ; 8 X % ! ` H s |+C.yj 0 p V $ s |+ y a m i p r o . s a m H @ 1 5yG ! !FILE0 8 % ! ` H s2r:. %y'j 0 x Z $ s0(?0(?y W I N D O W ~ 1 . L N K a P 0 r $ s0(?0(?y W i n d o w s M e d i a P l a y e r . l n k H @ 1J 5yG ! !FILE0 v% 8 % ! ` H sbG`d7. 4 j 0 p X $ sbGbG0)uX T d e s k t o p . i n ip T [.ShellClassInfo] [EMAIL PROTECTED],-21787 yG ! !FILE0 z*8 % ` H G [EMAIL PROTECTED]'j 0 x Z $ GG ? R E M O T E ~ 1 . L N K t a n 0 l $ GG ? R e m o t e A s s i s t a n c e . l n kH @ ? ? 1 5yG FILE0 t 8 % ` H ' .N'j 0 x Z $ (( W I N D O W ~ 1 . L N K o r e 0 j $ (( W i n d o w s E x p l o r e r . l n k H @ 1Y yyG FILE0 v% 8 8 % ln ` H 2 . 4 j 0 p X $ GG d e s k t o p . i n i( [.ShellClassInfo] [EMAIL PROTECTED],-21782 [LocalizedFileNames] Windows Media [EMAIL PROTECTED]:\WINDOWS\inf\unregmp2.exe,-4 Remote [EMAIL PROTECTED],-152 Outlook Express. [EMAIL PROTECTED],-22053 yG FILE0 6s 8 % ` H [EMAIL PROTECTED]'j 0 x Z $ WGWG T O U R W I ~ 1 . L N K X P 0 h $ WGWG T o u r W i n d o w s X P . l n kH @ 1 5yG input type=text name=materialQty_59 tabindex=10 onblur=setZero(this) onkeyup=alterValues(59, false) value=0 size=5 /td = END BROKEN OUTPUT CHUNK === In addition, the HTTP headers are also being written out to the content on the above JSP (as follows) after another batch of similar to
RE: Wiki page on tomcat and PHP
Yoav, this is merely a way for Tomcat to serve php files, right? So for example, if someone had JSP pages and PHP pages within the same app, they're not going to share the same Session. ie: you couldn't access any JSP implicit objects from the PHP pages, or vica-versa ? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 10:30 AM To: Tomcat Users List Subject: Wiki page on tomcat and PHP Hi, I've just created a wiki page for integrating tomcat with PHP (without Apache): http://wiki.apache.org/jakarta-tomcat/UsingPhp. If you're interesting in this area, please try it out and report your findings. Yoav Shapira Millennium Research Informatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Wiki page on tomcat and PHP
Hi, Yoav, this is merely a way for Tomcat to serve php files, right? So for example, if someone had JSP pages and PHP pages within the same app, they're not going to share the same Session. ie: you couldn't access any JSP implicit objects from the PHP pages, or vica-versa ? I don't know, I didn't try that ;) Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
unstoppable thread
Hi, I have a web application which, when called, starts running it's own thread in a new JVM, therefore Tomcat doesn't kill it when the server shuts down... is there any way to capture the thread again to kill it automatically? Thanks, Gareth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
verify database connection pool
I created a DB Connection Pool with net.sourceforge.jtds.jdbc.Driver, org.apache.commons.dbcp.BasicDataSourceFactory In java code, I use the connection as: .. Connection con = null; try { Context ctx = new InitialContext(); DataSource ds = (DataSource) ctx.lookup( java:comp/env/jdbc/DirectSQL); con = ds.getConnection(); con.close(); jdbc/DirectSQL is found, and The databse get connected. I thought after I close the connection, Tomcat handles the con in the pool. Somebody says that I have not used a DB connection pool. It is only a connection I get. Connection from pool should use pool or pool. So I start to doubter. Please confirm or teach me how to use Connection pool. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
setting dbcp connection pool connections
Hi, How do we set up the number of connections that we want, while using dbcp connection pooling provided by tomcat. I think we have to configure some xml file. But don't know what changes we have to make in which file. Can any body give a sample file. Thanks. Avinash Arora - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: unstoppable thread
Hi, I have a web application which, when called, starts running it's own thread in a new JVM, therefore Tomcat doesn't kill it when the server shuts down... is there any way to capture the thread again to kill it automatically? Do you start the thread? If so, keep a handle on it, and call interrupt() in a contextDestroyed method of a ServletContextListener. Hopefully the thread is written to gracefully and correctly handle interrupt(). Otherwise, you're a bit SOL. You can stick a System.exit call at the end of the contextDestroyed method. That'll ensure server exit ;) If there are other webapps on the same server instance, though, well... ;) Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unstoppable thread
set the thread to be a daemon thread, that should make the vm exit Filip - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, May 07, 2004 1:30 PM Subject: RE: unstoppable thread Hi, I have a web application which, when called, starts running it's own thread in a new JVM, therefore Tomcat doesn't kill it when the server shuts down... is there any way to capture the thread again to kill it automatically? Do you start the thread? If so, keep a handle on it, and call interrupt() in a contextDestroyed method of a ServletContextListener. Hopefully the thread is written to gracefully and correctly handle interrupt(). Otherwise, you're a bit SOL. You can stick a System.exit call at the end of the contextDestroyed method. That'll ensure server exit ;) If there are other webapps on the same server instance, though, well... ;) Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: Strange error
What event listeners? -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: May 5, 2004 08:15 To: Tomcat Users List Subject: Re: Strange error The object is a custom object. The only difference I can find is that this object has some event listeners attached to it. It is an implementation of a Tree object. The only java objects that it uses are Map, TreeMap and few other util classes. Nathan On May 5, 2004, at 7:18 AM, QM wrote: On Tue, May 04, 2004 at 02:30:16PM -0600, Nathan Maves wrote: : What could cause this error in Tomcat 5.0.19. : : 2004-05-04 14:21:02 StandardContext[/manager]HTMLManager: : ManagerServlet.reload[/ReportViewer] : java.lang.ThreadDeath : at : org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade r : .java:1270) : [snip] : It happens when I place an object in the session and then click reload : from the webapp manager. Any object, or a particular object? (especially a custom object) Does said object do anything with threads, such as calling ::stop()? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't connect from applet
Thank you for the info and the link to the sun site. I'm still not sure why this applet would work on other workstations and not on the originating host. I didn't see anything obvious on this web page that explained that. Do you have any ideas about that? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 12:10 PM To: Tomcat Users List Subject: RE: Can't connect from applet Hi, It's an applet security issue. Read http://java.sun.com/sfaq/ especially the part about originating host. Yoav Shapira Millennium Research Informatics -Original Message- From: Celona, Paul - AES [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 10:42 AM To: [EMAIL PROTECTED] Subject: Can't connect from applet I have developed an applet that can connect to the database and access the data I need. When I run the same applet under Tomcat, I get the following exception Unable to connect to any hosts due to exception java.security.AccessControlException: access denied (java.net.SocketPermission 10.1.1.243:3306 connect, resolve) I only get this exception when I run a browser on the same computer (10.1.1.243) that tomcat/mysql are running from. Accessing this from other browsers on other computers is not a problem. Is this an issue with MySql or Tomcat or Applets? This email and any files transmitted with it are proprietary 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 notify the sender. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of ITT Industries, Inc. The recipient should check this email and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this email. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any files transmitted with it are proprietary 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 notify the sender. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of ITT Industries, Inc. The recipient should check this email and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: setting dbcp connection pool connections
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples -howto.html Searching the tomcat docs sometimes proves fruitful. -Original Message- From: Arora, Avinash [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 1:31 PM To: [EMAIL PROTECTED] Subject: setting dbcp connection pool connections Hi, How do we set up the number of connections that we want, while using dbcp connection pooling provided by tomcat. I think we have to configure some xml file. But don't know what changes we have to make in which file. Can any body give a sample file. Thanks. Avinash Arora - 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: unstoppable thread
Gareth Western wrote: Hi, I have a web application which, when called, starts running it's own thread in a new JVM, therefore Tomcat doesn't kill it when the server shuts down... is there any way to capture the thread again to kill it automatically? Thanks, Gareth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] You don't mean you are launching another JVM process by the comment about another JVM do you? Just trying to get clarity. If you are running a seperate process then no not unless you make it use shared memory (see nio), or come up with some other format for IPC (inter process communication), and listen to stop the process (gracefully). If it is really a thread and not a process then follow the directions in of another user and make it a non-daemon thread. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and Windows 2003 Server
Hi. Sorry.I don´t know if this is the right email to answer my question. I´m new here. I have a web-application running with Tomcat on Win 2000 Server and I need to move to Win 2003 Server. However, I have already listened that there are some problems running Tomcat on win 2003. It´s true? Thanks. []'s __ Anderson Boechat Lopes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Windows 2003 Server
I am running Tomcat 4.1.30 on Win 2k3 and it runs just fine :-) - Original Message - From: Anderson Boechat Lopes [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, May 07, 2004 2:11 PM Subject: Tomcat and Windows 2003 Server Hi. Sorry.I don´t know if this is the right email to answer my question. I´m new here. I have a web-application running with Tomcat on Win 2000 Server and I need to move to Win 2003 Server. However, I have already listened that there are some problems running Tomcat on win 2003. It´s true? Thanks. []'s __ Anderson Boechat Lopes - 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 and Windows 2003 Server
Running 4.1.29 on 2003. Had problems with IIS6 and DoD PKI client authentication. Went to Apache to fixed that problem. -Original Message- From: Anderson Boechat Lopes [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 12:12 PM To: Tomcat Users List Subject: Tomcat and Windows 2003 Server Hi. Sorry.I don´t know if this is the right email to answer my question. I´m new here. I have a web-application running with Tomcat on Win 2000 Server and I need to move to Win 2003 Server. However, I have already listened that there are some problems running Tomcat on win 2003. It´s true? Thanks. []'s __ Anderson Boechat Lopes - 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]
Any Known File Descriptor Issue?
Our system exports multiple files at a time, by export we mean generate the files in pure html and download them. The number of files generated can be anywhere from 10 - unlimited number of html files. The export and html generation works fine as long as we don't run out of file descriptors on the Solaris box. But as soon as we reach 1024 file descriptors the application dies. We could increase the file descriptors but we know that's not efficient and practical. What we don't understand is why the file descriptors are being left open. We close all the files after they are created and the application garbage collects all the objects too. If we run the same code as a stand alone java app through the command line it works great. Creates the files and leaves no file descriptors open. It seems to only happen when we run it through Tomcat 4.1.24. Is there a file descriptor leak in Tomcat 4.1.24? Can anyone explain why we are having this problem or recommend a solution for us?
RE: Any Known File Descriptor Issue?
Hi, There's no known FD leak in tomcat. I don't necessarily agree that increasing the FD limit is inefficient or impractical. Why do you say so? Could it be that whole the file descriptors / files are closed by your code, the underlying streams to the client aren't, and therefore the FD limit is still being reached? Yoav Shapira Millennium Research Informatics -Original Message- From: Rob Wichterman [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 4:00 PM To: [EMAIL PROTECTED] Subject: Any Known File Descriptor Issue? Our system exports multiple files at a time, by export we mean generate the files in pure html and download them. The number of files generated can be anywhere from 10 - unlimited number of html files. The export and html generation works fine as long as we don't run out of file descriptors on the Solaris box. But as soon as we reach 1024 file descriptors the application dies. We could increase the file descriptors but we know that's not efficient and practical. What we don't understand is why the file descriptors are being left open. We close all the files after they are created and the application garbage collects all the objects too. If we run the same code as a stand alone java app through the command line it works great. Creates the files and leaves no file descriptors open. It seems to only happen when we run it through Tomcat 4.1.24. Is there a file descriptor leak in Tomcat 4.1.24? Can anyone explain why we are having this problem or recommend a solution for us? This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 is live, but won't display pages for me.
Hi, using RH Linux 9 (blag), I have jsdk, ANT, and Tomcat loaded. Jsdk let me run helloWorld.java from command line, and Tomcat allows me to view their welcome page at localhost:8080. I have seen in a tutorial: http://www.dougsparling.com/comp/howto/Ent...ux-HOWTO-4.html that i should be able to run java servlets by creating a CONTEXT PATH at $CATALINA_HOME/conf/server.xml , and I have created that path there: Context path=/sparling docBase=webapps/sparling crossContext=false reloadable=true /Context and then created the necessary directory path : # cd $CATALINA_HOME # cd webapps # mkdir sparling # cd sparling # mkdir WEB-INF # cd WEB-INF # mkdir classes I took the helloJava.class file, and put it in the classes ($CAT_HOME/webapps/sparling/WEB-INF/classes ) directory. The instructions said that now I can run this servlett by going to : http://localhost:8080/sparling/servlet/HelloWorld in my browser (mozilla). But when I do this, I get : The requested resource (/sparling/servlet/HelloWorld) is not available. Can anyone tell what might be wrong ? Additionally, I am not able to get a hello.html page to display using the method explained to me in another tutorial: The instructions said if I put an HTML file in directory: install_dir/webapps/ROOT or install_dir/webapps/ROOT/somePath that I could access them with http://localhost/filename or http://localhost/somePath/filename. I put the file in that director, and then used http://localhost:8080/test1.html in my browser, and was giiven: The requested resource (/test1.html) is not available. Any suggestions regarding what I should do, or where I can get the information I need to get Tomcat running pages and Java Servlets? thanks for listening, Mike P - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Include file?
ok, so I put this into my server.xml underneath the last Host entry !ENTITY virtualhosts = SYSTEM /etc/tomcat4/virtualhosts.xml / virtualhosts; And I get the following error The entity Virtualhost was referenced, but not declared When I put the entity any other way I get errors about the entity. What am I missing? Please let me know what other info you might need. Am running tomcat 4.1.24 on RedHat9 box. Thanks, Steve -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 1:36 PM To: Tomcat Users List Subject: Re: Include file? Steven Garrett wrote: ok, since I know nothing about adding xml entites to the server.xml, I'm sure there has to be examples out there. I'll take a look and hopefully I'll be able to come back with something. Uh, there's an example in the Ant FAQ that was (somewhat obliquely) pointed to yesterday; adapted, you just need something like: !DOCTYPE Server [ !ENTITY vhosts SYSTEM file:/usr/local/tomcat/conf/virtual.xml ] !-- and within your Engine section, in this case -- vhosts; The only difference I found from the Ant example was that it needed the full path or produced a FileNotFoundException. No big deal... Tested in W2K/TC4 and OSX/TC5. FWIW! -- 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: verify database connection pool
Daxin, That somebody is referring to the connection pool api available in the j2se. What they are not picking up on is that you are requesting the connection from the datasource. And under tomcat this is a connection pool. And what you are receiving in fact is a connection but one from the pool that was established by Tomcat. Your code is correct and is using the connection pool features of Tomcat. If you are in need of more proof then download the source and look through it. I have. Doug www.parsonstechnical.com - Original Message - From: Daxin Zuo [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, May 07, 2004 2:29 PM Subject: verify database connection pool I created a DB Connection Pool with net.sourceforge.jtds.jdbc.Driver, org.apache.commons.dbcp.BasicDataSourceFactory In java code, I use the connection as: .. Connection con = null; try { Context ctx = new InitialContext(); DataSource ds = (DataSource) ctx.lookup( java:comp/env/jdbc/DirectSQL); con = ds.getConnection(); con.close(); jdbc/DirectSQL is found, and The databse get connected. I thought after I close the connection, Tomcat handles the con in the pool. Somebody says that I have not used a DB connection pool. It is only a connection I get. Connection from pool should use pool or pool. So I start to doubter. Please confirm or teach me how to use Connection pool. Thanks - 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: Include file?
Steven Garrett wrote: ok, so I put this into my server.xml underneath the last Host entry !ENTITY virtualhosts = SYSTEM /etc/tomcat4/virtualhosts.xml / ?! Uh, that's not even close to what I sent :-) !DOCTYPE Server [ !ENTITY virtualhosts SYSTEM file:/etc/tomcat4/virtualhosts.xml ] That goes right *before* the Server ... tag at the top of your server.xml file... virtualhosts; The above line can then follow your other Host block. HTH! -- 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: Include file?
Hi Hassan, I'm sorry to bothering you. I'm not getting what you send. Can you please explain about this? Thanks Ram -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 2:10 PM To: Tomcat Users List Subject: Re: Include file? Steven Garrett wrote: ok, so I put this into my server.xml underneath the last Host entry !ENTITY virtualhosts = SYSTEM /etc/tomcat4/virtualhosts.xml / ?! Uh, that's not even close to what I sent :-) !DOCTYPE Server [ !ENTITY virtualhosts SYSTEM file:/etc/tomcat4/virtualhosts.xml ] That goes right *before* the Server ... tag at the top of your server.xml file... virtualhosts; The above line can then follow your other Host block. HTH! -- 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Include file?
Hi Hassan, I'm sorry to bothering you. I'm not getting what you send. Can you please explain about this? Thanks Ram -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 2:10 PM To: Tomcat Users List Subject: Re: Include file? Steven Garrett wrote: ok, so I put this into my server.xml underneath the last Host entry !ENTITY virtualhosts = SYSTEM /etc/tomcat4/virtualhosts.xml / ?! Uh, that's not even close to what I sent :-) !DOCTYPE Server [ !ENTITY virtualhosts SYSTEM file:/etc/tomcat4/virtualhosts.xml ] That goes right *before* the Server ... tag at the top of your server.xml file... virtualhosts; The above line can then follow your other Host block. HTH! -- 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 is live, but won't display pages for me.
On Fri, May 07, 2004 at 04:01:30PM -0400, Parker, Mike wrote: : I have seen in a tutorial: : http://www.dougsparling.com/comp/howto/Ent...ux-HOWTO-4.html Could you provide the full URL, please? It would be easier to see what may have gone wrong if the rest of us can see all of the steps you took. You should also list which versions of Tomcat and the JDK you're running. : I took the helloJava.class file, and put it in the classes : ($CAT_HOME/webapps/sparling/WEB-INF/classes ) directory. If you're running Tomcat 5, you'll have to put the class in a pacakge. This will not work as-is. : The instructions said that now I can run this servlett by going to : : http://localhost:8080/sparling/servlet/HelloWorld Chances are, your instructions assume the invoker servlet is loaded. It's off by default in Tomcat 5, and (IIRC think) Tomcat 4.1. Check out Sun's servlet spec for how to use a web.xml file that maps servlet classes to URIs. That should solve the problem. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Include file?
Hi Guys, I don't know is it the right place to ask this question. If not plz forgive me and direct me to the right place. I have been struggling for the past two weeks to create a connection pool in Tomcat 4.x/Tomcat 5.x. Actually my environment is, Windows XP professional, j2sdk1.4.2_04, Tomcat 5.0.19 and Oracle 8.1.7. I configured server.xml and web.xml as per the documentation you provided in Apache.org. But I'm getting the following error. SQLException Occured org.apache.commons.dbcp.SQLNestedException: Cannot create J DBC driver of class '' for connect URL 'null', cause: null. NO Suitable driver. I tried all the drivers that are available at Oracle site and I dropped the jar file in common\lib directory but of no use. And I tried many ways that are found by google search. Please help me out in solving this problem. Here are the related files.. Server.xml !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Comment these entries out to disable JMX MBeans support -- !-- You may also configure custom components (e.g. Valves/Realms) by including your own mbean-descriptor file(s), and setting the descriptors attribute to point to a ';' seperated list of paths (in the ClassLoader sense) of files to add to the default list. e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Catalina !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 5 documentation bundle for more detailed instructions): * If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. * Execute: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) with a password value of changeit for both the certificate and the keystore itself. By default, DNS lookups are enabled when a web application calls request.getRemoteHost(). This can have an adverse impact on performance, so you can disable it by setting the enableLookups attribute to false. When DNS lookups are disabled, request.getRemoteHost() will return the String version of the IP address of the remote client. -- !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
Tomcat and JK2 config help needed
I have been trying to get the isapi_redirector2.dll working, but without much luck. As the docs are pretty poor, I have gone through several people's accounts of their configs but no luck. So, I am posting the config and environment with the hope that someone sees a problem or can point me at a good path to investigate. **ENVIRONMENT My server is Win2K Webserver is IIS 5 Tomcat 5.0.19 running as a service I have tried the binary for the latest JK2 (2.0.4) and the prior version, same results. ***PROBLEM When I access jsp-examples directly from tomcat (i.e. specifying the tomcat http port), it works fine. When I try to access it via XXX.XXX.XXX.XXX/jsp-examples I get the message The Handle is Invalid **OTHER ERROR INFO There are no messages in the Event log and the only messages I have ever seen in the jk2.log is the message Initializing log file c:/tomcat/logs/iis_jk2.log The web server logs indicate a status code of 500 on a request to the redirector DLL. Nothing in the Tomcat logs. The work/jk2.shm file is created **CONFIG I have set up a virtual directory named jakarta, it points to c:\tomcat\bin\win32\i386 exec permission was specified when creating it I have set up an ISAPI filter on the web server it points to the redirector DLL in the dir c:\tomcat\bin\win32\i386 my c:\tomcat\conf/jk2.conf file is all comments (#) my c:\tomcat\conf\workers2.properties file (until the ) [logger.file:0] level=DEBUG file=c:/tomcat/logs/iis_jk2.log [shm:] info=shared mem file file=c:\tomcat\work\jk2.shm size=100 #[ajp13:localhost:8009] #info=ajp13 #channel=channel.socket:localhost:8009 [channel.socket:127.0.0.1:8009] info=Ajp13 worker tomcatId=localhost:8009 [uri:/servlets-examples/*] info=Tomcat 5 servlet examples [uri:/jsp-examples/*] info=Tomcat 5 JSP examples ## END OF PROPERTIES FILE ## My relevant registry settings... Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] serverRoot=C:\\tomcat extensionUri=/jakarta/isapi_redirector2.dll workersFile=C:\\tomcat\\conf\\workers2.properties logLevel=DEBUG [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat\5.0] InstallPath=c:\\tomcat Version=5.0.19 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat Service Manager] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat Service Manager\Tomcat5] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat Service Manager\Tomcat5\Parameters] Arguments=java Description=Apache Tomcat 5.0.19 Server - http://jakarta.apache.org/tomcat/; DisplayName=Apache Tomcat ImagePath=c:\\tomcat\\bin\\bootstrap.jar Java=java StartupClass=org.apache.catalina.startup.Bootstrap;main;start ShutdownClass=org.apache.catalina.startup.Bootstrap;main;stop Startup=manual JavaOptions=hex(7): 2d,00,44,00,63,00,61,00,74,00,61,00,6c,00,69,00,6e,00,61,\ 00,2e,00,68,00,6f,00,6d,00,65,00,3d,00,22,00,63,00,3a,00,5c,00,74,00,6f, 00,\ 6d,00,63,00,61,00,74,00,22,00,00,00,2d,00,44,00,6a,00,61,00,76,00,61,00, 2e,\ 00,65,00,6e,00,64,00,6f,00,72,00,73,00,65,00,64,00,2e,00,64,00,69,00,72, 00,\ 73,00,3d,00,22,00,63,00,3a,00,5c,00,74,00,6f,00,6d,00,63,00,61,00,74,00, 5c,\ 00,63,00,6f,00,6d,00,6d,00,6f,00,6e,00,5c,00,65,00,6e,00,64,00,6f,00,72, 00,\ 73,00,65,00,64,00,22,00,00,00,2d,00,58,00,72,00,73,00,00,00,00,00 WorkingPath=c:\\tomcat StdOutputFile=c:\\tomcat\\logs\\stdout.log StdErrorFile=c:\\tomcat\\logs\\stderr.log ## END OF REG FILE ### - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0 + IIS 6 + Windows 2003
All This is my first post to the mailing list! Hope you guys can help! I am installing an app on Tomcat 5 + IIS 6.0 + Windows 2003 Server... I am having issues with the IIS -- Tomcat connectivity. I have followed the steps as per the instructions on http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html... including the missing steps. Here is what I have done 1. Installed: - jsdk1.4.2_04 for windows - tomcat 5.0.19 for windows - IIS 6.0 (this came with the Windows 2003 server) 2. Configured tomcat to work on port 8080 and it works perfectly! 3. Added the isapi_redirector2.dll to a virtual directory on the IIS default site. (the green arrow shows up in ISAPI Filters tab for the Default Website properties) 4. Allowed the Jakarta-Tomcat Web Service in the Web Service Extensions. 5. Added the necessary Registry entries for Apache. I am unable to figure out why am I not able to get the IIS-Tomcat connectivity to work!! Can someone guide me? I noticed that when I change the port parameter to 80 (instead of the default 8080) non-SSL Coyote HTTP/1.1 Connector in the server.xml, I am able to access the site without specifying the port. But in that case I guess I am simply running Tomcat on port 80 - this is not the solution, I guess. Here are my config files: kj2.properties: ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list # handler.list=apr,request,channelJni # # Override the default port for the socketChannel # channelSocket.port=8019 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 # apr.jniModeSo=inprocess channelSocket.port=8009 shm.file=d:/tomcat5/work/jk2.shm server.xml = !-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified during installation -- Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / !-- Note : To disable connection timeouts, set connectionTimeout value to 0 -- !-- Note : To use gzip compression you could set the following properties : compression=on compressionMinSize=2048 noCompressionUserAgents=gozilla, traviata compressableMimeType=text/html,text/xml -- !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- !-- Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS / -- !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / !-- Define a Proxied HTTP/1.1 Connector on port 8082 -- !-- See proxy documentation for more information about using this. -- !-- Connector port=8082 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false acceptCount=100 debug=0 connectionTimeout=2 proxyPort=80 disableUploadTimeout=true / -- workers2.properties === [shm:] info=Shared memory file. Required for multiprocess servers file=D:\Tomcat5\work\jk2.shm size=100 [channel.socket:localhost:8009] info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol tomcatId=localhost:8009 [uri:/jsp-examples/*] info=JSP examples, map requests for all JSP pages to Tomcat. context=/jsp-examples [uri:/servlets-examples/*] info=Servlet examples, map requests for all servlets to Tomcat. context=/servlets-examples - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Include file?
Server.xml is for the most part a standard xml file and what Hassan is suggesting is a very standard way of including external files in XML. At the very top of your file, before anything (except maybe the ?xml version=1.0 ...? line if it exists) put in a DOCTYPE tag as described below. The entity tag within it will define the external file to include. Place virtualhosts; where you want that file to be included as in: !DOCTYPE Server [ !ENTITY virtualhosts SYSTEM file:/etc/tomcat4/virtualhosts.xml ] Server port=8005 shutdown=SHUTDOWN debug=0 lot of config stuff including global resources and service tag.. Engine ... Host ...(if any are defined within the file) more config stuff including contexts if any. /Host virtualhost ; /Engine /Server Note: DOCTYPE is a special case -- there is no terminating /DOCTYPE tag. Putting one in will only cause an error. virtualhosts.xml should be just a fragment of the server.xml file -- preferably just the Host open and close tags and all the stuff within them. If you need more info on this way of doing things, I strongly recommend consulting some documentation on XML files either online or in books. It'll help to understand the XML standard better. --David Ponnam Janiki wrote: Hi Hassan, I'm sorry to bothering you. I'm not getting what you send. Can you please explain about this? Thanks Ram -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 2:10 PM To: Tomcat Users List Subject: Re: Include file? Steven Garrett wrote: ok, so I put this into my server.xml underneath the last Host entry !ENTITY virtualhosts = SYSTEM /etc/tomcat4/virtualhosts.xml / ?! Uh, that's not even close to what I sent :-) !DOCTYPE Server [ !ENTITY virtualhosts SYSTEM file:/etc/tomcat4/virtualhosts.xml ] That goes right *before* the Server ... tag at the top of your server.xml file... virtualhosts; The above line can then follow your other Host block. HTH! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Information
Norton AntiVirus gelöscht1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0 + IIS 6 + Windows 2003
I went thru this and it just an misdocumented feature gives interesting results. Focus on the isapi-director.dll 1. Where does the dll reside (full folder path) 2. What is the virtual directory name in IIS and what the physical folder pointing to. 3. What is the registry entry value for workers2.properties 4. Is the isapi-director.dll is for the version compatable to tomcat When you provide answer for this, try as much as possible the correct value of folder instead of generic. -- Sent from my BlackBerry Wireless Handheld - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.29 - Tomcat 4.0.1 - App Problems
Hi, It's an XML parser conflict. Make sure you don't have conflicting XML parser libraries in your WEB-INF/lib, common/lib, common/endorsed, and jre/lib/ext directories. Tomcat 4.0.1, like all tomcat 4.x releases, supports Servlet 2.3 and JSP 1.2. Yoav Shapira Millennium Research Informatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 6:30 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.29 - Tomcat 4.0.1 - App Problems Hi all, I had to port application from Tomcat 4.1.29 where it is running without problems on Tomcat 4.0.1 and I encountered on errors with every jsp page. Below is text of error message. It seems to be the inadequate web.xml (it is need change the web.xml file?)? Or there is not support for Servlet 2.3 and JSP 1.2 in Tomcat 4.0.1? the error message: ... exception javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871) root cause java.lang.ClassCastException at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFac tory .java:93) at org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java: 183) at org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocati onsC ache.java:165) ... Does anybody know where the problem is? For avise thanks in advance. Best regarsd, Ondrej. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1.29 - Tomcat 4.0.1 - App Problems
Shapira, Yoav wrote: [snip] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. Hey, Yoav, isn't this disclaimer exceptionally unfortunate when sending email to a mailing list? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: the requested resource is unavailable
Hi Matt, Maybe this will be a bit clearer. When I start tomcat and go to the the admin page I get promted for a username password, I don't recall setting one so I have no idea what to enter. When I try to enter the manager app I get: HTTP Status 403 - Access to the requested resource has been denied type Status report message Access to the requested resource has been denied description Access to the specified resource (Access to the requested resource has been denied) has been forbidden. Apache Tomcat/5.0.19 -Original Message- From: Matt Tucker [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 9:34 AM To: Tomcat Users List Subject: Re: the requested resource is unavailable aandthat's my problem. thanks fellas for making me see the depths of my own stupidity. Matt Tucker thoughtbot cell: 617 775 0742 office: 617 876 4780 www.thoughtbot.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: the requested resource is unavailable
John, See: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html#Configuring%20Manager%20Application%20Access Same process applies to the admin app with a user role of admin. Doug www.parsonstechnical.com PS Please start a new thread on future post. It makes searching cleaner. Often you will not get a reply to a hijacked thread. - Original Message - From: John Najarian [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, May 07, 2004 10:37 PM Subject: RE: the requested resource is unavailable Hi Matt, Maybe this will be a bit clearer. When I start tomcat and go to the the admin page I get promted for a username password, I don't recall setting one so I have no idea what to enter. When I try to enter the manager app I get: HTTP Status 403 - Access to the requested resource has been denied type Status report message Access to the requested resource has been denied description Access to the specified resource (Access to the requested resource has been denied) has been forbidden. Apache Tomcat/5.0.19 -Original Message- From: Matt Tucker [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 9:34 AM To: Tomcat Users List Subject: Re: the requested resource is unavailable aandthat's my problem. thanks fellas for making me see the depths of my own stupidity. Matt Tucker thoughtbot cell: 617 775 0742 office: 617 876 4780 www.thoughtbot.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Passing init parameters to event listener
Hi, Use ServletContext init parameters (as opposed to attributes). Those are bound for your contextInitialized event and anything after it. Yoav Shapira Millennium Research Informatics -Original Message- From: Dennis Dai [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 4:13 AM To: Tomcat Users List Subject: Passing init parameters to event listener Hi all, I'd like to pass init parameters to event listener (in my case, it's session listener) instead of hard coding those parameters. But event listeners do not support init parameters like filters do. I know that I can get SetvletContext from events (thus getting the ServletContext attributes for the context), but that'll be at time when event happens, not listener init time. Any better way? Thanks, Dennis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem setting --WorkingPath in service.bat (2.0.24)
At 07:35 PM 5/7/2004 +0200, you wrote: -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] I'm trying to set --WorkingPath in service.bat, but it doesn't seem to do anything. It used to in Tomcat-5.0.19 but doesn't in Tomcat-5.0.24. Is there a new property to set the working path for the service? I also tried adding the property PR_WORKINGPATH, but that didn't do anything either. Now, I know that I can bring up the gui and set it manually, but my requirement is to set it in the script so no manipulation of the gui is necessary. Use the --StartPath and --StopPath. Those are the working paths for startup or shutdown processes, and are used to set the custom working paths. Thanks for the info The preferred way of running TC since 5.0.19 is using jni, so you don't need them. Hmm... Can you explain a bit more? What does using jni have to do with a working path? How does using jni result in not requiring a working path? If I used jni as you say, and I created a new File(testfile.txt) and wrote it, where would it go? If I had a working path set, I'd expect this to show up at the location of the working path or, if none is specified, whatever directory the VM started from. If you can clarify this, it would be very helpful. Oh, one other question. How does one specify that the service should be able interact with the desktop? That is, again, in service.bat, not manually via the gui. BTW, it would be *really* nice if the docs were updated to show all the properties available. The commons-daemon procrun site ( http://jakarta.apache.org/commons/daemon/procrun.html ) hasn't been updated since January 13. You are right about that. Lack of time I'm afraid. I know the feeling. Jake MT. - 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]