You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jarek Gawor (JIRA)" <ji...@apache.org> on 2008/11/25 19:29:44 UTC

[jira] Resolved: (GERONIMO-4431) webservice deployment is failing Not able to generate the wsdl due AccessControlException

     [ https://issues.apache.org/jira/browse/GERONIMO-4431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Gawor resolved GERONIMO-4431.
-----------------------------------

    Resolution: Invalid
      Assignee: Jarek Gawor

Start server with the following property:

export JAVA_OPTS=-Dorg.apache.cxf.jaxws.checkPublishEndpointPermission=false

As per spec, app servers are supposed to block publishing new web service endpoints via the Endpoint API. This system property will disable the check and will allow you to publish a new endpoint.


> webservice deployment is failing Not able to generate the wsdl due AccessControlException
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-4431
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4431
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: webservices
>    Affects Versions: 2.1
>         Environment: CXF2.1, Spring 2.5, Geronimo 2.1
>            Reporter: kishore
>            Assignee: Jarek Gawor
>
> Hi, 
>       I am getting the java.security.AccessControlException exception while deploying the webservice application  using Spring +CXF . Pls see the trace below..
> Caused by: java.security.AccessControlException: access denied (javax.xml.ws.WebServicePermission publishEndpoint)
> 	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
> 	at java.security.AccessController.checkPermission(AccessController.java:427)
> 	at org.apache.cxf.jaxws.EndpointImpl.checkPublishPermission(EndpointImpl.java:389)
> 	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:248)
> 	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:201)
> 	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:394)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1413)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1374)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
> 	... 83 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.