Home » Language IDEs » ServerTools (WTP) » wtp, m2eclipse, Glassfish, jar/war: .java instead of .class files deployed to app server?
|wtp, m2eclipse, Glassfish, jar/war: .java instead of .class files deployed to app server? [message #806365]
||Fri, 24 February 2012 22:06
| Kristian Rink
Registered: July 2009
at the moment I am struggling with a rather peculiar problem I am so far unable
to really get hold of. Setup: Eclipse Indigo, up to date, with a bunch of
plugins installed (m2e, OEPE/Glassfish adapter, Spring IDE, ...). Usually I
work with maven war artifacts which in turns include a bunch of jar artifacts,
and I use a Glassfish server inside the IDE configured to run these projects.
Usually this works fine.
However, at the moment I have a setup (one war artifact, depending upon a jar
artifact opened in the same workspace) which builds cleanly but fails as soon
as being run on the server. Situation:
- The jar artifact (util-1.0-SNAPSHOT) builds well, in there (target/classes)
is everything that should be there. The jar file is well, too.
- Same way, the war artifact (webapp-1.0-SNAPSHOT) builds well, and browsing
the war file reveals util-1.0-SNAPSHOT.jar being placed in WEB-INF/lib as I
- However, running the app on the server: There's a folder
"domains/domain1/eclipseApps/webapp/" where, obviously, the IDE does deploy
the apps to "run on server" to. In there, in WEB-INF/lib, there is a
subfolder "util-1.0-SNAPSHOT.jar" (a folder!), and this folder contains the
source(!) tree, including "main/java", "test", ... of the util-1.0-SNAPSHOT
artifact - .java not .class files. This is pretty much unexpected, and just
consequently the webapp fails to run.
So, trying to make sense of this, first of all I'd be interested to know who's
to blame here. Misconfiguration of either of these maven artifacts? m2e(-wtp)
issue? Problem with the Glassfish server adapter? This problem, overally, is
rather strange but I am running out of ideas how to get it resolved. Could some
kind soul provide me with a few explanations on what's going on here?
TIA and all the best,
Current Time: Thu Dec 08 18:19:53 GMT 2016
Powered by FUDForum
. Page generated in 0.06307 seconds