• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
p madhavi
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks alot. It worked
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic