[ http://issues.apache.org/jira/browse/AXIS-2564?page=comments#action_12437465 ] Venkatesh Audinarayanan commented on AXIS-2564: -----------------------------------------------
Since the interface name (BeanService) is same as the package name (BeanService), I am getting the error (symbol : class Order location: interface _59._159._69._152.axis.services.OrderProcessor.BeanService public java.lang.String processOrder(BeanService.Order in0) throws java.rmi. RemoteException;). As per the naming convention, package name is supposed to be be in lower-case. Why is wsdl2java utility not following that convention? If package name is in lower case (beanservice instead of BeanService) or atleast if it starts with a lower-case letter (beanService), it would solve the problem. > Unable to compile classes generated by java org.apache.axis.wsdl.WSDL2Java > -------------------------------------------------------------------------- > > Key: AXIS-2564 > URL: http://issues.apache.org/jira/browse/AXIS-2564 > Project: Apache Axis > Issue Type: Bug > Components: WSDL processing > Affects Versions: 1.2.1 > Environment: Windows > Reporter: Venkatesh Audinarayanan > Attachments: OrderProcessor.xml, orderProcessor.zip > > > I am using Apache Axis 1.2.1 version. I generate the classes from wsdl file > using WSDL2Java tool. > The following packages & class files are created: > 1) _59\_159\_69\_152\axis\services\OrderProcessor > BeanService.java > BeanServiceService.java > BeanServiceServiceLocator.java > OrderProcessorSoapBindingStub.java > 2) BeanService > Order.java > I am able to compile the java bean (Order.java) inside BeanService package. > Then when I try to compile the proxy class (BeanService.java) inside > _59\_159\_69\_152\axis\services\OrderProcessor, I am getting the following > error: > _59\_159\_69\_152\axis\services\OrderProcessor\BeanService.java:11: cannot > find > symbol > symbol : class Order > location: interface _59._159._69._152.axis.services.OrderProcessor.BeanService > public java.lang.String processOrder(BeanService.Order in0) throws > java.rmi. > RemoteException; > ^ > In fact, I am getting similar kind of errors, when I try to compile the other > classes in _59\_159\_69\_152\axis\services\OrderProcessor package. > I noticed that the classes inside > _59\_159\_69\_152\axis\services\OrderProcessor are referring to the Order > class in BeanService package. But they neither use package prefix nor import > the class from the package. -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
