[JBoss-user] [JBossWS] - Re: Need help debugging web service deployment
This should work! | ... | JAXBContext jaxbContext =JAXBContext.newInstance(...); | Marshaller m = jaxbContext.createMarshaller(); | m.setProperty(Marshaller.JAXB_ENCODING, "UTF-8"); | | DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); | Document doc = dbf.newDocumentBuilder().newDocument(); | | m.marshal(_o, doc); | | SOAPMessage message = MessageFactory.newInstance().createMessage(); | SOAPBody body = message.getSOAPPart().getEnvelope().getBody(); | element = body.addDocument(doc); | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3935429#3935429 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3935429 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Need help debugging web service deployment
I don't have an answer for your current problem, but if you get past it I'd be very interested to know whether you can get the web service to work. I tried to use the suggestions from SchemaDriven.pdf to write a webservice using JAXB and ran into a serious problem. I was using JAXB 1.0.1, and J2SDK 1.4.2, and any time I tried to marshal into any kind of org.w3c.dom.Node (such as a SoapElement), I would get a Null Pointer Exception. JAXB tries to reference the local part of a QName that is a data element within the Node, and I would get an exception stating that the local part could not be null. My Java distribution used DOM level 2, which (from what I could gather from JavaDocs of different Node classes) explicitly states that the above-mentioned local part of the QName is *always* null. Maybe JAXB 1.0.1 had been written for a previous DOM implementation. If you don't run into this, or if you find a way around it, the answer would be extremely useful to me. thanks, -Kyle Duncan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917440#3917440 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917440 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Need help debugging web service deployment
I managed to get past the initial problem. The web service is being deployed. However, when I browse to http://localhost/ws4ee and click on the View link, I get the following error: java.lang.IllegalArgumentException: Illegal argument passed to ParameterDesc.setJavaType. The java type javax.xml.soap.SOAPElement does not match the mode inout The log says: | 2006-01-13 15:03:21,857 DEBUG [org.jboss.axis.description.ServiceDesc] Converting param: interface javax.xml.soap.SOAPElement | 2006-01-13 15:03:21,857 DEBUG [org.jboss.axis.description.ServiceDesc] Setting param class: interface javax.xml.soap.SOAPElement | 2006-01-13 15:03:21,857 INFO [org.jboss.axis.transport.http.AxisServlet] Exception: | java.lang.IllegalArgumentException: Illegal argument passed to ParameterDesc.setJavaType. The java type javax.xml.soap.SOAPElement does not match the mode inout | at org.jboss.axis.description.ParameterDesc.setJavaType(ParameterDesc.java:269) | at org.jboss.axis.description.ServiceDesc.syncOperationToClass(ServiceDesc.java:753) | at org.jboss.axis.description.ServiceDesc.getSyncedOperationsForName(ServiceDesc.java:1187) | at org.jboss.axis.description.ServiceDesc.loadServiceDescByIntrospectionRecursive(ServiceDesc.java:1045) | at org.jboss.axis.description.ServiceDesc.loadServiceDescByIntrospection(ServiceDesc.java:972) | at org.jboss.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:732) | at org.jboss.webservice.server.InvokerProvider.initServiceDesc(InvokerProvider.java:106) | at org.jboss.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:388) | at org.jboss.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:560) | at org.jboss.axis.deployment.wsdd.WSDDDeployment.getDeployedServices(WSDDDeployment.java:617) | at org.jboss.axis.configuration.FileProvider.getDeployedServices(FileProvider.java:356) | at org.jboss.webservice.server.AbstractServlet.reportAvailableServices(AbstractServlet.java:94) | at org.jboss.webservice.server.ServiceEndpointServlet.doGet(ServiceEndpointServlet.java:69) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) | at org.jboss.axis.transport.http.AxisServletBase.service(AxisServletBase.java:370) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917420#3917420 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917420 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sou