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 148699 - tomcat 6.0.16 cannot find LogFactory
Summary: tomcat 6.0.16 cannot find LogFactory
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 6.x
Hardware: PC All
: P1 blocker (vote)
Assignee: Troy Giunipero
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-30 02:48 UTC by jerryjerry
Modified: 2008-10-16 13:47 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jerryjerry 2008-09-30 02:48:23 UTC
I have installed Netbeans 6.1 and added the tomcat server 6.0.16. I follow the HelloSpring example from the Netbeans
"Setting up a New Project with Spring Web MVC Support" example. Then when I run it, the "Apache Tomcat 6.0.16 log
reports the following error:

SEVERE: Exception sending context initialized event to listener instance of class
org.springframework.web.context.ContextLoaderListener
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
        at org.springframework.web.context.ContextLoader.<init>(ContextLoader.java:144)
        at org.springframework.web.context.ContextLoaderListener.createContextLoader(ContextLoaderListener.java:53)

I have tried to ad the commons-logging-1.1.jar file to both the server and the HelloSpring project, but I still get the
same result.

Side note: I tried the GlassFish server first, but got the same error plus several other missing classes.
Comment 1 Petr Hejl 2008-09-30 14:17:20 UTC
Perhaps something is missing in tutorial for tomcat...
Comment 2 Kenneth Ganfield 2008-09-30 21:44:06 UTC
reassigning to troy as i believe he owns this tutorial
Comment 3 Martin Schovanek 2008-10-01 13:53:58 UTC
Marking as NO65, in case it is not a tutorial issue please remove the NO65 keyword.
Comment 4 Troy Giunipero 2008-10-01 21:55:24 UTC
I don't think this is a tutorial issue;  I just ran the sample application in the NetBeans 6.1 release using Tomcat
6.0.18 and it was fine.  If anyone would like to test this, the application is here:

http://www.netbeans.org/files/documents/4/1943/HelloSpring.zip
Comment 5 Troy Giunipero 2008-10-16 13:47:46 UTC
I am closing this issue as I do not think this has any relevance to the tutorial, and I haven't been able to reproduce
the problem.  If anyone would like to test the tutorial sample application and can reproduce the issue, please feel free
to reopen.