You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ax...@ws.apache.org on 2004/10/01 20:37:32 UTC

[jira] Updated: (AXIS-1582) WSDL2Java fails to process xsd:import

The following issue has been updated:

    Updater: Jerome Magnet (mailto:jeromem@nortelnetworks.com)
       Date: Fri, 1 Oct 2004 11:37 AM
    Comment:
I have two levels of schema imports from the <wsdl:types>
See in attached ZIP.

    Changes:
             Attachment changed to wsdl.zip
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/AXIS-1582?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1582

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1582
    Summary: WSDL2Java fails to process xsd:import
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             current (nightly)

   Assignee: 
   Reporter: Jerome Magnet

    Created: Fri, 1 Oct 2004 11:26 AM
    Updated: Fri, 1 Oct 2004 11:37 AM
Environment: Windows 2000, ant1.6.0, j2sdk1.4.2_02

Description:
An imported definition is not found during execution of WSDL2Java.
The entire content of <xsd:schema> (in <wsdl:types>) is imported from an external XSD file, which itself imports other schemas with different namespace.

See details of exception below:
D:\Jeromem\wsdl\build.xml:32: Error while processing WSDL in Wsdl2javaAntTask for D:\Jeromem\wsdl/NotificationService.wsdl
	at org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask.execute(Wsdl2javaAntTask.java:272)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
	at org.apache.tools.ant.Task.perform(Task.java:401)
	at org.apache.tools.ant.Target.execute(Target.java:338)
	at org.apache.tools.ant.Target.performTasks(Target.java:365)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
	at org.apache.tools.ant.Main.runBuild(Main.java:669)
	at org.apache.tools.ant.Main.startAnt(Main.java:220)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
Caused by: java.io.IOException: Element {http://www.tmforum.org/schema/MTOSI/NotificationService/v1/}NotifyRequest is referenced but not defined.
	at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:657)
	at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:532)
	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:506)
	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:483)
	at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:356)
	at java.lang.Thread.run(Thread.java:534)
--- Nested Exception ---
java.io.IOException: Element {http://www.tmforum.org/schema/MTOSI/NotificationService/v1/}NotifyRequest is referenced but not defined.
	at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:657)
	at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:532)
	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:506)
	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:483)
	at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:356)
	at java.lang.Thread.run(Thread.java:534)


---------------------------------------------------------------------
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