Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-2844

CXF JAXWS implementation is not endorsed

    Details

      Description

      When I ran the cxf test org.jboss.test.ws.jaxws.cxf.webserviceref.WebServiceRefServletTestCase with a Java 2 security manager, I got the follow error. There is no endorsed jars in installed cxf stack jboss server , so the ServiceObjectFacotry uses sun'sRI class in JDK .The metro stack also does not endorse .
      ------------------------------------------------------------------------------------------
      17:42:08,210 ERROR [[ServletClient]] Allocate exception for servlet ServletClient
      java.security.AccessControlException: access denied (java.io.FilePermission /x1/code/jbossws/lab/jboss-5.1.0.GA/server/default/deployers/jbossws.deployer read)
      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
      at java.security.AccessController.checkPermission(AccessController.java:546)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
      at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
      at java.io.File.lastModified(File.java:824)
      at org.jboss.virtual.plugins.context.file.FileHandler.getLastModified(FileHandler.java:135)
      at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.hasBeenModified(AbstractVirtualFileHandler.java:196)
      at org.jboss.virtual.plugins.context.file.FileHandler.createChildHandler(FileHandler.java:286)
      at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:684)
      at org.jboss.virtual.plugins.context.file.FileHandler.getChild(FileHandler.java:303)
      at org.jboss.virtual.plugins.registry.DefaultVFSRegistry.findHandler(DefaultVFSRegistry.java:124)
      at org.jboss.virtual.plugins.registry.DefaultVFSRegistry.getFile(DefaultVFSRegistry.java:107)
      at org.jboss.virtual.plugins.registry.DefaultVFSRegistry.getFile(DefaultVFSRegistry.java:140)
      at org.jboss.virtual.protocol.AbstractVFSHandler.openConnection(AbstractVFSHandler.java:71)
      at java.net.URL.openConnection(URL.java:945)
      at java.net.URL.openStream(URL.java:1010)
      at com.sun.org.apache.xml.internal.resolver.Catalog.parseCatalog(Catalog.java:673)
      at com.sun.xml.internal.ws.util.xml.XmlUtil.createDefaultCatalogResolver(XmlUtil.java:288)
      at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:254)
      at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:217)
      at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:165)
      at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:93)
      at javax.xml.ws.Service.<init>(Service.java:56)
      at org.jboss.test.ws.jaxws.cxf.webserviceref.EndpointService.<init>(EndpointService.java:53)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at org.jboss.wsf.stack.cxf.client.ServiceObjectFactory.getObjectInstance(ServiceObjectFactory.java:162)
      at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
      at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1479)
      at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1496)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:822)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
      at org.jboss.ejb3.JndiUtil.lookup(JndiUtil.java:44)
      at org.jboss.injection.JndiPropertyInjector.lookup(JndiPropertyInjector.java:75)
      at org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:99)
      at org.jboss.web.tomcat.service.TomcatInjectionContainer.processInjectors(TomcatInjectionContainer.java:366)
      at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:271)
      at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:265)
      at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1006)
      at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:777)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:619)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jim.ma Jim Ma
                  Reporter:
                  jim.ma Jim Ma
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: