0 Replies Latest reply on Aug 29, 2003 9:59 AM by jm2hall

    Expanding .ear's

    jm2hall Newbie

      I have an .ear file wich contains a .war module and an ejb .jar module as well.
      The .war uses the entity beans in the ejb .jar.
      When I drop the .ear file in my /deploy directory everything works wonderful! .... but I need to be able to have my .ear expanded! I've done what i've read so far - > created a folder called xxx.ear under the /deploy directory and then under the /deploy/xxx.ear/ i've created a /deploy/xxx.ear/xxx.war and a /deploy/xxx.ear/xxx.jar file for the .war and ejb .jar modules and expanded them into their respective directorys.

      I now get problems when i startup. The .war has problems referencing the ejb:

      11:23:19,649 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.1_tomcat-4.1.24/server/ruleengine/deploy/RuleEngin
      11:23:19,821 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/MiddleTier, warUrl=file:/C:/jboss-3.2.1_tomca
      11:23:19,821 ERROR [EjbUtil] Can't locate deploymentInfo for target: file:/C:/jboss-3.2.1_tomcat-4.1.24/server/r
      11:23:19,837 ERROR [MainDeployer] could not start deployment: file:/C:/jboss-3.2.1_tomcat-4.1.24/server/ruleengi
      org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException
      : ejb-local-ref: ejb/ruleengine, target not found, add valid ejb-link)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:369)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)

      Here is my web.xml :

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
      <web-app id="WebApp">

      I read that i might have to add a jboss-web.xml file in the deploy/xxx.ear/xxx.war/web-inf/ directory.. i've tired that with the same error.

      Any help would be great!!! Thanks,