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

    Expanding .ear's

    jm2hall

      Hi,
      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
      e.ear/RuleEngineEJB.jar/
      11:23:19,821 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/MiddleTier, warUrl=file:/C:/jboss-3.2.1_tomca
      t-4.1.24/server/ruleengine/tmp/deploy/server/ruleengine/deploy/RuleEngine.ear/MiddleTier.war/54.MiddleTier
      .war
      11:23:19,821 ERROR [EjbUtil] Can't locate deploymentInfo for target: file:/C:/jboss-3.2.1_tomcat-4.1.24/server/r
      uleengine/deploy/RuleEngine.ear/RuleEngineEJB.jar
      11:23:19,837 ERROR [MainDeployer] could not start deployment: file:/C:/jboss-3.2.1_tomcat-4.1.24/server/ruleengi
      ne/deploy/RuleEngine.ear/MiddleTier.war
      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">
      <display-name>MiddleTier</display-name>
      ...
      <ejb-local-ref>
      <ejb-ref-name>ejb/ruleengine</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      <local-home>com.bralar.ruleengine.ejb.RuleEngineLocalHome</local-home>
      com.bralar.ruleengine.ejb.RuleEngineLocal
      <ejb-link>RuleEngineEJB.jar#RuleEngine</ejb-link>
      </ejb-local-ref>
      </web-app>


      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,

      Jules