You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrf-user@ws.apache.org by Java Helpline <he...@yahoo.co.uk> on 2006/02/19 10:54:43 UTC

Few problems related to WSRF 1.1

Hi,
     
     I was working on the WSRF Apache implementation to write tutorials, similar to what I have already written based on Globus Toolkit 4 (can be found on http://tyne.dl.ac.uk/WOSE/tutorials/). Most of things were working but since I moved to WSRF 1.1 to update my tutorials before putting them on web, I have faced few problems. I can manage to work with WSRF 1.0 implementation but when I try to generate code against WSRF 1.1 it tried to retrieve ../xml/XML-Namespace-1998.xsd and gives connection time out. Although file is available in that directory.
   
  S-ResourceProperties-1_2-Draft_01.wsdl'.
[wsdl2Java] Retrieving schema at '../xml/XML-Namespace-1998.xsd', relative to 'file:/E:/WSRF/ApolloAlphaBinary/Tomcat-5.0.30/webapps/wsrf/spec/wsrf/WS
-BaseFaults-1_2-Draft_01.xsd'.
  BUILD FAILED
E:\WSRF\wsrf-1.1\examples\helloworld\build.xml:54: WSDLException (at /definitions/import[1]/wsdl:definitions/wsdl:types/xsd:schema/xsd:schema): faultC
ode=PARSER_ERROR: Problem parsing 'file:/E:/WSRF/ApolloAlphaBinary/Tomcat-5.0.30/webapps/wsrf/spec/xml/XML-Namespace-1998.xsd'.: Connection timed out:
 connect: java.net.ConnectException: Connection timed out: connect
   
  I am not sure about the above error as I can't see anything wrong, generating code with WSRF 1.0, works fine for me. I tried the fresh installation on spare computer, where I have XMLBeans and all related jar files already to use "scomp", but here ant generate gives error java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamException. I have XMLBeans related jar files in the wsrf\WEB-INF\lib directory also along with XMLBeans Home directory.
   
  I can keep on working with WSRF 1.0 instead of WSRF 1.1 but I have noticed that in latest release WSRF related methods return xxxxxPropertiesPortTypeImpl rather than xxxxxPropertiesProvider, which is not difficult to change manually, but for sake of tutorials it will confuse beginners. 
   
  It will be appreciated if someone can let me know, where I am making mistake regarding WSRF 1.1 implementation. So that I can continue with step by step tutorials.
   
  Asif
   

		
---------------------------------
Yahoo! Photos – NEW, now offering a quality print service from just 8p a photo.

Re: Few problems related to WSRF 1.1

Posted by Java Helpline <he...@yahoo.co.uk>.
HI,
    The cause of problem was proxy settings. I was expecting if everything is on local machine, then I don't need to set proxy settings as it was not required in the earlier releases of WSRF. Setting the proxy setting solves the connection time out. It is bit surprising as WSDL2Java try to retrieve local xsd file relative to schema directory in wsrf directory, then why it needs proxy settings.
   
  For anyone else who may be having the same problems, I summarise my solutions:
   
  1. If ant generate failes to parse WSDL file and error is java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamException, then you may have xmlbeans related jar file such as "xbean.jar" in your classpath, removing it from the classpath solves the problem. This may not be convenient way as if you want to compile and use XMLBeans generated xml-java bindings in your application then you definately need "xbean.jar".
   
  2. Even WSDL2Java seems to accessing local files in Tomcat's webapps/wsrf directory still proxy settings need to be set in build.properties, if your system is behind firewall and if you require a proxy to connect to external web sites.
   
  I hope my experience may help new beginners. Any experienced comments on these two problems will be appreciated.
   
  Asif

Java Helpline <he...@yahoo.co.uk> wrote:
    Hi,
   
    I have noticed if I have xmlbeans.jar file in my classpath on Windows, ant generate gives error java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamException. Removing it from classpath solves at least that problem but I am still getting connection timeout error. Any suggestion.
   
  Source code generated by WSRF 1.0 is not compatible with WSRF 1.1 and needs lot of changes even with the help of smart IDE, so that can't be good idea to manually do the changes.  
  Looking for any positive suggestion to figure out this time out connection related to Retrieving schema at '../xml/XML-Namespace-1998.xsd',
   
  Asif
  
Java Helpline <he...@yahoo.co.uk> wrote:
    Hi,
     
     I was working on the WSRF Apache implementation to write tutorials, similar to what I have already written based on Globus Toolkit 4 (can be found on http://tyne.dl.ac.uk/WOSE/tutorials/). Most of things were working but since I moved to WSRF 1.1 to update my tutorials before putting them on web, I have faced few problems. I can manage to work with WSRF 1.0 implementation but when I try to generate code against WSRF 1.1 it tried to retrieve ../xml/XML-Namespace-1998.xsd and gives connection time out. Although file is available in that directory.
   
  S-ResourceProperties-1_2-Draft_01.wsdl'.
[wsdl2Java] Retrieving schema at '../xml/XML-Namespace-1998.xsd', relative to 'file:/E:/WSRF/ApolloAlphaBinary/Tomcat-5.0.30/webapps/wsrf/spec/wsrf/WS
-BaseFaults-1_2-Draft_01.xsd'.
  BUILD FAILED
E:\WSRF\wsrf-1.1\examples\helloworld\build.xml:54: WSDLException (at /definitions/import[1]/wsdl:definitions/wsdl:types/xsd:schema/xsd:schema): faultC
ode=PARSER_ERROR: Problem parsing 'file:/E:/WSRF/ApolloAlphaBinary/Tomcat-5.0.30/webapps/wsrf/spec/xml/XML-Namespace-1998.xsd'.: Connection timed out:
 connect: java.net.ConnectException: Connection timed out: connect
   
  I am not s ure about the above error as I can't see anything wrong, gener ating code with WSRF 1.0, works fine for me. I tried the fresh installation on spare computer, where I have XMLBeans and all related jar files already to use "scomp", but here ant generate gives error java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamException. I have XMLBeans related jar files in the wsrf\WEB-INF\lib directory also along with XMLBeans Home directory.
   
  I can keep on working with WSRF 1.0 instead of WSRF 1.1 but I have noticed that in latest release WSRF related methods return xxxxxPropertiesPortTypeImpl rather than xxxxxPropertiesProvider, which is not difficult to change manually, but for sake of tutorials it will confuse beginners. 
   
  It will be appreciated if someone can let me know, where I am making mistake regarding WSRF 1.1 implementation. So that I can continue with step by step tutorials.
   
  Asif
   
    
---------------------------------
  Yahoo! Photos – NEW, now offering a quality print service from just 8p a photo.

    
---------------------------------
  Yahoo! Messenger NEW - crystal clear PC to PC calling worldwide with voicemail 

		
---------------------------------
Win a BlackBerry device from O2 with Yahoo!. Enter now.

Re: Few problems related to WSRF 1.1

Posted by Java Helpline <he...@yahoo.co.uk>.
Hi,
   
    I have noticed if I have xmlbeans.jar file in my classpath on Windows, ant generate gives error java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamException. Removing it from classpath solves at least that problem but I am still getting connection timeout error. Any suggestion.
   
  Source code generated by WSRF 1.0 is not compatible with WSRF 1.1 and needs lot of changes even with the help of smart IDE, so that can't be good idea to manually do the changes.  
  Looking for any positive suggestion to figure out this time out connection related to Retrieving schema at '../xml/XML-Namespace-1998.xsd',
   
  Asif
  
Java Helpline <he...@yahoo.co.uk> wrote:
    Hi,
     
     I was working on the WSRF Apache implementation to write tutorials, similar to what I have already written based on Globus Toolkit 4 (can be found on http://tyne.dl.ac.uk/WOSE/tutorials/). Most of things were working but since I moved to WSRF 1.1 to update my tutorials before putting them on web, I have faced few problems. I can manage to work with WSRF 1.0 implementation but when I try to generate code against WSRF 1.1 it tried to retrieve ../xml/XML-Namespace-1998.xsd and gives connection time out. Although file is available in that directory.
   
  S-ResourceProperties-1_2-Draft_01.wsdl'.
[wsdl2Java] Retrieving schema at '../xml/XML-Namespace-1998.xsd', relative to 'file:/E:/WSRF/ApolloAlphaBinary/Tomcat-5.0.30/webapps/wsrf/spec/wsrf/WS
-BaseFaults-1_2-Draft_01.xsd'.
  BUILD FAILED
E:\WSRF\wsrf-1.1\examples\helloworld\build.xml:54: WSDLException (at /definitions/import[1]/wsdl:definitions/wsdl:types/xsd:schema/xsd:schema): faultC
ode=PARSER_ERROR: Problem parsing 'file:/E:/WSRF/ApolloAlphaBinary/Tomcat-5.0.30/webapps/wsrf/spec/xml/XML-Namespace-1998.xsd'.: Connection timed out:
 connect: java.net.ConnectException: Connection timed out: connect
   
  I am not s ure about the above error as I can't see anything wrong, generating code with WSRF 1.0, works fine for me. I tried the fresh installation on spare computer, where I have XMLBeans and all related jar files already to use "scomp", but here ant generate gives error java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamException. I have XMLBeans related jar files in the wsrf\WEB-INF\lib directory also along with XMLBeans Home directory.
   
  I can keep on working with WSRF 1.0 instead of WSRF 1.1 but I have noticed that in latest release WSRF related methods return xxxxxPropertiesPortTypeImpl rather than xxxxxPropertiesProvider, which is not difficult to change manually, but for sake of tutorials it will confuse beginners. 
   
  It will be appreciated if someone can let me know, where I am making mistake regarding WSRF 1.1 implementation. So that I can continue with step by step tutorials.
   
  Asif
   
    
---------------------------------
  Yahoo! Photos – NEW, now offering a quality print service from just 8p a photo.

		
---------------------------------
Yahoo! Messenger  NEW - crystal clear PC to PC calling worldwide with voicemail