axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Fernández (JIRA) <j...@apache.org>
Subject [jira] Commented: (AXIS2-2088) wsdl2java JiBX code generator and -Ebindingfile option unavailable in ant task
Date Sat, 21 Apr 2007 23:27:15 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-2088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490671
] 

Jorge Fernández commented on AXIS2-2088:
----------------------------------------

Finally I've done it!!!

Thanks a lot. I had already tried what you said but the only problem 
I had was that I had dropped  the default="elements" attribute for the 
namespace definition in the binding and when I put it back It worked 
perfectly.

Thanks for the references. I had already read them but there is always 
something I can miss.

If you let me I would like to ask one last question: Does JiBX work with rampart??
I'm asking this because I have rampar module engaged but I wasn't using it at this
service and I get an exception besides I checked that the response message was
built correctly:

org.apache.axis2.AxisFault: Error in extracting message properties
	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271)
	at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
	at client.LoginServiceJiBXStub.webLogin(LoginServiceJiBXStub.java:142)
	at client.Client.main(Client.java:19)
Caused by: java.lang.Exception: org.apache.axis2.AxisFault: Error in extracting message properties;
nested exception is: 
	org.apache.rampart.RampartException: Error in extracting message properties
	at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:65)
	at org.apache.axis2.engine.Phase.invoke(Phase.java:382)
	at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:522)
	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:655)
	at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:48)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497)
	at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:328)
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:254)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	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.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.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.rampart.RampartException: Error in extracting message properties
	at org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:294)
	at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:56)
	at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:59)
	... 23 more
Caused by: org.apache.ws.security.WSSecurityException: Error in converting SOAP Envelope to
Document; nested exception is: 
	org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException
	at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:121)
	at org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:146)
	... 25 more
Caused by: org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException
	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:194)
	at org.apache.axiom.om.impl.dom.NodeImpl.build(NodeImpl.java:469)
	at org.apache.axiom.om.impl.dom.DocumentImpl.build(DocumentImpl.java:476)
	at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:107)
	... 26 more
Caused by: javax.xml.stream.XMLStreamException
	at org.apache.axiom.om.impl.llom.OMStAXWrapper.updateLastNode(OMStAXWrapper.java:952)
	at org.apache.axiom.om.impl.llom.OMStAXWrapper.next(OMStAXWrapper.java:913)
	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:111)
	... 29 more

	at org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
	... 4 more

> wsdl2java  JiBX code generator and -Ebindingfile option unavailable in ant task
> -------------------------------------------------------------------------------
>
>                 Key: AXIS2-2088
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2088
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1.1
>         Environment: Windows XP SP2, jre 1.5 update 10, and 1.7.0
>            Reporter: Jorge Fernández
>         Assigned To: Dennis Sosnoski
>         Attachments: binding.xml, build.xml, LoginServiceJiBX.wsdl, new_binding.xml,
ReturnWebLoginElement.java, WebLoginElement.java
>
>
> First the little question:  is there any way for passing the -Ebindingfile in the ant
task of wsdl2java? because I didn't find it.
> The big one: I'm having a problem with wsdl2java code generation. I'm trying JiBX databinding
in wrapped mode. I've got my objects defined, my wsdl definition of the service and  I made
my binding definition manually. I also made an ant task, following the steps of the jibx tutorial.
I generated the binding definition with JiBX tools.
> This is the problem:
> When I use the ant task for compiling the binding definition with the build.xml, everything
seems to go alright. After that, I would have to type some code for running the service and
that's why I decided to use wsdl2java.  When I use wsdl2java for code generation I get this
error:
> I use the command like this:
> wsdl2java -uri LoginServiceJiBX.wsdl -o src\ -p loginjibx -ss -sd -d jibx -g -sn LoginServiceJiBX
-pn LoginEndpointPort -ns2p http://login=login,http://www.w3.org/2001/XMLSchema=org.w3.www._2001.xmlschema,http://login/types=login.types,http:/
> /schemas.xmlsoap.org/wsdl/soap=org.xmlsoap.schemas.wsdl.soap,http://schemas.xmls
> oap.org/wsdl=org.xmlsoap.schemas.wsdl -ssi -Ebindingfile binding.xml
> This is the trace:
> Using AXIS2_HOME:   D:\Programas\PFC\axis2-1.1.1
> Using JAVA_HOME:    D:\Programas\Java\jdk1.5.0_09
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
> : java.lang.NullPointerException
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> ationEngine.java:224)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: java.lang.NullPointerException
>         at org.jibx.runtime.impl.StAXReaderWrapper.getNamespace(StAXReaderWrappe
> r.java:455)
>         at org.jibx.runtime.impl.UnmarshallingContext.getNamespaceUri(Unmarshall
> ingContext.java:3125)
>         at org.jibx.runtime.QName.deserialize(QName.java:234)
>         at org.jibx.binding.model.MappingElement.setQualifiedTypeName(MappingEle
> ment.java:261)
>         at org.jibx.binding.model.MappingElement.JiBX_binding_unmarshalAttr_5_0(
> MappingElement.java)
>         at org.jibx.binding.model.JiBX_bindingMappingElement_access.unmarshal()
>         at org.jibx.binding.model.BindingElement.JiBX_binding_unmarshal_3_0(Bind
> ingElement.java)
>         at org.jibx.binding.model.JiBX_bindingBindingElement_access.unmarshal()
>         at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(Unmarshal
> lingContext.java:2538)
>         at org.jibx.binding.model.BindingElement.readBinding(BindingElement.java
> :609)
>         at org.jibx.binding.model.BindingElement.readBinding(BindingElement.java
> :625)
>         at org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtil
> ity.java:240)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExte
> nsion.java:74)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> ationEngine.java:177)
>         ... 2 more
> I made it also in unwrapped mode and there was no problem with that.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message