1 Reply Latest reply on Oct 6, 2003 4:29 AM by Adrian Brock

    Deployement error: Path?? please help

    hykiukira Newbie

      HI,
      i have an error while deploying my PostCodeEjb. I'have seen in the forum that it should come from a path in my deployement descriptor but I don't find what it is.

      Here is the content of the jar:

      META-INF/
      META-INF/MANIFEST.MF
      main/
      main/fdcompta/
      main/fdcompta/parameters/
      main/fdcompta/interfaces/
      main/fdcompta/parameters/SequenceGeneratorBean.class
      main/fdcompta/parameters/PostCodeEntityBean.class
      main/fdcompta/parameters/PostCodeEntityCMP.class
      main/fdcompta/interfaces/ServiceUnavailableException.class
      main/fdcompta/interfaces/PostCodeEntityData.class
      main/fdcompta/interfaces/AbstractData.class
      main/fdcompta/interfaces/InvalidValueException.class
      main/fdcompta/interfaces/PostCodeEntityPK.class
      main/fdcompta/interfaces/SequenceGeneratorHome.class
      main/fdcompta/interfaces/SequenceGenerator.class
      main/fdcompta/interfaces/PostCodeEntityHome.class
      main/fdcompta/interfaces/PostCodeEntity.class
      META-INF/ejb-jar.xml
      META-INF/jboss.xml
      META-INF/jaws.xml
      META-INF/jbosscmp-jdbc.xml

      here is the deployement descriptor:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

      <ejb-jar >

      No Description.
      <display-name>Generated by XDoclet</display-name>

      <enterprise-beans>

      <!-- Session Beans -->

      [CDATA[Encapsulates the retrival of DB data]]
      <display-name>Generates unique Identifier for an Entity</display-name>

      <ejb-name>SequenceGenerator</ejb-name>

      main.fdcompta.interfaces.SequenceGeneratorHome
      main.fdcompta.interfaces.SequenceGenerator
      <ejb-class>main.fdcompta.parameters.SequenceGeneratorBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>

      <env-entry>
      <env-entry-name>DataSource_Name</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>DefaultDS</env-entry-value>
      </env-entry>



      <!--
      To add session beans that you have deployment descriptor info for, add
      a file to your merge directory called session-beans.xml that contains
      the markup for those beans.
      -->

      <!-- Entity Beans -->

      [CDATA[The Entity bean represents a TestEntity]]
      <display-name>TestEntity working on projects to support clients</display-name>

      <ejb-name>PostCodeEntity</ejb-name>

      main.fdcompta.interfaces.PostCodeEntityHome
      main.fdcompta.interfaces.PostCodeEntity

      <ejb-class>main.fdcompta.parameters.PostCodeEntityCMP</ejb-class>
      <persistence-type>Container</persistence-type>
      <prim-key-class>main.fdcompta.interfaces.PostCodeEntityPK</prim-key-class>
      False
      <cmp-version>2.x</cmp-version>
      <abstract-schema-name>PostCodeEntity</abstract-schema-name>
      <cmp-field >
      [CDATA[Retrieve the TestEntity's id.]]
      <field-name>id</field-name>
      </cmp-field>
      <cmp-field >
      [CDATA[Retrieve the TestEntity's LastName.]]
      <field-name>postCode</field-name>
      </cmp-field>
      <cmp-field >
      [CDATA[Retrieve the TestEntity's Email.]]
      <field-name>townLanguage1</field-name>
      </cmp-field>
      <cmp-field >
      [CDATA[Retrieve the TestEntity's Email.]]
      <field-name>townLanguage2</field-name>
      </cmp-field>
      <cmp-field >
      [CDATA[Retrieve the TestEntity's Email.]]
      <field-name>creationDate</field-name>
      </cmp-field>
      <cmp-field >
      [CDATA[Retrieve the TestEntity's Email.]]
      <field-name>modificationDate</field-name>
      </cmp-field>
      <cmp-field >
      [CDATA[Retrieve the TestEntity's Email.]]
      <field-name>creator</field-name>
      </cmp-field>
      <cmp-field >
      [CDATA[Retrieve the TestEntity's Email.]]
      <field-name>lastModificator</field-name>
      </cmp-field>

      <env-entry>
      <env-entry-name>SequenceName</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>PostCodeEntity</env-entry-value>
      </env-entry>

      <ejb-ref >
      <ejb-ref-name>ejb/SequenceGenerator</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      main.fdcompta.interfaces.SequenceGeneratorHome
      main.fdcompta.interfaces.SequenceGenerator
      <ejb-link>SequenceGenerator</ejb-link>
      </ejb-ref>



      <!--
      To add entity beans that you have deployment descriptor info for, add
      a file to your merge directory called entity-beans.xml that contains
      the markup for those beans.
      -->

      <!-- Message Driven Beans -->
      <!--
      To add message driven beans that you have deployment descriptor info for, add
      a file to your merge directory called message-driven-beans.xml that contains
      the <message-driven></message-driven> markup for those beans.
      -->

      </enterprise-beans>

      <!-- Relationships -->

      <!-- Assembly Descriptor -->
      <assembly-descriptor >

      <!-- finder permissions -->

      <!-- finder permissions -->

      <!-- transactions -->
      <container-transaction >

      <ejb-name>SequenceGenerator</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>getNextNumber</method-name>
      <method-params>
      <method-param>java.lang.String</method-param>
      </method-params>

      <trans-attribute>Mandatory</trans-attribute>
      </container-transaction>
      <container-transaction >

      <ejb-name>PostCodeEntity</ejb-name>
      <method-name>*</method-name>

      <trans-attribute>Required</trans-attribute>
      </container-transaction>

      <!-- finder transactions -->
      </assembly-descriptor>

      </ejb-jar>

      and here is the error:

      l/installed/jboss/jboss-3.2.2RC2/server/default/deploy/PostCode.jar
      19:14:01,699 WARN [verifier] EJB spec violation:
      Bean : PostCodeEntity
      Method : public abstract PostCodeEntity findByName(int, String) throws RemoteException, FinderException
      Section: 10.5.6
      Warning: Every finder method except findByPrimaryKey(key) must be associated with a query element in the deployment descriptor.

      19:14:01,719 ERROR [MainDeployer] could not create deployment: file:/usr/local/installed/jboss/jboss-3.2.2RC2/server/default/deploy/PostCode.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:490)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:631)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:550)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:458)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:211)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:190)
      19:14:01,721 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@d504abbb{ url=file:/usr/local/installed/jboss/jboss-3.2.2RC2/server/default/deploy/PostCode.jar, deployedLastModified=1065287279000 }
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:490)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:631)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:550)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:458)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:211)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:190)

      any help would be apreciate,
      best regards

      Thom