Skip to main content

@WebService(wsdlLocation) and WSDL file outside EJB module (in library jar)

2 replies [Last post]
stan_svec
Offline
Joined: 2010-03-30
Points: 0

Hi,
I have contract jar artifact with content: WSDL contract files (META-INF/wsdl folder) and generated classes from the contract by JAX-WS maven plugin. EJB module with session beans which implement generated SEI are dependent on the contract artifact.
Both jars are packaged in EAR:

lib/contract.jar (META-INF/wsdl/contract.wsdl, some.pck.ServiceSEI, etc.)

implementation-ejb.jar (ServiceImpl)

Problem is with implementation:

@WebService(endpointInterface="some.pck.ServiceSEI", wsdlLocation="META-INF/wsdl/contract.wsdl")
public class ServiceImpl implements ServiceSEI { ... }

During deploy on GlassFish this error occurs: Exception while deploying the app [app-name] : wsdl file META-INF/wsdl/contract.wsdl does not exist for web service
ServiceImpl

If I change wsdlLocation value to "../lib/contract.jar/META-INF/wsdl/contract.wsdl"
then another error occurs: Exception while deploying the app [
app-name
] : wsdl file ../lib/contract.jar/META-INF/wsdl/contract.wsdl for web service
ServiceImpl
must be packaged in or below META-INF/wsdl

Does it mean that EJB module is the only possible location for wsdl files referenced from services packed in the module? Or is there some way to point to wsdl file inside lib/contract.jar?
Thank you.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
stan_svec
Offline
Joined: 2010-03-30
Points: 0

It is bug: java.net/jira/browse/GLASSFISH-6917 Unfortunatelly is still not fixed. :(

stan_svec
Offline
Joined: 2010-03-30
Points: 0

Sorry for duplicated post. There were some errors during submit.