WSDL2Java stopped giving me resource not found exceptions when I trimmed the
classpath to contain just the essential libraries:
- axis.jar
- excalibur-cli.jar
- commons-logging.jar
- wsdl4j.jar
- xerces.jar
I tried running a simple client with the generated stubs and got another
missing resource exception:
Again I am using only the essential libraries required on the classpath.
- axis.jar
- commons-logging.jar
- xerces.jar
- . (cwd)
D:\workdir\axis>java com.interkeel.client.NotificationClient
Exception in thread "main" java.lang.ExceptionInInitializerError:
java.util.MissingResourceException: Can't find resource for bundle
java.util.PropertyResourceBundle, key oddDigits00
at java.util.ResourceBundle.getObject(ResourceBundle.java:370)
at java.util.ResourceBundle.getString(ResourceBundle.java:342)
at org.apache.axis.utils.JavaUtils.getMessage(Unknown Source)
at org.apache.axis.encoding.Hex.<clinit>(Hex.java)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:134)
at
org.apache.axis.encoding.DefaultTypeMappingImpl.class$(DefaultTypeMappingImp
l.java)
at
org.apache.axis.encoding.DefaultTypeMappingImpl.<init>(DefaultTypeMappingImp
l.java:168)
at
org.apache.axis.encoding.DefaultTypeMappingImpl.create(DefaultTypeMappingImp
l.java:119)
at
org.apache.axis.encoding.TypeMappingRegistryImpl.<init>(TypeMappingRegistryI
mpl.java:177)
at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(Unknown
Source)
at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(Unknown
Source)
at
org.apache.axis.configuration.FileProvider.configureEngine(Unknown Source)
at org.apache.axis.AxisEngine.init(Unknown Source)
at org.apache.axis.AxisEngine.<init>(Unknown Source)
at org.apache.axis.client.AxisClient.<init>(Unknown Source)
at org.apache.axis.client.Service.getAxisClient(Unknown Source)
at org.apache.axis.client.Service.<init>(Unknown Source)
at
com.interkeel.client.NotificationClient.main(NotificationClient.java:43)
Clueless in california !
-----Original Message-----
From: Russell Butek [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 1:54 PM
To: [EMAIL PROTECTED]
Subject: Re: Missing Resource in nightly build?
It looks like you're missing the org/apache/axis/utils/resources.properties
file. Or you have an old version of it.
Russell Butek
[EMAIL PROTECTED]
"Maneesh Sahu" <[EMAIL PROTECTED]> on 03/07/2002 03:47:19 PM
Please respond to [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
cc:
Subject: Missing Resource in nightly build?
Hi,
I just updated axis to use the latest nightly build from the earlier alpha3
release. I am getting a missing resource exception when I run WSDL2Java:
D:\workdir\axis>java org.apache.axis.wsdl.WSDL2Java -p
com.interkeel.services.
notification http://maneesh:8080/axis/Contract.jws?wsdl
Exception in thread "main" java.lang.ExceptionInInitializerError:
java.util.Miss
ingResourceException: Can't find resource for bundle
java.util.PropertyResourceB
undle, key optionHelp00
at java.util.ResourceBundle.getObject(ResourceBundle.java:370)
at java.util.ResourceBundle.getString(ResourceBundle.java:342)
at org.apache.axis.utils.JavaUtils.getMessage(Unknown Source)
at org.apache.axis.wsdl.WSDL2Java.<clinit>(Unknown Source)
This is the CLASSPATH WSDL2Java is operating with:
CLASSPATH=.;E:\Apache\xml-axis\lib\axis.jar;E:
\Apache\xml-axis\lib\wsdl4j.ja
r;E:
\Apache\Tomcat40\common\lib\xerces.jar;E:
\Apache\xml-axis\lib\excalibur-cli.
jar;
E:\Apache\Tomcat40\common\lib\jndi.jar;E:
\Apache\xml-axis\lib\commons-loggin
g.ja
r;E:\Apache\xml-axis\lib\log4j-20020228.jar;E:
\Apache\xml-axis\lib\tt-byteco
de.j
ar
It contains:
- axis.jar
- wsdl4j.jar
- xerces.jar (From Apache Tomcat 4.0.3)
- excalibur-cli.jar
- log4j-20020228.jar
- tt-bytecode.jar
I am using IBM JDK 1.3 (shipped with WAS 4.0)
Incidentally, I had to update from alpha3 because I was consistently
getting
a ClassNotFoundException -> org.apache.axis.ConfigurationException when I
attempted to use the AdminService.
Help..pointers?
TYIA
--maneesh
interKeel, Inc.
www.interkeel.com