Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes  LoadOnStartupInterceptor: cannot load servlet name: action  java.lang.NoClassDefFoun Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " LoadOnStartupInterceptor: cannot load servlet name: action  java.lang.NoClassDefFoun" Watch " LoadOnStartupInterceptor: cannot load servlet name: action  java.lang.NoClassDefFoun" New topic
Author

LoadOnStartupInterceptor: cannot load servlet name: action java.lang.NoClassDefFoun

p madhavi
Greenhorn

Joined: Jun 10, 2005
Posts: 15
Hi,

I am new to struts. I am trying to create a sample program. I am using WSAD as IDE and running tomcat . When i tried to run, i get this error:

2005-06-10 11:39:36 - LoadOnStartupInterceptor: cannot load servlet name: action
- java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at org.apache.tomcat.facade.ServletHandler.getServlet(ServletHandler.jav
a:310)
at org.apache.tomcat.facade.ServletHandler.preInit(ServletHandler.java:3
78)
at org.apache.tomcat.facade.ServletHandler.init(ServletHandler.java:192)

at org.apache.tomcat.facade.LoadOnStartupInterceptor.contextInit(LoadOnS
tartupInterceptor.java:98)
at org.apache.tomcat.core.Context.init(Context.java:498)
at org.apache.tomcat.core.ContextManager.init(ContextManager.java:554)
at org.apache.tomcat.startup.EmbededTomcat.initContextManager(EmbededTom
cat.java:625)
at org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:7
91)
at org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:775)

at org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12S
upport.java:166)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.
java:76)
at org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:77
3)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.
java:52)
at org.apache.tomcat.startup.Main.execute(Main.java:272)
at org.apache.tomcat.startup.Main.main(Main.java:98)

[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on http-8080
2005-06-10 11:39:36 - Ajp12Interceptor: Starting on 8007
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=31/47 config=C:\jakarta-tomcat-3.3.2\conf
\jk2.properties
EmbededTomcat: Startup time 125

I looked and feel everything is good enough as in the example program.
Could anyone suggest why it is not able to load it??

Thanks.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Is commons-beanutils.jar in your WEB-INF/lib folder? If not, it needs to be, along with all the other commons-xxx jar files that came with the struts download. The best way to ensure that all the right jar files are there is to copy them from the WEB-INF/lib folder in one of the example WAR files that comes with the download.


Merrill
Consultant, Sima Solutions
p madhavi
Greenhorn

Joined: Jun 10, 2005
Posts: 15
Thanks alot. It worked
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: LoadOnStartupInterceptor: cannot load servlet name: action java.lang.NoClassDefFoun
 
Similar Threads
Problem with continuation of tomcat service on WEB SERVER
Apache Tomcat 6.0 for Windows error
Apache Tomcat: startup failed due to previous errors
Attribute Listener
problem with DTD in web.xml