[jboss-user] [JBossWS] - WebService client problem (JBoss 4.0.5 + jbossws-2.0.3): JBo

gekis do-not-reply at jboss.com
Thu Apr 10 06:10:31 EDT 2008


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 in my code there is a web service call (by 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 at 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 at 10170}"Problem instantiating factory implementation."
cause = {java.lang.ClassNotFoundException at 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 the exception was thrown:

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

In dubug Expression Evaluation (IDEA):
  org.jboss.ws.tools.wsdl.JBossWSDLFactoryImpl.class work, but JBossWSDLFactoryImpl is red and does not detected by Ctrl+Space.

Call is happend from static method, but form EnkataLoginModule (upper in stack)
  this.getClass().getClassLoader().loadClass("org.jboss.ws.tools.wsdl.JBossWSDLFactoryImpl") work OK.

I set this load in code before LoginRegistrationBrigde is called, but it doesn't help.

this.getClass().getClassLoader() looks like:

this.getClass().getClassLoader() = {org.jboss.mx.loading.UnifiedClassLoader3 at 5873}"org.jboss.mx.loading.UnifiedClassLoader3 at 1bdb58{ url=null ,addedOrder=2}"
url = null
origURL = {java.net.URL at 9155}"file:C:/TeamWorks/process-server/conf/jboss-service.xml"
repository = {org.jboss.mx.loading.UnifiedLoaderRepository3 at 9156}
unregisterTrace = null
addedOrder = 2
parent = {org.jboss.system.server.NoAnnotationURLClassLoader at 8202}
classBlackList = {java.util.Collections$SynchronizedSet at 9157} size = 15
resourceBlackList = {java.util.Collections$SynchronizedSet at 9158} size = 82
resourceCache = {EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap at 9159} size = 2396
loadLock = {EDU.oswego.cs.dl.util.concurrent.ReentrantLock at 9160}
loadClassDepth = 0
ucp = {sun.misc.URLClassPath at 9161}
acc = {java.security.AccessControlContext at 9162}
initialized = true
pdcache = {java.util.HashMap at 9163} size = 42
initialized = true
parent = {org.jboss.system.server.NoAnnotationURLClassLoader at 8202}
package2certs = {java.util.Hashtable at 9164} size = 227
nocerts = {java.security.cert.Certificate[0]@9165}
classes = {java.util.Vector at 9166} size = 2019
domains = {java.util.HashSet at 9167} size = 42
packages = {java.util.HashMap at 9168} size = 228
defaultDomain = null
nativeLibraries = {java.util.Vector at 9169} size = 0
defaultAssertionStatus = false
packageAssertionStatus = null
classAssertionStatus = null

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

Thanks in advance,
Grigory.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143110#4143110

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143110



More information about the jboss-user mailing list