aspose file tools*
The moose likes Struts and the fly likes java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject.InjectedObjectContainer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject.InjectedObjectContainer" Watch "java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject.InjectedObjectContainer" New topic
Author

java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject.InjectedObjectContainer

Charan Sat
Greenhorn

Joined: Jul 08, 2011
Posts: 3
Hi,

I am a newbie to Struts2 application and my demo application is not working. I keep getting the following error in server console

Caused by: java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject.InjectedObjectContainer
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:157)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:203)

Can you please help me with the above?
kumaraswamy dapa
Greenhorn

Joined: Feb 26, 2010
Posts: 11
Are you included all the library files?

it seems that your forgot to include xworks*.jar
Charan Sat
Greenhorn

Joined: Jul 08, 2011
Posts: 3
Nope!!! xwork-core-2.2.3 is there in the lib.
Charan Sat
Greenhorn

Joined: Jul 08, 2011
Posts: 3
Solved it!!! Removed the Struts-gxp-plugin.jar and other jars from lib!!!
Srini Krishnaswamy
Greenhorn

Joined: Feb 21, 2013
Posts: 1
Hi Charan Sat,
I am facing same problem. Which version of Struts did you use? What are all the jars did you remove apart from struts-gxp-plugin.jar to solve the problem?
liu yu
Greenhorn

Joined: Aug 15, 2013
Posts: 1
Srini Krishnaswamy wrote:Hi Charan Sat,
I am facing same problem. Which version of Struts did you use? What are all the jars did you remove apart from struts-gxp-plugin.jar to solve the problem?


I am facing the same problem too. I solved it. I only use the nine jars that are "commons-fileupload-1.3.jar,commons-io-2.0.1.jar,commons-lang3-3.1.jar,commons-logging-1.1.3.jar,freemarker-2.3.19.jar,javassist-3.11.0.GA.jar,ognl-3.0.6.jar,struts2-core-2.3.15.1.jar,xwork-core-2.3.15.1.jar" for the most simple javaee project with struct2-2.3.15.1.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject.InjectedObjectContainer
 
Similar Threads
SingleFileServlet
Oracle ADF & WebLogic problem
deployment error into Weblogic
JPA Application Deployment Error
java.lang.ClassNotFoundException: org.hibernate.event.EventListeners$2 on weblogic server stop