RE: Symbolic links with Tomcat 5.028
Hello, I use alloLinking in my webapp and it works. My server.xml file has this context: Context path= docBase=/home/web cookies=true debug=0 workDir=/home/web/tmp reloadable=false swallowOutput=true useNaming=false allowLinking=true Regards Carlos From: Franck Lefebure [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 19 de Janeiro de 2005 14:45 To: tomcat-user@jakarta.apache.org Subject: Symbolic links with Tomcat 5.028 Hi, I'm not able to follow Symbolic Links with Tomcat 5.028 My server.xml looks like: DefaultContext Resources className=org.apache.naming.resources.FileDirContext allowLinking=true caseSensitive=false docBase=/ /DefaultContext Context path=/webteam docBase=webteam swallowOutput=true Resources className=org.apache.naming.resources.FileDirContext allowLinking=true caseSensitive=false docBase=/ /Context But it doesn't work, I put some trace in the file() methode of org.apache.naming.resources.FileDirContext, If I echo the property allowLinking It appears false Some help maybe Thanks -- Franck Lefebure Orange Caraibe IMPORTANT. CONFIDENTIEL : Les informations contenues dans ce message sont confidentielles et peuvent être protégées par la loi. Ce message est établi à l'intention exclusive de ses destinataires. Si vous recevez ce message par erreur, toute lecture, exploitation ou transmission des informations contenues dans ce message est interdite. Merci de prévenir l'expéditeur et de supprimer de votre ordinateur le message et tous les fichiers éventuellement attachés. Tout message électronique est susceptible d'altération. Orange Caraïbe décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié ; de même, il appartient au destinataire de s'assurer de l'absence de tout virus. http:/www.orangecaraibe.com http://www.orangecaraibe.com/ IMPORTANT. CONFIDENTIALITY : this e-mail is confidential and meant for only the intended recipients of the transmission, and may be a communication privileged by law. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify the sender immediately of the error by return e-mail and please delete this message and any attachments from your system. Thank you in advance for your cooperation. E-mails are susceptible to alteration. Orange Caraïbe shall not be liable for the message if altered, changed or falsified. the recipient should ensure they are actually virus free. Orange Caraïbe may monitor all incoming and outgoing e-mails in line with current legislation. http:/www.orangecaraibe.com http://www.orangecaraibe.com/ -- Esta mensagem e quaisquer anexos são confidenciais, podendo conter informação sujeita a sigilo profissional ou qualquer outro dever de confidencialidade ou de segredo. Caso não seja o destinatário deste e-mail, não deverá usar, copiar ou revelar o seu conteúdo, solicitando-se que contacte o emissor com a brevidade possível e apague esta mensagem. Obrigado pela colaboração. -- The information transmitted is intended for the person or entity to which it is addressed only and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Thank you for your cooperation.
RE: web.xml parsing error SEVERE
Thank you François! Reinstalled tomcat and it worked!! Regards Carlos -Original Message- From: Francois JEANMOUGIN [mailto:[EMAIL PROTECTED] Sent: segunda-feira, 17 de Janeiro de 2005 16:12 To: Tomcat Users List Subject: RE: web.xml parsing error SEVERE java.lang.ClassNotFoundException: org.apache.catalina.Container Ouch! Are you sure your tomcat installtion is OK? You could have a version mismatch (between TC4 and TC5) or a jar found at two places or any other reason why tomcat can't find this class. This is not an XML issue, this is a class loading problem. François. Décharge / Disclaimer Ce message et toutes les pièces jointes (ci-après le message) sont confidentiels et établis à l'intention exclusive des destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique étant susceptible d'altération, 123Multimédia et ses filiales déclinent toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. This message and any attachments (the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Therefore neither 123Multimédia nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Esta mensagem e quaisquer anexos são confidenciais, podendo conter informação sujeita a sigilo profissional ou qualquer outro dever de confidencialidade ou de segredo. Caso não seja o destinatário deste e-mail, não deverá usar, copiar ou revelar o seu conteúdo, solicitando-se que contacte o emissor com a brevidade possível e apague esta mensagem. Obrigado pela colaboração. -- The information transmitted is intended for the person or entity to which it is addressed only and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Thank you for your cooperation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat4 + postgresql jdbc
Hi, Is it possible that the database connection credentials are not right? Have you tried connecting to the database from the standard client with the same username and password? Regards Carlos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Oege de Moor Sent: terça-feira, 18 de Janeiro de 2005 16:27 To: tomcat-user@jakarta.apache.org Subject: tomcat4 + postgresql jdbc I'm attempting to install tomcat4 + postgresql jdbc under Debian linux. I've put the jdbc jar at /usr/share/tomcat4/common/lib/pg74.215.jdbc3.jar When I attempt to connect to a database via jsp, I get java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve) I've put a file test2.jsp at /var/lib/tomcat4/webapps/ROOT, with the following contents: - [EMAIL PROTECTED] import=java.sql.*% % // Define the connection Connection con = null; // Check that the DB2Driver class is available Class.forName(org.postgresql.Driver); try { // Attempt to connect to the Database con = DriverManager.getConnection(jdbc:postgresql:demodb,oege,xxx); out.println(The test is complete, your Database has been contacted); } // Make sure to catch any exceptions catch (SQLException e) { out.println(e.getMessage()); } % --- When I point my web browser at http://localhost:8180/test2.jsp, the above exception occurs. The full stack trace is appended below. I've attempted adding this line to the security policy file in /etc/tomcat4/policy.d/99examples.policy: grant codeBase file:/usr/share/tomcat4/common/lib/pg74.215.jdbc3.jar!/- { permission java.security.AllPermission; }; Any help would be much appreciated! -Oege Something unusual has occured to cause the driver to fail. Please report this exception: Exception: java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve) Stack Trace: java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:524) at java.lang.SecurityManager.checkConnect(SecurityManager.java:1023) at java.net.InetAddress.getAllByName0(InetAddress.java:1000) at java.net.InetAddress.getAllByName0(InetAddress.java:981) at java.net.InetAddress.getAllByName(InetAddress.java:975) at java.net.InetAddress.getByName(InetAddress.java:889) at java.net.InetSocketAddress.(InetSocketAddress.java:114) at java.net.Socket.(Socket.java:124) at org.postgresql.core.PGStream.(PGStream.java:47) at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:197) at org.postgresql.Driver.connect(Driver.java:139) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at org.apache.jsp.test2_jsp._jspService(test2_jsp.java:51) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:51) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:129) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:125) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at
please help -SEVERE: Parse error in application web.xml - webapp does not start after cpanel upgrade
After upgrading cpanel on the server, tomcat throws the error message attached. I swear I did not change a thing in my web.xml file. Never the less tomcat says I now have an error in the /servlet tag. I forward the error and the contects of my web.xml. please help, if you can. Sincerely yours Carlos This is the error: Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 949 ms Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.ContextConfig defaultConfig INFO: No default web.xml Jan 17, 2005 12:01:28 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.ClassNotFoundException: org.apache.catalina.Container at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1340) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1189) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:243) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk nown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn 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.ContextConfig.applicationConfig(ContextConfi g.java:263) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:624) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j ava:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4290 ) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) at org.apache.catalina.core.StandardService.start(StandardService.java:480) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.ContextConfig applicationConfig SEVERE: Parse error in application web.xml java.lang.ClassNotFoundException: org.apache.catalina.Container at org.apache.commons.digester.Digester.createSAXException(Digester.java:25 40) at org.apache.commons.digester.Digester.createSAXException(Digester.java:25 66) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk nown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(Unknown Source) at
web.xml parsing error SEVERE
Dear subscribers, I am having a strange problem starting tomcat. Catalina.out says I have an error at the closing tag /servlet Any clue on what the problem might be? Your comments will be most appreciated. Sincerely yours Carlos The error reads as follows: Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 949 ms Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.ContextConfig defaultConfig INFO: No default web.xml Jan 17, 2005 12:01:28 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.ClassNotFoundException: org.apache.catalina.Container at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1340) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1189) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:243) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk nown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn 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.ContextConfig.applicationConfig(ContextConfi g.java:263) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:624) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j ava:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4290 ) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) at org.apache.catalina.core.StandardService.start(StandardService.java:480) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.ContextConfig applicationConfig SEVERE: Parse error in application web.xml java.lang.ClassNotFoundException: org.apache.catalina.Container at org.apache.commons.digester.Digester.createSAXException(Digester.java:25 40) at org.apache.commons.digester.Digester.createSAXException(Digester.java:25 66) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk nown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn Source)
RE: web.xml parsing error SEVERE
One more thing you might want to consider: The web app was working fine until the server admin did an upgrade on the cpanel app that's what started this all... -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: segunda-feira, 17 de Janeiro de 2005 15:38 To: Tomcat Users List Subject: RE: web.xml parsing error SEVERE personally it looks ok to me ;) probably a character out of place. i would try this .. 1) run it through an XML validator 2) gradually remove elements and see when the error goes away. start with the servlet mappings and servlets and continue ... A. -Original Message- From: Carlos Martins [mailto:[EMAIL PROTECTED] Sent: 17 January 2005 15:31 To: tomcat-user@jakarta.apache.org Subject: web.xml parsing error SEVERE Dear subscribers, I am having a strange problem starting tomcat. Catalina.out says I have an error at the closing tag /servlet Any clue on what the problem might be? Your comments will be most appreciated. Sincerely yours Carlos The error reads as follows: Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 949 ms Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.ContextConfig defaultConfig INFO: No default web.xml Jan 17, 2005 12:01:28 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.ClassNotFoundException: org.apache.catalina.Container at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC lassLoader .java:1340) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC lassLoader .java:1189) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:243) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndE lement(Unk nown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment ContentDis patcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu ment(Unkno wn 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.ContextConfig.applicationConfig(Co ntextConfi g.java:263) at org.apache.catalina.startup.ContextConfig.start(ContextConfig. java:624) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(Conte xtConfig.j ava:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L ifecycleSu pport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext .java:4290 ) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) at org.apache.catalina.core.StandardService.start(StandardService .java:480) at org.apache.catalina.core.StandardServer.start(StandardServer.j ava:2313) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess orImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth odAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.ContextConfig applicationConfig SEVERE: Parse error in application web.xml java.lang.ClassNotFoundException: org.apache.catalina.Container
Deployment with the manager app (manifest question)
Dear Sir / Madam, I am testing the deployment of a webapp that needs some java extensions (jdbc connectors) which are not available on the server. I specified the optional packages and their versions in the MANIFEST.MF file included in the WAR file as I suppose one has to. Surprisingly, the manager app does not report any error when I deploy the war file... but, of course, the deployed application won't start because it does not have all the needed extensions. I am using tomcat version 5.0.19 and my MANIFEST file contents are as follows: Manifest-Version: 1.2 Name: CMECP/fo Class-Path: servlet-api.jar activation.jar mail.jar com.mysql.jdbc Extension-List: activation mail mysqljdbc servlet activation-Extension-Name: javax.activation activation-Specification-Version: 1.0 activation-Implementation-Version: 1.0.2 activation-Implementation-Vendor-Id: com.sun activation-Implementation-URL: http://java.sun.com/products/stdext/activation.jar mail-Extension-Name: javax.mail mail-Specification-Version: 1.3 mail-Implementation-Version: 1.3.1 mail-Implementation-Vendor-Id: com.sun mail-Implementation-URL: http://java.sun.com/products/stdext/mail.jar mysqljdbc-Extension-Name: com.mysql.jdbc mysqljdbc-Specification-Version: 3.0 mysqljdbc-Implementation-Version: 3.0.10 mysqljdbc-Implementation-Vendor-Id: com.mysql mysqljdbc-Implementation-URL: http://www.mysql.com/products/mysql-connector-java-3.0.10-stable- bin.jar servlet-Extension-Name: javax.servlet servlet-Specification-Version: 2.4 servlet-Implementation-Version: 2.4.public_draft servlet-Implementation-Vendor-Id: org.apache servlet-Implementation-URL: http://jakarta.apache.org/products/servlet-api.jar Do you detect any changes I might do to the MANIFEST.MF file so that Tomcat's manager stops it from being deployed? I thank you in advance for any comments you may send. Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with Tomcat 4.1.0 IIS
Title: Problem with Tomcat 4.1.0 IIS Hello, I have recently upgraded to Tomcat 4.1.0 Also upgraded my isapi_redirect.dll with the version located in http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/win32/i386/ I have IIS as web server and Tomcat listening to redirections through the Coyote JK 2 connector. Now my web site is not working - only some pages are not displayed and the following message is placed in the log file: Connection reset by peer: socket write error But if I run my web site through the HTTP1.1 connector of Tomcat (port 8080) it works fine - all pages are properly displayed. Any clues? Thank you very much Carlos _ Carlos Martins [EMAIL PROTECTED] telf: 932 308 527 _ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat speed vs Apache-Tomcat
No actual experience here, because i only have a system with Servlets and none to comepare it to. But i stress tested it (with Jakarta's JMeter) and was very happy with the performance i got from it. Why don't you do the same test? Carlos -Original Message- From: Rick Fincher [mailto:[EMAIL PROTECTED]] Sent: sexta-feira, 3 de Maio de 2002 17:04 To: Tomcat Users List Subject: Tomcat speed vs Apache-Tomcat Hi All, Does anybody have any experience with the speed of Tomcat versus an Apache-Tomcat combination? I know Apache has a lot of features not in Tomcat, but just in the area of relative performance, how does Tomcat fare? I know this is also highly dependent on the mix of html and jsp pages, but what are your ballpark experiences? Rick -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Directory Listing per web-app
through the native web server's configuration? I have this done with IIS, that i use to serve static web pages. -Original Message- From: Chad Perry [mailto:[EMAIL PROTECTED]] Sent: quinta-feira, 18 de Abril de 2002 18:53 Subject: Directory Listing per web-app I know I can turn off directory listing for the entire tomcat 4.0.3 server via the conf/web.xml: servlet . . . param-namelistings/param-name param-valuefalse/param-value . . /servlet But how can one turn it off on a per web-app, per directory basis? Thanks -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
FW: memory leak?
Title: memory leak? Hello, Should the memory usage of the Tomcat.exe process be the same before and after a request is processed? My windows task manager indicates that the Tomcat.exe process grabs more and more memory as requests are processed. Is this a memory leak or is it a normal situation that will regulate itself after automatic garbage collection? If it is a memory leack I don't seem to understand what is causing it, once the only global variable in my servlet is the context class of the servlet itself. Thank you Carlos -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
memory leak?
Title: memory leak? Hello, Should the memory usage of the Tomcat.exe process be the same before and after a request is processed? My windows task manager indicates that the Tomcat.exe process grabs more and more memory as requests are processed. Is this a memory leak or is it a normal situation that will regulate itself after automatic garbage collection? If it is a memory leack I don't seem to understand what is causing it, once the only global variable in my servlet is the context class of the servlet itself. Thank you Carlos -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.3.1 and JDK 1.4
Yep. i'm using it. actually, i'm using tomcat 4.0.2 with JDK 1.4, and it's working fine. -Original Message- From: Michel COTE [mailto:[EMAIL PROTECTED]] Sent: sexta-feira, 12 de Abril de 2002 11:39 To: '[EMAIL PROTECTED]' Subject: Tomcat 3.3.1 and JDK 1.4 What do you think about using Tomcat 3.3.1 with the new Sun's JDK 1.4. Does anybody already uses it ? Thanks for any help. Michel COTE Coopérateurs de Normandie Picardie Tel : 232111086 email : [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
memory leak?
Title: memory leak? Hello, Should the memory usage of the Tomcat.exe process be the same before and after a request is processed? My windows task manager indicates that the Tomcat.exe process grabs more and more memory as requests are processed. Is this a memory leak or is it a normal situation that will regulate itself after automatic garbage collection? If it is a memory leack I don't seem to understand what is causing it, once the only global variable in my servlet is the context class of the servlet itself. Thank you Carlos -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How can I automatically start a servlet in a specific time?
Kelly, Boa pergunta... não sei nenhuma maneira directa, mas podes sempre criar um servlet tipo scheduler que arranca automáticamente com o tomcat e que a determinadas horas arranca outros servlets. Carlos -Original Message- From: Kelly Prudente Pereira [mailto:[EMAIL PROTECTED]] Sent: quarta-feira, 10 de Abril de 2002 23:04 To: '[EMAIL PROTECTED]' Subject: How can I automatically start a servlet in a specific time? Can anyone answer my question? How can I automatically start a servlet in a specific time? For example: at midnight. I don't want to start it when I start my webserver. Thanks in advanced, Kelly Prudente Pereira Analista de Sistemas - NDS [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Fóton® Informática e Serviços Fone: (61) 328 5060 R.: 221 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How can I automatically start a servlet in a specific time?
nope, nunca fiz... tens a certeza que é um servlet que queres correr a determinada hora? É que um servlet é uma classe específica para respoder a pedidos remotos (por http). Se o programa que queres correr a determinadas horas não tem nada a ver com pedidos de http, então podes fazer uma classe normal de java e corre-la a determinadas horas usando o scheduler do windows ou o cron to linux. -Original Message- From: Kelly Prudente Pereira [mailto:[EMAIL PROTECTED]] Sent: quarta-feira, 10 de Abril de 2002 23:16 To: 'Tomcat Users List' Subject: RES: How can I automatically start a servlet in a specific time? Não sei bem se entendi. Eu uso o load-on-startup para carregar uma servlet e esta fica responsável por chamar outra num determinado horário? Já fez isso? Obrigada por responder. -Mensagem original- De: Carlos Martins [mailto:[EMAIL PROTECTED]] Enviada em: quarta-feira, 10 de abril de 2002 19:04 Para: Tomcat Users List Assunto: RE: How can I automatically start a servlet in a specific time? Kelly, Boa pergunta... não sei nenhuma maneira directa, mas podes sempre criar um servlet tipo scheduler que arranca automáticamente com o tomcat e que a determinadas horas arranca outros servlets. Carlos -Original Message- From: Kelly Prudente Pereira [mailto:[EMAIL PROTECTED]] Sent: quarta-feira, 10 de Abril de 2002 23:04 To: '[EMAIL PROTECTED]' Subject: How can I automatically start a servlet in a specific time? Can anyone answer my question? How can I automatically start a servlet in a specific time? For example: at midnight. I don't want to start it when I start my webserver. Thanks in advanced, Kelly Prudente Pereira Analista de Sistemas - NDS [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Fóton® Informática e Serviços Fone: (61) 328 5060 R.: 221 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.0.x and reloading of servlets without restarting server
Hi Brian, I have this configured in my tomcat's server.xml file: Context path=/bus docBase=C:\Documents and Settings\cmartins\My Documents\Tech Dev\java\busJCEdit cookies=true debug=0 workDir=C:\Documents and Settings\cmartins\My Documents\Tech Dev\java\busJCEdit\tmp reloadable=true It seems to work fine. At least whenever i recompile the servlets, the new compiled version seems to start working without having to restart tomcat. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: quarta-feira, 27 de Março de 2002 9:28 To: [EMAIL PROTECTED] Subject: Tomcat 4.0.x and reloading of servlets without restarting server Hello, Please forgive me if this question has been answered in the past, I've found mixed information. Can servlets be reloaded without restarting Tomcat? I've followed the docs and tried several different server.xml config files with no luck. If this has worked for anyone out there would you mind sharing your server.xml config file with me? Thanks in advance, Brian Faivre -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
can Tomcat call classes in JARs?
Title: can Tomcat call classes in JARs? Hello, Is it possible to have tomcat call servlets that are included in a jar file rather than simple class files located in the WEB-INF/classes folder? I'm trying this, by placing the jar file with the classes in that folder, but tomcat does not see to be able to find them... Is there any special configuration that i'm missing? Thanks. Carlos -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
FW: can Tomcat call classes in JARs?
Title: can Tomcat call classes in JARs? BINGO!! thank you very much - it's working fine now! (also my jar file was not properly built, but now it is - sorry - newbie!!) Anyway, a note to reynir: No need to address the full package in the URL - the secret is the servlet declaration made in the web.xml file - i have it like this: servlet-namebusDriver/servlet-name servlet-classbus.busDriver/servlet-classso, when the URL adresses busDriver tomcat knows that the class it should load is really bus.busDriver. Thank you all for your support. regards Carlos -Original Message-From: Carlos Martins Sent: quarta-feira, 27 de Março de 2002 10:02To: Tomcat (E-mail)Subject: can Tomcat call classes in JARs? Hello, Is it possible to have tomcat call servlets that are included in a jar file rather than simple class files located in the WEB-INF/classes folder? I'm trying this, by placing the jar file with the classes in that folder, but tomcat does not see to be able to find them... Is there any special configuration that i'm missing? Thanks. Carlos -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: can Tomcat call classes in JARs?
Reynir, Do you find this method bad? are there perfomance issues? -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: quarta-feira, 27 de Março de 2002 10:23 To: Tomcat Users List Subject: RE: can Tomcat call classes in JARs? sure what ever, if you want to map your servlets into web.xml you can do that, with any name if you like. bye -reynir -Original Message- From: Carlos Martins [mailto:[EMAIL PROTECTED]] Sent: 27. mars 2002 10:20 To: Tomcat (E-mail) Subject: FW: can Tomcat call classes in JARs? BINGO!! thank you very much - it's working fine now! (also my jar file was not properly built, but now it is - sorry - newbie!!) Anyway, a note to reynir: No need to address the full package in the URL - the secret is the servlet declaration made in the web.xml file - i have it like this: servlet-namebusDriver/servlet-name servlet-classbus.busDriver/servlet-class so, when the URL adresses busDriver tomcat knows that the class it should load is really bus.busDriver. Thank you all for your support. regards Carlos -Original Message- From: Carlos Martins Sent: quarta-feira, 27 de Março de 2002 10:02 To: Tomcat (E-mail) Subject: can Tomcat call classes in JARs? Hello, Is it possible to have tomcat call servlets that are included in a jar file rather than simple class files located in the WEB-INF/classes folder? I'm trying this, by placing the jar file with the classes in that folder, but tomcat does not see to be able to find them... Is there any special configuration that i'm missing? Thanks. Carlos -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Problems compiling programs.
Hi Laurence, Copy the servlet.jar file located in your (CATALINA_HOME)\common\lib directory into your (JDK_HOME)\jre\lib\ext where CATALINA_HOME = the folder where you have your Tomcat instalation (ex: c:\program files\Tomcat 4) and JDK_HOME = the folder where your java development kit instalatiojn is located (ex: c:\jsdk14) that should do the trick. Carlos -Original Message- From: Laurence Turpin [mailto:[EMAIL PROTECTED]] Sent: terça-feira, 26 de Março de 2002 10:07 To: [EMAIL PROTECTED] Subject: Problems compiling programs. hi, I know this is probably quite a basic question but I have been trying for ages to sort it out. Please help. I have Windows XP home edition on my PC, and have Jakarta Tomcat 4.03 running with Java 2 sdk1.4.0. I find that I am having trouble compiling programs that have import statements similar to the following import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; The errors are occuring with the servlet imports if I compile using javac login.java That is to say the two import statements below are failing import javax.servlet.*; import javax.servlet.http.*; The only way I can get the login.java program to compile is by using the following statement. javac -classpath C:\Program Files\Apache Tomcat 4.0\common\lib\xerces.jar; login.java I would really like to avoid having to use such a large statement. Can someone tell me what I need to do so that I can compile my program with a simple line. Surely there is something I can do so that the following will work javac login.java Yours desperately frustrated Laurence J Turpin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.0 IIS Connectors
I have it working fine with the Ajp connector... seems to work fine, so why not use it? -Original Message- From: David LAGARDERE [mailto:[EMAIL PROTECTED]] Sent: sexta-feira, 22 de Março de 2002 10:32 To: [EMAIL PROTECTED] Subject: Tomcat 4.0 IIS Connectors Hello. I've been trying to make Jni connector and Warp connector work with Tomcat 4.0 and IIS 5 without success. Moreover, I cannot find some relevant documentation dealing with it. Do I have to use only Ajp connctors for the time being ? Thanks in advance. David LAGARDERE ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.0 IIS Connectors
Hi David, I'm afraid you're talking to somewhat of a rookie here, because i seem to be far behind your techincal knowledge. The app i setup with tomcat runs based on servlets alone. I don't use JSPs, so i think there's no need for the ontime compiler in my case. I don't know if there is any other option to bridge IIS and Tomcat other than through a TCP/IP connection. Anyway, if i come across information in that matter i'll forward it to you. Carlos -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 4.0.4 and IIS please help?...........
Hello, Could anyone please help me configure this setup? ISS calling Tomcat. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.0.4 and IIS please help?...........
Most helpful!! many thanks! Carlos -Original Message- From: Pedro F Gaspar [mailto:[EMAIL PROTECTED]] Sent: quinta-feira, 21 de Março de 2002 10:21 To: [EMAIL PROTECTED] Subject: Re: Tomcat 4.0.4 and IIS please help?... Check this link: http://www.vacodi.com/howto/tomcat/iisnt/ *** Pedro Gaspar PT Prime DMK / GSV Tel: +351 21 500 41 43 Fax: +351 21 500 45 85 Email: [EMAIL PROTECTED] *** [EMAIL PROTECTED] 03/21/02 09:40 Hello, Could anyone please help me configure this setup? ISS calling Tomcat. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]