|
From: Leif M. <le...@ta...> - 2008-02-08 04:56:46
|
I was meaning that it is important to look at the original run.bat script to find out what all the parameters should be for the version you are using. Java does not in itself have access to environment variables so everything should be getting passed in on the command line generated by run.bat. The key is to duplicate that command line in the wrapper.conf file. Try modifying the run.bat file to echo the resulting command line rather than running it. You can then find out exactly what is being generated to help you with creating the wrapper.conf. If you post that generated java command line along with your wrapper.conf I could probably point out the problem. If your code has JNI libraries or something which needs the actual environment variables then you can set them up using the following syntax in your wrapper.conf. This will create a variable "FOO" with a value of "Bar": set.FOO=Bar Cheers, Leif JaM wrote: > Well I am using an older version of JBoss 4.0.3SP1, but in any event > what do you mean by go through the steps with the version of JBoss I > am using? I followed the procedure (or at least think I did) to get > it to launch and shutdown as I expect, but like I said for some reason > I get the web services (one in particular that relies on some > environment variables) reacts differently then if I had just launched > it using run.bat. Is there some other parameter that I need to pass > to get this to work appropriately? > > On Feb 7, 2008 9:37 PM, Leif Mortenson <le...@ta... > <mailto:le...@ta...>> wrote: > > Those instructions are an example of what needs to be done. They > were generated for an old version of JBoss. I really need to go back > and bring them up to date at some point. > > To get things working, you need to go through the steps with the > version of JBoss that you are using. > > Cheers, > Leif > > JaM wrote: > > I am attempting to use Java Service Wrapper to launch JBoss and have > > followed the instructions in integration method 1 and at > > http://wiki.jboss.org/wiki/Wiki.jsp?page=RunJBossAsAServiceOnWindows > > but for whatever reason I get different behavior if I use the > service > > or just launch run.bat. The issue I am seeing is that it seems > as if > > system properties are not being loaded using the Service like > they are > > when I use run.bat. > > Any ideas how to trouble shoot this? > |