facebook

ejbdeploy issue

💡
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. WebSphere Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #314695 Reply

    alicia77
    Member

    Hi,

    I have a j2ee project developed using RAD 6 and websphere 6.0. This project have been migrated recently to myeclipse blue 7.5 and websphere 6.1. My project contains 1 web module, util module and several ejb module. We created the ear, war, jar using ant script. however, during ejbdeploy it encounter problem as below. If i used the export jar(default setting) under myeclipse to export those ejb module, the ejbdeploy look fine. I have double check my ant script it just a standard javac and jar syntax.yet to know the root clause of this issue? Would like to know the difference between export jar and ant scripting? and suggestion.

    ant scripting

        <target name="compile" >
            <javac srcdir="${src}" destdir="${build.classes}" >
                <classpath>
                    <fileset dir="${build.dir}/lib" includes="**/*.jar" />
                    <fileset dir="${was.home}/lib" includes="j2ee.jar" />
                    <fileset dir="${was.home}/lib" includes="ejbcontainer.jar" />
                    <fileset dir="${was.home}/lib" includes="ecutils.jar" />
                    <fileset dir="${was.home}/java/jre/lib/ext" includes="ibmjsse.jar" />
                    <fileset dir="${dist.dir}/lib/" includes="**/*.jar" />    
                </classpath>
            </javac>
            <mkdir dir="${dist.dir}" />
            <mkdir dir="${dist.dir}/lib" />
                  <jar destfile="${dist.dir}/lib/${app.name}.jar" basedir="${build.classes}"/>
        </target>

    Console

     [exec] *** ERROR ***: Wed Feb 23 20:51:25 SGT 2011    org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException: IWAE0023E Unable to open module file "dcms-server.jar" in EAR file "[/dcms-server.ear]:dcms-server.ear"
         [exec]     Stack trace of nested exception:
         [exec]     org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException: IWAE0006E Archive is not a valid EJB JAR File because the deployment descriptor can not be found (case sensitive): META-INF/ejb-jar.xml
         [exec]     IWAE0055E Archive is not a valid EJB JAR file (1.0) because no serialized deployment descriptors can be found, either in the manifest or in entries with a ".ser" extension
         [exec]         at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.openSpecificArchive(CommonarchiveFactoryImpl.java:805)
         [exec]         at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.openSpecificArchive(CommonarchiveFactoryImpl.java:816)
         [exec]         at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.openEJBJarFile(CommonarchiveFactoryImpl.java:681)
         [exec]         at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.openNestedArchive(EARFileImpl.java:680)
         [exec]         at com.ibm.etools.commonarchive.impl.EARFileImpl.openNestedArchive(EARFileImpl.java:744)
         [exec]         at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.openNestedArchive(EARFileImpl.java:659)
         [exec]         at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategyImpl.openNestedArchive(LoadStrategyImpl.java:476)
         [exec]         at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategyImpl.createFile(LoadStrategyImpl.java:156)
         [exec]         at org.eclipse.jst.j2ee.internal.archive.operations.ComponentLoadStrategyImpl.addExternalFile(ComponentLoadStrategyImpl.java:485)
         [exec]         at org.eclipse.jst.j2ee.internal.archive.operations.EARComponentLoadStrategyImpl.addModulesAndUtilities(EARComponentLoadStrategyImpl.java:116)
         [exec]         at org.eclipse.jst.j2ee.internal.archive.operations.EARComponentLoadStrategyImpl.getFiles(EARComponentLoadStrategyImpl.java:51)
         [exec]         at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategyImpl.collectFiles(LoadStrategyImpl.java:286)
         [exec]         at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ContainerImpl.getFiles(ContainerImpl.java:237)
         [exec]         at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ContainerImpl.getFile(ContainerImpl.java:197)
         [exec]         at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.initModuleFileFromEAR(ModuleRefImpl.java:122)
         [exec]         at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.getModuleFile(ModuleRefImpl.java:106)
         [exec]         at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getModuleFile(EARFileImpl.java:93)
         [exec]         at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getDeploymentDescriptor(EARFileImpl.java:333)
         [exec]         at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getDeploymentDescriptor(EARFileImpl.java:315)
         [exec]         at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getEJBReferneces(EARFileImpl.java:1160)
         [exec]         at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.collectEJBReferences(EARFileImpl.java:1130)
         [exec]         at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getEJBReferences(EARFileImpl.java:1106)
         [exec]         at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.runEarDeploy(BatchExtension.java:488)
         [exec]         at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.access$1(BatchExtension.java:436)
         [exec]         at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension$RunDeploy.run(BatchExtension.java:419)
         [exec]         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737)
         [exec]         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1719)
         [exec]         at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension$RunDeploy.execute(BatchExtension.java:383)
         [exec]         at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.run(BatchExtension.java:346)
         [exec]         at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
         [exec]         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
         [exec]         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
         [exec]         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
         [exec]         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [exec]         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
         [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [exec]         at java.lang.reflect.Method.invoke(Method.java:618)
         [exec]         at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.run(BootLoaderLoader.java:476)
         [exec]         at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.execute(BatchDeploy.java:106)
         [exec]         at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:107)
         [exec]         at com.ibm.etools.ejbdeploy.EJBDeploy.deploy(EJBDeploy.java:350)
         [exec]         at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:312)
         [exec] [*Error] An unexpected exception was thrown.  Halting execution.
         [exec] Shutting down workbench.
         [exec] Error executing deployment: org.eclipse.jst.j2ee.commonarchivecore.internal.exception.NoModuleFileException. Error is A file does not exist for module element having uri: dcms-server.jar.
         [exec] org.eclipse.jst.j2ee.commonarchivecore.internal.exception.NoModuleFileException: A file does not exist for module element having uri: dcms-server.jar
         [exec]     at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.checkType(ModuleRefImpl.java:497)
         [exec]     at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.initModuleFileFromEAR(ModuleRefImpl.java:128)
         [exec]     at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.getModuleFile(ModuleRefImpl.java:106)
         [exec]     at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getModuleFile(EARFileImpl.java:93)
         [exec]     at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getDeploymentDescriptor(EARFileImpl.java:333)
         [exec]     at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getDeploymentDescriptor(EARFileImpl.java:315)
         [exec]     at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getEJBReferneces(EARFileImpl.java:1160)
         [exec]     at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.collectEJBReferences(EARFileImpl.java:1130)
         [exec]     at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getEJBReferences(EARFileImpl.java:1106)
         [exec]     at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.runEarDeploy(BatchExtension.java:488)
         [exec]     at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.access$1(BatchExtension.java:436)
         [exec]     at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension$RunDeploy.run(BatchExtension.java:419)
         [exec]     at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737)
         [exec]     at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1719)
         [exec]     at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension$RunDeploy.execute(BatchExtension.java:383)
         [exec]     at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.run(BatchExtension.java:346)
         [exec]     at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
         [exec]     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
         [exec]     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
         [exec]     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
         [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
         [exec]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [exec]     at java.lang.reflect.Method.invoke(Method.java:618)
         [exec]     at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.run(BootLoaderLoader.java:476)
         [exec]     at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.execute(BatchDeploy.java:106)
         [exec]     at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:107)
         [exec]     at com.ibm.etools.ejbdeploy.EJBDeploy.deploy(EJBDeploy.java:350)
         [exec]     at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:312)
    #314716

    Brian Fernandes
    Moderator

    alicia,

    1) Are you currently using MyEclipse Blue 7.5?
    2) It is not too clear what you are doing when you see this error. Are you deploying the project through MyEclipse? Or always exporting (with MyEclipse or Ant script) and then deploying manually – how do you do the manual install?

    #314752

    alicia77
    Member

    @Support-Brian wrote:

    alicia,

    Hi Brian, Please find my remarks as below.

    1) Are you currently using MyEclipse Blue 7.5?

    YES

    2) It is not too clear what you are doing when you see this error. Are you deploying the project through MyEclipse? Or always exporting (with MyEclipse or Ant script) and then deploying manually – how do you do the manual install?

    Sorry for the unclear information. This error came out during the execution of ejbdeploy command either in command prompt or within ant-scripting. Usually once the ejbdeploy executed successfully, the application deployment is done manually thru Websphere 6.1 admin console (Applications -> Install New Application). In order to install application we first generate war and ejb jar and bundle it into ear. Normally this is done fully using ANT scripting. However, in this project we encounter issue that if those ejb jar generated by ant scripting will not work during the execution of ejbdeploy command. However, we found out if we used the “Expore jar file” within myeclipse blue, the ejbdeploy command will executed successfully.

    My question is what is the difference between “Expore jar file” and ant (java version 1.5)? What is excuted if user choose “Expore jar file” feature? What plugins is being call? Is there any log generated during “Expore jar file”?

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: ejbdeploy issue

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