Re: issue 731 - please have a look
Hello, So what is the proposed solution to this problem? Is the code going to be changed so that apr_base64_decode_len() always returns the correct length or should developers use [axutil/apr]_base64_decode() to get the exact length? I use the apr_base64_decode_len() function to allocate memory for attachment recvd via the webservice and that introduces garbage characters in the end as the len function always returns a value greates than the actual length. Subra On 10/23/07, Dumindu Pallewela [EMAIL PROTECTED] wrote: Kaushalye Kapuruge wrote: Samisa Abeysinghe wrote: Mark Nüßler wrote: hello users, on 26.09.2007 Royston Day found an issue, i just correct my svn-code localy. Can someone have a look - 4 me Royston is right. https://issues.apache.org/jira/browse/AXIS2C-731 I think Rampart folks uses base64 encoding. Can someone using rampart please verify that the proposed code it correct. I tried with the new code and it worked fine for all the scenarios in Rampart/C. But I'm concerned about the interoperability. So it's too early to say that new implementation is correct unless it is inter-operable with other implementations. I'll update on that later. axutil_base64_decode_len() is the same implementation as that of the apr_base64_decode_len() found in libapr. AFAIK, this does not returns the exact decoded length of the encoded string, but returns at least as many number of bytes that is necessary. Exact length is anyway returned by the [axutil/apr]_base64_decode(). Thus, if the length returned from the proposed code is correct, there should be no problems with interoperability. -Dumindu. -- Dumindu Pallewela http://blog.dumindu.com GPG ID: 0x9E131672 WSO2 | http://wso2.com | Oxygenating the Web Service Platform
[Axis2] Problems about Axis2 client accessing ZSI(Written in Python) simple Echo web services
Hi, all, I write a webservice using Python, implementing a simple 'Echo' method, and use a simple Axis2 client to access this webservice, I do the following steps: 1. wsdl2java.bat -uri http://localhost/Echo.wsdl (generating two java files) 2. write a simple client to invoke the webservice then , I got the following errors: SOAP-ENV:Body xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; SOAP-ENV:FaultfaultcodeSOAP-ENV:Client/faultcodefaultstringUnparseable message/faultstringdetail ZSI:ParseFaultDetail xmlns:ZSI=http://www.zolera.com/schemas/ZSI/; ZSI:stringAny cannot parse untyped element/ZSI:string ZSI:trace/soapenv:Envelope/soapenv:Body/ns1:Echo/in_str/ZSI:trace /ZSI:ParseFaultDetail /detail/SOAP-ENV:Fault /SOAP-ENV:Body *My wsdl document is :* ?xml version=1.0 encoding=UTF-8? definitions xmlns=http://schemas.xmlsoap.org/wsdl/; xmlns:soap= http://schemas.xmlsoap.org/wsdl/soap/; xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; xmlns:http= http://schemas.xmlsoap.org/wsdl/http/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:tns=http://localhost:80/Echo.wsdl http://localhost/Echo.wsdl targetNamespace=http://localhost:80/Echo.wsdlhttp://localhost/Echo.wsdl message name=EchoRequest part name=in_str type=xsd:string/ /message message name=EchoResponse part name=result type=xsd:string/ /message portType name=EchoServer operation name=Echo input message=tns:EchoRequest/ output message=tns:EchoResponse/ /operation /portType binding name=EchoServer type=tns:EchoServer soap:binding style=rpc transport=http://schemas.xmlsoap.org/soap/http/ http://schemas.xmlsoap.org/soap/http%22/ operation name=Echo soap:operation soapAction=Echo/ input soap:body use=literal/ /input output soap:body use=literal/ /output /operation /binding service name=EchoServer port name=EchoServer binding=tns:EchoServer soap:address location= http://localhost:80/EchoServer/.py/http://localhost/EchoServer/.py%22/ /port /service /definitions So what's the problem here? Thanks a lot!
Re: minOccurs=0 attribute and .NET
Deepal Jayasinghe ha scritto: yes , it assume that value can be null for the object. Ok, but why does Axis2 generates minOccurs=0 even if I specify a parameter as int, instead of Integer? In this case, it cannot be nullable... Does anyone encountered such a problem integrating with .NET Framework 1.1? -- Mauro Molinari Software Developer [EMAIL PROTECTED] ___ CARDINIS Solutions SpA Your Governance Solutions via San Crispino, 46I-35129 Padova - Italy tel.(+39) 049.7803370/8072095 fax (+39) 049.7800824 www.cardinis.com --- Questo messaggio è strettamente riservato ai destinatari specificati. Se è ricevuto per errore si prega di avvisare il mittente e di cancellarlo dal proprio sistema. - This message is specifically addressed to the recipient(s). Should you receive it by mistake, please notify the sender and delete it from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: minOccurs=0 attribute and .NET
Martin Gainty ha scritto: yuo must be compling with -Eosv Hi Martin, sorry, I can't understand what you mean: I'm quite new to Axis2... Is your a suggestion to deal with my problem? -- Mauro Molinari Software Developer [EMAIL PROTECTED] ___ CARDINIS Solutions SpA Your Governance Solutions via San Crispino, 46I-35129 Padova - Italy tel.(+39) 049.7803370/8072095 fax (+39) 049.7800824 www.cardinis.com --- Questo messaggio è strettamente riservato ai destinatari specificati. Se è ricevuto per errore si prega di avvisare il mittente e di cancellarlo dal proprio sistema. - This message is specifically addressed to the recipient(s). Should you receive it by mistake, please notify the sender and delete it from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exception not mapped correctly in POJO first development
Edward Peng ha scritto: Any ideas on how I can get around this or what I'm doing wrong? Hi -- Mauro Molinari Software Developer [EMAIL PROTECTED] ___ CARDINIS Solutions SpA Your Governance Solutions via San Crispino, 46I-35129 Padova - Italy tel.(+39) 049.7803370/8072095 fax (+39) 049.7800824 www.cardinis.com --- Questo messaggio è strettamente riservato ai destinatari specificati. Se è ricevuto per errore si prega di avvisare il mittente e di cancellarlo dal proprio sistema. - This message is specifically addressed to the recipient(s). Should you receive it by mistake, please notify the sender and delete it from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exception not mapped correctly in POJO first development
Edward Peng ha scritto: Any ideas on how I can get around this or what I'm doing wrong? Hi Edwards, unfortunately I can't be of help, but I too have problems with Java methods that throw custom exceptions: the WSDL generated by Java2WSDL seems not to be valid... I was wondering if there's any example around on how to correctly work with exceptions... -- Mauro Molinari Software Developer [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Null pointer Exception thrown by Axis client
Can someone help with the Null pointer Exception thrown by Axis client Error seems to be thrown by Axis class Following is the exception thrown while invoking Call.invoke() AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.NullPointerException faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException at org.apache.axis.message.MessageElement.addTextNode(MessageElement.java:1396) at org.apache.axis.message.SOAPHandler.addTextNode(SOAPHandler.java:148) at org.apache.axis.message.SOAPHandler.endElement(SOAPHandler.java:112) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:559) at org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinder.java:853) at org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:643) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2978) __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2]Unsupported type http://www.w3.org/2001/XMLSchema string
Hi, all, there is a problem when axis2 parsing the returned soap message, what's the problem here ? Thanks a lot! Exception in thread main java.lang.RuntimeException: java.lang.RuntimeException: Unsupported type http://www.w3.org/2001/XMLSchema string at localhost.echoserver.EchoServerStub.fromOM(EchoServerStub.java:1096) at localhost.echoserver.EchoServerStub.Echo(EchoServerStub.java:160) at TClient.main(TClient.java:15) Caused by: java.lang.RuntimeException: Unsupported type http://www.w3.org/2001/XMLSchema string at localhost.echoserver.EchoServerStub$ExtensionMapper.getTypeObject( EchoServerStub.java:336) at localhost.echoserver.EchoServerStub$EchoResponse$Factory.parse( EchoServerStub.java:672) at localhost.echoserver.EchoServerStub.fromOM(EchoServerStub.java:1090) ... 2 more The returned soap message is: SOAP-ENV:Envelope xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/; xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; xmlns:ZSI=http://www.zolera.com/schemas/ZSI/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; SOAP-ENV:Header/SOAP-ENV:Header SOAP-ENV:Body EchoResponse id=o4b33f48 xsi:type=xsd:stringf/EchoResponse /SOAP-ENV:Body /SOAP-ENV:Envelope
[Axis2] out of memory
Hi I am trying to track down a java.lang.OutOfMemoryError: Java heap space exception in my application. I am not sure exactly where the problem lies, but possibly something to do with CodeGenerationEngine. My program generates web-services on the fly, and I use Axis2 to help me along. The out of memory problem occurs if I am generating lots of web-services in a loop. For example, if I write a large loop like the following, I get an error. (Note this is a boiled down version of my actual code which does a lot more stuff - and usually I get the exception after 20 iterations or so). Am I doing something wrong here, or is there a limitation with the CodeGenerationEngine? String[] parms = new String[] {-o, c:/temp, -sd, -ss, -S, ., -R, ., --noMessageReceiver, --noBuildXML, --noWSDL, -uri, c:/temp/exmployee.wsdl }; CommandLineOptionParser parser = new CommandLineOptionParser(parms); try { for (int i=0;i400;i++) { CodeGenerationEngine engine = new CodeGenerationEngine(parser); engine.generate(); } } catch (Exception e) { System.out.println(Error + e.getMessage()); } Thanks, Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Possible classloader issue - help needed
Hello, I'm trying to load a commons-chain catalog (from a file inside the service folder) and invoke a chain inside the invokeBusinessLogic method of the MessageReceiver (AbstractInOutMessageReceiver subclass). I'm using the latest release of Axis2 and of Commons-Chain. The service is deployed in Tomcat 6.0.14 in exploded form, and includes the jar dependencies in the service's /lib folder. No jars were added to the axis WEB-INF/lib folder nor to the Tomcat setup. Here is the relevant code snippet: code ConfigParser configParser = new ConfigParser(); Parameter parameter = msgContext.getParameter(Constants.CATALOG_FILE_URL_PARAM); if (parameter == null) { log.error(Parameter + Constants.CATALOG_FILE_URL_PARAM //$NON-NLS-1$ + not found!); //$NON-NLS-1$ } else { URL url = msgContext.getAxisService() .getClassLoader() .getResource(parameter.getValue().toString().trim()); log1.debug(Loading + url); //$NON-NLS-1$ configParser.parse(url); } catalog = CatalogFactory.getInstance().getCatalog(); /code The following exception is thrown in the last line of the else block: java.lang.ClassNotFoundException: org.apache.commons.chain.impl.CatalogBase at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181) at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207) at org.apache.commons.digester.Digester.startElement(Digester.java:1456) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1745) at org.apache.commons.chain.config.ConfigParser.parse(ConfigParser.java:198) The CatalogBase class is of course part of the commons-chain jar included like previously mentioned in the service /lib folder. Does anyone have any idea on what could be going wrong? I can provide any additional information required to make a better judgement if needed. Thank you, João - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Test Mail
http://www.patni.com World-Wide Partnerships. World-Class Solutions. _ This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at [EMAIL PROTECTED] and delete this mail. _
String array as parameter. Null is not passed
Hi all, I got the following problem: --- AXIS Version: Axis 1.4 Apr 22, 2006 --- Code: public java.lang.String[] getStrings(java.lang.String[] arg) throws java.rmi.RemoteException; --- Schema ( document wrapped style ) : s:element name=getStrings s:complexType s:sequence s:element minOccurs=0 maxOccurs=1 name=arg type=tns:ArrayOfString / /s:sequence /s:complexType /s:element ... s:complexType name=ArrayOfString s:sequence s:element minOccurs=0 maxOccurs=unbounded name=string nillable=true type=s:string / /s:sequence /s:complexType --- Call String[] arg = new String[] { Str1, null, Str3 }; String res[] = ff.getStrings(arg); assertEquals(null, res[1]); --- Data getStrings xmlns=http://triniforce.com/soap/sample;argstringStr1/stringstringStr3/string/arg/getStrings === Expected data: argstringStr1/stringstring xsi:null = true /stringStr3/string/arg So the problem is that null is not passed, while I think It should. What am I doing wrong ? Maxim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: minOccurs=0 attribute and .NET
Deepal Jayasinghe ha scritto: Does Axis2 specify minOccurs=0 with the meaning of: it may be null? Or are there other specific reasons? yes , it assume that value can be null for the object. Hi Deepal, I just remembered another thing. There already is nillable=true attribute for parameters that can be null, so what is minOccurs=0 useful for? -- Mauro Molinari Software Developer [EMAIL PROTECTED] ___ CARDINIS Solutions SpA Your Governance Solutions via San Crispino, 46I-35129 Padova - Italy tel.(+39) 049.7803370/8072095 fax (+39) 049.7800824 www.cardinis.com --- Questo messaggio è strettamente riservato ai destinatari specificati. Se è ricevuto per errore si prega di avvisare il mittente e di cancellarlo dal proprio sistema. - This message is specifically addressed to the recipient(s). Should you receive it by mistake, please notify the sender and delete it from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: minOccurs=0 attribute and .NET
On 10/25/07, Mauro Molinari [EMAIL PROTECTED] wrote: Hi Deepal, I just remembered another thing. There already is nillable=true attribute for parameters that can be null, so what is minOccurs=0 useful for? Microsoft uses minOccurs to generate schema for reference class members Code: public class MyClass { //scalars public int primitive; public int? wrapper; public String str; public MyClass2 cls; Schema: s:complexType name=MyClass − s:sequence s:element minOccurs=1 maxOccurs=1 name=primitive type=s:int/ s:element minOccurs=1 maxOccurs=1 name=wrapper nillable=true type=s:int/ s:element minOccurs=0 maxOccurs=1 name=str type=s:string/ s:element minOccurs=0 maxOccurs=1 name=cls type=tns:MyClass2/ Note that int? type ( Integer in Java ) is processed using nillable - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [AXIS2] SOAP Header problem
Thanks for the answer. In my case I have no problem in reaching the correct service deployed. The problem is, that the server-side will validate the incomming XML document (SOAP message) and this validation fails because my generated SOAP Header Block is not correct according to the XSD defining the Header Block. So I do not think the soapAction is a problem in this case. I somehow need to force AXIS2 to use my attribute settings (Java part) for generating the correct SOAP Header Block. BR Morten -Original Message- From: Jon Hanshew [mailto:[EMAIL PROTECTED] Sent: 24. oktober 2007 20:45 To: axis-user@ws.apache.org Subject: Re: [AXIS2] SOAP Header problem The first thing that I see is that soapAction is null (). It needs to match your service call. The Axis2 stub code generated by wsdl2java does a setAction call that uses the wsdl value of soapAction to identify the function to call on the service. Hope this helps. morten.frank wrote: Hi, I am currently evaluating different WS technologies to be used in a client side Java environment. The deal is, that we have a number of WSDL docs and they refer several XSD schemas for describing service input/output and data types etc. My problem is, that somehow I can't get AXIS2 to generate the correct SOAP header block according to our WSDL and XSD definitions. Example: A WSDL document defines the binding: wsdl:binding name=HelloWorldServiceSOAP type=tns:HelloWorldService soap:binding style=document transport=http://schemas.xmlsoap.org/soap/http/ wsdl:operation name=FindHelloWorld soap:operation soapAction=/ wsdl:input soap:body use=literal/ soap:header message=common:MetadataMessage part=metadata use=literal/ /wsdl:input wsdl:output soap:body use=literal/ /wsdl:output wsdl:fault name=Error soap:fault name=Error use=literal/ /wsdl:fault /wsdl:operation /wsdl:binding The thing to note is the soap:header message=common:MetadataMessage part=metadata use=literal/ part. The Common.wsdl is imported in the above WSDL and is defined as: ?xml version=1.0 encoding=UTF-8? wsdl:definitions xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:tns=http://common.ntpsoa.nordea.com/common/wsdl/v1; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:md=http://metadata.ntpsoa.nordea.com/object; xmlns:err=http://error.ntpsoa.nordea.com/object/v1; name=CommonWSDL targetNamespace=http://common.ntpsoa.nordea.com/common/wsdl/v1; wsdl:types xsd:schema xsd:import namespace=http://metadata.ntpsoa.nordea.com/object; schemaLocation=../xsd/Metadata.xsd/ xsd:import namespace=http://error.ntpsoa.nordea.com/object/v1; schemaLocation=../xsd/Error.xsd/ /xsd:schema /wsdl:types wsdl:message name=MetadataMessage wsdl:part name=metadata element=md:metadata/ /wsdl:message wsdl:message name=ErrorMessage wsdl:part name=error element=err:error/ /wsdl:message /wsdl:definitions In the Metadata.xsd the following part is defined: xs:attribute name=schemaVersion type=xs:string use=required/xs:attribute I have run the WSDL file through the wsdl2java to generate the client stub. I have tried with ADT and XMLBeans as binding mechanism, both give the same result: In both cases I get an Java class representing the Metadata. In both cases I am able to set the Java attributes for the elements and attributes of the underlying XML document, including the schemaVersion. Using XMLBeans I have tried to dump the headerblock generated by XMLBeans. The result is: obj:metadata schemaVersion=1.0 xmlns:obj=http://metadata.ntpsoa.nordea.com/object; obj:userIdN231820/obj:userId obj:requestDomainSE/obj:requestDomain obj:sessionIdString/obj:sessionId obj:applicationIdString/obj:applicationId obj:messageTimeStamp2007-10-22T15:29:55.625+02:00/obj:messageTimeSt am p obj:authMethodString/obj:authMethod obj:testfalse/obj:test /obj:metadata Note, that schemaVersion is set correctly at this point. But in both cases, the actual SOAP message looks like: ?xml version='1.0' encoding='UTF-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Header metadata xmlns=http://metadata.ntpsoa.nordea.com/object; soapenv:mustUnderstand=0 userIdN231820/userId requestDomainSE/requestDomain sessionIdString/sessionId applicationIdString/applicationId
RE: Remove me from the list please - thanks
To unsubscibe, Send an empty email to [EMAIL PROTECTED] -jeff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 24, 2007 8:22 PM To: axis-user@ws.apache.org Subject: Remove me from the list please - thanks - 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: minOccurs=0 attribute and .NET
Mauro Molinari wrote: Deepal Jayasinghe ha scritto: Does Axis2 specify minOccurs=0 with the meaning of: it may be null? Or are there other specific reasons? yes , it assume that value can be null for the object. Hi Deepal, I just remembered another thing. There already is nillable=true attribute for parameters that can be null, so what is minOccurs=0 useful for? Hmm , then that is something we need to fix , thx for finding this. If you can please create a JIRA. Thanks Deepal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Possible classloader issue - help needed
Hi João, Will you be able to send me your service aar file , then I can debug and see what actually happening. Thanks Deepal Hello, I'm trying to load a commons-chain catalog (from a file inside the service folder) and invoke a chain inside the invokeBusinessLogic method of the MessageReceiver (AbstractInOutMessageReceiver subclass). I'm using the latest release of Axis2 and of Commons-Chain. The service is deployed in Tomcat 6.0.14 in exploded form, and includes the jar dependencies in the service's /lib folder. No jars were added to the axis WEB-INF/lib folder nor to the Tomcat setup. Here is the relevant code snippet: code ConfigParser configParser = new ConfigParser(); Parameter parameter = msgContext.getParameter(Constants.CATALOG_FILE_URL_PARAM); if (parameter == null) { log.error(Parameter + Constants.CATALOG_FILE_URL_PARAM //$NON-NLS-1$ + not found!); //$NON-NLS-1$ } else { URL url = msgContext.getAxisService() .getClassLoader() .getResource(parameter.getValue().toString().trim()); log1.debug(Loading + url); //$NON-NLS-1$ configParser.parse(url); } catalog = CatalogFactory.getInstance().getCatalog(); /code The following exception is thrown in the last line of the else block: java.lang.ClassNotFoundException: org.apache.commons.chain.impl.CatalogBase at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181) at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207) at org.apache.commons.digester.Digester.startElement(Digester.java:1456) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1745) at org.apache.commons.chain.config.ConfigParser.parse(ConfigParser.java:198) The CatalogBase class is of course part of the commons-chain jar included like previously mentioned in the service /lib folder. Does anyone have any idea on what could be going wrong? I can provide any additional information required to make a better judgement if needed. Thank you, João - 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]
wsdl2java complexType element
I have this kind of schema xs:complexType name=RDFResourceRequest xs:sequence minOccurs=0 xs:element name=creator nillable=true type=xs:string minOccurs=0 maxOccurs=1 / xs:element name=starttime nillable=true type=xs:dateTime minOccurs=0 maxOccurs=1 / xs:element name=endtime nillable=true type=xs:dateTime minOccurs=0 maxOccurs=1 / xs:element name=uri nillable=true type=xs:string minOccurs=0 maxOccurs=1 / /xs:sequence /xs:complexType xs:complexType name=fullInstancesRequest xs:complexContent xs:extension base=ns:RDFResourceRequest xs:sequence xs:element name=type nillable=true type=xs:string minOccurs=0 maxOccurs=1 / xs:element name=upperLat nillable=true type=xs:string minOccurs=0 maxOccurs=1 / xs:element name=upperLon nillable=true type=xs:string minOccurs=0 maxOccurs=1 / xs:element name=lowerLat nillable=true type=xs:string minOccurs=0 maxOccurs=1 / xs:element name=lowerLon nillable=true type=xs:string minOccurs=0 maxOccurs=1 / /xs:sequence /xs:extension /xs:complexContent /xs:complexType xs:complexType name=fullClassesRequest xs:complexContent xs:extension base=RDFResourceRequest xs:sequence xs:element name=superclass_uri nillable=true type=xs:string minOccurs=0 maxOccurs=1 / /xs:sequence /xs:extension /xs:complexContent /xs:complexType xs:element name=instances type=fullInstancesRequest / xs:element name=classes type=fullClassesRequest/ wsdl2java fails telling me that: No type was mapped to the name instance with namespace urn:neries:orfeus:ws if I add the right prefix in the type attrubutes. es xs:element name=classes type=ns:fullClassesRequest/ I get string value 'ns:fullClassesRequest' does not match pattern for xs:NCName Some hints? can I define complexTypes stand alone elements? -- View this message in context: http://www.nabble.com/wsdl2java-complexType-element-tf4690839.html#a13406683 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: minOccurs=0 attribute and .NET
Deepal jayasinghe ha scritto: Hmm , then that is something we need to fix , thx for finding this. If you can please create a JIRA. Thanks Deepal Done: https://issues.apache.org/jira/browse/AXIS2-3300 Thank you! -- Mauro Molinari Software Developer [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Examples of Java2WSDL with methods that throw exceptions?
Deepal Jayasinghe ha scritto: Can you please post your java class ? or create a JIRA attaching the java class Thanks Deepal Dear Deepal, do you have some news for this problem? Should I create a new JIRA issue for this, too? Thanks in advance! -- Mauro Molinari Software Developer [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: WSDL2Java not working for HTTPS URL
Thanks for the response Keith but I don't get to the stage where it complains about a security certificate It simply spews this error org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL and works if I just take the https off , is it an AXIS 2 1.3 bug ? Is there a flag that I can turn to get any verbose output on this ? Thanks for the help guys ! regards -machoq From: keith chapman [mailto:[EMAIL PROTECTED] Sent: Thursday, October 25, 2007 1:05 AM To: axis-user@ws.apache.org Subject: Re: WSDL2Java not working for HTTPS URL Hope this tip will help you http://wso2.org/blog/dims/1906 Thanks, Keith. On 10/24/07, Saket Raizada [EMAIL PROTECTED] wrote: Hi folks, I have a POJO that I deployed as a service and now I can access the WSDL file as http://central.acme.com:8081/axis2/services/SMProxy?wsdl or as https://central.acme.com:8443/axis2/services/SMProxy?wsdl Now when I run WSDL2Java to create the client it works for the http URL but fails for the https URL It gives a generic error org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL I have added the security certificate required to the cacerts file Any pointers are appreciated. (AXIS 2.0 ver 1.3 , ant 1.7 , java.version = 1.5.0.07 Attached is the WSDL file regards -machoq - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Keith Chapman WSO2 Inc. Oxygen for Web Services Developers. http://wso2.org/
Re: Examples of Java2WSDL with methods that throw exceptions?
Mauro Molinari wrote: Deepal Jayasinghe ha scritto: Can you please post your java class ? or create a JIRA attaching the java class Thanks Deepal Dear Deepal, do you have some news for this problem? Should I create a new JIRA issue for this, too? Please create a jira , I will try to fix the issue soon , so that you can test it with nightly builds. Thanks Deepal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What's the goal of the changeImportAndIncludeLocations in AxisService ?
Hello the list. We are using Axis2 1.3 and the wsdl2java under JDK 1.4 Near everything is working like a charm except the following. We put in the services.xml the parameter useOriginalwsdl to true. It means that NORMALLY, the original wsdl should be returned like it, without any modification. But it's not the case. The original wsdl is modified. It's modified by the fact the changeImportAndIncludeLocations of the AxisService class is called. the question is why that method is called ? What's the goal of such a method ? Now, in place of having something like that xsd:include schemaLocation=http://myrepository/mySchema.xsd; / I have now xsd:include schemaLocation=myService?xsd=http://myrepository/mySchema.xsd; / Any reason why ? Because, in our case, a client that want to call my wsdl can't use the returned wsdl. Because schemaLocation means nothing for the client. P.S. such modification has been done in SVN the 3rd july 2007 (SVN Commit 552837) by amilas. Vincent Brabant - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What's the goal of the changeImportAndIncludeLocations in AxisService ?
Hi Amila, Will you be able to have a look at this issue ? Thanks Deepal Vincent Brabant wrote: Hello the list. We are using Axis2 1.3 and the wsdl2java under JDK 1.4 Near everything is working like a charm except the following. We put in the services.xml the parameter useOriginalwsdl to true. It means that NORMALLY, the original wsdl should be returned like it, without any modification. But it's not the case. The original wsdl is modified. It's modified by the fact the changeImportAndIncludeLocations of the AxisService class is called. the question is why that method is called ? What's the goal of such a method ? Now, in place of having something like that xsd:include schemaLocation=http://myrepository/mySchema.xsd; / I have now xsd:include schemaLocation=myService?xsd=http://myrepository/mySchema.xsd; / Any reason why ? Because, in our case, a client that want to call my wsdl can't use the returned wsdl. Because schemaLocation means nothing for the client. P.S. such modification has been done in SVN the 3rd july 2007 (SVN Commit 552837) by amilas. Vincent Brabant - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Deepal The highest tower is built one brick at a time - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Examples of Java2WSDL with methods that throw exceptions?
Deepal jayasinghe ha scritto: Mauro Molinari wrote: Deepal Jayasinghe ha scritto: Can you please post your java class ? or create a JIRA attaching the java class Thanks Deepal Dear Deepal, do you have some news for this problem? Should I create a new JIRA issue for this, too? Please create a jira , I will try to fix the issue soon , so that you can test it with nightly builds. Thanks Deepal Here it is: https://issues.apache.org/jira/browse/AXIS2-3301 I created a simple test-case, attached it and attached the generated WSDL files. Thank you! -- Mauro Molinari Software Developer [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
axis2 1.3 wsa:To header usage
Hello all, Don't know if this is the correct location to post this, so please let me know if not. I create a client and want to make a call with WS-Addressing headers. What i noticed is that often there is a strong relation between the wsa:To value and the actual http uri being used to send the message to the next hop. I thought the wsa:To could contain the (logical) value of the end destination. So if there are two intermediairies than the wsa:To can stay the same over all hops. Currently this does not seem to be. Is my perception of the wsa:To wrong? ServiceClient client = new ServiceClient(context,null); Options ops = new Options(); Endpointreference to = new Endpointreference(finalDest); ops.setTo(to); Endpointreference epr = new Endpointreference(http://localhost/axis2/services/myservice;); client.setoptions(ops); client.setTargetEpr(epr); The ops.setTo value will be used to dispatch the message. Kind regards, Erwin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis and Glassfish
Hello, I have application running on glassfish application server. One EJB package contains bean that uses stub to connect to a webservice. I have nothing about that webservice in deployment descriptors. Now when I start the server and deploy the application it runs smoothly, but if i undeploy it and deploy again I get severe exception. I have to restart the glassfish server to get rid of that exception but it is time consuming and in development stage i need it to be quick. Does anybody here has any clue what causes the exception ? PWC1635: Illegal access: this web application instance has been stopped already (the eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact) urlSet = [URLEntry : file:/opt/glassfish-v2-b58/domains/domain1/applications/j2ee-apps/BidBull/AllegroWebApi.jar, URLEntry : file:/opt/glassfish-v2-b58/domains/domain1/applications/j2ee-apps/BidBull/BidBull-ejb.jar, URLEntry : file:/opt/glassfish-v2-b58/domains/domain1/applications/j2ee-apps/BidBull/AllegroEngine-ejb_jar/, URLEntry : file:/opt/glassfish-v2-b58/domains/domain1/applications/j2ee-apps/BidBull/BidBull-ejb_jar/, URLEntry : file:/opt/glassfish-v2-b58/domains/domain1/applications/j2ee-apps/BidBull/AllegroEngine-ejb.jar, URLEntry : file:/opt/glassfish-v2-b58/domains/domain1/applications/j2ee-apps/BidBull/MainQueryEngine-ejb_jar/, URLEntry : file:/opt/glassfish-v2-b58/domains/domain1/applications/j2ee-apps/BidBull/MainQueryEngine-ejb.jar, URLEntry : file:/opt/glassfish-v2-b58/domains/domain1/applications/j2ee-apps/BidBull/BidBull-war_war/WEB-INF/classes/, URLEntry : file:/opt/glassfish-v2-b58/domains/domain1/generated/ejb/j2ee-apps/BidBull/] doneCalled = false Parent - EJBClassLoader : urlSet = [] doneCalled = false Parent - [EMAIL PROTECTED] AT Thu Oct 25 17:22:45 CEST 2007 BY :com.sun.enterprise.loader.EJBClassLoader.printStackTraceToString(EJBClassLoader.java:812) com.sun.enterprise.loader.EJBClassLoader.done(EJBClassLoader.java:172) com.sun.enterprise.server.AbstractLoader.done(AbstractLoader.java:359) com.sun.enterprise.server.ApplicationLoader.unload(ApplicationLoader.java:264) com.sun.enterprise.server.TomcatApplicationLoader.unload(TomcatApplicationLoader.java:213) com.sun.enterprise.server.ApplicationManager.applicationUndeployed(ApplicationManager.java:525) com.sun.enterprise.server.ApplicationManager.applicationUndeployed(ApplicationManager.java:699) com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:930) com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:912) com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:461) com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176) com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308) com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226) com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStopEvent(ServerDeploymentTarget.java:332) com.sun.enterprise.deployment.phasing.ApplicationStopPhase.runPhase(ApplicationStopPhase.java:136) com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108) com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919) com.sun.enterprise.deployment.phasing.PEDeploymentService.stop(PEDeploymentService.java:652) com.sun.enterprise.deployment.phasing.PEDeploymentService.stop(PEDeploymentService.java:699) com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.stop(ApplicationsConfigMBean.java:767) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375) com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358) com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464) com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836) com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90) $Proxy1.invoke(Unknown Source) com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
Possible classloader issue - help needed
Hi Deepal, Attached (as links) I send the aar file as requested and the source of the MessageReceiver class. Comments: The service uses rampart configured through policy, so that info is available in the WSDL and service.xml files to ilustrate the situation (you can just delete the info or comment it out). The MessageReceiver does not depend on the module being engaged. Also, a custom logging module is engaged in services.xml, but that can also be commented out. The custom module also has its (exclusive) dependencies in its own /lib folder. Thanks, João [1] http://jpinto.homeip.net/~jpinto/AgentPlatformService.aar [2] http://jpinto.homeip.net/~jpinto/AgentPlatformServiceMessageReceiverInOut.java On 10/25/07, Deepal jayasinghe [EMAIL PROTECTED] wrote: Hi João, Will you be able to send me your service aar file , then I can debug and see what actually happening. Thanks Deepal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
test asynchronous functions
Hi, I chose to use asynchronous calls in Axis2 client to transmit soap messages. The test class is generated by wsdl2java. When I tested it, the test did not fail even if the handler is set to fail() in the receiveErrorXXX() which in turn indeed got called. This problem does not happen in synchronous calls. Any solution to test asynchronous calls? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] Upload .aar
Hi How do I upload a .aar file (webservice) to Axis2 under Tomcat? I have a webservice which I want to deploy. I can manually copy the .aar file to the Axis2 directory under Tomcat, but that only works if I have access to the filesystem of the machine Tomcat is running on. Otherwise I think there is some sort of upload mechanism which Tomcat or Axis2 supports, but I'm not sure... Thanks, Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Min/Max Inclusive
Hey, I have some POJO classes that I use java2wsdl to generate a wsdl file for me. I'm curious if there is any syntax that can be used in those java classes that will automatically add min/max inclusive to the generated WSDL? Lets say i have a simple class like public class TestClass { private int testInt; public void setTestInt(int i) { testInt = i; } public int getTestInt() { return 0; } } Say that i want the WSDL to insure that setTestInt only accepts values between 0 and 10, is there a way to make a change in TestClass so that min/max Inclusive gets put into the WSDL or do you have to manually tweak the generated WSDL and add some like the following? xs:minInclusive value=0 / xs:maxInclusive value=10 / Thanks, Jon. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis stub response to JSP.
JSP - Servlet(packages WSDLToJava StubClient) including encoding SOAP Request into XML- AxisServlet AxisServlet- XML response back to Servlet - Servlet parses the XML /populates beans/sends textResponse back -JSP (AJAX Div Tag or create ResultsJsp) Im sure there is a simpler solution..Anyone else? M-- - Original Message - From: Ajay Joshi To: axis-user@ws.apache.org Sent: Thursday, October 25, 2007 3:32 PM Subject: Axis stub response to JSP. Hi, How Axis stub (generated thru WSDL2Java) can return response to JSP? I can see response in XML format.. response can be print to browser using servlet in text/html format. . But I am not sure how to convert response to Java object than be displayed to JSP. Regards Ajay
Re: Axis stub response to JSP.
Ajay , The HappyAxis.jsp contains a call to the version.aar service. However, that's using Axiom OM to send/receive the request. You use Axiom to manually construct the xml request (as opposed to generating a stub with wsdl2java). Then you have to manually iterate through the response to get at the data you need. HTH, Giao --- Ajay Joshi [EMAIL PROTECTED] wrote: Hi, How Axis stub (generated thru WSDL2Java) can return response to JSP? I can see response in XML format.. response can be print to browser using servlet in text/html format. . But I am not sure how to convert response to Java object than be displayed to JSP. Regards Ajay __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Axis stub response to JSP.
I guess, you can directly invoke your webservice from JSP using the stub (I haven't tried it though). For Ex: % String endPointURL = http://localhost/webservices/services/MyService; MyServiceStub stub = new MyServiceStub(endPointURL); Employee[] employees = stub.getEmployees(); // getEmployees is a method in your service // Use this employees array to display the data in the jsp. % From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Thursday, October 26, 2000 1:33 PM To: axis-user@ws.apache.org Subject: Re: Axis stub response to JSP. JSP - Servlet(packages WSDLToJava StubClient) including encoding SOAP Request into XML- AxisServlet AxisServlet- XML response back to Servlet - Servlet parses the XML /populates beans/sends textResponse back -JSP (AJAX Div Tag or create ResultsJsp) Im sure there is a simpler solution..Anyone else? M-- - Original Message - From: Ajay Joshi mailto:[EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Thursday, October 25, 2007 3:32 PM Subject: Axis stub response to JSP. Hi, How Axis stub (generated thru WSDL2Java) can return response to JSP? I can see response in XML format.. response can be print to browser using servlet in text/html format. . But I am not sure how to convert response to Java object than be displayed to JSP. Regards Ajay
[Axis2] How to specify wsdl operation so that wsdl2java generates method throwing java.lang.RemoteException
I am migrating to Axis2 1.3 from Axis1. I have existing code that relies on the webservice methods throwing java.lang.RemoteException. Is it possible to specify an operation in the wsdl, such that, wsdl2java generates methods that throw RemoteException? I know that is not the best way to do it - but just for compatibility with existing code. Thanks, Vish.
Why Axis 1.4 over 1.2.1?
Hi Guys, I recently joined this community, and I wish you guys can help me find answers! 1. What are the improvements/features/functionalities added to Axis 1.4(since 1.2.1)? 2. If I am already using Axis 1.2.1 extensively, how would it affect me if I upgrade to 1.4? 3. What are the advantages with 1.4 over 1.2.1? 4. Last but not the least, where can I find the release notes or any documentation? Any help would be highly appreciated. Thanks Abhishek
RE: Possible classloader issue - help needed
Joao, (I don't see where the Xerces jar is--it's not in your AAR. Can't be the Sun JDK 1.5 version, because all of those are prefaced with com.sun.) You might try: 1) Run the JRE with -verbose:class option. See if your class is actually getting loaded. 2) Get a reference to a classloader the is in your code and compare this with the classloader for org.apache.commons.digester.Digester. See if they are the same (using identity ==). This might help: http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html. Note that the web application classloaders are child-first classloaders, so classes loaded by these won't be visible to parent classloaders in the tree. Not sure if the Axis 2.0 classloaders are the same way. Hope this helps, Brennan Spies Sr. Programmer Analyst Shared Application Services (209) 341-6457 -Original Message- From: João Luís Pinto [mailto:[EMAIL PROTECTED] Sent: Thursday, October 25, 2007 1:41 AM To: axis-user@ws.apache.org Subject: Possible classloader issue - help needed Hello, I'm trying to load a commons-chain catalog (from a file inside the service folder) and invoke a chain inside the invokeBusinessLogic method of the MessageReceiver (AbstractInOutMessageReceiver subclass). I'm using the latest release of Axis2 and of Commons-Chain. The service is deployed in Tomcat 6.0.14 in exploded form, and includes the jar dependencies in the service's /lib folder. No jars were added to the axis WEB-INF/lib folder nor to the Tomcat setup. Here is the relevant code snippet: code ConfigParser configParser = new ConfigParser(); Parameter parameter = msgContext.getParameter(Constants.CATALOG_FILE_URL_PARAM); if (parameter == null) { log.error(Parameter + Constants.CATALOG_FILE_URL_PARAM //$NON-NLS-1$ + not found!); //$NON-NLS-1$ } else { URL url = msgContext.getAxisService() .getClassLoader() .getResource(parameter.getValue().toString().trim()); log1.debug(Loading + url); //$NON-NLS-1$ configParser.parse(url); } catalog = CatalogFactory.getInstance().getCatalog(); /code The following exception is thrown in the last line of the else block: java.lang.ClassNotFoundException: org.apache.commons.chain.impl.CatalogBase at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181) at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207) at org.apache.commons.digester.Digester.startElement(Digester.java:1456) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknow n Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootEleme ntHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatch er.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1745) at org.apache.commons.chain.config.ConfigParser.parse(ConfigParser.java:198) The CatalogBase class is of course part of the commons-chain jar included like previously mentioned in the service /lib folder. Does anyone have any idea on what could be going wrong? I can provide any additional information required to make a better judgement if needed. Thank you, João - 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: Min/Max Inclusive
what a GREAT question! in an xsd you know put in this custom definition.. xs:simpleType name=JonHorsman id=JonHorsman xs:annotation xs:appinfo hfp:hasProperty name=bounded value=true/ hfp:hasProperty name=cardinality value=finite/ /xs:appinfo xs:documentation source=http://www.w3.org/TR/xmlschema-2/#long/ /xs:annotation xs:restriction base=xs:integer xs:minInclusive value=-9223372036854775808 id=long.minInclusive/ xs:maxInclusive value=9223372036854775807 id=long.maxInclusive/ /xs:restriction /xs:simpleType - Original Message - From: Jon Horsman [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Thursday, October 25, 2007 4:33 PM Subject: Min/Max Inclusive Hey, I have some POJO classes that I use java2wsdl to generate a wsdl file for me. I'm curious if there is any syntax that can be used in those java classes that will automatically add min/max inclusive to the generated WSDL? Lets say i have a simple class like public class TestClass { private int testInt; public void setTestInt(int i) { testInt = i; } public int getTestInt() { return 0; } } Say that i want the WSDL to insure that setTestInt only accepts values between 0 and 10, is there a way to make a change in TestClass so that min/max Inclusive gets put into the WSDL or do you have to manually tweak the generated WSDL and add some like the following? xs:minInclusive value=0 / xs:maxInclusive value=10 / Thanks, Jon. - 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: Possible classloader issue - help needed
Brennan, (I don't see where the Xerces jar is--it's not in your AAR. Can't be the Sun JDK 1.5 version, because all of those are prefaced with com.sun.) Yes, I'm using Sun JDK 1.5, but I updated Xerces via the endorsed mecanism, because the support for JAXP 1.3 and validation is broken in the Sun released version. I am going to try your sugestions and I will get back with the results. Thanks, João You might try: 1) Run the JRE with -verbose:class option. See if your class is actually getting loaded. 2) Get a reference to a classloader the is in your code and compare this with the classloader for org.apache.commons.digester.Digester. See if they are the same (using identity ==). This might help: http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html. Note that the web application classloaders are child-first classloaders, so classes loaded by these won't be visible to parent classloaders in the tree. Not sure if the Axis 2.0 classloaders are the same way. Hope this helps, Brennan Spies Sr. Programmer Analyst Shared Application Services (209) 341-6457 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN]VTD-XML 2.2
XimpleWare is proud to announce the the release of version 2.2 of VTD-XML, the next generation XML parsers/indexer/slicer/editor. This release significantly expands VTD-XML's ability to slice, split, edit and incrementally update the XML documents. To this end, we introduce the concept of namespace-compensated element fragment. This release also adds VTD+XML index writing capability to the VTD Navigator class. Other enhancements in this release include index size pre-computation, support for HTTP get, and some bug fixes. To download the latest release, please go to http://sourceforge.net/project/showfiles.php?group_id=110612. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SV: [Axis2] Upload .aar
Peter, Please have a look at the Deploying the Service Programmatically section of http://wso2.org/library/2546 regards Charitha Peter A. Kirk wrote: Yes, sorry, I meant programmatically. I want to have a program which automatically uploads .aar files for me. Is that possible? Thanks, Peter -Oprindelig meddelelse- Fra: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] Sendt: 25. oktober 2007 20:53 Til: axis-user@ws.apache.org Emne: Re: [Axis2] Upload .aar Hi Peter , Go to localhost:8080/axis2 then you will see link call Administrator click on that, then it will ask for user name and password give admin as user name and axis2 as the pass word. Once you login to it in the left hand side you will see a link call upload a service . Click on that and from that you can browse your service aar file and upload. Thanks Deepal Hi How do I upload a .aar file (webservice) to Axis2 under Tomcat? I have a webservice which I want to deploy. I can manually copy the .aar file to the Axis2 directory under Tomcat, but that only works if I have access to the filesystem of the machine Tomcat is running on. Otherwise I think there is some sort of upload mechanism which Tomcat or Axis2 supports, but I'm not sure... Thanks, Peter - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Charitha Kankanamge WSO2 inc. Flower Road, Colombo 07 +94 714268070 A bug in the hand is better than one as yet undetected - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Possible classloader issue - help needed
Hello, Here are the results: Code in the MessageReceiver: code log1.debug(Loading + url); //$NON-NLS-1$ log1.debug(AgentPlatformServiceMessageReceiverInOut: //$NON-NLS-1$ + getClass().getClassLoader().toString()); log1.debug(Digester: //$NON-NLS-1$ + new Digester().getClass().getClassLoader().toString()); log1.debug(CatalogBase: //$NON-NLS-1$ + new CatalogBase().getClass() .getClassLoader() .toString()); log1.debug(MessageReceiver CL == Digester CL? //$NON-NLS-1$ + (getClass().getClassLoader() == new Digester().getClass() .getClassLoader() ? true : false)); //$NON-NLS-1$//$NON-NLS-2$ configParser.parse(url); /code Output: [DEBUG] Loading file:/Users/jpinto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2/WEB-INF/services/AgentPlatformService/chain-config.xml [DEBUG] AgentPlatformServiceMessageReceiverInOut: [EMAIL PROTECTED] [DEBUG] Digester: [EMAIL PROTECTED] [DEBUG] CatalogBase: [EMAIL PROTECTED] [DEBUG] MessageReceiver CL == Digester CL? true As for the trace of the VM, aparently both classes from commons-chain and commons-digester are loaded before the exception: (...) [Loaded org.apache.commons.digester.RuleSetBase from file:/Users/jpinto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2/WEB-INF/services/AgentPlatformService/lib/commons-digester-1.8.jar] [Loaded org.apache.commons.chain.config.ConfigRuleSet from file:/Users/jpinto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2/WEB-INF/services/AgentPlatformService/lib/commons-chain-1.1.jar] [Loaded org.apache.commons.chain.config.ConfigCatalogRule from file:/Users/jpinto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2/WEB-INF/services/AgentPlatformService/lib/commons-chain-1.1.jar] [Loaded org.apache.commons.chain.config.ConfigRegisterRule from file:/Users/jpinto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2/WEB-INF/services/AgentPlatformService/lib/commons-chain-1.1.jar] [Loaded org.apache.commons.chain.config.ConfigDefineRule from file:/Users/jpinto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2/WEB-INF/services/AgentPlatformService/lib/commons-chain-1.1.jar] [Loaded org.apache.commons.digester.RulesBase from file:/Users/jpinto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2/WEB-INF/services/AgentPlatformService/lib/commons-digester-1.8.jar] [Loaded org.apache.commons.chain.CatalogFactory from file:/Users/jpinto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2/WEB-INF/services/AgentPlatformService/lib/commons-chain-1.1.jar] [Loaded org.apache.commons.chain.impl.CatalogFactoryBase from file:/Users/jpinto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2/WEB-INF/services/AgentPlatformService/lib/commons-chain-1.1.jar] [Loaded org.apache.log4j.spi.ThrowableInformation from file:/Users/jpinto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2/WEB-INF/lib/log4j-1.2.14.jar] [Loaded org.apache.log4j.spi.VectorWriter from file:/Users/jpinto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2/WEB-INF/lib/log4j-1.2.14.jar] [Loaded org.apache.log4j.spi.NullWriter from file:/Users/jpinto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2/WEB-INF/lib/log4j-1.2.14.jar] [ERROR] Begin event threw exception java.lang.ClassNotFoundException: org.apache.commons.chain.impl.CatalogBase at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204) at org.apache.commons.chain.config.ConfigCatalogRule.begin(ConfigCatalogRule.java:106) at org.apache.commons.digester.Digester.startElement(Digester.java:1453) (...) Any idea? Thanks, João On 10/25/07, Spies, Brennan [EMAIL PROTECTED] wrote: Joao, (I don't see where the Xerces jar is--it's not in your AAR. Can't be the Sun JDK 1.5 version, because all of those are prefaced with com.sun.) You might try: 1) Run the JRE with -verbose:class option. See if your class is actually getting loaded. 2) Get a reference to a classloader the is in your code and compare this with the classloader for org.apache.commons.digester.Digester. See if they are the same (using identity ==). This might help: http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html. Note that the web application classloaders are child-first classloaders, so classes loaded by these won't be visible to parent classloaders in the tree. Not sure if the Axis 2.0 classloaders are the same way. Hope this helps, Brennan Spies Sr. Programmer Analyst Shared Application Services
RE: [Axis2] XmlSchema choice element not supported, other problems
Thanks Ajith. By the way - a surprising revelation was that, after enclosing the choice and inner sequence elements in complextypes, there is no code now generated for those data elements inside them. - Vish. -Original Message- From: Ajith Ranabahu [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 24, 2007 8:53 PM To: axis-user@ws.apache.org Subject: Re: [Axis2] XmlSchema choice element not supported, other problems Hi, it is not a matter whether Schema can support it. All the schema constructs you mentioned are legal. However the Axis2 codegen supports only sequence based unwrapping. What was meant by saying choice is supported is the ability to generate code for it in beans - not for unwrapping (Actually if you think of unwrapping a choice, it would be quite ambiguous. A choice element signifies an alternative and how would you select the parameters for it ?). If you don't want unwrapping ADB will create a bean for you that has all the choice items put at alternatives. i.e you will be given setters/getters for all items but only the last item set will take effect. Ajith On 10/24/07, Pantvaidya, Vishwajit [EMAIL PROTECTED] wrote: Success at last! - it worked when I enclosed the choice element and the embedded sequence element within a complexType. But still this is strange because: - as far as I can see, XmlSchema does not require this - the same wsdl used to work in axis1 Attaching the wsdl that works. I have not yet checked if the code generated is backwardly compatible with the one generated by axis1. I suspect it may not be. From: Pantvaidya, Vishwajit [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 24, 2007 7:36 PM To: axis-user@ws.apache.org Subject: RE: [Axis2] XmlSchema choice element not supported, other problems I did a little more try and error and found that it does not seem to like 2 things: - the choice element - a sequence element within another sequence element Any of these things if present give that error. Attaching the wsdl with the choice and sequence-within-sequence elements commented out from the complex type UserType. This wsdl works. Uncomment one/both these cases and it fails. Should I file a bug? From: Pantvaidya, Vishwajit [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 24, 2007 5:35 PM To: axis-user@ws.apache.org Subject: RE: [Axis2] XmlSchema choice element not supported, other problems Thanks Raghu. I am using Axis2 1.3. So according to the wso2 link below - the choice element should not be an issue. But for me it does not work with -uw option - it gives the exception I mentioned below. Any ideas why this is happening? From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 24, 2007 5:27 PM To: axis-user@ws.apache.org Subject: RE: [Axis2] XmlSchema choice element not supported, other problems Hi Vish, Both the links shown below are referring to different versions of Axis2 http://ws.apache.org/axis2/0_93/adb/adb-howto.html says not supported - From the URL it looks like this link is for version 0.93 of Axis2 http://wso2.org/library/2670 says supported - In the article, it says that it is for version 1.3 of Axis2 So I guess that depends on what version you are using. Thanks Raghu From: Pantvaidya, Vishwajit [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 24, 2007 5:22 PM To: axis-user@ws.apache.org Subject: [Axis2] XmlSchema choice element not supported, other problems I have found the cause of my wsdl2java problems when I use the default ADB binding with the options -o -ss -sd -ssi -f -uw -uri -ns2p - one of the complex types defined in my wsdl has an xmlschema choice element. That with the -uw option gives org.apache.axis2.wsdl.codegen.CodeGenerationException: Unsupported Schema format for unwrapping! found unknown type but expected Element at org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.processXML SchemaSequence(SchemaUnwrapperExtension.java:370) When I tried to find if choice is supported I got conflicting results: http://ws.apache.org/axis2/0_93/adb/adb-howto.html says not supported http://wso2.org/library/2670 says supported So is xmlschema choice tag supported? - Vish. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ajith Ranabahu Reading, after a certain age, diverts the mind too much from its creative pursuits. Any man who reads too much and uses his own brain too little falls into lazy habits of thinking - Albert Einstein - To unsubscribe, e-mail: [EMAIL
RE: [Axis2] Problem with C# client accessing a Web Service
Hi Raghu, Can u put your code (java and C#) here so that we can check and compare them to find out the loop holes. Thanks Best Regards, Sudhir Sharma _ From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Friday, October 26, 2007 4:09 AM To: axis-user@ws.apache.org Subject: [Axis2] Problem with C# client accessing a Web Service Hi, I have a webservice developed using Axis2 1.3. I wrote a Java client to access this webservice and everything is working fine. Today I started writing a C# client to access the same webservice. I've used the wsdl.exe tool that comes with Microsoft Visual Studio to generate the client code and wrote my own class to access methods in the web service. Now when I try to run the C# client, I'm getting the below exception. at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence) at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies) at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence) at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Type type) at System.Web.Services.Protocols.SoapClientType..ctor(Type type) at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor() at WSCSharpClient.ResponsysWSService..ctor() at WSCSharpClient.TestResponsysWS.login() at WSCSharpClient.TestResponsysWS.run() Unable to generate a temporary class (result=1). error CS0030: Cannot convert type 'string[]' to 'string' error CS0029: Cannot implicitly convert type 'string' to 'string[]' Does anyone have an idea what the problem is or am I missing anything else? Thanks in Advance. Raghu