-
1. Re: Determining web service ports at runtime
sfcoy May 12, 2013 4:51 AM (in response to jewellgm)1 of 1 people found this helpfulHi there,
This looks like your compiling against an old JBossWS jar, and including it in your deployment.
These classes are available in package org.jboss.wsf.spi in the JBossAS7/EAP6.1 module "org.jboss.ws.spi".
You should try compiling against this and then importing the module as described in AS72 Class Loading in AS7.
-
2. Re: Determining web service ports at runtime
jewellgm May 13, 2013 11:28 AM (in response to sfcoy)Stephen,
Thank you for the reply. I don't see anywhere that I'm including older JBossWS components in the compilation or deployment. I do have a few jars in the ear lib folder that jboss also provides, but only to remove the necessity to add dependencies to the manifest. These modules are "private", and display warnings if I add them as dependencies. I have listed them below:
wss4j-1.6.5.jar (module org.apache.ws.security)
commons-codec-1.3.jar (jboss provides 1.4 in module org.apache.commons.codec)
For the sake of completeness, I also add a newer version of commons-lang (3.1) than jboss provides. These classes are in different packages than jboss provides, though, so I don't think they should cause any problems.
To be thorough, though, I removed the wss4j and commons-codec jars, and added them as dependencies in the manifest of the ear (exporting each module). My dependencies now look like this:
org.jboss.ws.common export, org.jboss.ws.spi export, org.jboss.as.webservices export, org.jboss.msc export, org.jboss.as.server export, org.apache.commons.codec export, org.apache.ws.security export
I included ws.common because not including it causes a NoClassDefFoundException. I included as.webservices because the ws.spi only apparently has interfaces while as.webservices has implementations. The msc and as.server are in there only because the the implementation classes in as.webservices import classes from those modules. Regardless, I still get the same exception I listed above. Out of desparation, I also added the "services" parameter to each of the dependencies, but nothing changed.
-
3. Re: Determining web service ports at runtime
jewellgm May 13, 2013 5:17 PM (in response to jewellgm)I finally got it. The magic dependency list is as follow:
org.jboss.as.webservices export services, org.jboss.ws.common export, org.jboss.ws.spi export
Thanks for the help!