ThreadLocal relationship to servlet requets and use to store variables
Does each http get/post, that comes in to a jsp/servlet, get its own thread? Can this thread be used to store a hashmap that will be available like a global variable to all instances during the life or the http get/post processing? What cleanup, if any, needs to be done? I am assuming that tomcat uses a threadpool so a threadlocal must be cleaned in someway for when it is reused in the next request?. Any issues in doing this in j2se1.3.x vs 1.4.x? If this does work in tomcat, which versions? Should this work across other servers such as resin, websphere, jboss? Thank you, -- = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://www.sun.com/sunone = = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ThreadLocal relationship to servlet requets and use to store variables
True :) Unfortunately, the corporate architects do not allow presentation tier (ie: servlet requests) to be passed all the way down to the persistence tier. The goal is to put the session pull the login id out of the servlet session, on each request, and stick it in an application defined session object instance that is uncoupled from the servlet api's. Putting the Session instance into thread local would, I hope, make it available to the persistence tier without adding a method parameter all the way through all method calls top to bottom. any other suggestions? thanks Filip Hanik wrote: yes, each request comes with on its own thread but the proper way of storing stuff for the lifetime of the request, is inside the HttpServletRequest.setAttribute Filip -Original Message- From: Hanasaki JiJi [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 8:05 PM To: LIST - Tomcat Users Subject: ThreadLocal relationship to servlet requets and use to store variables Does each http get/post, that comes in to a jsp/servlet, get its own thread? Can this thread be used to store a hashmap that will be available like a global variable to all instances during the life or the http get/post processing? What cleanup, if any, needs to be done? I am assuming that tomcat uses a threadpool so a threadlocal must be cleaned in someway for when it is reused in the next request?. Any issues in doing this in j2se1.3.x vs 1.4.x? If this does work in tomcat, which versions? Should this work across other servers such as resin, websphere, jboss? Thank you, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Clustering Tomcat - Loadbalancing and Failover
Very nice! does the mcastAddr=228.1.2.3 imply tcp multicasting using java.net.MulticastSocket? What is in place for security? Does the cluster support loadbalancing? or failover? how can its config be tweeked? The filter, shown at the link provided, doesnt seem to support jsp/servlets. can this be done too? how? thanks again = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://www.sun.com/sunone = = Filip Hanik wrote: http://cvs.apache.org/~fhanik/ how are session states replicated? once, after the entire request is completed. If the session is not dirty, no replication will be done Doesn't use java groups, instead pure UDP/TCP. Filip - Original Message - From: jerome moliere [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 11:34 PM Subject: Re: Clustering Tomcat - Loadbalancing and Failover Hanasaki JiJi wrote: Hello, What is available, in Tomcat, or as an add-on, and preferably free/open-source to cluster tomcat for: load balancing fail over humm filip hanik could answer with more details (or remy maucherat) but as far as I know new Tomcat 5 code (backported to 4.1) use the Javagroups library for replication mechanism. For tomcat 4.1, adding jars (javagroups + patch) is enough to add theses features... For tomcat 5, nothing needed because it's one of the new features... how are session states replicated? It's one of the limits of this system, because every put made, induces replication for the entire object using broadcast (by default). So heavy traffic... Also, in general, and a bit off-topic (my apologies), are there any resources for the design, or open source implementation, of load balancing / fail-over frameworks? javagroups :) google may point you to the current address !!! I think that this porject recently joined the JBOSS project Thanks Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat startup and running as a disconnected process
How does tomcat implement the ability, on Win and Unix, disconnect from its parent process (ie: the process that ran the startup.bat/sh script) -- = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://www.sun.com/sunone = = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Clustering Tomcat - Loadbalancing and Failover
What is available, in Tomcat, or as an add-on, and preferably free/open-source to cluster tomcat for: load balancing fail over how are session states replicated? Also, in general, and a bit off-topic (my apologies), are there any resources for the design, or open source implementation, of load balancing / fail-over frameworks? Thanks -- = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://www.sun.com/sunone = = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
servlet sends mail - war works on one host / not another
exception is below.. The identical war works on a differnt box. both are linux w/ java 1.4.1 and tomcat 4.1.18 javax.mail.NoSuchProviderException: smtp LocalMsg[smtp] javax.mail.NoSuchProviderException: javax.mail.Session.getService(Session.java:611) javax.mail.Session.getTransport(Session.java:541) javax.mail.Session.getTransport(Session.java:484) javax.mail.Session.getTransport(Session.java:464) -- = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
servlet context.log(.. no longer going to log files
There are servlets that call the ServletContext log method. In the past, these went to the local log files under the tomcat ./log directory Only thing I can find is someone added the following file directly under WEB-INF commons-logging.properties === org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog simplelog.properties # Logging detail level, # Must be one of (trace, debug, info, warn, error, or fatal). org.apache.commons.logging.simplelog.defaultlog=debug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Auto deploy of updated files class/war
Tomcat auto-redeploys/auto-deploys classes/jsp/html very well if they are dropped into the filesystem under the webapp. Is there a way enable tomcat to auto-redeploy a WAR file that has been updated in the webapps? unpackwar = false. thanks -- = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache Tomcat/4.1.18-LE-jdk14 - class loader problem with servlets/javamail
I have am deploying a war file with j2ee.jar from j2ee1.3.1 also tried the 1.4 beta and my servlet cannot find the javamail classes. A small standalone application using the javamail from the same j2ee.jar file works fine. j2ee.jar is in the lib directory. Any thoughts? javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.invokeNext(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.processConnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) - Root Cause - java.lang.NoClassDefFoundError: javax/mail/Address -- = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
war file deploy/redeploy/reload mechanisms?
Reading the docs, it seems that deploying or redeploying a WAR file should be as dropping the WAR in the right directory or copying a revised WAR over an already deployed WAR. This is not working. Any ideas as to what to check into? unpackWARs = false autoDeploy = true Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: war file deploy/redeploy/reload mechanisms?
The delete the existing dir and restart is necessary when unpackWARs=true. Is it also required for unpackWARs=false? for false there are no directories. The goal is to hot redeploy just by coping in the new WAR. What is the gotcha that you refer to? Paul Campbell wrote: I also delete the existing directory and then restart. Your message didn't mention the restart. There is another gotcha. That I have encountered that occurs it you have an entry for that context Is that your case? At 11:56 AM 1/6/2003 -0600, you wrote: Reading the docs, it seems that deploying or redeploying a WAR file should be as dropping the WAR in the right directory or copying a revised WAR over an already deployed WAR. This is not working. Any ideas as to what to check into? unpackWARs = false autoDeploy = true Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Memory Usage and Garbage Collection
The same servlet gets called everytime? Isn't this container implementation specific (Although functionally it SHOULD appear to be the same servlet)? For example, couldn't a container do pooling or load balancing. Craig R. McClanahan wrote: On Fri, 3 Jan 2003, Brandon Cruz wrote: Date: Fri, 3 Jan 2003 16:23:24 -0600 From: Brandon Cruz [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Memory Usage and Garbage Collection Craig, From what you have been saying... 1)For every single request to a servlet or JSP page, a new instance of that class is created? NO! It's exactly the opposite -- the same instance gets reused every time. For example, if there is one JSP page and ten people access that one page over the course of a day, 10 separate instances of the same class are created and will never be gc'd until the webapp or tomcat is restarted? 2)If this is true, it looks to me like any java application in the world eventually has to be restarted as more and more people access it. Buying more memory would prolong the time to restart the application, but eventually all the instances created will take up all the available RAM. Is this correct? The point I was trying to make is that code you *call* from your servlets and JSPs can create memory leaks, and there's not necessarily anything that you (as the author of the servlet or JSP) page can do about it. You can't even tell that it's happening unless you have access to the source code of the classes you're calling. Assume that you implement something like the complex example from my previous mail, and every call to the getOtherObject() method specifies a different id value. The old OtherObject instances will *not* be GC'd, because there are live references to them -- even if they are not in your servlet, they still exist in the JVM. And the fact that there is only one instance of your servlet is not relevant to this memory leak, because it is not your servlet instances that are being accumulated. It is not good enough to just release references in your servlet when you are through with an object. Brandon Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: intranet application
Tomcat doesnt care if its intranet or internet. It is all TCP/IP to Tomcat. Some comibination of the following separates a internet from intranet: firewall, NAT(Network Address Translation), Proxies ... Tomcat supports CGI and Servlet based applications. I would highly suggest going the servlet approach. CGI's often spawn at least one OS process for each HTTP request. This reduces performance alot. How do write servlets? Check the below references and learn OO (Object Oriented) don't just start coding. Its a sure way to find trouble later. http://java.sun.com/ http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html http://java.sun.com/j2ee/tutorial/1_3-fcs/ read the web technology tutorials # Lalit Nagpal # wrote: hi guys ... somebody please tell me how to write a intranet application using tomcat ... how to configure tomcat for an intranet application thanx in advance Lalit Nagpal = # Lalit Nagpal # __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How do load a properties file from servlet?
How can a properties file be loaded from /WEB-INF/props/p.properties in an unexpanded WAR from servlet code? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tld locations??? must be directly in WEB-INF
Am I reading the below error correctly? .tld must be in the WEB-INF dir and not in any subdir of WEB-INF? I have put the struts tld's in /WEB-INF/struts/ and specified to find them there in web.xml == 2002-12-05 23:33:41 ContextConfig[/j2eetemplate] Exception processing TLD at resource path /WEB-INF/struts/struts-nested.tld javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/struts/struts-nested.tld at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1010) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243) ... - Root Cause - java.lang.IllegalArgumentException: Invalid TLD resource path /WEB-INF/struts/struts-nested.tld at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1002) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) -- = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tld locations??? must be directly in WEB-INF
specifically where/inwhat file does your suggestion go? It should only impact where struts tld's are found, not all tlds Aleksandr Shneyderman wrote: make sure that taglib-location/WEB-INF/struts.tld/taglib-location the /WEB-INF/ is important for some reason. it was working in 4.0.4 but gives a problem in 4.1.12 -Original Message- From: Hanasaki JiJi [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 9:46 AM To: [EMAIL PROTECTED] Subject: tld locations??? must be directly in WEB-INF Am I reading the below error correctly? .tld must be in the WEB-INF dir and not in any subdir of WEB-INF? I have put the struts tld's in /WEB-INF/struts/ and specified to find them there in web.xml == 2002-12-05 23:33:41 ContextConfig[/j2eetemplate] Exception processing TLD at resource path /WEB-INF/struts/struts-nested.tld javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/struts/struts-nested.tld at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig .java:1010) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextCo nfig.java:243) ... - Root Cause - java.lang.IllegalArgumentException: Invalid TLD resource path /WEB-INF/struts/struts-nested.tld at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig .java:1002) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextCo nfig.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifec ycleSupport.java:166) -- = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tld locations??? must be directly in WEB-INF - relates to Tomcatxml parser bug
Attached is the xdoclet web.xml file that produces the below error. The below references indicate that there may be a bug in the tomcat xml parser that is exposed by the generated web.xml. The struts tld files are copied directly form those in a working sample from the jakarta struts download. Thoughts? comments? The file looks ok to me. Thanks. Aleksandr Shneyderman wrote: make sure that taglib-location/WEB-INF/struts.tld/taglib-location the /WEB-INF/ is important for some reason. it was working in 4.0.4 but gives a problem in 4.1.12 -Original Message- From: Hanasaki JiJi [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 9:46 AM To: [EMAIL PROTECTED] Subject: tld locations??? must be directly in WEB-INF Am I reading the below error correctly? .tld must be in the WEB-INF dir and not in any subdir of WEB-INF? I have put the struts tld's in /WEB-INF/struts/ and specified to find them there in web.xml == 2002-12-05 23:33:41 ContextConfig[/j2eetemplate] Exception processing TLD at resource path /WEB-INF/struts/struts-nested.tld javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/struts/struts-nested.tld at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig .java:1010) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextCo nfig.java:243) ... - Root Cause - java.lang.IllegalArgumentException: Invalid TLD resource path /WEB-INF/struts/struts-nested.tld at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig .java:1002) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextCo nfig.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifec ycleSupport.java:166) -- = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = = ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Standard Action Servlet Configuration (with debugging) -- servlet servlet-namestrutsAction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param load-on-startup2/load-on-startup /servlet servlet servlet-nameTestServlet/servlet-name display-nametest servlet display name/display-name description![CDATA[desc of testservlet]]/description servlet-classcom.web.TestServlet/servlet-class /servlet servlet-mapping servlet-nameTestServlet/servlet-name url-pattern*.test/url-pattern /servlet-mapping session-config session-timeout5/session-timeout /session-config !-- To specify mime mappings, create a file named mime-mappings.xml, put it in your project's mergedir. Organize mime-mappings.xml following this DTD slice: !ELEMENT mime-mapping (extension, mime-type) -- !-- To specify error pages, create a file named error-pages.xml, put it in your project's mergedir. Organize error-pages.xml following this DTD slice: !ELEMENT error-page ((error-code | exception-type), location) -- !-- Struts Tag Library Descriptors -- taglib taglib-uri/WEB-INF
relocating conf/server.xml
I would like to have the following structure. This way tomcat installations can be replaced and the environment variable will make the installation use the config from standalone directory. Deleting the tomcat install wont delete the configs :) /usr/local/tomcat4.1.12 /usr/data/tomcat/conf = the conf used by startup /usr/data/tomcat/webapps I tried seting CATALINA_BASE=/usr/data/tomcat and this seems to work on one system fine.. on another there are the following errors in the log files. == INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Dec 1, 2002 7:52:06 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception 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.jav a:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:228) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260) at org.apache.commons.digester.Digester.endElement(Digester.java:1036) at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:57 9) -- = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tomcat 4.1.12 log of pages hit
I dont seem to find the web hit logs? The ones that can be run through webtrends. Where are they? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ROOT/subdir softlinked to another directory fails
For logistical purposes, it is necessary to soft link a directory under ROOT to a directory elsewhere in the filesystem (Running Linux ext3). Tomcat is reporting that the resource is not available when someone hits the page [host]/subdir. What is the reason for this? Any suggestions as to how I can accomplish this functionality? Thank you. -- = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ln -s synbolic links not followed on unix/linux
Tomcat 4.1.12 seems to be having problems with symbolic links under linux. The below error is reported when trying to access the docs subdirectory that was soft linked to another part of the filesystem. ls docs/* shows the directory contents fine. Is there a way to allow tomcat to traverse the softlinks? Why is this the default behavior? Thank you type Status report message /docs/ description The requested resource (/docs/) is not available. -- = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
java -server vs classic and servlet src from jsp compiler errors
Has anyone had errors show up in the Servlet source generated from a JSP under the following? or any combo? - J2SE 1.4.1 - any OS - Tomcat 4.04 or Tomcat 4.1.x Thank you. -- = http://www.sun.com/service/sunps/jdc/javacenter.pdf= =www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = = = = Noone wants advice - only corroboration - John Steinbeck = ==== = Pawns can become Royalty in Life or in Chess = = Life, the only game where Royalty can be a pawn,= =and not even know it = = Chess, the only game where pawns really are pawns = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Calling session beans from tomcat
How can tomcat call a session bean from BEA or iAS on another physical server? -- = http://www.sun.com/service/sunps/jdc/javacenter.pdf= =www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = = = = Noone wants advice - only corroboration - John Steinbeck = ==== = Pawns can become Royalty in Life or in Chess = = Life, the only game where Royalty can be a pawn,= =and not even know it = = Chess, the only game where pawns really are pawns = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JSP to Servlet source conversion
What part of Tomcat (most interested in 4.x) does the conversion from jsp to servlet source? Is this code the same code as from the J2EE jar files downloaded from Sun? Are their any difference in this process under classic vs server VM? Thank you -- = http://www.sun.com/service/sunps/jdc/javacenter.pdf= =www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = = = = Noone wants advice - only corroboration - John Steinbeck = ==== = Pawns can become Royalty in Life or in Chess = = Life, the only game where Royalty can be a pawn,= =and not even know it = = Chess, the only game where pawns really are pawns = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Servlets not found after upgrade to Tomcat 4.1.12
I have just autodeployed a WAR file that worked fine in Tomcat 4.0.5. Undeer 4.1.12 none of the servlets are being found. Tomcat reports requested resource not available Also, under 4.1.12 there is no logs/**access log -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.1.12 Servlets stored in JAR files not found????
This is a followup to the servlet not found posting... Does it matter that the servlets are stored in JAR files that are being autodeployed under . lib? The servlets are not in the classes directory. This setup worked fine in the previous tomcat version. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Servlets not found after upgrade to Tomcat 4.1.12
Yes ... I read every txt file that was in the dowload. Does the below excerpt have anything to do with this? What is the invoker and why is it now disabled by default? Thanks. Enabling invoker servlet: Starting with Tomcat 4.1.12, the invoker servlet is no longer available by default in all webapp. Enabling it for all webapps is possible by editing $CATALINA_HOME/conf/web.xml to uncomment the /servlet/* servlet-mapping definition. Sexton, George wrote: Did you read the change log? -Original Message- From: Hanasaki JiJi [mailto:[EMAIL PROTECTED]] Sent: 30 September, 2002 11:23 AM To: [EMAIL PROTECTED] Subject: Servlets not found after upgrade to Tomcat 4.1.12 I have just autodeployed a WAR file that worked fine in Tomcat 4.0.5. Undeer 4.1.12 none of the servlets are being found. Tomcat reports requested resource not available Also, under 4.1.12 there is no logs/**access log -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat access to servlet's in JAR that is in WAR file
Is there some way to tell Tomcat how to locate .class and servlet.class files that are in a JAR that is in a WAR? ex: app.war contains lib/servlets.jar Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]