JBoss Community

JBossWS - AS 7 FAQ

modified by Alessio Soldano in JBoss Web Services - View the full document

JBossWS - AS 7 FAQ

This page is about the JBossWS integration with JBoss Application Server 7, which comes with a completely new architecture based on modules.

 

Which modules belong to JBossWS? Am I supposed to modify them?

The org.jboss.as.webservices.* and org.jboss.ws.* modules belongs to the JBossWS - AS7 integration. Users should not need to change anything in them.

I'm getting a ClassNotFoundException with an application that used to work on AS6, what's happening?

On JBoss AS7 the user deployment classloader does not have any visibility over JBoss internals; so for instance you can't directly use JBossWS implementation classes unless you explicitly set a dependency to the corresponding module.

How do I add dependencies to modules on my deployments?

Dependencies are configured in the deployment MANIFEST.MF file:

Manifest-Version: 1.0
Dependencies: org.jboss.ws.cxf.jbossws-cxf-client services export, foo.bar

Here above org.jboss.ws.cxf.jbossws-cxf-client and foo.bar are the module you want to set dependencies to; services tells the modules framework that you want to also import META-INF/services/.. declarations from the dependency, while export exports the classes in the module so that you can actually use them in your code.

How can I use JAXB classes?

In order for successfully use JAXB contexts, etc. in your client or endpoint running in-container, you need to properly setup a JAXB implementation; that is performed setting the following dependency:

Dependencies: com.sun.xml.bind services export

How can I use JBossWS APIs?

...

How can I use Apache CXF APIs?

...

Is there an aggregation client side module with all WS dependencies?

...

What is the org.jboss.ws.jaxws-client module for?

...

How do I use Spring with JBossWS-CXF?

...

What SAAJ impl do I get doing MessageFactory.getFactory()?

...

Comment by going to Community

Create a new document in JBoss Web Services at Community