You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Björn Voigt <bj...@itgis.com> on 2004/12/07 10:19:09 UTC

System property org.xml.sax.parser not specified ???

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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: System property org.xml.sax.parser not specified ???

Posted by Björn Voigt <bj...@itgis.com>.
works fine

thank you

Björn





Jorg Heymans wrote:
> 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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: System property org.xml.sax.parser not specified ???

Posted by Jorg Heymans <jh...@domek.be>.
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org