I think the trick is you must set the value before the vm attempt to
load any classes from the endorsed packages (xml, corba and a few
others).
-dain
On Jul 4, 2005, at 11:40 AM, Jeff Genender wrote:
Well if thats working for TCK...I'll be the first to admit I am wrong.
Early on in the Tomcat integration development, we attempted to set
the endorsed.dir in the TomcatContainer GBean through an attribute,
but it never stuck. We could never get the Tomcat container to
launch without the dreaded XML/Doc error. Perhaps it needs to be
done in the main class as opposed to the TomcatContainer (could
this have to do with when the classes are loaded?). I am willing
to try this out. Could you point me in the direction to where this
gets set in the main class? I would be happy to verify this indeed
works (or doesn't work) with Tomcat.
Jeff
Dain Sundstrom wrote:
That is weird. The endorsed dir in the main class seems to work
for the TCK tests.
-dain
On Jul 4, 2005, at 9:57 AM, Jeff Genender wrote:
Dain,
This won't work...the JVM seems to need this at startup. We
tried having the classes set this property themselves, but there
is something in pre-startup of the JVM that requires this
setting in order for the endorsed dirs to take effect. Setting
it once the JVM has started results in the endorsed.dir property
being ignored.
Jeff
Dain Sundstrom wrote:
That should be added automatically by the main class.
-dain
On Jul 3, 2005, at 9:36 PM, Jeff Genender (JIRA) wrote:
[ http://issues.apache.org/jira/browse/GERONIMO-693?
page=comments#action_12314982 ]
Jeff Genender commented on GERONIMO-693:
----------------------------------------
Do not forget the -Djava.endorsed.dirs=lib/endorsed to the
java command line in these scripts or Tomcat will not run.
Need startup scripts in bin directory
-------------------------------------
Key: GERONIMO-693
URL: http://issues.apache.org/jira/browse/GERONIMO-693
Project: Geronimo
Type: New Feature
Environment: Windows, Linux, Mac OS X
Reporter: Erin Mulder
Assignee: John Sisson
Priority: Minor
It would be nice to have obvious startup.sh and startup.bat
scripts in the bin directory so that the user doesn't need to
look at the README file to figure out how to start the
server. (java - jar bin/server.jar isn't hard -- it's just
not quite as brainless as a script called "startup").
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the
administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira