Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 is currently offline Kristian RinkFriend
Messages: 36
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
would expect.

- 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,
Previous Topic:JSDT and Google Closure JSDoc
Next Topic:extending xml wizard?
Goto Forum:

Current Time: Thu Jun 21 01:13:31 GMT 2018

Powered by FUDForum. Page generated in 0.02286 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top