|
From: JaM <je...@gm...> - 2008-02-08 12:48:29
|
Also I just tried to add some env variables like set.VARIABLE=c:/folder_location and the application is still working as if the env variables were not set. On Feb 8, 2008 7:44 AM, JaM <je...@gm...> wrote: > Attached is the wrapper.conf I am using. This file exists in > %JBOSS_HOME%\bin\Java Service Wrapper\conf. > > Here is the command JBoss is executing which works like a champ: > "C:\java\jdk1.5.0_14\bin\java" -Dprogram.name=run.bat -Xms128m -Xmx512m > "-Djava.endorsed.dirs=C:\jboss-4.0.3SP1\bin\\..\lib\endorsed" -classpath > "C:\java\jdk1.5.0_14\lib\tools.jar;C:\jboss-4.0.3SP1\bin\\run.jar" > org.jboss.Main > > > The results I am getting when launching using the wrapper are the same as > if I do not have the environment variables set when using run.bat. > Anything you could point out would be a huge help! Thanks again > > Jamie > > > On Feb 7, 2008 11:56 PM, Leif Mortenson <le...@ta...> wrote: > > > I was meaning that it is important to look at the original run.batscript > > 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? > > > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Wrapper-user mailing list > > Wra...@li... > > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > > |