Hi!

Oleg Nitz wrote:
> Rickard �berg wrote:
> R�> System properties settings should be done through
> R�> /conf/jboss.properties, not like this. Did you try that and it failed,
> R�> or why have you added it to the script?
> Oh, sorry, I wasn't aware of this rule.
> I'll try to change this as you propose.

Good!

> What about "-Dtomcat.home"? ;-)

That's a trickier one since it uses a sys env variable. 

What is it used for BTW? If it is used for the inVM (but not embedded)
Tomcat to define the home of Tomcat, then the following could be placed
in the Tomcat service I think:
Class tomcatClass = Class.forName("org.apache.tomcat.startup.Tomcat");
URL tomcatUrl =
tomcatClass.getProtectionDomain().getCodeSource().getLocation();
String tomcatHome = new File(new
File(tomcatUrl.getFile()).getParent().getParent(), "bin").toString();
System.setProperty("tomcat.home", tomcatHome);

Or something like that anyway. Sebastien, can you try if this works?

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com


Reply via email to