Discussion:
idResGen Utility in WebSphere Commerce v6
(too old to reply)
m***@googlemail.com
2006-11-20 15:09:03 UTC
Permalink
I am getting the following error when attempting to run the idResolver
in WCv6 on a linux platform:

java.util.MissingResourceException: Can't find bundle for base name
Trace, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:825)
at
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:794)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:532)
at com.ibm.wca.IdResGen.Logging.Logger.run(Logger.java:144)

The command line arguments I am using are:

/opt/IBM/WebSphere/CommerceServer60/bin> ./idresgen.sh -dbname
WebSphere Commerce DB2 DataSource demo -dbuser wcuser -dbpwd <ommitted
for newsgroup but is valid> -propfile
/opt/IBM/WebSphere/AppServer/profiles/demo/installedApps/WC_demo_cell/WC_demo.ear/properties/ACIdKeys.properties
-infile
/opt/IBM/WebSphere/CommerceServer60/temp/db/idresload/xml/AFWLoadCombined.xml
-outfile
/opt/IBM/WebSphere/CommerceServer60/temp/db/idresload/xml/AFWLoadCombined.resolved.xml
-method mixed

I can load the file without error in a development environment but not
in a server environment. I suspect that the Logger is looking for a
properties file of type com.ibm.wca.IdResGen.IdResGenProperties which
exists in the IdResGen.zip by why is the code looking for a locale
specific version. Note that
com.ibm.wca.IdResGen.IdResGenProperties_en_US does not exist in the zip
file (most other locales do).

regards,

Mike
m***@googlemail.com
2006-11-21 11:24:38 UTC
Permalink
I thought I'd better answer my own question....

The error below is caused by an invalid database name which in the case
below should have been 'demo'. We stumbled upon this by accident as
the error message does not imply this in any way.

Mike
Post by m***@googlemail.com
I am getting the following error when attempting to run the idResolver
java.util.MissingResourceException: Can't find bundle for base name
Trace, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:825)
at
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:794)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:532)
at com.ibm.wca.IdResGen.Logging.Logger.run(Logger.java:144)
/opt/IBM/WebSphere/CommerceServer60/bin> ./idresgen.sh -dbname
WebSphere Commerce DB2 DataSource demo -dbuser wcuser -dbpwd <ommitted
for newsgroup but is valid> -propfile
/opt/IBM/WebSphere/AppServer/profiles/demo/installedApps/WC_demo_cell/WC_demo.ear/properties/ACIdKeys.properties
-infile
/opt/IBM/WebSphere/CommerceServer60/temp/db/idresload/xml/AFWLoadCombined.xml
-outfile
/opt/IBM/WebSphere/CommerceServer60/temp/db/idresload/xml/AFWLoadCombined.resolved.xml
-method mixed
I can load the file without error in a development environment but not
in a server environment. I suspect that the Logger is looking for a
properties file of type com.ibm.wca.IdResGen.IdResGenProperties which
exists in the IdResGen.zip by why is the code looking for a locale
specific version. Note that
com.ibm.wca.IdResGen.IdResGenProperties_en_US does not exist in the zip
file (most other locales do).
regards,
Mike
Loading...