3 Replies Latest reply on Jan 13, 2011 10:49 AM by Wolfgang Knauf

    Struts 2.0 with Jboss 5.1

    Manoj Jain Newbie

      Hi all,

       

          As I am upgrading jboss from 4.3 to 5.1. Spring part is deployed but I am stucked with Struts 2.0.

      I am getting following error at server startup. As this was working fine in jboss 4.3.

       

      2011-01-06 16:06:16,376 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/INDUS]] (main) Exception starting filter struts

      java.lang.NoClassDefFoundError: Lorg/codehaus/plexus/PlexusContainer;

          at java.lang.Class.getDeclaredFields0(Native Method)

          at java.lang.Class.privateGetDeclaredFields(Class.java:2291)

          at java.lang.Class.getDeclaredFields(Class.java:1743)

          at com.opensymphony.xwork2.inject.ContainerImpl.addInjectors(ContainerImpl.java:102)

          at com.opensymphony.xwork2.inject.ContainerImpl$1.create(ContainerImpl.java:84)

          at com.opensymphony.xwork2.inject.ContainerImpl$1.create(ContainerImpl.java:82)

          at com.opensymphony.xwork2.inject.util.ReferenceCache$CallableCreate.call(ReferenceCache.java:155)

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

          at java.util.concurrent.FutureTask.run(FutureTask.java:138)

          at com.opensymphony.xwork2.inject.util.ReferenceCache.internalCreate(ReferenceCache.java:81)

          at com.opensymphony.xwork2.inject.util.ReferenceCache.get(ReferenceCache.java:121)

          at com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.<init>(ContainerImpl.java:329)

          at com.opensymphony.xwork2.inject.ContainerImpl$5.create(ContainerImpl.java:299)

          at com.opensymphony.xwork2.inject.ContainerImpl$5.create(ContainerImpl.java:298)

          at com.opensymphony.xwork2.inject.util.ReferenceCache$CallableCreate.call(ReferenceCache.java:155)

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

          at java.util.concurrent.FutureTask.run(FutureTask.java:138)

          at com.opensymphony.xwork2.inject.util.ReferenceCache.internalCreate(ReferenceCache.java:81)

          at com.opensymphony.xwork2.inject.util.ReferenceCache.get(ReferenceCache.java:121)

          at com.opensymphony.xwork2.inject.ContainerImpl.getConstructor(ContainerImpl.java:562)

          at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:460)

          at com.opensymphony.xwork2.inject.ContainerImpl$7.call(ContainerImpl.java:501)

          at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:549)

          at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:499)

          at com.opensymphony.xwork2.config.impl.LocatableFactory.create(LocatableFactory.java:32)

          at com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:134)

          at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:49)

          at com.opensymphony.xwork2.inject.ContainerImpl$ParameterInjector.inject(ContainerImpl.java:431)

          at com.opensymphony.xwork2.inject.ContainerImpl.getParameters(ContainerImpl.java:446)

          at com.opensymphony.xwork2.inject.ContainerImpl.access$000(ContainerImpl.java:48)

          at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:288)

          at com.opensymphony.xwork2.inject.ContainerImpl$2.call(ContainerImpl.java:117)

          at com.opensymphony.xwork2.inject.ContainerImpl$2.call(ContainerImpl.java:115)

          at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:542)

          at com.opensymphony.xwork2.inject.ContainerImpl.injectStatics(ContainerImpl.java:114)

          at com.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:494)

          at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:145)

          at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)

          at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)

          at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)