[
https://issues.jboss.org/browse/JBIDE-18128?page=com.atlassian.jira.plugi...
]
Martin Malina commented on JBIDE-18128:
---------------------------------------
When I tried to deploy the TestJboss project from Eclipse to WildFly 8.1, I got a
different ClassNotFound:
{code}
10:56:51,697 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads -
1) JBAS015003: Found TestJboss.war in deployment directory. To trigger deployment create a
file called TestJboss.war.dodeploy
10:56:51,720 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876:
Starting deployment of "TestJboss.war" (runtime-name:
"TestJboss.war")
10:56:51,889 WARN [org.jboss.as.ee] (MSC service thread 1-8) JBAS011006: Not installing
optional component org.springframework.web.context.ContextLoaderListener due to an
exception (enable DEBUG log level to see the cause)
10:56:51,890 WARN [org.jboss.as.ee] (MSC service thread 1-8) JBAS011006: Not installing
optional component org.springframework.web.servlet.DispatcherServlet due to an exception
(enable DEBUG log level to see the cause)
10:56:51,986 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed
to start service
jboss.undertow.deployment.default-server.default-host./TestJboss.UndertowDeploymentInfoService:
org.jboss.msc.service.StartException in service
jboss.undertow.deployment.default-server.default-host./TestJboss.UndertowDeploymentInfoService:
java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet from
[Module "deployment.TestJboss.war:main" from Service Module Loader]
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:884)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.start(UndertowDeploymentInfoService.java:245)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
[jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
[jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_60]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]
Caused by: java.lang.ClassNotFoundException:
org.springframework.web.servlet.DispatcherServlet from [Module
"deployment.TestJboss.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213)
[jboss-modules.jar:1.3.3.Final]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)
[jboss-modules.jar:1.3.3.Final]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408)
[jboss-modules.jar:1.3.3.Final]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)
[jboss-modules.jar:1.3.3.Final]
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)
[jboss-modules.jar:1.3.3.Final]
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:616)
... 6 more
10:56:51,994 ERROR [org.jboss.as.controller.management-operation]
(DeploymentScanner-threads - 2) JBAS014613: Operation ("deploy") failed -
address: ([("deployment" => "TestJboss.war")]) - failure
description: {"JBAS014671: Failed services" =>
{"jboss.undertow.deployment.default-server.default-host./TestJboss.UndertowDeploymentInfoService"
=> "org.jboss.msc.service.StartException in service
jboss.undertow.deployment.default-server.default-host./TestJboss.UndertowDeploymentInfoService:
java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet from
[Module \"deployment.TestJboss.war:main\" from Service Module Loader]
Caused by: java.lang.ClassNotFoundException:
org.springframework.web.servlet.DispatcherServlet from [Module
\"deployment.TestJboss.war:main\" from Service Module Loader]"}}
10:56:52,021 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559:
Deployed "TestJboss.war" (runtime-name : "TestJboss.war")
10:56:52,021 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774:
Service status report
JBAS014777: Services which failed to start: service
jboss.undertow.deployment.default-server.default-host./TestJboss.UndertowDeploymentInfoService:
org.jboss.msc.service.StartException in service
jboss.undertow.deployment.default-server.default-host./TestJboss.UndertowDeploymentInfoService:
java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet from
[Module "deployment.TestJboss.war:main" from Service Module Loader]
{code}
When I checked the deployment, there was nothing in WEB-INF/lib, so it's not a
surprise then that spring classes are missing.
When I tried compiling the project from command line (mvn verify) it worked and the target
war then had many spring jars inside WEB-INF/lib.
Jboss Eclipse Luna plugin doesn't deploy all .class
---------------------------------------------------
Key: JBIDE-18128
URL:
https://issues.jboss.org/browse/JBIDE-18128
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: server
Affects Versions: 4.2.0.Beta3
Reporter: fede pia
Assignee: Rob Stryker
Priority: Blocker
Attachments: 2014-09-04 error.png, 2014-09-04 output.txt, jboss-test.zip,
TestJboss-2014-09-03.zip
The problem I'm facing is that when I run/debug my aplication from Server view in
Eclipse the jboss plugin doesn't deploy all the .class files, thus I get
ClassNotFoundException.
I've tried cleaning the project, cleaning jboss, remove temporaries but nothing
works. The not found classes are random.
For Eclipse 4.3 everything works fine, although this issue usually happens but I can
solve it with a Project -> Clean
As a context, I've installed Eclipse Luna (also tried STS 3.6) and added Jboss Tools
plugin 4.2.0 Beta 3 (I've installed only Jboss AS component). The jboss servers I
tested were JBoss 7.1 and Wildfly 8.1.
I also tried building the war outside Eclipse and deployed manually to JBoss and
everything works fine.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)