[JBossWS] - JBossWS BindingException BUG
by emailmsgbox
I'm working with JBossws 1.0.2 and axis 1.4 and when I'm tring to call function with no parameters I have no problems but if the function has parameters I get the following error:
12:16:07,074 ERROR [http-0.0.0.0-8080-2] [ws.jaxrpc.SOAPFaultExceptionHelper] SOAP request exception
javax.xml.rpc.JAXRPCException: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: Requested element DataObjectsFilter_1 is not allowed in this position in the sequence. The next element should be {htt
p://bean.soap.stargate.cti2.com/jaws}DataObjectsFilter_1
at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:292)
at org.jboss.ws.binding.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:233)
at org.jboss.ws.binding.EndpointInvocation.getRequestParamValue(EndpointInvocation.java:103)
at org.jboss.ws.binding.EndpointInvocation.getRequestPayload(EndpointInvocation.java:117)
at org.jboss.ws.integration.jboss.ServiceEndpointInvokerEJB3.invokeServiceEndpoint(ServiceEndpointInvokerEJB3.java:115)
at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:115)
at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:219)
at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
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:96)
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.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
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:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
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)
Caused by: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: Requested element DataObjectsFilter_1 is not allowed in this position in the sequence. The next element should be {http://bean.soap.starga
te.cti2.com/jaws}DataObjectsFilter_1
at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:100)
at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:229)
... 30 more
Caused by: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: Requested element DataObjectsFilter_1 is not allowed in this position in the sequence. The next element should be {http://bean.soap.stargate.cti2.com/jaws}DataObjectsFilter_1
at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:67)
at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:92)
... 31 more
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Requested element DataObjectsFilter_1 is not allowed in this position in the sequence. The next element should be {http://bean.soap.stargate.cti2.com/jaws}DataObjectsFilter_1
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:156)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:126)
at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:63)
... 32 more
Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Requested element DataObjectsFilter_1 is not allowed in this position in the sequence. The next element should be {http://bean.soap.stargate.cti2.com/jaws}DataObjectsFilter_1
at org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding$1.startElement(SequenceBinding.java:214)
at org.jboss.xb.binding.sunday.unmarshalling.ModelGroupBinding$Cursor.startElement(ModelGroupBinding.java:152)
please help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969187#3969187
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969187
19 years, 7 months
[Beginners Corner] - Re: Directory Listing
by jaikiran
You can set this option in the web.xml file present at: %JBOSS_HOME%/server/default/deploy/jbossweb-tomcat41.sar/META-INF directory.
In this web.xml you will find something like:
<!-- ================== Built In Servlet Definitions ==================== -->
|
|
| <!-- The default servlet for all web applications, that serves static -->
| <!-- resources. It processes all requests that are not mapped to other -->
| <!-- servlets with servlet mappings (defined either here or in your own -->
| <!-- web.xml file. This servlet supports the following initialization -->
| <!-- parameters (default values are in square brackets): -->
| <!-- -->
| <!-- debug Debugging detail level for messages logged -->
| <!-- by this servlet. [0] -->
| <!-- -->
| <!-- input Input buffer size (in bytes) when reading -->
| <!-- resources to be served. [2048] -->
| <!-- -->
| <!-- listings Should directory listings be produced if there -->
| <!-- is no welcome file in this directory? [true] -->
| <!-- -->
| <!-- output Output buffer size (in bytes) when writing -->
| <!-- resources to be served. [2048] -->
| <!-- -->
| <!-- readonly Is this context "read only", so HTTP -->
| <!-- commands like PUT and DELETE are -->
| <!-- rejected? [true] -->
|
| <servlet>
| <servlet-name>default</servlet-name>
| <servlet-class>
| org.apache.catalina.servlets.DefaultServlet
| </servlet-class>
| <init-param>
| <param-name>debug</param-name>
| <param-value>0</param-value>
| </init-param>
| <init-param>
| <param-name>listings</param-name>
| <param-value>true</param-value>
| </init-param>
| <load-on-startup>1</load-on-startup>
| </servlet>
You will have to change the 'listings' init param value to false:
<init-param>
| <param-name>listings</param-name>
| <param-value>false</param-value>
| </init-param>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969184#3969184
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969184
19 years, 7 months