Re: access to hibernate mapping file inside an .aar?
Unfortunaly, it's not working neither. If i put AxisService.class.getClassLoader(), it doesn't find my applicationContext.xml which was found with axisService.getClassLoader(); Le 29-avr.-07 à 03:04, Davanum Srinivas a écrit : Try the following: ClassLoader classLoader = AxisService.class.getClassLoader(); At startup time, the TCCL does not kick in yet. -- dims On 4/28/07, Martin Polet [EMAIL PROTECTED] wrote: Actualy, the error occurs when I start tomcat, when it try to deploy the aar. Here is the stack trace when my SpringInit class (with startUp and Shutdown method) try to make a refresh on my applicationContext: public void startUp(ConfigurationContext configurationContext, AxisService axisService) { try { ClassLoader classLoader = axisService.getClassLoader(); ClassPathXmlApplicationContext appCtx = new ClassPathXmlApplicationContext(new String[] {/WEB-INF/applicationContext.xml}, false); appCtx.setClassLoader(classLoader); appCtx.refresh(); //error occurs here... System.out.println(spring loaded); }catch (Exception ex) { ex.printStackTrace(); } } Here is the stack trace with the method: http://imacx.ath.cx/tmp/axis_error.txt Thx for your help Le 28-avr.-07 à 17:36, Davanum Srinivas a écrit : can u paste a stack trace? On 4/28/07, Martin Polet [EMAIL PROTECTED] wrote: Thx for your answer but i all ready done this. Here is my servide.xml: serviceGroup service name=EawServiceAdb class=com.unisys.r4egov.eaw.spring.service.SpringInit messageReceivers messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=com.unisys.r4egov.eaw.axis.EawServiceAdbMessageReceiverInOut/ /messageReceivers parameter name=ServiceTCCL locked=falsecomposite/parameter parameter name=ServiceObjectSupplier locked=falseorg.apache.axis2.extensions.spring.receivers.SpringApp ContextAwareObjectSupplier/parameter parameter name=SpringBeanName locked=falseeawServiceAxis/parameter operation name=DeleteEaw mep=http://www.w3.org/2004/08/wsdl/in-out; actionMapping/ outputActionMappinghttp://com.unisys.r4egov.unisys.eaw.axis/xsd/ EawPortType/DeleteEawResponse/outputActionMapping /operation operation name=AddEaw mep=http://www.w3.org/2004/08/wsdl/in-out; actionMapping/ outputActionMappinghttp://com.unisys.r4egov.unisys.eaw.axis/xsd/ EawPortType/AddEawResponse/outputActionMapping /operation operation name=GetListEaw mep=http://www.w3.org/2004/08/wsdl/in-out; actionMapping/ outputActionMappinghttp://com.unisys.r4egov.unisys.eaw.axis/xsd/ EawPortType/GetListEawResponse/outputActionMapping /operation operation name=EditEaw mep=http://www.w3.org/2004/08/wsdl/in-out; actionMapping/ outputActionMappinghttp://com.unisys.r4egov.unisys.eaw.axis/xsd/ EawPortType/EditEawResponse/outputActionMapping /operation /service /serviceGroup I don't understand why it doesn't find my hibernate file and my applicationContext yes... Le 28-avr.-07 à 15:14, Davanum Srinivas a écrit : Set ServiceTCCL parameter to composite as mentioned here: http://wso2.org/blog/dims/1131 On 4/28/07, Martin Polet [EMAIL PROTECTED] wrote: Hi, I will give a little bit more details about my problem: i follow this article: http://ws.apache.org/axis2/1_1_1/spring.html Everything is ok except that my applicationContext can't access my hibernate file. But, it can access my jdbc.properties which is also in /WEB-INF/jbbc.properties... And the point which is not very clear is the article, is the last point as follow: bean id=mySessionFactory class=org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=mappingLocations valueclasspath*:**/MyEntity.hbm.xml/value /property ... /bean how can i fix the classpath in the field value? Can someone help me, thank you ! Le 27-avr.-07 à 18:04, Martin Polet a écrit : Hi, I would like to know how to access my hibernate mapping file from the applicationContext.xml. I'm using Spring 3 with hibernate 3. Here is my bean from applicationcontext.xml which call my mapping file: bean id=mysessionFactory class=org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=dataSource ref bean=dataSource / /property property name=hibernateProperties ref bean=myHibernateProperties / /property property name=mappingResources list value/WEB-INF/AbsentiaD.hbm.xml/value /list /property /bean Here is the error: [CODE] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mysessionFactory' defined in class path resource [WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException:
Re: [ANN][Axis2]Axis2 1.2 Released
JIRA 2603 created. Thanks and regards, Jorge Fernández Davanum Srinivas [EMAIL PROTECTED] escribió: Jorge, JIRA Please...with your code sample so that we can recreate the problem. thanks, dims On 4/28/07, Jorge Fernandez wrote: Hi, I would like to say thanks to all the developers for the great job they did with the new release, fixing the issues and for all the supporting work; but I'm not going to let you rest ;). Sorry for that: I've just installed the new release and some of the bugs were fixed and with these corrections I discover other. I reopened JIRA AXIS2-2325 with those now issues. Also I could see that the problem with hierarchy generation in the wsdl was almost fixed except in cases described in that JIRA. One problem I'm having now is that when I have a hierarchy, for the children, it generates them correctly but it doesn't generate the father. In my case I supose that this is because I haven't used them in the API from which I generate the WSDL. For example, I define the method: public boolean validateAdmin(Administrator admin); where Administrator class extends User. Java2WSDL would generate: .. but not: .. since I don't use User class in my API. (If I'm not wrong, name=User type=ax23:User/ wouldn't need to be generated) Regards, Jorge Fernández Davanum Srinivas escribió: Till we fix the execute permission on the cgi :) please use http://www.apache.org/dyn/closer.cgi/ws/axis2/1_2/ (mirrors) http://www.apache.org/dist/ws/axis2/1_2/ (direct) thanks, dims On 4/27/07, Hickman, Craig wrote: Seems to be a problem with the download.cgi ? -Original Message- From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 10:30 AM To: axis-user@ws.apache.org Subject: [ANN][Axis2]Axis2 1.2 Released -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just over 4 months since the original 1.1.1 release, we are very proud to announce the release of Apache Axis2 version 1.2 Downloads are available at: http://ws.apache.org/axis2/download.cgi Apache Axis2 is a complete re-design and re-write of the widely used Apache Axis engine and is a more efficient, more scalable, more modular and more XML-oriented Web services framework. It is carefully designed to support the easy addition of plug-in modules that extend its functionality for features such as security and reliability. Modules supporting WS-Security/Secure-Conversation (Apache Rampart), WS-Trust (Apache Rahas), WS-Reliable Messaging (Apache Sandesha) and WS-Eventing (Apache Savan) will be available after the Apache Axis2 1.2 release. Please see these projects' own sites for further information. Major Changes Since 1.1: - - WSDL 2.0 fully support (reading, writing, and codegen) - - POJO annotation (JSR 181) - - JAX-WS integration - - JAX-WS -annotation - - Un-wrapping (Response) - - ADB - support for union and list - - Maven2 support - - JSON support - - Binary serialization (Fast infoste) - - Codegen support for WSDL with Multiple services - - HTTP code generation (both WSDL 1.1 and 2.0) - - Custom deployer support - - Message formatters - - Message Builders - - EJB Provider support Known Issues and Limitations in 1.2 Release: - - Xml-beans databinding does not support response uwwrapping - - ADB databinding does not support minOccurs and maxOccures attributes in sequence and choice elements Apache Axis2 1.2 is a major new release compared to Axis2 1.1. We are striving for a simple and happy first time user experience as well as a satisfying experienced user experience with this release. We welcome any and all feedback at: axis-user@ws.apache.org (please include [axis2] in the subject) [EMAIL PROTECTED] (please include [axis2] in the subject) http://issues.apache.org/jira/browse/AXIS2 Thank you for your interest in Apache Axis2! The Axis2 Development Team http://ws.apache.org/axis2/ - Features of Apache Axis2: Programming Model - Improved XML-centric client API with full WSDL and policy support - Support for POJO and Spring services and clients - Support for any message exchange pattern (MEP) - Synchronous and asynchronous programming model - Archived service deployment model supporting full service encapsulation with versioning support - Archived module deployment model supporting controlled extensibility with versioning support - Hot deployment - WS-Policy driven code generation extensions - Flexible service life cycle model - Automatic
Re: Help - No serializer found for class java.util.LinkedList$ListItr
I would suggest take a look at WSDL first and check for namespace and qname. Copy thereafter ns / qname into typemapping element of WSDD for Axis 1.x, see below. typeMapping xmlns:ns=some-name-space qname=ns:Array_Of_any type=java:java.util.LinkedList serializer=org.apache.axis.encoding.ser.ArraySerializerFactory deserializer=org.apache.axis.encoding.ser.ArrayDeserializerFactory encodingStyle= / You may also try to employ VectorSerializerFactory / VectorDeserializerFactory Regards. - Original Message - From: Prasad Viswatmula To: axis-user@ws.apache.org Sent: Saturday, April 28, 2007 11:45 PM Subject: Help - No serializer found for class java.util.LinkedList$ListItr Hi, I am getting the following error while running my axis web service client. I am calling the service using static proxy approach. Thanks, Prasad - Exception: java.io.IOException: No serializer found for class java.util.LinkedList$ListItr in registry [EMAIL PROTECTED] at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1507) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize (SerializationContext.java:734) at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:230) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:801) at org.apache.axis.message.RPCParam.serialize (RPCParam.java:208) at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433) at org.apache.axis.message.MessageElement.output(MessageElement.java:1208) at org.apache.axis.message.SOAPBody.outputImpl (SOAPBody.java:139) at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478) at org.apache.axis.message.MessageElement.output(MessageElement.java:1208) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java :315) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269) at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530) at org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:554) at org.apache.axis.Message.getContentType(Message.java:486) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:343) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke (Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812)
Re: Axis 1.2 WAR Distribution
Dims, Most project produce libraries much like the axis2 jar files, but if you want to use axis2 in a container you need a modified version of the axis2.war. What I have done historically is download the axis2.war and create a maven project for it. I then include the axis2.war in any project (as a maven dependency) that produces a customized deployable axis2 war. This enables me to use the default axis2 configuration, override what I want, and include my aar files. I see a huge benefit in providing the axis2.war especially for maven users. I would really like to see this as part of the standard axis release so that I don't have to manage my own version of the war If it isn't I guess I really have no choice. Thanks, John On Sat, 2007-04-28 at 21:16 -0400, Davanum Srinivas wrote: John, Could you please point me to an existing project that deploys war file to maven repo? thanks, dims On 4/28/07, John Pfeifer [EMAIL PROTECTED] wrote: I can't seem to find the axis2.war file on the ibiblio maven repository. I was under the impression that the next release would contain the axis2 war file. Was the axis2 war file deployed to the maven repo, if so where can if find it. If not, can someone explain why this artifact isn't deployed to the maven repo. I makes building a customized axis2 war file a lot easier if you can just include the axis2 war as a dependency of your customized axis2 distribution. Otherwise, I have to download and save the axis2.war file and manage it locally (which I would prefer not to do). Thanks, jp4 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis 1.2 WAR Distribution
John, Am looking for a precedent here. Since there is a ton of jars in the default Axis2 war and not everyone needs all the jars. If we can understand what problems others have faced and how they deal with it, then we can follow the same patterns... -- dims On 4/29/07, John Pfeifer [EMAIL PROTECTED] wrote: Dims, Most project produce libraries much like the axis2 jar files, but if you want to use axis2 in a container you need a modified version of the axis2.war. What I have done historically is download the axis2.war and create a maven project for it. I then include the axis2.war in any project (as a maven dependency) that produces a customized deployable axis2 war. This enables me to use the default axis2 configuration, override what I want, and include my aar files. I see a huge benefit in providing the axis2.war especially for maven users. I would really like to see this as part of the standard axis release so that I don't have to manage my own version of the war If it isn't I guess I really have no choice. Thanks, John On Sat, 2007-04-28 at 21:16 -0400, Davanum Srinivas wrote: John, Could you please point me to an existing project that deploys war file to maven repo? thanks, dims On 4/28/07, John Pfeifer [EMAIL PROTECTED] wrote: I can't seem to find the axis2.war file on the ibiblio maven repository. I was under the impression that the next release would contain the axis2 war file. Was the axis2 war file deployed to the maven repo, if so where can if find it. If not, can someone explain why this artifact isn't deployed to the maven repo. I makes building a customized axis2 war file a lot easier if you can just include the axis2 war as a dependency of your customized axis2 distribution. Otherwise, I have to download and save the axis2.war file and manage it locally (which I would prefer not to do). Thanks, jp4 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: access to hibernate mapping file inside an .aar?
Last resort, do what we do in composite scenario. appCtx.setClassLoader(new org.apache.axis2.util.MultiParentClassLoader(null, new ClassLoader[] {AxisService.class.getClassLoader(), axisService.getClassLoader() } )); thanks, -- dims On 4/29/07, Martin Polet [EMAIL PROTECTED] wrote: Unfortunaly, it's not working neither. If i put AxisService.class.getClassLoader(), it doesn't find my applicationContext.xml which was found with axisService.getClassLoader(); Le 29-avr.-07 à 03:04, Davanum Srinivas a écrit : Try the following: ClassLoader classLoader = AxisService.class.getClassLoader(); At startup time, the TCCL does not kick in yet. -- dims On 4/28/07, Martin Polet [EMAIL PROTECTED] wrote: Actualy, the error occurs when I start tomcat, when it try to deploy the aar. Here is the stack trace when my SpringInit class (with startUp and Shutdown method) try to make a refresh on my applicationContext: public void startUp(ConfigurationContext configurationContext, AxisService axisService) { try { ClassLoader classLoader = axisService.getClassLoader(); ClassPathXmlApplicationContext appCtx = new ClassPathXmlApplicationContext(new String[] {/WEB-INF/applicationContext.xml}, false); appCtx.setClassLoader(classLoader); appCtx.refresh(); //error occurs here... System.out.println(spring loaded); }catch (Exception ex) { ex.printStackTrace(); } } Here is the stack trace with the method: http://imacx.ath.cx/tmp/axis_error.txt Thx for your help Le 28-avr.-07 à 17:36, Davanum Srinivas a écrit : can u paste a stack trace? On 4/28/07, Martin Polet [EMAIL PROTECTED] wrote: Thx for your answer but i all ready done this. Here is my servide.xml: serviceGroup service name=EawServiceAdb class=com.unisys.r4egov.eaw.spring.service.SpringInit messageReceivers messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=com.unisys.r4egov.eaw.axis.EawServiceAdbMessageReceiverInOut/ /messageReceivers parameter name=ServiceTCCL locked=falsecomposite/parameter parameter name=ServiceObjectSupplier locked=falseorg.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier/parameter parameter name=SpringBeanName locked=falseeawServiceAxis/parameter operation name=DeleteEaw mep=http://www.w3.org/2004/08/wsdl/in-out; actionMapping/ outputActionMappinghttp://com.unisys.r4egov.unisys.eaw.axis/xsd/EawPortType/DeleteEawResponse/outputActionMapping /operation operation name=AddEaw mep=http://www.w3.org/2004/08/wsdl/in-out; actionMapping/ outputActionMappinghttp://com.unisys.r4egov.unisys.eaw.axis/xsd/EawPortType/AddEawResponse/outputActionMapping /operation operation name=GetListEaw mep=http://www.w3.org/2004/08/wsdl/in-out; actionMapping/ outputActionMappinghttp://com.unisys.r4egov.unisys.eaw.axis/xsd/EawPortType/GetListEawResponse/outputActionMapping /operation operation name=EditEaw mep=http://www.w3.org/2004/08/wsdl/in-out; actionMapping/ outputActionMappinghttp://com.unisys.r4egov.unisys.eaw.axis/xsd/EawPortType/EditEawResponse/outputActionMapping /operation /service /serviceGroup I don't understand why it doesn't find my hibernate file and my applicationContext yes... Le 28-avr.-07 à 15:14, Davanum Srinivas a écrit : Set ServiceTCCL parameter to composite as mentioned here: http://wso2.org/blog/dims/1131 On 4/28/07, Martin Polet [EMAIL PROTECTED] wrote: Hi, I will give a little bit more details about my problem: i follow this article: http://ws.apache.org/axis2/1_1_1/spring.html Everything is ok except that my applicationContext can't access my hibernate file. But, it can access my jdbc.properties which is also in /WEB-INF/jbbc.properties... And the point which is not very clear is the article, is the last point as follow: bean id=mySessionFactory class=org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=mappingLocations valueclasspath*:**/MyEntity.hbm.xml/value /property ... /bean how can i fix the classpath in the field value? Can someone help me, thank you ! Le 27-avr.-07 à 18:04, Martin Polet a écrit : Hi, I would like to know how to access my hibernate mapping file from the applicationContext.xml. I'm using Spring 3 with hibernate 3. Here is my bean from applicationcontext.xml which call my mapping file: bean id=mysessionFactory class=org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=dataSource ref bean=dataSource / /property property name=hibernateProperties ref bean=myHibernateProperties / /property property name=mappingResources list value/WEB-INF/AbsentiaD.hbm.xml/value /list /property /bean Here is the error: [CODE] Caused by:
Re: Generate client using JiBX
The WSDL must either contain or reference the schema, unless it is an RPC style service which exchanges only simple types. If the latter, you don't need to use JiBX. On 4/28/07, wolverine my [EMAIL PROTECTED] wrote: Hi! I would like to create web service client using Axis2 and JiBX as described in http://ws.apache.org/axis2/1_2/userguide-creatingclients-jibx.html. Unfortunately all I have is the WSDL file, without the XML schema (XSD). Is there any way I can generate XSD from WSDL? Appreciate your advise, thank you! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to build webservice with WSDL2Java using style=RPC?
Axis2 does not support rpc/encoded. Use Axis 1.4. On 4/25/07, Vikas [EMAIL PROTECTED] wrote: Hi Friends, I have built webservice + client with WSDL2java using style=document/literal. Now I want to make same service with style=rpc/encoded. Can you tell me what are the steps to do so? Or any web link to guide me? With best regards From Vikas R. Khengare - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [AXIS V1.4] java.io.IOException: Error: missing type or ref attribute for node 'unknown' while parsing WSDL
Are you certain that your WSDL is valid? Perhaps you have an element defined with no type definition? On 4/25/07, Hiller, Frank RD-PT31 [EMAIL PROTECTED] wrote: I get this error message while generating classes using WSDL2Java. java.io.IOException: Error: missing type or ref attribute for node 'unknown' at org.apache.axis.wsdl.symbolTable.SymbolTable.createTypeFromRef(SymbolTable.java:1334) at org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.java:963) at org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.java:1119) at org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.java:1119) at org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.java:1119) at org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.java:1119) at org.apache.axis.wsdl.symbolTable.SymbolTable.populateTypes(SymbolTable.java:909) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:705) at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495) at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361) at java.lang.Thread.run(Unknown Source) Has someone ever had such a problem? Thanks, Frank Confidentiality note: The information in this email and any attachment may contain confidential and proprietary information of Heidelberger Druckmaschinen AG and/or its affiliates and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any review, reliance or distribution by others or forwarding without express permission is strictly prohibited and may cause liability. In case you have received this message due to an error in transmission, we kindly ask you to notify the sender immediately and to delete this email and any attachment from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: message encodingStyle
Axis2 does not support rpc/encoded. Try Axis 1.4 instead. On 4/24/07, pat [EMAIL PROTECTED] wrote: Hi, I have RPC based WS server which define message encodingStyle like this: wsdl:operation name=echo soap:operation soapAction=/ wsdl:input soap:body use=encoded encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; namespace=http://echo.ws/ /wsdl:input wsdl:output soap:body use=encoded encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; namespace=http://echo.ws/ /wsdl:output /wsdl:operation I want to use Axiom to handle the WS client, but I have no idea, where to setup ecodingStyle? Please kick me :-) Thanks a lot Pat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Call.SEND_TYPE_ATTR not working - Removing xsi:type from request
Use document/literal wrapped convention. On 4/23/07, Bakshi, Umesh (SYSTEM MESSAGING) [EMAIL PROTECTED] wrote: Hi, I'm using Java client having Apache AXIS API to invoke multi-platform Java, .NET and WSE2.0 webservices. The SOAP requests generated are having xsi:type attribute present except for String datatype. My question is how to remove this xsi:type attribute from the request? The Call object property SEND_TYPE_ATTR is set to Boolean.FALSE which is not working. _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); I'm getting request having xsi:type=xsd:boolean. Please help regarding this. Thanks, Umesh NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: access to hibernate mapping file inside an .aar?
instead of null in the first parameter for MultiParentClassLoader pass an empty array list like so. new URL[0] -- dims On 4/29/07, Martin Polet [EMAIL PROTECTED] wrote: Not working neither. i have a null pointer exception this time. But I think the problem is coming from the place where i put my hibernate mapping files. Currently, the are in /web-inf with my applicationContext.xml which is recognized. Where do i have to put them exactly in my aar? And here is the stack trace with your code: http://imacx.ath.cx/tmp/axis_error2.txt thx for your time! Le 29-avr.-07 à 15:55, Davanum Srinivas a écrit : Last resort, do what we do in composite scenario. appCtx.setClassLoader(new org.apache.axis2.util.MultiParentClassLoader(null, new ClassLoader[] {AxisService.class.getClassLoader(), axisService.getClassLoader() } )); thanks, -- dims On 4/29/07, Martin Polet [EMAIL PROTECTED] wrote: Unfortunaly, it's not working neither. If i put AxisService.class.getClassLoader(), it doesn't find my applicationContext.xml which was found with axisService.getClassLoader(); Le 29-avr.-07 à 03:04, Davanum Srinivas a écrit : Try the following: ClassLoader classLoader = AxisService.class.getClassLoader(); At startup time, the TCCL does not kick in yet. -- dims On 4/28/07, Martin Polet [EMAIL PROTECTED] wrote: Actualy, the error occurs when I start tomcat, when it try to deploy the aar. Here is the stack trace when my SpringInit class (with startUp and Shutdown method) try to make a refresh on my applicationContext: public void startUp(ConfigurationContext configurationContext, AxisService axisService) { try { ClassLoader classLoader = axisService.getClassLoader(); ClassPathXmlApplicationContext appCtx = new ClassPathXmlApplicationContext(new String[] {/WEB-INF/applicationContext.xml}, false); appCtx.setClassLoader(classLoader); appCtx.refresh(); //error occurs here... System.out.println(spring loaded); }catch (Exception ex) { ex.printStackTrace(); } } Here is the stack trace with the method: http://imacx.ath.cx/tmp/axis_error.txt Thx for your help Le 28-avr.-07 à 17:36, Davanum Srinivas a écrit : can u paste a stack trace? On 4/28/07, Martin Polet [EMAIL PROTECTED] wrote: Thx for your answer but i all ready done this. Here is my servide.xml: serviceGroup service name=EawServiceAdb class=com.unisys.r4egov.eaw.spring.service.SpringInit messageReceivers messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=com.unisys.r4egov.eaw.axis.EawServiceAdbMessageReceiverInOut/ /messageReceivers parameter name=ServiceTCCL locked=falsecomposite/parameter parameter name=ServiceObjectSupplier locked=falseorg.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier/parameter parameter name=SpringBeanName locked=falseeawServiceAxis/parameter operation name=DeleteEaw mep=http://www.w3.org/2004/08/wsdl/in-out; actionMapping/ outputActionMappinghttp://com.unisys.r4egov.unisys.eaw.axis/xsd/EawPortType/DeleteEawResponse/outputActionMapping /operation operation name=AddEaw mep=http://www.w3.org/2004/08/wsdl/in-out; actionMapping/ outputActionMappinghttp://com.unisys.r4egov.unisys.eaw.axis/xsd/EawPortType/AddEawResponse/outputActionMapping /operation operation name=GetListEaw mep=http://www.w3.org/2004/08/wsdl/in-out; actionMapping/ outputActionMappinghttp://com.unisys.r4egov.unisys.eaw.axis/xsd/EawPortType/GetListEawResponse/outputActionMapping /operation operation name=EditEaw mep=http://www.w3.org/2004/08/wsdl/in-out; actionMapping/ outputActionMappinghttp://com.unisys.r4egov.unisys.eaw.axis/xsd/EawPortType/EditEawResponse/outputActionMapping /operation /service /serviceGroup I don't understand why it doesn't find my hibernate file and my applicationContext yes... Le 28-avr.-07 à 15:14, Davanum Srinivas a écrit : Set ServiceTCCL parameter to composite as mentioned here: http://wso2.org/blog/dims/1131 On 4/28/07, Martin Polet [EMAIL PROTECTED] wrote: Hi, I will give a little bit more details about my problem: i follow this article: http://ws.apache.org/axis2/1_1_1/spring.html Everything is ok except that my applicationContext can't access my hibernate file. But, it can access my jdbc.properties which is also in /WEB-INF/jbbc.properties... And the point which is not very clear is the article, is the last point as follow: bean id=mySessionFactory class=org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=mappingLocations valueclasspath*:**/MyEntity.hbm.xml/value /property ... /bean how can i fix the classpath in the field value? Can someone help me, thank you ! Le 27-avr.-07 à 18:04, Martin Polet a écrit : Hi, I would like to know how to access my hibernate mapping file from the applicationContext.xml. I'm using Spring 3 with hibernate 3. Here is my
Re: [AXIS V1.4] java.io.IOException: Error: missing type or ref attribute for node 'unknown' while parsing WSDL
http://www.w3schools.com/dom/dom_validate.asp Viel Gluck Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Anne Thomas Manes [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Sunday, April 29, 2007 11:38 AM Subject: Re: [AXIS V1.4] java.io.IOException: Error: missing type or ref attribute for node 'unknown' while parsing WSDL Are you certain that your WSDL is valid? Perhaps you have an element defined with no type definition? On 4/25/07, Hiller, Frank RD-PT31 [EMAIL PROTECTED] wrote: I get this error message while generating classes using WSDL2Java. java.io.IOException: Error: missing type or ref attribute for node 'unknown' at org.apache.axis.wsdl.symbolTable.SymbolTable.createTypeFromRef(SymbolTable.java:1334) at org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.java:963) at org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.java:1119) at org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.java:1119) at org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.java:1119) at org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.java:1119) at org.apache.axis.wsdl.symbolTable.SymbolTable.populateTypes(SymbolTable.java:909) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:705) at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495) at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361) at java.lang.Thread.run(Unknown Source) Has someone ever had such a problem? Thanks, Frank Confidentiality note: The information in this email and any attachment may contain confidential and proprietary information of Heidelberger Druckmaschinen AG and/or its affiliates and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any review, reliance or distribution by others or forwarding without express permission is strictly prohibited and may cause liability. In case you have received this message due to an error in transmission, we kindly ask you to notify the sender immediately and to delete this email and any attachment from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with SwA
Jorge Appears you may have discovered a bug as the BoundaryPushbackInputStream.java as there appears to not be ability to deal with any buffer over 64k (the native datatypes appear to be all integer instead of long) Looking at the source http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/BoundaryPushbackInputStream.java?revision=528680pathrev=528680 I find length assignments of variables to int (max +- 64k) but no mention of lengths to long or unsigned long datatypes Do you know if there a JIRA ??? Saludos Cordiales! Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Jorge Fernandez To: axis-user@ws.apache.org ; [EMAIL PROTECTED] Sent: Sunday, April 29, 2007 11:23 AM Subject: Re: Help with SwA Hi Thilina, With the new release that seems to work fine. But sadly :( , now I'm getting the following exception when trying to access the attachments with both MTOM or SwA at the client: org.apache.axiom.om.OMException: javax.mail.MessagingException: Error reading input stream; nested exception is: java.io.IOException: End of Stream, but boundary not found at org.apache.axiom.attachments.Attachments.getPart(Attachments.java:517) at org.apache.axiom.attachments.Attachments.getNextPartDataHandler(Attachments.java:414) at org.apache.axiom.attachments.Attachments.getContentIDSet(Attachments.java:386) at org.apache.axiom.attachments.Attachments.getAllContentIDs(Attachments.java:379) at client.Medici_LinkSOAP12PortStub.getAttachment(Medici_LinkSOAP12PortStub.java:4102) at client.ClientUtilities.mtomTest(ClientUtilities.java:531) at client.Client.main(Client.java:69) Caused by: javax.mail.MessagingException: Error reading input stream; nested exception is: java.io.IOException: End of Stream, but boundary not found at javax.mail.internet.MimeBodyPart.init(MimeBodyPart.java:177) at org.apache.axiom.attachments.PartOnMemory.init(PartOnMemory.java:31) at org.apache.axiom.attachments.Attachments.getPart(Attachments.java:513) ... 6 more Caused by: java.io.IOException: End of Stream, but boundary not found at org.apache.axiom.attachments.BoundaryPushbackInputStream.read(BoundaryPushbackInputStream.java:230) at org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartInputStream.java:84) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at com.sun.mail.util.ASCIIUtility.getBytes(ASCIIUtility.java:246) at javax.mail.internet.MimeBodyPart.init(MimeBodyPart.java:175) ... 8 more I can see with TCPMon this: HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_2B201ECB17F697F7391177859246638; type=application/soap+xml; start=0.urn:uuid:[EMAIL PROTECTED]; action=urn:validateUser;charset=UTF-8Transfer-Encoding: chunkedDate: Sun, 29 Apr 2007 15:07:26 GMT423--MIMEBoundaryurn_uuid_2B201ECB17F697F7391177859246638Content-Type: application/soap+xml; charset=UTF-8Content-Transfer-Encoding: 8bitContent-ID: 0.urn:uuid:[EMAIL PROTECTED] ?xml version='1.0' encoding='UTF-8'? soapenv:Envelope xmlns:wsa=http://www.w3.org/2005/08/addressing; xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope; soapenv:Header wsa:ReplyTo wsa:Addresshttp://www.w3.org/2005/08/addressing/none/wsa:Address wsa:ReferenceParameters axis2:ServiceGroupId xmlns:axis2=http://ws.apache.org/namespaces/axis2;urn:uuid:2B201ECB17F697F7391177859246088/axis2:ServiceGroupId /wsa:ReferenceParameters /wsa:ReplyTo wsa:MessageIDurn:uuid:2B201ECB17F697F7391177859246104/wsa:MessageID wsa:Actionurn:validateUser/wsa:Action wsa:RelatesTourn:uuid:7C37DED94C81AED4F81177859244163/wsa:RelatesTo /soapenv:Header soapenv:Body ns3:validateUserResponse xmlns:ns3=http://op_messages.medici_link/xsd; ns3:returnsim588929623218/ns3:return /ns3:validateUserResponse /soapenv:Body /soapenv:Envelope 38 --MIMEBoundaryurn_uuid_2B201ECB17F697F7391177859246638 2000 Content-Type: application/octet-stream Content-Transfer-Encoding: binary Content-ID: urn:uuid:2B201ECB17F697F7391177859246543BM:/
Re: Help with SwA
Hola Martin, Thank you for the information. I don't know if there is a JIRA. But I think it's strange this bug when in the previous release there weren't any problems. Saludos, Jorge Fernández Martin Gainty [EMAIL PROTECTED] escribió: Jorge Appears you may have discovered a bug as the BoundaryPushbackInputStream.java as there appears to not be ability to deal with any buffer over 64k (the native datatypes appear to be all integer instead of long) Looking at the source http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/BoundaryPushbackInputStream.java?revision=528680pathrev=528680 I find length assignments of variables to int (max +- 64k) but no mention of lengths to long or unsigned long datatypes Do you know if there a JIRA ??? Saludos Cordiales! Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From:Jorge Fernandez To: axis-user@ws.apache.org ; [EMAIL PROTECTED] Sent: Sunday, April 29, 2007 11:23AM Subject: Re: Help with SwA Hi Thilina, With the new release that seems to workfine. But sadly :( , now I'm getting the following exception when trying toaccess the attachments with both MTOM or SwA at theclient: org.apache.axiom.om.OMException: javax.mail.MessagingException:Error reading input stream; nested exceptionis: java.io.IOException: End of Stream, but boundary notfound atorg.apache.axiom.attachments.Attachments.getPart(Attachments.java:517) at org.apache.axiom.attachments.Attachments.getNextPartDataHandler(Attachments.java:414) at org.apache.axiom.attachments.Attachments.getContentIDSet(Attachments.java:386) at org.apache.axiom.attachments.Attachments.getAllContentIDs(Attachments.java:379) at client.Medici_LinkSOAP12PortStub.getAttachment(Medici_LinkSOAP12PortStub.java:4102) atclient.ClientUtilities.mtomTest(ClientUtilities.java:531) at client.Client.main(Client.java:69) Caused by:javax.mail.MessagingException: Error reading input stream; nestedexception is: java.io.IOException: End of Stream, butboundary not found atjavax.mail.internet.MimeBodyPart.init(MimeBodyPart.java:177) at org.apache.axiom.attachments.PartOnMemory.init(PartOnMemory.java:31) at org.apache.axiom.attachments.Attachments.getPart(Attachments.java:513) ... 6 more Caused by: java.io.IOException: End of Stream, but boundary notfound at org.apache.axiom.attachments.BoundaryPushbackInputStream.read(BoundaryPushbackInputStream.java:230) at org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartInputStream.java:84) at java.io.BufferedInputStream.fill(Unknown Source) atjava.io.BufferedInputStream.read1(Unknown Source) atjava.io.BufferedInputStream.read(Unknown Source) atcom.sun.mail.util.ASCIIUtility.getBytes(ASCIIUtility.java:246) atjavax.mail.internet.MimeBodyPart.init(MimeBodyPart.java:175) ... 8 more I can see with TCPMon this: HTTP/1.1 200OK Server: Apache-Coyote/1.1 Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_2B201ECB17F697F7391177859246638; type=application/soap+xml;start=0.urn:uuid:[EMAIL PROTECTED]; action=urn:validateUser;charset=UTF-8Transfer-Encoding: chunkedDate: Sun, 29 Apr 2007 15:07:26 GMT423--MIMEBoundaryurn_uuid_2B201ECB17F697F7391177859246638Content-Type: application/soap+xml; charset=UTF-8Content-Transfer-Encoding: 8bitContent-ID: 0.urn:uuid:[EMAIL PROTECTED] ?xml version='1.0'encoding='UTF-8'? soapenv:Envelope xmlns:wsa=http://www.w3.org/2005/08/addressing; xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope; soapenv:Header wsa:ReplyTo wsa:Addresshttp://www.w3.org/2005/08/addressing/none/wsa:Address wsa:ReferenceParameters axis2:ServiceGroupId xmlns:axis2=http://ws.apache.org/namespaces/axis2;urn:uuid:2B201ECB17F697F7391177859246088/axis2:ServiceGroupId /wsa:ReferenceParameters /wsa:ReplyTo wsa:MessageIDurn:uuid:2B201ECB17F697F7391177859246104/wsa:MessageID wsa:Actionurn:validateUser/wsa:Action wsa:RelatesTourn:uuid:7C37DED94C81AED4F81177859244163/wsa:RelatesTo /soapenv:Header soapenv:Body ns3:validateUserResponse xmlns:ns3=http://op_messages.medici_link/xsd;
Re: Help with SwA
Jorge-- So you did not see this in the previous 1.x release??? Reminds me of the expression something about if it isnt broke? perhaps you can offer some suggestions to the dev group for creating a release management system? Saludos! Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Jorge Fernandez To: Martin Gainty ; axis-user Sent: Sunday, April 29, 2007 5:52 PM Subject: Re: Help with SwA Hola Martin, Thank you for the information. I don't know if there is a JIRA. But I think it's strange this bug when in the previous release there weren't any problems. Saludos, Jorge Fernández Martin Gainty [EMAIL PROTECTED] escribió: Jorge Appears you may have discovered a bug as the BoundaryPushbackInputStream.java as there appears to not be ability to deal with any buffer over 64k (the native datatypes appear to be all integer instead of long) Looking at the source http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/BoundaryPushbackInputStream.java?revision=528680pathrev=528680 I find length assignments of variables to int (max +- 64k) but no mention of lengths to long or unsigned long datatypes Do you know if there a JIRA ??? Saludos Cordiales! Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Jorge Fernandez To: axis-user@ws.apache.org ; [EMAIL PROTECTED] Sent: Sunday, April 29, 2007 11:23 AM Subject: Re: Help with SwA Hi Thilina, With the new release that seems to work fine. But sadly :( , now I'm getting the following exception when trying to access the attachments with both MTOM or SwA at the client: org.apache.axiom.om.OMException: javax.mail.MessagingException: Error reading input stream; nested exception is: java.io.IOException: End of Stream, but boundary not found at org.apache.axiom.attachments.Attachments.getPart(Attachments.java:517) at org.apache.axiom.attachments.Attachments.getNextPartDataHandler(Attachments.java:414) at org.apache.axiom.attachments.Attachments.getContentIDSet(Attachments.java:386) at org.apache.axiom.attachments.Attachments.getAllContentIDs(Attachments.java:379) at client.Medici_LinkSOAP12PortStub.getAttachment(Medici_LinkSOAP12PortStub.java:4102) at client.ClientUtilities.mtomTest(ClientUtilities.java:531) at client.Client.main(Client.java:69) Caused by: javax.mail.MessagingException: Error reading input stream; nested exception is: java.io.IOException: End of Stream, but boundary not found at javax.mail.internet.MimeBodyPart.init(MimeBodyPart.java:177) at org.apache.axiom.attachments.PartOnMemory.init(PartOnMemory.java:31) at org.apache.axiom.attachments.Attachments.getPart(Attachments.java:513) ... 6 more Caused by: java.io.IOException: End of Stream, but boundary not found at org.apache.axiom.attachments.BoundaryPushbackInputStream.read(BoundaryPushbackInputStream.java:230) at org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartInputStream.java:84) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at com.sun.mail.util.ASCIIUtility.getBytes(ASCIIUtility.java:246) at javax.mail.internet.MimeBodyPart.init(MimeBodyPart.java:175) ... 8 more I can see with TCPMon this: HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_2B201ECB17F697F7391177859246638; type=application/soap+xml; start=0.urn:uuid:[EMAIL PROTECTED]; action=urn:validateUser;charset=UTF-8Transfer-Encoding: chunkedDate: Sun, 29 Apr 2007 15:07:26 GMT423--MIMEBoundaryurn_uuid_2B201ECB17F697F7391177859246638Content-Type: application/soap+xml; charset=UTF-8Content-Transfer-Encoding: 8bitContent-ID: 0.urn:uuid:[EMAIL PROTECTED] ?xml version='1.0' encoding='UTF-8'? soapenv:Envelope xmlns:wsa=http://www.w3.org/2005/08/addressing;
Re: Help with SwA
int values are a minimum of 32 bits in Java, not 16 bits. They have a range from roughly -2 billion to +2 billion. There may well be a problem in the code, but it's not because ints are limited to +/- 64k. - Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Martin Gainty wrote: Jorge Appears you may have discovered a bug as the BoundaryPushbackInputStream.java as there appears to not be ability to deal with any buffer over 64k (the native datatypes appear to be all integer instead of long) Looking at the source http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/BoundaryPushbackInputStream.java?revision=528680pathrev=528680 http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/BoundaryPushbackInputStream.java?revision=528680pathrev=528680 I find length assignments of variables to int (max +- 64k) but no mention of lengths to long or unsigned long datatypes Do you know if there a JIRA ??? Saludos Cordiales! Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - *From:* Jorge Fernandez mailto:[EMAIL PROTECTED] *To:* axis-user@ws.apache.org mailto:axis-user@ws.apache.org ; [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] *Sent:* Sunday, April 29, 2007 11:23 AM *Subject:* Re: Help with SwA Hi Thilina, With the new release that seems to work fine. But sadly :( , now I'm getting the following exception when trying to access the attachments with both MTOM or SwA at the client: org.apache.axiom.om.OMException: javax.mail.MessagingException: Error reading input stream; nested exception is: java.io.IOException: End of Stream, but boundary not found at org.apache.axiom.attachments.Attachments.getPart(Attachments.java:517) at org.apache.axiom.attachments.Attachments.getNextPartDataHandler(Attachments.java:414) at org.apache.axiom.attachments.Attachments.getContentIDSet(Attachments.java:386) at org.apache.axiom.attachments.Attachments.getAllContentIDs(Attachments.java:379) at client.Medici_LinkSOAP12PortStub.getAttachment(Medici_LinkSOAP12PortStub.java:4102) at client.ClientUtilities.mtomTest(ClientUtilities.java:531) at client.Client.main(Client.java:69) Caused by: javax.mail.MessagingException: Error reading input stream; nested exception is: java.io.IOException: End of Stream, but boundary not found at javax.mail.internet.MimeBodyPart.init(MimeBodyPart.java:177) at org.apache.axiom.attachments.PartOnMemory.init(PartOnMemory.java:31) at org.apache.axiom.attachments.Attachments.getPart(Attachments.java:513) ... 6 more Caused by: java.io.IOException: End of Stream, but boundary not found at org.apache.axiom.attachments.BoundaryPushbackInputStream.read(BoundaryPushbackInputStream.java:230) at org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartInputStream.java:84) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at com.sun.mail.util.ASCIIUtility.getBytes(ASCIIUtility.java:246) at javax.mail.internet.MimeBodyPart.init(MimeBodyPart.java:175) ... 8 more I can see with TCPMon this: HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_2B201ECB17F697F7391177859246638; type=application/soap+xml; start=0.urn:uuid:[EMAIL PROTECTED]; action=urn:validateUser;charset=UTF-8Transfer-Encoding: chunkedDate: Sun, 29 Apr 2007 15:07:26 GMT423--MIMEBoundaryurn_uuid_2B201ECB17F697F7391177859246638Content-Type: application/soap+xml; charset=UTF-8Content-Transfer-Encoding: 8bitContent-ID: 0.urn:uuid:[EMAIL PROTECTED] ?xml version='1.0' encoding='UTF-8'? soapenv:Envelope xmlns:wsa=http://www.w3.org/2005/08/addressing; xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope; soapenv:Header wsa:ReplyTo wsa:Addresshttp://www.w3.org/2005/08/addressing/none/wsa:Address wsa:ReferenceParameters axis2:ServiceGroupId xmlns:axis2=http://ws.apache.org/namespaces/axis2;urn:uuid:2B201ECB17F697F7391177859246088/axis2:ServiceGroupId /wsa:ReferenceParameters /wsa:ReplyTo wsa:MessageIDurn:uuid:2B201ECB17F697F7391177859246104/wsa:MessageID wsa:Actionurn:validateUser/wsa:Action
Re: Help with SwA
There was a known bug in Axis2 1.1.1 which prevented the last boundary being written to the wire in the case of running Axis2 in Tomcat ... This was fixed in the latest 1.2 release.. If possible please try the latest or try replacing the Axiom jars.. Thanks, Thilina On 4/30/07, Dennis Sosnoski [EMAIL PROTECTED] wrote: int values are a minimum of 32 bits in Java, not 16 bits. They have a range from roughly -2 billion to +2 billion. There may well be a problem in the code, but it's not because ints are limited to +/- 64k. - Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Martin Gainty wrote: Jorge Appears you may have discovered a bug as the BoundaryPushbackInputStream.java as there appears to not be ability to deal with any buffer over 64k (the native datatypes appear to be all integer instead of long) Looking at the source http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/BoundaryPushbackInputStream.java?revision=528680pathrev=528680 http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/BoundaryPushbackInputStream.java?revision=528680pathrev=528680 I find length assignments of variables to int (max +- 64k) but no mention of lengths to long or unsigned long datatypes Do you know if there a JIRA ??? Saludos Cordiales! Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - *From:* Jorge Fernandez mailto:[EMAIL PROTECTED] *To:* axis-user@ws.apache.org mailto:axis-user@ws.apache.org ; [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] *Sent:* Sunday, April 29, 2007 11:23 AM *Subject:* Re: Help with SwA Hi Thilina, With the new release that seems to work fine. But sadly :( , now I'm getting the following exception when trying to access the attachments with both MTOM or SwA at the client: org.apache.axiom.om.OMException: javax.mail.MessagingException: Error reading input stream; nested exception is: java.io.IOException: End of Stream, but boundary not found at org.apache.axiom.attachments.Attachments.getPart(Attachments.java:517) at org.apache.axiom.attachments.Attachments.getNextPartDataHandler(Attachments.java:414) at org.apache.axiom.attachments.Attachments.getContentIDSet(Attachments.java:386) at org.apache.axiom.attachments.Attachments.getAllContentIDs(Attachments.java:379) at client.Medici_LinkSOAP12PortStub.getAttachment(Medici_LinkSOAP12PortStub.java:4102) at client.ClientUtilities.mtomTest(ClientUtilities.java:531) at client.Client.main(Client.java:69) Caused by: javax.mail.MessagingException: Error reading input stream; nested exception is: java.io.IOException: End of Stream, but boundary not found at javax.mail.internet.MimeBodyPart.init(MimeBodyPart.java:177) at org.apache.axiom.attachments.PartOnMemory.init(PartOnMemory.java:31) at org.apache.axiom.attachments.Attachments.getPart(Attachments.java:513) ... 6 more Caused by: java.io.IOException: End of Stream, but boundary not found at org.apache.axiom.attachments.BoundaryPushbackInputStream.read(BoundaryPushbackInputStream.java:230) at org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartInputStream.java:84) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at com.sun.mail.util.ASCIIUtility.getBytes(ASCIIUtility.java:246) at javax.mail.internet.MimeBodyPart.init(MimeBodyPart.java:175) ... 8 more I can see with TCPMon this: HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_2B201ECB17F697F7391177859246638; type=application/soap+xml; start=0.urn:uuid:[EMAIL PROTECTED]; action=urn:validateUser;charset=UTF-8Transfer-Encoding: chunkedDate: Sun, 29 Apr 2007 15:07:26 GMT423--MIMEBoundaryurn_uuid_2B201ECB17F697F7391177859246638Content-Type: application/soap+xml; charset=UTF-8Content-Transfer-Encoding: 8bitContent-ID: 0.urn:uuid:[EMAIL PROTECTED] ?xml version='1.0' encoding='UTF-8'? soapenv:Envelope xmlns:wsa=http://www.w3.org/2005/08/addressing; xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope; soapenv:Header wsa:ReplyTo