3 Replies Latest reply on Nov 7, 2006 2:39 AM by Mohammad Norouzi

    problem with deploying in JBoss

    Mohammad Norouzi Novice

      Hi all,

      I am going to deploy my seam project in JBoss 4.0.4 GA, but during the startup there is an exception thrown. it complain of ejb-jar.xml but I never change that file and I am copied it from the example folder.

      
      09:08:29,984 INFO [EARDeployer] Init J2EE application: file:/H:/jboss4.0.4.GA/server/default/deploy/registration.ear
       09:08:35,250 ERROR [MainDeployer] Could not create deployment: file:/H:/jboss4.0.4.GA/server/default/tmp/deploy/tmp6030registration.ear-contents/e_registration-web.jar
       org.jboss.deployment.DeploymentException: ejb-jar.xml must either obey the right xml schema or define a valid DOCTYPE!
       at org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMetaData.java:339)
       at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:166)
       at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:541)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
       at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
       at org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java:99)
       at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
       at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy42.create(Unknown Source)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:943)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy6.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy4.start(Unknown Source)
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy5.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
       at org.jboss.Main.boot(Main.java:200)
       at org.jboss.Main$1.run(Main.java:464)
       at java.lang.Thread.run(Unknown Source)
       09:08:35,578 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      
       --- Incompletely deployed packages ---
       org.jboss.deployment.DeploymentInfo@7b963a84 { url=file:/H:/jboss4.0.4.GA/server/default/deploy/registration.ear }
       deployer: org.jboss.deployment.EARDeployer@2f8b5a
       status: Deployment FAILED reason: ejb-jar.xml must either obey the right xml schema or define a valid DOCTYPE!
       state: FAILED
       watch: file:/H:/jboss4.0.4.GA/server/default/deploy/registration.ear
       altDD: null
       lastDeployed: 1162618715250
       lastModified: 1162618709953
       mbeans:
      
      
       09:08:35,812 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
       09:08:36,890 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
       09:08:36,921 INFO [JkMain] Jk running ID=0 time=0/156 config=null
       09:08:36,953 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 1m:9s:47ms
      
      
      




        • 1. Re: problem with deploying in JBoss
          Gavin King Master

          Do you have the EJB3 profile installed? I doubt it.

          • 2. Re: problem with deploying in JBoss
            Mohammad Norouzi Novice

            Hi

            I used JBoss installer wizard and from the list of profiles I chose ejb3. I think Seam listener doesnt start properly.
            I have a question about lib folder of the JBoss server, there are some jar files like hibernate3.jar, some jar files started with jboss*.jar , if I put the jar files palced in the Seam "lib" JBoss will confuse and jar files has incompatibility, Do I have to replace the lib of JBoss with lib of Seam? or maybe some of them?

            • 3. Re: problem with deploying in JBoss
              Mohammad Norouzi Novice

              Hi
              eventually, I could deploy it but jbpm doesnt work fine.

              the "register" action I put in the jsp file does not meaning to the Seam and this is the Jbpm which should know it but it doesnt.

              after clicking on Submit button no action fires and page stays intact.

              jsp file

              .....
               <tr>
               <td>Password</td>
               <td><h:inputSecret value="#{user.password}" required="true"/></td>
               </tr>
               <!-- validateAll -->
               </table>
               <h:messages/>
               
              <h:commandButton type="submit" value="Register" action="register"/>
              
               </h:form>
              ......
              


              backing bean:
               @Create
               @Begin(join=true,pageflow="SeamPracticePageFlow")
               public void begin() {
               userNotExists = false;
               }
              
              


              myproject.jpdl.xml :
              <pageflow-definition name="SeamPracticePageFlow">
              
               <start-page name="start" view-id="/pages/register.jsp">
               
              <transition name="register" to="checkUser" >
               <action expression="#{register.register}" />
               </transition>
              
               </start-page>
              
               <decision name="checkUser" expression="#{register.alreadyExists}" >
               <transition name="false" to="registered" />
               <transition name="true" to="start" />
               </decision>
              
               <page name="registered" view-id="/pages/registered.jsp">
               <redirect/>
               <transition name="welcomeMessage" to="listMessage" >
               <action expression="/pages/messages.seam" />
               </transition>
               </page>
              ..........
              
              


              thank you so much