cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wangjlc <wang...@163.com>
Subject Re: CXF3 Server-side token validation issues
Date Thu, 25 Dec 2014 07:24:50 GMT
*Come to think of it, I added to the WebLogic startup script in the
setDomainEnv.sh JAVA_OPTIONS the following configuration*


-Dorg.apache.cxf.stax.allowInsecureParser=1

*But if you do not add this option, start WebLogic will report the following
error. Increased start WebLogic doesn't complain, JAVA_OPTIONS this has
anything to do with token authentication error above?*


2014-12-25 14:14:26 org.springframework.web.context.ContextLoader
initWebApplicationContext
SEVERE: Context initialization failed
Throwable occurred: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'iproviderconnector': Invocation of init
method failed; nested exception is javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException: Failed to
create service.
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1512)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)
	at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
	at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
	at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
	at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
	at
weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
	at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
	at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
	at
weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
	at
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
	at
weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
	at
weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
	at
weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
	at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
	at
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
	at
weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
	at
weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
	at
weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
	at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
	at
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
	at
weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
	at
weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
	at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
	at
weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
	at
weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
	at
weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
	at
weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
	at
weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
	at
weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
	at
weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
	at
weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
	at
weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
	at
weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
	at
weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
	at
weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
	at
weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
	at
weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
	at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
	at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException: Failed to
create service.
	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:371)
	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)
	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:539)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1638)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1579)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1509)
	... 48 more
Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
Failed to create service.
	at
org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:87)
	at
org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:391)
	at
org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:525)
	at
org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:261)
	at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:215)
	at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
	at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
	at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
	at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456)
	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334)
	... 57 more
Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR:
java.lang.RuntimeException: Cannot create a secure XMLInputFactory
	at
org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:221)
	at
org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:163)
	at
org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:85)
	... 66 more
Caused by: java.lang.RuntimeException: Cannot create a secure
XMLInputFactory
	at
org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:314)
	at
org.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(StaxUtils.java:264)
	at
org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1516)
	at
org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1415)
	at
org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:208)
	... 68 more
<2014-12-25 pm02:14:26 CST> <Warning> <HTTP> <BEA-101162> <User
defined
listener org.springframework.web.context.ContextLoaderListener failed:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'iproviderconnector': Invocation of init method failed; nested
exception is javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException: Failed to
create service..
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'iproviderconnector': Invocation of init method failed; nested
exception is javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException: Failed to
create service.
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1512)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
	Truncated. see log file for complete stacktrace
Caused By: javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException: Failed to
create service.
	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:371)
	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)
	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:539)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
	Truncated. see log file for complete stacktrace
Caused By: org.apache.cxf.service.factory.ServiceConstructionException:
Failed to create service.
	at
org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init>(WSDLServiceFactory.java:87)
	at
org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:391)
	at
org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:525)
	at
org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:261)
	at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:215)
	Truncated. see log file for complete stacktrace
Caused By: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR:
java.lang.RuntimeException: Cannot create a secure XMLInputFactory
	at
org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:221)
	at
org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:163)
	at
org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:85)
	at
org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:391)
	at
org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:525)
	Truncated. see log file for complete stacktrace
Caused By: java.lang.RuntimeException: Cannot create a secure
XMLInputFactory
	at
org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:314)
	at
org.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(StaxUtils.java:264)
	at
org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1516)
	at
org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1415)
	at
org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:208)
	Truncated. see log file for complete stacktrace
> 
<2014-12-25 pm02:14:26 CST> <Error> <Deployer> <BEA-149231> <Unable
to set
the activation state to true for the application 'cbsd_ws'.
weblogic.application.ModuleException: 
	at
weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)
	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
	at
weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
	at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
	at
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
	Truncated. see log file for complete stacktrace
Caused By: java.lang.RuntimeException: Cannot create a secure
XMLInputFactory
	at
org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:314)
	at
org.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(StaxUtils.java:264)
	at
org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1516)
	at
org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1415)
	at
org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:208)
	Truncated. see log file for complete stacktrace
>



--
View this message in context: http://cxf.547215.n5.nabble.com/CXF3-Server-side-token-validation-issues-tp5752544p5752731.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Mime
View raw message