Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » J2EE Module Dependencies and build problems
J2EE Module Dependencies and build problems [message #215644] Tue, 17 June 2008 15:39 Go to next message
Eric Hamacher is currently offline Eric Hamacher
Messages: 4
Registered: July 2009
Junior Member
WTP 2.0.1
Windows XP
Dynamic Web Project

Hello:

I am having two problems in WTP.

1) First, when I check off jars in J2EE Module Dependencies it never
sticks. The next time I go there, all my choices are cleared (all
unchecked). This is very aggravating.

2) My JSPs which import classes in jars on the build path will not
resolve. For instance,

<%@ page import="org.apache.struts.Globals" %>

will not resolve even though struts-core.jar is in my build path. The JSP
is in WebContent.

Any help would be appreciated
Re: J2EE Module Dependencies and build problems [message #215695 is a reply to message #215644] Wed, 18 June 2008 04:15 Go to previous messageGo to next message
Eclipse User
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

Hi Eric,

Problem 1 sounds like https://bugs.eclipse.org/bugs/show_bug.cgi?id=205004
(fixed in 2.0.2)

Hope this helps

Wolfgang

Eric schrieb:
> WTP 2.0.1
> Windows XP
> Dynamic Web Project
>
> Hello:
>
> I am having two problems in WTP.
>
> 1) First, when I check off jars in J2EE Module Dependencies it never
> sticks. The next time I go there, all my choices are cleared (all
> unchecked). This is very aggravating.
>
> 2) My JSPs which import classes in jars on the build path will not
> resolve. For instance,
> <%@ page import="org.apache.struts.Globals" %>
>
> will not resolve even though struts-core.jar is in my build path. The
> JSP is in WebContent.
>
> Any help would be appreciated
Re: J2EE Module Dependencies and build problems [message #215870 is a reply to message #215695] Fri, 20 June 2008 16:12 Go to previous messageGo to next message
Eric Hamacher is currently offline Eric Hamacher
Messages: 4
Registered: July 2009
Junior Member
Thanks, I found that if I select jars individually, they stick. The
"Select All" button will result in the problem.

Eric
Re: J2EE Module Dependencies and build problems [message #219081 is a reply to message #215695] Fri, 08 August 2008 06:25 Go to previous messageGo to next message
Steffen Neumann is currently offline Steffen Neumann
Messages: 41
Registered: July 2009
Member
Wolfgang Knauf wrote:
> Problem 1 sounds like
I am hit by the same problem. Just to recap:

I have a dynamic Web Project and two Java projects A and B,
and B depends on A.

I can successfully add one of the java projects "A" as
JEE module dependency, but If I add the second java project "B"
as JEE module dependency, hit "apply", it is silently dropped the next time
I open the JEE module dependency configuration.

Similarly, if I manually edit

<dependent-module deploy-path="/WEB-INF/lib" handle="module:/resource/org.metware.bigmet/org.metware.bigmet ">
<dependency-type>uses</dependency-type>
</dependent-module>

and change the handle to match the second java project,
the entry is deleted again.

To me the most annoying "feature" is that without a message
even in the error log I have no clue what's going wrong.

I saw quite a few bug reports on JEE module dependency configuration,
and I am somewhat lost in which category mine falls.

What are the requirements for a java project to be a valid JEE dependency ?
What do I have (and not have) to export from the projects A and B ?

> https://bugs.eclipse.org/bugs/show_bug.cgi?id=205004 (fixed in 2.0.2)
I have WTP 3.0.0, and supposedly the above bug was fixed
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205004#c7

The eclipse installation seems to be current,
there are no available updates shown.

Any hints appreciated,
Yours,
Steffen

*** System properties:
Linux x86_64 on Ubuntu hardy

eclipse.buildId=I20080617-2000

java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.5.0_15-b04

*** Features:
org.eclipse.jst (3.0.0.v200806111800-7U-8Y9LIrwYBUV7sHGjhtz0LTrMd) "J2EE Standard Tools (JST)"
org.eclipse.wst (3.0.0.v200806092130-7A-8Y8QqN2lf4VSWrI2ek5Pf4k7s) "Web Standard Tools (WST)"
Re: J2EE Module Dependencies and build problems [Solved for me] [message #219854 is a reply to message #219081] Sun, 31 August 2008 15:45 Go to previous message
Steffen Neumann is currently offline Steffen Neumann
Messages: 41
Registered: July 2009
Member
sneumann wrote:
> Wolfgang Knauf wrote:
>> Problem 1 sounds like
> I am hit by the same problem. Just to recap:

The following changes in the .project of the project to be included
solved the problem for me, YMMV.

Yours,
Steffen

--- .project 2008-08-27 22:53:45 UTC (rev 834)
+++ .project 2008-08-27 23:09:37 UTC (rev 835)
@@ -6,6 +6,11 @@
</projects>
<buildSpec>
<buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name >
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
@@ -20,9 +25,17 @@
<arguments>
</arguments>
</buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature >
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature >
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
</natures>
</projectDescription>
Previous Topic:Keeping having to "Update EAR Libraries"
Next Topic:Ganymede Bottom-up webservice
Goto Forum:
  


Current Time: Sat Aug 30 12:33:37 EDT 2014

Powered by FUDForum. Page generated in 0.01778 seconds