Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315351 - Error deploying user libraries containing jar file relative to workspace.
Summary: Error deploying user libraries containing jar file relative to workspace.
Status: RESOLVED INVALID
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal with 2 votes (vote)
Target Milestone: 3.3.2   Edit
Assignee: Rob Stryker CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-02 03:34 EDT by Miguel Angel Garcia Grande CLA
Modified: 2012-01-26 13:51 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Angel Garcia Grande CLA 2010-06-02 03:34:11 EDT
Build Identifier: Version: Helios Release (3.6.0) Build id: 20100527-0614

Workspace layout:
* One project containing only third party jar files. Let's say it's name is 'Libraries'.

* Define a User Library with some JAR files from such project (no absolute paths, but relative to workspace). For example, say I use 'commons-logging.jar', so the relative path is 'Libraries/commons-logging.jar'.

* One dynamic web project using this library for it's 'Java build path'.

* Add the library to the "Deployment assembly" option (using 'Classpath container' option).

* NOTE: I believe 'Deployment assembly' replaces old 'JavaEE Module Dependecies' of former Eclipse versions.

* Deploy the project on a server (I use Tomcat).

ERROR:
Deployment fails stating it cannot find user librarie's JAR files. In out example, it says:
Publishing failed with multiple errors
Error reading file C:\Libraries\commons-logging.jar

Seems it doesn't assume the path to be relative to workspace on deployment. It compiles fine though, so it correctly finds jar during development.

Thanks in advance!

Reproducible: Always
Comment 1 Miguel Angel Garcia Grande CLA 2010-07-09 07:22:42 EDT
Nobody cares about this bug?

In WTP 3.1's "JavaEE Module Dependecies" it worked just fine. Furthermore, it detected when one of such workspace relative jar files were modified from within the IDE (I create JAR files from source projects and store those JAR files into workspace relative locations).

In WTP 3.2 I've tried to fix the bug by using absolute paths (it compiles and deploys fine), but then, Eclipse does not notice when I modify one of such files...

Should I open a separate bug for this issue.

Thanks a lot.
Comment 2 Johnson CLA 2010-09-08 03:44:57 EDT
Hello. I confirm that described behaviour has place. It's very annoying, workaround like making hard link from libraries directory to disk c: (under windows) works, but it just ugly.

Any comments from dev-team?
Comment 3 Carl Anderson CLA 2010-11-15 09:48:25 EST
Assigning to Rob for initial investigation.
Comment 4 Rob Stryker CLA 2011-06-02 03:43:33 EDT
Pushing to maintenance
Comment 5 Rob Stryker CLA 2012-01-26 13:51:08 EST
I'm not sure if "invalid" is technically correct, but, wtp 3.3 does not include any "Classpath container" module assembly option, and so this usecase is no longer valid. That was a feature that snuck in for a short while and was removed.