Did you find an answer to this problem? I'm having the same situation when I add a second EAR file to the same JVM.
I have one client EAR, one EAR with a web service project. That works fine. The client ear calls a web service on the web service EAR. When I add a third EAR which is another web service it gives me the JAXBElement exception. I made sure jars where not duplicate and all of that, but that didn't help. Outisde of running multiple JVMs I'm almost out of options. bb Narasimhulu wrote: > > Hi, > I am trying to get the User defined Java Object from Webservice, While > making a call on Webservice method i am getting the following error. > > org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. > Nested exception is org.codehaus.xfire.fault.XFireFault: Couldn't > instantiate class. javax.xml.bind.JAXBElement > org.codehaus.xfire.fault.XFireFault: Couldn't instantiate class. > javax.xml.bind.JAXBElement > at > org.codehaus.xfire.aegis.type.basic.BeanType.readObject(BeanType.java:196) > at > org.codehaus.xfire.aegis.type.basic.BeanType.readObject(BeanType.java:159) > at > org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(AegisBindingProvider.java:162) > at > org.codehaus.xfire.service.binding.AbstractBinding.read(AbstractBinding.java:206) > at > org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:50) > at > org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42) > at > org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) > at org.codehaus.xfire.client.Client.onReceive(Client.java:387) > at > org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139) > at > org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48) > at > org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26) > at > org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) > at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75) > at org.codehaus.xfire.client.Client.invoke(Client.java:335) > at > org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77) > at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57) > at $Proxy11.getRule(Unknown Source) > at > com.rsi.client.servlet.InitializeServlet.callCategoryWebService(InitializeServlet.java:164) > at > com.rsi.client.servlet.InitializeServlet.doGet(InitializeServlet.java:56) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) > at > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:790) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:709) > at > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:572) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644) > at java.lang.Thread.run(Thread.java:595) > Caused by: java.lang.InstantiationException: javax.xml.bind.JAXBElement > at java.lang.Class.newInstance0(Class.java:335) > at java.lang.Class.newInstance(Class.java:303) > at > org.codehaus.xfire.aegis.type.basic.BeanType.readObject(BeanType.java:109) > ... 46 more > > > > Please any one can help me out from this. > > I am having only one xml file that too service.xml file.This is located at > Webservice server side.WHile generating Stubs it is returning a > service.xml file to client too. > > Can u please let me know is there any xml configuration i am missing. > If yes please let me know the same and where i have to place the same. > > > Waiting for Your early reply.. > Thanks & Regards, > Narasimha > -- View this message in context: http://www.nabble.com/How-can-i-get-User-Defined-Java-Objects-or-List-of-User-Defined-Java-Objects-from-WebService-tf3583460.html#a13077905 Sent from the XFire - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
