Re: Problems starting Tomcat on windows 7 64bit.
I have fixed it, I reinstalled the 64 bit versions of jdk and jre, and removed all the env vars I added and it started right away. Thanks! sharkanana wrote: I've run tomcat so many times before on every one of my computers with no problem, but I just went to do it today on my desktop and am getting an error immediately on the start of the server. I have set catalina_home, classpath, java_home, jre_home, added jdk to path. I have tried many different versions of tomcat and all give the same problem. Any ideas? Here is the debug: Jul 21, 2010 10:50:09 PM com.sun.org.apache.commons.digester.Digester startElement SEVERE: Begin event threw exception java.lang.ClassNotFoundException: org.apache.catalina.core.AprLifecycleListener at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at com.sun.org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252) at com.sun.org.apache.commons.digester.Rule.begin(Rule.java:200) at com.sun.org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java:105) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at com.sun.org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:526) at org.apache.catalina.startup.Catalina.load(Catalina.java:563) 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:597) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:264) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:401) Jul 21, 2010 10:50:09 PM org.apache.catalina.startup.Catalina load WARNING: Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.core.AprLifecycleListener at com.sun.org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at com.sun.org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at com.sun.org.apache.commons.digester.Digester.startElement(Digester.java:1276) at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java:105) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) at
Re: Problems starting Tomcat on windows 7 64bit.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sharkanana, On 7/22/2010 8:34 PM, sharkanana wrote: Here is my server.xml. It is default. Yup, that looks like the default -- or close enough that it doesn't matter what you may have changed. Could you try reinstalling a fresh copy of Tomcat and starting it without using IntelliJIdea or anything like that? Just a vanilla Tomcat install, when you start it you should get the default webapps like the manager and ROOT. You should get the it works default Tomcat page if you browse to http://host:8080/ If that works, then try to deploy your webapps onto it. I'm not sure what you've broken, but it appears that your classpath or other environment has been damaged. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxJ3H8ACgkQ9CaO5/Lv0PBvHQCfUVwIX08NpjzpE6mItaBWfyLy UhYAn3sg/prIQtIiQU6rLzlaretQvVDW =Grrg -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problems starting Tomcat on windows 7 64bit.
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sharkanana, On 7/22/2010 8:34 PM, sharkanana wrote: Here is my server.xml. It is default. Yup, that looks like the default -- or close enough that it doesn't matter what you may have changed. Could you try reinstalling a fresh copy of Tomcat and starting it without using IntelliJIdea or anything like that? And, if you do that, and if you are under Windows 7, make sure that you download the installer, right-click on it for properties, fix the compatibility issues, and then when you execute it, use run as Administrator. Or whatever else is needed to get past the damn UAC.. Honestly, I am not quite sure what one needs/must do with Tomcat, but I've had all kinds of trouble installing and running stuff under Windows 7 because of that kind of thing. UAC is a p. in the a., and I have not yet found the way to completely get rid of it. ... - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problems starting Tomcat on windows 7 64bit.
Well this is the first time I've tried running tomcat on this system, so I am using a vanilla install. I have set JAVA_HOME and JRE_HOME in my env vars, I'm not sure if they should be there or not. I have removed the CLASSPATH var. Other than that I have tried 5.5, 6 and 7 fresh installs and am getting the same errors on startup with each, and I have been trying to start it from the command line. Any other ideas? When I get back to my desktop on monday I will try resetting on my env vars and trying again, then if that fails add them one by one. Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sharkanana, On 7/22/2010 8:34 PM, sharkanana wrote: Here is my server.xml. It is default. Yup, that looks like the default -- or close enough that it doesn't matter what you may have changed. Could you try reinstalling a fresh copy of Tomcat and starting it without using IntelliJIdea or anything like that? Just a vanilla Tomcat install, when you start it you should get the default webapps like the manager and ROOT. You should get the it works default Tomcat page if you browse to http://host:8080/ If that works, then try to deploy your webapps onto it. I'm not sure what you've broken, but it appears that your classpath or other environment has been damaged. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxJ3H8ACgkQ9CaO5/Lv0PBvHQCfUVwIX08NpjzpE6mItaBWfyLy UhYAn3sg/prIQtIiQU6rLzlaretQvVDW =Grrg -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://old.nabble.com/Problems-starting-Tomcat-on-windows-7-64bit.-tp29232948p29252733.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problems starting Tomcat on windows 7 64bit.
On 22/07/2010 04:30, sharkanana wrote: I've run tomcat so many times before on every one of my computers with no problem, but I just went to do it today on my desktop and am getting an error immediately on the start of the server. I have set catalina_home, classpath, In addition to Chuck's reply: no need to set the CLASSPATH, usually a bad idea. p java_home, jre_home, added jdk to path. I have tried many different versions of tomcat and all give the same problem. Any ideas? Here is the debug: Jul 21, 2010 10:50:09 PM com.sun.org.apache.commons.digester.Digester startElement SEVERE: Begin event threw exception java.lang.ClassNotFoundException: org.apache.catalina.core.AprLifecycleListener at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at com.sun.org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252) at com.sun.org.apache.commons.digester.Rule.begin(Rule.java:200) at com.sun.org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java:105) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at com.sun.org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:526) at org.apache.catalina.startup.Catalina.load(Catalina.java:563) 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:597) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:264) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:401) Jul 21, 2010 10:50:09 PM org.apache.catalina.startup.Catalina load WARNING: Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.core.AprLifecycleListener at com.sun.org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at com.sun.org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at com.sun.org.apache.commons.digester.Digester.startElement(Digester.java:1276) at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java:105) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) at
RE: Problems starting Tomcat on windows 7 64bit.
java -version java version 1.6.0_18 Java(TM) SE Runtime Environment (build 1.6.0_18-b07) Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode) javac -version javac 1.6.0_18 Tomcat 7 is the version I'm currently trying to run with, I installed it by extracting the zip file. I'm starting with Intellij and when starting the output is: cmd /c C:\apps\tomcat\bin\catalina.bat run Using CATALINA_BASE: C:\Users\Sharkanana\.IntelliJIdea90\system\tomcat\Unnamed_johnhelfertcomc9e4836f Using CATALINA_HOME: C:\apps\tomcat Using CATALINA_TMPDIR: C:\apps\tomcat\temp Using JRE_HOME:C:\Sun\SDK\jdk\jre\ Using CLASSPATH: C:\apps\tomcat\bin\bootstrap.jar;C:\apps\tomcat\bin\tomcat-juli.jar Connected to the target VM, address: '127.0.0.1:4956', transport: 'socket' Then the debug log that I posted before. I have also attempted starting from outside of Intellij(by running the script files or executables), and am getting the same error. Thanks for your quick replies! John n828cl wrote: From: sharkanana [mailto:sharkan...@gmail.com] Subject: Problems starting Tomcat on windows 7 64bit. I have tried many different versions of tomcat and all give the same problem. So tell us the exact version of *one* Tomcat you tried that has the problem, along with the JRE or JDK version you're using, how you installed Tomcat, and how you're starting it. Just as a guess, it looks like you might be using a server.xml that doesn't come from the version of Tomcat you're trying to run. Try a fresh download and a clean installation and see if that works. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://old.nabble.com/Problems-starting-Tomcat-on-windows-7-64bit.-tp29232948p29238945.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problems starting Tomcat on windows 7 64bit.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 7/22/2010 12:21 AM, Caldarale, Charles R wrote: From: sharkanana [mailto:sharkan...@gmail.com] Subject: Problems starting Tomcat on windows 7 64bit. I have tried many different versions of tomcat and all give the same problem. So tell us the exact version of *one* Tomcat you tried that has the problem, along with the JRE or JDK version you're using, how you installed Tomcat, and how you're starting it. Just as a guess, it looks like you might be using a server.xml that doesn't come from the version of Tomcat you're trying to run. Try a fresh download and a clean installation and see if that works. +1 Sharkanana, can you post your server.xml? Particularly the line that mentions org.apache.catalina.core.AprLifecycleListener? My (stock 6.0.26) server.xml file contains a reference to this class: org.apache.catalina.core.AprLifecycleListener ...and seems to work just fine, though I don't have libapr installed, so I get a warning that APR isn't going to be used. I agree with Pid: you shouldn't be setting the CLASSPATH. If you use catalina.bat or startup.bat to startup your Tomcat, it should be setting CLASSPATH to before it starts. If, however, you have a setenv.bat file that sets the CLASSPATH, you can still break things. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxIe10ACgkQ9CaO5/Lv0PB4vgCcC6tYKq9y/UufE1l80+XBFYr6 5lcAn0Wz/EZV0QdW4A+ACSJB6IgSWp1D =2ilk -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problems starting Tomcat on windows 7 64bit.
Here is my server.xml. It is default. ?xml version='1.0' encoding='utf-8'? !-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -- !-- Note: A Server is not itself a Container, so you may not define subcomponents such as Valves at this level. Documentation at /docs/config/server.html -- Server port=8005 shutdown=SHUTDOWN !--APR library loader. Documentation at /docs/apr.html -- Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / !--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -- Listener className=org.apache.catalina.core.JasperListener / !-- Prevent memory leaks due to use of particular java/javax APIs-- Listener className=org.apache.catalina.core.JreMemoryLeakPreventionListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / !-- Global JNDI resources Documentation at /docs/jndi-resources-howto.html -- GlobalNamingResources !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources !-- A Service is a collection of one or more Connectors that share a single Container Note: A Service is not itself a Container, so you may not define subcomponents such as Valves at this level. Documentation at /docs/config/service.html -- Service name=Catalina !--The connectors can use a shared executor, you can define one or more named thread pools-- !-- Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=150 minSpareThreads=4/ -- !-- A Connector represents an endpoint by which requests are received and responses are returned. Documentation at : Java HTTP Connector: /docs/config/http.html (blocking non-blocking) Java AJP Connector: /docs/config/ajp.html APR (HTTP/AJP) Connector: /docs/apr.html Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / !-- A Connector using the shared thread pool-- !-- Connector executor=tomcatThreadPool port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / -- !-- Define a SSL HTTP/1.1 Connector on port 8443 This connector uses the JSSE configuration, when using APR, the connector should be using the OpenSSL style configuration described in the APR documentation -- !-- Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true maxThreads=150 scheme=https secure=true clientAuth=false sslProtocol=TLS / -- !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 protocol=AJP/1.3 redirectPort=8443 / !-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual host). Documentation at /docs/config/engine.html -- !-- You should set jvmRoute to support load-balancing via AJP ie : Engine name=Catalina defaultHost=localhost jvmRoute=jvm1 -- Engine name=Catalina defaultHost=localhost !--For clustering, please take a look at documentation at: /docs/cluster-howto.html (simple how to) /docs/config/cluster.html (reference documentation) -- !-- Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster/ -- !-- This Realm uses the UserDatabase configured in the global JNDI resources under the key UserDatabase. Any edits that are performed against this UserDatabase are immediately available for use by the Realm. --
RE: Problems starting Tomcat on windows 7 64bit.
From: sharkanana [mailto:sharkan...@gmail.com] Subject: Problems starting Tomcat on windows 7 64bit. I have tried many different versions of tomcat and all give the same problem. So tell us the exact version of *one* Tomcat you tried that has the problem, along with the JRE or JDK version you're using, how you installed Tomcat, and how you're starting it. Just as a guess, it looks like you might be using a server.xml that doesn't come from the version of Tomcat you're trying to run. Try a fresh download and a clean installation and see if that works. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org