5 Replies Latest reply on Feb 22, 2009 11:59 PM by Agata Przybyszewska

    Seam 2.1.1 GA - works on Windows, but not on Linux Ubuntu

    Agata Przybyszewska Newbie

      Hello
      I have a JBoss 4.2.3 AS running on my development machine, where I have made a small Seam application - the skeleton was generated by seam-gen. It deploys on my windows machine without problems. I am using JDK 1.6, Seam 2.1.1 GA and work on the embedded HBDSQL.


      I have rented a Slice on Slicehost.com for my testing server, and installed another JBoss 4.2.3 AS there. The Slice runs on Xen, and is installed with Ubuntu Hardy 8.04.


      Now comes the strange part. The webapplication doesn't deploy on Ubuntu... everything I can think of is exactly the same. The problems seams to be in the EAR file - it can't find the application.xml. I tried to open the ear, and the application.xml is inside the MANIFEST-MF ... I am using the seam-gen generated buildscript for building the ear and datasource.


      Here's the server log:



      =========================================================================
      
        JBoss Bootstrap Environment
      
        JBOSS_HOME: /opt/jboss
      
        JAVA: java
      
        JAVA_OPTS: -Dprogram.name=run.sh -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true
      
        CLASSPATH: /opt/jboss/bin/run.jar
      
      =========================================================================
      
      15:31:27,481 INFO  [Server] Starting JBoss (MX MicroKernel)...
      15:31:27,485 INFO  [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)
      15:31:27,485 INFO  [Server] Home Dir: /opt/jboss-4.2.3.GA
      15:31:27,485 INFO  [Server] Home URL: file:/opt/jboss-4.2.3.GA/
      15:31:27,485 INFO  [Server] Patch URL: null
      15:31:27,485 INFO  [Server] Server Name: default
      15:31:27,485 INFO  [Server] Server Home Dir: /opt/jboss-4.2.3.GA/server/default
      15:31:27,485 INFO  [Server] Server Home URL: file:/opt/jboss-4.2.3.GA/server/default/
      15:31:27,485 INFO  [Server] Server Log Dir: /opt/jboss-4.2.3.GA/server/default/log
      15:31:27,489 INFO  [Server] Server Temp Dir: /opt/jboss-4.2.3.GA/server/default/tmp
      15:31:27,489 INFO  [Server] Root Deployment Filename: jboss-service.xml
      15:31:27,845 INFO  [ServerInfo] Java version: 1.6.0,Sun Microsystems Inc.
      15:31:27,845 INFO  [ServerInfo] Java VM: OpenJDK 64-Bit Server VM 1.6.0-b09,Sun Microsystems Inc.
      15:31:27,845 INFO  [ServerInfo] OS-System: Linux 2.6.24-19-xen,amd64
      15:31:28,313 INFO  [Server] Core system initialized
      15:31:31,022 INFO  [WebService] Using RMI server codebase: http://Office:8083/
      15:31:31,026 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
      15:31:31,654 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
      15:31:31,654 INFO  [TransactionManagerService] Setting up property manager MBean and JMX layer
      15:31:31,926 INFO  [TransactionManagerService] Starting recovery manager
      15:31:32,106 INFO  [TransactionManagerService] Recovery manager started
      15:31:32,106 INFO  [TransactionManagerService] Binding TransactionManager JNDI Reference
      15:31:35,842 INFO  [EJB3Deployer] Starting java:comp multiplexer
      15:31:39,198 INFO  [NativeServerConfig] JBoss Web Services - Native
      15:31:39,202 INFO  [NativeServerConfig] jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
      15:31:40,482 INFO  [Embedded] Catalina naming disabled
      15:31:40,622 INFO  [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/lib:/usr/lib:/usr/lib64:/lib64
      15:31:40,682 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
      15:31:40,682 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-0.0.0.0-8009
      15:31:40,682 INFO  [Catalina] Initialization processed in 200 ms
      15:31:40,686 INFO  [StandardService] Starting service jboss.web
      15:31:40,686 INFO  [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
      15:31:40,746 INFO  [Catalina] Server startup in 64 ms
      15:31:40,934 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
      15:31:41,750 INFO  [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
      15:31:41,946 INFO  [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
      15:31:42,154 INFO  [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      15:31:43,406 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
      15:31:44,110 INFO  [MailService] Mail Service bound to java:/Mail
      15:31:44,270 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
      15:31:44,374 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
      15:31:44,406 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
      15:31:44,458 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
      15:31:44,530 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
      15:31:44,554 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
      15:31:44,602 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
      15:31:44,614 INFO  [QuartzResourceAdapter] start quartz!!!
      15:31:44,678 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main
      15:31:44,698 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
      15:31:44,702 INFO  [RAMJobStore] RAMJobStore initialized.
      15:31:44,702 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
      15:31:44,702 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
      15:31:44,702 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
      15:31:45,714 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
      15:31:46,102 INFO  [A] Bound to JNDI name: queue/A
      15:31:46,106 INFO  [B] Bound to JNDI name: queue/B
      15:31:46,106 INFO  [C] Bound to JNDI name: queue/C
      15:31:46,110 INFO  [D] Bound to JNDI name: queue/D
      15:31:46,110 INFO  [ex] Bound to JNDI name: queue/ex
      15:31:46,142 INFO  [testTopic] Bound to JNDI name: topic/testTopic
      15:31:46,146 INFO  [securedTopic] Bound to JNDI name: topic/securedTopic
      15:31:46,150 INFO  [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
      15:31:46,158 INFO  [testQueue] Bound to JNDI name: queue/testQueue
      15:31:46,238 INFO  [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
      15:31:46,298 INFO  [DLQ] Bound to JNDI name: queue/DLQ
      15:31:46,498 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
      15:31:46,626 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=ouh_demoDatasource' to JNDI name 'java:ouh_demoDatasource'
      15:31:46,678 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
      15:31:48,927 INFO  [EARDeployer] Init J2EE application: file:/opt/jboss-4.2.3.GA/server/default/deploy/ouh_demo.ear
      15:31:48,935 ERROR [MainDeployer] Could not initialise deployment: file:/opt/jboss-4.2.3.GA/server/default/deploy/ouh_demo.ear
      org.jboss.deployment.DeploymentException: No META-INF/application.xml found
              at org.jboss.deployment.EARDeployer.init(EARDeployer.java:146)
              at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
              at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:616)
              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 $Proxy9.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.GeneratedMethodAccessor3.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:616)
              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.GeneratedMethodAccessor8.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:616)
              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:304)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:616)
              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:508)
              at java.lang.Thread.run(Thread.java:636)
      15:31:48,943 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      
      --- Incompletely deployed packages ---
      org.jboss.deployment.DeploymentInfo@808a32f4 { url=file:/opt/jboss-4.2.3.GA/server/default/deploy/ouh_demo.ear }
        deployer: org.jboss.deployment.EARDeployer@605b28c9
        status: null
        state: FAILED
        watch: file:/opt/jboss-4.2.3.GA/server/default/deploy/ouh_demo.ear
        altDD: null
        lastDeployed: 1235316708935
        lastModified: 1235316708000
        mbeans:
      
      
      15:31:49,031 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
      15:31:49,071 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-8009
      15:31:49,095 INFO  [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)] Started in 21s:606ms
      



      Any ideas about what goes wrong here?
      Agata