I moved the wsdl to my web server docroot so I can access it from the web,
and set the wsdllocation to that address,
http://localhost:8080/example.wsdl.

This works so far but than I get this exception when trying to run it as a
web start application:

Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
        at
com.sun.xml.internal.ws.util.xml.XmlUtil.createDefaultCatalogResolver(Unknown
Source)
        at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(Unknown
Source)
        at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown 
Source)
        at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown 
Source)
        at 
com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(Unknown
Source)
        at javax.xml.ws.Service.<init>(Unknown Source)


Is this related to signing of the jars? I am pretty sure all the jars that
need to be signed are currently getting signed.


caseyd418 wrote:
> 
> I have a web start app that is all packaged and signed as a single jar
> (with a couple of dependent jars). This is all being deployed as a WAR to
> a Glassfish server for right now. Eventually will be deployed to a tomcat
> server. 
> 
> I have generated a CXF client using wsdl2java (CXF version 2.2.5)
> specifying the wsdlLocation as "classpath:example.wsdl". 
> My example.wsdl is located at the root of my jar at the same level as my
> topmost package. This is within the jar that is being deployed as the web
> start application. When I try to run it, I get the following exception:
> 
> Exception in thread "AWT-EventQueue-0"
> java.security.AccessControlException: access denied
> (java.util.PropertyPermission user.dir read)
>       at java.security.AccessControlContext.checkPermission(Unknown Source)
>       at java.security.AccessController.checkPermission(Unknown Source)
>       at java.lang.SecurityManager.checkPermission(Unknown Source)
>       at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
>       at java.lang.System.getProperty(Unknown Source)
>       at java.io.Win32FileSystem.getUserPath(Unknown Source)
>       at java.io.Win32FileSystem.resolve(Unknown Source)
>       at java.io.File.getCanonicalPath(Unknown Source)
>       at java.io.File.getCanonicalFile(Unknown Source)
>       at com.sun.xml.internal.ws.util.JAXWSUtils.absolutize(Unknown Source)
>       at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown
> Source)
>       at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown
> Source)
>       at 
> com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(Unknown
> Source)
>       at javax.xml.ws.Service.<init>(Unknown Source)
> 
> I have other files in this same location (mostly images) that I am
> accessing just fine. 
> 
> Any ideas? I've been working at this for a couple of days now.
> 
> Thanks!
> 
> 

-- 
View this message in context: 
http://old.nabble.com/AccessControlException-using-CXF-in-Web-Start-App-tp26971079p26980457.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to