Comparing Tomcat VS other (was is Tomcat Crap???)
Yep no worries, I totally agree with you. I was just (still?) a bit anxious. If anybody can provide any technical comparison, please do ;-) Thanx, --mike Richard Plukker wrote: Tomcat is no Crap, Maybe other web containers are better, but that doesn't mean that it's crap. Try writing your own web-container (first release will probably be crap). There are some tedious things in tomcat, mostly redeployment, or reloading webapps. This is done great in orion as i can remember. I believe that Resin and Orion are free for developers but when you use it commercialy then you have to pay. Weblogic is expensive. Also Weblogic and Orion are J2ee containers they have the whole EJB thing too. Maybe you want it maybe you don't JBoss is released now with Jetty integrated, does anyone have any experience? A good alternative to Tomcat? As closing remark I would like to say that i don't like a new evangelist war like Vi vs Emacs, Windows vs Linux, PC vs Mac and all those childish comparisons. If someone likes Orion -- fine, if one uses Resin -- good for you, if someone uses anything else -- that's okay by me. What I do like is a technical comparison, without childish politics or evangelism greetings, Richard On Tuesday 18 June 2002 09:32, you wrote: What do you think? http://radio.weblogs.com/0107789/stories/2002/05/28/isTomcatCrap.html --mike -- 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]
Re: Tomcat4.1.2 shutdown error
Remy Maucherat wrote: Shapira, Yoav wrote: Howdy, I actually disagree with the interpretation of the error: if you try to shutdown tomcat when it's not running, you'll get a ConnectionRefused exception from when it tries to connect to the shutdown port. But I don't have an answer to the original question ;) Is Remy watching this thread? Looking at the line number, the NamingResources field is null, but can't see any situation where this would happen. Could you send what exactly you are doing to get that error, or any specific info on your configuration ? If you have all your webapps up and running, I really don't see how it can happen. Remy Hi and thank you for answering. I got the impression that I was the only one that could read my mail ;-) Tomcat is up and running as well as my webapp, although I do have unexpected jsp error message since I've upgraded from T3.2 to T4.1.2. This shutdown error happens when I run the catalina script with 'stop'. Maybe reading my .xml (first attempt) would help you finding what's going on? Thanx again, --mike java.lang.NullPointerException at org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingCon text L istener.java:343) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS uppo r t.java:166) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2216) at org.apache.catalina.startup.Catalina.start(Catalina.java:541) 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.ja va:3 9 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImp l .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ?xml version=1.0 encoding=ISO-8859-1? !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 !-- Define example application events listeners -- listener listener-classlisteners.ContextListener/listener-class /listener listener listener-classlisteners.SessionListener/listener-class /listener servlet servlet-name cgi /servlet-name servlet-class userInterface.servlets.cgi /servlet-class /servlet servlet servlet-name userInterface.servlets.cgi_ei /servlet-name servlet-class EI.userInterface.servlets.cgi_ei /servlet-class /servlet servlet servlet-name Servletinitializer /servlet-name servlet-class userInterface.servlets.Servletinitializer /servlet-class load-on-startup 1 /load-on-startup /servlet servlet-mapping servlet-namecgi/servlet-name url-pattern/docsoul/*/url-pattern /servlet-mapping !-- security-constraint display-nameExample Security Constraint/display-name web-resource-collection web-resource-nameProtected Area/web-resource-name -- !-- Define the context-relative URL(s) to be protected -- !-- url-pattern/jsp/security/protected/*/url-pattern -- !-- If you list http methods, only those methods are protected -- !-- http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint -- !-- Anyone with one of the listed roles may access this area -- !-- role-nametomcat/role-name role-namerole1/role-name /auth-constraint /security-constraint -- /web-app !-- Alternate Example-less Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Uncomment this entry to enable JMX MBeans support -- !-- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0 port=-1 login=admin password=admin/ -- !-- A Service is a collection of one or
Re: Tomcat4.1.2 shutdown error
Hi and thank you for answering. I got the impression that I was the only one that could read my mails ;-) Tomcat is up and running as well as my webapp, although I do have unexpected jsp error message since I've upgraded from T3.2 to T4.1.2. This shutdown error happens when I run the catalina script with 'stop'. Maybe reading my .xml (first attempt) would help you finding what's going on? Thanx again, --mike WEB.XML -- ?xml version=1.0 encoding=ISO-8859-1? !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 !-- Define example application events listeners -- listener listener-classlisteners.ContextListener/listener-class /listener listener listener-classlisteners.SessionListener/listener-class /listener servlet servlet-name cgi /servlet-name servlet-class userInterface.servlets.cgi /servlet-class /servlet servlet servlet-name userInterface.servlets.cgi_ei /servlet-name servlet-class EI.userInterface.servlets.cgi_ei /servlet-class /servlet servlet servlet-name Servletinitializer /servlet-name servlet-class userInterface.servlets.Servletinitializer /servlet-class load-on-startup 1 /load-on-startup /servlet servlet-mapping servlet-namecgi/servlet-name url-pattern/docsoul/*/url-pattern /servlet-mapping !-- security-constraint display-nameExample Security Constraint/display-name web-resource-collection web-resource-nameProtected Area/web-resource-name -- !-- Define the context-relative URL(s) to be protected -- !-- url-pattern/jsp/security/protected/*/url-pattern -- !-- If you list http methods, only those methods are protected -- !-- http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint -- !-- Anyone with one of the listed roles may access this area -- !-- role-nametomcat/role-name role-namerole1/role-name /auth-constraint /security-constraint -- /web-app = SERVER.XML -- !-- Alternate Example-less Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Uncomment this entry to enable JMX MBeans support -- !-- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0 port=-1 login=admin password=admin/ -- !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 4.0 documentation bundle for more detailed instructions): * Download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. * Execute: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) with a password value of changeit for both the certificate and the keystore itself. By default, DNS lookups are enabled when a web application calls request.getRemoteHost(). This can have an adverse impact on
JSP Runtime error : Any idea?
I'm getting such errors since i've upgraded to tomcat 4.1.2 ;-( Any idea of what is causing this? Thanx, --mike 2002-06-12 11:22:16 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception javax.servlet.ServletException: (class: org/apache/jsp/Logins$jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Incompatible type for getting or setting field at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) 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:646) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483) 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:646) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2349) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483) 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:646) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown Source) at org.apache.catalina.connector.warp.WarpConnection.run(Unknown Source) at java.lang.Thread.run(Thread.java:536) - Root Cause - java.lang.VerifyError: (class: org/apache/jsp/Logins$jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Incompatible type for getting or setting field at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576) at java.lang.Class.getConstructor0(Class.java:1748) at java.lang.Class.newInstance0(Class.java:266) at java.lang.Class.newInstance(Class.java:249) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:170) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) 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:646) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483) 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:646) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
Tomcat4.1.2 shutdown error
I'm getting this error when I try to stop Tomcat. Any idea? Thanx, -mike java.lang.NullPointerException at org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingContextListener.java:343) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2216) at org.apache.catalina.startup.Catalina.start(Catalina.java:541) 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) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
HELP : WebappLoader and URL.setURLStreamHandlerFactory
Hi, Is there a way not to set the stream handler factory in Tomcat4.x? I'm using the ibm webdav package which does it as well and, as you probably know, only one factory handler is allowed (true?) per JVM so I thought of recompiling Tomcat but first I'm having difficulties to compile jasper and second it's a bit dirty. So. if you have another solution, I'd be very grateful. Thanx, --mike -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Cant launch Tomcat4.1 : ClassCastException: sun.net.www.protocol.http.HttpURLConnection
Hi all, I'm trying to upgrade from Tomcat3.3 to Tomcat 4.1. When launching catalina, I get the following error: java.lang.ClassCastException: sun.net.www.protocol.http.HttpURLConnection at com.ibm.webdav.protocol.http.ResourceHTTPStub.setupRequest(ResourceHTTPStub.java:833) at com.ibm.webdav.protocol.http.ResourceHTTPStub.getProperties(ResourceHTTPStub.java:374) at com.ibm.webdav.Resource.getProperties(Resource.java:799) at com.ibm.webdav.Resource.getProperty(Resource.java:811) at com.ibm.webdav.Resource.isCollection(Resource.java:997) at com.ibm.webdav.ResourceFactory.create(ResourceFactory.java:111) at com.ibm.webdav.ResourceFactory.create(ResourceFactory.java:83) at webDAV.WebDAVManager.checkConnection(WebDAVManager.java:320) at webDAV.WebDAVManager.init(WebDAVManager.java:267) at webDAV.WebDAVManager.sharedInstance(WebDAVManager.java:305) at engine.managers.InitializationManager.initWebDAV(InitializationManager.java:836) at engine.managers.InitializationManager.initAll(InitializationManager.java:801) at servers.rmi.RMIInterfaceImpl.initDocSoul(RMIInterfaceImpl.java:1044) at userInterface.servlets.Servletinitializer.init(Servletinitializer.java:149) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:919) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:811) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3293) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190) at org.apache.catalina.core.StandardHost.start(StandardHost.java:739) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:499) at org.apache.catalina.core.StandardServer.start(StandardServer.java:707) at org.apache.catalina.startup.Catalina.start(Catalina.java:504) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Does anybody know why? The same code worked prefectly under Tomcat3.3. I'm using the same jdk, same external jars. My first thought was that T4.1 was loading differently. I tried to force it to load my jars first but with no results ;-( Before this error, I get a parsing error but I don't think it is related. org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*). at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213) at org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError(XMLValidator.java:1851) at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1495) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1204) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.apache.commons.digester.Digester.parse(Digester.java:1284) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:634) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3445) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190) at org.apache.catalina.core.StandardHost.start(StandardHost.java:739) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:499) at org.apache.catalina.core.StandardServer.start(StandardServer.java:707) at org.apache.catalina.startup.Catalina.start(Catalina.java:504) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at
Re: How to disable sessions timeout?
Filip Hanik wrote: really, that doesn't sound right. You have to be able to disable the session timeout. This is taken from the servlet specification, you can set the timeout to -1 in web.xml for your web application or do it programatically. So is -1 doing the trick or the spec are not uptodate? EXTRACT The default timeout period for sessions is defined by the servlet container and can be obtained via the getMaxInactiveInterval method of the HttpSession interface. This timeout can be changed by the Developer using the setMaxInactiveInterval of the HttpSession interface. The timeout periods used by these methods is defined in seconds. If the timeout period for a session is set to -1, the session will never expire. /EXTRACT EXTRACT !ELEMENT session-timeout (#PCDATA) !-- The mime-mapping element defines a mapping between an extension and a mime type. -- /EXTRACT Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
How to disable sessions timeout?
Does removing the appropriate lines in server.xml would make my sessions lifetime? --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
one session per user?
Hi, I'm having troubles to understand how really sessions are working. I'm using a servlet to handle every client requests and I'm using jsp session to display various objects between frames, such as: HttpSession session = req.getSession(false); Toto toto = session.getAttribute("toto"); if (toto.getName() == "mike") toto.setInfotoDisplay("Hi mike, waza?"); else if (toto.getName() == "alain") toto.setInfotoDisplay("Tcho alain, ca boom?"); ... session.setAttribute("toto", toto); My concern is that I really thought that the object I get with "getAttribute" on sessions were attached to the according user. But apparently not, it looks like my object Toto is shared amongst my clients and thus everything is f up ;-( Any idea how I could stick a session per user? thanx, --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Monitor memory and CPU usage of servlets from inside of Tomcat
Emil Genov wrote: Hey 10x I think everything is OK. Once again 10x very much I appreciate your help best regards Emil Genov Any chance to have it work on TomCat3.2? --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: one session per user?
fumitada wrote: Hi there, First, Do u know how to code Java ? (No offence) I give u some tips... ;-) been coding java for ages ... Although you're right my examples are full of mistakes but I wrote it quick the main goal was to give the idea of the process. --mike nb: '==' is quicker to write than equals ;-) HttpSession session = req.getSession(false); Toto toto = session.getAttribute("toto"); U didn't cast up there. // should be Toto toto = (Toto) session.getAttribute("toto"); if (toto.getName() == "mike") == is for C language if you wanna know whether both letters are same. // should be toto.getName().equals("mike"); toto.setInfotoDisplay("Hi mike, waza?"); else if (toto.getName() == "alain") Here too. toto.setInfotoDisplay("Tcho alain, ca boom?"); ... session.setAttribute("toto", toto); Maybe your problem is not session, but your coding. Probably you gotta learn syntax first...(No offence) Fumitada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Monitor memory and CPU usage of servlets from inside of Tomcat
shlomi sarfati wrote: Sure it is working fine on mine 3.2.1 tomcat it is even easier to config Thanx. I'll immediatly try it ;-) I've downloaded this file http://rue.nolimits.ro/downloads/rue-tomcat-0.52.tgz. Is it also working with 3.2.1 tomcat? In the readme file, it says: a). In order to make this sensors available to RUE you have to copy the rue-tomcat-x.x.jar file to the RUE lib directory. It is not necessarily to include the jar in the RUE classpath, as all the jar files from the RUE directory will be automatically added. b). Also copy the rue-x.x.jar, jndi.jar, rmiregistry.jar,capsapi.jar and providerutil.jar (from RUE) and the rue-tomcat-x.x.jar file in the Tomcat lib directory. You have to make this two packages available to Tomcat so you either add this packages to your CLASSPATH variable or you can modify the tomcat.sh or tomcat.bat file and add them manually to the Tomcat classpath. I understand b) but I'm not quiet sure for a): I suppose rue-tomcat-x.x.jar is delivered with rue-tomcat-0.52.tgz. so why should (re)copy it in its lib dir? Unless the RUE directory must be created somewhere nearby the lib dir of tomcat? Thanx, --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Monitor memory and CPU usage of servlets from inside of Tomcat
Hi, I'm almost done with RUE but the RMI part is not clear at all. Is it RUE which needs a RMI server or is it for tomcat ('d be weird...). Id it for RUE, why the 2 command lines (rmiregistry java ...) are not added in the start scripts? Do we need to specify a port? What remote interface class should we be running? I must admit i'm a bit confused ;-( Help please ;-) --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How to set apache so it starts from index.jsp?
Hi, Could you please tell us how you solved it? I'm having the same pb here ;-( Thanx, --mike Wojciech Wasowicz wrote: Dave Newton wrote: Question like in Subject. I've tried to replace index.html with index.jsp _at_the_end_ of httpd.conf and it doesn't work. (I use mod_jk to connect to tomcat) Has someone any clues? I mean - in the root directory of apache. Do you mean have Apache look for an index.jsp before anything else by using the DirectoryIndex httpd.conf directive? If so, that's an Apache question, not Tomcat. Dave Yes - it is what I mean - I've sent it here bacause configuring apache with mod_jk.conf-auto gives good results in aliased subdirectory - and it gives bad results in apache documant root directory. (good result - to set index.jsp as welcome page) I've believed that is issue of communication between apache and tomcat. If not - I'm sorry, I didn't mean harasing you with mails which are out of subject of this list. In meantime I've solved this. regards Wojtek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Out of memory error
Passing -mx256m to your java command would certainly solve your pb, although it is not a solution ;-( --mike "Jurrius, Mark" wrote: Using Apache and Tomcat 3.2 I'm getting an out of memory error. Tomcat was installed on a HP Unix box, version 10.2 and using 128 MB memory. Below is the part of the error message. Is this a thread problem? Thanks in advance. at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi led Code) at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code) at java.lang.Thread.run(Compiled Code) java.lang.OutOfMemoryError at org.apache.tomcat.core.BufferedServletOutputStream.init(Compiled Code) Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
SOLVED: open_socket, connect() failed errno = 146 (WAS upgrading to mod_jk ajp13 won't work)
I solved my problem by removing the work/* directories before launching tomcat apache. --mike mike niemaz wrote: Just to add I kepp getting this error in tail mod_jk.log: [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 Maybe I should recompile my mod_jk.so --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
unable to use ajp13 ...
I can't figure out how to make tomcat use ajp13. The mod_jk-auto file keeps assigning ajp12 to each of my contexts ;-( Any ideas? --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: unable to use ajp13 ...
CPC Livelink Admin wrote: You need to make a copy of mod_jk-auto because it will alwys be generated with ajp12 connections. So make a copy, mod it to use ajp13, and refer apache to your copy instead of the auto file. -Original Message- From: Barclay, Tom [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 10:45 AM To: '[EMAIL PROTECTED]' Subject: RE: unable to use ajp13 ... Did you set the AJP13 protocol in the JkMount directives? Hi, Yes I set up the JkMount directives in mod_jk.conf file such as: JkMount /docsoul/servlet/* ajp13 JkMount /docsoul/jsp/*.jsp ajp13 This mod_jk.conf is a copy of the auto generated mod_jk.conf-auto with some modifications (ajp12 changed by ajp13, some noisy mounted context removed (like .cvsignore, CVS!!!), and more ...). And there's a link to it in my http.conf such as: Include /home/niemaz/DocumentSoul/build/tomcat/conf/mod_jk.conf But I'm not sure ajp13 is really used indeed How could I check this out? Thanx, --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: unable to use ajp13 ...
Regis Muller wrote: There should be something like 2001-01-17 10:27:14 - PoolTcpConnector: Starting Ajp13ConnectionHandler on 8009 in your tomcat window There is. But it does not mean that this handler is used to my X context, does it? How can I be real sure that my X context (and according req) is/are uploaded through this ajp13 handler? --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
HELP: upgrading to mod_jk ajp13 won't work ;-((((
Hi, I'm getting crazy ;- I'm trying to upgrade my lousy ajp12 mod_jserv config but I'm struggling like hell. Although I can feel slight improvements in my quest, I finally end up with my server not finding my servlets classes ;- Here's what I did: - compiled mod_jk.so, put it in libexec - Inserted next lines into httpd.conf: LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c Include /home/niemaz/DocumentSoul/build/tomcat/conf/tomcat.conf Include /home/niemaz/DocumentSoul/build/tomcat/conf/mod_jk.conf-auto' - Updated tomcat.conf: every jserv calls were commented out somehow replaced by some jkMount calls .. which could be the weak point (See attached files) - The next lines were inserted into server.xml: Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/ Parameter name="port" value="8009"/ /Connector May I add that I got this warning when compiling mod_jk.so: ../jk/jk_jni_worker.c:764: warning: #warning --- ../jk/jk_jni_worker.c:765: warning: #warning NO JAVA 2 HEADERS! SUPPORT FOR JAVA 2 FEATURES DISABLED ../jk/jk_jni_worker.c:766: warning: #warning --- So how do I make it find my servlets classes? I'm desperate ;-((( Thanx ;-) --mike ## ## httpd.conf -- Apache HTTP server configuration file ## # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://www.apache.org/docs/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # After this file is processed, the server will look for and process # /home/niemaz/DocumentSoul//conf/apache/srm.conf and then /home/niemaz/DocumentSoul//conf/apache/access.conf # unless you have overridden these with ResourceConfig and/or # AccessConfig directives here. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with "/" (or "drive:/" for Win32), the # server will use that explicit path. If the filenames do *not* begin # with "/", the value of ServerRoot is prepended -- so "logs/foo.log" # with ServerRoot set to "/usr/local/apache" will be interpreted by the # server as "/usr/local/apache/logs/foo.log". # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerType is either inetd, or standalone. Inetd mode is only supported on # Unix platforms. # ServerType standalone # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at URL:http://www.apache.org/docs/mod/core.html#lockfile); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot "/opt/Misc/apache_1.3.12/" # # The LockFile directive sets the path to the lockfile used when Apache # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at # its default value. The main reason for changing it is if the logs # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL # DISK. The PID of the main server process is automatically appended to # the filename. # LockFile /home/niemaz/DocumentSoul//logs/httpd.lock # # PidFile: The file in which the server should record its process # identification number when it starts. # PidFile /home/niemaz/DocumentSoul//logs/httpd.pid # # ScoreBoardFile: File used to store internal server process information. # Not all architectures require this. But if yours does (you'll know because # this
Re: HELP: upgrading to mod_jk ajp13 won't work ;-((((
Just to add I kepp getting this error in tail mod_jk.log: [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 Maybe I should recompile my mod_jk.so --mike mike niemaz wrote: Hi, I'm getting crazy ;- I'm trying to upgrade my lousy ajp12 mod_jserv config but I'm struggling like hell. Although I can feel slight improvements in my quest, I finally end up with my server not finding my servlets classes ;- Here's what I did: - compiled mod_jk.so, put it in libexec - Inserted next lines into httpd.conf: LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c Include /home/niemaz/DocumentSoul/build/tomcat/conf/tomcat.conf Include /home/niemaz/DocumentSoul/build/tomcat/conf/mod_jk.conf-auto' - Updated tomcat.conf: every jserv calls were commented out somehow replaced by some jkMount calls .. which could be the weak point (See attached files) - The next lines were inserted into server.xml: Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/ Parameter name="port" value="8009"/ /Connector May I add that I got this warning when compiling mod_jk.so: ../jk/jk_jni_worker.c:764: warning: #warning --- ../jk/jk_jni_worker.c:765: warning: #warning NO JAVA 2 HEADERS! SUPPORT FOR JAVA 2 FEATURES DISABLED ../jk/jk_jni_worker.c:766: warning: #warning --- So how do I make it find my servlets classes? I'm desperate ;-((( Thanx ;-) --mike ## ## httpd.conf -- Apache HTTP server configuration file ## # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://www.apache.org/docs/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # After this file is processed, the server will look for and process # /home/niemaz/DocumentSoul//conf/apache/srm.conf and then /home/niemaz/DocumentSoul//conf/apache/access.conf # unless you have overridden these with ResourceConfig and/or # AccessConfig directives here. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with "/" (or "drive:/" for Win32), the # server will use that explicit path. If the filenames do *not* begin # with "/", the value of ServerRoot is prepended -- so "logs/foo.log" # with ServerRoot set to "/usr/local/apache" will be interpreted by the # server as "/usr/local/apache/logs/foo.log". # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerType is either inetd, or standalone. Inetd mode is only supported on # Unix platforms. # ServerType standalone # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at URL:http://www.apache.org/docs/mod/core.html#lockfile); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot "/opt/Misc/apache_1.3.12/" # # The LockFile directive sets the path to the lockfile used when Apache # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at # its default value. The main reason f
off topic: jsp for xemacs?
Any idea of where I could find this mode? Thanx, --mike
redirection
Hi, What's the best way to redirect a web page content (String) into a jsp file? I suppose I could use the getAttribute way include the result in a jsp squeleton but isn't there any better way to do that? Thanx, --mike nb: sorry for the off-topic ;-(
Re: [ANNOUNCE] Tomcat 4.0 Milestone 4
"Craig R. McClanahan" wrote: We're pleased to announce the availabililty of milestone 4 of the Tomcat 4.0 servlet container and JSP engine. Compared to milestone 3, this release reflects the following changes: [...] Is this release only working in standalone mode? --mike
Re: destroy() method invocation
Hi, "Craig R. McClanahan" wrote: You don't ... and you should NOT ... call destroy() on your servlet instance. Yes I understand that. I just meant to invoke the detroy method indirectly when launcing the shutdown tomcat script. Tomcat calls it for you when it is shut down normally. Failure to do so is a bug in Tomcat -- which may well be true in 3.1, but not in 3.2 or 4.0. OK, I'll check this out. For info, how do I know which version I have ;-) --mike
catalina.sh IS tomcat.sh ?
I'm updating jakarta to 4.0 and i noticed that some scripts (and more?) has disapeared, which can be quiet crtitical since I had modified some ... So is catalina sh script the old tomcat.sh? Any more noticeable diffs? Thanx, --mike
Re: catalina.sh IS tomcat.sh ?
"Craig R. McClanahan" wrote: For the purposes of starting up Tomcat 4.0, this is correct -- use catalina.sh or catalina.bat instead of tomcat.sh / tomcat.bat. Any more noticeable diffs? Quite a few. One of the primary reasons that Tomcat 4.0 is still "pre-alpha" is (incomplete or missing) documentation -- the code quality is getting there :-). Interesting differences: * No web connectors yet, only runs stand alone (this is being actively worked on). Thank you Craig. I'm using TomCat on Apavhe so i guess I shall wait for the web connectors ;-) --mike
destroy() method invocation
Could I dare to repost my question, for which I'd appreciate any kind oh help ;-) --mike Hi all, I would like to invoke the servlet detroy() method when I stop the tomcat server, to make some clean up. How do I do that? Thanx, --mike
Re: AW: AW: destroy() method invocation
"Merdes, Matthias" wrote: hi mike, Hi Matthias do you call super.destroy() within your own destroy()? No but this is not the pb. It is not invoked. also, are you sure you have the exact signature? Well, it's a pretty simple signature but I shall double check ;-) i cannot imagine that tomcat should have such a basic lifecylce bug... Me never, but maybe we are misunderstanding the activation process of this method... Anybody? --mike