1 Reply Latest reply on Feb 15, 2008 7:16 AM by Pushpendra

    Error during deployment in Jboss 4.2.1.GA

    Pushpendra Newbie

      Hi,
      We are using linux OS with JBoss4.2.1GA, mysql4.0, jdk1.6.0_3 and we are getting following error:

      13:54:13,145 INFO [Server] Starting JBoss (MX MicroKernel)...
      13:54:13,154 INFO [Server] Release ID: JBoss [Trinity] 4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)
      13:54:13,156 INFO [Server] Home Dir: /usr/local/jboss/jboss-4.2.1.GA
      13:54:13,156 INFO [Server] Home URL: file:/usr/local/jboss/jboss-4.2.1.GA/
      13:54:13,158 INFO [Server] Patch URL: null
      13:54:13,158 INFO [Server] Server Name: default
      13:54:13,159 INFO [Server] Server Home Dir: /usr/local/jboss/jboss-4.2.1.GA/server/default
      13:54:13,159 INFO [Server] Server Home URL: file:/usr/local/jboss/jboss-4.2.1.GA/server/default/
      13:54:13,159 INFO [Server] Server Log Dir: /usr/local/jboss/jboss-4.2.1.GA/server/default/log
      13:54:13,160 INFO [Server] Server Temp Dir: /usr/local/jboss/jboss-4.2.1.GA/server/default/tmp
      13:54:13,160 INFO [Server] Root Deployment Filename: jboss-service.xml
      13:54:14,596 INFO [ServerInfo] Java version: 1.6.0_03,Sun Microsystems Inc.
      13:54:14,597 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.6.0_03-b05,Sun Microsystems Inc.
      13:54:14,597 INFO [ServerInfo] OS-System: Linux 2.4.18-3,i386
      13:54:15,637 INFO [Server] Core system initialized
      13:54:21,243 INFO [WebService] Using RMI server codebase: http://203.77.200.18:8083/
      13:54:21,251 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
      13:54:22,987 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
      13:54:22,988 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
      13:54:23,530 INFO [TransactionManagerService] Starting recovery manager
      13:54:23,831 INFO [TransactionManagerService] Recovery manager started
      13:54:23,831 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
      13:54:31,671 INFO [EJB3Deployer] Starting java:comp multiplexer
      13:54:31,728 ERROR [STDERR] [Fatal Error] :-1:-1: Premature end of file.
      13:54:31,729 ERROR [STDERR] org.xml.sax.SAXParseException: Premature end of file.
      13:54:31,730 ERROR [STDERR] at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      13:54:31,731 ERROR [STDERR] at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      13:54:31,731 ERROR [STDERR] at org.jboss.aop.AspectXmlLoader.loadURL(AspectXmlLoader.java:1291)
      13:54:31,731 ERROR [STDERR] at org.jboss.aop.deployment.AspectDeployer.getLoaderRepositoryIfAttaching(AspectDeployer.java:330)
      13:54:31,731 ERROR [STDERR] at org.jboss.aop.deployment.AspectDeployer.getScopedClassLoader(AspectDeployer.java:311)
      13:54:31,733 ERROR [STDERR] at org.jboss.aop.deployment.AspectDeployer.create(AspectDeployer.java:160)
      13:54:31,733 ERROR [STDERR] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
      13:54:31,744 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
      13:54:31,745 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      13:54:31,745 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      13:54:31,745 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      13:54:31,745 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      13:54:31,745 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      13:54:31,745 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      13:54:31,745 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      13:54:31,746 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      13:54:31,746 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      13:54:31,746 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      13:54:31,748 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      13:54:31,748 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      13:54:31,748 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      13:54:31,748 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      13:54:31,748 ERROR [STDERR] at $Proxy9.deploy(Unknown Source)
      13:54:31,749 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      13:54:31,749 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      13:54:31,749 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      13:54:31,749 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
      13:54:31,749 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      13:54:31,749 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      13:54:31,749 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      13:54:31,750 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      13:54:31,750 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      13:54:31,750 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      13:54:31,750 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      13:54:31,750 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      13:54:31,750 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      13:54:31,750 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      13:54:31,752 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      13:54:31,752 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      13:54:31,752 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      13:54:31,753 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      13:54:31,753 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      13:54:31,753 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      13:54:31,753 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      13:54:31,753 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      13:54:31,753 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      13:54:31,753 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      13:54:31,754 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      13:54:31,754 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      13:54:31,754 ERROR [STDERR] at $Proxy4.start(Unknown Source)
      13:54:31,754 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      13:54:31,754 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      13:54:31,754 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      13:54:31,754 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      13:54:31,755 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
      13:54:31,755 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      13:54:31,755 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      13:54:31,755 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      13:54:31,755 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      13:54:31,755 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      13:54:31,755 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      13:54:31,756 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      13:54:31,756 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      13:54:31,756 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      13:54:31,756 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      13:54:31,756 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      13:54:31,756 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      13:54:31,757 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      13:54:31,759 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)
      13:54:31,760 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      13:54:31,760 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      13:54:31,760 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200)
      13:54:31,760 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:508)
      13:54:31,760 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
      13:54:31,770 ERROR [MainDeployer] Could not create deployment: file:/usr/local/jboss/jboss-4.2.1.GA/server/default/deploy/ejb3-interceptors-aop.xml
      org.jboss.deployment.DeploymentException: Premature end of file.; - nested throwable: (org.xml.sax.SAXParseException: Premature end of file.)
      at org.jboss.aop.deployment.AspectDeployer.create(AspectDeployer.java:185)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      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.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: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.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor9.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.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: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:39)
      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.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:619)
      Caused by: org.xml.sax.SAXParseException: Premature end of file.
      at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      at org.jboss.aop.AspectXmlLoader.loadURL(AspectXmlLoader.java:1291)
      at org.jboss.aop.deployment.AspectDeployer.getLoaderRepositoryIfAttaching(AspectDeployer.java:330)
      at org.jboss.aop.deployment.AspectDeployer.getScopedClassLoader(AspectDeployer.java:311)
      at org.jboss.aop.deployment.AspectDeployer.create(AspectDeployer.java:160)
      ... 68 more
      13:54:35,477 INFO [ServiceEndpointManager] jbossws-1.2.1.GA (build=200704151756)
      13:54:39,148 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.6.0_03/jre/lib/i386/client:/usr/java/jdk1.6.0_03/jre/lib/i386:/usr/java/jdk1.6.0_03/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib


      My application works fine but I suspect that if I deploy ejb3.0 it won't work in my server. Two error are from "Premature end of file" and last error is about Apache Tomcat Native Library error.

      Kindly help,

      Pushpendra Raval

        • 1. Re: Error during deployment in Jboss 4.2.1.GA
          Pushpendra Newbie

          Hi:

          Solved the problem. It was because my ejb3-interceptors-aop.xml file was corrupted. I replaced it with good file and both these errors vanished. Now I have only one error and that is about: Apache Tomcat Native Library error.

          Also note that by changing jdk1.6 to jdk1.5 did not solve my problem. So you can definitely use jdk1.6 and everything should work good.

          Thanks,

          Pushpendra Raval