|[WAR Product] Validation issue for classes provided by the application server [message #709162]
||Wed, 03 August 2011 11:16
| Arnaud MERGEY
Registered: March 2010
Starting to develop some bundles able to send email using Javamail,
I added a dependence constraint for javax.mail classes as Imported-packages.
I choosed this way because like javax.servlet, as part of JEE, javamail is supposed to be provided by the application server.
but I am facing some issues because war product complains about missing constraints.
To workaround that I have explicitely to add my javamail bundle in Plug-ins and Fragments configuration list of war product definition, but I would prefer to avoid that.
I expected that javamail would have been considered as servlet, meaning even some bundles depends on javax.servlet, it is not necessary to add explicitely javax.servlet bundle.
Is there any way to define dependencies supposed to be provided by the container, we do not want to add as bundle in WAR file (like javax.servlet and javax.servlet.http) ?
Powered by FUDForum
. Page generated in 0.02043 seconds