|
From: <da...@sm...> - 2006-03-08 05:46:02
|
Cyrene, What method of integration are you using, 1 2 or 3. Having a copy of your testfile.java might help identify the problem. Many thanks, David Hayes Quoting Cyrene Law <cyr...@gm...>: > i downloaded the wrapper_linux_3.1.2, i create a jar file named > testfile.jarand put it into 'lib' folder which contain > wrapper.jar and libwrapper.so.I also make the testfile.jar as execute (chmod > +x) > > Then i copy the sh.script.in into the 'bin' folder, and named it as > 'testfile' and chmod +x for 'testfile'.I only edit the > APP_Name="testfile" > APP_LONG_NAME="my testfile" > > Then i copy the 'wrapper.conf.in' to 'conf' folder and rename it as.I add: > wrapper.java.classpath.2=../lib/testfile.jar > wrapper.app.parameter=testfile > > (because my main file is testfile.class) > > After that,i try to run it: > ./testfile console > > it displays error: > WrapperSimpleApp:Encountered an error running main: > java.lang.IlegalAccessException: class > org.tanukisoftware.wrapper.wrapperSimleApp cannot access a member of class > testfile with modifier 'public static' > > if i edit the 'wrapper.conf' as below: > wrapper.java.mainclass=org.tanukisoftware.wrapper.test.main > > it displays error: > Exception in thread 'main' java > .lang.NoClassDefFoundError:org/tanukisoftware/wrapper/test/main > > > What steps are wrong during the process? > > Can you send me a detail guide and example using java service > wrapper?Urgently wanted.My email is cyr...@gm... > > Thank you in advanced. > |