Hi Latha,

It looks like the cause of the exception is the fact that the following
property in your RP doc def:

  <xsd:element name="ResourceID" type="xsd:string" /> 

The WSRP spec states that all elements within the RP doc def must be
refs to global element decls (GEDs), e.g.:

<xsd:element name="ResourceID" type="xsd:string" />

<xsd:element name="StorageSDCResourceProperties" >
    <xsd:complexType>
      <xsd:sequence>

        <!-- Resource Identity Properties -->
        <xsd:element ref="tns:ResourceID" />
        
        ...

      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>

I'll fix the error handling for this case in Wsdl2Java.

Thanks,
Ian

| -----Original Message-----
| From: Srinivasan, Latha 
| Sent: Thursday, March 10, 2005 1:01 PM
| To: Springer, Ian P.
| Subject: RE: Error generating stubs using Wsdl2Java
| 
|  Hi Ian,
| 
| I am attaching the output of "ant -debug generate" as well as 
| my WSDL file. I originally had all the schema types defined 
| in 3 other files that I imported into the WSDL, but that gave 
| me the same type of errors, so I defined all the types in the 
| WSDL file itself. Shouldn't make a difference either way, right? 
| 
| I am guessing it is something silly that I am overlooking, 
| but I am having no luck yet.
| 
| Thanks for your help,
| Latha
| 
| 
| -----Original Message-----
| From: Ian Springer [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, March 09, 2005 6:47 PM
| To: [email protected]
| Subject: Re: Error generating stubs using Wsdl2Java
| 
| Hi Latha,
| 
| Please try running ant again passing it the -d (debug) 
| option. That is:
| 
| ant -d generate
| 
| See if this gives you a stack trace for the NPE. If so, 
| please send me that output.
| 
| Also, would you please send me StorageSDC.wsdl, so I can try 
| to reproduce the problem?
| 
| Thanks,
| Ian
| 
| Srinivasan, Latha wrote:
| 
| >Hi,
| > 
| >I downloaded the latest zip version of apollo and installed 
| it on a Linux box. However, when I try to run the ant task 
| "generate", I get a NullPointerException as follows:
| >
| >generate:
| >     [copy] Copying 1 file to /usr/apollo/webapps/wsrf/_tmp_ 
| >[wsdl2Java] --> 03-09-05 13:50:18 DEBUG [main] ProjectResourceBundle:
| >getBundle(org.apache.ws,org.apache.ws.util.i18n,resource,null,...)
| >[wsdl2Java] --> 03-09-05 13:50:18 DEBUG [main] 
| ProjectResourceBundle: 
| >loadBundle: Ignoring MissingResourceException: Can't find bundle for 
| >base name org.apache.ws.util.resource, locale en_US [wsdl2Java] -->
| >03-09-05 13:50:18 DEBUG [main] ProjectResourceBundle: loadBundle: 
| >Ignoring MissingResourceException: Can't find bundle for base name 
| >org.apache.ws.resource, locale en_US [wsdl2Java] --> 
| 03-09-05 13:50:18 
| >DEBUG [main] ProjectResourceBundle: Created 
| >org.apache.ws.util.i18n.resource, linked to parent null 
| [wsdl2Java] -->
| >03-09-05 13:50:18 DEBUG [main] ProjectResourceBundle: 
| >getBundle(org.apache.ws.resource,org.apache.ws.resource.i18n,
| resource,n
| >ull,...) [wsdl2Java] --> 03-09-05 13:50:18 DEBUG [main]
| >ProjectResourceBundle: loadBundle: Ignoring 
| MissingResourceException: 
| >Can't find bundle for base name 
| org.apache.ws.resource.resource, locale 
| >en_US [wsdl2Java] --> 03-09-05 13:50:18 DEBUG [main]
| >ProjectResourceBundle: Root package not found, cross link to 
| >org.apache.ws.util.i18n.resource [wsdl2Java] --> 03-09-05 13:50:18 
| >DEBUG [main] ProjectResourceBundle: Created 
| >org.apache.ws.resource.i18n.resource, linked to parent 
| >org.apache.ws.util.i18n.resource [wsdl2Java] --> 03-09-05 13:50:18 
| >DEBUG [main] ProjectResourceBundle:
| >org.apache.ws.resource.i18n.resource::handleGetObject(OPT_OUT
| PUT_DIR_FO
| >R_GEN_SRC) [wsdl2Java] --> 03-09-05 13:50:18 DEBUG [main]
| >ProjectResourceBundle: 
| >org.apache.ws.resource.i18n.resource::handleGetObject(OPT_CLA
| SSPATH_SEN
| >T_TO_XMLBEANS) [wsdl2Java] --> 03-09-05 13:50:18 DEBUG [main]
| >ProjectResourceBundle: 
| >org.apache.ws.resource.i18n.resource::handleGetObject(OPT_ENA
| BLE_VERBOS
| >E) [wsdl2Java] --> 03-09-05 13:50:18 DEBUG [main]
| >ProjectResourceBundle: 
| >org.apache.ws.resource.i18n.resource::handleGetObject(OPT_ENA
| BLE_DEBUG)
| >[wsdl2Java] --> 03-09-05 13:50:20 ERROR [main] velocity: 
| ResourceManager : unable to find resource 
| 'VM_global_library.vm' in any resource loader.
| >[wsdl2Java] Processing WSDL file 
| "/usr/apollo/webapps/wsrf/_tmp_/StorageSDC.wsdl"...
| >[wsdl2Java] Retrieving document at 
| '/usr/apollo/webapps/wsrf/_tmp_/StorageSDC.wsdl'.
| >[wsdl2Java] Retrieving document at 
| '../spec/wsrf/WS-ResourceProperties-1_2.wsdl', relative to 
| 'file:/usr/apollo/webapps/wsrf/_tmp_/StorageSDC.wsdl'.
| >[wsdl2Java] Retrieving document at 
| '../spec/wsrf/WS-ResourceLifetime-1_2.wsdl', relative to 
| 'file:/usr/apollo/webapps/wsrf/_tmp_/StorageSDC.wsdl'.
| >
| >BUILD FAILED
| >file:/usr/apollo/usr/sdm/build.xml:53: java.lang.NullPointerException
| >
| >
| >I am assuming this is some error related to setting the 
| classpath, but as far as I can tell, I am setting everything 
| correctly. I copied the build.xml from docs/tutorial and made 
| my own modifications for my specific wsdl file.
| >
| >What am I missing?
| >
| >Thanks
| >Latha
| >
| >
| >
| >---------------------------------------------------------------------
| >To unsubscribe, e-mail: [EMAIL PROTECTED]
| >For additional commands, e-mail: [EMAIL PROTECTED]
| >
| >
| >
| >  
| >
| 
| 
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
| 
| 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to