Sastry,
I checked both server.xml and web.xml. In web.xml, you need to add:
  <mime-mapping>
  <extension>xml</extension>
  <mime-type>text/xml</mime-type>
  </mime-mapping>
  <mime-mapping>
  <extension>wsdl</extension>
  <mime-type>text/xml</mime-type>
  </mime-mapping>

You don't really need to modify server.xml. The ibm generated file simply
has more ports(such as SSL connector, AJP connector) defined. You can do a
diff to find that out.

Hope this helps.

Sandy



> -----Original Message-----
> From: venkata akella [mailto:[EMAIL PROTECTED]]
> Sent: December 8, 2001 4:50 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Getting javax.wsdl.WSDLException while generating proxy
> class
>
>
> Thanks sandy. I am using tomcat4 as web server. While
> installing ibm web services tool kit I did select the
> tomcat server option. But do you(or anyone else) know
> what changes it does exactly in tomcat config
> files(server.xml and web.xml) while installing web
> services tool kit... It seems its not updating
> properly thosefiles. If any one has working version of
> these config files can you pass them for reference....
>
>
>       Anyway I will try to install again with default
> websphere option.. Let us see if it works.. Did you
> try with websphere as your webserver/appserver.
>
> thanks
> Sastry
>
> --- Sandy Liu <[EMAIL PROTECTED]> wrote:
> > Which web server are you working with? I ran into
> > the same problem before.
> > If you are not using IBM Websphere, you have to
> > configure your web server
> > first. For example, if you are using Tomcat, you
> > have to run the
> > configuration program and select Tomcat as your web
> > server. Then, you need
> > to modify(or let wstk overwrite) the server.xml and
> > web.xml files of your
> > web server.
> >
> > However, proxygen doesn't seem to work for me. I
> > don't get any
> > error/exception when I'm running it, but it produces
> > nothing.
> > You might also want to check the discussion forum
> > for the IBM WSTK:
> >
> http://www.alphaworks.ibm.com/forum/webservicestoolkit.nsf/current
> ?OpenView&
> > Start=1&Count=30
> >
> > good luck,
> >
> > Sandy.
> >
> >
> >
> > > -----Original Message-----
> > > From: venkata akella
> > [mailto:[EMAIL PROTECTED]]
> > > Sent: December 7, 2001 9:30 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Getting javax.wsdl.WSDLException while
> > generating proxy class
> > >
> > >
> > > HI
> > >
> > > Can someone help me out here....
> > >   I am trying to generate proxy client class with
> > wsdl
> > > file. But getting javax.wsdl.WSDLException
> > exception.
> > > I have pasted that message down.
> > > Here is what I am doing...
> > > I am using apache soap2.2 with ibm webservices
> > tool
> > > kit. I have a service class. First I have
> > generated
> > > .wsdl file from the service class using ibm tool
> > > "wsdlgen". It went on fine. Now I am trying to
> > > generate proxy class with this wsdl file. For
> > proxy
> > > generation, ibm tool kit provides a tool called
> > > "proxygen".  While generating  its giving the
> > follwing
> > > exception message. Its on Win2k prof machine.
> > >
> > > *** Pasted message begin ******
> > >
> > > E:\Sastry\webservices\wsdemo>proxygen
> > > TaxCalculator_Service.wsdl
> > > An exception javax.wsdl.WSDLException has occured.
> > > WSDLException (at /definitions/import): faultCode
> > > =OTHER_ERROR: Unable to resolve imported document
> > at
> > > 'http://localhost:8080/wsdl/TaxCalculator_Servi
> > > ce-interface.wsdl'..
> > > Stacktrace:
> > > WSDLException (at /definitions/import):
> > > faultCode=OTHER_ERROR: Unable to resolve imported
> > > document a
> > > t
> > >
> >
> 'http://localhost:8080/wsdl/TaxCalculator_Service-interface.wsdl'.:
> > > java.lang.NullPointerException
> > >
> > >         at
> > >
> >
> java.net.URLConnection.stripOffParameters(URLConnection.java:1016)
> > >         at
> > >
> >
> java.net.URLConnection.getContentHandler(URLConnection.java:984)
> > >         at
> > >
> >
> java.net.URLConnection.getContent(URLConnection.java:559)
> > >         at java.net.URL.getContent(URL.java:812)
> > >         at
> > >
> >
> com.ibm.wsdl.util.StringUtils.getContentAsReader(StringUtils.java:356)
> > >         at
> > >
> >
> com.ibm.wsdl.xml.WSDLReader.readWSDL(WSDLReader.java:1027)
> > >         at
> > >
> >
> com.ibm.wsdl.xml.WSDLReader.parseImport(WSDLReader.java:185)
> > >         at
> > >
> >
> com.ibm.wsdl.xml.WSDLReader.parseDefinitions(WSDLReader.java:116)
> > >         at
> > >
> >
> com.ibm.wsdl.xml.WSDLReader.readWSDL(WSDLReader.java:1063)
> > >         at
> > >
> >
> com.ibm.wsdl.xml.WSDLReader.readWSDL(WSDLReader.java:1030)
> > >         at
> > >
> >
> com.ibm.wstk.wsdl.WSDLDocument.read(WSDLDocument.java:141)
> > >         at
> > >
> >
> com.ibm.wstk.wsdl.WSDLDocument.<init>(WSDLDocument.java:66)
> > >         at
> > >
> >
> com.ibm.wstk.tools.gen.Parser$MyWSDLDOC.<init>(Parser.java:33)
> > >         at
> > >
> > com.ibm.wstk.tools.gen.Parser.parse(Parser.java:48)
> > >         at
> > > com.ibm.wstk.tools.gen.ui.Main.main(Main.java:48)
> > >
> > >         at
> > >
> >
> com.ibm.wsdl.xml.WSDLReader.readWSDL(WSDLReader.java:1040)
> > >         at
> > >
> >
> com.ibm.wsdl.xml.WSDLReader.parseImport(WSDLReader.java:185)
> > >         at
> > >
> >
> com.ibm.wsdl.xml.WSDLReader.parseDefinitions(WSDLReader.java:116)
> > >         at
> > >
> >
> com.ibm.wsdl.xml.WSDLReader.readWSDL(WSDLReader.java:1063)
> > >         at
> > >
> >
> com.ibm.wsdl.xml.WSDLReader.readWSDL(WSDLReader.java:1030)
> > >         at
> > >
> >
> com.ibm.wstk.wsdl.WSDLDocument.read(WSDLDocument.java:141)
> > >         at
> > >
> >
> com.ibm.wstk.wsdl.WSDLDocument.<init>(WSDLDocument.java:66)
> > >         at
> > >
> >
> com.ibm.wstk.tools.gen.Parser$MyWSDLDOC.<init>(Parser.java:33)
> > >         at
> > >
> > com.ibm.wstk.tools.gen.Parser.parse(Parser.java:48)
> > >         at
> > > com.ibm.wstk.tools.gen.ui.Main.main(Main.java:48)
> > >
> > > **** Pasted message end *********
> > >
> > >   I have started the tomcat web server. I mean web
> > > server is up and running and I am ablt to access
> > the
> > > interface file
> > >
> >
> 'http://localhost:8080/wsdl/TaxCalculator_Service-interface.wsdl";
> > >
> > > Can someone can help me out here.
> > >
> > > Thanks in advance ...
> > > Sastry
> > >
> > >
> > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Send your FREE holiday greetings online!
> > > http://greetings.yahoo.com
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Send your FREE holiday greetings online!
> http://greetings.yahoo.com

Reply via email to