facebook

Cannot deploy ear file

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #251025 Reply

    urswag
    Member

    Cannot deploy ear file. I have created
    I have created the Enterprise Application Project with a Web and EJB module. This is the result what I get
    when I deploy with JBoss.

    00:22:12,562 INFO [EARDeployer] Init J2EE application: file:/C:/Programme/JBoss/server/default/deploy/webtrade.ear/
    00:22:12,562 ERROR [MainDeployer] Could not initialise deployment: file:/C:/Programme/JBoss/server/default/deploy/webtrade.ear/
    org.jboss.deployment.DeploymentException: url file:/C:/Programme/JBoss/server/default/deploy/webtrade.ear/webtradeEJB.jar could not be opened, does it exist?
    at org.jboss.deployment.DeploymentInfo.<init>(DeploymentInfo.java:211)
    at org.jboss.deployment.EARDeployer.init(EARDeployer.java:250)
    at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    #251074

    Riyad Kalla
    Member

    C:/Programme/JBoss/server/default/deploy/webtrade.ear/webtradeEJB.jar

    Does this file exist? Can you open it with WinZip or any equivalent archive utility?

    #251235

    urswag
    Member

    This is the point
    I have this deployment directory.

    C:\Programme\JBoss\server\default\deploy\webtrade.ear

    But inside I have only the war deploy directory

    C:\Programme\JBoss\server\default\deploy\webtrade.ear\webtradeWeb.war

    There is no directory

    C:\Programme\JBoss\server\default\deploy\webtrade.ear\webtradeEJB.jar

    Although I have alle three eclipse projects webtrade, webtradeEJB and webtradeWeb

    #251248

    Riyad Kalla
    Member

    If you open the Add/Remove Modules setting for your Enterprise PRoject, does it show all your modules correctly? If you close that and open your application.xml file, what are the contents, can you paste them here for me?

    #251369

    urswag
    Member

    Yes both modules are installed.

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <application xmlns=”http://java.sun.com/xml/ns/j2ee&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; version=”1.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd”&gt;
    <display-name>webtrade</display-name>
    <module id=”myeclipse.1145915805281″>
    <web>
    <web-uri>webtradeWeb.war</web-uri>
    <context-root>/webtradeWeb</context-root>
    </web>
    </module>
    <module id=”myeclipse.1145915805437″>
    <ejb>webtradeEJB.jar</ejb>
    </module>
    </application>

    #251374

    Riyad Kalla
    Member

    Can you export all 3 projects (select all 3, right click and do Export) to a archive for me and send me the file at support@genuitec.com ATTN Riyad with a link to this thread so I know why I’m getting the file. I’ll take a look.

    #251410

    Riyad Kalla
    Member

    I received your test case, I imported all three projects and immediately created a deployment to JBoss 4 and everything worked fine, please see attached screenshot:

    This could be an install problem on your end, have you tried a new workspace with a new EAR/EJB/WEB project? (File > Switch Workspace > C:\tempworkspace, hit OK, then create your new EAR project with the two other modules and immediately deploy it).

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Cannot deploy ear file

You must be logged in to post in the forum log in