|
From: Lars S. <Lar...@if...> - 2009-11-06 13:29:02
|
One more thing, if I copy the command the wrapper gives to Java in a terminal window my application runs without problems, I mean the output I get from: wrapper.java.command.loglevel=INFO Lars Lars Schnoor wrote: > Hi > I have a Java application that is started in a special way. I have a > main class in my application that implements the WrapperListener > interface. > from the command prompt I can start my application with: > java -cp /myApplication/.jar /special.start.class/ -/"parameter to > special start class"/ /myStartClass/ > I can start my application by the above line on both Windows and Linux. > > On Windows I put the following line in my wrapper.conf: > *wrapper.java.mainclass=special.start.class -"parameter to special > start class" myStartClass* > And it works fine. > > On Linux (Red Hat Enterprise Linux 5 64-bit) I tried the same, putting > the same line in the wrapper.conf: > *wrapper.java.mainclass=special.start.class -"parameter to special > start class" myStartClass* > Here it does not work, I get an ClassNotFoundException for the class: > *special.start.class -"parameter to special start class" myStartClass > *For me it seems as if the wrapper on Linux sees *special.start.class > -"parameter to special start class" myStartClass* as one class, where > the wrapper on Windows starts the /special.start.class/ with > /-"parameter to special start class" myStartClass/ as parameters. > I tried putting: > *wrapper.java.mainclass=special.start.class > wrapper.app.parameter.1=-"parameter to special start class" myStartClass* > in the wrapper.conf and with this the wrapper starts, but since the > /special.start.class/ does not implement the WrapperListener > interface, the wrapper shuts down after five tries. > Any idea how I can get it to work on Linux, I am using version 3.2.3 > of the wrapper? > Thanks in advance! > > Lars > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > ------------------------------------------------------------------------ > > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |