Being Windows you probably need to use backslashes instead of forward slashes
classpath.2=..\lib\*.jar
If that isn't sufficient try adding
working.directory=.
to ensure that the relative paths are resolved against the right base directory. If all else fails you could add a manifest to your main JAR file with a Class-Path
that enumerates all the ../lib/file.jar
files and do away with classpath.2
altogether.
Edit: seeing that stack trace it looks like WinRun4J is not setting up the thread context classloader properly. Try adding
Thread.currentThread().setContextClassLoader(
AppServico.class.getClassLoader());
to the top of your serviceMain
, before you instantiate anything Spring/CXF related.