0 Replies Latest reply on May 10, 2006 2:11 PM by Fábio Araújo

    Different Jbosses, same jdk, error

    Fábio Araújo Newbie

      Hi all,
      I have an old jboss server (4.0.0) and o wanted to migrate to a new server, and upgrade Jboss to jboss-4.0.3SP1 .
      I am using j2sdk1.5-sun.

      The old server result:

      /opt/old_jboss-4.0.0/bin# ./run.sh -c old_server
      =========================================================================

      JBoss Bootstrap Environment

      JBOSS_HOME: /opt/old_jboss-4.0.0

      JAVA: /usr/lib/j2sdk1.5-sun/bin/java

      JAVA_OPTS: -server -Xms128m -Xmx1024m -XX:PermSize=160m -XX:MaxPermSize=256m -Dprogram.name=run.sh

      CLASSPATH: /opt/old_jboss-4.0.0/bin/run.jar:/usr/lib/j2sdk1.5-sun/lib/tools.jar

      =========================================================================

      10:13:27,491 INFO [Server] Starting JBoss (MX MicroKernel)...
      10:13:27,495 INFO [Server] Release ID: JBoss [Zion] 4.0.0 (build: CVSTag=JBoss_4_0_0 date=200409200418)
      10:13:27,496 INFO [Server] Home Dir: /opt/old_jboss-4.0.0
      10:13:27,496 INFO [Server] Home URL: file:/opt/old_jboss-4.0.0/
      10:13:27,497 INFO [Server] Library URL: file:/opt/old_jboss-4.0.0/lib/
      10:13:27,499 INFO [Server] Patch URL: null
      10:13:27,499 INFO [Server] Server Name: old_server
      10:13:27,500 INFO [Server] Server Home Dir: /opt/old_jboss-4.0.0/server/old_server
      10:13:27,501 INFO [Server] Server Home URL: file:/opt/old_jboss-4.0.0/server/old_server/
      10:13:27,501 INFO [Server] Server Data Dir: /opt/old_jboss-4.0.0/server/old_server/data
      10:13:27,501 INFO [Server] Server Temp Dir: /opt/old_jboss-4.0.0/server/old_server/tmp
      10:13:27,502 INFO [Server] Server Config URL: file:/opt/old_jboss-4.0.0/server/old_server/conf/
      10:13:27,503 INFO [Server] Server Library URL: file:/opt/old_jboss-4.0.0/server/old_server/lib/
      10:13:27,503 INFO [Server] Root Deployment Filename: jboss-service.xml
      10:13:27,510 INFO [Server] Starting General Purpose Architecture (GPA)...
      10:13:28,603 INFO [ServerInfo] Java version: 1.5.0_06,Sun Microsystems Inc.
      10:13:28,604 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_06-b05,Sun Microsystems Inc.
      10:13:28,604 INFO [ServerInfo] OS-System: Linux 2.4.27-2-686-smp,i386
      10:13:29,506 INFO [Server] Core system initialized
      10:13:36,762 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
      10:13:36,983 INFO [WebService] Using RMI server codebase: http://anvssdf13.old_server.gov.br:8083/
      10:13:37,651 INFO [NamingService] Started jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
      10:13:41,903 INFO [Embedded] Catalina naming disabled
      10:13:43,503 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
      10:13:45,808 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8443
      10:13:45,809 INFO [Catalina] Initialization processed in 3732 ms
      10:13:45,810 INFO [StandardService] Starting service jboss.web
      10:13:45,824 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.0.28
      10:13:45,881 INFO [StandardHost] XML validation disabled
      10:13:45,990 INFO [Catalina] Server startup in 181 ms
      10:13:46,309 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/opt/old_jboss-4.0.0/server/old_server/deploy/jbossweb-tomcat50.sar/ROOT.war/



      New server error:

      /opt/jboss-4.0.3SP1/bin# ./run.sh -c new_server
      =========================================================================

      JBoss Bootstrap Environment

      JBOSS_HOME: /opt/jboss-4.0.3SP1

      JAVA: /usr/lib/j2sdk1.5-sun/bin/java

      JAVA_OPTS: -Xms128m -Xmx512m -XX:PermSize=160m -XX:MaxPermSize=256m -Dprogram.name=run.sh -Dprogram.name=run.sh

      CLASSPATH: /opt/jboss-4.0.3SP1/bin/run.jar:/usr/lib/j2sdk1.5-sun/lib/tools.jar

      =========================================================================

      10:31:41,841 INFO [Server] Starting JBoss (MX MicroKernel)...
      10:31:41,844 INFO [Server] Release ID: JBoss [Zion] 4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)
      10:31:41,847 INFO [Server] Home Dir: /opt/jboss-4.0.3SP1
      10:31:41,847 INFO [Server] Home URL: file:/opt/jboss-4.0.3SP1/
      10:31:41,850 INFO [Server] Patch URL: null
      10:31:41,850 INFO [Server] Server Name: new_server
      10:31:41,850 INFO [Server] Server Home Dir: /opt/jboss-4.0.3SP1/server/new_server
      10:31:41,851 INFO [Server] Server Home URL: file:/opt/jboss-4.0.3SP1/server/new_server/
      10:31:41,851 INFO [Server] Server Temp Dir: /opt/jboss-4.0.3SP1/server/new_server/tmp
      10:31:41,852 INFO [Server] Root Deployment Filename: jboss-service.xml
      10:31:42,866 INFO [ServerInfo] Java version: 1.5.0_06,Sun Microsystems Inc.
      10:31:42,866 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_06-b05,Sun Microsystems Inc.
      10:31:42,866 INFO [ServerInfo] OS-System: Linux 2.4.27-2-686-smp,i386
      10:31:43,375 WARN [BasicMBeanRegistry] javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.system:service=MainDeployer', Class=org.jboss.deployment.MainDeployer (org.jboss.deployment.MainDeployer@1eb2c1b)]
      10:31:43,375 INFO [MainDeployer] Registration is not done -> stop
      10:31:43,921 INFO [Server] Core system initialized
      10:31:50,343 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
      10:31:50,529 INFO [WebService] Using RMI server codebase: http://anvssdf13.new_server.gov.br:8083/
      10:31:51,123 INFO [NamingService] Started jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
      10:31:57,899 INFO [Embedded] Catalina naming disabled
      10:31:59,264 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
      10:32:00,241 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8443
      10:32:00,241 INFO [Catalina] Initialization processed in 2193 ms
      10:32:00,242 INFO [StandardService] Starting service jboss.web
      10:32:00,252 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.0.28
      10:32:00,351 INFO [StandardHost] XML validation disabled
      10:32:00,493 INFO [Catalina] Server startup in 252 ms
      10:32:04,719 INFO [MailService] Mail Service bound to mail/emailnew_server
      10:32:07,855 INFO [TomcatDeployer] deploy, ctxPath=/new_server, warUrl=file:/opt/jboss-4.0.3SP1/server/new_server/tmp/deploy/tmp1262new_server-exp.war/
      10:32:08,582 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
      10:32:08,626 INFO [WebappClassLoader] validateJarFile(/opt/jboss-4.0.3SP1/server/new_server/tmp/deploy/tmp1262new_server-exp.war/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class10:32:11,905 INFO [TomcatDeployer] deploy, ctxPath=/auditoriaWS, warUrl=file:/opt/jboss-4.0.3SP1/server/new_server/tmp/deploy/tmp1263auditoriaWS-exp.war/
      10:32:14,655 ERROR [MainDeployer] Could not initialise deployment: file:/opt/jboss-4.0.3SP1/server/new_server/deploy/jboss-local-jdbc.rar
      java.lang.AbstractMethodError: org.jboss.deployment.SimpleSubDeployerSupport.parseMetaData(Lorg/jboss/deployment/DeploymentInfo;Ljava/net/URL;)V


      I have tried to downgrade jdk but it didint work...
      Does someone have a clue?
      thx
      Ufa