3 Replies Latest reply on Sep 3, 2002 12:14 PM by sheldon

    How to run template examples

    sheldon Newbie

      Hi, I installed jboss-3.0.0_tomcat-4.0.3.
      When I try to deploy the template examples under: catalina/webapps/examples by command:
      jar cvf examples.war * and then copy it to server/default/deploy

      I got following error message:
      ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@a6775720{url=file:/opt/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/examples.war, deployedLastModified=1030563582000 }org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable:(javax.naming.NamingException: ejb-ref: ejb/Account, no ejb-link match, use jndi-name in
      jboss-web.xml)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:309)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
      at sun.reflect.GeneratedMethodAccessor9.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:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:515)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:202)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      Caused by: javax.naming.NamingException: ejb-ref: ejb/Account, no ejb-link match, use jndi-name in jboss-web.xml
      at org.jboss.web.AbstractWebContainer.linkEjbRefs(AbstractWebContainer.java:633)
      at org.jboss.web.AbstractWebContainer.parseWebAppDescriptors(AbstractWebContainer.java:458)
      at org.jboss.web.AbstractWebContainer$DescriptorParser.parseWebAppDescriptors(AbstractWebContainer.java:944)
      at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.initENC(EmbeddedCatalinaServiceSX.java:329)
      at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebContext(EmbeddedCatalinaServiceSX.java:316)
      at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy(EmbeddedCatalinaServiceSX.java:238)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
      ... 14 more



      Can anyone give help. Thank you so much

        • 1. Re: How to run template examples
          Joel Vogt Master

          Do you have the account ejb deployed somewhere?

          • 2. Re: How to run template examples
            sheldon Newbie

            The Account is one of the servlet class and in the package. The account ejb ref in the web.xml is:
            <!-- EJB Reference -->
            <ejb-ref>
            Example EJB Reference
            <ejb-ref-name>ejb/Account</ejb-ref-name>
            <ejb-link>theAccount</ejb-link>
            <ejb-ref-type>Entity</ejb-ref-type>
            com.mycompany.mypackage.AccountHome
            com.mycompany.mypackage.Account
            </ejb-ref>

            Anyone can give help, so appreciate

            • 3. Re: How to run template examples
              sheldon Newbie

              Hi,
              Thank you for your suggestion.

              In fact, I delete all of the following and made the examples works. I think these classes doesn't exist.

              <!-- EJB Reference -->
              <ejb-ref>
              Example EJB Reference
              <ejb-ref-name>ejb/Account</ejb-ref-name>
              <ejb-link>theAccount</ejb-link>
              <ejb-ref-type>Entity</ejb-ref-type>
              com.mycompany.mypackage.AccountHome
              com.mycompany.mypackage.Account
              </ejb-ref>

              <!-- Local EJB Reference -->
              <ejb-local-ref>
              Example Local EJB Reference
              <ejb-ref-name>ejb/ProcessOrder</ejb-ref-name>
              <ejb-ref-type>Session</ejb-ref-type>
              <local-home>com.mycompany.mypackage.ProcessOrderHome</local-home>
              com.mycompany.mypackage.ProcessOrder
              </ejb-local-ref>