wood burning stoves*
The moose likes JBoss/WildFly and the fly likes WebService Client problem (JBoss 4.0.5 + jbossws-2.0.3): ClassNotFoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "WebService Client problem (JBoss 4.0.5 + jbossws-2.0.3): ClassNotFoundException" Watch "WebService Client problem (JBoss 4.0.5 + jbossws-2.0.3): ClassNotFoundException" New topic
Author

WebService Client problem (JBoss 4.0.5 + jbossws-2.0.3): ClassNotFoundException

Grigory Kislin
Greenhorn

Joined: Apr 10, 2008
Posts: 2
Hello.
I've next AS configuration: JBoss 4.0.5.GA + jbossws-native-2.0.3.GA (deploy-jboss405-no-ejb3)
During startup JBoss loads war and there is a web service call (JAX-WS):

Service.create(new URL(wsdlLocation), new QName(namespaceURI, serviceName));

In 90% of cases I have next exception:

{org.jboss.ws.metadata.wsdl.WSDLException@10676}Method threw 'org.jboss.ws.metadata.wsdl.WSDLException' exception.

"javax.wsdl.WSDLException: WSDLException: faultCode=CONFIGURATION_ERROR: Problem instantiating factory implementation.: java.lang.ClassNotFoundException: org.jboss.ws.tools.wsdl.JBossWSDLFactoryImpl"

detailMessage = {java.lang.String@10170}"Problem instantiating factory implementation."
cause = {java.lang.ClassNotFoundException@11066}"java.lang.ClassNotFoundException: org.jboss.ws.tools.wsdl.JBossWSDLFactoryImpl"

JBossWSDLFactoryImpl located at \deploy\jbossws.sar\jbossws-core.jar, in the same place as WSDLDefinitionsFactory, where from exception was thrown:

stackTrace = {java.lang.StackTraceElement[191]@10678}
[0] = {java.lang.StackTraceElement@10680}"org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:154)"
[1] = {java.lang.StackTraceElement@10681}"org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:321)"
[2] = {java.lang.StackTraceElement@10682}"org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:86)"
[3] = {java.lang.StackTraceElement@10683}"org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.<init>(ServiceDelegateImpl.java:133)"
[4] = {java.lang.StackTraceElement@10684}"org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:63)"
[5] = {java.lang.StackTraceElement@10685}"javax.xml.ws.Service.<init>(Service.java:82)"
[6] = {java.lang.StackTraceElement@10686}"com.enkata.lombardibridge.LoginRegistrationBrigde$LoginRegistrationWSClient.<init>(LoginRegistrationBrigde.java:124)"
[7] = {java.lang.StackTraceElement@10687}"com.enkata.lombardibridge.LoginRegistrationBrigde.initialize(LoginRegistrationBrigde.java:56)"
[8] = {java.lang.StackTraceElement@10688}"com.enkata.lombardibridge.EnkataLoginModule.initialize(EnkataLoginModule.java:44)"
[9] = {java.lang.StackTraceElement@10689}"sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)"
[10] = {java.lang.StackTraceElement@10690}"sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)"
[11] = {java.lang.StackTraceElement@10691}"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)"
[12] = {java.lang.StackTraceElement@10692}"java.lang.reflect.Method.invoke(Method.java:585)"
[13] = {java.lang.StackTraceElement@10693}"javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)"
[14] = {java.lang.StackTraceElement@10694}"javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)"
[15] = {java.lang.StackTraceElement@10695}"javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)"
[16] = {java.lang.StackTraceElement@10696}"java.security.AccessController.doPrivileged(Native Method)"
[17] = {java.lang.StackTraceElement@10697}"javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)"
[18] = {java.lang.StackTraceElement@10698}"javax.security.auth.login.LoginContext.login(LoginContext.java:579)"
[19] = {java.lang.StackTraceElement@10699}"org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:601)"
[20] = {java.lang.StackTraceElement@10700}"org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:535)"
[21] = {java.lang.StackTraceElement@10701}"org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)"
[22] = {java.lang.StackTraceElement@10702}"org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:211)"
[23] = {java.lang.StackTraceElement@10703}"org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:135)"
[24] = {java.lang.StackTraceElement@10704}"org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)"
[25] = {java.lang.StackTraceElement@10705}"org.jboss.ejb.plugins.CleanShutdownInterceptor.invokeHome(CleanShutdownInterceptor.java:212)"
[26] = {java.lang.StackTraceElement@10706}"org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)"
[27] = {java.lang.StackTraceElement@10707}"org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:637)"
[28] = {java.lang.StackTraceElement@10708}"org.jboss.ejb.Container.invoke(Container.java:975)"
[29] = {java.lang.StackTraceElement@10709}"sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)"
[30] = {java.lang.StackTraceElement@10710}"sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)"
[31] = {java.lang.StackTraceElement@10711}"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)"
[32] = {java.lang.StackTraceElement@10712}"java.lang.reflect.Method.invoke(Method.java:585)"
[33] = {java.lang.StackTraceElement@10713}"org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)"
[34] = {java.lang.StackTraceElement@10714}"org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)"
[35] = {java.lang.StackTraceElement@10715}"org.jboss.mx.server.Invocation.invoke(Invocation.java:86)"
[36] = {java.lang.StackTraceElement@10716}"org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)"
[37] = {java.lang.StackTraceElement@10717}"org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)"
[38] = {java.lang.StackTraceElement@10718}"org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)"
[39] = {java.lang.StackTraceElement@10719}"org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)"
[40] = {java.lang.StackTraceElement@10720}"org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)"
[41] = {java.lang.StackTraceElement@10721}"org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)"
[42] = {java.lang.StackTraceElement@10722}"org.jboss.proxy.ejb.RetryInterceptor.invoke(RetryInterceptor.java:176)"
[43] = {java.lang.StackTraceElement@10723}"org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)"
[44] = {java.lang.StackTraceElement@10724}"org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)"
[45] = {java.lang.StackTraceElement@10725}"org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)"
[46] = {java.lang.StackTraceElement@10726}"org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)"
[47] = {java.lang.StackTraceElement@10727}"$Proxy158.create(Unknown Source)"
[48] = {java.lang.StackTraceElement@10728}"com.lombardisoftware.client.delegate.SecurityDelegateDefault.listAllGroups(SecurityDelegateDefault.java:387)"
[49] = {java.lang.StackTraceElement@10729}"com.lombardisoftware.servlet.util.GroupCache.initAll(GroupCache.java:110)"
[50] = {java.lang.StackTraceElement@10730}"com.lombardisoftware.servlet.util.GroupCache.getAllGroups(GroupCache.java:84)"
[51] = {java.lang.StackTraceElement@10731}"com.lombardisoftware.servlet.util.GroupCache.getGroups(GroupCache.java:58)"
[52] = {java.lang.StackTraceElement@10732}"com.lombardisoftware.servlet.util.CacheManager.init(CacheManager.java:96)"
[53] = {java.lang.StackTraceElement@10733}"org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)"
[54] = {java.lang.StackTraceElement@10734}"org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)"
[55] = {java.lang.StackTraceElement@10735}"org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)"
[56] = {java.lang.StackTraceElement@10736}"org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)"
[57] = {java.lang.StackTraceElement@10737}"org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)"
[58] = {java.lang.StackTraceElement@10738}"org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)"
[59] = {java.lang.StackTraceElement@10739}"org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)"
[60] = {java.lang.StackTraceElement@10740}"sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)"
[61] = {java.lang.StackTraceElement@10741}"sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)"
[62] = {java.lang.StackTraceElement@10742}"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)"
[63] = {java.lang.StackTraceElement@10743}"java.lang.reflect.Method.invoke(Method.java:585)"
[64] = {java.lang.StackTraceElement@10744}"org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)"
[65] = {java.lang.StackTraceElement@10745}"org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)"
[66] = {java.lang.StackTraceElement@10746}"org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)"
[67] = {java.lang.StackTraceElement@10747}"org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)"
[68] = {java.lang.StackTraceElement@10748}"sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)"
[69] = {java.lang.StackTraceElement@10749}"sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)"
[70] = {java.lang.StackTraceElement@10750}"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)"
[71] = {java.lang.StackTraceElement@10751}"java.lang.reflect.Method.invoke(Method.java:585)"
[72] = {java.lang.StackTraceElement@10752}"org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)"
[73] = {java.lang.StackTraceElement@10753}"org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)"
[74] = {java.lang.StackTraceElement@10754}"org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)"
[75] = {java.lang.StackTraceElement@10755}"org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)"
[76] = {java.lang.StackTraceElement@10756}"org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)"
[77] = {java.lang.StackTraceElement@10757}"org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)"
[78] = {java.lang.StackTraceElement@10758}"org.jboss.web.WebModule.startModule(WebModule.java:83)"
[79] = {java.lang.StackTraceElement@10759}"org.jboss.web.WebModule.startService(WebModule.java:61)"
[80] = {java.lang.StackTraceElement@10760}"org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)"
[81] = {java.lang.StackTraceElement@10761}"org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)"
[82] = {java.lang.StackTraceElement@10762}"sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)"
[83] = {java.lang.StackTraceElement@10763}"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)"
[84] = {java.lang.StackTraceElement@10764}"java.lang.reflect.Method.invoke(Method.java:585)"
[85] = {java.lang.StackTraceElement@10765}"org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)"
[86] = {java.lang.StackTraceElement@10766}"org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)"
[87] = {java.lang.StackTraceElement@10767}"org.jboss.mx.server.Invocation.invoke(Invocation.java:86)"
[88] = {java.lang.StackTraceElement@10768}"org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)"
[89] = {java.lang.StackTraceElement@10769}"org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)"
[90] = {java.lang.StackTraceElement@10770}"org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)"
[91] = {java.lang.StackTraceElement@10771}"$Proxy0.start(Unknown Source)"
[92] = {java.lang.StackTraceElement@10772}"org.jboss.system.ServiceController.start(ServiceController.java:417)"
[93] = {java.lang.StackTraceElement@10773}"sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)"
[94] = {java.lang.StackTraceElement@10774}"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)"
[95] = {java.lang.StackTraceElement@10775}"java.lang.reflect.Method.invoke(Method.java:585)"
[96] = {java.lang.StackTraceElement@10776}"org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)"
[97] = {java.lang.StackTraceElement@10777}"org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)"
[98] = {java.lang.StackTraceElement@10778}"org.jboss.mx.server.Invocation.invoke(Invocation.java:86)"
[99] = {java.lang.StackTraceElement@10779}"org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)"
[100] = {java.lang.StackTraceElement@10780}"org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)"

WSDLDefinitionsFactory code look like this:

public WSDLDefinitions parse(URL wsdlLocation) throws WSDLException
{
...
WSDLFactory wsdlFactory = WSDLFactory.newInstance(JBossWSDLFactoryImpl.class.getName());

From dubug Expression Evaluation (IDEA):
this.getClass().getClassLoader().loadClass("org.jboss.ws.tools.wsdl.JBossWSDLFactoryImpl") work OK,
org.jboss.ws.tools.wsdl.JBossWSDLFactoryImpl.class work, but JBossWSDLFactoryImpl is red.

In 10% of cases I've error no connection with web service what is OK as it is not running.
Please help by any idea, guess or workaround.

Thank you,
Grigory.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: WebService Client problem (JBoss 4.0.5 + jbossws-2.0.3): ClassNotFoundException
 
Similar Threads
JVM_bind Error Port Already in use
Hibernate connecting to Mysql On Solaris
Problem with DataSource
DeploymentException while deploying ear file in JBoss
javax.naming.NameNotFoundException: XAConnectionFactory not bound