I have created a proxy to a webservice using Jdeveloper. All Works fine when I run the java application that calls the webservice through Jdeveloper. When I try running the application from a console window (eg java webservicecleint) I get the PrivilegedActionException.
Any ideas as to why it does that. I am running the colsole version from the same machine where Jdeveloper is running
a short report of my progress: All the hints that I have to add to the classpath the needed jar files were right. I figured out that running a jar file with "java -jar" ignores the -cp option. I finally found out how to add the Class-Path tag to the mainifest file in JDeveloper Deployment-Profile.
Now my program runs from a DOS-Box (java -jar archive1.jar arg1 arg2) with no error message. But unfortunately also with no reply. It just ends very shortly.
So I will keep hanging on to the problem.
Joined: Apr 23, 2008
finally I gave up the path to create a jar file. Java didn't react as I expected from the documentation.
I continued using all class files. And finally I got it run outside the JDeveloper.
It still needs a little tuning but I have a base I can work on.
Thanks to all,
Joined: Jul 01, 2008
Are there any solutions to this? I am having the same problem.
I have a web service proxy within JDeveloper (created from a wsdl file). I created a .java file to call the web service. It runs fine within JDeveloper. When I deploy it to a .jar file I get the exception: "Exception in thread "main" java.long.NoClassDefFoundError: javax/xml/rpc/ServiceFactory"
Joined: Mar 22, 2005
Is that class contained in the jar file, or otherwise in the classpath, when the WS client is run?