Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 59598 invoked from network); 13 Apr 2004 06:47:16 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 13 Apr 2004 06:47:16 -0000 Received: (qmail 68228 invoked by uid 500); 13 Apr 2004 06:46:48 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 68206 invoked by uid 500); 13 Apr 2004 06:46:48 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 68197 invoked from network); 13 Apr 2004 06:46:48 -0000 Received: from unknown (HELO exchange.sun.com) (192.18.33.10) by daedalus.apache.org with SMTP; 13 Apr 2004 06:46:48 -0000 Received: (qmail 27989 invoked from network); 13 Apr 2004 06:47:43 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 13 Apr 2004 06:47:43 -0000 Message-ID: <356287556.1081838863281.JavaMail.apache@nagoya> Date: Mon, 12 Apr 2004 23:47:43 -0700 (PDT) From: jira@apache.org To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS-1305) Java2WSDL regression in 1.2 beta In-Reply-To: <2106544171.1081838743485.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The following issue has been updated: Updater: Shantanu Sen (mailto:ssen@pacbell.net) Date: Mon, 12 Apr 2004 11:46 PM Comment: The attached zip contains the source and classes used to run the test. Unzip the file and use the Java2WSDL as specified in the problem description. Changes: Attachment changed to j2wsdltest.zip --------------------------------------------------------------------- For a full history of the issue, see: http://issues.apache.org/jira/browse/AXIS-1305?page=history --------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/AXIS-1305 Here is an overview of the issue: --------------------------------------------------------------------- Key: AXIS-1305 Summary: Java2WSDL regression in 1.2 beta Type: Bug Status: Unassigned Priority: Major Project: Axis Components: WSDL processing Versions: 1.2 Beta Assignee: Reporter: Shantanu Sen Created: Mon, 12 Apr 2004 11:44 PM Updated: Mon, 12 Apr 2004 11:46 PM Environment: Windows 2000, jdk 1.4.2_02 Description: Try running Java2WSDL on a class which uses a class that is not bean compatible. On Axis1.1, it creates the wsdl with a warning. On Acis1.2 beta it aborts with a stack trace. Example: The following TradeItem class uses class ItemInfo which does not have a default constructor. public class TradeItem { public TradeStatus buy(ItemInfo itemInfo){ TradeStatus status = new TradeStatus(itemInfo); return status; } } Running on Axis 1.1 results in the following: C:\play\sectest>axjwsd -y document -u literal -l http://localhost:8080/axis/Trad eItem TradeItem C:\play\sectest>java org.apache.axis.wsdl.Java2WSDL -y document -u literal -l http://localhost:8080/axis/TradeItem TradeItem Apr 12, 2004 11:41:35 PM org.apache.axis.wsdl.fromJava.Types isBeanCompatible WARNING: The class ItemInfo does not contain a default constructor, which is a requirement for a bean class. The class cannot be converted into an xml schema type. An xml schema anyType will be used to define this class in the wsdl file. Apr 12, 2004 11:41:35 PM org.apache.axis.wsdl.fromJava.Types isBeanCompatible WARNING: The class TradeStatus does not contain a default constructor, which is a requirement for a bean class. The class cannot be converted into an xml schema type. An xml schema anyType will be used to define this class in the wsdl file. When running the same on Axis 1.2 beta the following is seen C:\play\sectest>java org.apache.axis.wsdl.Java2WSDL -y document -u literal -l ht tp://localhost:8080/axis/TradeItem TradeItem log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR esourceBundle). log4j:WARN Please initialize the log4j system properly. AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: Please register a typemapping/beanmapping for 'ItemInfo' faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: Please register a typemapping/beanmapping for 'ItemInfo' faultActor: faultNode: faultDetail: Please register a typemapping/beanmapping for 'ItemInfo' at org.apache.axis.wsdl.fromJava.Emitter.writePartToMessage(Emitter.java :1810) at org.apache.axis.wsdl.fromJava.Emitter.writeRequestMessage(Emitter.jav a:1386) at org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:1034 ) at org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:1005 ) at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:459) at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:310) at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:405) at org.apache.axis.wsdl.Java2WSDL.run(Java2WSDL.java:583) at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:629) Please register a typemapping/beanmapping for 'ItemInfo' at org.apache.axis.wsdl.fromJava.Emitter.writePartToMessage(Emitter.java :1810) at org.apache.axis.wsdl.fromJava.Emitter.writeRequestMessage(Emitter.jav a:1386) at org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:1034 ) at org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:1005 ) at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:459) at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:310) at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:405) at org.apache.axis.wsdl.Java2WSDL.run(Java2WSDL.java:583) at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:629) C:\play\sectest> --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira