Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Error creating a java web service
Error creating a java web service [message #216791] Fri, 04 July 2008 09:24 Go to next message
Eclipse UserFriend
Originally posted by: adrianaverdejo.gmail.com

Hi, I am using the web service wizard to create a java web
service but encountered the following error when the wizard tries to
parse the wsdl:

IWAB0399E Error in generating Java from WSDL java.io.IOException: Type
{http://www.w3.org/2001/XMLSchema}null is referenced but not defined.

IWAB0399E Error in generating Java from WSDL: java.io.IOException: Type
{http://manager.information.myproject.com}Catalogue is referenced but not
defined.

Why is it saying that null is referenced but not defined? Just in
case, below is a snippet of the wsdl generated:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
targetNamespace="http://impl.is.information.myproject.com"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://impl.is.information.myproject.com"
xmlns:intf="http://impl.is.information.myproject.com"
xmlns:tns1="http://handler.information.myproject.com"
xmlns:tns2="http://exceptions.information.myproject.com"
xmlns:tns3="http://manager.information.myproject.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdl:types>
<schema elementFormDefault="qualified"
targetNamespace="http://impl.is.information.myproject.com"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://handler.information.myproject.com"/>
<import namespace="http://exceptions.information.myproject.com"/>
<import namespace="http://xml.apache.org/xml-soap"/>
<import namespace="http://manager.information.myproject.com"/>
<element name="getGroundingService">
<complexType>

On testing the with web service explorer, I get:

IWAB0380E Errors were encountered while validating XML schemas.
XSD: The location '' has not been resolved because the import is unused
XSD: The location '' has not been resolved
XSD: Type reference 'http://manager.information.myproject.com#Manager' is
unresolved
XSD: The location '' has not been resolved because the import is unused
XSD: The location '' has not been resolved because the import is unused
XSD: The location '' has not been resolved because the import is unused
XSD: The location '' has not been resolved because the import is unused
XSD: The location '' has not been resolved because the import is unused
XSD: The location '' has not been resolved because the import is unused


Is it because the Manager.java cannot be found? In the
reference path, I have checked that the Manager.java is in
there.
How can I solve this?

Thanks for helping.
Adriana
Re: Error creating a java web service [message #216800 is a reply to message #216791] Fri, 04 July 2008 16:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

No need to post it twice. It may be a while before somebody gets back
to you with a response, it's a holiday weekend in the US and that is
where the vast majority of committers for Web Tools are located.

Dave

Adriana wrote:
> Hi, I am using the web service wizard to create a java web
> service but encountered the following error when the wizard tries to
> parse the wsdl:
>
> IWAB0399E Error in generating Java from WSDL java.io.IOException: Type
> {http://www.w3.org/2001/XMLSchema}null is referenced but not defined.
>
> IWAB0399E Error in generating Java from WSDL: java.io.IOException: Type
> {http://manager.information.myproject.com}Catalogue is referenced but
> not defined.
>
> Why is it saying that null is referenced but not defined? Just in
> case, below is a snippet of the wsdl generated:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions
> targetNamespace="http://impl.is.information.myproject.com"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:impl="http://impl.is.information.myproject.com"
> xmlns:intf="http://impl.is.information.myproject.com"
> xmlns:tns1="http://handler.information.myproject.com"
> xmlns:tns2="http://exceptions.information.myproject.com"
> xmlns:tns3="http://manager.information.myproject.com"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <!--WSDL created by Apache Axis version: 1.4
> Built on Apr 22, 2006 (06:55:48 PDT)-->
> <wsdl:types>
> <schema elementFormDefault="qualified"
> targetNamespace="http://impl.is.information.myproject.com"
> xmlns="http://www.w3.org/2001/XMLSchema">
> <import namespace="http://handler.information.myproject.com"/>
> <import namespace="http://exceptions.information.myproject.com"/>
> <import namespace="http://xml.apache.org/xml-soap"/>
> <import namespace="http://manager.information.myproject.com"/>
> <element name="getGroundingService">
> <complexType>
>
> On testing the with web service explorer, I get:
>
> IWAB0380E Errors were encountered while validating XML schemas.
> XSD: The location '' has not been resolved because the import is unused
> XSD: The location '' has not been resolved
> XSD: Type reference 'http://manager.information.myproject.com#Manager'
> is unresolved
> XSD: The location '' has not been resolved because the import is unused
> XSD: The location '' has not been resolved because the import is unused
> XSD: The location '' has not been resolved because the import is unused
> XSD: The location '' has not been resolved because the import is unused
> XSD: The location '' has not been resolved because the import is unused
> XSD: The location '' has not been resolved because the import is unused
>
>
> Is it because the Manager.java cannot be found? In the
> reference path, I have checked that the Manager.java is in
> there.
> How can I solve this?
>
> Thanks for helping.
> Adriana
>
Re: Error creating a java web service [message #217562 is a reply to message #216791] Sun, 13 July 2008 13:18 Go to previous message
Kathy Chan is currently offline Kathy ChanFriend
Messages: 93
Registered: July 2009
Member
Hi Adriana,

The error "Error in generating Java from WSDL java.io.IOException" is
generated by the Axis WSDL2Java emitter from Apache Axis. The error seems
to point to some problem with the WSDL file. It could be a problem with the
WSDL file itself or problem with the emitter. Does the WSDL file validates
OK (you can invoke the WSDL validator by right-clicking on the WSDL file and
select validate)? If the WSDL file seems fine, you could also try to use
the Axis WSDL2Java command line to see if you get the same problem. If so,
you could open a JIRA on Apache Axis at:

http://ws.apache.org/axis/bugs.html

You can get instruction on how to use the WSDL2Java command line from Apache
Axis:

http://ws.apache.org/axis/

For your information, the version of Apache Axis runtime used in WTP since
WTP 1.5 is Axis v1.4.

The error you are getting with the Web Services Explorer seems to point to
the fact that you have some unused imports in the WSDL file. You should
removed the unused imports. Once you've removed all unused imports, the
errors should go away.

If you still run into problem with using WTP to generate Web service, please
open a defect at:

https://bugs.eclipse.org/bugs/

Regards,
Kathy Chan


"Adriana" <adrianaverdejo@gmail.com> wrote in message
news:960f93cf9d4d76fc83a4b1e49abf385b$1@www.eclipse.org...
> Hi, I am using the web service wizard to create a java web
> service but encountered the following error when the wizard tries to
> parse the wsdl:
>
> IWAB0399E Error in generating Java from WSDL java.io.IOException: Type
> {http://www.w3.org/2001/XMLSchema}null is referenced but not defined.
>
> IWAB0399E Error in generating Java from WSDL: java.io.IOException: Type
> {http://manager.information.myproject.com}Catalogue is referenced but not
> defined.
>
> Why is it saying that null is referenced but not defined? Just in
> case, below is a snippet of the wsdl generated:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions
> targetNamespace="http://impl.is.information.myproject.com"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:impl="http://impl.is.information.myproject.com"
> xmlns:intf="http://impl.is.information.myproject.com"
> xmlns:tns1="http://handler.information.myproject.com"
> xmlns:tns2="http://exceptions.information.myproject.com"
> xmlns:tns3="http://manager.information.myproject.com"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <!--WSDL created by Apache Axis version: 1.4
> Built on Apr 22, 2006 (06:55:48 PDT)-->
> <wsdl:types>
> <schema elementFormDefault="qualified"
> targetNamespace="http://impl.is.information.myproject.com"
> xmlns="http://www.w3.org/2001/XMLSchema">
> <import namespace="http://handler.information.myproject.com"/>
> <import namespace="http://exceptions.information.myproject.com"/>
> <import namespace="http://xml.apache.org/xml-soap"/>
> <import namespace="http://manager.information.myproject.com"/>
> <element name="getGroundingService">
> <complexType>
>
> On testing the with web service explorer, I get:
>
> IWAB0380E Errors were encountered while validating XML schemas.
> XSD: The location '' has not been resolved because the import is unused
> XSD: The location '' has not been resolved
> XSD: Type reference 'http://manager.information.myproject.com#Manager' is
> unresolved
> XSD: The location '' has not been resolved because the import is unused
> XSD: The location '' has not been resolved because the import is unused
> XSD: The location '' has not been resolved because the import is unused
> XSD: The location '' has not been resolved because the import is unused
> XSD: The location '' has not been resolved because the import is unused
> XSD: The location '' has not been resolved because the import is unused
>
>
> Is it because the Manager.java cannot be found? In the
> reference path, I have checked that the Manager.java is in
> there.
> How can I solve this?
>
> Thanks for helping.
> Adriana
>
Previous Topic:JSDT simple question
Next Topic:3.3 / Ganymed: can't create Tomcat 5.5 server configuration
Goto Forum:
  


Current Time: Wed Apr 24 16:54:53 GMT 2024

Powered by FUDForum. Page generated in 0.03512 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top