Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Enterprise Application Project Help
Enterprise Application Project Help [message #233970] Tue, 21 July 2009 19:50 Go to next message
Chris Gardner is currently offline Chris GardnerFriend
Messages: 8
Registered: July 2009
Junior Member
I created an Enterprise Application Project that points to a Dynamic Web
Project and a standard Java Project. The Dynamic Web Project depends on
the standard Java Project. The standard Java Project depends on Hibernate
via a User Library. When I deploy the Enterprise Application Project to
Glassfish, I expected that all the dependendcies would be ear'd up,
including Hibernate (even though it was specified in a User Library).
Only the war file for the Dynamic Web Project and the jar file for the
standard Java Project ended up being ear'd.

What do you have to do to get User Libraries ear'd up? Or can that even
be done?
Re: Enterprise Application Project Help [message #233977 is a reply to message #233970] Tue, 21 July 2009 20:58 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
This configuration should work. The first thing to check is whether the
EAR composition is correct when you export an EAR using the export EAR
wizard.

If the export wizard produced a correct EAR, then there is a bug in the
Glassfish server adapter.

If the export wizard did not produce a correct EAR, then we need to check
your configuration further. Do you see any warnings in the problems view?
WTP will flag classpath entries that are likely to be necessary, but are
not marked for deployment. If you find such warnings that refer to your
user library, you can access quick fixes that will let you properly tag
it. If you cannot find the warnings, you can also go to your java
project's project properties. In the Java EE Module Dependencies page, you
should see you user library listed. Check the checkbox next to it.

Hope this helps.

- Konstantin
Re: Enterprise Application Project Help [message #234016 is a reply to message #233977] Wed, 22 July 2009 16:21 Go to previous messageGo to next message
Chris Gardner is currently offline Chris GardnerFriend
Messages: 8
Registered: July 2009
Junior Member
After I wrote this yesterday, I found the Java EE Module Dependencies and
checked the libraries. Thank you for your help.


Konstantin Komissarchik wrote:

> This configuration should work. The first thing to check is whether the
> EAR composition is correct when you export an EAR using the export EAR
> wizard.

> If the export wizard produced a correct EAR, then there is a bug in the
> Glassfish server adapter.

> If the export wizard did not produce a correct EAR, then we need to check
> your configuration further. Do you see any warnings in the problems view?
> WTP will flag classpath entries that are likely to be necessary, but are
> not marked for deployment. If you find such warnings that refer to your
> user library, you can access quick fixes that will let you properly tag
> it. If you cannot find the warnings, you can also go to your java
> project's project properties. In the Java EE Module Dependencies page, you
> should see you user library listed. Check the checkbox next to it.

> Hope this helps.

> - Konstantin
Re: Enterprise Application Project Help [message #234067 is a reply to message #233977] Thu, 23 July 2009 19:10 Go to previous message
Eclipse UserFriend
Originally posted by: rstryker.redhat.com

Konstantin Komissarchik wrote:
> If the export wizard produced a correct EAR, then there is a bug in the
> Glassfish server adapter.

I know I'm a bit late but I'd like to clarify this. If the export wizard
produced a correct EAR, the bug could be in the Glassfish server
adapter, but is also quite likely to be somewhere in the module factory
and module delegate for the JEE projects ;)

There have been a myriad of bugs in that area lately which we're trying
very hard to fix.
Previous Topic:Update site for WTP 3.0.5
Next Topic:Debugging JSP's in Eclipse/WebSphere 6.1
Goto Forum:
  


Current Time: Thu Apr 18 03:33:26 GMT 2024

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

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

Back to the top