You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Wayne Richards <wt...@yahoo.com.au> on 2005/05/28 06:18:23 UTC

Exception on wsdl2java

Hi all,
I have a problem in trying to generate a client using the attached wsdl file.
I don't understand the message or how to fix the problem. Has anyone had this problemm before and is able to give some advice?
 
the error is:
 

C:\workspace\axisNDNHandlers\src>wsdl2java
C:\workspace\axisNDNHandlers\src>java -cp C:\Tomcat\webapps\axis\WEB-INF\lib\act
ivation.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\axis.jar;C:\Tomcat\webapps\axis\W
EB-INF\lib\commons-logging-1.0.4.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-
discovery-0.2.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\JAXRPC.JAR;C:\Tomcat\webapp
s\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\mail.jar;C
:\Tomcat\webapps\axis\WEB-INF\lib\saaj.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\ws
dl4j-1.5.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\xmlsec-1.2.1.jar;C:\Tomcat\web
apps\axis\WEB-INF\lib\commons-attributes-api-2.1.jar;C:\Tomcat\webapps\axis\WEB-
INF\lib\commons-collections-3.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-c
onfiguration-1.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-lang-2.0.jar;C:\
Tomcat\webapps\axis\WEB-INF\lib\commons-math-1.0.jar;C:\Tomcat\webapps\axis\WEB-
INF\lib\jakarta-regexp-1.3.jar;. org.apache.axis.wsdl.WSDL2Java "NDNGATEWAY.wsdl
"
log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR
esourceBundle).
log4j:WARN Please initialize the log4j system properly.
java.io.IOException: Type {http://sax.xml.org}Attributes is referenced but not d
efined.
        at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol
Table.java:663)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543
)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:516)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:493)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360)
        at java.lang.Thread.run(Unknown Source)
C:\workspace\axisNDNHandlers\src>

Any help appreciated
Regards
Wayne



---------------------------------
Find local movie times and trailers on Yahoo! Movies.

Re: Exception on wsdl2java

Posted by Jeff <je...@cogentlogic.com>.
Oops, wrong thread, sorry! I'm the loony using WSDL2Java not Java2WSDL!

Jeff


----- Original Message ----- 
From: "Jeff" <je...@cogentlogic.com>
To: <ax...@ws.apache.org>; "Anne Thomas Manes" <at...@gmail.com>
Sent: Saturday, May 28, 2005 10:08 AM
Subject: Re: Exception on wsdl2java


> Oh, blimey...yes, I am using the message style interface, Anne. Everything
> worked fine under Axis 1.1...actually not quite everything: there is an
> entirely unrelated problem that Axis 1.1 has, so I moved to Axis 1.2 which
> made that problem go away, the trouble is that I now have the 'message
style
> interface' problem. I guess I should have RTFM but I didn't, I just
assumed
> that Axis 1.2 would be a superset of Axis 1.1, as it were.
>
> Jeff
>
>
> ----- Original Message ----- 
> From: "Anne Thomas Manes" <at...@gmail.com>
> To: <ax...@ws.apache.org>
> Sent: Saturday, May 28, 2005 9:55 AM
> Subject: Re: Exception on wsdl2java
>
>
> What's the code you used to generate this WSDL?
>
> I get the sense that you're using the message style interface, in
> which case java2wsdl has absolutely no sense of what the appropriate
> WSDL should look like, and you can't expect the utility to work
> properly. When using the message style interface, you must handcraft
> your WSDL.
>
> Anne
>
> On 5/28/05, Jason Liu <li...@hotmail.com> wrote:
> >
> >           Anne is correct, there are some other namespace definitions
such
> > as: xmlns:tns3="http://dom.w3c.org", there is no such schema found at
that
> > URL, so it will error out too. I ran BEA's clientgen against the wsdl
and
> it
> > complained about that namespace.
> >
> >           Is axis 1.2 too buggy?
> >
> >
> >
> > >From: Anne Thomas Manes <at...@gmail.com>
> > >Reply-To: Anne Thomas Manes <at...@gmail.com>
> > >To: axis-user@ws.apache.org
> > >Subject: Re: Exception on wsdl2java
> > >Date: Sat, 28 May 2005 09:19:20 -0400
> > >
> > >Wayne,
> > >
> > >Your error is being caused by this type reference:
> > >     <element name="completeAttributes" nillable="true"
> > >type="tns6:Attributes" />
> > >in the definition of the MessageElement type.
> > >
> > >tns6 is declared as:
> > >      xmlns:tns6="http://sax.xml.org".
> > >
> > >This namespace has been imported:
> > >       <import namespace="http://sax.xml.org" />
> > >but you don't provide a schemaLocation, and there is no schema at the
> > >specified URI.Therefore wsdl2java doesn't know how to process the
> > >tns6:Attributes type.
> > >
> > >Anne
> > >
> > >On 5/28/05, Wayne Richards <wt...@yahoo.com.au> wrote:
> > > > Hi all,
> > > > I have a problem in trying to generate a client using the attached
> wsdl
> > > > file.
> > > > I don't understand the message or how to fix the problem. Has anyone
> had
> > > > this problemm before and is able to give some advice?
> > > >
> > > > the error is:
> > > >
> > > >
> > > > C:\workspace\axisNDNHandlers\src>wsdl2java
> > > > C:\workspace\axisNDNHandlers\src>java -cp
> > > > C:\Tomcat\webapps\axis\WEB-INF\lib\act
> > > >
> >
>
>ivation.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\axis.jar;C:\Tomcat\webapps\a
> xis\W
> > > >
> >
>
>EB-INF\lib\commons-logging-1.0.4.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\com
> mons-
> > > >
> >
>
>discovery-0.2.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\JAXRPC.JAR;C:\Tomcat\w
> ebapp
> > > >
> >
>
>s\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\mail.
> jar;C
> > > >
> >
>
>:\Tomcat\webapps\axis\WEB-INF\lib\saaj.jar;C:\Tomcat\webapps\axis\WEB-INF\l
> ib\ws
> > > >
> >
>
>dl4j-1.5.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\xmlsec-1.2.1.jar;C:\Tomca
> t\web
> > > >
> >
>
>apps\axis\WEB-INF\lib\commons-attributes-api-2.1.jar;C:\Tomcat\webapps\axis
> \WEB-
> > > >
> >
>
>INF\lib\commons-collections-3.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\comm
> ons-c
> > > >
> >
>
>onfiguration-1.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-lang-2.0.ja
> r;C:\
> > > >
> >
>
>Tomcat\webapps\axis\WEB-INF\lib\commons-math-1.0.jar;C:\Tomcat\webapps\axis
> \WEB-
> > > > INF\lib\jakarta-regexp-1.3.jar;. org.apache.axis.wsdl.WSDL2Java
> > > > "NDNGATEWAY.wsdl
> > > > "
> > > > log4j:WARN No appenders could be found for logger
> > > > (org.apache.axis.i18n.ProjectR
> > > > esourceBundle).
> > > > log4j:WARN Please initialize the log4j system properly.
> > > > java.io.IOException: Type {http://sax.xml.org}Attributes is
referenced
> > >but
> > > > not d
> > > > efined.
> > > >         at
> > > >
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol
> > > > Table.java:663)
> > > >         at
> > > >
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543
> > > > )
> > > >         at
> > > >
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
> > > > a:516)
> > > >         at
> > > >
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
> > > > a:493)
> > > >         at
> > > > org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360)
> > > >         at java.lang.Thread.run(Unknown Source)
> > > > C:\workspace\axisNDNHandlers\src>
> > > >
> > > > Any help appreciated
> > > > Regards
> > > > Wayne
> > > >
> > > >
> > > > ________________________________
> > > >  Find local movie times and trailers on Yahoo! Movies.
> > > >
> > > >
> > > >
> > > >
> >
> >
> >


Re: Exception on wsdl2java

Posted by Jeff <je...@cogentlogic.com>.
Oh, blimey...yes, I am using the message style interface, Anne. Everything
worked fine under Axis 1.1...actually not quite everything: there is an
entirely unrelated problem that Axis 1.1 has, so I moved to Axis 1.2 which
made that problem go away, the trouble is that I now have the 'message style
interface' problem. I guess I should have RTFM but I didn't, I just assumed
that Axis 1.2 would be a superset of Axis 1.1, as it were.

Jeff


----- Original Message ----- 
From: "Anne Thomas Manes" <at...@gmail.com>
To: <ax...@ws.apache.org>
Sent: Saturday, May 28, 2005 9:55 AM
Subject: Re: Exception on wsdl2java


What's the code you used to generate this WSDL?

I get the sense that you're using the message style interface, in
which case java2wsdl has absolutely no sense of what the appropriate
WSDL should look like, and you can't expect the utility to work
properly. When using the message style interface, you must handcraft
your WSDL.

Anne

On 5/28/05, Jason Liu <li...@hotmail.com> wrote:
>
>           Anne is correct, there are some other namespace definitions such
> as: xmlns:tns3="http://dom.w3c.org", there is no such schema found at that
> URL, so it will error out too. I ran BEA's clientgen against the wsdl and
it
> complained about that namespace.
>
>           Is axis 1.2 too buggy?
>
>
>
> >From: Anne Thomas Manes <at...@gmail.com>
> >Reply-To: Anne Thomas Manes <at...@gmail.com>
> >To: axis-user@ws.apache.org
> >Subject: Re: Exception on wsdl2java
> >Date: Sat, 28 May 2005 09:19:20 -0400
> >
> >Wayne,
> >
> >Your error is being caused by this type reference:
> >     <element name="completeAttributes" nillable="true"
> >type="tns6:Attributes" />
> >in the definition of the MessageElement type.
> >
> >tns6 is declared as:
> >      xmlns:tns6="http://sax.xml.org".
> >
> >This namespace has been imported:
> >       <import namespace="http://sax.xml.org" />
> >but you don't provide a schemaLocation, and there is no schema at the
> >specified URI.Therefore wsdl2java doesn't know how to process the
> >tns6:Attributes type.
> >
> >Anne
> >
> >On 5/28/05, Wayne Richards <wt...@yahoo.com.au> wrote:
> > > Hi all,
> > > I have a problem in trying to generate a client using the attached
wsdl
> > > file.
> > > I don't understand the message or how to fix the problem. Has anyone
had
> > > this problemm before and is able to give some advice?
> > >
> > > the error is:
> > >
> > >
> > > C:\workspace\axisNDNHandlers\src>wsdl2java
> > > C:\workspace\axisNDNHandlers\src>java -cp
> > > C:\Tomcat\webapps\axis\WEB-INF\lib\act
> > >
>
>ivation.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\axis.jar;C:\Tomcat\webapps\a
xis\W
> > >
>
>EB-INF\lib\commons-logging-1.0.4.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\com
mons-
> > >
>
>discovery-0.2.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\JAXRPC.JAR;C:\Tomcat\w
ebapp
> > >
>
>s\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\mail.
jar;C
> > >
>
>:\Tomcat\webapps\axis\WEB-INF\lib\saaj.jar;C:\Tomcat\webapps\axis\WEB-INF\l
ib\ws
> > >
>
>dl4j-1.5.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\xmlsec-1.2.1.jar;C:\Tomca
t\web
> > >
>
>apps\axis\WEB-INF\lib\commons-attributes-api-2.1.jar;C:\Tomcat\webapps\axis
\WEB-
> > >
>
>INF\lib\commons-collections-3.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\comm
ons-c
> > >
>
>onfiguration-1.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-lang-2.0.ja
r;C:\
> > >
>
>Tomcat\webapps\axis\WEB-INF\lib\commons-math-1.0.jar;C:\Tomcat\webapps\axis
\WEB-
> > > INF\lib\jakarta-regexp-1.3.jar;. org.apache.axis.wsdl.WSDL2Java
> > > "NDNGATEWAY.wsdl
> > > "
> > > log4j:WARN No appenders could be found for logger
> > > (org.apache.axis.i18n.ProjectR
> > > esourceBundle).
> > > log4j:WARN Please initialize the log4j system properly.
> > > java.io.IOException: Type {http://sax.xml.org}Attributes is referenced
> >but
> > > not d
> > > efined.
> > >         at
> > > org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol
> > > Table.java:663)
> > >         at
> > > org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543
> > > )
> > >         at
> > > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
> > > a:516)
> > >         at
> > > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
> > > a:493)
> > >         at
> > > org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360)
> > >         at java.lang.Thread.run(Unknown Source)
> > > C:\workspace\axisNDNHandlers\src>
> > >
> > > Any help appreciated
> > > Regards
> > > Wayne
> > >
> > >
> > > ________________________________
> > >  Find local movie times and trailers on Yahoo! Movies.
> > >
> > >
> > >
> > >
>
>
>


Re: On wsdl2java

Posted by Paul Thomas <pa...@viajar.com>.
Hi Omar,
try setting your wsdl2java serverside="true"
Regards,
Paul

>i use this wsdl to generate my files types and other
>stubs, but with wsdl2java only generate this file:
>ICalcul.java
>ICalculservice.java
>ICalculserviceLocator.java
>ICalculbindingStub.java
>and no other files types why?
>
>
>	
>  
>


On wsdl2java

Posted by Omar Bennani <ba...@yahoo.fr>.
i use this wsdl to generate my files types and other
stubs, but with wsdl2java only generate this file:
ICalcul.java
ICalculservice.java
ICalculserviceLocator.java
ICalculbindingStub.java
and no other files types why?


	

	
		
_____________________________________________________________________________ 
Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com

Re: Exception on wsdl2java

Posted by Wayne Richards <wt...@yahoo.com.au>.
The code is attached. I am trying to use the proxy example from the AXIS samples to create a proxy service. For security reason I cannot expose the final end point of the service in the WSDL. So I have to come up with another solution using JAVA.
Thanks for the help.
 




---------------------------------
Find local movie times and trailers on Yahoo! Movies.

Re: Exception on wsdl2java

Posted by Anne Thomas Manes <at...@gmail.com>.
What's the code you used to generate this WSDL?

I get the sense that you're using the message style interface, in
which case java2wsdl has absolutely no sense of what the appropriate
WSDL should look like, and you can't expect the utility to work
properly. When using the message style interface, you must handcraft
your WSDL.

Anne

On 5/28/05, Jason Liu <li...@hotmail.com> wrote:
> 
>           Anne is correct, there are some other namespace definitions such
> as: xmlns:tns3="http://dom.w3c.org", there is no such schema found at that
> URL, so it will error out too. I ran BEA's clientgen against the wsdl and it
> complained about that namespace.
> 
>           Is axis 1.2 too buggy?
> 
> 
> 
> >From: Anne Thomas Manes <at...@gmail.com>
> >Reply-To: Anne Thomas Manes <at...@gmail.com>
> >To: axis-user@ws.apache.org
> >Subject: Re: Exception on wsdl2java
> >Date: Sat, 28 May 2005 09:19:20 -0400
> >
> >Wayne,
> >
> >Your error is being caused by this type reference:
> >     <element name="completeAttributes" nillable="true"
> >type="tns6:Attributes" />
> >in the definition of the MessageElement type.
> >
> >tns6 is declared as:
> >      xmlns:tns6="http://sax.xml.org".
> >
> >This namespace has been imported:
> >       <import namespace="http://sax.xml.org" />
> >but you don't provide a schemaLocation, and there is no schema at the
> >specified URI.Therefore wsdl2java doesn't know how to process the
> >tns6:Attributes type.
> >
> >Anne
> >
> >On 5/28/05, Wayne Richards <wt...@yahoo.com.au> wrote:
> > > Hi all,
> > > I have a problem in trying to generate a client using the attached wsdl
> > > file.
> > > I don't understand the message or how to fix the problem. Has anyone had
> > > this problemm before and is able to give some advice?
> > >
> > > the error is:
> > >
> > >
> > > C:\workspace\axisNDNHandlers\src>wsdl2java
> > > C:\workspace\axisNDNHandlers\src>java -cp
> > > C:\Tomcat\webapps\axis\WEB-INF\lib\act
> > >
> >ivation.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\axis.jar;C:\Tomcat\webapps\axis\W
> > >
> >EB-INF\lib\commons-logging-1.0.4.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-
> > >
> >discovery-0.2.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\JAXRPC.JAR;C:\Tomcat\webapp
> > >
> >s\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\mail.jar;C
> > >
> >:\Tomcat\webapps\axis\WEB-INF\lib\saaj.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\ws
> > >
> >dl4j-1.5.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\xmlsec-1.2.1.jar;C:\Tomcat\web
> > >
> >apps\axis\WEB-INF\lib\commons-attributes-api-2.1.jar;C:\Tomcat\webapps\axis\WEB-
> > >
> >INF\lib\commons-collections-3.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-c
> > >
> >onfiguration-1.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-lang-2.0.jar;C:\
> > >
> >Tomcat\webapps\axis\WEB-INF\lib\commons-math-1.0.jar;C:\Tomcat\webapps\axis\WEB-
> > > INF\lib\jakarta-regexp-1.3.jar;. org.apache.axis.wsdl.WSDL2Java
> > > "NDNGATEWAY.wsdl
> > > "
> > > log4j:WARN No appenders could be found for logger
> > > (org.apache.axis.i18n.ProjectR
> > > esourceBundle).
> > > log4j:WARN Please initialize the log4j system properly.
> > > java.io.IOException: Type {http://sax.xml.org}Attributes is referenced
> >but
> > > not d
> > > efined.
> > >         at
> > > org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol
> > > Table.java:663)
> > >         at
> > > org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543
> > > )
> > >         at
> > > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
> > > a:516)
> > >         at
> > > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
> > > a:493)
> > >         at
> > > org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360)
> > >         at java.lang.Thread.run(Unknown Source)
> > > C:\workspace\axisNDNHandlers\src>
> > >
> > > Any help appreciated
> > > Regards
> > > Wayne
> > >
> > >
> > > ________________________________
> > >  Find local movie times and trailers on Yahoo! Movies.
> > >
> > >
> > >
> > >
> 
> 
>

Re: Exception on wsdl2java

Posted by Jason Liu <li...@hotmail.com>.
          Anne is correct, there are some other namespace definitions such 
as: xmlns:tns3="http://dom.w3c.org", there is no such schema found at that 
URL, so it will error out too. I ran BEA's clientgen against the wsdl and it 
complained about that namespace.

          Is axis 1.2 too buggy?



>From: Anne Thomas Manes <at...@gmail.com>
>Reply-To: Anne Thomas Manes <at...@gmail.com>
>To: axis-user@ws.apache.org
>Subject: Re: Exception on wsdl2java
>Date: Sat, 28 May 2005 09:19:20 -0400
>
>Wayne,
>
>Your error is being caused by this type reference:
>     <element name="completeAttributes" nillable="true" 
>type="tns6:Attributes" />
>in the definition of the MessageElement type.
>
>tns6 is declared as:
>      xmlns:tns6="http://sax.xml.org".
>
>This namespace has been imported:
>       <import namespace="http://sax.xml.org" />
>but you don't provide a schemaLocation, and there is no schema at the
>specified URI.Therefore wsdl2java doesn't know how to process the
>tns6:Attributes type.
>
>Anne
>
>On 5/28/05, Wayne Richards <wt...@yahoo.com.au> wrote:
> > Hi all,
> > I have a problem in trying to generate a client using the attached wsdl
> > file.
> > I don't understand the message or how to fix the problem. Has anyone had
> > this problemm before and is able to give some advice?
> >
> > the error is:
> >
> >
> > C:\workspace\axisNDNHandlers\src>wsdl2java
> > C:\workspace\axisNDNHandlers\src>java -cp
> > C:\Tomcat\webapps\axis\WEB-INF\lib\act
> > 
>ivation.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\axis.jar;C:\Tomcat\webapps\axis\W
> > 
>EB-INF\lib\commons-logging-1.0.4.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-
> > 
>discovery-0.2.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\JAXRPC.JAR;C:\Tomcat\webapp
> > 
>s\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\mail.jar;C
> > 
>:\Tomcat\webapps\axis\WEB-INF\lib\saaj.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\ws
> > 
>dl4j-1.5.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\xmlsec-1.2.1.jar;C:\Tomcat\web
> > 
>apps\axis\WEB-INF\lib\commons-attributes-api-2.1.jar;C:\Tomcat\webapps\axis\WEB-
> > 
>INF\lib\commons-collections-3.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-c
> > 
>onfiguration-1.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-lang-2.0.jar;C:\
> > 
>Tomcat\webapps\axis\WEB-INF\lib\commons-math-1.0.jar;C:\Tomcat\webapps\axis\WEB-
> > INF\lib\jakarta-regexp-1.3.jar;. org.apache.axis.wsdl.WSDL2Java
> > "NDNGATEWAY.wsdl
> > "
> > log4j:WARN No appenders could be found for logger
> > (org.apache.axis.i18n.ProjectR
> > esourceBundle).
> > log4j:WARN Please initialize the log4j system properly.
> > java.io.IOException: Type {http://sax.xml.org}Attributes is referenced 
>but
> > not d
> > efined.
> >         at
> > org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol
> > Table.java:663)
> >         at
> > org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543
> > )
> >         at
> > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
> > a:516)
> >         at
> > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
> > a:493)
> >         at
> > org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360)
> >         at java.lang.Thread.run(Unknown Source)
> > C:\workspace\axisNDNHandlers\src>
> >
> > Any help appreciated
> > Regards
> > Wayne
> >
> >
> > ________________________________
> >  Find local movie times and trailers on Yahoo! Movies.
> >
> >
> >
> >



Re: Exception on wsdl2java

Posted by Anne Thomas Manes <at...@gmail.com>.
Wayne,

Your error is being caused by this type reference:
    <element name="completeAttributes" nillable="true" type="tns6:Attributes" />
in the definition of the MessageElement type. 

tns6 is declared as: 
     xmlns:tns6="http://sax.xml.org". 

This namespace has been imported:
      <import namespace="http://sax.xml.org" />
but you don't provide a schemaLocation, and there is no schema at the
specified URI.Therefore wsdl2java doesn't know how to process the
tns6:Attributes type.

Anne

On 5/28/05, Wayne Richards <wt...@yahoo.com.au> wrote:
> Hi all, 
> I have a problem in trying to generate a client using the attached wsdl
> file. 
> I don't understand the message or how to fix the problem. Has anyone had
> this problemm before and is able to give some advice? 
>   
> the error is: 
>   
> 
> C:\workspace\axisNDNHandlers\src>wsdl2java 
> C:\workspace\axisNDNHandlers\src>java -cp
> C:\Tomcat\webapps\axis\WEB-INF\lib\act
> ivation.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\axis.jar;C:\Tomcat\webapps\axis\W
> EB-INF\lib\commons-logging-1.0.4.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-
> discovery-0.2.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\JAXRPC.JAR;C:\Tomcat\webapp
> s\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\mail.jar;C
> :\Tomcat\webapps\axis\WEB-INF\lib\saaj.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\ws
> dl4j-1.5.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\xmlsec-1.2.1.jar;C:\Tomcat\web
> apps\axis\WEB-INF\lib\commons-attributes-api-2.1.jar;C:\Tomcat\webapps\axis\WEB-
> INF\lib\commons-collections-3.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-c
> onfiguration-1.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-lang-2.0.jar;C:\
> Tomcat\webapps\axis\WEB-INF\lib\commons-math-1.0.jar;C:\Tomcat\webapps\axis\WEB-
> INF\lib\jakarta-regexp-1.3.jar;. org.apache.axis.wsdl.WSDL2Java
> "NDNGATEWAY.wsdl
> "
> log4j:WARN No appenders could be found for logger
> (org.apache.axis.i18n.ProjectR
> esourceBundle).
> log4j:WARN Please initialize the log4j system properly.
> java.io.IOException: Type {http://sax.xml.org}Attributes is referenced but
> not d
> efined.
>         at
> org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol
> Table.java:663)
>         at
> org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543
> )
>         at
> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
> a:516)
>         at
> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
> a:493)
>         at
> org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360)
>         at java.lang.Thread.run(Unknown Source) 
> C:\workspace\axisNDNHandlers\src>
>  
> Any help appreciated 
> Regards 
> Wayne
> 
> 
> ________________________________
>  Find local movie times and trailers on Yahoo! Movies.
>  
> 
> 
>