Chuck Hernandez [
http://community.jboss.org/people/chernandeznet] created the discussion
"gettting java.lang.ClassNotFoundException: com.marcole.log.Log4JInitServlet
deploying from eclipse"
To view the discussion, visit:
http://community.jboss.org/message/605040#605040
--------------------------------------------------------------
Version: Helios Service Release 2 Build id: 20110218-0911 win32 -archx86_64 windows 7
Using the latest Jboss tools 2.2.0.v20110216-1758-H51-GA
---
I am trying to move to eclipse from ibm studio so my eclipse knowledge is limited. I
moved everything over, and created a EAR and War and set them to run as debug
configuration on my configured Jboss 6.0 Runtime Server.
The server starts fine however, the first servlet in the web.xml produces a classnot found
error. I set the server to deploy to "use workspace metadata". I check the
location and nothing gets moved over except the web.xml.
Here's the stack trace. Any help will be appreciated Thanks!
13:58:13,662 INFO [AbstractJBossASServerBase] Server Configuration:
JBOSS_HOME URL: file:/C:/apps/jboss6/
Bootstrap: $JBOSS_HOME\server/default/conf/bootstrap.xml
Common Base: $JBOSS_HOME\common/
Common Library: $JBOSS_HOME\common/lib/
Server Name: default
Server Base: $JBOSS_HOME\server/
Server Library: $JBOSS_HOME\server/default/lib/
Server Config: $JBOSS_HOME\server/default/conf/
Server Home: $JBOSS_HOME\server/default/
Server Data: $JBOSS_HOME\server/default/data/
Server Log: $JBOSS_HOME\server/default/log/
Server Temp: $JBOSS_HOME\server/default/tmp/
13:58:13,665 INFO [AbstractServer] Starting: JBossAS [6.0.0.Final "Neo"]
13:58:14,782 INFO [ServerInfo] Java version: 1.6.0_25,Sun Microsystems Inc.
13:58:14,782 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build
1.6.0_25-b06)
13:58:14,783 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 20.0-b11,Sun
Microsystems Inc.
13:58:14,783 INFO [ServerInfo] OS-System: Windows 7 6.1,x86
13:58:14,783 INFO [ServerInfo] VM arguments: -Dprogram.name=JBossTools: JBoss 6.0 Runtime
-Xms256m -Xmx768m -XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.endorsed.dirs=C:\apps\jboss6\lib\endorsed
-Djava.library.path=C:\apps\jboss6\bin\native; -Dfile.encoding=Cp1252
13:58:14,812 INFO [JMXKernel] Legacy JMX core initialized
13:58:18,852 INFO [AbstractServerConfig] JBoss Web Services - Stack CXF Server 3.4.1.GA
13:58:19,274 INFO [JSFImplManagementDeployer] Initialized 3 JSF configurations:
[Mojarra-1.2, MyFaces-2.0, Mojarra-2.0]
13:58:22,003 WARNING [FileConfigurationParser] AIO wasn't located on this platform, it
will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable
the AIO journal
13:58:24,221 WARNING [FileConfigurationParser] AIO wasn't located on this platform, it
will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable
the AIO journal
13:58:24,369 INFO [JMXConnector] starting JMXConnector on host localhost:1090
13:58:24,452 INFO [MailService] Mail Service bound to java:/Mail
13:58:25,052 INFO [HornetQServerImpl] live server is starting..
13:58:25,492 INFO [JournalStorageManager] Using NIO Journal
13:58:25,512 WARNING [HornetQServerImpl] Security risk! It has been detected that the
cluster admin user and password have not been changed from the installation default.
Please see the HornetQ user guide, cluster chapter, for instructions on how to do this.
13:58:26,010 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319
localhost:5455 for CORE protocol
13:58:26,012 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319
localhost:5445 for CORE protocol
13:58:26,014 INFO [HornetQServerImpl] HornetQ Server version 2.1.2.Final (Colmeia, 120)
started
13:58:26,050 INFO [WebService] Using RMI server codebase:
http://localhost:8083/
http://localhost:8083/
13:58:26,196 INFO [jbossatx] ARJUNA-32010 JBossTS Recovery Service (tag:
JBOSSTS_4_14_0_Final) - JBoss Inc.
13:58:26,202 INFO [arjuna] ARJUNA-12324 Start RecoveryActivators
13:58:26,220 INFO [arjuna] ARJUNA-12296 ExpiredEntryMonitor running at Thu, 12 May 2011
13:58:26
13:58:26,304 INFO [arjuna] ARJUNA-12310 Recovery manager listening on endpoint
127.0.0.1:4712
13:58:26,304 INFO [arjuna] ARJUNA-12344 RecoveryManagerImple is ready on port 4712
13:58:26,305 INFO [jbossatx] ARJUNA-32013 Starting transaction recovery manager
13:58:26,313 INFO [arjuna] ARJUNA-12163 Starting service
com.arjuna.ats.arjuna.recovery.ActionStatusService on port 4713
13:58:26,313 INFO [arjuna] ARJUNA-12337 TransactionStatusManagerItem host: 127.0.0.1
port: 4713
13:58:26,350 INFO [arjuna] ARJUNA-12170 TransactionStatusManager started on port 4713 and
host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
13:58:26,380 INFO [jbossatx] ARJUNA-32017 JBossTS Transaction Service (JTA version - tag:
JBOSSTS_4_14_0_Final) - JBoss Inc.
13:58:26,419 INFO [arjuna] ARJUNA-12202 registering bean jboss.jta:type=ObjectStore.
13:58:26,594 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows
optimal performance in production environments was not found on the java.library.path:
C:\apps\jboss6\bin\native;
13:58:27,101 INFO [ModClusterService] Initializing mod_cluster 1.1.0.Final
13:58:27,112 INFO [TomcatDeployment] deploy, ctxPath=/invoker
13:58:27,393 INFO [RARDeployment] Required license terms exist, view
vfs:/C:/apps/jboss6/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
13:58:27,403 INFO [RARDeployment] Required license terms exist, view
vfs:/C:/apps/jboss6/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
13:58:27,408 INFO [RARDeployment] Required license terms exist, view
vfs:/C:/apps/jboss6/server/default/deploy/jms-ra.rar/META-INF/ra.xml
13:58:27,421 INFO [HornetQResourceAdapter] HornetQ resource adaptor started
13:58:27,426 INFO [RARDeployment] Required license terms exist, view
vfs:/C:/apps/jboss6/server/default/deploy/mail-ra.rar/META-INF/ra.xml
13:58:27,435 INFO [RARDeployment] Required license terms exist, view
vfs:/C:/apps/jboss6/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
13:58:27,515 INFO [SimpleThreadPool] Job execution threads will use class loader of
thread: Thread-2
13:58:27,549 INFO [SchedulerSignalerImpl] Initialized Scheduler Signaller of type: class
org.quartz.core.SchedulerSignalerImpl
13:58:27,549 INFO [QuartzScheduler] Quartz Scheduler v.1.8.3 created.
13:58:27,551 INFO [RAMJobStore] RAMJobStore initialized.
13:58:27,553 INFO [QuartzScheduler] Scheduler meta-data: Quartz Scheduler (v1.8.3)
'JBossQuartzScheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support
persistence. and is not clustered.
13:58:27,553 INFO [StdSchedulerFactory] Quartz scheduler 'JBossQuartzScheduler'
initialized from an externally opened InputStream.
13:58:27,553 INFO [StdSchedulerFactory] Quartz scheduler version: 1.8.3
13:58:27,553 INFO [QuartzScheduler] Scheduler JBossQuartzScheduler_$_NON_CLUSTERED
started.
13:58:27,877 INFO [ConnectionFactoryBindingService] Bound ConnectionManager
'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name
'java:DefaultDS'
13:58:28,556 INFO [ConnectionFactoryBindingService] Bound ConnectionManager
'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name
'java:JmsXA'
13:58:28,685 INFO [xnio] XNIO Version 2.1.0.CR2
13:58:28,694 INFO [nio] XNIO NIO Implementation Version 2.1.0.CR2
13:58:28,829 INFO [remoting] JBoss Remoting version 3.1.0.Beta2
13:58:28,916 INFO [TomcatDeployment] deploy, ctxPath=/
13:58:28,944 INFO [service] Removing bootstrap log handlers
13:58:29,010 INFO [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on
http-localhost%2F127.0.0.1-8080
13:58:29,017 INFO [org.apache.coyote.ajp.AjpProtocol] Starting Coyote AJP/1.3 on
ajp-localhost%2F127.0.0.1-8009
13:58:29,017 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS
[6.0.0.Final "Neo"] Started in 15s:348ms
13:58:29,428 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error
installing to PreReal:
name=vfs:///C:/dev/eclipse/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1305154353239/deploy/JbossGrwEAR.ear
state=PostClassLoader mode=Manual requiredState=PreReal:
org.jboss.deployers.spi.DeploymentException: java.lang.ClassNotFoundException:
com.marcole.log.Log4JInitServlet from
BaseClassLoader@1a6699c{vfs:///C:/dev/eclipse/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1305154353239/deploy/JbossGrwEAR.ear/JbossGrw.war/}
at
org.jboss.resteasy.integration.deployers.ResteasyScannerDeployer.checkDeclaredApplicationClassAsServlet(ResteasyScannerDeployer.java:257)
[:6.0.0.Final]
at
org.jboss.resteasy.integration.deployers.ResteasyScannerDeployer.scan(ResteasyScannerDeployer.java:108)
[:6.0.0.Final]
at
org.jboss.resteasy.integration.deployers.ResteasyScannerDeployer.internalDeploy(ResteasyScannerDeployer.java:64)
[:6.0.0.Final]
at
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
[:2.2.0.GA]
at
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
[:2.2.0.GA]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832)
[:2.2.0.GA]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550)
[:2.2.0.GA]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1603)
[:2.2.0.GA]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491)
[:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983)
[:2.2.0.GA]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076)
[:2.2.0.GA]
at
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)
[:2.2.0.GA]
at
org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106)
[:6.0.0.Final]
at
org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143)
[:0.2.2]
at
org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151)
[:0.2.2]
at
org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94)
[:0.2.2]
at
org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
[jboss-kernel.jar:2.2.0.GA]
at
org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
[jboss-kernel.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190)
[:0.2.2]
at
org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87)
[:0.2.2]
at
org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215)
[:0.2.2]
at
org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159)
[:0.2.2]
at
org.jboss.profileservice.AbstractProfileService.activateProfile(AbstractProfileService.java:154)
[:0.2.2]
at
org.jboss.system.tools.ProfileServiceToolsFacade.addURI(ProfileServiceToolsFacade.java:233)
[:6.0.0.Final]
at
org.jboss.system.tools.LegacyDeploymentScannerAdapter.addURL(LegacyDeploymentScannerAdapter.java:140)
[:6.0.0.Final]
at org.jboss.system.tools.DeploymentScanner.addURL(DeploymentScanner.java:91)
[:6.0.0.Final]
at org.jboss.system.tools.DeploymentScanner.addURL(DeploymentScanner.java:83)
[:6.0.0.Final]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) [:1.6.0_25]
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
[:6.0.0.GA]
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271)
[:6.0.0.GA]
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)
[:6.0.0.GA]
at
org.jboss.system.server.jmx.MBeanServerWrapper.invoke(MBeanServerWrapper.java:138)
[:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)]
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown Source)
[:1.6.0_25]
at javax.management.remote.rmi.RMIConnectionImpl.access$200(Unknown Source)
[:1.6.0_25]
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown
Source) [:1.6.0_25]
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown
Source) [:1.6.0_25]
at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
[:1.6.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) [:1.6.0_25]
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) [:1.6.0_25]
at sun.rmi.transport.Transport$1.run(Unknown Source) [:1.6.0_25]
at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_25]
at sun.rmi.transport.Transport.serviceCall(Unknown Source) [:1.6.0_25]
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
[:1.6.0_25]
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
[:1.6.0_25]
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
[:1.6.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
[:1.6.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[:1.6.0_25]
at java.lang.Thread.run(Unknown Source) [:1.6.0_25]
Caused by: java.lang.ClassNotFoundException: com.marcole.log.Log4JInitServlet from
BaseClassLoader@1a6699c{vfs:///C:/dev/eclipse/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1305154353239/deploy/JbossGrwEAR.ear/JbossGrw.war/}
at
org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:480)
[jboss-classloader.jar:2.2.0.GA]
at java.lang.ClassLoader.loadClass(Unknown Source) [:1.6.0_25]
at
org.jboss.resteasy.integration.deployers.ResteasyScannerDeployer.checkDeclaredApplicationClassAsServlet(ResteasyScannerDeployer.java:253)
[:6.0.0.Final]
... 74 more
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/605040#605040]
Start a new discussion in JBoss Tools at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]