3 Replies Latest reply on Apr 2, 2006 8:31 PM by Oleg Gusakov

    Has anyone deployed a POJO inside AS 4.03SP1 or 4.0.4RC1 ?

    Oleg Gusakov Newbie

      MC 1.0.2 works perfecty. So being an adventureous type - I tried deployed my POJO inside AS.

      Did not fly and I wonder if anyone has ancountered the same issues.

      My investigation points towards jboss-xml-bindings.jar and jboss-commons.jar.

      The test.beans folder contains two files:

      test.beans/TestBean.class
      test.beans/META-INF/jboss-beans.xml

      TestBean.java:
      public class TestBean
      {
      public TestBean()
      {
      System.out.println("--------------> Bean Constructed");
      }
      }

      jboss-beans.xml:
      <?xml version="1.0" encoding="UTF-8"?>

      <deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd"
      xmlns="urn:jboss:bean-deployer">







      As a result, JBoss 4.0.4RC1 gives me the following:
      org.jboss.deployment.DeploymentException: Error parsing meta data file:/D:/opt/deploy/app/test.beans/META-INF/jboss-beans.xml; - nested throwable: (java.lang.NullPointerException
      at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
      at org.jboss.deployment.SchemaBindingSimpleSubDeployerSupport.parseMetaData(SchemaBindingSimpleSubDeployerSupport.java:57)
      at org.jboss.kernel.deployment.jboss.JBossBeanDeployer.parseMetaData(JBossBeanDeployer.java:94)
      at org.jboss.deployment.SimpleSubDeployerSupport.init(SimpleSubDeployerSupport.java:88)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861)

      JBoss 4.0.3SP1 is a little more verbose:

      09:41:48,531 ERROR [MainDeployer] Could not initialise deployment: file:/D:/opt/deploy/app
      org.jboss.deployment.DeploymentException: Error parsing meta data file:/D:/opt/deploy/app/test.beans/META-INF/jboss-beans.xml; - nested throwable: (java.lang.NoClassDefFoundError: org/jboss/xb/binding/sunday/unmarshalling/ParticleHandler)
      at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:39)
      at org.jboss.deployment.SchemaBindingSimpleSubDeployerSupport.parseMetaData(SchemaBindingSimpleSubDeployerSupport.java:42)
      at org.jboss.kernel.deployment.jboss.JBossBeanDeployer.parseMetaData(JBossBeanDeployer.java:79)
      at org.jboss.deployment.SimpleSubDeployerSupport.init(SimpleSubDeployerSupport.java:73)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:843)