6 Replies Latest reply on Apr 20, 2009 5:14 PM by Christian Bauer

    NoClassDefFound exception on Google SerializationPolicyProvider

    Brendan Farragher Newbie

      JBoss AS version:4.2.3GA


      Seam version: 2.1.1GA


      Hi. I'm new to Seam. I created project with seam-gen, added some actions/TestNG cases/views, and deployed. When I look at the log, there is a NoClassDefFound exception on:


      com/google/gwt/user/server/rpc/SerializationPolicyProvider


      I scanned my system, and this class resides in gwt-servlet.jar, and that jar resides in my project's /lib folder. Based on the stack, this certainly looks like a class loading issue, but I did not put that jar into the /lib folder, seam-gen did.


      Any recommendations on eliminating this exception, and/or could this be a possible bug in seam-gen?


      Thanks in advance. Stack trace posted below.



      2009-04-10 08:40:37,932 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@3d1102, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@8e3f75{ url=null ,addedOrder=0}
      2009-04-10 08:40:38,724 DEBUG [org.jboss.seam.deployment.ClassDescriptor] could not load class (missing dependency): org.jboss.seam.remoting.gwt.GWT14Service
      java.lang.NoClassDefFoundError: com/google/gwt/user/server/rpc/SerializationPolicyProvider
              at java.lang.ClassLoader.defineClass1(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
              at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
              at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
              at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
              at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:690)
              at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:670)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
              at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:200)
              at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
              at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)
              at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:527)
              at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
              at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
              at java.lang.ClassLoader.defineClass1(Native Method)