Following exception occurred on Jboss while using JFreeChart on mac, The code works fine on Linux and windows.
Stacktrace:
14:22:57,220 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/testweb].[default]] (http-localhost-127.0.0.1-8080-1) Servlet.service() for servlet default threw exception: java.lang.ClassNotFoundException: com.apple.laf.AquaLookAndFeel from [Module "deployment.testweb.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
at java.lang.Class.forName0(Native Method) [classes.jar:1.6.0_65]
at java.lang.Class.forName(Class.java:249) [classes.jar:1.6.0_65]
Solution :
We need to ad
Stacktrace:
14:22:57,220 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/testweb].[default]] (http-localhost-127.0.0.1-8080-1) Servlet.service() for servlet default threw exception: java.lang.ClassNotFoundException: com.apple.laf.AquaLookAndFeel from [Module "deployment.testweb.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
at java.lang.Class.forName0(Native Method) [classes.jar:1.6.0_65]
at java.lang.Class.forName(Class.java:249) [classes.jar:1.6.0_65]
Solution :
We need to ad
d com.apple.laf dependencies to Jboss to add the required jars in classpath.Add the following -D option in Jboss Startup variables and restart.-Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel
No comments:
Post a Comment