[
https://issues.jboss.org/browse/JBIDE-18128?page=com.atlassian.jira.plugi...
]
Fred Bricon commented on JBIDE-18128:
-------------------------------------
Sorry but your test project is borked, which explains why the jars are not deployed
properly :
- the main issue is your web.xml says servlet 2.5 but the project's Web Facet was set
to 3.0. m2e-wtp tries to set the Web Facet from the web.xml level, so tries to downgrade
it from 3.0 back to 2.5. Unfortunately, WTP throws an Exception when downgrading Facet.
This prevents m2e-wtp from completing your project configuration, notably the Maven
Classpath library is not onfigured for deployment, hence no jar is deployed.
- Another issue is maven/m2e/JDT use target/classes to generate class files, but your
project is configured to deploy build/classes instead, that's why many of your classes
are missing from deployment
The simplest solution is to delete your project from your workspace, then delete all
.project, .classpath and .settings/ resources and finally reimport your project as a Maven
project.
Another alternative is to :
- either change the servlet version in web.xml to use 3.0 or edit
.settings/org.eclipse.wst.common.project.facet.core.xml and use <installed
facet="jst.web" version="2.5"/> to downgrade from 3.0
- edit org.eclipse.wst.common.component and change <property
name="java-output-path" value="/TestJboss/build/classes"/> to
<property name="java-output-path"
value="/TestJboss/target/classes"/>
- Right-click on project and Maven> Update Configuration (or use the Alt-F5 shortcut)
- force clean publish on your server
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
Fix For: 4.2.0.CR1
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)