8 Replies Latest reply on Nov 3, 2005 3:28 AM by dargoth

    whats wrong?

    dargoth

      hello...

      firstly i would like to say that my english pretty sux but i think that u will understand what im talking about:P

      im new to j2ee so i took some project which i found somwhere and tried to change to start my own project... i create one ejb and i thought that it will be ok... but i get error in jboss... and dont know what is wrong... i tried to search the answer and didnt find anything like this...

      here is an error:

      10:25:38,905 ERROR [MainDeployer] Could not initialise deployment: file:/C:/java
      /jboss/server/default/deploy/PsApp.ear
      org.jboss.deployment.DeploymentException: Failed to find module file: Ps.
      jar
      at org.jboss.deployment.EARDeployer.init(EARDeployer.java:243)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:828)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
      at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:144)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:122)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.java:131)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy8.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:305)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:481)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:204)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
      bstractDeploymentScanner.java:277)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
      upport.java:272)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
      eanSupport.java:222)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:144)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:891)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:416)
      at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:144)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:144)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:122)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.java:131)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
      at org.jboss.Main.boot(Main.java:162)
      at org.jboss.Main$1.run(Main.java:423)
      at java.lang.Thread.run(Thread.java:534)
      10:25:38,935 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      Incompletely deployed packages:
      org.jboss.deployment.DeploymentInfo@104fdbe1 { url=file:/C:/java/jboss/server/de
      fault/deploy/PsApp.ear }
      deployer: org.jboss.deployment.EARDeployer@878c4c
      status: null
      state: FAILED
      watch: file:/C:/java/jboss/server/default/deploy/PsApp.ear
      altDD: null
      lastDeployed: 1130923538905
      lastModified: 1130923540000
      mbeans:


      well in my opinion there is something wrong with my ejb but it is almost same as in the working project that i found (i only cut many things so there is only one row - login)

      pls help me if u can:/

        • 1. Re: whats wrong?
          jaikiran

          I believe in the application.xml file under PsApp.ear/META-INF directory, there is a entry referring to Ps.jar as follows:

          <module>
          <java>Ps.jar</java>
          </module>


          or something similar. The deployer is NOT able to find Ps.jar in PsApp.ear.
          Thats the reason the deployment is failing.



          • 2. Re: whats wrong?
            dargoth

            my aplication.xml is under Ps/metadata/ear

            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
            <application>
            <display-name>Ps Application</display-name>

            <module>
            <ejb>Ps.jar</ejb>
            </module>

            <module>
            <web>
            <web-uri>Ps.war</web-uri>
            <context-root>/Ps</context-root>
            </web>
            </module>

            </application>


            i think it is ok...

            P.S.: i didnt say about that i dont have any jsp in my project but i dont think that it is a problem... i just want create table xuser so i could continue my practice with j2ee

            • 3. Re: whats wrong?
              dargoth

              in post above some code was cut dun know why...

              <?xml version="1.0" encoding="UTF-8"?>
              <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
              <application>
              <display-name>Ps Application</display-name>

              <module>
              <ejb>Ps.jar</ejb>
              </module>

              <module>
              <web>
              <web-uri>Ps.war</web-uri>
              <context-root>/Ps</context-root>
              </web>
              </module>

              </application>


              • 4. Re: whats wrong?
                dargoth

                 

                <?xml version="1.0" encoding="UTF-8"?>
                <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
                <application>
                 <display-name>Ps Application</display-name>
                
                 <module>
                 <ejb>Ps.jar</ejb>
                 </module>
                
                 <module>
                 <web>
                 <web-uri>Ps.war</web-uri>
                 <context-root>/Ps</context-root>
                 </web>
                 </module>
                
                </application>


                dont know why it is happening.. if some admin can delete these posts above...

                • 5. Re: whats wrong?
                  jaikiran

                   

                  "dargoth" wrote:
                  <module>
                  <ejb>Ps.jar</ejb>
                  </module>


                  This tells the deployer that there is a jar file directly under Ps.ear by the name Ps.jar, and it contains EJBs.

                  So, your Ps.ear should contain Ps.jar inside it.
                  Please, run the following command from the command prompt and post the output:

                  jar -tf Ps.ear


                  This will output the contents of your Ps.ear


                  • 6. Re: whats wrong?
                    dargoth

                    output:

                    META-INF/
                    META-INF/MANIFEST.MF
                    Ps.war
                    PsEJB.jar
                    META-INF/application.xml

                    • 7. Re: whats wrong?
                      darranl

                      Your jar is called PsEJB.jar not Ps.jar so update the application.xml to: -

                      <module>
                       <ejb>PsEJB.jar</ejb>
                      </module>


                      • 8. Re: whats wrong?
                        dargoth

                        thx alot gous^^