This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 120374 - Tomcat6 throwing exception when starting
Summary: Tomcat6 throwing exception when starting
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-29 16:44 UTC by thekurgan
Modified: 2007-11-01 10:11 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
nb log files (47.65 KB, application/octet-stream)
2007-10-30 22:40 UTC, thekurgan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thekurgan 2007-10-29 16:44:06 UTC
I have tried to create a simple Visual Web Project that contains a tree and 3 tree nodes.  When I try to run the 
application on a tomcat6 server(default install) it fails when trying to start with this exception:

Using CATALINA_BASE:   C:\Documents and Settings\e0119990\.netbeans\6.0beta2\apache-tomcat-6.0.13_base
Using CATALINA_HOME:   C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0
Using CATALINA_TMPDIR: C:\Documents and Settings\e0119990\.netbeans\6.0beta2\apache-tomcat-6.0.13_base\temp
Using JRE_HOME:        C:\Program Files\Java\jdk1.6.0_01
ERROR reading C:\Documents and Settings\e0119990\.netbeans\6.0beta2\apache-tomcat-6.0.13_base\conf\server.xml
At Line 8 /Server/Listener/ SSLEngine=on className=org.apache.catalina.core.AprLifecycleListener 

Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.core.AprLifecycleListener
java.lang.ClassNotFoundException: org.apache.catalina.core.AprLifecycleListener
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
        at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
        at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:419)
        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221)
        at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:595)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement
(XMLDocumentFragmentScannerImpl.java:747)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
(XMLDocumentFragmentScannerImpl.java:1477)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
        at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
        at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
        at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:364)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:305)
        at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
        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.main(Bootstrap.java:243)


I have made no changes whatsoever.  This is a complete default install of Netbeans6.0 beta2.
Comment 1 Petr Hejl 2007-10-29 19:12:23 UTC
Can you provide your project for evaluation? What is the exact version/bundle of the installed netbeans?
Comment 2 Petr Hejl 2007-10-29 20:09:54 UTC
Is it possible to start tomcat _without_ any application?
Comment 3 thekurgan 2007-10-29 20:30:25 UTC
Tomcat6 will not start with any applications.  I'm using Netbeans6.0 beta 2.
Comment 4 Petr Hejl 2007-10-29 21:05:26 UTC
Please can you provide your project? What is the bundle you are using (j2ee, full,...)? Can you start the tomcat outside
of the netbeans? Which build of the beta2 do you use?

For now I can't reproduce the issue...
Comment 5 Petr Hejl 2007-10-29 22:17:36 UTC
This is really strange because we bundle the tomcat 6.0.14 with beta2, afaik. Seems to me that tomcat installation is
corrupted. Can you pack the tomcat directory and attach it to the issue?

AprLifecycleListener is located in the catalina.jar, however if the whole file is missing the server does not start at
all - the startup class will is missing in such case.
Comment 6 Petr Hejl 2007-10-29 23:10:32 UTC
Did you install anything to jdk (additional jars)? Can you list your jdk jre\lib\ext directory? Does not seem to be
netbeans issue.
Comment 7 David Konecny 2007-10-30 10:10:03 UTC
I just downloaded and install NB6Beta2 "Web & Java EE" pack and everything works fine. The version of Tomcat in beta2 is
6.0.14 which is different from your version. How is it possible that you have different version? Have you installed
Tomcat separately? Were you upgrading?
Comment 8 David Konecny 2007-10-30 10:14:52 UTC
Also could you please attach your IDE.log? Should be in path like 
  C:\Documents and Settings\<your account>\.netbeans\6.0beta2\var\log\messages.log
Thanks, David
Comment 9 thekurgan 2007-10-30 22:40:12 UTC
Created attachment 52067 [details]
nb log files
Comment 10 thekurgan 2007-10-30 22:43:39 UTC
Sorry guys it took me so long to get back, but I've been plagued with work work due to a bug in JSF1.2(treenode
component(http://www.nabble.com/-VWP--Tree-selected-row-tf3376447.html#a9517934))...which is why I need to go to 2.5
servlet/2.1 JSP spec.

Anyway I think I might know the reason I am seeing this.  I had previously tried to install Netbeans6.0 Beta 1 and
somehow it has migrated those settings to Beta 2 install. I also have Netbeans 5.5.1 installed.  I will try some
magic...uninstall old version(s), etc.

Also this happened on 2 different laptops running Windows XP so I'm surprised more haven't chimed in with this problem.

Attaching requested files.

-Brian
Comment 11 Petr Hejl 2007-10-30 23:12:16 UTC
Please can you make two more test?
1) download tomcat 6.0.14 unpack it and start it (test whether the problem is nb specific)
2) start netbeans with clean userdir (for example netbeans.exe --userdir c:\some\not\used\temp\directory) and try to use
the tomcat

Thanks P.
Comment 12 thekurgan 2007-11-01 00:58:11 UTC
Your last post resolved the issue for me.  I don't know why it didn't install Tomcat version 6.0.14 to begin with, but 
this has resolved it and the second part about deleting the user directory was not even needed. Thanks!
Comment 13 Petr Hejl 2007-11-01 10:11:40 UTC
Can't reproduce. Seems to be corrupted user environment.