3 Replies Latest reply on Jul 27, 2003 9:29 PM by gooperaus

    fail in jboss-example

    gooperaus Newbie

      app server: jboss-3.2.1_tomcat-4.1.24
      jboss-example: jboss-docs\manual\src\examples in cvs-jboss

      error!
      when deploying the ejb-jar of the interest example,
      error from the jboss as the following:

      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
      15:49:44,671 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope
      ration 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:

      Incompletely deployed packages:
      [org.jboss.deployment.DeploymentInfo@f0e4e086 { url=file:/D:/tools/jboss-3.2.1_t
      omcat-4.1.24/server/default/deploy/interest.jar }
      deployer: org.jboss.ejb.EJBDeployer@702c48
      status: Deployment FAILED reason: ejb-jar.xml must define a valid DOCTYPE!
      state: FAILED
      watch: file:/D:/tools/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/interest
      .jar
      lastDeployed: 1059119378046
      lastModified: 1059119380000
      mbeans:
      ]MBeans waiting for classes:

        • 1. Re: fail in jboss-example
          Jon Barnett Master

          Unless you switch off the StrictVerifier in 3.2.x (server/instance/conf/jboss-service.xml), you will need to include a proper doctype for the ejb-jar.xml.
          e.g.
          <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd">

          This conforms with deployment descriptor specs.

          • 2. Re: fail in jboss-example
            gooperaus Newbie

            yes, it solved my problem.

            but it is something frustrated that I mean another question in the jboss-doc example.

            just the first example interest, when invoking the client codes, an exception happened:



            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            interest-client:
            [java] Got context
            [java] java.lang.NoClassDefFoundError: Lorg/jboss/tm/TransactionPropagation
            ContextFactory;
            [java] at java.lang.Class.getDeclaredFields0(Native Method)
            [java] at java.lang.Class.privateGetDeclaredFields(Class.java:1480)
            [java] at java.lang.Class.getField0(Class.java:1713)
            [java] at java.lang.Class.getDeclaredField(Class.java:1176)
            [java] at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.j
            ava:1404)
            [java] at java.io.ObjectStreamClass.access$400(ObjectStreamClass.java:4
            5)
            [java] at java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:331)
            [java] at java.security.AccessController.doPrivileged(Native Method)
            [java] at java.io.ObjectStreamClass.(ObjectStreamClass.java:329)
            [java] at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:249)
            [java] at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java
            :444)
            [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.
            java:1511)
            [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.jav
            a:1425)
            [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
            m.java:1616)
            [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
            1264)
            [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:3
            22)
            [java] at java.util.HashMap.readObject(HashMap.java:986)
            [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
            sorImpl.java:39)
            [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
            hodAccessorImpl.java:25)
            [java] at java.lang.reflect.Method.invoke(Method.java:324)
            [java] at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.
            java:809)
            [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.ja
            va:1733)
            [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
            m.java:1636)
            [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
            1264)
            [java] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream
            .java:1830)
            [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.ja
            va:1756)
            [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
            m.java:1636)
            [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
            1264)
            [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:3
            22)
            [java] at org.jboss.proxy.ClientContainer.readExternal(ClientContainer.
            java:112)
            [java] at java.io.ObjectInputStream.readExternalData(ObjectInputStream.
            java:1676)
            [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
            m.java:1634)
            [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
            1264)
            [java] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream
            .java:1830)
            [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.ja
            va:1756)
            [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
            m.java:1636)
            [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
            1264)
            [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:3
            22)
            [java] at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
            [java] at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePai
            r.java:30)
            [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:51
            4)
            [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:47
            1)
            [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
            [java] at org.jboss.docs.interest.InterestClient.main(InterestClient.ja
            va:32)
            [java] Exception in thread "main"
            [java] Java Result: 1

            • 3. Re: fail in jboss-example
              gooperaus Newbie

              This problem is resolved.

              the client should include the jar file"jbossall-client.jar"