Skip to main content

Class Not Found exception .

4 replies [Last post]
vickyk
Offline
Joined: 2006-06-27
Points: 0

I had just finished the fresh build of the jainslee server and get the following error during the deployment of the management-console .
************************************************************************************************
15:26:54,654 ERROR [MainDeployer] Could not create deployment: file:/home/vicky/JBOSS/mobicent/jboss-4.2.1.GA/server/default/deploy/management-console.war
java.lang.NoClassDefFoundError: com/google/gwt/user/client/rpc/RemoteService
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
************************************************************************************************
Can someone else validate if this issue exists there ?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vickyk
Offline
Joined: 2006-06-27
Points: 0

I tried this deployment again on the fresh installation of jboss4.2 , it is still giving the same exception .
Could some one verify this ?

baranowb
Offline
Joined: 2006-01-09
Points: 0

Vicky - there is problem with gwt-user.jar - since it contains two class that are offending to servlet specs.
gwt-user.jar into jboss/mobicnets lib folder - remove Servlet.class and one other - dont recall name at the moment. Should work.

vickyk
Offline
Joined: 2006-06-27
Points: 0

>>java.lang.NoClassDefFoundError: com/google/gwt/user/client/rpc/RemoteService

This error indicates that the JVM is not able to load the required class , this may be due to unavailablity of the RemoteService ... I have yet not checked it , will do it ;)

The above message does not indicate that the issues is due to servlet specs .

Thanks for confirming it , I will investigate it .

baranowb
Offline
Joined: 2006-01-09
Points: 0

ok, mea culpa.
JVM cant load this class since its not there. Its not there cause I set dependency scope to runtime (I believe) - this is due to m2 doings - it always fetches fresh copy of gwt-user.jar - which contains those two offending classes. Thats why i set up dependency scope to runtime - and thats why this jar has to be inseterted into container manualy after some tweak.