1 Reply Latest reply on Jul 12, 2010 4:06 PM by Herberson Silva

    JBOSS Deploy NoClassDefFoundError: SerializationPolicyProvider

    Luciano Assis Newbie
      Hello guys,

      I'm having some problems trying to deploy my application.

      It's working fine on eclipse but when I'm trying to execute directly on jboss using an ear then I got problems.

      My Ear Structure is:

      App-ear.ear:
        

      # lib
            antlr-runtime.jar
            commons-beanutils.jar
            drools-compiler.jar
            drools-core.jar
            jboss-el.jar
            jboss-seam-remoting.jar
            jbpm-jpdl.jar
            mvel14.jar
            richfaces-api.jar
        
      # META-INF
            application.xml
            jboss-app.xml
            >MANIFEST.MF

      # App-business.jar
            com  
            META-INF
               persistence.xml
               ejb-jar.xml
               MANIFEST.MF
            components.properties
            seam.properties
         
      #App-web.war
            com
            META-INF
              MANIFEST.MF
            WEB-INF

      #jboss-seam.jar
         
      #App-entities.jar

      #App-commons.jar


      JBOSS LOG:

      2010-07-10 17:11:09,299 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:621)
              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)

      ....


      2010-07-10 17:11:11,015 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/mps-sicos-web]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      java.lang.RuntimeException: Could not create Component: contratoController
              at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1202)
              at org.jboss.seam.init.Initialization.installComponents(Initialization.java:1118)
              at org.jboss.seam.init.Initialization.init(Initialization.java:733)



      MANIFEST.MF contents:

      war project:

      Manifest-Version: 1.0
      Class-Path: jboss-seam.jar
      App-business.jar
      App-commons.jar
      App-entities.jar
      lib/antlr-runtime.jar
      lib/commons-beanutils.jar
      lib/drools-compiler.jar
      lib/drools-core.jar
      lib/jboss-el.jar
      lib/jboss-seam-remoting.jar
      lib/jbpm-jpdl.jar
      lib/mvel14.jar
      lib/richfaces-api.jar


      ejb project:

      Manifest-Version: 1.0
      Class-Path: jboss-seam.jar
      App-commons.jar
      App-entities.jar

      ear project:

      Manifest-Version: 1.0
      Class-Path:




      Anybody can help me?

      It's working OK when I start the app from eclipse.