struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "john@rodaxsoft.com" <j...@rodaxsoft.com>
Subject Re: Unknown Error From JSON-Plugin
Date Sun, 07 Jan 2018 16:33:18 GMT
Could you share the code of the offending class/interface? Also, is the deployed code being
compiled on a Java version that <= to server’s Java version?

> On Jan 2, 2018, at 9:06 AM, sreekanth <sreekanth.nair@egovernments.org> wrote:
> 
> Hi,
>    I'm using struts2-2.5.14.1 in my EAR deployed in wildfly server, rarely
> we are getting the following error when i'm accessing struts2 page. 
> 
> Caused by: Unable to load configuration. - bean -
> vfs:/content/my-app.ear/lib/struts2-json-plugin-2.5.14.1.jar/struts-plugin.xml:28:30
> 	at
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
> 	at
> org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:957)
> 	at
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:463)
> 	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:496)
> 	... 107 more
> Caused by: Unable to load bean: type:org.apache.struts2.json.JSONWriter
> class:org.apache.struts2.json.DefaultJSONWriter - bean -
> vfs:/content/my-app.ear/lib/struts2-json-plugin-2.5.14.1.jar/struts-plugin.xml:28:30
> 	at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:274)
> 	at
> org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:95)
> 	at
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:167)
> 	at
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
> 	... 110 more
> Caused by: java.lang.ClassFormatError: Failed to link
> org/apache/struts2/json/DefaultJSONWriter (Module "deployment.my-app.ear"
> from Service Module Loader): Failed to link
> org/apache/struts2/json/JSONWriter (Module "deployment.my-app.ear" from
> Service Module Loader): Illegal field modifiers in class
> org/apache/struts2/json/JSONWriter: 0xA
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> 	at
> sun.reflect.DelegatingConstructorAccessorImpl.__newInstance(DelegatingConstructorAccessorImpl.java:45)
> 	at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java)
> 	at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> 	at
> org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446)
> 	at
> org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
> 	at
> org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:77)
> 	at org.jboss.modules.Module.loadModuleClass(Module.java:713)
> 	at
> org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
> 	at
> org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412)
> 	at
> org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400)
> 	at
> org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
> 	at
> com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:171)
> 	at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:247)
> 
> 
> 
> --
> Sent from: http://struts.1045723.n5.nabble.com/Struts-User-f3426046.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message