Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsEclipse fails to deploy ear on Jboss
https://www.eclipse.org/forums/index.php/mv/msg/489950/1066924/#msg_1066924
A.jar
|-META-INF
|-/lib
|-B.jar
|-C.jar
The problem is that eclipse/Jboss extracts the jars from the /lib folder to the root level, so it looks like this on the JBoss:
A.jar
B.jar
C.jar
/lib/ -empty-
/META-INF/
As a consequence the paths are wrong and deployment fails.
Now I can do this:
I make a rightclick on the ear-folder and then choose "Configure->Convert to Maven Project" - and then I see a small "M" on the folder in the project explorer. Then I build the folder again with "Rightclick->Run as...->Maven install".
Afterwards I repeat the Drag&Drop to the server tab - and out of a wonder it deploys correctly! And the jars remain correctly in the subfolder /lib.
But as soon as I do "Rightclick->Disable Maven Nature" (small M sign on folder is gone) it fails again on Drag&Drop deployment! This process is reproducable anytime.
Why is this so? Is it a bug? Why does it ONLY work when I do "Convert to Maven Project" (although it already is a Maven Project)? Please someone clarify this, as it is quite annoying.
]]>tester tester2013-07-05T07:29:47-00:00Re: Eclipse fails to deploy ear on Jboss
https://www.eclipse.org/forums/index.php/mv/msg/489950/1066955/#msg_1066955
to discussions about Eclipse 4 Platform advanced usage.
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria]]>Mickael Istria2013-07-05T08:55:16-00:00Re: Eclipse fails to deploy ear on Jboss
https://www.eclipse.org/forums/index.php/mv/msg/489950/1066956/#msg_1066956
Developer Studio from marketplace as it will provide you a better
integration of Eclipse/Maven/JBoss/JEE.
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria]]>Mickael Istria2013-07-05T08:56:36-00:00Re: Eclipse fails to deploy ear on Jboss
https://www.eclipse.org/forums/index.php/mv/msg/489950/1066970/#msg_1066970
I'm sorry if I didn't post in the correct subforum, as I don't know where exactly the error lies. It looked to me that the simple Drag&Drop feature (which exists from the beginning in an eclipse installation) does somehow an error itself, therefore I wrote in here.
However it still does not make sense, because - why is there Drag&Drop possible in the first place if it doesn't work correctly, except doing some workaround...]]>tester tester2013-07-05T09:36:08-00:00