We are using Embedded Tomcat here and we used to get sealing violations
when we were trying to use Xerces as the XML parser - or more accurately,
when trying to keep xerces.jar in front of jaxp.jar in the classpath. There
was some talk about fixing that problem on this list or on tomcat-dev
(can't remember which). Including bootstrap.jar is not enough - when using
Embedded, you'll need to handle your configuration manually - although, as
Craig pointed out, you could take a look at how startup.java reads the
config from server.xml. (I decided not to).
Klaus Sonnenleiter
At 04:24 PM 5/9/2001 +0000, you wrote:
>Hi,
>
>I'm having some problems using Embedded tomcat (Tomcat 4.x)
>in my application. Whenever I try to acess a context added dynamically,I
>get a
>securityException (it reports "Sealing violation"). Running the
>Embedded::main
>method reports exactly the same error.
>
>I supose the error is related with my CLASSPATH env, because I include all the
>jars in the tomcat distr before executing. I understand that this isn't
>correct,
>as the bootstrap.jar should dynamically load all the necessary classes; But
>bootstrap.jar doesn't have the Embedded class, also it doesn't seems that
>Embedded does the required dynamic loading like the Bootstrap one.
>
>If this is really the problem, what CLASSPATH should I use for running/using
>the Embedded tomcat? Should I add Embedded to the bootstrap.jar?
>
>Thanks for all,
>
>Artur Matos ([EMAIL PROTECTED])
>
>-------------------------------------------------
>Everyone should have http://www.freedom2surf.net/