Garth Martinsen wrote that he was getting this error:
> > The stack dump follows:
> > org.apache.xerces.validators.datatype.InvalidDatatypeFacetException:
> > Installation Problem???
> > Couldn't load messages: can't find resource for
> > org.apache.xerces.utils.regex.message_en_US at
> > org.apache.xerces.validators.datatype.DatatypeValidatorFactoryImpl.
> > createDatatypeValidator(DatatypeValidatorFactoryImpl.java:449)
The directory xerces-1_4_0\src\org\apache\xerces\utils\regex contains
message.properties
message_fr.properties
message_ja.properties
One of the java files it contains is RegexParser.java, and this is where
your error message is coming from:
public RegexParser() {
this.setLocale(Locale.getDefault());
}
public RegexParser(Locale locale) {
this.setLocale(locale);
}
public void setLocale(Locale locale) {
try {
this.resources =
ResourceBundle.getBundle("org.apache.xerces.utils.regex.message",
locale);
} catch (MissingResourceException mre) {
throw new RuntimeException("Installation Problem???
Couldn't load messages: "
+mre.getMessage());
}
}
-----------------------------------------------------------------------------------
So your problem has something to do with your Locale. Java classes
Locale and ResourceBundle are in java.util.*. To see what my default
Locale is, I wrote a small program with these lines of code:
Locale myLocale = Locale.getDefault();
System.out.println(myLocale.toString());
ResourceBundle resources;
try {
resources =
ResourceBundle.getBundle("org.apache.xerces.utils.regex.message",
myLocale);
} catch (MissingResourceException mre) {
System.out.println("Installation Problem??? Couldn't load
messages: "
+mre.getMessage());
}
System.out.println("Got resource bundle");
-------------------------------------------------------------------------------------
The output was:
en_US
Got resource bundle
I am guessing that since my default locale is en_US, and it's not
complaining that it can't find message_en_US, that it must be picking up
the message.properties file. You could try setting your locale to (en,
US) or perhaps copy the messages.properties file to
messages_en_US.properties.
I cannot help with your other problems, I am not using cygwin to build.
Can't you just use the xerces.jar file that came with xerces 1.4.0?
Good luck.
Mary Ryan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]