Problems importing EAR in 3.4.2 [message #231973] |
Fri, 29 May 2009 09:34  |
Eclipse User |
|
|
|
Platform: Eclipse 3.4.2, Java EE edition on Windows
I am having problems importing an EAR containing EJB jar's, WAR's, and
utility JAR's.
Specifically, on the first panel of the EAR import wizard, I select, for
example,
* foo.war#WEB-INF/lib/applib1.jar
* foo.war#WEB-INF/lib/applib2.jar
indicating that I want these items imported as utility projects. But when
the wizard finishes, the utility projects are not created for the jars in
foo.war.
Here are some steps to reproduce:
Step 1: Create a sample .ear project:
1. Start with an empty workspace.
2. Create an EAR project (eardemo).
3. Create a Dynamic Web project (webdemo) and add it to the EAR.
4. Create a new Java project (weblib).
5. Access the properties of webdemo > Java EE Module Dependencies > Web
Libraries tab. Select weblib to add as a Web Library dependency.
6. Export eardemo.ear from the EAR project.
Step 2: Import the eardemo.ear project into a new workspace:
1. Start with an empty workspace.
2. Import eardemo.ear
3. On the first panel, select webdemo.war#WEB-INF/lib/weblib.jar
4. On the second panel, leave both modules selected
5. Finish. The eardemo and webdemo projects are created, but not a weblib
project.
Is this a known issue?
If so, can anyone help me with a workaround? For example, after importing
the EAR, is it possible to import WAR .jar's as projects and get
everything hooked up properly?
Thanks for any suggestions.
Stephen Schaub
|
|
|
Re: Problems importing EAR in 3.4.2 [message #232068 is a reply to message #231973] |
Tue, 02 June 2009 14:06  |
Eclipse User |
|
|
|
Stephen Schaub wrote:
I found the following workaround:
After importing the EAR, I can use the Import J2EE Utility Jar
functionality to create projects for the WEB-INF/lib jar's. Then, I go to
the properties of the web project, and in the Java EE Module Dependencies
section, on the Web Libraries tab, I can select the projects for the
WEB-INF/lib jar's. That establishes a relationship between the utility
projects and the WEB-INF/lib jar's, so that updates to the projects
correctly rebuild the jar's when exporting the web application or the EAR.
I have filed Bug 278837 describing the problem.
Stephen
> Platform: Eclipse 3.4.2, Java EE edition on Windows
> I am having problems importing an EAR containing EJB jar's, WAR's, and
> utility JAR's.
> Specifically, on the first panel of the EAR import wizard, I select, for
> example,
> * foo.war#WEB-INF/lib/applib1.jar
> * foo.war#WEB-INF/lib/applib2.jar
> indicating that I want these items imported as utility projects. But when
> the wizard finishes, the utility projects are not created for the jars in
> foo.war.
> Here are some steps to reproduce:
> Step 1: Create a sample .ear project:
> 1. Start with an empty workspace.
> 2. Create an EAR project (eardemo).
> 3. Create a Dynamic Web project (webdemo) and add it to the EAR.
> 4. Create a new Java project (weblib).
> 5. Access the properties of webdemo > Java EE Module Dependencies > Web
> Libraries tab. Select weblib to add as a Web Library dependency.
> 6. Export eardemo.ear from the EAR project.
> Step 2: Import the eardemo.ear project into a new workspace:
> 1. Start with an empty workspace.
> 2. Import eardemo.ear
> 3. On the first panel, select webdemo.war#WEB-INF/lib/weblib.jar
> 4. On the second panel, leave both modules selected
> 5. Finish. The eardemo and webdemo projects are created, but not a weblib
> project.
> Is this a known issue?
> If so, can anyone help me with a workaround? For example, after importing
> the EAR, is it possible to import WAR .jar's as projects and get
> everything hooked up properly?
> Thanks for any suggestions.
> Stephen Schaub
|
|
|
Powered by
FUDForum. Page generated in 0.03668 seconds