1 Reply Latest reply on Dec 4, 2008 6:20 AM by jaikiran

    Problem Deploying in JBoss 5.0.0RC2

    csuchanec

      I was hoping someone could point me in the direction of what the issue might be with an issue I am having with getting my application to deploy in JBoss 5.0.0 RC2. The application deploys fine on 4.2.3 but when I move it over to try to get it to work on 5 I get issues. I know everything we rewritten in 5, so there are probably things I need to change with my code, the problem is the error message I am getting is not very helpful.

      The output from the deployment is as follows:

      ===============================================================================
      .
       JBoss Bootstrap Environment
      .
       JBOSS_HOME: C:\jboss-5.0.0.CR2\bin\\..
      .
       JAVA: C:\Program Files\Java\jdk1.6.0_10\bin\java
      .
       JAVA_OPTS: -Dprogram.name=irs_run.bat -Dpps.prop.file=..\server\irs\conf\pps.prop -Djboss.partition.name=IRSPartition -Djboss.partition.udpGroup=228.1.2.6 -XX:PermSize=128M -XX:MaxPermSize=128M -Xm
      s128m -Xmx512m
      .
       CLASSPATH: C:\Program Files\Java\jdk1.6.0_10\lib\tools.jar;C:\jboss-5.0.0.CR2\bin\\run.jar
      .
      ===============================================================================
      .
      18:11:00,792 INFO [ServerImpl] Starting JBoss (Microcontainer)...
      18:11:00,796 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.CR2 (build: SVNTag=JBoss_5_0_0_CR2 date=200809171139)
      18:11:00,803 INFO [ServerImpl] Home Dir: C:\jboss-5.0.0.CR2
      18:11:00,807 INFO [ServerImpl] Home URL: file:/C:/jboss-5.0.0.CR2/
      18:11:00,812 INFO [ServerImpl] Library URL: file:/C:/jboss-5.0.0.CR2/lib/
      18:11:00,817 INFO [ServerImpl] Patch URL: null
      18:11:00,820 INFO [ServerImpl] Server Name: irs
      18:11:00,823 INFO [ServerImpl] Server Home Dir: C:\jboss-5.0.0.CR2\server\irs
      18:11:00,828 INFO [ServerImpl] Server Home URL: file:/C:/jboss-5.0.0.CR2/server/irs/
      18:11:00,832 INFO [ServerImpl] Server Data Dir: C:\jboss-5.0.0.CR2\server\irs\data
      18:11:00,835 INFO [ServerImpl] Server Temp Dir: C:\jboss-5.0.0.CR2\server\irs\tmp
      18:11:00,838 INFO [ServerImpl] Server Config URL: file:/C:/jboss-5.0.0.CR2/server/irs/conf/
      18:11:00,842 INFO [ServerImpl] Server Library URL: file:/C:/jboss-5.0.0.CR2/server/irs/lib/
      18:11:00,849 INFO [ServerImpl] Root Deployment Filename: jboss-service.xml
      18:11:01,346 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/jboss-5.0.0.CR2/server/irs/conf/bootstrap.xml
      18:11:02,011 INFO [CopyMechanism] VFS temp dir: C:\jboss-5.0.0.CR2\server\irs\tmp
      18:11:02,263 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
      18:11:03,324 INFO [ServerInfo] Java version: 1.6.0_10,Sun Microsystems Inc.
      18:11:03,327 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 11.0-b15,Sun Microsystems Inc.
      18:11:03,330 INFO [ServerInfo] OS-System: Windows Vista 6.0,x86
      18:11:03,372 INFO [JMXKernel] Legacy JMX core initialized
      18:11:04,372 INFO [MetaDataAwareProfile] Using profile root:C:\jboss-5.0.0.CR2\server\irs
      18:11:05,542 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
      18:11:31,787 ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/C:/jboss-5.0.0.CR2/server/irs/deploy/pps.ear state=Not Installed mode=Manual requiredState=Parse
      org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/C:/jboss-5.0.0.CR2/server/irs/deploy/pps.ear/ppsServlet.war
       at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:343)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:303)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:275)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:236)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1285)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1003)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1056)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:944)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:627)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:265)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:143)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
       at org.jboss.Main.boot(Main.java:209)
       at org.jboss.Main$1.run(Main.java:544)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.ClassCastException
       at java.lang.Class.cast(Class.java:2990)
       at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:215)
       at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)
       at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)
       at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)
       at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)
       at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:239)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:336)
       ... 23 more
      18:11:31,913 WARN [HackClassloaderMetaDataDeployer] FIXME Using loader repository config: jboss.console:sar=console-mgr.sar for vfsfile:/C:/jboss-5.0.0.CR2/server/irs/deploy/management/console-mgr.s
      ar/ use classloading metadata not loader repository config
      18:11:32,991 INFO [AspectDeployer] Deploying xml into org.jboss.aop.AspectManager@19ac931 for BaseClassLoader@88dd83{vfsfile:/C:/jboss-5.0.0.CR2/server/irs/deploy/ejb3-interceptors-aop.xml}
      18:11:50,184 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
      18:11:50,366 INFO [MailService] Mail Service bound to java:/Mail
      18:11:51,005 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
      18:11:51,008 INFO [NativeServerConfig] 3.0.3.GA
      18:11:52,191 WARN [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its
      password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
      18:11:52,609 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
      18:11:52,612 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
      18:11:53,080 INFO [TransactionManagerService] Initializing recovery manager
      18:11:53,777 INFO [TransactionManagerService] Recovery manager configured
      18:11:53,780 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
      18:11:53,818 INFO [TransactionManagerService] Starting transaction recovery manager
      18:11:54,359 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk
      1.6.0_10\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Progra
      m Files\Wave Systems Corp\Dell Preboot Manager\Access Client\v5\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;c:\program files\GNUWin32\\bin;C:\Program Files\Microsoft SQL Server\80\Tools\Bin
      n\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Mic
      rosoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;c:\apache-ant-1.6.5\bin\; C:\Program Files\Java\jdk1.6.0_10\bin\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Common Files\Ulead Systems\
      MPEG
      18:11:54,466 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
      18:11:54,480 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
      18:11:54,483 INFO [Catalina] Initialization processed in 389 ms
      18:11:54,486 INFO [StandardService] Starting service jboss.web
      18:11:54,500 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.1.CR7
      18:11:54,583 INFO [Catalina] Server startup in 96 ms
      18:11:54,677 INFO [TomcatDeployment] deploy, ctxPath=/invoker, vfsUrl=http-invoker.sar/invoker.war
      18:11:55,734 INFO [TomcatDeployment] deploy, ctxPath=/jbossws, vfsUrl=jbossws.sar/jbossws-management.war
      18:11:55,819 INFO [TomcatDeployment] deploy, ctxPath=/web-console, vfsUrl=management/console-mgr.sar/web-console.war
      18:11:56,345 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.0.CR2/server/irs/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
      18:11:56,361 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.0.CR2/server/irs/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
      18:11:56,390 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.0.CR2/server/irs/deploy/jms-ra.rar/META-INF/ra.xml
      18:11:56,411 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.0.CR2/server/irs/deploy/mail-ra.rar/META-INF/ra.xml
      18:11:56,442 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.0.CR2/server/irs/deploy/quartz-ra.rar/META-INF/ra.xml
      18:11:56,631 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
      18:11:56,669 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
      18:11:56,676 INFO [RAMJobStore] RAMJobStore initialized.
      18:11:56,680 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
      18:11:56,686 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
      18:11:56,691 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
      18:11:57,830 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
      18:11:58,348 WARN [QuartzTimerServiceFactory] sql failed: CREATE TABLE QRTZ_JOB_DETAILS(JOB_NAME VARCHAR(80) NOT NULL, JOB_GROUP VARCHAR(80) NOT NULL, DESCRIPTION VARCHAR(120) NULL, JOB_CLASS_NAME VA
      RCHAR(128) NOT NULL, IS_DURABLE VARCHAR(1) NOT NULL, IS_VOLATILE VARCHAR(1) NOT NULL, IS_STATEFUL VARCHAR(1) NOT NULL, REQUESTS_RECOVERY VARCHAR(1) NOT NULL, JOB_DATA BINARY NULL, PRIMARY KEY (JOB_NAM
      E,JOB_GROUP))
      18:11:58,437 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
      18:11:58,444 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
      18:11:58,447 INFO [JobStoreCMT] Using db table-based data access locking (synchronization).
      18:11:58,466 INFO [JobStoreCMT] Removed 0 Volatile Trigger(s).
      18:11:58,470 INFO [JobStoreCMT] Removed 0 Volatile Job(s).
      18:11:58,474 INFO [JobStoreCMT] JobStoreCMT initialized.
      18:11:58,477 INFO [StdSchedulerFactory] Quartz scheduler 'JBossEJB3QuartzScheduler' initialized from an externally provided properties instance.
      18:11:58,480 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
      18:11:58,486 INFO [JobStoreCMT] Freed 0 triggers from 'acquired' / 'blocked' state.
      18:11:58,497 INFO [JobStoreCMT] Recovering 0 jobs that were in-progress at the time of the last shut-down.
      18:11:58,500 INFO [JobStoreCMT] Recovery complete.
      18:11:58,504 INFO [JobStoreCMT] Removed 0 'complete' triggers.
      18:11:58,513 INFO [JobStoreCMT] Removed 0 stale fired job entries.
      18:11:58,520 INFO [QuartzScheduler] Scheduler JBossEJB3QuartzScheduler_$_NON_CLUSTERED started.
      18:11:58,901 INFO [ServerPeer] JBoss Messaging 1.4.1.CR1 server [0] started
      18:11:59,071 WARN [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non c
      lustered. So connection factory will *not* support failover
      18:11:59,082 WARN [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is
      non clustered. So connection factory will *not* support load balancing
      18:11:59,216 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
      18:11:59,219 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@30ea9 started
      18:11:59,246 INFO [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
      18:11:59,251 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
      18:11:59,255 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@fe918f started
      18:11:59,266 INFO [TopicService] Topic[/topic/FccSendFamEmail] started, fullSize=200000, pageSize=2000, downCacheSize=2000
      18:11:59,272 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
      18:11:59,283 INFO [TopicService] Topic[/topic/FccSendEmail] started, fullSize=200000, pageSize=2000, downCacheSize=2000
      18:11:59,288 INFO [TopicService] Topic[/topic/FccSendApprovedEmail] started, fullSize=200000, pageSize=2000, downCacheSize=2000
      18:11:59,294 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
      18:11:59,300 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@a80f3a started
      18:11:59,304 INFO [TopicService] Topic[/topic/FccSendApprovedTypeEmail] started, fullSize=200000, pageSize=2000, downCacheSize=2000
      18:11:59,428 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
      18:11:59,466 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MSSQLXADS' to JNDI name 'java:MSSQLXADS'
      18:11:59,484 INFO [TomcatDeployment] deploy, ctxPath=/, vfsUrl=ROOT.war
      18:11:59,556 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war
      18:11:59,673 INFO [TomcatDeployment] deploy, ctxPath=/ppsReportNew, vfsUrl=ppsReportNew.war
      18:11:59,752 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
      
      *** CONTEXTS IN ERROR: Name -> Error
      
      vfszip:/C:/jboss-5.0.0.CR2/server/irs/deploy/pps.ear -> java.lang.ClassCastException
      
      
      18:11:59,800 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
      18:11:59,826 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
      18:11:59,838 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.CR2 (build: SVNTag=JBoss_5_0_0_CR2 date=200809171139)] Started in 58s:983ms


      All it is telling me is I am getting a class cast exception when it tries to deploy the war that is in my ear because of the error creating managed object.

      Anyone have any idea where to look for possible issues. I already resolved a similar issue by changing the Spring configurations to use the XSD definitions instead of DTD.

      If there is any more information I can provide that would help please let me know.