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,null,...) [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_OUTPUT_DIR_FOR_GEN_SRC) [wsdl2Java] --> 03-09-05 13:50:18 DEBUG [main] ProjectResourceBundle: org.apache.ws.resource.i18n.resource::handleGetObject(OPT_CLASSPATH_SENT_TO_XMLBEANS) [wsdl2Java] --> 03-09-05 13:50:18 DEBUG [main] ProjectResourceBundle: org.apache.ws.resource.i18n.resource::handleGetObject(OPT_ENABLE_VERBOSE) [wsdl2Java] --> 03-09-05 13:50:18 DEBUG [main] ProjectResourceBundle: org.apache.ws.resource.i18n.resource::handleGetObject(OPT_ENABLE_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]
