5 Replies Latest reply on Sep 2, 2008 1:58 PM by tomek szzzaaos

    seam-gen create prod version

    tomek szzzaaos Newbie

      Hi,


      My project works fine from eclipse but when I try to do:



      ./seam -Dprofile=prod deploy




      this creates war, ear and jar in the dist folder.
      If I copy those file in to the JBOSS HOME/server/default/deploy I'm getting an exception:



      11:51:44,126 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
      11:51:44,249 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=webshopDatasource' to JNDI name 'java:webshopDatasource'
      11:51:44,807 WARN  [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=webshop.jar
      java.lang.RuntimeException: Interceptor class not found: org.jboss.seam.ejb.SeamInterceptor
         at org.jboss.ejb3.interceptor.InterceptorInfoRepository.loadClass(InterceptorInfoRepository.java:509)
         at org.jboss.ejb3.interceptor.InterceptorInfoRepository.access$100(InterceptorInfoRepository.java:60)
         at org.jboss.ejb3.interceptor.InterceptorInfoRepository$AnnotationInitialiser.<init>(InterceptorInfoRepository.java:666)
         at org.jboss.ejb3.interceptor.InterceptorInfoRepository$XmlInitialiser.<init>(InterceptorInfoRepository.java:797)
         at org.jboss.ejb3.interceptor.InterceptorInfoRepository.initialiseInfosFromXml(InterceptorInfoRepository.java:350)
         at org.jboss.ejb3.interceptor.InterceptorInfoRepository.initialise(InterceptorInfoRepository.java:91)
         at org.jboss.ejb3.Ejb3HandlerFactory$DDFactory.<init>(Ejb3HandlerFactory.java:48)
         at org.jboss.ejb3.Ejb3HandlerFactory.getInstance(Ejb3HandlerFactory.java:83)
         at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:383)
         at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:327)
         at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:77)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
         at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         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.create(Unknown Source)
         and so one...




      and


      11:51:44,816 INFO  [EJB3Deployer] Deployed: file:/mobius/webshop/jboss-4.2.2.GA/server/default/deploy/webshop.jar
      11:51:44,852 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
      11:51:45,491 WARN  [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.jboss.seam.servlet.SeamResourceServlet
      11:51:45,496 INFO  [TomcatDeployer] deploy, ctxPath=/webshop, warUrl=.../tmp/deploy/tmp29053webshop-exp.war/
      11:51:45,566 ERROR [[/webshop]] Error configuring application listener of class org.jboss.seam.servlet.SeamListener
      java.lang.ClassNotFoundException: org.jboss.seam.servlet.SeamListener
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3799)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)