|
From: Leif M. <le...@ta...> - 2006-01-27 01:30:11
|
John,
Open your debug wrapper.log in an editor and copy the full command
used to launch
the Wrapper into a new batch file. Remove the -Dwrapper.key property,
but leave the
rest of it unmodified. You should now be able to run the exact same
command that the
Wrapper is using to launch the JVM. Something must be different in
there somewhere
but this will make it easy to track the problem down while taking the
Wrapper out of
the equation.
Questions.
1) Does the above batch file fail in the same way as the Wrapper?
2) What is being used for your java command? Is it locating java on the
PATH or have
you specified an absolute JVM to use?
3) What is the class that is failing to load? What jar is it found in?
and Does that jar
file appear in the command in the batch file?
Cheers
Leif
Volkar, John wrote:
> I've been successfully using the java service wrapper for a while now;
> but have just ran into a very odd situation.
>
> I have a set of files (jars, dlls, etc), directories and a .properties
> file that works just fine on a Win XP box, but when the entire setup is
> put on a Windows 2000 machine, the service fails to start indicating a
> class not found error.
>
> I think to myself; well the classpath must not be right, must have got
> something moved around wrong... After investigation no, everything looks
> fine...
>
> So I try running 'java -cp yada;yada;yada' from the command line and
> specify the classpath as normal and the app runs just fine...
>
> So I do a 'wrapper -c My.props wrapper.debug=true' and look at the full
> command line the wrapper is using and it looks...
> ...Just fine. So now I'm really confused...
>
> I've tried searching this mailinglist to no real avail; is there any
> known issue with Win2K and wrapper? Where can I even being to go from
> here? Thoughts or suggestions welcomed.
>
> Why would something run from the commandline, but fail under the wrapper
> (in console mode) with a class not found when they both have exactly the
> same classpath?
>
> Regards,
> John Volkar
|