Set java_opts with the property ?

JAVA_OPTS=-Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser

HTH
Jorg

Bj�rn Voigt wrote:
Moin Cocooners,

I am using the org.exolab.castor.xml.Marshaller inside Generator.
The generator works fine running within a jetty.

public void generate() throws SAXException {
  try {

    Marshaller.marshal(new MyBean(),this.contentHandler);

} catch (Exception e) {
[..]


  }
}

If I deploy the webapplication to tomcat,
I get the following Exception:

org.xml.sax.SAXException: System property org.xml.sax.parser not specified
        at org.xml.sax.helpers.ParserAdapter.<init>(Unknown Source)
        at org.exolab.castor.xml.Marshaller.<init>(Marshaller.java:334)
        at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:722)
    [...]

What can I do to fix this problem? Any idea?

Thanks for help

Bj�rn


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



Reply via email to