RE: RotateLogs in Apache 2.0
My Apologies !! - Nehal -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 08, 2006 11:47 AM To: Tomcat Users List Subject: RE: RotateLogs in Apache 2.0 > From: Nehal Sangoi [mailto:[EMAIL PROTECTED] > Subject: RotateLogs in Apache 2.0 > > I need to rotate logs in apache 2.0 once they reach the > size limit of 5 MB. What commands would work to carry > out the reqd. job? Why would you be asking an Apache httpd question on the Apache Tomcat mailing list? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RotateLogs in Apache 2.0
Hi I need to rotate logs in apache 2.0 once they reach the size limit of 5 MB. What commands would work to carry out the reqd. job? Thanks Nehal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: serializing java code
I do have objects that do db connections. I think i would need to dig out some more info into the direction you provided. I will look out for how to do it and work upon. Thank You.for providing useful information !! Nehal -Original Message- From: Richard Mixon [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 12:55 PM To: 'Tomcat Users List' Subject: RE: serializing java code Your "code" does not really get "serialized". You just have to be sure that you are not storing any objects in the Session that are not Serializable - i.e. they must implement the interface java.io.Serializable. For many of your custom object types it may be as simple as just implementing the Serializable interface. But if any of your objects have database connection, or other information that cannot be readily serialized - this will take a bit more thought. I'm not aware of a tool that would do this for you - it would be magic :) When I moved an application to a Tomcat cluster a while back, it turned up a number of objects that I did not realize were Serializable, including Log4J loggers. It took a bit of rework, but probably was all done within a half of a day. HTH - Richard -----Original Message- From: Nehal Sangoi [mailto:[EMAIL PROTECTED] Sent: Monday, January 23, 2006 11:32 PM To: Tomcat Users List (E-mail) Subject: serializing java code Hi I need to serialize my existing java code for implementing Tomcat Clustering feature. Is there any ready-made tool which does the job easily? Otherwise, manually, how can i convert my existing code into serialized format? Thanks Nehal - 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]
serializing java code
Hi I need to serialize my existing java code for implementing Tomcat Clustering feature. Is there any ready-made tool which does the job easily? Otherwise, manually, how can i convert my existing code into serialized format? Thanks Nehal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: unable to load classes
Hi Thank You for giving some direction to work upon. I will try and test the way you have suggested and reply my findings... Regards Nehal -Original Message- From: Michel Costa [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 10:17 PM To: [EMAIL PROTECTED] Subject: RE: unable to load classes I think I am looking for the same thing, but the reason I am trying to do that is to allow reloading classes from WEB-INF/classes without reloading the context. I searched a little and found that: http://tomcat.apache.org/tomcat-5.5-doc/config/loader.html Hope it helps you... I am still trying to make it work... here is a reference to my email message in the list, asking about the context loader: http://mail-archives.apache.org/mod_mbox/tomcat-users/200601.mbox/%3c2006011 [EMAIL PROTECTED] - Segue mensagem original! - De: "Nehal Sangoi" <[EMAIL PROTECTED]> Data: Wed, 11 Jan 2006 19:33:10 +0530 Para: "'Nehal Sangoi'" <[EMAIL PROTECTED]>,"'Boris Unckel'" <[EMAIL PROTECTED]>,"Tomcat Users List \(E-mail\)" Assunto: RE: unable to load classes Hi How can i change the default classloading hierarchy in Tomcat 5.5.9 ? And would that affect in my Tomcat setup anyway? Please reply to my query because i am stucked up badly at this problem. -Original Message- From: Nehal Sangoi [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 9:58 AM To: 'Boris Unckel'; Tomcat Users List (E-mail) Subject: RE: unable to load classes Hi Boris, I will explain the issue thoroughyl, and the options i tried so far to resolve the same. Environment Details : OS : Linux Enterprise Tomcat 5.5.9 Apache HTTP Server 2.0.54 Apache and Tomcat reside on physically different server. All Tomcat applications are SiteMinder Enabled. I have one base installation of Tomcat and Multile Tomcat Instances created (each with diff user). I am not at all starting base-tomcat in my environment. My Tomcat Instances are running. Java - JDK used is 1.5 -- latest one. Now, i have several applications, which have framework in it. Technically, i don't understand what framework is as i am basically a UNIX Admin and administer Tomcat+Apache. The applications, which use framework, are using following two jarfiles. expd2util.jar jdom.jar If i keep these jarfiles into any tomcat instance's WEB-INF/lib, the application runs absolutely fine. As i mentioned earlier, the above two jarfiles would be used by many other tomcat instances/applications too. Hence, i wanted these jarfiles be kept in either base tomcat's common/lib or shared/lib and symlinks be created into every tomcat instance's shared/lib dir. Doing this, it will ease up my administration task in future. Unfortunately, its not doing. === Description of exact problem and options tried so far : Note : wherever i am keeping these jars, keeping only single copy of it at one particular location by discarding them out from any other classpath. I kept both the jarfiles into base-tomcat's common/lib and created symlink into the application's shared/lib folder. Ideally, this should work, because i have 3 more other jarfiles (third party) linked this way and they are working well. But tomcat is not picking up these two jarfiles from common/lib and results in Null Pointer Exception. Also, it registers nothing in catalina.out. Later, i kept both the jarfiles in shared/lib dir of that tomcat instance itself. This too did not work and resulted in No classdef found error. After that, i kept both into shared/lib of base-tomcat and again created symlinks into shared/lib of application. No luck. Again, i changed my mind and converted the jarfiles into classes and placed those classes into shared/classes folder of application. but :(( Finally, i exported the explicitly defined CLASSPATH variable into application user's profile and tried for tomcat to pick from there atleast and here too, no hope. If you read my mail closely, i have tried out almost all options. I went through the "classloader" documentation of Tomcat 5.5 on jakarta website. Theoratically, my application should work, the way i am thinking of but practically its failing. Regarding Servlet API, yes, you are right. There is default sevlet-API jar in Tomcat's Internal Classes. == I think, i have replied to your queries. If you need any more info, please let me know. I am awaiting for a solution to come out to overcome this issue as i need to implement the same into my Production Environment. Thanks & Regards, Nehal -Original Message- From: Boris Unckel [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 6:02 PM To: [EMAIL PROTECTED] Subject: RE: unable to load classes > I tr
RE: unable to load classes
Hi How can i change the default classloading hierarchy in Tomcat 5.5.9 ? And would that affect in my Tomcat setup anyway? Please reply to my query because i am stucked up badly at this problem. -Original Message- From: Nehal Sangoi [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 9:58 AM To: 'Boris Unckel'; Tomcat Users List (E-mail) Subject: RE: unable to load classes Hi Boris, I will explain the issue thoroughyl, and the options i tried so far to resolve the same. Environment Details : OS : Linux Enterprise Tomcat 5.5.9 Apache HTTP Server 2.0.54 Apache and Tomcat reside on physically different server. All Tomcat applications are SiteMinder Enabled. I have one base installation of Tomcat and Multile Tomcat Instances created (each with diff user). I am not at all starting base-tomcat in my environment. My Tomcat Instances are running. Java - JDK used is 1.5 -- latest one. Now, i have several applications, which have framework in it. Technically, i don't understand what framework is as i am basically a UNIX Admin and administer Tomcat+Apache. The applications, which use framework, are using following two jarfiles. expd2util.jar jdom.jar If i keep these jarfiles into any tomcat instance's WEB-INF/lib, the application runs absolutely fine. As i mentioned earlier, the above two jarfiles would be used by many other tomcat instances/applications too. Hence, i wanted these jarfiles be kept in either base tomcat's common/lib or shared/lib and symlinks be created into every tomcat instance's shared/lib dir. Doing this, it will ease up my administration task in future. Unfortunately, its not doing. === Description of exact problem and options tried so far : Note : wherever i am keeping these jars, keeping only single copy of it at one particular location by discarding them out from any other classpath. I kept both the jarfiles into base-tomcat's common/lib and created symlink into the application's shared/lib folder. Ideally, this should work, because i have 3 more other jarfiles (third party) linked this way and they are working well. But tomcat is not picking up these two jarfiles from common/lib and results in Null Pointer Exception. Also, it registers nothing in catalina.out. Later, i kept both the jarfiles in shared/lib dir of that tomcat instance itself. This too did not work and resulted in No classdef found error. After that, i kept both into shared/lib of base-tomcat and again created symlinks into shared/lib of application. No luck. Again, i changed my mind and converted the jarfiles into classes and placed those classes into shared/classes folder of application. but :(( Finally, i exported the explicitly defined CLASSPATH variable into application user's profile and tried for tomcat to pick from there atleast and here too, no hope. If you read my mail closely, i have tried out almost all options. I went through the "classloader" documentation of Tomcat 5.5 on jakarta website. Theoratically, my application should work, the way i am thinking of but practically its failing. Regarding Servlet API, yes, you are right. There is default sevlet-API jar in Tomcat's Internal Classes. == I think, i have replied to your queries. If you need any more info, please let me know. I am awaiting for a solution to come out to overcome this issue as i need to implement the same into my Production Environment. Thanks & Regards, Nehal -Original Message- From: Boris Unckel [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 6:02 PM To: [EMAIL PROTECTED] Subject: RE: unable to load classes > I tried keeping into shared/lib of that particular application. But it > reflects the same error again. My requirement of putting these two jars > in > shared/lib or common/lib is because i need to use them for other 20 more > applications. Hence, it would be more convenient to keep one copy and > access > by multiple applications rather copying them to every application's > WEB-INF/lib. > > Kindly, suggest some solution for this. > > But, unfortunately, i get Null Pointer Exception. And my jarfiles or > > say > > classes are not getting loaded. > > One of my jar contains servlet API in it. Just to make it clear: The classes/jars are NOT provided by you/by default through System Classpath/Classloader, are NOT provided by you/by default through the commons/lib. The classes/jars are NOT in WEB-INF/lib. There is just one copy (without any links to it) in shared/lib. Do you fullfill the mentioned conditions for servlet API too? I think the servlet API is provided by default through commons/lib. Your problem exists still if the mentioned conditions are true? Could you post the exact message/stacktrace? Regards Boris ---
RE: unable to load classes
Hi Boris, I will explain the issue thoroughyl, and the options i tried so far to resolve the same. Environment Details : OS : Linux Enterprise Tomcat 5.5.9 Apache HTTP Server 2.0.54 Apache and Tomcat reside on physically different server. All Tomcat applications are SiteMinder Enabled. I have one base installation of Tomcat and Multile Tomcat Instances created (each with diff user). I am not at all starting base-tomcat in my environment. My Tomcat Instances are running. Java - JDK used is 1.5 -- latest one. Now, i have several applications, which have framework in it. Technically, i don't understand what framework is as i am basically a UNIX Admin and administer Tomcat+Apache. The applications, which use framework, are using following two jarfiles. expd2util.jar jdom.jar If i keep these jarfiles into any tomcat instance's WEB-INF/lib, the application runs absolutely fine. As i mentioned earlier, the above two jarfiles would be used by many other tomcat instances/applications too. Hence, i wanted these jarfiles be kept in either base tomcat's common/lib or shared/lib and symlinks be created into every tomcat instance's shared/lib dir. Doing this, it will ease up my administration task in future. Unfortunately, its not doing. === Description of exact problem and options tried so far : Note : wherever i am keeping these jars, keeping only single copy of it at one particular location by discarding them out from any other classpath. I kept both the jarfiles into base-tomcat's common/lib and created symlink into the application's shared/lib folder. Ideally, this should work, because i have 3 more other jarfiles (third party) linked this way and they are working well. But tomcat is not picking up these two jarfiles from common/lib and results in Null Pointer Exception. Also, it registers nothing in catalina.out. Later, i kept both the jarfiles in shared/lib dir of that tomcat instance itself. This too did not work and resulted in No classdef found error. After that, i kept both into shared/lib of base-tomcat and again created symlinks into shared/lib of application. No luck. Again, i changed my mind and converted the jarfiles into classes and placed those classes into shared/classes folder of application. but :(( Finally, i exported the explicitly defined CLASSPATH variable into application user's profile and tried for tomcat to pick from there atleast and here too, no hope. If you read my mail closely, i have tried out almost all options. I went through the "classloader" documentation of Tomcat 5.5 on jakarta website. Theoratically, my application should work, the way i am thinking of but practically its failing. Regarding Servlet API, yes, you are right. There is default sevlet-API jar in Tomcat's Internal Classes. == I think, i have replied to your queries. If you need any more info, please let me know. I am awaiting for a solution to come out to overcome this issue as i need to implement the same into my Production Environment. Thanks & Regards, Nehal -Original Message- From: Boris Unckel [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 6:02 PM To: [EMAIL PROTECTED] Subject: RE: unable to load classes > I tried keeping into shared/lib of that particular application. But it > reflects the same error again. My requirement of putting these two jars > in > shared/lib or common/lib is because i need to use them for other 20 more > applications. Hence, it would be more convenient to keep one copy and > access > by multiple applications rather copying them to every application's > WEB-INF/lib. > > Kindly, suggest some solution for this. > > But, unfortunately, i get Null Pointer Exception. And my jarfiles or > > say > > classes are not getting loaded. > > One of my jar contains servlet API in it. Just to make it clear: The classes/jars are NOT provided by you/by default through System Classpath/Classloader, are NOT provided by you/by default through the commons/lib. The classes/jars are NOT in WEB-INF/lib. There is just one copy (without any links to it) in shared/lib. Do you fullfill the mentioned conditions for servlet API too? I think the servlet API is provided by default through commons/lib. Your problem exists still if the mentioned conditions are true? Could you post the exact message/stacktrace? Regards Boris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: unable to load classes
Hi Boris, I tried keeping into shared/lib of that particular application. But it reflects the same error again. My requirement of putting these two jars in shared/lib or common/lib is because i need to use them for other 20 more applications. Hence, it would be more convenient to keep one copy and access by multiple applications rather copying them to every application's WEB-INF/lib. Kindly, suggest some solution for this. Thanks, Nehal -Original Message- From: Boris Unckel [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 5:12 PM To: users@tomcat.apache.org Subject: Re: unable to load classes Hello Nehal, > I have 2 of my application specific jarfiles which need to be used by all > other applications too in tomcat 5.5.9 on linux. Hence, i am placing both > the jarfiles into common/lib of tomcat binary and linking them into > shared/lib of application which use them. > > But, unfortunately, i get Null Pointer Exception. And my jarfiles or say > classes are not getting loaded. > > If i put those jarfiles into application's WEB-INF/lib, it works fine. > > One of my jar contains servlet API in it. > > What could be the possible reason of failing the class loading from > common/lib path? Have a look at http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html If you have placed a jar in commons/lib, it is not needed to put them into sharded. I recommend to use shared/libs for your webapps only. Or even better, do not use any shared directory if there is no special reason for. A webapp is an independent application and WEB-INF/lib is the just made for libs needed by this application. Regards Boris - 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]
unable to load classes
Hi, I have 2 of my application specific jarfiles which need to be used by all other applications too in tomcat 5.5.9 on linux. Hence, i am placing both the jarfiles into common/lib of tomcat binary and linking them into shared/lib of application which use them. But, unfortunately, i get Null Pointer Exception. And my jarfiles or say classes are not getting loaded. If i put those jarfiles into application's WEB-INF/lib, it works fine. One of my jar contains servlet API in it. What could be the possible reason of failing the class loading from common/lib path? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
META-INF/context.xml
Hi Everyone, I am using manager-deployer to deploy my application war into webapps. Now, when i am keeping my JDBC context details in server.xml (for a permanent entry), my ant build file fails to deploy the war with error as "application alreay exists at context path". Hence, i kep my JDBC context details in conf/Catalina/localhost/context.xml file. But, while deploying, my manager-deployer process discards out this file resulting in no JDBC context details provided. Lastly, i planned to use META-INF/context.xml for JDBC details in my application war itself. But in this case, Tomcat is not picking up the things from there. Kindly suggest some solution for defining context for JDBC details that can be used successfully by manager-deployer. I am struggling for this issue from very long time and have queried for some ideas in Tomcat-User List manier times. But so far, no luck. If anyone comes up with even a little hint, would be greatly appreciated. Thanks & Regards, Nehal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HAPPY NEW YEAR
Wishing everyone in Tomcat Group, a very Happy and Prosperous New Year 2oo6. Regards, Nehal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
deploy fails
Hi, Below is the build.xml and build.properties files i am using for my app deployments. Tomcat 5.5.9 Using Tomcat Virtual Instance Platform - Solaris/Linux Manager Deployer used When i do execute the ant command (ant -f abc.xml), it gives me follwoing output. What could be the possible reason for such error and failure in deployments? Response to my query would be highly appreciated. Thanks & Regards, Nehal clean_dest: [delete] Deleting directory /appl/abc/deploy/WAR [mkdir] Created dir: /appl/abc/deploy/WAR copy_code_to_dest: [copy] Copying 94 files to /appl/abc/deploy/WAR [copy] Copying 142 files to /appl/abc/deploy/WAR/WEB-INF/src [copy] Copying 6 files to /appl/abc/deploy/WAR/WEB-INF/lib [delete] Deleting directory /appl/abc/deploy/CVS [delete] Deleting: /appl/abc/deploy/WAR/WEB-INF/lib/expd2util.jar clean_classes: [mkdir] Created dir: /appl/abc/deploy/WAR/WEB-INF/classes compile_java_code: [javac] Compiling 136 source files to /appl/abc/deploy/WAR/WEB-INF/classes [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [copy] Copying 6 files to /appl/bcp/deploy/WAR/WEB-INF/classes create_war: [war] Building war: /appl/abc/deploy/WAR/bcp.war [war] Warning: selected war files include a WEB-INF/web.xml which will be ignored (please use webxml attribute to war task) deploy: BUILD FAILED /appl/abc/deploy/build/bcp.xml:87: java.io.FileNotFoundException: http://3.160.228.52:7451/manager/deploy?path=%2Fabc&update=true === BUILD FILE http://ipaddr:port/manager"/> --More-- = PROPERTIES FILE project.name=abc # java properties java.src.dir=/appl/abc/deploy/WAR/WEB-INF/src java.lib.dir=/appl/abc/deploy/WAR/WEB-INF/lib java.classes.dir=/appl/bcp/deploy/WAR/WEB-INF/classes #destination properties war.dir=/appl/abc/deploy/WAR source.dir=/appl/abc/deploy/CVS/tomcat war.name=abc.war #cvs properties cvs.root=:pserver:uid:[EMAIL PROTECTED]:cvs-path cvs.module=abc/tomcat cvs.tag= cvs.dir=/appl/abc/deploy/CVS #tomcat properties common.lib.dir=/appl/abc/shared/lib - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
deploy failed
Hi, I am facing problem for deploying applications using manager-deployer with my ant build script. What happens is, when i add context details (releated to jdbc connections) in my application's server.xml, and try to deploy the application using build script, it gives me follwoing error. deploy: [deploy] OK - Undeployed application at context path /sso [deploy] FAIL - Application already exists at path /sso (/sso context is example) How can i deploy the application as and when required without such error? In the above case, the warfile gets deleted from webapps folder as it does undeploy first. But after that deploying of new warfile fails. What could be the possible reason for this? I am using tomcat 5.5.9 on enterprise linuxbox. Thanks & Regards, Nehal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please respond to my query --- in need of help badly!!
Hi I could resolve the problem. There was incorrect URL mentioned in web.xml of my application warfile. Actually, i don't deal with configuring this part of coding -- as i do just administer. And, hence, i did have faith in my developer who made all changes. After that, the errors were really weird, and when i tried searching in google, did not find anything that can help resolving my problem. Finally, started from scratch and reached to root cause of failure Thanks for your reply David.I was given downtime, so was looking out for instantaneous help.. Regards, Nehal -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Monday, December 12, 2005 6:41 PM To: Tomcat Users List Subject: Re: Please respond to my query --- in need of help badly!! 1) Begging is very unbecoming. Have you tried googling for 'tomcat java.net.ConnectException'? 2) On the surface, it would appear some of your webapp code is attempting to connect to another service, but doesn't have the privilege to do so. If tomcat is running with a security manager, check it's settings. --David Nehal Sangoi wrote: >Hi, > >I am facing problems while opening lookups for another tomcat instance thru >apache url of one tomcat instance. Here is, what i am doing -- > >Logon to apache url of one tomcat instance. >click on lookup -- that points to another tomcat instace app > >No errors in apache logs... >Errors in first tomcat instance are as follows : > >java.net.ConnectException: Connection refused >at java.net.PlainSocketImpl.socketConnect(Native Method) >at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) >at >java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) >at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) >at java.net.Socket.connect(Socket.java:507) >at java.net.Socket.connect(Socket.java:457) >at sun.net.NetworkClient.doConnect(NetworkClient.java:157) >at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) >at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) >at sun.net.www.http.HttpClient.(HttpClient.java:214) >at sun.net.www.http.HttpClient.New(HttpClient.java:287) >at sun.net.www.http.HttpClient.New(HttpClient.java:299) >at >sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnect i >on.java:792) >at >sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection. j >ava:744) >at >sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java: 6 >69) >at >sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnectio n >.java:913) >at >com.ges.expd2.util.ClientLookupServlet.doGet(ClientLookupServlet.java:89) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) >at >org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio n >FilterChain.java:252) >at >org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC h >ain.java:173) >at >org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j a >va:213) >at >org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j a >va:178) >at >org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12 6 >) >at >org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10 5 >) >at >org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav a >:107) >at >org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) >at >org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307) >at >org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385) >at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748) >at >org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678 ) >at >org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871) >at >org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja v >a:684) >at java.lang.Thread.run(Thread.java:595) >java.lang.NullPointerException >at >com.ges.expd2.util.ClientLookupServlet.doGet(ClientLookupServlet.java:132) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) >at >org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio n >FilterChain.java:252) >at
connection refused -- pls help asap
Hi, I am facing problems while opening lookups for another tomcat instance thru apache url of one tomcat instance. Here is, what i am doing -- Logon to apache url of one tomcat instance. click on lookup -- that points to another tomcat instace app No errors in apache logs... Errors in first tomcat instance are as follows : java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) at sun.net.www.http.HttpClient.(HttpClient.java:214) at sun.net.www.http.HttpClient.New(HttpClient.java:287) at sun.net.www.http.HttpClient.New(HttpClient.java:299) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnecti on.java:792) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.j ava:744) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:6 69) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection .java:913) at com.ges.expd2.util.ClientLookupServlet.doGet(ClientLookupServlet.java:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 ) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:684) at java.lang.Thread.run(Thread.java:595) java.lang.NullPointerException at com.ges.expd2.util.ClientLookupServlet.doGet(ClientLookupServlet.java:132) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 ) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:684) at java.lang.Thread.run(Thread.java:595) Thanks & Regards, Nehal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: enable log4j
Hi Dhaval, We never start our Tomcat-Base. We only run Tomcat Instances. So, i need log4j be enabled individually. I have gone thru the docs and did same as its suggested there. But no luck. Is there any way, for tomcat instance to know abt the properties file added into classes -Original Message- From: Dhaval Patel [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 22, 2005 7:13 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: enable log4j Hi Nehal, I dont know how to work with multiple tomcat instances. The way I configured my tomcat (single user) to use log4j is different then yours. I followed guide from http://tomcat.apache.org/tomcat-5.5-doc/logging.html . Basically it says, 1. Create a file called log4j.properties with the following content and save it into common/classes. (The one with yours is fine). 2. Place the log4j jar in $CATALINA_HOME/common/lib. (In our case, it is log4j-1.2.12.jar. Make sure you place it in common/lib rather than in any webapps.) 3. Place the commons-logging.jar (not commons-logging-api.jar) in $CATALINA_HOME/common/lib with the log4j jar. (Again it is common/lib not webapps) 4. Restart tomcat. I followed above steps and I could run my tomcat instance in debug mode. For customized debugging, you can read API documentation of Tomcat and may be you can able to find something. This way you can customize your log4j.properties. I will keep looking but I don't have that sort of environment here to play with. If I find any thing, I will let you know. I hope above things help a bit. Regards, D --- Nehal Sangoi <[EMAIL PROTECTED]> wrote: > Hi Dhaval, > > I want to enable log4j in debug mode only for one of the tomcat instances > which is running using different user -- i.e. other than tomcat-base. > This means, i don't want to apply log4j on all tomcat instaces by > implemeting it onto tomcat-base. > > -Original Message- > From: Dhaval Patel [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 22, 2005 6:25 PM > To: Tomcat Users List; [EMAIL PROTECTED] > Subject: Re: enable log4j > > > Hi Nehal, > >Do you want to enable log4j in your application or you want to enable > log4j > inside tomcat? Inside tomcat means, tomcat uses log4j instead of J2SE > logging > utility so that you can configure tomcat loggin in log4j. > > Regards, > D > > --- Nehal Sangoi <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > I want to enable log4j logger in one of my tomcat instances. I copied > > "log4j-1.2.12.jar" to my webapps - war file. > > This means, under WEB-INF/lib, copied jar file and under WEB-INF/classes, > > copied log4j.properties. Later, re-sreated warfile and started my tomcat > > instance. > > > > log4j.properties : > > > > log4j.rootLogger=debug, R > > log4j.appender.R=org.apache.log4j.RollingFileAppender > > log4j.appender.R.File=${catalina.base}/logs/tomcat.log > > log4j.appender.R.MaxFileSize=10MB > > log4j.appender.R.MaxBackupIndex=10 > > log4j.appender.R.layout=org.apache.log4j.PatternLayout > > log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n > > log4j.logger.org.apache.catalina=DEBUG, R > > > > Also, notice that i have tomcat 5.5.9 on solaris 10. But my jar file is > > log4j-1.2.12.jar. > > > > Is there anything 'm doing wrong or incomplete? > > > > Please help as soon as possible > > > > Thanks. > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > __ > Yahoo! FareChase: Search multiple travel sites in one click. > http://farechase.yahoo.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: enable log4j
Hi Dhaval, I want to enable log4j in debug mode only for one of the tomcat instances which is running using different user -- i.e. other than tomcat-base. This means, i don't want to apply log4j on all tomcat instaces by implemeting it onto tomcat-base. -Original Message- From: Dhaval Patel [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 22, 2005 6:25 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: enable log4j Hi Nehal, Do you want to enable log4j in your application or you want to enable log4j inside tomcat? Inside tomcat means, tomcat uses log4j instead of J2SE logging utility so that you can configure tomcat loggin in log4j. Regards, D --- Nehal Sangoi <[EMAIL PROTECTED]> wrote: > > Hi, > > I want to enable log4j logger in one of my tomcat instances. I copied > "log4j-1.2.12.jar" to my webapps - war file. > This means, under WEB-INF/lib, copied jar file and under WEB-INF/classes, > copied log4j.properties. Later, re-sreated warfile and started my tomcat > instance. > > log4j.properties : > > log4j.rootLogger=debug, R > log4j.appender.R=org.apache.log4j.RollingFileAppender > log4j.appender.R.File=${catalina.base}/logs/tomcat.log > log4j.appender.R.MaxFileSize=10MB > log4j.appender.R.MaxBackupIndex=10 > log4j.appender.R.layout=org.apache.log4j.PatternLayout > log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n > log4j.logger.org.apache.catalina=DEBUG, R > > Also, notice that i have tomcat 5.5.9 on solaris 10. But my jar file is > log4j-1.2.12.jar. > > Is there anything 'm doing wrong or incomplete? > > Please help as soon as possible > > Thanks. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
enable log4j
Hi, I want to enable log4j logger in one of my tomcat instances. I copied "log4j-1.2.12.jar" to my webapps - war file. This means, under WEB-INF/lib, copied jar file and under WEB-INF/classes, copied log4j.properties. Later, re-sreated warfile and started my tomcat instance. log4j.properties : log4j.rootLogger=debug, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=${catalina.base}/logs/tomcat.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n log4j.logger.org.apache.catalina=DEBUG, R Also, notice that i have tomcat 5.5.9 on solaris 10. But my jar file is log4j-1.2.12.jar. Is there anything 'm doing wrong or incomplete? Please help as soon as possible Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
enable log4j
Hi, I want to enable log4j logger in one of my tomcat instances. I copied "log4j-1.2.12.jar" to my webapps - war file. This means, under WEB-INF/lib, copied jar file and under WEB-INF/classes, copied log4j.properties. Later, re-sreated warfile and started my tomcat instance. log4j.properties : log4j.rootLogger=debug, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=${catalina.base}/logs/tomcat.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n log4j.logger.org.apache.catalina=DEBUG, R Also, notice that i have tomcat 5.5.9 on solaris 10. But my jar file is log4j-1.2.12.jar. Is there anything 'm doing wrong or incomplete? Please help as soon as possible Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: configure Tomcat/5.5.9 By ' set JAVA_OPTS=-Xmx256M '
In user's ".profile" -Original Message- From: NanFei Wang [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 15, 2005 6:45 AM To: users@tomcat.apache.org Subject: configure Tomcat/5.5.9 By ' set JAVA_OPTS=-Xmx256M ' Hi, In Tomcat 5.0, we can configure by ' set JAVA_OPTS=-Xmx256M ' at the file of startup.bat. However, for Tomcat/5.5.9, It start by Service automatically without a file of startup.bat. How and where to configure Tomcat/5.5.9 as by ' set JAVA_OPTS=-Xmx256M ' Regards NanFei - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: Securing Manager Role
Hi, Please go thru below mailu will get the answer.. -Original Message- From: Nehal Sangoi [mailto:[EMAIL PROTECTED] Sent: Friday, October 28, 2005 9:15 AM To: 'Tomcat Users List' Subject: RE: Securing Manager Role Hi, I could do it successfully yesterday. The right commandline in as follows. $ java -classpath $CATALINA_HOME/server/lib/catalina.jar:/opt/commons-logging/commons- logging.jar org.apache.catalina.realm.RealmBase -a sha1 manager Thank You so much for providing this solution. Regds, Nehal -Original Message- From: Charlie C.L. King [mailto:[EMAIL PROTECTED] Sent: Thursday, October 27, 2005 8:12 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Securing Manager Role hi, looks like you're stuck with your kshell. how about specifying canonical path to your java executable, e.g. /opt/bin/java? or if you're under some unix environment like FreeBSD, you can just use 'md5' or 'sha1' provided by system: % sha1 -s 'passphrase here' it will produce the same result for you. On 10/27/05, Nehal Sangoi <[EMAIL PROTECTED]> wrote: > > Hi, > > I modified my server.xml as follows. > > resourceName="UserDatabase" digest="SHA1"/> > > Also, downloaded "commons-logging-20051027.tar.gz" and untarred the same. > > Later i tried giving below command : > > $ java -classpath > $CATALINA_HOME/server/lib/catalina.jar:/opt/commons-logging/commons- > logging.jar org.apache.catalina.realm.RealmBase -a sha1 > But recd. following error : > > ksh: syntax error: `newline or ;' unexpected > > Please help doing this successfully. > > > Thanks, > Nehal > -- Regards, Charlie Hi, you can change it to a digested form, either in md5 or in sha1 or some others(see java.security.MessageDigest). but sha1 should be safer. here's the choir you have to do. 1. in your server.xml, add to its child element a new attribute named "digest" and with its value "SHA1"(whatever you want). 2. run this % java -classpath $CATALINA_HOME/server/lib/catalina.jar:/path/to/commons- logging.jar org.apache.catalina.realm.RealmBase -a sha1 you'll get the digested passphrase 3. use the digested passphrase as password in you tomcat-user.xml 4. be sure to restart tomcat and then you can try it the way digest means it should be difficult *BUT NOT IMPOSSIBLE* to decrypt in case anyone might be able to read that file, thus you should secure the user file and prevent others from reading it. -- Regards, Charlie - 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: ANT build + Read Password
Hi Mark, Your concern is correct. Even i was thinking the same. -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 08, 2005 12:39 AM To: Tomcat Users List Subject: Re: ANT build + Read Password Nehal Sangoi wrote: > Hi All, > > I want my ANT Build script be reading manager-deployer's password (stored in > "tomcat-users.xml") from mentioned file instead of i do supply clear text > password while deployment. How can i configure this in ANT script? > > I am aware of the option of supplying password at the prompt in ANT. But i > want ant script be reading it automatically from the configuration file that > would have encrypted password. If the password is hashed in the tomcat-users.xml, how is Ant going to unhash it to present it to Tomcat? Equally, if it is stored anywhere in encrypted form, how will Ant decrypt it? Mark - 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]
ANT build + Read Password
Hi All, I want my ANT Build script be reading manager-deployer's password (stored in "tomcat-users.xml") from mentioned file instead of i do supply clear text password while deployment. How can i configure this in ANT script? I am aware of the option of supplying password at the prompt in ANT. But i want ant script be reading it automatically from the configuration file that would have encrypted password. Please help Thanks & Regards, Nehal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JkMount
Hi All, I could successfully implement load-balancing in tomcat apache setup. I got idea from the foll. case. http://www.junlu.com/msg/189637.html Do exactly same, what he has tried explaining It has worked perfectly fine for me. Regds, Nehal -Original Message- From: Nehal Sangoi [mailto:[EMAIL PROTECTED] Sent: Monday, October 31, 2005 5:49 PM To: 'Tomcat Users List' Subject: RE: JkMount Hi, I tried as follows My workers.properties : workers.java_home=/usr/j2se ps=/ worker.list=test1,test2,test3,test4 ## TEST1 CONNECTOR worker.test1.port= worker.test1.host=xxx.xxx.xxx.xxx worker.test1.type=ajp13 ## TEST2 CONNECTOR worker.test2.port= worker.test2.host=xxx.xxx.xxx.xxx worker.test2.type=ajp13 worker.test2.lbfactor=1 ## TEST3 CONNECTOR worker.test3.port= worker.test3.host=xxx.xxx.xxx.xxx worker.test3.type=lb worker.test3.sticky_session=1 worker.test3.balance_workers=test2 My httpd.conf : JkMount /example/* test1 JkMount /test/* test2 But, my test2 itself is not loading the URL nw. Also, my test3 worker is not loadbalancing test2 worker. Please help. Regds, Nehal -Original Message- From: SUGAHARA Toshio [mailto:[EMAIL PROTECTED] Sent: Monday, October 31, 2005 5:11 PM To: Tomcat Users List Subject: Re: JkMount Hi Nehal, I think you had better use Tomcat load-balancing function when you use different worker. See below document; http://tomcat.apache.org/connectors-doc/howto/workers.html Regards, Toshio > > How can i "JkMount" same URI twice in httpd.conf > with different worker > specified? > > e.g. i want to mount /example/* twice using > different worker name. > > JkMount /example/* worker1 > JkMount /example/* worker2 > > But this is not working. How should i configure to > achieve my motto? > > > Regds, > Nehal > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > -- Yahoo! Mail - supported by 10million people http://pr.mail.yahoo.co.jp/10m/ - 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: JkMount
Hi workers.java_home=/usr/j2se ps=/ worker.list=test1,test2 ## TEST1 CONNECTOR worker.test1.port= worker.test1.host=xxx.xxx.xxx.xxx worker.test1.type=ajp13 worker.test1.lbfactor=1 ## TEST2 CONNECTOR worker.test2.port= worker.test2.host=xxx.xxx.xxx.xxx worker.test2.type=ajp13 worker.test2.lbfactor=1 ## TEST3 CONNECTOR worker.test3.type=lb worker.test3.sticky_session=1 worker.test3.balance_workers=test2 My httpd.conf : JkMount /example/* test1 JkMount /test/* test2 Apart from above configuration, i have jvmRoute of server.xml set to : for test1 == test1 for test2 == test2 Also, i have example.war copied into the webapps of test2 tomcat instance to loadbalance test1 url. Still, nothing doing? Wht other configuration is left now? Or i need to discard anything? Please Help --- This has taken up almost more than week now -Original Message- From: SUGAHARA Toshio [mailto:[EMAIL PROTECTED] Sent: Monday, October 31, 2005 8:28 PM To: Tomcat Users List Subject: RE: JkMount Hi Nehal, See the following comment; Regards, Toshio > Hi, > > I tried as follows > > My workers.properties : > > workers.java_home=/usr/j2se > ps=/ > worker.list=test1,test2,test3,test4 The workers that are member of load balancer must not appear in the worker.list directive. http://tomcat.apache.org/connectors-doc/howto/loadbalancers.html > ## TEST1 CONNECTOR > worker.test1.port= > worker.test1.host=xxx.xxx.xxx.xxx > worker.test1.type=ajp13 > ## TEST2 CONNECTOR > worker.test2.port= > worker.test2.host=xxx.xxx.xxx.xxx > worker.test2.type=ajp13 > worker.test2.lbfactor=1 > ## TEST3 CONNECTOR > worker.test3.port= > worker.test3.host=xxx.xxx.xxx.xxx You should remove the two lines above. > worker.test3.type=lb > worker.test3.sticky_session=1 > worker.test3.balance_workers=test2 > > My httpd.conf : > > JkMount /example/* test1 > JkMount /test/* test2 > > But, my test2 itself is not loading the URL nw. > Also, my test3 worker is not > loadbalancing test2 worker. > > Please help. > > > Regds, > Nehal > > -Original Message- > From: SUGAHARA Toshio [mailto:[EMAIL PROTECTED] > Sent: Monday, October 31, 2005 5:11 PM > To: Tomcat Users List > Subject: Re: JkMount > > > Hi Nehal, > > I think you had better use Tomcat load-balancing > function > when you use different worker. > > See below document; > http://tomcat.apache.org/connectors-doc/howto/workers.html > > Regards, > > Toshio > > > > > How can i "JkMount" same URI twice in httpd.conf > > with different worker > > specified? > > > > e.g. i want to mount /example/* twice using > > different worker name. > > > > JkMount /example/* worker1 > > JkMount /example/* worker2 > > > > But this is not working. How should i configure to > > achieve my motto? > > > > > > Regds, > > Nehal > > > > > > > - > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > -- > Yahoo! Mail - supported by 10million people > http://pr.mail.yahoo.co.jp/10m/ > > > - > 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] > > -- Yahoo! Mail - supported by 10million people http://pr.mail.yahoo.co.jp/10m/ - 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: JkMount
Hi, I tried as follows My workers.properties : workers.java_home=/usr/j2se ps=/ worker.list=test1,test2,test3,test4 ## TEST1 CONNECTOR worker.test1.port= worker.test1.host=xxx.xxx.xxx.xxx worker.test1.type=ajp13 ## TEST2 CONNECTOR worker.test2.port= worker.test2.host=xxx.xxx.xxx.xxx worker.test2.type=ajp13 worker.test2.lbfactor=1 ## TEST3 CONNECTOR worker.test3.port= worker.test3.host=xxx.xxx.xxx.xxx worker.test3.type=lb worker.test3.sticky_session=1 worker.test3.balance_workers=test2 My httpd.conf : JkMount /example/* test1 JkMount /test/* test2 But, my test2 itself is not loading the URL nw. Also, my test3 worker is not loadbalancing test2 worker. Please help. Regds, Nehal -Original Message- From: SUGAHARA Toshio [mailto:[EMAIL PROTECTED] Sent: Monday, October 31, 2005 5:11 PM To: Tomcat Users List Subject: Re: JkMount Hi Nehal, I think you had better use Tomcat load-balancing function when you use different worker. See below document; http://tomcat.apache.org/connectors-doc/howto/workers.html Regards, Toshio > > How can i "JkMount" same URI twice in httpd.conf > with different worker > specified? > > e.g. i want to mount /example/* twice using > different worker name. > > JkMount /example/* worker1 > JkMount /example/* worker2 > > But this is not working. How should i configure to > achieve my motto? > > > Regds, > Nehal > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > -- Yahoo! Mail - supported by 10million people http://pr.mail.yahoo.co.jp/10m/ - 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]
JkMount
How can i "JkMount" same URI twice in httpd.conf with different worker specified? e.g. i want to mount /example/* twice using different worker name. JkMount /example/* worker1 JkMount /example/* worker2 But this is not working. How should i configure to achieve my motto? Regds, Nehal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not starting
Hi, There was permission issues on common/lib jar files and they were not accessible by my other tomcat instances. I changed permissions and its working fine now. Thanks Nehal -Original Message- From: Nehal Sangoi [mailto:[EMAIL PROTECTED] Sent: Monday, October 31, 2005 2:48 PM To: 'Tomcat Users List' Subject: RE: Tomcat not starting I have all the jars present in my catalinahome/common/lib. i believe, those have got corrupted. is there anyway apart from re-installation to resolve this problem? -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Monday, October 31, 2005 2:39 PM To: 'Tomcat Users List'; 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: Tomcat not starting from your stacktrace it appears that this error occurs when XML is being parsed, because TC can't find a class: java.lang.NoClassDefFoundError: org/apache/naming/TransactionRef in my installation (5.5.9) this class is in %catalina_home%\common\lib\naming-factory.jar so might be worth checking that you have that > -----Original Message- > From: Nehal Sangoi [mailto:[EMAIL PROTECTED] > Sent: Monday 31 October 2005 06:03 > To: 'Tomcat Users List (E-mail)' > Subject: Tomcat not starting > > > Infact, i am unable to start all tomcat instances and result > is follwoing > error > Pls help!! > > > Hi, > > I am unable to start one of my tomcat instances. But its > getting crashed > before it starts. Follwoing are the errors found. > > > Oct 31, 2005 12:09:47 AM org.apache.tomcat.util.digester.Digester > startElement > SEVERE: Begin event threw error > java.lang.NoClassDefFoundError: org/apache/naming/TransactionRef > at > org.apache.catalina.core.StandardServer.(StandardServer.java:94) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeCo > nstructorAcces > sorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Dele > gatingConstruc > torAccessorImpl.java:27) > at > java.lang.reflect.Constructor.newInstance(Constructor.java:494) > at java.lang.Class.newInstance0(Class.java:350) > at java.lang.Class.newInstance(Class.java:303) > at > org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectC > reateRule.java > :205) > at org.apache.tomcat.util.digester.Rule.begin(Rule.java:152) > at > org.apache.tomcat.util.digester.Digester.startElement(Digester > .java:1275) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.s > tartElement(Ab > stractSAXParser.java:533) > at > com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.st > artElement(XML > DTDValidator.java:798) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentSca > nnerImpl.scanS > tartElement(XMLDocumentFragmentScanner > Impl.java:878) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl > $ContentDispat > cher.scanRootElementHook(XMLDocumentSc > annerImpl.java:1157) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentSca > nnerImpl$Fragm > entContentDispatcher.dispatch(XMLDocum > entFragmentScannerImpl.java:1794) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentSca > nnerImpl.scanD > ocument(XMLDocumentFragmentScannerImpl > .java:368) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration. > parse(XML11Con > figuration.java:834) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration. > parse(XML11Con > figuration.java:764) > at > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XML > Parser.java:14 > 8) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.p > arse(AbstractS > AXParser.java:1242) > at > org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561) > at > org.apache.catalina.startup.Catalina.load(Catalina.java:473) > at > org.apache.catalina.startup.Catalina.load(Catalina.java:509) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess > orImpl.java:39 > ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth > odAccessorImpl > .java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243) > at > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408) > java.lang.
RE: Tomcat not starting
I have all the jars present in my catalinahome/common/lib. i believe, those have got corrupted. is there anyway apart from re-installation to resolve this problem? -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Monday, October 31, 2005 2:39 PM To: 'Tomcat Users List'; 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: Tomcat not starting from your stacktrace it appears that this error occurs when XML is being parsed, because TC can't find a class: java.lang.NoClassDefFoundError: org/apache/naming/TransactionRef in my installation (5.5.9) this class is in %catalina_home%\common\lib\naming-factory.jar so might be worth checking that you have that > -Original Message- > From: Nehal Sangoi [mailto:[EMAIL PROTECTED] > Sent: Monday 31 October 2005 06:03 > To: 'Tomcat Users List (E-mail)' > Subject: Tomcat not starting > > > Infact, i am unable to start all tomcat instances and result > is follwoing > error > Pls help!! > > > Hi, > > I am unable to start one of my tomcat instances. But its > getting crashed > before it starts. Follwoing are the errors found. > > > Oct 31, 2005 12:09:47 AM org.apache.tomcat.util.digester.Digester > startElement > SEVERE: Begin event threw error > java.lang.NoClassDefFoundError: org/apache/naming/TransactionRef > at > org.apache.catalina.core.StandardServer.(StandardServer.java:94) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeCo > nstructorAcces > sorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Dele > gatingConstruc > torAccessorImpl.java:27) > at > java.lang.reflect.Constructor.newInstance(Constructor.java:494) > at java.lang.Class.newInstance0(Class.java:350) > at java.lang.Class.newInstance(Class.java:303) > at > org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectC > reateRule.java > :205) > at org.apache.tomcat.util.digester.Rule.begin(Rule.java:152) > at > org.apache.tomcat.util.digester.Digester.startElement(Digester > .java:1275) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.s > tartElement(Ab > stractSAXParser.java:533) > at > com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.st > artElement(XML > DTDValidator.java:798) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentSca > nnerImpl.scanS > tartElement(XMLDocumentFragmentScanner > Impl.java:878) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl > $ContentDispat > cher.scanRootElementHook(XMLDocumentSc > annerImpl.java:1157) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentSca > nnerImpl$Fragm > entContentDispatcher.dispatch(XMLDocum > entFragmentScannerImpl.java:1794) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentSca > nnerImpl.scanD > ocument(XMLDocumentFragmentScannerImpl > .java:368) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration. > parse(XML11Con > figuration.java:834) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration. > parse(XML11Con > figuration.java:764) > at > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XML > Parser.java:14 > 8) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.p > arse(AbstractS > AXParser.java:1242) > at > org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561) > at > org.apache.catalina.startup.Catalina.load(Catalina.java:473) > at > org.apache.catalina.startup.Catalina.load(Catalina.java:509) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess > orImpl.java:39 > ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth > odAccessorImpl > .java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243) > at > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408) > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess > orImpl.java:39 > ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth > odAccessorImpl >
RE: Tomcat not starting
Bob, Thanks so much for your response. Even, i had visited this page and now thinking for re-installation only. Why tomcat is so unstable?... Its risky to go ahead with that then. Thanks once again -Original Message- From: Bob Hall [mailto:[EMAIL PROTECTED] Sent: Monday, October 31, 2005 1:58 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Tomcat not starting Nehal, You probably need to reinstall Tomcat. See comment at end of: <http://issues.apache.org/bugzilla/show_bug.cgi?id=32931> - Bob --- Nehal Sangoi <[EMAIL PROTECTED]> wrote: > Hi, > > I am using : > > jakarta-tomcat-5.5.9 > jdk1.5.0 > Solaris10 > > Please do help -- my Tomcat environment has > crashed. > > -Original Message- > From: Bob Hall [mailto:[EMAIL PROTECTED] > Sent: Monday, October 31, 2005 12:14 PM > To: Tomcat Users List; [EMAIL PROTECTED] > Subject: Re: Tomcat not starting > > > Nehal, > > Please supply versions of Java and Tomcat that > you are using. > > - Bob > > --- Nehal Sangoi <[EMAIL PROTECTED]> wrote: > > > Infact, i am unable to start all tomcat instances > > and result is follwoing > > error > > Pls help!! > > > > > > Hi, > > > > I am unable to start one of my tomcat instances. > But > > its getting crashed > > before it starts. Follwoing are the errors found. > > > > > > Oct 31, 2005 12:09:47 AM > > org.apache.tomcat.util.digester.Digester > > startElement > > SEVERE: Begin event threw error > > java.lang.NoClassDefFoundError: > > org/apache/naming/TransactionRef > > at > > > org.apache.catalina.core.StandardServer.(StandardServer.java:94) > > at > > > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > Method) > > at > > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces > > sorImpl.java:39) > > at > > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc > > torAccessorImpl.java:27) > > at > > > java.lang.reflect.Constructor.newInstance(Constructor.java:494) > > at > > java.lang.Class.newInstance0(Class.java:350) > > at > > java.lang.Class.newInstance(Class.java:303) > > at > > > org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java > > :205) > > at > > > org.apache.tomcat.util.digester.Rule.begin(Rule.java:152) > > at > > > org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1275) > > at > > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Ab > > stractSAXParser.java:533) > > at > > > com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XML > > DTDValidator.java:798) > > at > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanS > > tartElement(XMLDocumentFragmentScanner > > Impl.java:878) > > at > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDispat > > cher.scanRootElementHook(XMLDocumentSc > > annerImpl.java:1157) > > at > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragm > > entContentDispatcher.dispatch(XMLDocum > > entFragmentScannerImpl.java:1794) > > at > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD > > ocument(XMLDocumentFragmentScannerImpl > > .java:368) > > at > > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con > > figuration.java:834) > > at > > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con > > figuration.java:764) > > at > > > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:14 > > 8) > > at > > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractS > > AXParser.java:1242) > > at > > > org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561) > > at > > > org.apache.catalina.startup.Catalina.load(Catalina.java:473) > > at > > > org.apache.catalina.startup.Catalina.load(Catalina.java:509) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 > > ) > &
RE: Tomcat not starting
Hi, I am using : jakarta-tomcat-5.5.9 jdk1.5.0 Solaris10 Please do help -- my Tomcat environment has crashed. -Original Message- From: Bob Hall [mailto:[EMAIL PROTECTED] Sent: Monday, October 31, 2005 12:14 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Tomcat not starting Nehal, Please supply versions of Java and Tomcat that you are using. - Bob --- Nehal Sangoi <[EMAIL PROTECTED]> wrote: > Infact, i am unable to start all tomcat instances > and result is follwoing > error > Pls help!! > > > Hi, > > I am unable to start one of my tomcat instances. But > its getting crashed > before it starts. Follwoing are the errors found. > > > Oct 31, 2005 12:09:47 AM > org.apache.tomcat.util.digester.Digester > startElement > SEVERE: Begin event threw error > java.lang.NoClassDefFoundError: > org/apache/naming/TransactionRef > at > org.apache.catalina.core.StandardServer.(StandardServer.java:94) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces > sorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc > torAccessorImpl.java:27) > at > java.lang.reflect.Constructor.newInstance(Constructor.java:494) > at > java.lang.Class.newInstance0(Class.java:350) > at > java.lang.Class.newInstance(Class.java:303) > at > org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java > :205) > at > org.apache.tomcat.util.digester.Rule.begin(Rule.java:152) > at > org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1275) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Ab > stractSAXParser.java:533) > at > com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XML > DTDValidator.java:798) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanS > tartElement(XMLDocumentFragmentScanner > Impl.java:878) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDispat > cher.scanRootElementHook(XMLDocumentSc > annerImpl.java:1157) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragm > entContentDispatcher.dispatch(XMLDocum > entFragmentScannerImpl.java:1794) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD > ocument(XMLDocumentFragmentScannerImpl > .java:368) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con > figuration.java:834) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con > figuration.java:764) > at > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:14 > 8) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractS > AXParser.java:1242) > at > org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561) > at > org.apache.catalina.startup.Catalina.load(Catalina.java:473) > at > org.apache.catalina.startup.Catalina.load(Catalina.java:509) > at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 > ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl > .java:25) > at > java.lang.reflect.Method.invoke(Method.java:585) > at > org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243) > at > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408) > java.lang.reflect.InvocationTargetException > at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 > ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl > .java:25) > at > java.lang.reflect.Method.invoke(Method.java:585) > at > org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243) > at > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408) > Caused by: java.lang.NoClassDefFoundError: > org/apache/naming/TransactionRef > at > org.apache.catalina.core.StandardServer.(StandardServer.java:94) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > > > - &g
Tomcat not starting
Hi, I am unable to start one of my tomcat instances. But its getting crashed before it starts. Follwoing are the errors found. Oct 31, 2005 12:09:47 AM org.apache.tomcat.util.digester.Digester startElement SEVERE: Begin event threw error java.lang.NoClassDefFoundError: org/apache/naming/TransactionRef at org.apache.catalina.core.StandardServer.(StandardServer.java:94) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java :205) at org.apache.tomcat.util.digester.Rule.begin(Rule.java:152) at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1275) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Ab stractSAXParser.java:533) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XML DTDValidator.java:798) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanS tartElement(XMLDocumentFragmentScanner Impl.java:878) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDispat cher.scanRootElementHook(XMLDocumentSc annerImpl.java:1157) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragm entContentDispatcher.dispatch(XMLDocum entFragmentScannerImpl.java:1794) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD ocument(XMLDocumentFragmentScannerImpl .java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con figuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con figuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:14 8) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractS AXParser.java:1242) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561) at org.apache.catalina.startup.Catalina.load(Catalina.java:473) at org.apache.catalina.startup.Catalina.load(Catalina.java:509) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408) java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408) Caused by: java.lang.NoClassDefFoundError: org/apache/naming/TransactionRef at org.apache.catalina.core.StandardServer.(StandardServer.java:94) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jkstatus fails in Load Balanced Worker Configuration - BUG?
Hi, How have you configured Load-Balancing in Tomcat+Apache environment? I have multiple Tomcat Instances on my tomcat server and an Apache server with SiteMinder enabled for every url on tomcat instance. How do i configure load balancing in this environment with mod_jk connector at apache front? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 28, 2005 3:39 PM To: tomcat-user@jakarta.apache.org Subject: jkstatus fails in Load Balanced Worker Configuration - BUG? Hi - I'm posting details of this failure here, before I report as a Bug, just in case I am missing something Environment: Tomcat 5.5.12 Apache Web Server 2.0.54 JK Connector 1.2.13 and 1.2.14.1 Solaris 5.8 Problem Summary: Configuring Tomcat 5.5.12 to have two instances within an install, front end with Apache 2.0.54, configure JK Connector, workers.properties set to use balance_workers directive. Jkstatus works fine with JK 1.2.13 and fails with JK1.2.14 using exactly the same configuration. However, JK 1.2.14 can be made to work with a non load-balanced configuration. Problem Detail: With this configuration, JK 1.2.13 displays jkstatus, but jkstatus fails with JK 1.2.14: Apache.conf - LoadModule jk_module /mod_jk.so-jk1.2.14.1 #LoadModule jk_module /mod_jk.so-jk1.2.13 JkWorkersFile /workers.properties JkLogFile JkLogLevel debug JkMount /*.jsp group1 JkMount /jkmanager/* jkstatus Workers.properties - worker.list=group1,jkstatus #Settings for machine0 worker worker.machine0.port= #worker.machine0.host= worker.machine0.host= worker.machine0.type=ajp13 worker.machine0.lbfactor=1 #Settings for machine1 worker worker.machine1.port= #worker.machine1.host= worker.machine1.host= worker.machine1.type=ajp13 worker.machine1.lbfactor=1 worker.jkstatus.type=status #Define LB Worker worker.group1.type=lb worker.group1.balance_workers=machine0,machine1 worker.group1.sticky_session=0 With this configuration, both JK 1.2.13 and 1.2.14 both display jkstatus succesfully: Apache.conf - LoadModule jk_module /mod_jk.so-jk1.2.14.1 #LoadModule jk_module /mod_jk.so-jk1.2.13 JkWorkersFile /workers.properties JkLogFile JkLogLevel debug JkMount /*.jsp machine0 JkMount /jkmanager/* jkstatus Workers.properties - worker.list=machine0,jkstatus #Settings for machine0 worker worker.machine0.port= #worker.machine0.host= worker.machine0.host= worker.machine0.type=ajp13 worker.machine0.lbfactor=1 worker.jkstatus.type=status Thank you, Mervyn Sands Global Technology Infrastructure - Application Server Engineering : http://emis.chase.com/groups/appServer/ JPMorganChase & Co., 1 Chaseside Solent Building, Mail Point 511B, Bournemouth, BH7 7DA ( desk: 44-(0)1202 342426 GDP 731 2426 ( mob: 44-(0)77 141 00764 * email: [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: Clustering and Load Balancing in Tomcat 5.5.9
Hi, Could you please provide me the link? I am using, Tomcat 5.5.9 -- host1 Apache 2.x -- host2 Mod_Jk -- configured on apache webserver -- host2 workers.properties -- configured on Apache end. Mainly, i need is workers.properties configuration details. Also, i am connecting my tomcat to apache thru ajpport. Regds, Nehal -Original Message- From: Peter Rossbach [mailto:[EMAIL PROTECTED] Sent: Friday, October 28, 2005 1:23 PM To: Tomcat Users List Subject: Re: Clustering and Load Balancing in Tomcat 5.5.9 Hey, I think what you need is loadbalancing with Apache/mod_jk (stickysession and failover) search the mailing list for configs... Regards Peter Nehal Sangoi schrieb: >Hi, > >I need to configure clustering and load balancing in tomcat 5.5.9 - solaris >platform. Kindly, reply if anyone has the configuration details. I had tried >it earlier but it did not work. Also, my java code is not serialized. Still, >can i have type of clustering, that allows url access continued when >"refreshed"? This means, not necessary that i do access the url with same >session replicated. Even if it allows me to have another session be started >would work. > > >Thanks & Regards, >Nehal > > >- >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]
Clustering and Load Balancing in Tomcat 5.5.9
Hi, I need to configure clustering and load balancing in tomcat 5.5.9 - solaris platform. Kindly, reply if anyone has the configuration details. I had tried it earlier but it did not work. Also, my java code is not serialized. Still, can i have type of clustering, that allows url access continued when "refreshed"? This means, not necessary that i do access the url with same session replicated. Even if it allows me to have another session be started would work. Thanks & Regards, Nehal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Securing Manager Role
Hi, I could do it successfully yesterday. The right commandline in as follows. $ java -classpath $CATALINA_HOME/server/lib/catalina.jar:/opt/commons-logging/commons- logging.jar org.apache.catalina.realm.RealmBase -a sha1 manager Thank You so much for providing this solution. Regds, Nehal -Original Message- From: Charlie C.L. King [mailto:[EMAIL PROTECTED] Sent: Thursday, October 27, 2005 8:12 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Securing Manager Role hi, looks like you're stuck with your kshell. how about specifying canonical path to your java executable, e.g. /opt/bin/java? or if you're under some unix environment like FreeBSD, you can just use 'md5' or 'sha1' provided by system: % sha1 -s 'passphrase here' it will produce the same result for you. On 10/27/05, Nehal Sangoi <[EMAIL PROTECTED]> wrote: > > Hi, > > I modified my server.xml as follows. > > resourceName="UserDatabase" digest="SHA1"/> > > Also, downloaded "commons-logging-20051027.tar.gz" and untarred the same. > > Later i tried giving below command : > > $ java -classpath > $CATALINA_HOME/server/lib/catalina.jar:/opt/commons-logging/commons- > logging.jar org.apache.catalina.realm.RealmBase -a sha1 > But recd. following error : > > ksh: syntax error: `newline or ;' unexpected > > Please help doing this successfully. > > > Thanks, > Nehal > -- Regards, Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Securing Manager Role
Hi, I modified my server.xml as follows. Also, downloaded "commons-logging-20051027.tar.gz" and untarred the same. Later i tried giving below command : $ java -classpath $CATALINA_HOME/server/lib/catalina.jar:/opt/commons-logging/commons-logging.jar org.apache.catalina.realm.RealmBase -a sha1 But recd. following error : ksh: syntax error: `newline or ;' unexpected Please help doing this successfully. Thanks, Nehal -Original Message- From: Charlie C.L. King [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 26, 2005 1:28 PM To: Tomcat Users List Subject: Re: Securing Manager Role Hi, you can change it to a digested form, either in md5 or in sha1 or some others(see java.security.MessageDigest). but sha1 should be safer. here's the choir you have to do. 1. in your server.xml, add to its child element a new attribute named "digest" and with its value "SHA1"(whatever you want). 2. run this % java -classpath $CATALINA_HOME/server/lib/catalina.jar:/path/to/commons- logging.jar org.apache.catalina.realm.RealmBase -a sha1 you'll get the digested passphrase 3. use the digested passphrase as password in you tomcat-user.xml 4. be sure to restart tomcat and then you can try it the way digest means it should be difficult *BUT NOT IMPOSSIBLE* to decrypt in case anyone might be able to read that file, thus you should secure the user file and prevent others from reading it. -- Regards, Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTTP Status 404 - Servlet ControlServlet is not available
How can i resolve this error? I added manager context in server.xml first. Then deployed webapp using ant script. again, modified server.xml by inserting context for jdbc conn. and all. Restarted tomcat and apache. But this is not working. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Securing Manager Role
Is there any way for associating unix user "manager" to tomcat's manager rols and have encrypted password? -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 26, 2005 2:14 AM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: Securing Manager Role This is not supported because there is simply no point. If someone can read the tomcat-users.xml file then they almost certainly own the server and you have bigger problems than someone having access to the manager app. Consider if the password was encrypted, where is the decryption key stored? There is no point putting it in the Tomcat code since it is open source (and even if it wasn't it would still be bad security). You could put it in a separate file, but if an attacker can read tomcat-users.xml, there is no reason to suppose they won't be able to read the file with the key. Mark > -----Original Message- > From: Nehal Sangoi [mailto:[EMAIL PROTECTED] > Sent: Monday, October 24, 2005 10:05 AM > To: 'Tomcat Users List' > Subject: Securing Manager Role > > > Hi, > > How can i encrypt the manager user's password in > tomcat-users.xml file? I > need to keep manager-deployer thing be secured in my environment. > > Thanks & Regards, > Nehal > > - 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: Do not want change into the warfile name
I need to retain the original name of war file for further use in Load-Balancing and Clustering. Thank you for the information provided. In my ANT script, i changed the "url". Context Path i kept same for all the urls and it worked fine. Thanks once again, to all who replied to my query. -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Monday, October 24, 2005 3:37 PM To: Tomcat Users List Subject: Re: Do not want change into the warfile name Well contexts are used to name web applications web applications are accessed using http://host:port/contextName/ That is if you set context to 'clay', it's the expected behaviour it's accessible using http://host:port/clay/ For this, war is stored on server using name 'clay.war' If it was to be named 'example.war' then it would be accessible using http://host:port/example and it's context would be example, not clay. Am not sure why you want the war not be named with context name, as it's the expected behaviour of tomcat. Nehal Sangoi a écrit : >Hi All, > >I need to deploy only one warfile. e.g = "example.war" to multiple tomcat >instances having different context names. Currently, i am using ant's build >script with manager deployer. > >Hence, while deploying the warfile to multiple instances, in the "webapps" >of every instance, the war file's name gets changed to what the context name >is provided into the build script. > >This means, if i have a context named " clay " , then the existing warfile " >example.war " gets renamed to "clay.war" and gets deployed under the webapps >of clay tomcat instance. > >Kidnly, help me -- how can i configure manager deploy, for not having my >warfile name changed according to context detail. > > >Thanks & Regards, >Nehal > > > > > > >- >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]
Block HTTP Connector Port in server.xml and still use manager deployer for Tomcat Deployments
Hi All, I have a Tomcat Server (5.5.9) and an Apache webserver. These are physically two different machines. I want to do application deployments in Tomcat using Manager-Deploy Ant Build Script. But, does not want to use Tomcat's HTTP Connector Port found in server.xml. Basically, for some reasons, we need to block that port. How can i use Apache webserver's port for manager deployer and deploy the applications? Kindly, help me. And, Thanks in advance. Regds, Nehal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Do not want change into the warfile name
Hi All, I need to deploy only one warfile. e.g = "example.war" to multiple tomcat instances having different context names. Currently, i am using ant's build script with manager deployer. Hence, while deploying the warfile to multiple instances, in the "webapps" of every instance, the war file's name gets changed to what the context name is provided into the build script. This means, if i have a context named " clay " , then the existing warfile " example.war " gets renamed to "clay.war" and gets deployed under the webapps of clay tomcat instance. Kidnly, help me -- how can i configure manager deploy, for not having my warfile name changed according to context detail. Thanks & Regards, Nehal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Securing Manager Role
Hi, How can i encrypt the manager user's password in tomcat-users.xml file? I need to keep manager-deployer thing be secured in my environment. Thanks & Regards, Nehal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Remote deployments in Tomcat 5.5.9
Hi, I am currently implementing Tomcat 5.5.9 on solaris10. I need to know the configuration details of manager deployer, that can be used to deploy webapps on remote tomcat hosts. I have written an ant build script. But that is doing only a deployment and onto local machine itself. Please guide me doing this. Also, i am a newbie to Tomcat technology :)) Thanks, Nehal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
remote deployments
Hi, How can i configure manager deployer in tomcat 5.5.9 (os - solaris10) to conduct deployment on remote tomcat host? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help me configuring manager deploy for remote host deployments in tomcat 5.5.9
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]