Re: WSDL2Java http://util.java
No Ollie, it's more than that. wsdl2java is expecting to find a complex type definition with a name of Properties in a schema with a targetNamespace of http://util.java;. You can't use namespace declarations and schema imports to import JAR files. All elements and complex types must be defined using XML Schema. Anne On 6/21/05, Michael Oliver [EMAIL PROTECTED] wrote: I am trying to run WSDL2Java I won't post the WSDL file here unless someone thinks I should. I don't think the problem is with the WSDL file itself. When I run WSDL2Java from ant, both with an ant task and with an ant Java task I am getting an error similar to: [axis-wsdl2java] java.io.IOException: Type {http://util.java}Properties is referenced but not defined. [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:663) [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543) [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:516) [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:493) [axis-wsdl2java] at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360) [axis-wsdl2java] at java.lang.Thread.run(Unknown Source) BUILD FAILED: C:\Java\eclipse\workspace\AlariusUser\ant\build.xml:76: WSDL processing error for C:\Java\eclipse\workspace\AlariusUser\WebContent\pages\AlariusUser.wsdl : Type {http://util.java}Properties is referenced but not defined. I am assuming the part of the wsdl it is looking at is wsdl:definitions targetNamespace=urn:http://alariussystemsllc.com/AlariusUserServices/; xmlns:apachesoap=http://xml.apache.org/xml-soap; xmlns:impl=urn:http://alariussystemsllc.com/AlariusUserServices/; xmlns:intf=urn:http://alariussystemsllc.com/AlariusUserServices/; xmlns:tns1=http://contentclient.alariusj.com; xmlns:tns2=http://util.java; xmlns:tns3=http://action.struts.apache.org; xmlns:tns4=http://upload.struts.apache.org; xmlns:tns5=http://registries.alariusj.com; xmlns:tns6=http://io.java; xmlns:tns7=http://httpclient.commons.apache.org; xmlns:tns8=http://lib.webdav.apache.org; xmlns:tns9=http://user.alariusj.com; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:wsdlsoap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; and complexType name=AJCSConfig sequence element name=configuration nillable=true type=tns2:Properties/ /sequence /complexType and this all points to having rt.jar in the classpath so it can find java.util.Properties, right? So what do I do to get this working? Or what more do you need to know? WSDL? Ollie Loosely Coupled Mike Oliver CTO Alarius Systems LLC 6800 E. Lake Mead Blvd Apt 1096 Las Vegas, NV 89156 [EMAIL PROTECTED] [EMAIL PROTECTED] IM: [EMAIL PROTECTED] http://www.alariussystems.com/ tel: fax: mobile: (702)643-7425 (702)974-0341 (518)378-6154 Add me to your address book... Want a signature like this?
RE: WSDL2Java http://util.java
Thanks Anne, The problem is simple enough, I used Java2WSDL to generate the wsdl file from a class that had a getter and setter for java.util.Properties and I took a snippet from the wsdl and showed it in my original message. Then when I ran WSDL2Java to get the server side sources, I got the error message related to java.util.Properties. So, it isn't enough to have java.util.Properties in the classpath, got it. I guess I was presuming too much about the generated wsdl. What DOES it need? One would think that WSDL2Java would be able to consume a Java2WSDL generated file that was unmodified and in the same environment. Is there something in the Java2WSDL task I need to change? The current Java2WSDL task looks like axis-java2wsdl classname=com.ajcs.services.AJCCUserServices style= DOCUMENT namespace= urn:http://alariussystemsllc.com/AlariusUser/; location= http://localhost:8080/AlariusUser/services/AlariusUserServices; output=${local.wsdl} classpath pathelement path =${webinf.dir}/classes/ /classpath classpath refid=EPCLASSPATH/ /axis-java2wsdl I suppose that it isn't enough that java.util.Properties is serializable, and that it is still too complex to be interoperable and that we need to provide a mapping to support it when we generate the wsdl? Or another option would be to simplify the AlariusUserServices? Michael Oliver CTO Alarius Systems LLC 6800 E. Lake Mead Blvd, #1096 Las Vegas, NV 89156 Phone:(702)643-7425 Fax:(702)974-0341 *Note new email changed from [EMAIL PROTECTED] -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 11:08 PM To: axis-user@ws.apache.org; [EMAIL PROTECTED] Subject: Re: WSDL2Java http://util.java No Ollie, it's more than that. wsdl2java is expecting to find a complex type definition with a name of Properties in a schema with a targetNamespace of http://util.java;. You can't use namespace declarations and schema imports to import JAR files. All elements and complex types must be defined using XML Schema. Anne On 6/21/05, Michael Oliver [EMAIL PROTECTED] wrote: I am trying to run WSDL2Java I won't post the WSDL file here unless someone thinks I should. I don't think the problem is with the WSDL file itself. When I run WSDL2Java from ant, both with an ant task and with an ant Java task I am getting an error similar to: [axis-wsdl2java] java.io.IOException: Type {http://util.java}Properties is referenced but not defined. [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.j ava:663) [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543) [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:516) [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:493) [axis-wsdl2java] at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360) [axis-wsdl2java] at java.lang.Thread.run(Unknown Source) BUILD FAILED: C:\Java\eclipse\workspace\AlariusUser\ant\build.xml:76: WSDL processing error for C:\Java\eclipse\workspace\AlariusUser\WebContent\pages\AlariusUser.wsdl : Type {http://util.java}Properties is referenced but not defined. I am assuming the part of the wsdl it is looking at is wsdl:definitions targetNamespace=urn:http://alariussystemsllc.com/AlariusUserServices/; xmlns:apachesoap=http://xml.apache.org/xml-soap; xmlns:impl=urn:http://alariussystemsllc.com/AlariusUserServices/; xmlns:intf=urn:http://alariussystemsllc.com/AlariusUserServices/; xmlns:tns1=http://contentclient.alariusj.com; xmlns:tns2=http://util.java; xmlns:tns3=http://action.struts.apache.org; xmlns:tns4=http://upload.struts.apache.org; xmlns:tns5=http://registries.alariusj.com; xmlns:tns6=http://io.java; xmlns:tns7=http://httpclient.commons.apache.org; xmlns:tns8=http://lib.webdav.apache.org; xmlns:tns9=http://user.alariusj.com; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:wsdlsoap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; and complexType name=AJCSConfig sequence element name=configuration nillable=true type=tns2:Properties/ /sequence /complexType and this all points to having rt.jar in the classpath so it can find java.util.Properties, right? So what do I do to get this working? Or what more do you need to know? WSDL? Ollie Loosely Coupled Mike Oliver CTO Alarius Systems LLC 6800 E. Lake Mead Blvd Apt 1096 Las Vegas, NV 89156 [EMAIL PROTECTED] [EMAIL PROTECTED] IM: [EMAIL PROTECTED] http://www.alariussystems.com
Re: WSDL2Java http://util.java
Actually, JAX-RPC doesn't permit you to map java.util.Properties to XML. You should wrap this class with a JavaBean to make it work. Anne On 6/22/05, Michael Oliver [EMAIL PROTECTED] wrote: Thanks Anne, The problem is simple enough, I used Java2WSDL to generate the wsdl file from a class that had a getter and setter for java.util.Properties and I took a snippet from the wsdl and showed it in my original message. Then when I ran WSDL2Java to get the server side sources, I got the error message related to java.util.Properties. So, it isn't enough to have java.util.Properties in the classpath, got it. I guess I was presuming too much about the generated wsdl. What DOES it need? One would think that WSDL2Java would be able to consume a Java2WSDL generated file that was unmodified and in the same environment. Is there something in the Java2WSDL task I need to change? The current Java2WSDL task looks like axis-java2wsdl classname=com.ajcs.services.AJCCUserServices style= DOCUMENT namespace= urn:http://alariussystemsllc.com/AlariusUser/; location= http://localhost:8080/AlariusUser/services/AlariusUserServices; output=${local.wsdl} classpath pathelement path =${webinf.dir}/classes/ /classpath classpath refid=EPCLASSPATH/ /axis-java2wsdl I suppose that it isn't enough that java.util.Properties is serializable, and that it is still too complex to be interoperable and that we need to provide a mapping to support it when we generate the wsdl? Or another option would be to simplify the AlariusUserServices? Michael Oliver CTO Alarius Systems LLC 6800 E. Lake Mead Blvd, #1096 Las Vegas, NV 89156 Phone:(702)643-7425 Fax:(702)974-0341 *Note new email changed from [EMAIL PROTECTED] -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 11:08 PM To: axis-user@ws.apache.org; [EMAIL PROTECTED] Subject: Re: WSDL2Java http://util.java No Ollie, it's more than that. wsdl2java is expecting to find a complex type definition with a name of Properties in a schema with a targetNamespace of http://util.java;. You can't use namespace declarations and schema imports to import JAR files. All elements and complex types must be defined using XML Schema. Anne On 6/21/05, Michael Oliver [EMAIL PROTECTED] wrote: I am trying to run WSDL2Java I won't post the WSDL file here unless someone thinks I should. I don't think the problem is with the WSDL file itself. When I run WSDL2Java from ant, both with an ant task and with an ant Java task I am getting an error similar to: [axis-wsdl2java] java.io.IOException: Type {http://util.java}Properties is referenced but not defined. [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.j ava:663) [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543) [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:516) [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:493) [axis-wsdl2java] at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360) [axis-wsdl2java] at java.lang.Thread.run(Unknown Source) BUILD FAILED: C:\Java\eclipse\workspace\AlariusUser\ant\build.xml:76: WSDL processing error for C:\Java\eclipse\workspace\AlariusUser\WebContent\pages\AlariusUser.wsdl : Type {http://util.java}Properties is referenced but not defined. I am assuming the part of the wsdl it is looking at is wsdl:definitions targetNamespace=urn:http://alariussystemsllc.com/AlariusUserServices/; xmlns:apachesoap=http://xml.apache.org/xml-soap; xmlns:impl=urn:http://alariussystemsllc.com/AlariusUserServices/; xmlns:intf=urn:http://alariussystemsllc.com/AlariusUserServices/; xmlns:tns1=http://contentclient.alariusj.com; xmlns:tns2=http://util.java; xmlns:tns3=http://action.struts.apache.org; xmlns:tns4=http://upload.struts.apache.org; xmlns:tns5=http://registries.alariusj.com; xmlns:tns6=http://io.java; xmlns:tns7=http://httpclient.commons.apache.org; xmlns:tns8=http://lib.webdav.apache.org; xmlns:tns9=http://user.alariusj.com; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:wsdlsoap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; and complexType name=AJCSConfig sequence element name=configuration nillable=true type=tns2:Properties/ /sequence /complexType and this all points to having rt.jar in the classpath so it can find java.util.Properties, right? So what do I do to get this working? Or what more do you need to know? WSDL? Ollie Loosely Coupled Mike
WSDL2Java http://util.java
I am trying to run WSDL2Java I wont post the WSDL file here unless someone thinks I should. I dont think the problem is with the WSDL file itself. When I run WSDL2Java from ant, both with an ant task and with an ant Java task I am getting an error similar to: [axis-wsdl2java] java.io.IOException: Type {http://util.java}Properties is referenced but not defined. [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:663) [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543) [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:516) [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:493) [axis-wsdl2java] at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360) [axis-wsdl2java] at java.lang.Thread.run(Unknown Source) BUILD FAILED: C:\Java\eclipse\workspace\AlariusUser\ant\build.xml:76: WSDL processing error for C:\Java\eclipse\workspace\AlariusUser\WebContent\pages\AlariusUser.wsdl : Type {http://util.java}Properties is referenced but not defined. I am assuming the part of the wsdl it is looking at is wsdl:definitions targetNamespace=urn:http://alariussystemsllc.com/AlariusUserServices/ xmlns:apachesoap=http://xml.apache.org/xml-soap xmlns:impl=urn:http://alariussystemsllc.com/AlariusUserServices/ xmlns:intf=urn:http://alariussystemsllc.com/AlariusUserServices/ xmlns:tns1=http://contentclient.alariusj.com xmlns:tns2=http://util.java xmlns:tns3=http://action.struts.apache.org xmlns:tns4=http://upload.struts.apache.org xmlns:tns5=http://registries.alariusj.com xmlns:tns6=http://io.java xmlns:tns7=http://httpclient.commons.apache.org xmlns:tns8=http://lib.webdav.apache.org xmlns:tns9=http://user.alariusj.com xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/ xmlns:wsdlsoap=http://schemas.xmlsoap.org/wsdl/soap/ xmlns:xsd=http://www.w3.org/2001/XMLSchema and complexType name=AJCSConfig sequence element name=configuration nillable=true type=tns2:Properties/ /sequence /complexType and this all points to having rt.jar in the classpath so it can find java.util.Properties, right? So what do I do to get this working? Or what more do you need to know? WSDL? Ollie Loosely Coupled Mike Oliver CTO Alarius Systems LLC 6800 E. Lake Mead Blvd Apt 1096 Las Vegas, NV 89156 [EMAIL PROTECTED] [EMAIL PROTECTED] IM: [EMAIL PROTECTED] http://www.alariussystems.com/ tel: fax: mobile: (702)643-7425 (702)974-0341 (518)378-6154 Add me to your address book... Want a signature like this?