| Problems importing EAR in 3.4.2 [message #231973] |
Fri, 29 May 2009 09:34  |
Stephen Schaub Messages: 13 Registered: July 2009 |
Junior Member |
|
|
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
|
|
|