I built and ran your snippet with one small change, I moved the println(...)
for success into 
the try block. This means it wouldn't print if an exception were thrown. I
got the following:

        en_US
        Installation Problem???  Couldn't load messages: can't find resource
for org.apache.xerces.utils.regex.message_en_US

This indicates to me that setting my locale to en,US would not help as it is
already that.
I have already tried: "...copy the messages.properties file to
messages_en_US.properties."
This did not work either.

-----Original Message-----
From: Mary Ryan [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2001 2:43 PM
To: [EMAIL PROTECTED]
Subject: Re: Can't find resource for ...regex.message _en_US


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]



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

Reply via email to