1 Reply Latest reply on May 22, 2003 3:45 PM by trainjet

    Error when deploying the Template example

    henrikb Newbie

      Hi all
      I hope someone can help me!
      I get the following error when I build and depoly the "Template and Examples" (Template) downloaded from jboss.org :

      11:16:49,179 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment
      .scanner.URLDeploymentScanner$DeployedURL@fc827eca{ url=file:/C:/jboss-3.2.0_tom
      cat-4.1.24/server/default/deploy/ejb-test.jar, deployedLastModified=0 }
      org.jboss.deployment.DeploymentException: Error in ejb-jar.xml for Entity Bean t
      est/TestEntity: The ejb-name for a CMP2.x Entity must be a valid Java Identifier

      at org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMet
      aData.java:247)
      at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:140)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:438)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
      at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:280)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:421)
      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)


      I'm using ant 1.5, JDK 1.4.1 and Xdoclet 1.1.2.
      Pleased for any sugestions.