JAAS in combination with WAR
Hi! I want to develop a webapp which should be easily deployable by using a WAR file. So, as I found out, I can place the context descriptor as context.xml in the META-INF directory. But I have some problems concerning the JAASRealm. First, the location of the jaas config file has to be set via a system property. How can I handle that by using a WAR?? Second, the my implementation of the LoginModule is bundled in a jar file. If the jar is placed in the WEB-INF/lib directory of my webapp, authentication with jaas doesn't succeed. If I put it into tomcat's common/lib directory, it starts working. Are there any possibilities to deploy the login jar within my webapp?? regards & thanx, Ingo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Do the jars I use affect webapp reloadability?
Yoav, Thanks for the response. It helps me out significantly because I have already found that some of the code I wrote was definitely using static variables that could never go out of scope. I've removed those, but the problem persists. I'm using log4j and Struts and your comment about LogManager#shutdown begs a question: Where in my code should I be calling the shutdown method? Is there some method in Tomcat that I need to override to call the shutdown method of each library I'm using? Or, should I be calling those methods by the end of each Struts Action#execute method? What about database connection pools? (I'm using OJB). I think that I want to maintain the pools even after the Action is executed so that the next database connection is relatively inexpensive. Where would I put the code to shutdown the pool only when a reload is happening? Thanks for your wisdom, -Anthony Carlos On Sep 21, 2004, at 9:06 AM, Shapira, Yoav wrote: Hi, Absolutely, the jars you used affect "reloadability". Two cases are the classics: - A library you use starts a non-daemon thread, and either doesn't close it or provides some sort of a shutdown method that you're not calling. This thread cannot be closed by Tomcat, so any of its resources (including its classloader by definition) cannot be recycled until the JVM is killed. - A library you use has classes that keep references to static variables that never go out of scope, meaning they can't be recycled, the classes with the references can't be recycled, and the classloader itself can't be recycled. Two things are therefore encouraged: - Design your app / architecture such that the need for reloads in production is rare, - Find which libraries do either of the above things, notify the vendor, and get on their case to fix it. There's also the obvious, ever-present advice, but it bears repeating: if a library you use provides methods to shutdown, always use them. For example, Log4j's LogManager#shutdown and Commons-Logging LogFactory#release/releaseAll methods. Both are rarely used ;( Yoav Shapira Millennium Research Informatics -Original Message- From: Anthony E. Carlos [mailto:[EMAIL PROTECTED] Sent: Monday, September 20, 2004 11:52 PM To: [EMAIL PROTECTED] Subject: Do the jars I use affect webapp reloadability? Hello, I'm experiencing a memory problem that is documented in http://jakarta.apache.org/tomcat/faq/deployment.html at the bottom. When I redeploy a web app, a 12MB chunk of memory gets taken by the JVM. After a few redeployments, I get an OutOfMemory error. The faq mentioned above blames it on the Classloader not being able to be recycled. I know that I can increase the size of the memory, but that isn't the real solution because eventually I'm going to have to restart Tomcat to reclaim the lost memory. My question is, do the jars I'm using affect the reloadability of a web app so that the Classloader cannot be recycled? I suspect this because as soon as I add a few jars to my apps, I start experiencing this phenomenon. I have a suspicion that it is OJB or the Oracle JDBC drivers, but I don't have any empirical data. Do you know of any jars that specifically cause this? Is there anything that can be done to ensure that the Classloader can be recycled (thus allowing me to redeploy web apps without wasting memory)? Thanks, -Anthony Carlos - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help on tomcat server path set up
Thansk Antony!! I will do that and get back to you. Infact now i am not getting any error in my server.But,in ie when i run application i am getting the following bunch of errors. Browser IE6 HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Cannot find bean userObject in scope null at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 48) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .java:356) at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja va:1759) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:550) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:530) at java.lang.Thread.run(Thread.java:534) root cause javax.servlet.ServletException: Cannot find bean userObject in scope null at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:530) at org.apache.jsp.Error_jsp._jspService(Error_jsp.java:896) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServl
Help on setting up tomcat paths properly
Hi !! I am using tomcat 4.1.18 version.Whenever i startup my tomcat it throws the following error .I have actually set up the paths properly. Plz go through the following 4 issues. 1---) My classpath(Env variables) is as below %CLASSPATH%;D:\tomcat\common\lib\tools.jar; C:\Program Files\Apache Group\Tomcat 4.1\common\lib; C:\Program Files\Apache Group\Tomcat 4.1\webapps\AS-IT\WEB-INF\lib\*.jar; C:\Program Files\Apache Group\Tomcat 4.1\webapps\AS-IT\WEB-INF\lib\*.jar; C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet_2_3.jar; 2)And i do have this servlet_2_3.jar in the following path C:\Program Files\Apache Group\Tomcat 4.1\common\lib 3)The server message is as below. Starting service Tomcat-Standalone Apache Tomcat/4.1.18 WebappClassLoader: validateJarFile(C:\Program Files\Apache Group\Tomcat 4.1\bin\ ..\webapps\AS-IT\WEB-INF\lib\servlet_2_3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class WebappClassLoader: validateJarFile(C:\Program Files\Apache Group\Tomcat 4.1\weba pps\AS-IT\WEB-INF\lib\servlet_2_3.jar) - jar not loaded. See Servlet Spec 2.3, s ection 9.7.2. Offending class: javax/servlet/Servlet.class Sep 22, 2004 10:43:53 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Sep 22, 2004 10:43:54 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Sep 22, 2004 10:43:54 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=32/94 config=C:\Program Files\Apache Group\Tomcat 4. 1\bin\..\conf\jk2.properties 4--)And when i install the application i do get the following error Browser IE6 HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Cannot find bean userObject in scope null at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 48) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .java:356) at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja va:1759) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java :247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPi peline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPi peline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:550) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPi peline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPi peline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPi peline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPi peline.java:641)
Re: Help on tomcat server path set up
This may be due to having 2 or more servlet.jar files in the class path. Check that WEB-INF\lib dont have this jar file. This jar file is provided by the container. Also no need to set up classpath for running Tomcat. The Tomcat start up scripts does this. The classpath you set cannot be seen by the applications you deploy in Tomcat rgds Antony Paul - Original Message - From: "Shanti Priya" <[EMAIL PROTECTED]> To: "Tomcat-User" <[EMAIL PROTECTED]> Sent: Wednesday, September 22, 2004 11:24 AM Subject: Help on tomcat server path set up > Hi !! > I am using tomcat 4.1.18 version.Whenever i startup my > tomcat it throws the following error .I have actually set up the paths > properly. > > > The server message is as follows. > > Starting service Tomcat-Standalone > Apache Tomcat/4.1.18 > WebappClassLoader: validateJarFile(C:\Program Files\Apache Group\Tomcat > 4.1\bin\ > ..\webapps\AS-IT\WEB-INF\lib\servlet_2_3.jar) - jar not loaded. See Servlet > Spec > 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class > WebappClassLoader: validateJarFile(C:\Program Files\Apache Group\Tomcat > 4.1\weba > pps\AS-IT\WEB-INF\lib\servlet_2_3.jar) - jar not loaded. See Servlet Spec > 2.3, s > ection 9.7.2. Offending class: javax/servlet/Servlet.class > Sep 22, 2004 10:43:53 AM org.apache.coyote.http11.Http11Protocol start > INFO: Starting Coyote HTTP/1.1 on port 8080 > Sep 22, 2004 10:43:54 AM org.apache.jk.common.ChannelSocket init > INFO: JK2: ajp13 listening on /0.0.0.0:8009 > Sep 22, 2004 10:43:54 AM org.apache.jk.server.JkMain start > INFO: Jk running ID=0 time=32/94 config=C:\Program Files\Apache > Group\Tomcat 4. > 1\bin\..\conf\jk2.properties > > > > My classpath(Env variables) is as follows > > %CLASSPATH%;D:\tomcat\common\lib\tools.jar; > C:\Program Files\Apache Group\Tomcat 4.1\common\lib; > C:\Program Files\Apache Group\Tomcat 4.1\webapps\AS-IT\WEB-INF\lib\*.jar; > C:\Program Files\Apache Group\Tomcat 4.1\webapps\AS-IT\WEB-INF\lib\*.jar; > C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet_2_3.jar; > > And i do have this servlet_2_3.jar in the following path > C:\Program Files\Apache Group\Tomcat 4.1\common\lib > > > Thanks & Regards, > Shanti Priya Sunkara > > Location: Pune, India > 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: Tomcat connection closes after 100 responses
Setting maxKeepAliveRequests="" on the CoyoteConnector element works on the 3.3.2 CoyoteConnector just like it does in Tomcat 5. Or, at least it does for me, having just tested it. "Bas Alberts" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi! > > Just tried that one (maxKeepAliveRequests); didn't work either. > My tomcat version is 3.3.2 by the way. > > Anyone? > > &basa; > > > > -Original Message- > From: Remy Maucherat [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 21, 2004 4:57 PM > To: Tomcat Users List > Subject: Re: Tomcat connection closes after 100 responses > > > http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html > Attribute maxKeepAliveRequests > -- > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help on tomcat server path set up
Hi !! I am using tomcat 4.1.18 version.Whenever i startup my tomcat it throws the following error .I have actually set up the paths properly. The server message is as follows. Starting service Tomcat-Standalone Apache Tomcat/4.1.18 WebappClassLoader: validateJarFile(C:\Program Files\Apache Group\Tomcat 4.1\bin\ ..\webapps\AS-IT\WEB-INF\lib\servlet_2_3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class WebappClassLoader: validateJarFile(C:\Program Files\Apache Group\Tomcat 4.1\weba pps\AS-IT\WEB-INF\lib\servlet_2_3.jar) - jar not loaded. See Servlet Spec 2.3, s ection 9.7.2. Offending class: javax/servlet/Servlet.class Sep 22, 2004 10:43:53 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Sep 22, 2004 10:43:54 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Sep 22, 2004 10:43:54 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=32/94 config=C:\Program Files\Apache Group\Tomcat 4. 1\bin\..\conf\jk2.properties My classpath(Env variables) is as follows %CLASSPATH%;D:\tomcat\common\lib\tools.jar; C:\Program Files\Apache Group\Tomcat 4.1\common\lib; C:\Program Files\Apache Group\Tomcat 4.1\webapps\AS-IT\WEB-INF\lib\*.jar; C:\Program Files\Apache Group\Tomcat 4.1\webapps\AS-IT\WEB-INF\lib\*.jar; C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet_2_3.jar; And i do have this servlet_2_3.jar in the following path C:\Program Files\Apache Group\Tomcat 4.1\common\lib Thanks & Regards, Shanti Priya Sunkara Location: Pune, India Email : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.23
Java code: Package x.y.z; Import ... Public class...{ Public method(){ ... File ff = new File("x.xml"); ... } } -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 22, 2004 10:43 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Tomcat 4.1.23 How the file is accessed ?. rgds Antony Paul - Original Message - From: "Sudhrasun Ramalingam" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, September 22, 2004 9:33 AM Subject: RE: Tomcat 4.1.23 > Sorry for using the wrong words, > > I've a jar inside my /webapps/webapplication/lib, which referes a file say > x.xml. If I packed this x.xml with the jar it works, but I wanted that to be > modified by others so I put that inside the /webapps/webapplication/. When I > access the jsp/servlet I get an error saying x.xml not found. > > What can be done for this ? > > > > -Original Message- > From: QM [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 21, 2004 7:14 PM > To: Tomcat Users List > Subject: Re: Tomcat 4.1.23 > > On Tue, Sep 21, 2004 at 10:17:11AM +0600, Sudhrasun Ramalingam wrote: > : I've a doubt, What is the root directory for a webapp? > : And if the answer is $CATALINA_HOME/webapps/.. > : > : Then how can the jar file referring $CATALINA_HOME as root for my web > : application? > > 1/ "root directory" and "document root" are terms that don't 100% apply > in the J2EE world. Use the term "context path," because a webapp > (context) may exist in a directory or inside a WAR file. > > So, the context path defaults to one of > {value of "appBase"}/{context dir} > {value of "appBase"}/{WAR file} > > where the value of "appBase" defaults to {Tomcat install}/webapps. > > 2/ $CATALINA_HOME and $CATALINA_BASE are not the root/context/whatever > path for your application. > > -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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ant build remote java.net.MalformedURLException (newbie Q)
With Tomcat 4.1 I had this problem when I forgot to change the URL of the remote manager when I changed testing from localhost to remote host. Also check the remote machine have manager application installed and have user with manager roles. Also check password. rgds Antony Paul - Original Message - From: "Harry Hartley" <[EMAIL PROTECTED]> To: "'Antony Paul'" <[EMAIL PROTECTED]>; "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, September 21, 2004 7:06 PM Subject: RE: ant build remote java.net.MalformedURLException (newbie Q) > Thanks for replying Antony. > > I am using (both locally and remote): > Tomcat - 5.0.28 > JDK - 1.4.2_05 > Ant - 1.6.2 > > Harry > > -Original Message- > From: Antony Paul [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 21, 2004 7:26 AM > To: Tomcat Users List; [EMAIL PROTECTED] > Subject: Re: ant build remote java.net.MalformedURLException (newbie Q) > > Which version of Tomcat you are using ? > > rgds > Antony Paul > > - Original Message - > From: "Harry Hartley" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, September 21, 2004 4:18 PM > Subject: ant build remote java.net.MalformedURLException (newbie Q) > > > > I am trying to use the sample to deploy the test application from my local > > machine to my remote server. > > > > > > > > I have done all builds and deployments successfully, and everything works > > fine (yippy!). > > > > I have modified the build.xml to use the url and password for the manager > > app on my remote server. This works partially. I am able to do lists, but > > when I try to install, I get a java.net.MalformedURLException error. > > Looking at the build.xml, this makes sense. My assumption is that the > > manager application looks at the > > > > > > > uername="${manager.username}" > > > > password="${manager.password}" > > > > path="${app.path}" > > > > localWar="file://${build.home}"/> > > > > > > > > and tells me hey dude, aint no such directory on my server. > > > > > > > > So the question is, how to do an install from a local machine, running > build > > on a local machine (with tomcat installed), and install my war on a remote > > machine. A couple of thoughts come to mind: > > > > 1) FTP files to remote system using ant tasks. > > > > 2) Use something other than 'file://' as designator of location. > > > > 3) There is some other task or property for ant that handles this. > > > > > > > > I should mention that locally I am behind a nat and using a typical cable > > HSD account with dynamic ip assignment, so using my own IP is probably not > > feasible. > > > > > > > > Any Help? Thanks, > > > > > > > > Harry > > > > > > > > > > > > > - > 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 4.1.23
How the file is accessed ?. rgds Antony Paul - Original Message - From: "Sudhrasun Ramalingam" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, September 22, 2004 9:33 AM Subject: RE: Tomcat 4.1.23 > Sorry for using the wrong words, > > I've a jar inside my /webapps/webapplication/lib, which referes a file say > x.xml. If I packed this x.xml with the jar it works, but I wanted that to be > modified by others so I put that inside the /webapps/webapplication/. When I > access the jsp/servlet I get an error saying x.xml not found. > > What can be done for this ? > > > > -Original Message- > From: QM [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 21, 2004 7:14 PM > To: Tomcat Users List > Subject: Re: Tomcat 4.1.23 > > On Tue, Sep 21, 2004 at 10:17:11AM +0600, Sudhrasun Ramalingam wrote: > : I've a doubt, What is the root directory for a webapp? > : And if the answer is $CATALINA_HOME/webapps/.. > : > : Then how can the jar file referring $CATALINA_HOME as root for my web > : application? > > 1/ "root directory" and "document root" are terms that don't 100% apply > in the J2EE world. Use the term "context path," because a webapp > (context) may exist in a directory or inside a WAR file. > > So, the context path defaults to one of > {value of "appBase"}/{context dir} > {value of "appBase"}/{WAR file} > > where the value of "appBase" defaults to {Tomcat install}/webapps. > > 2/ $CATALINA_HOME and $CATALINA_BASE are not the root/context/whatever > path for your application. > > -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: cud not solve javax.naming.NamingException: Cannot create resource instance
Do you have MySQL JDBC Driver jar ?. Put it in common\lib and restart Tomcat to test rgds Antony Paul - Original Message - From: "Atishay Kumar" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, September 22, 2004 9:30 AM Subject: Re: cud not solve javax.naming.NamingException: Cannot create resource instance > i was not putting the following lines, that's why i namingException > was coming. BUT I AM NOW GETTING THE DataSource as null. Any clues?? > > > > factory > org.apache.commons.dbcp.BasicDataSourceFactory > > - > > > On Tue, 21 Sep 2004 19:41:03 +, Atishay Kumar > <[EMAIL PROTECTED]> wrote: > > hi, > > i am trying to do MySql Connection Pooling in Tomcat 4.1.27. I am > > getting the following error > > -- > > javax.naming.NamingException: Cannot create resource instance > > -- > > doing some googly revealed that i need some commons-.. jar files to be > > present in common/lib folder. but i already had them in common/lib > > folder. the files in lib folder are > > -- > > activation.jar commons-dbcp.jar jdbc2_0-stdext.jar > >naming-common.jar > > ant.jar commons-logging-api.jar jndi.jar > >naming-factory.jar > > classes111.jar commons-pool.jar jta.jar > >naming-resources.jar > > classes12.jarjasper-compiler.jar mail.jar > >servlet.jar > > commons-collections.jar jasper-runtime.jar > > mysql-connector-java-3.0.11-stable-bin.jar > > - > > my server.xml > > > > > priveledge="true"> > > > > > > > type="java.sql.DataSource"/> > > > > > > user > > root > > > > > >password > > > > > > > > driverClassName > > com.mysql.jdbc.Driver > > > > > > url > > jdbc:mysql://localhost:3306/mysql > > > > > > > > > > web.xml > > > > > > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > > "http://java.sun.com/dtd/web-app_2_3.dtd";> > > > > This is a test folder > > > > Welcome to the test folder > > > > > > MySql Datasource for Student Directory > > jdbc/testDataSource > > javax.sql.DataSource > > Container > > > > > > - > > mysql_connection_test.jsp > > > > <%@ page import="java.sql.*" %> > > <%@ page import="javax.naming.*"%> > > <%@ page import="javax.sql.*"%> > > > > > > test > > > > > > <% > > try > > { > > Context ctx= new InitialContext(); > > if(ctx==null) > > throw new Exception("not able to find intial context"); > > DataSource > > ds=(DataSource)ctx.lookup("java:comp/env/jdbc/testDataSource"); > > if(ds!=null) > > { > > Connection conn=ds.getConnection(); > > Statement stmt=conn.createStatement(); > > ResultSet rs=stmt.executeQuery("select current_date()"); > > if(rs==null) > > out.println("No rowset returned"); > > else > > { > > rs.next(); > > out.println("Current Date"+rs.getString(1)); > > } > > rs.close(); > > stmt.close(); > > conn.close(); > > > > } > > } > > catch(Exception e) > > { > > out.println("Error found: "+e); > > } > > > > %> > > > > > > --- > > please help me in resolving it. > > > > thanks > > -- > > :) > > Atishay Kumar > > Btech, SEM VII > > DA-IICT > > Gandhinagar - 382009 > > India > > ph: +91 9825383948 > > /*** * > > * Learn the rules as you would need them to break them properly * > > / > > > > > > -- > :) > Atishay Kumar > Btech, SEM VII > DA-IICT > Gandhinagar - 382009 > India > ph: +91 9825383948 > /*** * > * Learn the rules as you would need them to break them properly * > / > > - > 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 4.1.23
Sorry for using the wrong words, I've a jar inside my /webapps/webapplication/lib, which referes a file say x.xml. If I packed this x.xml with the jar it works, but I wanted that to be modified by others so I put that inside the /webapps/webapplication/. When I access the jsp/servlet I get an error saying x.xml not found. What can be done for this ? -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 7:14 PM To: Tomcat Users List Subject: Re: Tomcat 4.1.23 On Tue, Sep 21, 2004 at 10:17:11AM +0600, Sudhrasun Ramalingam wrote: : I've a doubt, What is the root directory for a webapp? : And if the answer is $CATALINA_HOME/webapps/.. : : Then how can the jar file referring $CATALINA_HOME as root for my web : application? 1/ "root directory" and "document root" are terms that don't 100% apply in the J2EE world. Use the term "context path," because a webapp (context) may exist in a directory or inside a WAR file. So, the context path defaults to one of {value of "appBase"}/{context dir} {value of "appBase"}/{WAR file} where the value of "appBase" defaults to {Tomcat install}/webapps. 2/ $CATALINA_HOME and $CATALINA_BASE are not the root/context/whatever path for your application. -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]
Re: cud not solve javax.naming.NamingException: Cannot create resource instance
i was not putting the following lines, that's why i namingException was coming. BUT I AM NOW GETTING THE DataSource as null. Any clues?? factory org.apache.commons.dbcp.BasicDataSourceFactory - On Tue, 21 Sep 2004 19:41:03 +, Atishay Kumar <[EMAIL PROTECTED]> wrote: > hi, > i am trying to do MySql Connection Pooling in Tomcat 4.1.27. I am > getting the following error > -- > javax.naming.NamingException: Cannot create resource instance > -- > doing some googly revealed that i need some commons-.. jar files to be > present in common/lib folder. but i already had them in common/lib > folder. the files in lib folder are > -- > activation.jar commons-dbcp.jar jdbc2_0-stdext.jar >naming-common.jar > ant.jar commons-logging-api.jar jndi.jar >naming-factory.jar > classes111.jar commons-pool.jar jta.jar >naming-resources.jar > classes12.jarjasper-compiler.jar mail.jar >servlet.jar > commons-collections.jar jasper-runtime.jar > mysql-connector-java-3.0.11-stable-bin.jar > - > my server.xml > > priveledge="true"> > > > type="java.sql.DataSource"/> > > > user > root > > >password > > > > driverClassName > com.mysql.jdbc.Driver > > > url > jdbc:mysql://localhost:3306/mysql > > > > > web.xml > > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd";> > > This is a test folder > > Welcome to the test folder > > > MySql Datasource for Student Directory > jdbc/testDataSource > javax.sql.DataSource > Container > > > - > mysql_connection_test.jsp > > <%@ page import="java.sql.*" %> > <%@ page import="javax.naming.*"%> > <%@ page import="javax.sql.*"%> > > > test > > > <% > try > { > Context ctx= new InitialContext(); > if(ctx==null) > throw new Exception("not able to find intial context"); > DataSource > ds=(DataSource)ctx.lookup("java:comp/env/jdbc/testDataSource"); > if(ds!=null) > { > Connection conn=ds.getConnection(); > Statement stmt=conn.createStatement(); > ResultSet rs=stmt.executeQuery("select current_date()"); > if(rs==null) > out.println("No rowset returned"); > else > { > rs.next(); > out.println("Current Date"+rs.getString(1)); > } > rs.close(); > stmt.close(); > conn.close(); > > } > } > catch(Exception e) > { > out.println("Error found: "+e); > } > > %> > > > --- > please help me in resolving it. > > thanks > -- > :) > Atishay Kumar > Btech, SEM VII > DA-IICT > Gandhinagar - 382009 > India > ph: +91 9825383948 > / > * Learn the rules as you would need them to break them properly * > / > -- :) Atishay Kumar Btech, SEM VII DA-IICT Gandhinagar - 382009 India ph: +91 9825383948 / * Learn the rules as you would need them to break them properly * / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configure Teradata data source connection...
Hi: I am new to Java and this forum, so my apologies for asking novice queries (but u have to start one day)!!! I am working on creating a database management site using JSDK and Apache Tomcat server on my WinXp laptop. I have got a dummy test file using an applet to connect to the Teradata database. But it is failing in dearth of proper drivers. Can you please guide me set up the Teradata drivers information in the conf files, etc so that the applet can sonnect to the RDBMS and submit the query? Thanks in advance!!! Hoping for an early response. Thanks & Regards, Pete
RE: Unable to start tomcat server
John, See below: John Najarian <[EMAIL PROTECTED]> wrote: Hi Suresh, I installed Tomcat in C:\Tomcat My Catalina_home environment variable is: c:\tomcat Java is installed at C:\j2sdk1.4.2_03 My Catalina_home environment variable is: C:\j2sdk1.4.2_03 >> Are you sure you do not mean your JAVA_HOME vs CATALINA_HOME as you already have >> declared that? - Do you Yahoo!? vote.yahoo.com - Register online to vote today!
RE: Tomcat 4.1 Connection Pooling...
Shilpa, What OS are you running this configuration on? If it is AIX I would investigate to see how the system is configured for the number of processes per user on the system. If it is configured as a Workstation it is defaulted to 128 processes / login. If it is configured as a server it is set to 500 processes / login. Plus Oracle support site suggests in the neighborhood of 2500 processes / login for Oracle 9i to function well if you are running 9i. These are all system settings that can be found in smitty on the system and adjusted as root user. Hope this helps, Cary Shilpa Nalgonda <[EMAIL PROTECTED]> wrote: Can someone please suggest how to achieve connection Pooling in tomcat 4.1. As per the docs i have 1) configured server.xml to include the resource parameters ( datasource, connection pool size etc) 2) In application code , retrieve connection using datasource 3) Every Method call to database retrieves connection using datasource.getConnection () and closes connection everytime But still the pooling is not achieved, i get ORA-00020 error( maximim proceses exceeded), i increased the size from 30 to 200) even then it is not working. Can someone please help -Original Message- From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] Sent: Monday, September 20, 2004 12:55 PM To: Tomcat Users List Subject: org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted, cause: Hi, I am getting the timeout exception for connection pooling, i am using Tomca 4.1 and datasource to retrieve connections. I am attaching all the soure code and configuration files used in my application, please suggest where iam doing wrong... SEVERE: getConnection()--SQLException org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted, cause: java.util.NoSuchElementException: Timeout waiting for idle object at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPoo l.java:801) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja va:140) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5 18) at com.mypublisher.oemapi.DAO.DBAccess.getConnection(DBAccess.java:47) at com.mypublisher.oemapi.DAO.Persister.(Persister.java:46) at com.mypublisher.oemapi.SubmitOrder.SubmitOrder(SubmitOrder.java:61) 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:324) at org.apache.xmlrpc.Invoker.execute(Invoker.java:168) at org.apache.xmlrpc.XmlRpcWorker.invokeHandler(XmlRpcWorker.java:123) at org.apache.xmlrpc.XmlRpcWorker.execute(XmlRpcWorker.java:185) at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:151) at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:128) at com.mypublisher.oemapi.xmlrpc.XmlRpcServlet.doPost(XmlRpcServlet.java === server.xml - xmlrpc-oemapi--> debug="5" reloadable="true" crossContext="true" useNaming="true"> prefix="localhost_rpcoemapi_log." suffix=".txt" timestamp="true"/> auth="Container" type="javax.sql.DataSource"/> factory org.apache.commons.dbcp.BasicDataSourceFactory configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. --> maxActive 5 Set to 0 for no limit. --> maxIdle 2 in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. --> maxWait 1 username ioeadmin password ioeadmin driverClassName oracle.jdbc.driver.OracleDriver The autoReconnect=true argument to the url makes sure that the mm.mysql JDBC Driver will automatically reconnect if mysqld closed the connection. mysqld by default closes idle connections after 8 hours. --> url jdbc:oracle:thin:@ipaddress:1521:MYDB === DatasourceFactory is a singleton class used to retrieve the datasource from tomcat using JNDi..and connection is obtained from datasource... public static DataSource getInstance() throws SystemException { if (!isDataSrcAvaliable) { if (dataSource == null) { new DataSourceFactory(); doLookUp(); isDataSrcAvaliable = true; } //end if (dataSource == null) }// end if (!isDataSrcAvaliable) return dataSource; } /* end getInstance() */ doLookUp method does this: Context ctx = new InitialContext(); String dataSrc = msgResource.getMessage(OEMAPIConstants.DATA_SOURCE_NAME); Context env = (Context)ctx.lookup("java:comp/env"); dataSource = (DataSource) env.lookup(dataSrc); public static Connecti
RE: Unable to start tomcat server
Great point Cary, I overlooked & forgot that. Because we run separate servers for all our different apps we don't use that functionality. -Original Message- From: Cary Conover [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 6:45 PM To: Tomcat Users List Subject: Re: Unable to start tomcat server Brian, One point to ponder is you were also using both %CATALINA_HOME% and %CATALINA_BASE%. %CATALINA_HOME% is for where the main Jakarta Tomcat bin, conf, common and server directories reside. These are Shared Directories between the Base Directories for other instances of Tomcat that run from the Home Directory Structure. This structure allows you to have multiple Base Directories. %CATALINA_BASE% is where the respective configuration, delivered apps, logs and work directories are located. Such conf, logs, webapps, and work. This is what is unique to each of the particular Base Directories. There are a couple additional with directories in the 4.1.30 release and quite possibly more differences in the 5.0/5.5 Releases. You will see a server.xml and web.xml and a couple other files in the respective base directory structure under conf. You will also see another web.xml located at %CATALINA_BASE%\webapps\ROOT\WEB-INF as well. Your particular apps likely will reside in the %CATALINA_BASE%\webapps directory. All of the log files for tomcat in each base configuration usually reside in the respective %CATALINA_BASE%\logs. The reason for defining %CATALINA_BASE% is so that you can have more than one instance of Tomcat running from %CATALINA_HOME% at the same time sharing the Jakarta Tomcat Code. Beware when doing this that the ports defined in the server.xml in the conf directories so that they do not overlap. If they overlap Tomcat will not start. You will get errors in the logs and it will just shut right back down. There is a way to have Tomcat also setup as a service using a dll so that it will automatically start and can be interfaced via ISAPI configuration to IIS as well. Brian Roberts <[EMAIL PROTECTED]> wrote: Hi everyone I too was having trouble starting the server and thanks everyone for your help but what I found was that with the latest tomcat server you need to have the latest java JRE version 5. Try installing the latest from http://java.sun.com/j2se version 5 or later and set an environment variable named JAVA_HOME to the pathname of the directory into which you installed the JRE. Full instructions are with the tomcat server package on RUNNING.txt Bye for now and thanks everyone for your help Brian Roberts At 06:01 AM 21/09/2004 -0700, you wrote: >It was a typo and CATALINA_HOME is actually set to C:\Tomcat. >I actually installed tomcat onto folder named >C:\softwares\tomcat\jakarta-tomcat-5.0.27 In this folder i have all bin, >common and other folders. >But while i am setting class path it is taking lot of place so i moved all >the folders from above folder structure and into C:\Tomcat and i think >that should be OK. >For more information i am using windows XP professional OS. >Thanks a lot for reply but i am still unable to start the server.Any help >is highly appreciated. > > >>From: [EMAIL PROTECTED] >>Reply-To: "Tomcat Users List" >>To: "Tomcat Users List" >>Subject: Re: Suggestion: A dedicated TOMCAT forum! >>Date: Tue, 21 Sep 2004 11:54:24 +0800 (WST) >> >>Hi Suresh, >> >>Just by looking at your startup output it seems to be that you have set >>your environment variable CATALINA_HOME to C:\Tomca and NOT C:\Tomcat as >>it should be. Also ensure that your SDK installation exists in C:\Java as >>this is what your JAVA_HOME environment variable is set to. Try doing this >>and re-run your server and in theory you shouldn't have any problems. >> >>Kindest Regards, >>Matt Anderson >> >> > Hi >> > I have downloaded and installed Tomcat 5.0.27 version onto C:\Tomcat and >> > set >> > the ENV variable >> > CATALINA_HOME and JAVA_HOME and also included all the jars available in >> > C:\Tomcat\Common\lib folder in the classpath. But when i go to command >> > prompt C:\Tomcat\bin and execute startup.bat a black window comes up and >> > disappears but my server never starts.On the command window where i >> > executed >> > startup there appears 4 lines as follows >> > Using CATALINA_BASE: C:\Tomca >> > Using CATALINA_HOME: C:\Tomca >> > Using CATALINA_TMPDIR: C:\Tomca >> > Using JAVA_HOME: C:\Java >> > but am not able to start the server >> > Can anyone please help me on this. >> > >> > >> > Thanks >> > Suresh Akula >> > >> >>From: nyhgan >> >>Reply-To: "Tomcat Users List" >> >>To: Tomcat Users List , Peng Tuck Kwok >> >> >> >>Subject: Re: Suggestion: A dedicated TOMCAT forum! >> >>Date: Mon, 20 Sep 2004 20:10:56 -0700 (PDT) >> >> >> >>Hi, >> >> >> >>I didn't know that there is already a TOMCAT forum. It is sad to see >> >> that >> >>the activity is so low there. Maybe that is because no one knows about >> >> its >> >>existence. I hope the tomcat
Re: Unable to start tomcat server
Brian, One point to ponder is you were also using both %CATALINA_HOME% and %CATALINA_BASE%. %CATALINA_HOME% is for where the main Jakarta Tomcat bin, conf, common and server directories reside. These are Shared Directories between the Base Directories for other instances of Tomcat that run from the Home Directory Structure. This structure allows you to have multiple Base Directories. %CATALINA_BASE% is where the respective configuration, delivered apps, logs and work directories are located. Such conf, logs, webapps, and work. This is what is unique to each of the particular Base Directories. There are a couple additional with directories in the 4.1.30 release and quite possibly more differences in the 5.0/5.5 Releases. You will see a server.xml and web.xml and a couple other files in the respective base directory structure under conf. You will also see another web.xml located at %CATALINA_BASE%\webapps\ROOT\WEB-INF as well. Your particular apps likely will reside in the %CATALINA_BASE%\webapps directory. All of the log files for tomcat in each base configuration usually reside in the respective %CATALINA_BASE%\logs. The reason for defining %CATALINA_BASE% is so that you can have more than one instance of Tomcat running from %CATALINA_HOME% at the same time sharing the Jakarta Tomcat Code. Beware when doing this that the ports defined in the server.xml in the conf directories so that they do not overlap. If they overlap Tomcat will not start. You will get errors in the logs and it will just shut right back down. There is a way to have Tomcat also setup as a service using a dll so that it will automatically start and can be interfaced via ISAPI configuration to IIS as well. Brian Roberts <[EMAIL PROTECTED]> wrote: Hi everyone I too was having trouble starting the server and thanks everyone for your help but what I found was that with the latest tomcat server you need to have the latest java JRE version 5. Try installing the latest from http://java.sun.com/j2se version 5 or later and set an environment variable named JAVA_HOME to the pathname of the directory into which you installed the JRE. Full instructions are with the tomcat server package on RUNNING.txt Bye for now and thanks everyone for your help Brian Roberts At 06:01 AM 21/09/2004 -0700, you wrote: >It was a typo and CATALINA_HOME is actually set to C:\Tomcat. >I actually installed tomcat onto folder named >C:\softwares\tomcat\jakarta-tomcat-5.0.27 In this folder i have all bin, >common and other folders. >But while i am setting class path it is taking lot of place so i moved all >the folders from above folder structure and into C:\Tomcat and i think >that should be OK. >For more information i am using windows XP professional OS. >Thanks a lot for reply but i am still unable to start the server.Any help >is highly appreciated. > > >>From: [EMAIL PROTECTED] >>Reply-To: "Tomcat Users List" >>To: "Tomcat Users List" >>Subject: Re: Suggestion: A dedicated TOMCAT forum! >>Date: Tue, 21 Sep 2004 11:54:24 +0800 (WST) >> >>Hi Suresh, >> >>Just by looking at your startup output it seems to be that you have set >>your environment variable CATALINA_HOME to C:\Tomca and NOT C:\Tomcat as >>it should be. Also ensure that your SDK installation exists in C:\Java as >>this is what your JAVA_HOME environment variable is set to. Try doing this >>and re-run your server and in theory you shouldn't have any problems. >> >>Kindest Regards, >>Matt Anderson >> >> > Hi >> > I have downloaded and installed Tomcat 5.0.27 version onto C:\Tomcat and >> > set >> > the ENV variable >> > CATALINA_HOME and JAVA_HOME and also included all the jars available in >> > C:\Tomcat\Common\lib folder in the classpath. But when i go to command >> > prompt C:\Tomcat\bin and execute startup.bat a black window comes up and >> > disappears but my server never starts.On the command window where i >> > executed >> > startup there appears 4 lines as follows >> > Using CATALINA_BASE: C:\Tomca >> > Using CATALINA_HOME: C:\Tomca >> > Using CATALINA_TMPDIR: C:\Tomca >> > Using JAVA_HOME: C:\Java >> > but am not able to start the server >> > Can anyone please help me on this. >> > >> > >> > Thanks >> > Suresh Akula >> > >> >>From: nyhgan >> >>Reply-To: "Tomcat Users List" >> >>To: Tomcat Users List , Peng Tuck Kwok >> >> >> >>Subject: Re: Suggestion: A dedicated TOMCAT forum! >> >>Date: Mon, 20 Sep 2004 20:10:56 -0700 (PDT) >> >> >> >>Hi, >> >> >> >>I didn't know that there is already a TOMCAT forum. It is sad to see >> >> that >> >>the activity is so low there. Maybe that is because no one knows about >> >> its >> >>existence. I hope the tomcat team can publish the forum url in the >> >> release >> >>note and also on the tomcat website. >> >> >> >>thanks! >> >> >> >>nyhgan >> >> >> >> >> >> >> >> >> >>Peng Tuck Kwok wrote: >> >>You mean like the one here : http://nagoya.apache.org/jive/index.jsp ? >> >>Activity seems low if you ask me. Don't
Re: tomcat problems with SSL / PKCS12
On 9/21/2004 6:41 PM, [EMAIL PROTECTED] wrote: On Tue, 21 Sep 2004, Dennis Dai wrote: Ok here's the deal with openssl. I'm using OpenSSL 0.9.7d and J2SE 1.4.2_05. Assuming: * server.key - your certificate's private key * server.crt - your certificate * inter.crt - the intermediate CA that signed your certificate * root.crt - the root CA that signed the intermediate CA where do i get this "root.crt"? fwiw, i'll show "openssl x509 -text" output below. if we are on the right track wrt making the correct cert chain, i wonder if i've got the right pieces to create it. info from the server.crt which i received from verisign after providing them with the CSR: Serial Number: 47:19:49:03:05:01:c4:fd:79:06:69:a9:be:d9:22:2d Signature Algorithm: sha1WithRSAEncryption Issuer: O=VeriSign Trust Network, OU=VeriSign, Inc., OU=VeriSign International Server CA - Class 3, OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD .(c)97 VeriSign [snip] Subject: C=US, ST=California, L=Brisbane, O=Shopping.com, OU=Terms of use at www.verisign.com/rpa (c)00, CN=blahdeeblah.shopping.com info from the intermediate cert i obtained from http://www.verisign.com/support/install/intermediate.html: Serial Number: 25:4b:8a:85:38:42:cc:e3:58:f8:c5:dd:ae:22:6e:a4 Signature Algorithm: sha1WithRSAEncryption Issuer: C=US, O=VeriSign, Inc., OU=Class 3 Public Primary Certification Authority [snip] Subject: O=VeriSign Trust Network, OU=VeriSign, Inc., OU=VeriSign International Server CA - Class 3, OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD.(c)97 VeriSign if i had the cert that signed this intermediate cert, would i have the right pieces to create the right chain? You should be able to export it from your browser ... it's built into major browsers' root CA store I'm sure. Once you export the root cert, you can just use it as root.crt in my example. And yes, you got the right piece. If you look at the issuer of your certificate, it's the same as the subject of the intermediate one you got from verisign. Now you only need the one that signed this intermediate one, which can be found and exported from major browsers. Regards, -- Dennis Dai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat problems with SSL / PKCS12
On Tue, 21 Sep 2004, Dennis Dai wrote: Ok here's the deal with openssl. I'm using OpenSSL 0.9.7d and J2SE 1.4.2_05. Assuming: * server.key - your certificate's private key * server.crt - your certificate * inter.crt - the intermediate CA that signed your certificate * root.crt - the root CA that signed the intermediate CA where do i get this "root.crt"? fwiw, i'll show "openssl x509 -text" output below. if we are on the right track wrt making the correct cert chain, i wonder if i've got the right pieces to create it. info from the server.crt which i received from verisign after providing them with the CSR: Serial Number: 47:19:49:03:05:01:c4:fd:79:06:69:a9:be:d9:22:2d Signature Algorithm: sha1WithRSAEncryption Issuer: O=VeriSign Trust Network, OU=VeriSign, Inc., OU=VeriSign International Server CA - Class 3, OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD .(c)97 VeriSign [snip] Subject: C=US, ST=California, L=Brisbane, O=Shopping.com, OU=Terms of use at www.verisign.com/rpa (c)00, CN=blahdeeblah.shopping.com info from the intermediate cert i obtained from http://www.verisign.com/support/install/intermediate.html: Serial Number: 25:4b:8a:85:38:42:cc:e3:58:f8:c5:dd:ae:22:6e:a4 Signature Algorithm: sha1WithRSAEncryption Issuer: C=US, O=VeriSign, Inc., OU=Class 3 Public Primary Certification Authority [snip] Subject: O=VeriSign Trust Network, OU=VeriSign, Inc., OU=VeriSign International Server CA - Class 3, OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD.(c)97 VeriSign if i had the cert that signed this intermediate cert, would i have the right pieces to create the right chain? thanks again -- [EMAIL PROTECTED] office: 650.616.6708 Reality is that which, when you stop believing in it, doesn't go away. - Philip K. Dick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to start tomcat server
Hi everyone I too was having trouble starting the server and thanks everyone for your help but what I found was that with the latest tomcat server you need to have the latest java JRE version 5. Try installing the latest from http://java.sun.com/j2se version 5 or later and set an environment variable named JAVA_HOME to the pathname of the directory into which you installed the JRE. Full instructions are with the tomcat server package on RUNNING.txt Bye for now and thanks everyone for your help Brian Roberts At 06:01 AM 21/09/2004 -0700, you wrote: It was a typo and CATALINA_HOME is actually set to C:\Tomcat. I actually installed tomcat onto folder named C:\softwares\tomcat\jakarta-tomcat-5.0.27 In this folder i have all bin, common and other folders. But while i am setting class path it is taking lot of place so i moved all the folders from above folder structure and into C:\Tomcat and i think that should be OK. For more information i am using windows XP professional OS. Thanks a lot for reply but i am still unable to start the server.Any help is highly appreciated. From: [EMAIL PROTECTED] Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Subject: Re: Suggestion: A dedicated TOMCAT forum! Date: Tue, 21 Sep 2004 11:54:24 +0800 (WST) Hi Suresh, Just by looking at your startup output it seems to be that you have set your environment variable CATALINA_HOME to C:\Tomca and NOT C:\Tomcat as it should be. Also ensure that your SDK installation exists in C:\Java as this is what your JAVA_HOME environment variable is set to. Try doing this and re-run your server and in theory you shouldn't have any problems. Kindest Regards, Matt Anderson > Hi > I have downloaded and installed Tomcat 5.0.27 version onto C:\Tomcat and > set > the ENV variable > CATALINA_HOME and JAVA_HOME and also included all the jars available in > C:\Tomcat\Common\lib folder in the classpath. But when i go to command > prompt C:\Tomcat\bin and execute startup.bat a black window comes up and > disappears but my server never starts.On the command window where i > executed > startup there appears 4 lines as follows > Using CATALINA_BASE: C:\Tomca > Using CATALINA_HOME: C:\Tomca > Using CATALINA_TMPDIR: C:\Tomca > Using JAVA_HOME: C:\Java > but am not able to start the server > Can anyone please help me on this. > > > Thanks > Suresh Akula > >>From: nyhgan <[EMAIL PROTECTED]> >>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> >>To: Tomcat Users List <[EMAIL PROTECTED]>, Peng Tuck Kwok >><[EMAIL PROTECTED]> >>Subject: Re: Suggestion: A dedicated TOMCAT forum! >>Date: Mon, 20 Sep 2004 20:10:56 -0700 (PDT) >> >>Hi, >> >>I didn't know that there is already a TOMCAT forum. It is sad to see >> that >>the activity is so low there. Maybe that is because no one knows about >> its >>existence. I hope the tomcat team can publish the forum url in the >> release >>note and also on the tomcat website. >> >>thanks! >> >>nyhgan >> >> >> >> >>Peng Tuck Kwok <[EMAIL PROTECTED]> wrote: >>You mean like the one here : http://nagoya.apache.org/jive/index.jsp ? >>Activity seems low if you ask me. Don't know what the plans are for the >>forum. >> >> >>On Mon, 20 Sep 2004 16:14:23 -0500, QM wrote: >> > On Mon, Sep 20, 2004 at 02:00:37PM -0700, nyhgan wrote: >> > : I believe that having an open discussion forum is the first step >>toward such a goal as it will attract a vast number of new users to the >>tomcat world. >> > >> > [EMAIL PROTECTED] >> > >> > ?? >> > >> > -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] >> >> >> >>__ >>Do You Yahoo!? >>Tired of spam? Yahoo! Mail has the best spam protection around >>http://mail.yahoo.com > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] See you later, Brian Roberts - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat problems with SSL / PKCS12
On Tue, 21 Sep 2004, Dennis Dai wrote: I was able to export a p12 cert with complete chain half a year ago, but I couldn't reproduce it now. However, I found this: http://sense.bigbrother.net/archives/0275.html thanks for that tip. tried it, correctly i think. no love. first i generate the .p12 from the server cert provided by verisign: openssl pkcs12 -export -inkey server.key -in server.crt -name tomcat \ -out server.p12 then i place server.p12 and intermediateCA.crt onto a windows box, fire up IE. in IE: Internet Options -> Content -> Certificates... under Personal tab, i import the server.p12 file, place no password on it, and "Mark it as exportable". from windows box, i grab another copy of verisign's intermediate cert and save it. under "Intermediate Cert Authorities" tab, i import verisign's intermediate cert. now to export - export the server.p12 from IE: select it, hit export, yes - export private key, check "include all certs in cert path". i move that new .pfx file onto the tomcat server, in a place where server.xml will use it. same error: SEVERE: Error initializing endpoint java.io.IOException: Unable to verify MAC. at com.ibm.crypto.provider.PKCS12KeyStore.engineLoad(Unknown Source) at java.security.KeyStore.load(KeyStore.java:695) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocket Factory.java:278) -- [EMAIL PROTECTED] office: 650.616.6708 Reality is that which, when you stop believing in it, doesn't go away. - Philip K. Dick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Allowing users of web app to upload files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Justin Jaynes wrote: | Well, | | As Yaov said this list was ok for JSP development, | here I go. | | I am having a great time using Tomcat on SuSE 9.1 with | SSL and all is working fine. | | I would like users of my web applications to be able | to upload image files to directories that Tomcat is | serving files out of. This must happen THROUGH the | web application. | | Therefore I have two questions: | | 1. How would I get a file off a remote users hard | drive (which they specify by typing the file name and | location into a text box in a form) to move to my | server and be renamed (using my own file naming | convention)? | | 2. How do you open a Browse File dialog box in a web | browser (I would guess this would be easily done using | Java Script. may not be an appropriate question here, | so only answer if you happen to have the answer on | hand) If possible, pointing me to a location on the | web where this is done and the script is readily | apparent, would be a fine answer. | | what you are asking is not jsp specific. all you need is the html element set within a html form. then you need to process the form accordingly when it is submitted. you might want to check out jakarta commons's FileUpload utilities to help with the processing. Kevin | | | | __ | Do you Yahoo!? | New and Improved Yahoo! Mail - Send 10MB messages! | http://promotions.yahoo.com/new_mail | | - | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBUMvrJ7Xd6MyEGu4RAkH4AKDWmr1ynQ3i0DR+/HiPbT2ifQNwUACfaJKP 9rmInme5NXvJuYolQ4rXIqo= =JY3a -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Digested passwords
On 9/21/2004 5:13 PM, Ben wrote: Is there a way to add salt to the digested password in Tomcat JDBC Realm for authentication? What I did was extend the JDBCRealm and override the authenticate() method (basically just copy over the original one) and change validated to use a java implementation of FreeBSD's md5crypt(). A java implementation of md5crypt() can be found at: http://tools.arlut.utexas.edu/cvsweb/cvsweb.cgi/ganymede/src/md5/MD5Crypt.java?rev=1.12&content-type=text/x-cvsweb-markup -- Dennis Dai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Digested passwords
Hi Is there a way to add salt to the digested password in Tomcat JDBC Realm for authentication? Regards, Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat problems with SSL / PKCS12
Ok here's the deal with openssl. I'm using OpenSSL 0.9.7d and J2SE 1.4.2_05. Assuming: * server.key - your certificate's private key * server.crt - your certificate * inter.crt - the intermediate CA that signed your certificate * root.crt - the root CA that signed the intermediate CA First, concatenate the CA certs, make sure the intermediate CA goes first: $ cat inter.crt root.crt > chain.crt Next, export the pkcs12 file: $ openssl pkcs12 -export -chain -inkey server.key -in server.crt\ -name "server" -CAfile chain.crt -out server.p12 When prompt for export password, enter something and don't leave it empty. Now, use keytool to verify: $ keytool -list -v -storetype pkcs12 -keystore server.p12 Enter the export password for the keystore password. Then you should see a line like this from the output: Certificate chain length: 3 Then you're done! HTH, Dennis On 9/21/2004 4:37 PM, Dennis Dai wrote: Hi Kallen, I was able to export a p12 cert with complete chain half a year ago, but I couldn't reproduce it now. However, I found this: http://sense.bigbrother.net/archives/0275.html Maybe you can try it out while I continue playing with openssl ... Dennis On 9/21/2004 3:29 PM, [EMAIL PROTECTED] wrote: hi. i'm having difficulty getting tomcat to work with SSL. i'm hoping to succeed with this, and not end up using apache+SSL in front of tomcat, tho i can. also, i have done much googling, and have tried many of the suggestions, to no avail. i'll limit my problem description to my attempts with using pkcs12, not JKS. the players: linux, tomcat-5.0.27, IBMJava2-141, cert SSL generated with openssl. i generated the CSR for my site with openssl, and got the server cert from verisign. fwiw, the Issuer line from the cert: Issuer: O=VeriSign Trust Network, OU=VeriSign, Inc., OU=VeriSign Interna tional Server CA - Class 3, OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD .(c)97 VeriSign do i need to include the verisign intermediate cert with this? (http://www.verisign.com/support/install/intermediate.html) i'm not sure, but i'm assuming i do. then i performed the next step "import an existing certificate signed by your own CA into a PKCS12 keystore using OpenSSL": $ openssl pkcs12 -inkey server.key -in server.crt -certfile \ intermediateCA.crt -export -out certs.p12 i do notice tomcat docs say include the "-chain". when i appended "-chain" to the above openssl command, i got the error "Error unable to get local issuer certificate getting chain." so i chose to go without it and try the subsequently generated certs.p12 file. (could lacking "-chain" be my problem?) next i put certs.p12 in tomcat's homedir. here is the relavent server.xml snippet: when i crank up catalina, i get this error: SEVERE: Error initializing endpoint java.io.IOException: Unable to verify MAC. at com.ibm.crypto.provider.PKCS12KeyStore.engineLoad(Unknown Source) at java.security.KeyStore.load(KeyStore.java:695) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:278) any helps out there? fwiw, i've seen tips out there on converting the pkcs12 format into JKS. i'm hoping not to go that route. thanks in advance, kallen -- Dennis Dai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Allowing users of web app to upload files
Justin, Client Side: This will present a broswe button and text box for the user to select the file. Server Side: Look at FileUpload http://jakarta.apache.org/commons/fileupload/. If using Struts (http://struts.apache.org/) then you already have access to FileUpload so look at the JavaDocs for it to find how to use it. Hope this has helped. PJ On Wed, 2004-09-22 at 09:36, Justin Jaynes wrote: > Well, > > As Yaov said this list was ok for JSP development, > here I go. > > I am having a great time using Tomcat on SuSE 9.1 with > SSL and all is working fine. > > I would like users of my web applications to be able > to upload image files to directories that Tomcat is > serving files out of. This must happen THROUGH the > web application. > > Therefore I have two questions: > > 1. How would I get a file off a remote users hard > drive (which they specify by typing the file name and > location into a text box in a form) to move to my > server and be renamed (using my own file naming > convention)? > > 2. How do you open a Browse File dialog box in a web > browser (I would guess this would be easily done using > Java Script. may not be an appropriate question here, > so only answer if you happen to have the answer on > hand) If possible, pointing me to a location on the > web where this is done and the script is readily > apparent, would be a fine answer. > > > > > > __ > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! > http://promotions.yahoo.com/new_mail > > - > 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: Allowing users of web app to upload files
See http://jakarta.apache.org/commons/fileupload/ -Tim Justin Jaynes wrote: Well, As Yaov said this list was ok for JSP development, here I go. I am having a great time using Tomcat on SuSE 9.1 with SSL and all is working fine. I would like users of my web applications to be able to upload image files to directories that Tomcat is serving files out of. This must happen THROUGH the web application. Therefore I have two questions: 1. How would I get a file off a remote users hard drive (which they specify by typing the file name and location into a text box in a form) to move to my server and be renamed (using my own file naming convention)? 2. How do you open a Browse File dialog box in a web browser (I would guess this would be easily done using Java Script. may not be an appropriate question here, so only answer if you happen to have the answer on hand) If possible, pointing me to a location on the web where this is done and the script is readily apparent, would be a fine answer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat problems with SSL / PKCS12
Hi Kallen, I was able to export a p12 cert with complete chain half a year ago, but I couldn't reproduce it now. However, I found this: http://sense.bigbrother.net/archives/0275.html Maybe you can try it out while I continue playing with openssl ... Dennis On 9/21/2004 3:29 PM, [EMAIL PROTECTED] wrote: hi. i'm having difficulty getting tomcat to work with SSL. i'm hoping to succeed with this, and not end up using apache+SSL in front of tomcat, tho i can. also, i have done much googling, and have tried many of the suggestions, to no avail. i'll limit my problem description to my attempts with using pkcs12, not JKS. the players: linux, tomcat-5.0.27, IBMJava2-141, cert SSL generated with openssl. i generated the CSR for my site with openssl, and got the server cert from verisign. fwiw, the Issuer line from the cert: Issuer: O=VeriSign Trust Network, OU=VeriSign, Inc., OU=VeriSign Interna tional Server CA - Class 3, OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD .(c)97 VeriSign do i need to include the verisign intermediate cert with this? (http://www.verisign.com/support/install/intermediate.html) i'm not sure, but i'm assuming i do. then i performed the next step "import an existing certificate signed by your own CA into a PKCS12 keystore using OpenSSL": $ openssl pkcs12 -inkey server.key -in server.crt -certfile \ intermediateCA.crt -export -out certs.p12 i do notice tomcat docs say include the "-chain". when i appended "-chain" to the above openssl command, i got the error "Error unable to get local issuer certificate getting chain." so i chose to go without it and try the subsequently generated certs.p12 file. (could lacking "-chain" be my problem?) next i put certs.p12 in tomcat's homedir. here is the relavent server.xml snippet: when i crank up catalina, i get this error: SEVERE: Error initializing endpoint java.io.IOException: Unable to verify MAC. at com.ibm.crypto.provider.PKCS12KeyStore.engineLoad(Unknown Source) at java.security.KeyStore.load(KeyStore.java:695) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:278) any helps out there? fwiw, i've seen tips out there on converting the pkcs12 format into JKS. i'm hoping not to go that route. thanks in advance, kallen -- Dennis Dai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Allowing users of web app to upload files
Well, As Yaov said this list was ok for JSP development, here I go. I am having a great time using Tomcat on SuSE 9.1 with SSL and all is working fine. I would like users of my web applications to be able to upload image files to directories that Tomcat is serving files out of. This must happen THROUGH the web application. Therefore I have two questions: 1. How would I get a file off a remote users hard drive (which they specify by typing the file name and location into a text box in a form) to move to my server and be renamed (using my own file naming convention)? 2. How do you open a Browse File dialog box in a web browser (I would guess this would be easily done using Java Script. may not be an appropriate question here, so only answer if you happen to have the answer on hand) If possible, pointing me to a location on the web where this is done and the script is readily apparent, would be a fine answer. __ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Connection Pooling problem
I am using these parameters : for Connection pooling... in Tomcat 4.1 maxActive :20 maxIdle :10 mxWait :1 removeAbandoned :true My application makes 5 queries to the database at one time, so it calls datasource.getConnection 5 times and closes connection 5 times.. When i run this application 3 times in a loop, it fails with the exception of org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted, cause: java.util.NoSuchElementException: Timeout waiting for idle object at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPoo l.java:801) I still don't understand, whether connection pool is being used... can someone suggest me what exactly i am missing here... --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to start tomcat server
Sorry Suresh, I forgot to put this in the last reply. Does the user you are trying to start Tomcat have admin privs? You might be trying to access something the account isn't permissioned for. Real basic, no wonder I didn't think of it before. Try doing this as the administrator. If this doesn't resolve your problem, as administrator I suggest the following if after you change your environment variables and it still doesn't work. This may seem redundant but I've gotten downloads messed up before. 1) Remove the current C:\Tomcat directory. 2) Download a Tomcat binary. 3) Reinstall Tomcat. 4) From the add/remove programs remove the j2sdk. 5) Download another j2sdk and install it. 6) Try starting Tomcat. -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 3:16 PM To: Tomcat Users List Subject: Re: Unable to start tomcat server Suresh Akula wrote: > I am trying to run my tomcat server but am not able to do. I am > struggling on this for past 2 days. Earlier you said: > I actually installed tomcat onto folder named > C:\softwares\tomcat\jakarta-tomcat-5.0.27 In this folder i have > all bin, common and other folders. > But while i am setting class path it is taking lot of place so i > moved all the folders from above folder structure and into > C:\Tomcat and i think that should be OK. .."think that should be OK"? I think that's probably the root of your problem. Suggestion: delete all the Tomcat stuff you can find and reinstall from scratch, preferably from a tar file, but at the least install directly into C:\tomcat. Don't move *anything*. *Do* remove all the classpath settings you made. You don't need them if CATALINA_HOME and JAVA_HOME are set correctly. Then try -- again -- running *catalina.bat run* from a cmd window and see what happens. -- 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: Unable to start tomcat server
Hi Suresh, I installed Tomcat in C:\Tomcat My Catalina_home environment variable is: c:\tomcat Java is installed at C:\j2sdk1.4.2_03 My Catalina_home environment variable is: C:\j2sdk1.4.2_03 This more or less corresponds to yours. Let's check a few other environment variables. The 'Path' variable should include C:\j2sdk1.4.2_03\bin My CLASSPATH includes the following: (although I'm not sure if both are required but it won't hurt) c:\j2sdk1.4.2_03; c:\Tomcat\common\lib\servlet-api.jar; c:\Tomcat\common\lib\jsp-api.jar; c:\Tomcat\common\lib\tools.jar; -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 3:16 PM To: Tomcat Users List Subject: Re: Unable to start tomcat server Suresh Akula wrote: > I am trying to run my tomcat server but am not able to do. I am > struggling on this for past 2 days. Earlier you said: > I actually installed tomcat onto folder named > C:\softwares\tomcat\jakarta-tomcat-5.0.27 In this folder i have > all bin, common and other folders. > But while i am setting class path it is taking lot of place so i > moved all the folders from above folder structure and into > C:\Tomcat and i think that should be OK. .."think that should be OK"? I think that's probably the root of your problem. Suggestion: delete all the Tomcat stuff you can find and reinstall from scratch, preferably from a tar file, but at the least install directly into C:\tomcat. Don't move *anything*. *Do* remove all the classpath settings you made. You don't need them if CATALINA_HOME and JAVA_HOME are set correctly. Then try -- again -- running *catalina.bat run* from a cmd window and see what happens. -- 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 problems with SSL / PKCS12
*sigh* - i'm reposting this because i noticed i cut n paste some incorrect commands from my notes on this. here is the corrected version: hi. i'm having difficulty getting tomcat to work with SSL. i'm hoping to succeed with this, and not end up using apache+SSL in front of tomcat, tho i can. also, i have done much googling, and have tried many of the suggestions, to no avail. i'll limit my problem description to my attempts with using pkcs12, not JKS. the players: linux, tomcat-5.0.27, IBMJava2-141, cert CSR generated with openssl, not keytool. i got the server cert from verisign. fwiw, the Issuer line from the cert: Issuer: O=VeriSign Trust Network, OU=VeriSign, Inc., OU=VeriSign Interna tional Server CA - Class 3, OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD .(c)97 VeriSign do i need to include the verisign intermediate cert with this? (http://www.verisign.com/support/install/intermediate.html) i'm not sure, but i'm assuming i do. then i performed the next step "import an existing certificate signed by your own CA into a PKCS12 keystore using OpenSSL": $ openssl pkcs12 -export -in server.crt -inkey server.key -out certs.p12 \ -name tomcat -certfile intermediateCA.crt -caname root [where server.crt is the host cert signed by versign, intermediateCA.crt also from verisign] i do notice tomcat docs say include the "-chain". when i appended "-chain" to the above openssl command, i got the error "Error unable to get local issuer certificate getting chain." so i chose to go without it and try the subsequently generated certs.p12 file. (could lacking "-chain" be my problem?) next i put certs.p12 in tomcat's homedir. here is the relavent server.xml snippet: when i crank up catalina, i get this error: SEVERE: Error initializing endpoint java.io.IOException: Unable to verify MAC. at com.ibm.crypto.provider.PKCS12KeyStore.engineLoad(Unknown Source) at java.security.KeyStore.load(KeyStore.java:695) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:278) any helps out there? fwiw, i've seen tips out there on converting the pkcs12 format into JKS. i'm hoping not to go that route. thanks in advance, kallen -- [EMAIL PROTECTED] office: 650.616.6708 Reality is that which, when you stop believing in it, doesn't go away. - Philip K. Dick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat problems with SSL / PKCS12
hi. i'm having difficulty getting tomcat to work with SSL. i'm hoping to succeed with this, and not end up using apache+SSL in front of tomcat, tho i can. also, i have done much googling, and have tried many of the suggestions, to no avail. i'll limit my problem description to my attempts with using pkcs12, not JKS. the players: linux, tomcat-5.0.27, IBMJava2-141, cert SSL generated with openssl. i generated the CSR for my site with openssl, and got the server cert from verisign. fwiw, the Issuer line from the cert: Issuer: O=VeriSign Trust Network, OU=VeriSign, Inc., OU=VeriSign Interna tional Server CA - Class 3, OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD .(c)97 VeriSign do i need to include the verisign intermediate cert with this? (http://www.verisign.com/support/install/intermediate.html) i'm not sure, but i'm assuming i do. then i performed the next step "import an existing certificate signed by your own CA into a PKCS12 keystore using OpenSSL": $ openssl pkcs12 -inkey server.key -in server.crt -certfile \ intermediateCA.crt -export -out certs.p12 i do notice tomcat docs say include the "-chain". when i appended "-chain" to the above openssl command, i got the error "Error unable to get local issuer certificate getting chain." so i chose to go without it and try the subsequently generated certs.p12 file. (could lacking "-chain" be my problem?) next i put certs.p12 in tomcat's homedir. here is the relavent server.xml snippet: when i crank up catalina, i get this error: SEVERE: Error initializing endpoint java.io.IOException: Unable to verify MAC. at com.ibm.crypto.provider.PKCS12KeyStore.engineLoad(Unknown Source) at java.security.KeyStore.load(KeyStore.java:695) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:278) any helps out there? fwiw, i've seen tips out there on converting the pkcs12 format into JKS. i'm hoping not to go that route. thanks in advance, kallen -- [EMAIL PROTECTED] Reality is that which, when you stop believing in it, doesn't go away. - Philip K. Dick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to start tomcat server
Suresh Akula wrote: I am trying to run my tomcat server but am not able to do. I am struggling on this for past 2 days. Earlier you said: I actually installed tomcat onto folder named C:\softwares\tomcat\jakarta-tomcat-5.0.27 In this folder i have > all bin, common and other folders. But while i am setting class path it is taking lot of place so i > moved all the folders from above folder structure and into > C:\Tomcat and i think that should be OK. .."think that should be OK"? I think that's probably the root of your problem. Suggestion: delete all the Tomcat stuff you can find and reinstall from scratch, preferably from a tar file, but at the least install directly into C:\tomcat. Don't move *anything*. *Do* remove all the classpath settings you made. You don't need them if CATALINA_HOME and JAVA_HOME are set correctly. Then try -- again -- running *catalina.bat run* from a cmd window and see what happens. -- 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]
mod jk2/tomcat communication problem
I'm having some problems with apache and tomcat losing communication. I have mod_jk2 setup using tomcat as an out-of-process server. When apache loses communication with tomcat (even though tomcat is running and can be reached on port 8080 without problem), apache starts spawning processes, each of which slows the machine down and compounds the problem. These error messages show up in the logs when this happens: [Tue Sep 21 13:09:28 2004] [error] ajp13.service() ajpGetReply recoverable error 3 [Tue Sep 21 13:09:28 2004] [error] ajp13.service() Error forwarding ajp13:localhost:8009 1 0 [Tue Sep 21 13:09:28 2004] [error] mod_jk2.handler() Error connecting to tomcat 3, status 200 ... and sometimes I'll get the following, although rarely ... [Tue Sep 21 11:33:54 2004] [error] channelApr.receive(): Bad header [Tue Sep 21 11:33:54 2004] [error] workerEnv.processCallbacks() Error reading reply [Tue Sep 21 11:33:54 2004] [error] ajp13.service() ajpGetReply recoverable error 12 [Tue Sep 21 11:33:54 2004] [error] ajp13.service() ajpGetReply recoverable error 12 [Tue Sep 21 11:33:54 2004] [error] msgAjp.receive(): Bad signature 00 Any ideas what I can do to resolve this problem? Thanks. --Kaleb - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1 Connection Pooling...
Can someone please suggest how to achieve connection Pooling in tomcat 4.1. As per the docs i have 1) configured server.xml to include the resource parameters ( datasource, connection pool size etc) 2) In application code , retrieve connection using datasource 3) Every Method call to database retrieves connection using datasource.getConnection () and closes connection everytime But still the pooling is not achieved, i get ORA-00020 error( maximim proceses exceeded), i increased the size from 30 to 200) even then it is not working. Can someone please help -Original Message- From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] Sent: Monday, September 20, 2004 12:55 PM To: Tomcat Users List Subject: org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted, cause: Hi, I am getting the timeout exception for connection pooling, i am using Tomca 4.1 and datasource to retrieve connections. I am attaching all the soure code and configuration files used in my application, please suggest where iam doing wrong... SEVERE: getConnection()--SQLException org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted, cause: java.util.NoSuchElementException: Timeout waiting for idle object at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPoo l.java:801) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja va:140) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5 18) at com.mypublisher.oemapi.DAO.DBAccess.getConnection(DBAccess.java:47) at com.mypublisher.oemapi.DAO.Persister.(Persister.java:46) at com.mypublisher.oemapi.SubmitOrder.SubmitOrder(SubmitOrder.java:61) 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:324) at org.apache.xmlrpc.Invoker.execute(Invoker.java:168) at org.apache.xmlrpc.XmlRpcWorker.invokeHandler(XmlRpcWorker.java:123) at org.apache.xmlrpc.XmlRpcWorker.execute(XmlRpcWorker.java:185) at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:151) at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:128) at com.mypublisher.oemapi.xmlrpc.XmlRpcServlet.doPost(XmlRpcServlet.java === server.xml - factory org.apache.commons.dbcp.BasicDataSourceFactory maxActive 5 maxIdle 2 maxWait 1 username ioeadmin password ioeadmin driverClassName oracle.jdbc.driver.OracleDriver url jdbc:oracle:thin:@ipaddress:1521:MYDB === DatasourceFactory is a singleton class used to retrieve the datasource from tomcat using JNDi..and connection is obtained from datasource... public static DataSource getInstance() throws SystemException { if (!isDataSrcAvaliable) { if (dataSource == null) { new DataSourceFactory(); doLookUp(); isDataSrcAvaliable = true; } //end if (dataSource == null) }// end if (!isDataSrcAvaliable) return dataSource; } /* end getInstance() */ doLookUp method does this: Context ctx = new InitialContext(); String dataSrc = msgResource.getMessage(OEMAPIConstants.DATA_SOURCE_NAME); Context env = (Context)ctx.lookup("java:comp/env"); dataSource = (DataSource) env.lookup(dataSrc); public static Connection getConnection() throws DAOException { DataSource ds = (DataSource) DataSourceFactory.getInstance(); Connection con = ds.getConnection(); return ds.getConnection(); } and every database lookup class, gets this connection and closes the connection after the query to database... - 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]
mod jk2 - apr, sockets, jkjni, and performance
I've been taking a look at the examples provided in the jk2 documentation: http://jakarta.apache.org/tomcat/connectors-doc/jk2/jk2/configtcex.html I was wondering what the pro's and cons are of the following scenarios: 1) "using normal socket" - I would guess that this would be required tomcat isn't on the same machine as apache? 2) "using AF_UNIX socket" - For the cases where tomcat and apache are on the same machine, this seems like it would be the fastest mechanism? What is the difference between 'apr.NativeSo=.../jkjni.so' and 'apr.jniModeSo=.../mod_jk2.so'? Per the last example, "using jni channel class for communication", apr.jniModeSo=inprocess is the default." IIRC, this means that java/tomcat runs within apache, which should increase performance? Any pros and cons to this vs. an out-of-process server that I should be aware of? Thanks for the help. --Kaleb - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JAAS issue with Tomcat 5
I am trying to set up JAAS with Tomcat 5, using Axis to authenticate. My sample app using Axis works find in the common\lib directory (where all the jars for the JAAS authentication have been placed) but when I try to run it from Tomcat, I get the following error: - Factory org.apache.axis.configuration.EngineConfigurationFactoryServlet Ignored: missing required method: public static EngineConfigurationFactory newFactory(Object). - Factory org.apache.axis.configuration.EngineConfigurationFactoryDefault Ignored: missing required method: public static EngineConfigurationFactory newFactory(Object). - Unable to locate a valid EngineConfigurationFactory When I look into the jars, they have the methods in question. When I googled on this error someone seemed to think it was a classloading issue (although that was not Tomcat). Are there any special restrictions when using JAAS? I'm assuming any classes/jars I have should go into the common/classes and common/lib directory. When tracing the LoginModule, I am getting all the expected values- i.e. everything is fine unti it tries to use Axis. TIA -Clinton
Tomcat 5.0.25 session persistence
Hi all, I have a Tomcat 5.0.25 system running behind apache under linux, which produces the following exception whenever I restart it: java.io.FileNotFoundException: /usr/local/jakarta-tomcat-5.0.25/work/Catalina/www.my-sitename.co.nz/_/SESSIONS.ser (No such file or directory) Does anyone know whether I should create this file, or whether I need to configure something to deal with it? I have done some googling and have not seen much useful info on this topic. -- Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to start tomcat server
I am trying to run my tomcat server but am not able to do. I am struggling on this for past 2 days. I will really appreciate if anyone can help me on this. I am mentioning below the message which i get when i run the startup.bat..I already posted this message but no one replied. Waiting for response. Thanks much in advance... C:\Tomcat\bin>startup.bat Using CATALINA_BASE: C:\Tomcat Using CATALINA_HOME: C:\Tomcat Using CATALINA_TMPDIR: C:\Tomcat\temp Using JAVA_HOME: C:\Java [ERROR] Digester - Begin event threw error r>java.lang.ExceptionInInitializerError: sun.misc.InvalidJarIndexException: Inva lid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$2.run(URLClassLoader.java:349) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findResource(URLClassLoader.java:346) at org.apache.catalina.loader.StandardClassLoader.findResource(StandardC lassLoader.java:527) at org.apache.catalina.loader.StandardClassLoader.getResource(StandardCl assLoader.java:603) at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:895 ) at org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java: 1602) at org.apache.catalina.mbeans.MBeanUtils.(MBeanUtils.java:107) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.( GlobalResourcesLifecycleListener.java:65) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.j ava:253) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigest er.java:65) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour ce) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn own Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen t(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.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.load(Catalina.java:489) at org.apache.catalina.startup.Catalina.load(Catalina.java:528) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:421) java.lang.reflect.InvocationTargetException: java.lang.ExceptionInInitializerErr or: sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$2.run(URLClassLoader.java:349) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findResource(URLClassLoader.java:346) at org.apache.catalina.loader.StandardClassLoader.findResource(StandardC lassLoader.java:527) at org.apache.catalina.loader.StandardClassLoader.getResource(StandardCl assLoader.java:603) at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:895 ) at org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java: 1602) at org.apache.catalina.mbeans.MBeanUtils.(MBeanUtils.java:107) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.( GlobalResourcesLifecycleListener.java:65) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.j ava:253) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigest er.java:65) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour ce) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn own Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen t(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown
Re: seperate development spaces on same server/tomcat
On Tue, Sep 21, 2004 at 02:10:42PM -0400, Shapira, Yoav wrote: > For development, drop Apache httpd, drop the connectors, drop the notion > of CATALINA_BASE. Simply install Tomcat x separate times to x separate > directories, with nothing in common. That's it. or, if your developers can deal with not restarting tomcat all the time (or notifying the others when they do), then you can just install you app to a separate path within a single tomcat instance and save the overhead of extra tomcat instances. If you're using the ant deploy task, it would look something like this: http://${tomcaturl}/manager"; username="${manager_username}" password="${password}" path="/yourapp.${username}" war="yourapp.war"/> You just have to give the developers access to the user that is running tomcat. I have a script that uses sudo to restart it when needed. It works reasonably well. eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.IllegalArgumentException:
I am not able to deploy my application "rpcoemapi" on linux box, tomcat4.1. When i copy rpcoemapi.war on tomcat webapps directory ( /usr/share/tomcat4/webapps/rpcoemapi.war ) and restart the server, the war file is supposed to be exploded, but is not happeneing , insted i found this error... any help will be greatly appreciated java.lang.IllegalArgumentException: Document base /var/lib/tomcat4/webapps/rpcoemapi does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:19 3) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java :3349) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3479) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:754) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363) at org.apache.catalina.core.StandardService.start(StandardService.java:497) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Load Balancing Configuration
Hi, I have an application running on my machine in Tomcat 5 via IIS using the ISAPI adaptor. I also have this application running on a different machine setup through IIS on that machine. I now want to test balancing the application on both machines via one of the IIS servers. I have followed the instructions in the book I got on Apache by wrox, but each time I call into the application the request hangs forever. Forever defined as > 5 minutes. It appears that tomcat is being contacted, the CPU jumps for a sec on the tomcat process, but nothing happens after that. To simplify I am now trying to setup load balancing with just my one instance on my machine figuring that after I get that working it will be easier to translate it to both instances. This is failing, also. I believe I simply have something misconfigured, but my settings match what the book is showing and I have tried several variations. My workers2.properties files are below, both non-balanced (working) and balanced (hanging). The jk2.properties file remains unchanged for each setup. My machine is Win2K Pro, IIS5, Tomcat 5.0.27 running with JDK 1.4.2_01. I am confident that my installation is good with the non-balanced file in place. I have put a fair amount of load through the application using an http testing utility, it served > 140 requests/second on my desktop machine. Any help appreciated. Thanks, Peter Fournier BEGIN Server.xml change (only showing changed Engine section) ... ... END Server.xml change BEGIN WORKING workers2.properties FILE (entire file) [logger] info=Native logger level=ERROR [config:] file=${serverRoot}/conf/workers2.properties debug=1 debugEnv=1 [uriMap:] info=Maps the requests. debug=1 [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=c:/Tomcat5/work/jk2.shm debug=0 [workerEnv:] info=Global server options timing=0 debug=1 [lb:lb] Info=default load balancer debug=1 [channel.socket:localhost:8019] host=pfournier port=8019 [ajp13:pfournier:8019] channel=channel.socket:pfournier:8019 [uri:/admin] info=Tomcat HTML based administration web application. debug=0 [uri:/manager] info=A scriptable management web application for the Tomcat Web Server. debug=0 [uri:/*.jsp] info=JSP Extension mapping. debug=0 [uri:/ZipCode/ZipCodeLookup] info=ZipCodeApplication debug=0 [status:] [uri:/jkstatus/*] group=status END WORKING workers2.properties FILE BEGIN Load Balanced workers2.properties FILE (entire file) [logger] info=Native logger level=ERROR [config:] file=${serverRoot}/conf/workers2.properties debug=1 debugEnv=1 [uriMap:] info=Maps the requests. debug=1 [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=c:/Tomcat5/work/jk2.shm debug=0 [workerEnv:] info=Global server options timing=0 debug=1 [lb:lb] Info=default load balancer debug=1 [lb:PetesLB] worker=ajp13:localhost:8019 timeout=30 attempts=2 recovery=90 stickySession=1 noWorkersMsg=Server busy please try back later. noWorkerCodeMsg=503 [channel.socket:localhost:8019] host=localhost port=8019 tomcatId=pfournierTomcat group=PetesLB lb_factor=1 route=pfournierTomcat [ajp13:localhost:8019] channel=channel.socket:localhost:8019 [uri:/admin] info=Tomcat HTML based administration web application. debug=0 [uri:/manager] info=A scriptable management web application for the Tomcat Web Server. debug=0 [uri:/*.jsp] info=JSP Extension mapping. debug=0 [uri:/ZipCode/ZipCodeLookup] info=ZipCodeApplication debug=0 context=/ZipCode group=PetesLB [status:] [uri:/jkstatus/*] group=status END Load Balanced workers2.properties FILE
RE: Need To Allow Network Access under Tomcat Service
> -Original Message- > From: Curles, Michael L [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 21, 2004 11:57 AM > To: Tomcat Users List > Subject: Need To Allow Network Access under Tomcat Service > > Hi, > > I have the need for servlet access to pull information off a network drive. > The servlet works fine when Tomcat > is started from a "console window" but fails when Tomcat is started as > "service." I would rather run Tomcat as a > "service" if possible. > > I see that by default, all Tomcat "services" are registered to run as the > system user (the LocalSystem account). The LocalSystem account has no > privileges to your network via any Windows-secured mechanism. > > I found some Apache documentation for setting up servlet network services > access that stated the following: > > "You may want to create a separate account for running Apache service(s). > Especially, if you have to access network resources via Apache, this is > strongly recommended. > > 1.Create a normal domain user account, and be sure to memorize its > password. > 2.Grant the newly-created user a privilege of 'Log on as a service' and > 'Act as part of the operating system.' > On Windows NT 4.0 these privileges are granted via User Manager for Domains, > but on Windows 2000 and XP you > probably want to use Group Policy for propagating these settings. > 3.Confirm that the created account is a member of the Users group. > 4.Grant the account read and execute (RX) rights to all document and > script folders > (htdocs and cgi-bin for example). > 5.Grant the account change (RWXD) rights to the Apache logs directory. > 6.Grant the account read and execute (RX) rights to the Apache.exe binary > executable." > > I have tried to duplicate this procedure for Tomcat thinking this will resolve > my network access problem > via a servlet. You will need to set this up for tomcat since your servlet is accessing your network. > I'm using Windows 2000 and XP and are unable to locate the > 'log on as service' and 'act as part of > the operating system' menu references mentioned above... > Change your service to log on as your user and it will grant the correct permissions. If you need to view these permissions, go to Local Security Policy(Admin tools), Local Policy, User Rights Assignments. > I'm using Tomcat 5.0.28 on Windows 2000 and XP at the moment... > > Any ideas on resolving this issue would be appreciated... > > Regards, > Mike > Charlie
Re: tomcat-4.1.27 doesn't start
what values do u set to JAVA_HOME and CATALINA_HOME. did u echoing the values in autoexec.bat. what's the dir structure on ur pc. On Tue, 21 Sep 2004 10:27:26 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi everybody, > I had installed 'jakarta-tomcat-4.1.27-LE-jdk14'server one year ago and I used the > server without having any trouble. For personal reason I have not used the server > for last six months. Now when I try to open the server I am getting the following > message: > "Catalina_Home environmental variable is not defined correctly. This environmental > variable is needed to run this program". In this context I would like to mention > that I have sets JAVA_HOME variable and class path(installed > directory\common\lib\servlet.jar)in autoexec.bat file. My operating system is > windows 98. So far I do not have any clue why it is happening. Is there anybody who > can highlight in this matter. Any suggestion and advice will be highly appreciated. > Thanks in advance > Bis > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- :) Atishay Kumar Btech, SEM VII DA-IICT Gandhinagar - 382009 India ph: +91 9825383948 / * Learn the rules as you would need them to break them properly * / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is it possible to configure the security manager such that my servlet can write into the /logs directory?
Hi -- With tomcat 5.0.16, I could write into that directory (Windows), But with tomcat 5.0.27, I can no longer do so. I've tried all sorts of stuff in catalina.policy, but I still cannot configure it such that I can write my own log file into the logs directory. Thanks Betty
RE: context path for a war file
Hi, Include in your WAR file a META-INF/context.xml file with a Context element like Yoav Shapira Millennium Research Informatics >-Original Message- >From: J S [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 21, 2004 3:39 PM >To: [EMAIL PROTECTED] >Subject: context path for a war file > >Hi tomcat-users, > >I'm trying to upload a war file (called bar.war) through the tomcat >manager. >I want the context path to be /foo/bar. However tomcat initialises it to >/bar. > >How do I get round this? > >Thanks, > >JS. > >_ >Want to block unwanted pop-ups? Download the free MSN Toolbar now! >http://toolbar.msn.co.uk/ > > >- >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]
cud not solve javax.naming.NamingException: Cannot create resource instance
hi, i am trying to do MySql Connection Pooling in Tomcat 4.1.27. I am getting the following error -- javax.naming.NamingException: Cannot create resource instance -- doing some googly revealed that i need some commons-.. jar files to be present in common/lib folder. but i already had them in common/lib folder. the files in lib folder are -- activation.jar commons-dbcp.jar jdbc2_0-stdext.jar naming-common.jar ant.jar commons-logging-api.jar jndi.jar naming-factory.jar classes111.jar commons-pool.jar jta.jar naming-resources.jar classes12.jarjasper-compiler.jar mail.jar servlet.jar commons-collections.jar jasper-runtime.jar mysql-connector-java-3.0.11-stable-bin.jar - my server.xml user root password driverClassName com.mysql.jdbc.Driver url jdbc:mysql://localhost:3306/mysql web.xml http://java.sun.com/dtd/web-app_2_3.dtd";> This is a test folder Welcome to the test folder MySql Datasource for Student Directory jdbc/testDataSource javax.sql.DataSource Container - mysql_connection_test.jsp <%@ page import="java.sql.*" %> <%@ page import="javax.naming.*"%> <%@ page import="javax.sql.*"%> test <% try { Context ctx= new InitialContext(); if(ctx==null) throw new Exception("not able to find intial context"); DataSource ds=(DataSource)ctx.lookup("java:comp/env/jdbc/testDataSource"); if(ds!=null) { Connection conn=ds.getConnection(); Statement stmt=conn.createStatement(); ResultSet rs=stmt.executeQuery("select current_date()"); if(rs==null) out.println("No rowset returned"); else { rs.next(); out.println("Current Date"+rs.getString(1)); } rs.close(); stmt.close(); conn.close(); } } catch(Exception e) { out.println("Error found: "+e); } %> --- please help me in resolving it. thanks -- :) Atishay Kumar Btech, SEM VII DA-IICT Gandhinagar - 382009 India ph: +91 9825383948 / * Learn the rules as you would need them to break them properly * / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
context path for a war file
Hi tomcat-users, I'm trying to upload a war file (called bar.war) through the tomcat manager. I want the context path to be /foo/bar. However tomcat initialises it to /bar. How do I get round this? Thanks, JS. _ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: List subscription problem
Hi, The main reason unsubscribes don't work is that you're not using the correct address. If your mail gateway modifies your address (e.g. from [EMAIL PROTECTED] to [EMAIL PROTECTED]) with or without your knowledge, you need to unsubscribe the right address. Check the headers on messages you receive via the list to see what address they were sent to, and then send an unsub request from that address. It's a lot quicker to do than describe. Of course, if it fails, contact the owner address for the list, and block the from address (e.g. [EMAIL PROTECTED] for this list) to stop receiving mailings. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Shaw, David C [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 21, 2004 2:58 PM >To: Tomcat Users List >Subject: RE: List subscription problem > >I have sent two unsubscribe emails with no effect. >Thanks for any info. >David > >-Original Message- >From: Suzanne [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 21, 2004 2:35 PM >To: Tomcat Users List >Subject: RE: List subscription problem > > >Along those same lines, I DID NOT subscribe to this list! I have sent a >notice to the unsubscribe link more than once and yet I continue to get >dozens of emails from your group. Any insight on how I may have become >connected to this list or how to remove my address from your your email >list > >"Shapira, Yoav" <[EMAIL PROTECTED]> wrote: >Hi, >I replied to your message to tomcat-user-owner right after you sent it. > >There's no additional intermediate step: if you've seen the welcome >message you should be all set. > >Check your spam filters. Try subscribing (temporarily) from another >mail system, like Yahoo or Hotmail, to see if the problem lies with your >current mail provider or server. > >Yoav Shapira >Millennium Research Informatics > > >>-Original Message- >>From: Lee Hoffner [mailto:[EMAIL PROTECTED] >>Sent: Tuesday, September 21, 2004 12:12 PM >>To: [EMAIL PROTECTED] >>Subject: List subscription problem >> >>Sorry to post a list administration problem on the list itself, but >I've >>sent >>to [EMAIL PROTECTED] on 9/17 and heard nothing back. >> >> >>I subscribed to the Tomcat list on 9/16 and I'm not receiving any of >the >>emails from the list. >> >>I received the confirmation message after sending a subscription >request >>and >>replied to it. I then received the WELCOME message. After that, I >posted a >>question to the list. I received one reply, from a person who sent his >>message via Reply-All. No other replies, nor any messages on other >(new) >>topics, have come to me. I've had to go to >>http://www.mail-archive.com/tomcat-user%40jakarta.apache.org to read >and >>participate (very awkward, as I have to copy and paste from my browser >to a >>new email message, which naturally has none of the relevant headers >that >>will >>get the message included in list threads...). >> >>I've sent a message to [EMAIL PROTECTED], but >>have received no reply. >> >>I've also sent to [EMAIL PROTECTED], but received no >FAQ >>in >>reply. >> >>If someone here knows the list owner and can get my problem in front of >>their >>eyes, I would be very grateful. I'd also love to know if there is some >>intermediate step beyond subscribing and replying to the confirmation >>message >>that I need to have done, but may not have. >> >>Thanks! >> >>- >>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] > > > >- >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]
Configuring Tomcat as a service of Apache
Hi users: I´m running Tomcat 5.0.28 and Apache 2.0.51 in w2000 server. Now I'm trying to configure tomcat as a service of Apache. After reading http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html . i found there is a way to auto-configure Apache setting in Tomcat.. The problem is that I don't find in server.xml the directive to autoconfigure Tomcat. Any help? Thanks Luis Zorita - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: List subscription problem
I have sent two unsubscribe emails with no effect. Thanks for any info. David -Original Message- From: Suzanne [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 2:35 PM To: Tomcat Users List Subject: RE: List subscription problem Along those same lines, I DID NOT subscribe to this list! I have sent a notice to the unsubscribe link more than once and yet I continue to get dozens of emails from your group. Any insight on how I may have become connected to this list or how to remove my address from your your email list "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: Hi, I replied to your message to tomcat-user-owner right after you sent it. There's no additional intermediate step: if you've seen the welcome message you should be all set. Check your spam filters. Try subscribing (temporarily) from another mail system, like Yahoo or Hotmail, to see if the problem lies with your current mail provider or server. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Lee Hoffner [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 21, 2004 12:12 PM >To: [EMAIL PROTECTED] >Subject: List subscription problem > >Sorry to post a list administration problem on the list itself, but I've >sent >to [EMAIL PROTECTED] on 9/17 and heard nothing back. > > >I subscribed to the Tomcat list on 9/16 and I'm not receiving any of the >emails from the list. > >I received the confirmation message after sending a subscription request >and >replied to it. I then received the WELCOME message. After that, I posted a >question to the list. I received one reply, from a person who sent his >message via Reply-All. No other replies, nor any messages on other (new) >topics, have come to me. I've had to go to >http://www.mail-archive.com/tomcat-user%40jakarta.apache.org to read and >participate (very awkward, as I have to copy and paste from my browser to a >new email message, which naturally has none of the relevant headers that >will >get the message included in list threads...). > >I've sent a message to [EMAIL PROTECTED], but >have received no reply. > >I've also sent to [EMAIL PROTECTED], but received no FAQ >in >reply. > >If someone here knows the list owner and can get my problem in front of >their >eyes, I would be very grateful. I'd also love to know if there is some >intermediate step beyond subscribing and replying to the confirmation >message >that I need to have done, but may not have. > >Thanks! > >- >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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: can anyone suggest....cannot obtain lock ...
Logger cannot be created! java.io.IOException: Couldn't get lock for OEMAPIXmlRpcLog.log at java.util.logging.FileHandler.openFiles(FileHandler.java:361) at java.util.logging.FileHandler.(FileHandler.java:232) at com.mypublisher.oemapi.OEMAPILogger.(OEMAPILogger.java:34) at com.mypublisher.oemapi.OEMAPILogger.getInstance(OEMAPILogger.java:50) at com.mypublisher.oemapi.SubmitOrder.(SubmitOrder.java:26) at com.mypublisher.oemapi.xmlrpc.XmlRpcServlet.(XmlRpcServlet.java:33) 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) I am using java.util.logging API to do logging in my application. For some reason Tomcat is not able to get the log. Can anyone help mw with this..is it a permission thing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: List subscription problem
Along those same lines, I DID NOT subscribe to this list! I have sent a notice to the unsubscribe link more than once and yet I continue to get dozens of emails from your group. Any insight on how I may have become connected to this list or how to remove my address from your your email list "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: Hi, I replied to your message to tomcat-user-owner right after you sent it. There's no additional intermediate step: if you've seen the welcome message you should be all set. Check your spam filters. Try subscribing (temporarily) from another mail system, like Yahoo or Hotmail, to see if the problem lies with your current mail provider or server. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Lee Hoffner [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 21, 2004 12:12 PM >To: [EMAIL PROTECTED] >Subject: List subscription problem > >Sorry to post a list administration problem on the list itself, but I've >sent >to [EMAIL PROTECTED] on 9/17 and heard nothing back. > > >I subscribed to the Tomcat list on 9/16 and I'm not receiving any of the >emails from the list. > >I received the confirmation message after sending a subscription request >and >replied to it. I then received the WELCOME message. After that, I posted a >question to the list. I received one reply, from a person who sent his >message via Reply-All. No other replies, nor any messages on other (new) >topics, have come to me. I've had to go to >http://www.mail-archive.com/tomcat-user%40jakarta.apache.org to read and >participate (very awkward, as I have to copy and paste from my browser to a >new email message, which naturally has none of the relevant headers that >will >get the message included in list threads...). > >I've sent a message to [EMAIL PROTECTED], but >have received no reply. > >I've also sent to [EMAIL PROTECTED], but received no FAQ >in >reply. > >If someone here knows the list owner and can get my problem in front of >their >eyes, I would be very grateful. I'd also love to know if there is some >intermediate step beyond subscribing and replying to the confirmation >message >that I need to have done, but may not have. > >Thanks! > >- >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]
cannot obtain lock ...
Logger cannot be created! java.io.IOException: Couldn't get lock for OEMAPIXmlRpcLog.log at java.util.logging.FileHandler.openFiles(FileHandler.java:361) at java.util.logging.FileHandler.(FileHandler.java:232) at com.mypublisher.oemapi.OEMAPILogger.(OEMAPILogger.java:34) at com.mypublisher.oemapi.OEMAPILogger.getInstance(OEMAPILogger.java:50) at com.mypublisher.oemapi.SubmitOrder.(SubmitOrder.java:26) at com.mypublisher.oemapi.xmlrpc.XmlRpcServlet.(XmlRpcServlet.java:33) 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) I am using java.util.logging API to do logging in my application. For some reason Tomcat is not able to get the log. Can anyone help mw with this..is it a permission thing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: seperate development spaces on same server/tomcat
Hi, For development, drop Apache httpd, drop the connectors, drop the notion of CATALINA_BASE. Simply install Tomcat x separate times to x separate directories, with nothing in common. That's it. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Didier McGillis [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 21, 2004 1:57 PM >To: [EMAIL PROTECTED] >Subject: Re: seperate development spaces on same server/tomcat > >Thanks. > >I'm still a little fuzzy on the Apache part. Do I point Apache to the the >context, or do I point it to a folder. I would rather keep HTML/images out >of the java/jsp space, however this is a pre existing site with alot of >static HTML pages with preexisting links to the jsp pages. > > > > >>From: QM <[EMAIL PROTECTED]> >>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> >>To: Tomcat Users List <[EMAIL PROTECTED]> >>Subject: Re: seperate development spaces on same server/tomcat >>Date: Tue, 21 Sep 2004 12:08:12 -0500 >> >>On Tue, Sep 21, 2004 at 04:59:42PM +, Didier McGillis wrote: >>: to setup up three instances of the same site. Here is the reason. I >>have >>: three developers who are coming in. I have one set of code, rather then >>: they share it, and play that way I would rather them have their own >spots >>: to play. >>: [snip] >>: so HTML/images is in /usrl/local/apache2/guy1, guy2, guy3 >>: jsp/java/servlets is in /usr/local/tomcat/webapps/guy1, guy2, guy3 >>: >>: http://server/guy1 >>: http://server/guy1 >>: http://server/guy3 >> >>Check out the Tomcat docs on CATALINA_BASE vs CATALINA_HOME, which lets >>you provide each developer with their own Tomcat instance (separate >>JVMs). Find/create custom scripts for each developer to start/stop >>their own instance. >> >>The rest is, well, up to the developers. They should be able to check >>out the entire site from source code control (or however it's stored). >>They would work on just their piece, and only check-in code related to >>their piece; but to be effective, they should be able to run/see the >>full site within their instance. >> >>Taking this a step farther, you could create another instance for QA, >>one for load-tests, etc. >> >>-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] >> > >_ >Take charge with a pop-up guard built on patented Microsoft(r) SmartScreen >Technology. >http://join.msn.com/?pgmarket=en- >ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Mark et_M >SNIS_Taglines > Start enjoying all the benefits of MSN(r) Premium right now and get the >first two months FREE*. > > >- >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: seperate development spaces on same server/tomcat
Thanks. I'm still a little fuzzy on the Apache part. Do I point Apache to the the context, or do I point it to a folder. I would rather keep HTML/images out of the java/jsp space, however this is a pre existing site with alot of static HTML pages with preexisting links to the jsp pages. From: QM <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: Tomcat Users List <[EMAIL PROTECTED]> Subject: Re: seperate development spaces on same server/tomcat Date: Tue, 21 Sep 2004 12:08:12 -0500 On Tue, Sep 21, 2004 at 04:59:42PM +, Didier McGillis wrote: : to setup up three instances of the same site. Here is the reason. I have : three developers who are coming in. I have one set of code, rather then : they share it, and play that way I would rather them have their own spots : to play. : [snip] : so HTML/images is in /usrl/local/apache2/guy1, guy2, guy3 : jsp/java/servlets is in /usr/local/tomcat/webapps/guy1, guy2, guy3 : : http://server/guy1 : http://server/guy1 : http://server/guy3 Check out the Tomcat docs on CATALINA_BASE vs CATALINA_HOME, which lets you provide each developer with their own Tomcat instance (separate JVMs). Find/create custom scripts for each developer to start/stop their own instance. The rest is, well, up to the developers. They should be able to check out the entire site from source code control (or however it's stored). They would work on just their piece, and only check-in code related to their piece; but to be effective, they should be able to run/see the full site within their instance. Taking this a step farther, you could create another instance for QA, one for load-tests, etc. -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] _ Take charge with a pop-up guard built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unexpected error starting Tomcat
I have been working with Tomcat 4.1.30 for several weeks now. Everything so far has been according to the documentation, butover the last couple of weeks some problems have developed: the server stops working and it is difficult to restart. The first timeI reinstalled the Java SDK. On a later occassion I reinstalled Tomcat as well. I packed and unpacked all the applications as they were exactly and it worked again. Now none of these remedies sems to work. I would have said that Tomcat doesn't work if it hadn't been for the fact that I have already *seen it* at work. Any suggestions will be greatly appreciated. This is my setup: fedora core 2 tomcat 4.1.30 j2sdk1.4.2_04 cpu: intel 2.8GHz, 760Mb RAM, I am including a portioin of the log with the errors. Thanks, Gerardo Juarez -- Log --- SEVERE: Begin event threw error java.lang.ExceptionInInitializerError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at org.apache.catalina.startup.LifecycleListenerRule.begin(LifecycleListenerRule.java:139) 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 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:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Caused by: java.lang.NullPointerException at org.apache.catalina.startup.ContextConfig.createTldDigester(ContextConfig.java:481) at org.apache.catalina.startup.ContextConfig.(ContextConfig.java:183) ... 22 more Exception during startup processing 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:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Caused by: java.lang.ExceptionInInitializerError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at org.apache.catalina.startup.LifecycleListenerRule.begin(LifecycleListenerRule.java:139) 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) ... 5 more Caused by: java.lang.NullPointerException at org.apache.catalina.startup.ContextConfig.createTldDigester(ContextConfig.java:481) at org.apache.catalina.startup.ContextConfig.(ContextConfig.java:183) ... 22 more
Re: Unable to start tomcat server
I get the following error message when i try to run startup.bat..any thoughts... C:\Tomcat\bin>startup.bat Using CATALINA_BASE: C:\Tomcat Using CATALINA_HOME: C:\Tomcat Using CATALINA_TMPDIR: C:\Tomcat\temp Using JAVA_HOME: C:\Java [ERROR] Digester - Begin event threw error r>java.lang.ExceptionInInitializerError: sun.misc.InvalidJarIndexException: Inva lid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$2.run(URLClassLoader.java:349) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findResource(URLClassLoader.java:346) at org.apache.catalina.loader.StandardClassLoader.findResource(StandardC lassLoader.java:527) at org.apache.catalina.loader.StandardClassLoader.getResource(StandardCl assLoader.java:603) at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:895 ) at org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java: 1602) at org.apache.catalina.mbeans.MBeanUtils.(MBeanUtils.java:107) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.( GlobalResourcesLifecycleListener.java:65) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.j ava:253) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigest er.java:65) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour ce) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn own Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen t(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.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.load(Catalina.java:489) at org.apache.catalina.startup.Catalina.load(Catalina.java:528) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:421) java.lang.reflect.InvocationTargetException: java.lang.ExceptionInInitializerErr or: sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$2.run(URLClassLoader.java:349) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findResource(URLClassLoader.java:346) at org.apache.catalina.loader.StandardClassLoader.findResource(StandardC lassLoader.java:527) at org.apache.catalina.loader.StandardClassLoader.getResource(StandardCl assLoader.java:603) at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:895 ) at org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java: 1602) at org.apache.catalina.mbeans.MBeanUtils.(MBeanUtils.java:107) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.( GlobalResourcesLifecycleListener.java:65) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.j ava:253) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigest er.java:65) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour ce) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn own Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen t(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at or
Re: seperate development spaces on same server/tomcat
On Tue, Sep 21, 2004 at 04:59:42PM +, Didier McGillis wrote: : to setup up three instances of the same site. Here is the reason. I have : three developers who are coming in. I have one set of code, rather then : they share it, and play that way I would rather them have their own spots : to play. : [snip] : so HTML/images is in /usrl/local/apache2/guy1, guy2, guy3 : jsp/java/servlets is in /usr/local/tomcat/webapps/guy1, guy2, guy3 : : http://server/guy1 : http://server/guy1 : http://server/guy3 Check out the Tomcat docs on CATALINA_BASE vs CATALINA_HOME, which lets you provide each developer with their own Tomcat instance (separate JVMs). Find/create custom scripts for each developer to start/stop their own instance. The rest is, well, up to the developers. They should be able to check out the entire site from source code control (or however it's stored). They would work on just their piece, and only check-in code related to their piece; but to be effective, they should be able to run/see the full site within their instance. Taking this a step farther, you could create another instance for QA, one for load-tests, etc. -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]
seperate development spaces on same server/tomcat
Okay here is a better question then the dumb one I asked yesterday. I need to setup up three instances of the same site. Here is the reason. I have three developers who are coming in. I have one set of code, rather then they share it, and play that way I would rather them have their own spots to play. So are their tutorials or some example of what to look at to see how to do this. example is: HTML code is seperate. so HTML/images is in /usrl/local/apache2/guy1, guy2, guy3 jsp/java/servlets is in /usr/local/tomcat/webapps/guy1, guy2, guy3 http://server/guy1 http://server/guy1 http://server/guy3 any help would be appreciated. _ Take advantage of powerful junk e-mail filters built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: once again: can't send request over my network ip
Steffen Heil wrote: Hi I'm using Tomcat 5.0.27. I can access it from my computer via 127.0.0.1:8080, but not via 192.168.1.172:8080. But I can reach Tomcat from another computer in the network via 192.168.1.172:8080. I didn't change any Tomcat settings. I'm using WinXP Professional and no firewall is running. Maybe it is simply a proxy setting? Are you sure there is no proxy set in your browser? Regards, Steffen No, no proxy. Very strange problem ;). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: once again: can't send request over my network ip
Hi > I'm using Tomcat 5.0.27. I can access it from my computer via 127.0.0.1:8080, but not via 192.168.1.172:8080. But I can reach Tomcat from another computer in the network via 192.168.1.172:8080. I didn't change any Tomcat settings. I'm using WinXP Professional and no firewall is running. Maybe it is simply a proxy setting? Are you sure there is no proxy set in your browser? Regards, Steffen smime.p7s Description: S/MIME cryptographic signature
Re: once again: can't send request over my network ip
Caldarale, Charles R wrote: From: Sebastian Kerekes [mailto:[EMAIL PROTECTED] Subject: Re: once again: can't send request over my network ip Thx. But there doesn't seem to be an error in the routing table. Those are the entries from the routing table. 0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.172 20 192.168.1.0 255.255.255.0 192.168.1.172 192.168.1.172 20 192.168.1.172 255.255.255.255 127.0.0.1 127.0.0.1 20 192.168.1.255 255.255.255.255 192.168.1.172 192.168.1.172 20 224.0.0.0 240.0.0.0 192.168.1.172 192.168.1.172 20 255.255.255.255 255.255.255.255 192.168.1.172 192.168.1.172 1 What's missing is the following: 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 which normally appears immediately after the entry for 0.0.0.0. Can you ping yourself at 192.168.1.172? - Chuck Oh, it's in the table but I deleted it, because there's no 192.168.1.172 in it. Sorry for the confusion. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: once again: can't send request over my network ip
> From: Sebastian Kerekes [mailto:[EMAIL PROTECTED] > Subject: Re: once again: can't send request over my network ip > > Thx. But there doesn't seem to be an error in the routing > table. Those are the entries from the routing table. > > 0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.172 20 > 192.168.1.0 255.255.255.0 192.168.1.172 192.168.1.172 20 > 192.168.1.172 255.255.255.255 127.0.0.1 127.0.0.1 20 > 192.168.1.255 255.255.255.255 192.168.1.172 192.168.1.172 20 > 224.0.0.0 240.0.0.0 192.168.1.172 192.168.1.172 20 > 255.255.255.255 255.255.255.255 192.168.1.172 192.168.1.172 1 What's missing is the following: 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 which normally appears immediately after the entry for 0.0.0.0. Can you ping yourself at 192.168.1.172? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Simple server.xml config question... AJP13 Connector vs. CoyoteConnector
Hi, >Can the CoyoteConnector handle regular HTTP and AJP13 requests? Yeah, but only one at a time. So if you want both, you need two instances of the connector, like you had in your original post. 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: once again: can't send request over my network ip
Caldarale, Charles R wrote: From: Sebastian Kerekes [mailto:[EMAIL PROTECTED] Subject: once again: can't send request over my network ip I'm using Tomcat 5.0.27. I can access it from my computer via 127.0.0.1:8080, but not via 192.168.1.172:8080. But I can reach Tomcat from another computer in the network via 192.168.1.172:8080. Perhaps your routing table is messed up. Open up a command prompt and enter "route print". There should be an entry for each of your specific IP addresses (in addition to several other ones) that has gateway and interface values of 127.0.0.1. If the entry for 192.168.1.172 is missing or has some other values, you can manually correct it (although it would be good to know how the routing table became the way it is). - Chuck Thx. But there doesn't seem to be an error in the routing table. Those are the entries from the routing table. 0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.172 20 192.168.1.0 255.255.255.0 192.168.1.172 192.168.1.172 20 192.168.1.172 255.255.255.255 127.0.0.1 127.0.0.1 20 192.168.1.255 255.255.255.255 192.168.1.172 192.168.1.172 20 224.0.0.0 240.0.0.0 192.168.1.172 192.168.1.172 20 255.255.255.255 255.255.255.255 192.168.1.172 192.168.1.172 1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: List subscription problem
Hi, I replied to your message to tomcat-user-owner right after you sent it. There's no additional intermediate step: if you've seen the welcome message you should be all set. Check your spam filters. Try subscribing (temporarily) from another mail system, like Yahoo or Hotmail, to see if the problem lies with your current mail provider or server. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Lee Hoffner [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 21, 2004 12:12 PM >To: [EMAIL PROTECTED] >Subject: List subscription problem > >Sorry to post a list administration problem on the list itself, but I've >sent >to [EMAIL PROTECTED] on 9/17 and heard nothing back. > > >I subscribed to the Tomcat list on 9/16 and I'm not receiving any of the >emails from the list. > >I received the confirmation message after sending a subscription request >and >replied to it. I then received the WELCOME message. After that, I posted a >question to the list. I received one reply, from a person who sent his >message via Reply-All. No other replies, nor any messages on other (new) >topics, have come to me. I've had to go to >http://www.mail-archive.com/tomcat-user%40jakarta.apache.org to read and >participate (very awkward, as I have to copy and paste from my browser to a >new email message, which naturally has none of the relevant headers that >will >get the message included in list threads...). > >I've sent a message to [EMAIL PROTECTED], but >have received no reply. > >I've also sent to [EMAIL PROTECTED], but received no FAQ >in >reply. > >If someone here knows the list owner and can get my problem in front of >their >eyes, I would be very grateful. I'd also love to know if there is some >intermediate step beyond subscribing and replying to the confirmation >message >that I need to have done, but may not have. > >Thanks! > >- >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: Simple server.xml config question... AJP13 Connector vs. CoyoteConnector
Can the CoyoteConnector handle regular HTTP and AJP13 requests? Our current deployment uses stand alone Tomcat HTTP Server to serve servlets. We are migrating towards using mod_jk2 with apache front end. Unfortunately, I need to offer both the mod_jk2 connect, and the stand alone HTTP server (for backwards compatibility and ease of troubleshooting). -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 8:14 AM To: Tomcat Users List Subject: RE: Simple server.xml config question... AJP13 Connector vs. CoyoteConnector Hi, No, these two connectors are not mutually exclusive. Whether they're redundant depends on your requirements. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] >Sent: Monday, September 20, 2004 6:43 PM >To: [EMAIL PROTECTED] >Subject: Simple server.xml config question... AJP13 Connector vs. >CoyoteConnector > >Are these 2 Connector's mutually exclusive and/or redundant in the same >server.xml? >... > port="8101" minProcessors="5" maxProcessors="75" >enableLookups="true" acceptCount="100" > debug="0" connectionTimeout="2" >useURIValidationHack="false" disableUploadTimeout="true" /> > > port="8201" minProcessors="5" maxProcessors="256" >enableLookups="true" connectionTimeout="2" > acceptCount="10" debug="0"/> >... > > > > >I have also seen variations of these documented in books & online; > > port="8201" address="127.0.0.1" > minProcessors="5" maxProcessors="75" > enableLookups="true" redirectPort="8443" > acceptCount="10" debug="0" connectionTimeout="0" > useURIValidationHack="false" > >protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/> > >And > > port="8201" address="127.0.0.1" > minProcessors="5" maxProcessors="75" > enableLookups="true" redirectPort="8443" > acceptCount="10" debug="0" connectionTimeout="0" > useURIValidationHack="false" > >protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/> > > >What should the proper configuration of connector's be for Apache 2.0 >Front Ending Tomcat 4.1 using mod_jk2? >Could someone explain what the differences between the different classes >are (org.apache.coyote.tomcat4.CoyoteConnector, >org.apache.ajp.tomcat4.Ajp13Connector)? > >My original understanding was that Coyote is basically a stand alone >HTTP Server for Tomcat, and Ajp13Connector handled the inter process >communication for Apache to Tomcat. > > >Thanks, > >James > > >- >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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
List subscription problem
Sorry to post a list administration problem on the list itself, but I've sent to [EMAIL PROTECTED] on 9/17 and heard nothing back. I subscribed to the Tomcat list on 9/16 and I'm not receiving any of the emails from the list. I received the confirmation message after sending a subscription request and replied to it. I then received the WELCOME message. After that, I posted a question to the list. I received one reply, from a person who sent his message via Reply-All. No other replies, nor any messages on other (new) topics, have come to me. I've had to go to http://www.mail-archive.com/tomcat-user%40jakarta.apache.org to read and participate (very awkward, as I have to copy and paste from my browser to a new email message, which naturally has none of the relevant headers that will get the message included in list threads...). I've sent a message to [EMAIL PROTECTED], but have received no reply. I've also sent to [EMAIL PROTECTED], but received no FAQ in reply. If someone here knows the list owner and can get my problem in front of their eyes, I would be very grateful. I'd also love to know if there is some intermediate step beyond subscribing and replying to the confirmation message that I need to have done, but may not have. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: once again: can't send request over my network ip
> From: Sebastian Kerekes [mailto:[EMAIL PROTECTED] > Subject: once again: can't send request over my network ip > > I'm using Tomcat 5.0.27. I can access it from my computer > via 127.0.0.1:8080, but not via 192.168.1.172:8080. But I > can reach Tomcat from another computer in the network via > 192.168.1.172:8080. Perhaps your routing table is messed up. Open up a command prompt and enter "route print". There should be an entry for each of your specific IP addresses (in addition to several other ones) that has gateway and interface values of 127.0.0.1. If the entry for 192.168.1.172 is missing or has some other values, you can manually correct it (although it would be good to know how the routing table became the way it is). - 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]
Need To Allow Network Access under Tomcat Service
Hi, I have the need for servlet access to pull information off a network drive. The servlet works fine when Tomcat is started from a "console window" but fails when Tomcat is started as "service." I would rather run Tomcat as a "service" if possible. I see that by default, all Tomcat "services" are registered to run as the system user (the LocalSystem account). The LocalSystem account has no privileges to your network via any Windows-secured mechanism. I found some Apache documentation for setting up servlet network services access that stated the following: "You may want to create a separate account for running Apache service(s). Especially, if you have to access network resources via Apache, this is strongly recommended. 1. Create a normal domain user account, and be sure to memorize its password. 2. Grant the newly-created user a privilege of 'Log on as a service' and 'Act as part of the operating system.' On Windows NT 4.0 these privileges are granted via User Manager for Domains, but on Windows 2000 and XP you probably want to use Group Policy for propagating these settings. 3. Confirm that the created account is a member of the Users group. 4. Grant the account read and execute (RX) rights to all document and script folders (htdocs and cgi-bin for example). 5. Grant the account change (RWXD) rights to the Apache logs directory. 6. Grant the account read and execute (RX) rights to the Apache.exe binary executable." I have tried to duplicate this procedure for Tomcat thinking this will resolve my network access problem via a servlet. I'm using Windows 2000 and XP and are unable to locate the 'log on as service' and 'act as part of the operating system' menu references mentioned above... I'm using Tomcat 5.0.28 on Windows 2000 and XP at the moment... Any ideas on resolving this issue would be appreciated... Regards, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
once again: can't send request over my network ip
Once again, to avoid confusion. I'm using Tomcat 5.0.27. I can access it from my computer via 127.0.0.1:8080, but not via 192.168.1.172:8080. But I can reach Tomcat from another computer in the network via 192.168.1.172:8080. I didn't change any Tomcat settings. I'm using WinXP Professional and no firewall is running. Any idea what the problem could be? Thanks for your help, Sebastian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat connection closes after 100 responses
Hi, I'm afraid I'm quite sure that that doesn't work, since I restarted the server to implement the new server.xml settings during the previous server.xml modifications. &basa; -Original Message- From: Shanti Priya [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 5:35 PM To: Tomcat Users List Subject: RE: Tomcat connection closes after 100 responses Restart the server.I mean shutdown and restart the tomcat server.It should work -Original Message- From: Bas Alberts [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 8:54 PM To: 'Tomcat Users List' Subject: RE: Tomcat connection closes after 100 responses Hi! Just tried that one (maxKeepAliveRequests); didn't work either. My tomcat version is 3.3.2 by the way. Anyone? &basa; -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 4:57 PM To: Tomcat Users List Subject: Re: Tomcat connection closes after 100 responses http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html Attribute maxKeepAliveRequests -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat connection closes after 100 responses
Restart the server.I mean shutdown and restart the tomcat server.It should work -Original Message- From: Bas Alberts [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 8:54 PM To: 'Tomcat Users List' Subject: RE: Tomcat connection closes after 100 responses Hi! Just tried that one (maxKeepAliveRequests); didn't work either. My tomcat version is 3.3.2 by the way. Anyone? &basa; -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 4:57 PM To: Tomcat Users List Subject: Re: Tomcat connection closes after 100 responses http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html Attribute maxKeepAliveRequests -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat connection closes after 100 responses
Hi! Just tried that one (maxKeepAliveRequests); didn't work either. My tomcat version is 3.3.2 by the way. Anyone? &basa; -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 4:57 PM To: Tomcat Users List Subject: Re: Tomcat connection closes after 100 responses http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html Attribute maxKeepAliveRequests --
RE: tomcat silent installation
Hi again and thanks for replying. Yes, i do refer to the windows installer, and the reason for me ot want the silent install of the windows installer is that i want to have the tomcat service installed, which the windows installer does and unzipping don't .. "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: Hi, Do you mean only for the Windows installer? Because it's trivial to silently install the .zip distributions: just unzip them ;) Yoav Shapira Millennium Research Informatics >-Original Message- >From: Sun House [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 21, 2004 8:42 AM >To: [EMAIL PROTECTED] >Subject: tomcat silent installation > > >Hi All. > > > >This issue was raised before but no official answer has been given. > >1. Does Tomcat 5 has an official silent installation? > >2. I use the /S /D option. is this ok or a hack? > >3. Are there any other options? > >4. Please reply, this is an urgent and very important issue to me and >others > > > >BTW > >I saw in TC 5 changlog of version 19: > >"Add support for silent installations in the NSIS script (remm)" > >I did not see any other official reference to that issue. Not in release >notes or else where > > > >Thanks in advance > >Sun House > > > > > > >- >Do you Yahoo!? >New and Improved Yahoo! Mail - 100MB free storage! 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!? vote.yahoo.com - Register online to vote today!
RE: Suggestion: A dedicated TOMCAT forum!
Hi Suresh, The other person who responded to this thread had pointed out your environment variables may not be set properly. Have you tried looking into this? Also, if there is no 'logs' directory under the main installation directory for Tomcat I'd suggest reinstalling Tomcat. I run Tomcat 5.0.27 on Windows XP like you and there is definitely this logs forlder and files in it. It was also like this in version 5.0.19. Perhaps you've had a bad installation. It isn't hard or time consuming so I'd try to reinstall. -Original Message- From: Suresh Akula [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 6:08 AM To: [EMAIL PROTECTED] Subject: RE: Suggestion: A dedicated TOMCAT forum! I am using Windows XP professional OS but there is no folder like logs in entire Tomcat folder structure. Please help in resolving the issue. Is there something wrong class while setting classpatch. In my classpath i inculded all the jars which are under C:\Tomcat\common\lib folder. Thanks a lot >From: "John Najarian" <[EMAIL PROTECTED]> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> >To: "'Tomcat Users List'" <[EMAIL PROTECTED]> >Subject: RE: Suggestion: A dedicated TOMCAT forum! >Date: Mon, 20 Sep 2004 20:52:13 -0700 > >What OS are you running? Windows? > >Have you checked the logs? They're under: >C:\{tomcat installation}\logs > >-Original Message- >From: Suresh Akula [mailto:[EMAIL PROTECTED] >Sent: Monday, September 20, 2004 8:30 PM >To: [EMAIL PROTECTED]; [EMAIL PROTECTED] >Subject: Re: Suggestion: A dedicated TOMCAT forum! > >Hi >I have downloaded and installed Tomcat 5.0.27 version onto C:\Tomcat and >set > >the ENV variable >CATALINA_HOME and JAVA_HOME and also included all the jars available in >C:\Tomcat\Common\lib folder in the classpath. But when i go to command >prompt C:\Tomcat\bin and execute startup.bat a black window comes up and >disappears but my server never starts.On the command window where i >executed > >startup there appears 4 lines as follows >Using CATALINA_BASE: C:\Tomca >Using CATALINA_HOME: C:\Tomca >Using CATALINA_TMPDIR: C:\Tomca >Using JAVA_HOME: C:\Java >but am not able to start the server >Can anyone please help me on this. > > >Thanks >Suresh Akula > > >From: nyhgan <[EMAIL PROTECTED]> > >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> > >To: Tomcat Users List <[EMAIL PROTECTED]>, Peng Tuck Kwok > ><[EMAIL PROTECTED]> > >Subject: Re: Suggestion: A dedicated TOMCAT forum! > >Date: Mon, 20 Sep 2004 20:10:56 -0700 (PDT) > > > >Hi, > > > >I didn't know that there is already a TOMCAT forum. It is sad to see >that > >the activity is so low there. Maybe that is because no one knows about >its > >existence. I hope the tomcat team can publish the forum url in the >release > >note and also on the tomcat website. > > > >thanks! > > > >nyhgan > > > > > > > > > >Peng Tuck Kwok <[EMAIL PROTECTED]> wrote: > >You mean like the one here : http://nagoya.apache.org/jive/index.jsp ? > >Activity seems low if you ask me. Don't know what the plans are for the > >forum. > > > > > >On Mon, 20 Sep 2004 16:14:23 -0500, QM wrote: > > > On Mon, Sep 20, 2004 at 02:00:37PM -0700, nyhgan wrote: > > > : I believe that having an open discussion forum is the first step > >toward such a goal as it will attract a vast number of new users to the > >tomcat world. > > > > > > [EMAIL PROTECTED] > > > > > > ?? > > > > > > -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] > > > > > > > >__ > >Do You Yahoo!? > >Tired of spam? Yahoo! Mail has the best spam protection around > >http://mail.yahoo.com > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > - 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]
{Virus?} Message could not be delivered
Atención: Este mensaje contenía uno o más anexos que han sido eliminados Atención: (instruction.zip). Atención: Por favor, lea el(los) anexo(s) "TinoRED-Advertencia-de-Virus.txt" para más información. F`Þ þÓY»yÌ£dBbÆb;^X&×lcNð{¯à*dÖM#ÞÍäw¼¶æºâ<¸jlÏZ÷W,oä«^Xñ âiüq8èH' E8Kµ¼UBRàVx®O wÜÉßùdù:(éuè,NÊ`*È ÀgBþ®ïuØÌ6±(ªËÊ §§0Yõ_Â|hyWÅÆ`_ûæ#-Ü÷t¥.΢ß~?"oÐÁÅÍ,4[Õ§ÙGí¨.KLÊsÇç%ÈQÖRnÁÜù)¶«h#ɵK½ðM(~çs¤ s À¶E¨â iÍñKÌ,ÈÀ1ROh0ù¢(ø'¿VucÐÈ uñwáp®Då\Ìø*UK¦¥6EgØæ §5ÛZ6ôSaÏ;áÒ¤ÐÈV:IÛ¡ |T§ÒEV {rÓòèÝ·)|±oøB©ÖÇ0©YVG¯>Òþ¬)üh-ûÏù`ÓùZ>øÈÉXý,²ÎØ1e%¼÷øwc ÊeP3;nõÝÂúüíTPÔ(i&MÚÒ>äǽ·÷^ýÊ,¦d`uØay»µV«)©dSD¢¬¸§ ð8zs¬Q}ºÝK:2PJ gÞ°0J´Ï×yÞ$µ::©ò:ú![¶#f#%Ûs#â|0ËLϪ·§«*âði÷këæVRùìBÞi¯:¯ å&Jùi"!ìåägq\wö¨¯5ÔH ªjã÷£î`%A;czÚ¹sØe³ZöTA%oEFmÊ-oZ9 û¯\ ³Ã»o$,rýª0h&õóRB«ìÃ`4ÛN"TTò¹¯i}c¦#-äIË`w3ÙWFäÊqÀ?´Ê)ÃuÜE|ñè¸ÖÙXg£Ûã#ÈÂ{ÐÑg[J%#kº®ßïö¿Ûðѱ¡;h©HR]Wóxö,©ðßØ\ëÍýiº°Ë¿ðâéOæóÌ|d¶{»$øoC_¯v8v¶xÍ&ú4 µ[öÝËwxªYi¹| ÄKígÂBèz ÝHcúç#C³â9ÒÚ)¤öXà?« µææ&ñ¤d4{HÄ$'/,£º Î4ÝÐ9Ö6IªÝ 9çå:G³Ç Ö/Ä]±~ð§KÒ!²Õ÷ì¥étgö̸ÕéQõãJA*RõUBXuäês°¼¶ßQÒb# ãò«¡Ý²,±(À2¿÷ëÀ÷í\çñU» ÖÇòDþ[Y3lí¿å8{©*íYz ÷i*j aÓÚ·¤tuR0±°ì°Â ë25"÷²R¼Î 3áü;¸ÄIUêÔÀÓ'ðB(ÒQ¶ê.ú_g7B/Í·m´U"É]R.ÇIò`ïǸ«õéâÆbß|JûB:ñåºCjNqu*$¥°6÷ÐVåÀ¯ùÔÏ|ö(v«Võ§8ÄI×Hq}ÚSö¦×OÆÖ«ÔIô~ußëmsqà02 `Góu»!_9X2î¡ctì¸ÉÚw&òûÏ9èQsÐ _¦à"ýíçïÛK4£ ÈnVN<Ñt8ïLèT÷Á©ÉÄ>MÅÐ¥ucLV».xlÙÒBÎÏò×ijúÓÆ Åï Çk«¿aª2XX4übZi ]¼¹ÈÇC®ÁºBC #H¼(cæÖöàó÷ßÊMiCù5¬)ö K*7k4.;?Õ`/¤/Ñæ&9[®?Óôä·ÄVüÂÛWijpnǬ¨¡¯±©`9å °¬3q¯Á"O.1æMIîVòS_½Ý-6ÝÌ'¹L¡uØèr<52µjmvy/yÕD¡} óÀ¸Øð.¾6ÌÌðÞPia¢°xz ç§÷kËRæi{ÏíR;i7 Búl´9§ gÁß}©_~Dg(z¥9_ÝùÀ«?éùÆvèÚOHnéïÓ¥ÂJÇ?¶cÌÜí RÁß{iQûÓ½{$ f1& é^ÎúLPú,m°T&j5¥³°ºþÓ]M¸àùª§Îº9NÙ¥9Ë Òjz Hï;3Ñü!âëÂuÄ-©eû BZÎÔ5]GiDOMWËxwixW·K¾é>Ã`ÒãOÝéXɵjxâJæHÑ¿¿ëÔ]³9W¼~k·?ÐÙÃØQ§ÔÐùÖÀõõÍ?;$¾*dHMO;×2ÛKø0öÍÚú̹y¸·Ù«ÁlÊçÁmO} ¾½;Ô¤|»G!¥pøëýAµ%,¦5í0AÑ¥'>& 0sÚ`ÃÏà³è,ð{áhcFº!÷8L£ »{îÉîÒX±ÝWÃnô®þ\(7ÉòLz/z7'¢4 ZRÒ"zÆp:ÍävâÕøÑ~ ÙGÉ¡>*UØ qÉËõö(üvsmkc|l-h½WóÅÄnW#D«Û%¿uI]¡fWHËÅõ"¹¦Û7Ϊ(-¹G·ùÑ~»¹t8÷ò£$Úg,å(Èqóðª[]J¶¯vg-k¶²Ëv`õ¡±jбØÀFÖü¯¤ö¹]òDúhÀ2ùDü¶>W¨ñ÷Îcz~Ë`}Êä_k1[O$ݲf]D,É12²2(CäP]±É]ê[EëB*ÕÐ'GÇOḿg²½ÒaQK}MÙ4¸ùIQ >ÈMñ¿á 0Fò]sYPeè4{ÞÅEEzýìôT"j<p3LÁIµdÖñPÖòÏ% ÚÑX5|1Í#9Zí÷wÎä . -SÅ1A¹ÅmÑcRì¿RfñÛ¦qó[Dn²rý3i »Eõ3Ü«¾[´¥º¤á] éBB?aN{pâ¶>$ߪQV1Çå¶ÏÙrÔæ½õ\Ë,m)O§Ï½{Ö¦eȱ_rþbÅVÍÁÇzß¿çy±Á¼¤9s~¬³IAs1W7Ö·âlUÕ[ÃsXZ%ø/ÀØPºÆá ´ÝH\[P:(¦£ÌIÌÓ}A!ð t~6lþ}ǼiXlöÚ][qxÓyÒ:"^´j )´ÍôR7æùTJ.×Ѽ¢ä1!¶-©`u÷s<Ò q¡ëkgYû¬å:µø|agI®ä$LôÜrððt[^/ÕumÝÉTÖÁcð¼C«Lý ØÌ0éþ dȨ*îírÓÄ%ð4IÊÓ"D6é0°÷çÈ' èÌýà¼û^Ì©ÕÌo|>N¸¹Ú`F×Ðæ)î®õ£7h[ºÏÀo¸óPøI?Íàp8'()A)hÙ{8áZ½-G³¹nyB}w[ 3¾âðÍ!?¥vÌtAä÷zËõÉÛk7h¨QÙ'±pµP¢vÚf'âz~(TôZÉÏùLH1P 41' ò]à¿>q*±í&ÎÜjd¢Z½X¥5»(¨µ«5åX6Ç窮ðÐdu,Mm^¾¨\R$ÔÊ Õ1MÃØaùÂAÁãmõb¢áÅ8ÂiÌ*nįûüÁ¼«öøؼ°yãGF:QÕMzýªÜâèJ1î.]÷ùð^·47WñâáøEste es un mensaje del Servicio de Protección de Virus para Correo Electrónico MailScanner -- Se considera que el archivo anexado original "instruction.zip" ha sido infectado por un virus y por ello, ha sido reemplazado por este mensaje de aviso. Por una cuestión de privacidad (de carácter legal en algunos países), no hemos podido guardar una copia del archivo anexado original. El Tue Sep 21 10:57:57 2004 el analizador de virus dijo: F-Prot: instruction.zip->instruction.zip->INSTRUCTION.PIF Infection: W32/[EMAIL PROTECTED] -- Postmaster - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can't send request over my network ip
Have you tried setting up a virtual host to listen to 192.168.1.172? On Sep 21, 2004, at 10:49 AM, QM wrote: On Tue, Sep 21, 2004 at 04:16:55PM +0200, Sebastian Kerekes wrote: : I can access Tomcat through 127.0.0.1:8080 but not via 192.168.1.172 : (private network). I'm using Tomcat 5.0.27. I haven't changed any of : Tomcat's settings. Do I have to change some settings or is this problem : not related to Tomcat? 1/ please post a *new* message when writing to the list. Replying to an old (unrelated) message confuses thread-aware mailers, which makes your question harder to find (and thus answer). 2/ sounds like a firewall issue. What OS do you use? -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]
Re: Tomcat connection closes after 100 responses
On Tue, 21 Sep 2004 16:36:34 +0200, Bas Alberts <[EMAIL PROTECTED]> wrote: > Hi! > > The client doesn't say anything about the connection, except requesting > HTTP/1.1. > The tomcat server doesn't either, until the last (100th) response, which > suddenly includes a "Connection: Close" header (after which the connection > is indeed correctly closed) http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html Attribute maxKeepAliveRequests -- x Rémy Maucherat Developer & Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can Tomcat User Locak Socket instead of TCP for Mysql Connections?
On Tue, Sep 21, 2004 at 07:46:36AM -0700, Chuck Carson wrote: : I noticed that the URL contrains the port number for mysql, 3306. Is it possible for tomcat to use : the local socket directly? (/var/lib/mysql/mysql.sock by default from most Linuxes) Check the docs for the MySQL JDBC driver, which sits between Tomcat and the database. I know the PostgreSQL driver requires network connectivity, but perhaps MySQL would be different. -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: Tomcat + mysql + axis
On Tue, Sep 21, 2004 at 04:27:43PM +0200, Daniel S?nchez G?mez wrote: : I'm newbie of Web service and I want to do a web service wich : inserts data into a mysql database : : I dont't know if I need to configue server.xml and web.xml files? (I : work with Tomcat) : : I've read jndi-datasource-examples-howto.html, but it's a servlet : example and I don't know if it is identical to a simple webservice Web services, servlets, whatever... if it runs inside Tomcat, you can use the examples in the doc you read. -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: can't send request over my network ip
On Tue, Sep 21, 2004 at 04:16:55PM +0200, Sebastian Kerekes wrote: : I can access Tomcat through 127.0.0.1:8080 but not via 192.168.1.172 : (private network). I'm using Tomcat 5.0.27. I haven't changed any of : Tomcat's settings. Do I have to change some settings or is this problem : not related to Tomcat? 1/ please post a *new* message when writing to the list. Replying to an old (unrelated) message confuses thread-aware mailers, which makes your question harder to find (and thus answer). 2/ sounds like a firewall issue. What OS do you use? -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]
Can Tomcat User Locak Socket instead of TCP for Mysql Connections?
I noticed that the URL contrains the port number for mysql, 3306. Is it possible for tomcat to use the local socket directly? (/var/lib/mysql/mysql.sock by default from most Linuxes) Thx, rhugga - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to start tomcat server
Suresh Akula wrote: > CATALINA_HOME and JAVA_HOME and also included all the jars available in > C:\Tomcat\Common\lib folder in the classpath. But when i go to command > prompt C:\Tomcat\bin and execute startup.bat a black window comes up and > disappears but my server never starts.On the command window where i > executed > startup there appears 4 lines as follows > Using CATALINA_BASE: C:\Tomca > Using CATALINA_HOME: C:\Tomca > Using CATALINA_TMPDIR: C:\Tomca > Using JAVA_HOME: C:\Java > but am not able to start the server No, it's started, it just ended prematurely. :-) So it appears that the JAVA_HOME and CATALINA_HOME are probably set properly; what you need to do is use `.\bin\catalina.bat run` in a command (cmd.exe) window to start the server so that that window doesn't disappear on exit along with the error messages that will *tell you what's wrong*. 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: can't send request over my network ip
Andrew Janian wrote: You are using the port when trying from the pricate network also, right? Andrew Yes, I do. My colleague in the same network can reach Tomcat when using my IP. It's just that I can't access the Tomcat running over my computer via my network IP (and port 8080). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat connection closes after 100 responses
Hi! The client doesn't say anything about the connection, except requesting HTTP/1.1. The tomcat server doesn't either, until the last (100th) response, which suddenly includes a "Connection: Close" header (after which the connection is indeed correctly closed) &basa; -Original Message- From: Chuck Carson [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 4:33 PM To: Tomcat Users List Subject: RE: Tomcat connection closes after 100 responses --- Shanti Priya <[EMAIL PROTECTED]> wrote: > > Hi !! >In your server.xml file it's set as 100.Check it up. > > -Original Message- > From: Bas Alberts [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 21, 2004 7:54 PM > To: 'Tomcat Users List' > Subject: Tomcat connection closes after 100 responses > > > Hi tomcat users! > > Can anybody answer this question: > Every connection with tomcat is closed after exactly 100 > request/response-pairs. > > Why? > > HTTP/1.1 requests are sent through either a Java socket or a telnet session. > It doesn't matter if the requests and responses are small or large. > It doesn't matter if I set the config. CoyoteConnector attribute acceptCount > to any value. > It doesn't matter if I use @page session="true" or sesion="false". > > Any ideas? > > Bas Alberts > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > Are you explicitly closing you connections in your code, or relying on tomcat for cleanup? -rhugga - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat connection closes after 100 responses
Hi! I checked every setting in server.xml containing 100; that didn't work. &basa; -Original Message- From: Shanti Priya [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 4:34 PM To: Tomcat Users List Subject: RE: Tomcat connection closes after 100 responses Hi !! In your server.xml file it's set as 100.Check it up. -Original Message- From: Bas Alberts [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 7:54 PM To: 'Tomcat Users List' Subject: Tomcat connection closes after 100 responses Hi tomcat users! Can anybody answer this question: Every connection with tomcat is closed after exactly 100 request/response-pairs. Why? HTTP/1.1 requests are sent through either a Java socket or a telnet session. It doesn't matter if the requests and responses are small or large. It doesn't matter if I set the config. CoyoteConnector attribute acceptCount to any value. It doesn't matter if I use @page session="true" or sesion="false". Any ideas? Bas Alberts - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat connection closes after 100 responses
--- Shanti Priya <[EMAIL PROTECTED]> wrote: > > Hi !! >In your server.xml file it's set as 100.Check it up. > > -Original Message- > From: Bas Alberts [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 21, 2004 7:54 PM > To: 'Tomcat Users List' > Subject: Tomcat connection closes after 100 responses > > > Hi tomcat users! > > Can anybody answer this question: > Every connection with tomcat is closed after exactly 100 > request/response-pairs. > > Why? > > HTTP/1.1 requests are sent through either a Java socket or a telnet session. > It doesn't matter if the requests and responses are small or large. > It doesn't matter if I set the config. CoyoteConnector attribute acceptCount > to any value. > It doesn't matter if I use @page session="true" or sesion="false". > > Any ideas? > > Bas Alberts > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > Are you explicitly closing you connections in your code, or relying on tomcat for cleanup? -rhugga - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat connection closes after 100 responses
Hi !! In your server.xml file it's set as 100.Check it up. -Original Message- From: Bas Alberts [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 7:54 PM To: 'Tomcat Users List' Subject: Tomcat connection closes after 100 responses Hi tomcat users! Can anybody answer this question: Every connection with tomcat is closed after exactly 100 request/response-pairs. Why? HTTP/1.1 requests are sent through either a Java socket or a telnet session. It doesn't matter if the requests and responses are small or large. It doesn't matter if I set the config. CoyoteConnector attribute acceptCount to any value. It doesn't matter if I use @page session="true" or sesion="false". Any ideas? Bas Alberts - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat + mysql + axis
Hi, I'm newbie of Web service and I want to do a web service wich inserts data into a mysql database I dont't know if I need to configue server.xml and web.xml files? (I work with Tomcat) I've read jndi-datasource-examples-howto.html, but it's a servlet example and I don't know if it is identical to a simple webservice -- Regars, Daniel mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat-4.1.27 doesn't start
Hi everybody, I had installed 'jakarta-tomcat-4.1.27-LE-jdk14'server one year ago and I used the server without having any trouble. For personal reason I have not used the server for last six months. Now when I try to open the server I am getting the following message: "Catalina_Home environmental variable is not defined correctly. This environmental variable is needed to run this program". In this context I would like to mention that I have sets JAVA_HOME variable and class path(installed directory\common\lib\servlet.jar)in autoexec.bat file. My operating system is windows 98. So far I do not have any clue why it is happening. Is there anybody who can highlight in this matter. Any suggestion and advice will be highly appreciated. Thanks in advance Bis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat connection closes after 100 responses
Hi tomcat users! Can anybody answer this question: Every connection with tomcat is closed after exactly 100 request/response-pairs. Why? HTTP/1.1 requests are sent through either a Java socket or a telnet session. It doesn't matter if the requests and responses are small or large. It doesn't matter if I set the config. CoyoteConnector attribute acceptCount to any value. It doesn't matter if I use @page session="true" or sesion="false". Any ideas? Bas Alberts
RE: can't send request over my network ip
You are using the port when trying from the pricate network also, right? Andrew -Original Message- From: Sebastian Kerekes [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 9:17 AM To: Tomcat Users List Subject: can't send request over my network ip I can access Tomcat through 127.0.0.1:8080 but not via 192.168.1.172 (private network). I'm using Tomcat 5.0.27. I haven't changed any of Tomcat's settings. Do I have to change some settings or is this problem not related to Tomcat? - 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: Issue Running Current Forrest Dev under Tomcat 5
Hi, I'g forwarding your comment to the forrest mail-list as I don't have the answer for you directly. However, Tomcat does start and run. I can access my Forrest webapp as well as the Cocoon webapp. I just can't access the Tomcat Manager or the JSP/Servlet Example/Sample pages, or a couple of other webapps like Xindice or eXist. But Tomcat does startup and deliver at least some of my webapps. - mike -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, September 13, 2004 8:07 AM To: Tomcat Users List Subject: RE: Issue Running Current Forrest Dev under Tomcat 5 Hi, The reason I ask is because of the commons-logging CNFEs. If commons-logging can't load or initialize itself, Tomcat will basically not start. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Hare, Michael [mailto:[EMAIL PROTECTED] >Sent: Friday, September 10, 2004 2:11 PM >To: 'Tomcat Users List' >Subject: RE: Issue Running Current Forrest Dev under Tomcat 5 > >Hi Yoav, > >The only log files I find for forrest are located in forrest's WEB-INF/logs >directory under webapps. >The log files are 9 of them and they are all empty. > >Other than that I do not know how forrest performs logging. > >- m > >-Original Message- >From: Shapira, Yoav [mailto:[EMAIL PROTECTED] >Sent: Friday, September 10, 2004 12:37 PM >To: Tomcat Users List >Subject: RE: Issue Running Current Forrest Dev under Tomcat 5 > > > >Hi, >How does Forrest 0.6 configure (or try to) its logging? > >Yoav Shapira >Millennium Research Informatics > > >>-Original Message- >>From: Hare, Michael [mailto:[EMAIL PROTECTED] >>Sent: Friday, September 10, 2004 12:38 PM >>To: Tomcat Users List >>Subject: Issue Running Current Forrest Dev under Tomcat 5 >> >>Hi, >> >>I am coming from the Forrest Mailing List. >>I noticed that forrest 0.6 was causing a problem when trying to access >the >>Tomcat homepage. >> >>I first noticed the problem with Tomcat 5.0.27 (I never tried anything >>earlier), but it carries through to 5.0.28 and 5.5.1 >>(I am currently using Windows XP, SunJava 1.5.0 and Tomcat 5.5.1) >> >>If I put the WAR file generated by Forrest 0.6 into the webapps dir, >Tomcat >>will unravel the war and I can even access the Forrest site. >>However if I try to access the Tomcat Homepage >>(http://mysite.com:8080/index.jsp), the JSP Samples or the Servlet >>Examples, I get an HTTP:404 error. >> >>If I remove the war file and the unraveled webapp and restart Tomcat, I >can >>once again access the Tomcat Homepage. >> >>I should say that Forrest 0.5.1 does not cause this behavior with >Tomcat. >>Everything works fine. >> >>I have taken several stderr.log snapshots, before the forrest 0.6 >>installation, with forrest 0.6 installed and with forrest 0.5.1 >installed. >> >>Right off the bat, starting Tomcat with forrest 0.6 war in webapps >causes >>the stderr.log to grow 130KB rather than 3KB without forrest. >>The stderr.log is full of various errors: >> >> >>Sep 10, 2004 9:49:10 AM org.apache.catalina.core.StandardHost start >>INFO: XML validation disabled >>Logging Error: Could not set up Cocoon Logger, will use screen instead >>org.apache.avalon.framework.configuration.ConfigurationException: >cannot >>create FileTarget >> >>NFO: Cache file root directory: >>C:\Programs\ApacheGroup\Tomcat5\work\Catalina\localhost\ForrestExample s >\coc >>oon-files >>Sep 10, 2004 9:49:23 AM org.apache.tomcat.util.digester.Digester >endElement >>SEVERE: End event threw exception >>java.lang.reflect.InvocationTargetException >> at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) >> >>ep 10, 2004 9:49:23 AM org.apache.catalina.startup.ContextConfig >>processDefaultWebConfig >>SEVERE: Parse error in default web.xml >>org.apache.commons.logging.LogConfigurationException: >>org.apache.commons.logging.LogConfigurationException: >>java.lang.ClassNotFoundException: >>org.apache.commons.logging.impl.LogKitLogger (Caused by >>java.lang.ClassNotFoundException: >>org.apache.commons.logging.impl.LogKitLogger) (Caused by >>org.apache.commons.logging.LogConfigurationException: >>java.lang.ClassNotFoundException: >>org.apache.commons.logging.impl.LogKitLogger (Caused by >>java.lang.ClassNotFoundException: >>org.apache.commons.logging.impl.LogKitLogger)) >> at >>org.apache.tomcat.util.digester.Digester.createSAXException(Digester.j a >va:2 >>746) >> >> >>and so on.. These do not appear if forrest 0.6 is not in the picture. >> >>Can anyone help me determine the root cause for this problem? >> >>Thanks, >> >>Mike >> >> >>- >>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
can't send request over my network ip
I can access Tomcat through 127.0.0.1:8080 but not via 192.168.1.172 (private network). I'm using Tomcat 5.0.27. I haven't changed any of Tomcat's settings. Do I have to change some settings or is this problem not related to Tomcat? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAAS and Tomcat
Hi, No, you don't need to setup Tomcat for JAAS in that case. You can roll it yourself. This is also true for database connection pools and any other resources. You can even run your own little JNDI server inside your webapp if you wanted. The upside for this is that you're more portable more easily: you can just move your WAR around between servers and don't need to worry about container-specific configuration. This also frequently allows for easier unit testing. The downside is the same as with anything you roll yourself: are you spending time reinventing the wheel? Even if not, are you passing on a well-tested solution in favor of one that's less well-tested? Yoav Shapira Millennium Research Informatics >-Original Message- >From: Hollerman Geralyn M [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 21, 2004 10:09 AM >To: Tomcat Users List >Subject: JAAS and Tomcat > >Question - I have a webapp that does its own authentication. I use Tomcat >as my >servlet container. If I want to use JAAS for that application, with it >doing >authentication (and not Tomcat), I don't need to set Tomcat up for JAAS, do >I? > >-- >Lynn Hollerman. > >- >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]