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:59:32 UTC

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

The following comment has been added to this issue:

     Author: Jerome Magnet
    Created: Fri, 1 Oct 2004 11:58 AM
       Body:
It works only if I use xsd:include instead of the xsd:import and with no import from the included xsd file. But again, xsd:include should not be used in this context as the imported schema use a different namespace than the targetnamespace.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1582?page=comments#action_53596

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