geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Zink <jochenl...@web.de>
Subject Re: JAX-WS 2.1 WebService inside Geronimo 2.0.1
Date Wed, 07 May 2008 11:27:49 GMT
After adding a "little" bit more hidden-classes entries, the LingageError does not thrown again.
But now I get the next annoying Exception after calling the Service

org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where
it is not permitted.

I know what this mean, but I don't now why I get this Exception.


Thanks a lot!
Regards
Jochen


org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where
it is not permitted. 
	at org.apache.axiom.om.impl.dom.ParentNode.insertBefore(ParentNode.java:198)
	at org.apache.axiom.om.impl.dom.NodeImpl.appendChild(NodeImpl.java:238)
	at org.apache.axis2.saaj.SOAPPartImpl.appendChild(SOAPPartImpl.java:976)
	at com.sun.xml.bind.marshaller.SAX2DOMEx.startElement(SAX2DOMEx.java:160)
	at com.sun.xml.ws.encoding.TagInfoset.writeStart(TagInfoset.java:152)
	at com.sun.xml.ws.message.stream.StreamMessage.writeTo(StreamMessage.java:381)
	at com.sun.xml.ws.message.AbstractMessageImpl.readAsSOAPMessage(AbstractMessageImpl.java:179)
	at com.sun.xml.ws.handler.SOAPMessageContextImpl.getMessage(SOAPMessageContextImpl.java:64)
	at de.vb.webservices.toolkit.jaxws.server.handler.validation.soap.PayloadValidatingHandler.extractSource(PayloadValidatingHandler.java:35)
	at de.vb.webservices.toolkit.jaxws.server.handler.validation.soap.PayloadValidatingHandler.getSourceForRequestValidation(PayloadValidatingHandler.java:26)
	at de.vb.webservices.toolkit.jaxws.server.handler.validation.soap.PayloadValidatingHandler.getSourceForRequestValidation(PayloadValidatingHandler.java:13)
	at de.vb.webservices.toolkit.jaxws.server.handler.validation.AbstractValidatingHandler.handleRequest(AbstractValidatingHandler.java:143)
	at de.vb.webservices.toolkit.jaxws.server.handler.validation.AbstractValidatingHandler.handleMessage(AbstractValidatingHandler.java:134)
	at com.sun.xml.ws.handler.HandlerProcessor.callHandleMessage(HandlerProcessor.java:270)
	at com.sun.xml.ws.handler.HandlerProcessor.callHandlersRequest(HandlerProcessor.java:121)
	at com.sun.xml.ws.handler.ServerSOAPHandlerTube.callHandlersOnRequest(ServerSOAPHandlerTube.java:164)
	at com.sun.xml.ws.handler.HandlerTube.processRequest(HandlerTube.java:100)
	at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
	at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
	at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
	at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
	at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:226)
	at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:375)
	at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:175)
	at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:134)
	at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:159)
	at com.sun.xml.ws.transport.http.servlet.WSSpringServlet.doPost(WSSpringServlet.java:52)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
	at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:351)
	at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Thread.java:595)




> -----Ursprüngliche Nachricht-----
> Von: user@geronimo.apache.org
> Gesendet: 07.05.08 11:08:13
> An: user@geronimo.apache.org
> Betreff: Re: JAX-WS 2.1 WebService inside Geronimo 2.0.1


> Thanks, 
> 
> i try it with:
> <dep:hidden-classes>
>     <dep:filter>javax.xml.bind</dep:filter>
>     <dep:filter>com.sun.xml</dep:filter>			
>     <dep:filter>javax.xml.namespace</dep:filter>					
> </dep:hidden-classes>
> 
> Now I can start the application but while invoking I get this Exception.
> 
> What can this mean?
> 
> Thanks!
> 
> Regards
> Jochen
> 
> 
> 07.05.2008 10:35:50 com.sun.xml.ws.transport.http.servlet.WSServletDelegate doPost
> SCHWERWIEGEND: caught throwable
> java.lang.LinkageError: loader constraints violated when linking javax/xml/bind/JAXBContext
class
> 	at com.sun.xml.ws.handler.ServerSOAPHandlerTube.getContext(ServerSOAPHandlerTube.java:154)
> 	at com.sun.xml.ws.handler.HandlerTube.processRequest(HandlerTube.java:95)
> 	at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
> 	at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
> 	at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
> 	at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
> 	at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:226)
> 	at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:375)
> 	at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:175)
> 	at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:134)
> 	at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:159)
> 	at com.sun.xml.ws.transport.http.servlet.WSSpringServlet.doPost(WSSpringServlet.java:52)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> 	at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
> 	at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:351)
> 	at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> 	at java.lang.Thread.run(Thread.java:595)
> 
> 
> > -----Ursprüngliche Nachricht-----
> > Von: user@geronimo.apache.org
> > Gesendet: 06.05.08 20:34:37
> > An: user@geronimo.apache.org
> > Betreff: Re: JAX-WS 2.1 WebService inside Geronimo 2.0.1
> 
> If you are trying to use other libraries than the ones shipped with 
> > Gernoinimo, you need to inform that in the deployment plan.
> > You may do that by setting <inverse-classloading/> in the deployement 
> > plan, or by setting hidden classes as explained in http://publib.
> > boulder.ibm.com/wasce/V2.0.0/en/managing-the-classpath.html (it's for 
> > WAS CE but should be the same since that product is based on Geronimo 
> > 2.0)
> > 
> > HTH
> > 
> > Luciano
> > 
> > On Tue, May 6, 2008 at 9:25 AM, Jochen Zink <jochenlist@web.de> wrote:
> > Hello,
> > 
> > I try to deploy a WebService to Geronimo 2.0.1. The WS is implemented 
> > with JAX-WS 2.1. After deploying the application WAR file, I get the 
> > Exception you can see at the end of this mail.
> > 
> > I believe, the problem is, that Geronimo uses JAX-WS 2.0 and the 
> > Application needs 2.1.
> > 
> > The 2.1 libs are inside the WEB-INF/lib. But it seams, that Geronimo 
> > loads the classes from its own repository.
> > 
> > Is there any possibility to force loading my own JAX-WS (and maybe 
> > JAX-B)? Or comes the Exception from another problem?
> > 
> > Thanks a lot!
> > 
> > Regards
> > Jochen
> > 
> > 06.05.08 14:11:36ERROR ContextLoader: Context initialization failed
> > org.springframework.beans.factory.BeanCreationException: Error 
> > creating bean with name 'transferServiceHttpBinding' defined in 
> > ServletContext resource [/META-INF/spring/webservice-context.xml]: 
> > Cannot create inner bean '(inner bean)' of type [org.jvnet.jax_ws_
> > commons.spring.SpringService] while setting bean property 'service'; 
> > nested exception is org.springframework.beans.factory.BeanCreationExcep
> > tion: Error creating bean with name '(inner bean)#1': FactoryBean 
> > threw exception on object creation; nested exception is java.lang.
> > NoSuchMethodError: com.sun.xml.ws.binding.BindingImpl.create(Lcom/sun/
> > xml/ws/api/BindingID;)Lcom/sun/xml/ws/binding/BindingImpl;
> > Caused by:
> > org.springframework.beans.factory.BeanCreationException: Error 
> > creating bean with name '(inner bean)#1': FactoryBean threw exception 
> > on object creation; nested exception is java.lang.NoSuchMethodError: 
> > com.sun.xml.ws.binding.BindingImpl.create(Lcom/sun/xml/ws/api/
> > BindingID;)Lcom/sun/xml/ws/binding/BindingImpl;
> > Caused by:
> > java.lang.NoSuchMethodError: com.sun.xml.ws.binding.BindingImpl.
> > create(Lcom/sun/xml/ws/api/BindingID;)Lcom/sun/xml/ws/binding/
> > BindingImpl;
> >  at org.jvnet.jax_ws_commons.spring.SpringService.getObject(
> > SpringService.java:296)
> >  at org.jvnet.jax_ws_commons.spring.SpringService.getObject(
> > SpringService.java:45)
> >  at org.springframework.beans.factory.support.AbstractBeanFactory.
> > getObjectFromFactoryBean(AbstractBeanFactory.java:1246)
> >  at org.springframework.beans.factory.support.BeanDefinitionValueResolv
> > er.resolveInnerBean(BeanDefinitionValueResolver.java:221)
> >  at org.springframework.beans.factory.support.BeanDefinitionValueResolv
> > er.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)
> >  at org.springframework.beans.factory.support.AbstractAutowireCapableBe
> > anFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:
> > 1095)
> >  at org.springframework.beans.factory.support.AbstractAutowireCapableBe
> > anFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
> >  at org.springframework.beans.factory.support.AbstractAutowireCapableBe
> > anFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)
> >  at org.springframework.beans.factory.support.AbstractBeanFactory$1.
> > getObject(AbstractBeanFactory.java:249)
> >  at org.springframework.beans.factory.support.DefaultSingletonBeanRegis
> > try.getSingleton(DefaultSingletonBeanRegistry.java:155)
> >  at org.springframework.beans.factory.support.AbstractBeanFactory.
> > getBean(AbstractBeanFactory.java:246)
> >  at org.springframework.beans.factory.support.AbstractBeanFactory.
> > getBean(AbstractBeanFactory.java:160)
> >  at org.springframework.beans.factory.support.DefaultListableBeanFactor
> > y.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
> >  at org.springframework.context.support.AbstractApplicationContext.
> > refresh(AbstractApplicationContext.java:352)
> >  at org.springframework.web.context.ContextLoader.createWebApplicationC
> > ontext(ContextLoader.java:245)
> >  at org.springframework.web.context.ContextLoader.initWebApplicationCon
> > text(ContextLoader.java:188)
> >  at org.springframework.web.context.ContextLoaderListener.contextInitia
> > lized(ContextLoaderListener.java:49)
> >  at org.apache.catalina.core.StandardContext.listenerStart(StandardCont
> > ext.java:3823)
> >  at org.apache.catalina.core.StandardContext.start(StandardContext.
> > java:4324)
> >  at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(
> > GeronimoStandardContext.java:60)
> >  at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValv
> > e.invoke(GeronimoStandardContext.java:343)
> >  at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(
> > GeronimoBeforeAfterValve.java:47)
> >  at org.apache.geronimo.tomcat.GeronimoStandardContext.start(
> > GeronimoStandardContext.java:196)
> >  at org.apache.catalina.core.ContainerBase.addChildInternal(
> > ContainerBase.java:791)
> >  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.
> > java:771)
> >  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
> > 525)
> >  at org.apache.geronimo.tomcat.TomcatContainer.addContext(TomcatContain
> > er.java:355)
> >  at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$
> > 9370b073.invoke(<generated>)
> >  at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> >  at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
> > FastMethodInvoker.java:38)
> >  at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
> > GBeanOperation.java:124)
> >  at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstanc
> > e.java:830)
> >  at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.
> > java:57)
> >  at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
> > RawOperationInvoker.java:35)
> >  at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(
> > ProxyMethodInterceptor.java:96)
> >  at org.apache.geronimo.tomcat.TomcatContainer$$EnhancerByCGLIB$$
> > fa51872e.addContext(<generated>)
> >  at org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebApp
> > Context.java:524)
> >  at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(
> > GBeanInstance.java:996)
> >  at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullSta
> > rt(GBeanInstanceState.java:268)
> >  at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(
> > GBeanInstanceState.java:102)
> >  at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance
> > .java:539)
> >  at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(
> > GBeanDependency.java:111)
> >  at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(
> > GBeanDependency.java:146)
> >  at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(
> > GBeanDependency.java:120)
> >  at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningE
> > vent(BasicLifecycleMonitor.java:176)
> >  at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(
> > BasicLifecycleMonitor.java:44)
> >  at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycle
> > Broadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> >  at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullSta
> > rt(GBeanInstanceState.java:294)
> >  at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(
> > GBeanInstanceState.java:102)
> >  at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive
> > (GBeanInstanceState.java:124)
> >  at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(
> > GBeanInstance.java:553)
> >  at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(
> > BasicKernel.java:379)
> >  at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurat
> > ionGBeans(ConfigurationUtil.java:448)
> >  at org.apache.geronimo.kernel.config.KernelConfigurationManager.
> > start(KernelConfigurationManager.java:187)
> >  at org.apache.geronimo.kernel.config.SimpleConfigurationManager.
> > startConfiguration(SimpleConfigurationManager.java:530)
> >  at org.apache.geronimo.kernel.config.SimpleConfigurationManager.
> > startConfiguration(SimpleConfigurationManager.java:511)
> >  at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$
> > FastClassByCGLIB$$ce77a924.invoke(<generated>)
> >  at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> >  at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
> > FastMethodInvoker.java:38)
> >  at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
> > GBeanOperation.java:124)
> >  at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstanc
> > e.java:830)
> >  at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.
> > java:57)
> >  at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
> > RawOperationInvoker.java:35)
> >  at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(
> > ProxyMethodInterceptor.java:96)
> >  at org.apache.geronimo.kernel.config.EditableConfigurationManager$$
> > EnhancerByCGLIB$$e09c34a7.startConfiguration(<generated>)
> >  at org.apache.geronimo.deployment.plugin.local.StartCommand.run(
> > StartCommand.java:67)
> >  at java.lang.Thread.run(Thread.java:595)
> > 
> > __________________________________________________
> > GRATIS: Movie-FLAT. Jetzt freischalten!
> > http://freemail.web.de/club/maxdome.htm/?mc=025557
> > 
> > 
> > 
> 
> 
> _______________________________________________________________________
> EINE FÜR ALLE: die kostenlose WEB.DE-Plattform für Freunde und Deine
> Homepage mit eigenem Namen. Jetzt starten! http://unddu.de/?kid=kid@mf2
> 
> 


_______________________________________________________________
Schon gehört? Der neue WEB.DE MultiMessenger kann`s mit allen: 
http://www.produkte.web.de/messenger/?did=3016


Mime
View raw message