ClassNotFoundException deploying EAR
gvalenc Oct 6, 2010 1:27 PMI'm trying to deploy this ear, but get this exception:
10:16:58,968 INFO [ServerImpl] Starting JBoss (Microcontainer)...
10:16:58,968 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)
10:16:58,984 INFO [ServerImpl] Bootstrap URL: null
10:16:58,984 INFO [ServerImpl] Home Dir: C:\jboss-5.0.1.GA
10:16:58,984 INFO [ServerImpl] Home URL: file:/C:/jboss-5.0.1.GA/
10:16:58,984 INFO [ServerImpl] Library URL: file:/C:/jboss-5.0.1.GA/lib/
10:16:58,984 INFO [ServerImpl] Patch URL: null
10:16:58,984 INFO [ServerImpl] Common Base URL: file:/C:/jboss-5.0.1.GA/common/
10:16:58,984 INFO [ServerImpl] Common Library URL: file:/C:/jboss-5.0.1.GA/common/lib/
10:16:58,984 INFO [ServerImpl] Server Name: default
10:16:58,984 INFO [ServerImpl] Server Base Dir: C:\jboss-5.0.1.GA\server
10:16:58,984 INFO [ServerImpl] Server Base URL: file:/C:/jboss-5.0.1.GA/server/
10:16:58,984 INFO [ServerImpl] Server Config URL: file:/C:/jboss-5.0.1.GA/server/default/conf/
10:16:58,984 INFO [ServerImpl] Server Home Dir: C:\jboss-5.0.1.GA\server\default
10:16:59,000 INFO [ServerImpl] Server Home URL: file:/C:/jboss-5.0.1.GA/server/default/
10:16:59,000 INFO [ServerImpl] Server Data Dir: C:\jboss-5.0.1.GA\server\default\data
10:16:59,015 INFO [ServerImpl] Server Library URL: file:/C:/jboss-5.0.1.GA/server/default/lib/
10:16:59,015 INFO [ServerImpl] Server Log Dir: C:\jboss-5.0.1.GA\server\default\log
10:16:59,015 INFO [ServerImpl] Server Native Dir: C:\jboss-5.0.1.GA\server\default\tmp\native
10:16:59,015 INFO [ServerImpl] Server Temp Dir: C:\jboss-5.0.1.GA\server\default\tmp
10:16:59,015 INFO [ServerImpl] Server Temp Deploy Dir: C:\jboss-5.0.1.GA\server\default\tmp\deploy
10:17:00,078 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/jboss-5.0.1.GA/server/default/conf/bootstrap.xml
10:17:01,031 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
10:17:01,031 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
10:17:01,312 INFO [CopyMechanism] VFS temp dir: C:\jboss-5.0.1.GA\server\default\tmp
10:17:01,312 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
10:17:02,250 INFO [ServerInfo] Java version: 1.6.0,IBM Corporation
10:17:02,250 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build jvmwi3260sr8ifx-20100609_59383)
10:17:02,250 INFO [ServerInfo] Java VM: IBM J9 VM 2.4,IBM Corporation
10:17:02,250 INFO [ServerInfo] OS-System: Windows XP 5.1 build 2600 Service Pack 3,x86
10:17:02,296 INFO [JMXKernel] Legacy JMX core initialized
10:17:04,546 INFO [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@6b526b52(root=C:\jboss-5.0.1.GA\server, key=org.jboss.profileservi
ce.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
10:17:04,546 INFO [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@6b526b52(root=C:\jboss-5.0.1.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143
b82c3[domain=default,server=default,name=default])
10:17:04,546 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl@4bea4bea{key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]}
10:17:05,953 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
10:17:12,406 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
10:17:12,406 INFO [NativeServerConfig] 3.0.5.GA
10:17:19,984 ERROR [AbstractKernelController] Error installing to PostClassLoader: name=vfszip:/C:/jboss-5.0.1.GA/server/default/deploy/TestJMS.ear/ state=ClassLoader mode=Manual requiredState=PostClassLoader
org.jboss.deployers.spi.DeploymentException: Cannot process metadata
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:181)
at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:93)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
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:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:736)
Caused by:
java.lang.RuntimeException: java.lang.ClassNotFoundException: com.gabe.message.ejb.TestSessionBean
at org.jboss.deployers.plugins.annotations.WeakClassLoaderHolder.loadClass(WeakClassLoaderHolder.java:76)
at org.jboss.deployers.plugins.annotations.AbstractElement.getOwner(AbstractElement.java:73)
at org.jboss.deployment.OptAnnotationMetaDataDeployer.getClasses(OptAnnotationMetaDataDeployer.java:172)
at org.jboss.deployment.OptAnnotationMetaDataDeployer.processJBossMetaData(OptAnnotationMetaDataDeployer.java:133)
at org.jboss.deployment.OptAnnotationMetaDataDeployer.processMetaData(OptAnnotationMetaDataDeployer.java:84)
at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:177)
... 20 more
Caused by:
java.lang.ClassNotFoundException: com.gabe.message.ejb.TestSessionBean
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:172)
at org.jboss.deployers.plugins.annotations.WeakClassLoaderHolder.loadClass(WeakClassLoaderHolder.java:72)
... 25 more
10:17:23,781 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
10:17:24,093 INFO [MailService] Mail Service bound to java:/Mail
10:17:25,687 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 fro
m the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
10:17:25,718 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
10:17:25,906 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
10:17:25,906 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
10:17:26,093 INFO [TransactionManagerService] Initializing recovery manager
10:17:26,187 INFO [TransactionManagerService] Recovery manager configured
10:17:26,187 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
10:17:26,218 INFO [TransactionManagerService] Starting transaction recovery manager
10:17:26,843 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
10:17:26,843 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
10:17:26,843 INFO [StandardService] Starting service jboss.web
10:17:26,843 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.2.GA
10:17:26,875 INFO [Catalina] Server startup in 96 ms
10:17:26,890 INFO [TomcatDeployment] deploy, ctxPath=/web-console
10:17:27,906 INFO [TomcatDeployment] deploy, ctxPath=/invoker
10:17:27,984 INFO [TomcatDeployment] deploy, ctxPath=/jbossws
10:17:28,078 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.1.GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
10:17:28,093 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.1.GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
10:17:28,125 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.1.GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml
10:17:28,140 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.1.GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml
10:17:28,156 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.1.GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
10:17:28,218 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
10:17:28,250 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
10:17:28,250 INFO [RAMJobStore] RAMJobStore initialized.
10:17:28,250 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
10:17:28,250 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
10:17:28,250 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
10:17:28,656 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
10:17:29,000 INFO [ServerPeer] JBoss Messaging 1.4.1.GA server [0] started
10:17:29,093 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
10:17:29,093 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1240124 started
10:17:29,109 INFO [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
10:17:29,125 INFO [QueueService] Queue[/queue/Q.Test] started, fullSize=200000, pageSize=2000, downCacheSize=2000
10:17:29,125 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
10:17:29,125 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@ea00ea0 started
10:17:29,125 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
10:17:29,125 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@3a923a92 started
10:17:29,125 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
10:17:29,125 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@5020502 started
10:17:29,125 WARN [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connect
ion factory will *not* support failover
10:17:29,125 WARN [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So co
nnection factory will *not* support load balancing
10:17:29,140 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
10:17:29,140 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@39463946 started
10:17:29,140 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
10:17:29,140 INFO [TopicService] Topic[/topic/Topic.Test] started, fullSize=200000, pageSize=2000, downCacheSize=2000
10:17:29,250 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
10:17:29,265 INFO [TomcatDeployment] deploy, ctxPath=/
10:17:29,343 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console
10:17:29,453 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS IN ERROR:
Deployment "vfszip:/C:/jboss-5.0.1.GA/server/default/deploy/TestJMS.ear/" is in error due to the following reason(s): java.lang.ClassNotFoundException: com.gabe.message.ejb.TestSessionBean
10:17:29,453 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
10:17:29,484 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
10:17:29,484 INFO [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)] Started in 30s:469ms
Attached is the EAR and the source for the session bean. Can anyone see why it would not find that class? I'm using IBM JDK 1.6 on Win XP SP3.
-
TestSessionBean.java.zip 667 bytes
-
TestSession.java.zip 266 bytes
-
TestJMS.ear 117.8 KB