cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mert Caliskan (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CXF-4757) Can't deploy CXF based service/client onto WebLogic12c
Date Thu, 17 Jan 2013 14:16:12 GMT

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

Mert Caliskan closed CXF-4757.
------------------------------

    Resolution: Fixed

adding application package preference into weblogic.xml solved the issue.

<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app 
	xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd
http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd">
    <wls:container-descriptor>
        <wls:prefer-application-packages>  
	     	<wls:package-name>org.apache.cxf.*</wls:package-name>  
   		</wls:prefer-application-packages>  
    </wls:container-descriptor>
</wls:weblogic-web-app>

                
> Can't deploy CXF based service/client onto WebLogic12c
> ------------------------------------------------------
>
>                 Key: CXF-4757
>                 URL: https://issues.apache.org/jira/browse/CXF-4757
>             Project: CXF
>          Issue Type: Bug
>          Components: Integration
>    Affects Versions: 2.7.2
>         Environment: Linux bugday 2.6.32-279.14.1.el6.x86_64 #1 SMP Mon Oct 15 13:44:51
EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Mert Caliskan
>
> while spring context is getting up, I'm getting the exception below.
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'fakeIDRetrieval': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException:
java.lang.RuntimeException: Invalid schema document passed to AbstractDataBinding.addSchemaDocument,
not in W3C schema namespace: schema
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
> 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
> 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:605)
> 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472)
> 	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
> 	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
> 	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
> 	at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:582)
> 	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> 	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
> 	at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
> 	at weblogic.servlet.internal.EventsManager.executeContextListener(EventsManager.java:233)
> 	at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:190)
> 	at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:175)
> 	at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1730)
> 	at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2740)
> 	at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1704)
> 	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:781)
> 	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213)
> 	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
> 	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
> 	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70)
> 	at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:212)
> 	at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:111)
> 	at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
> 	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213)
> 	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
> 	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
> 	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70)
> 	at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:24)
> 	at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:729)
> 	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
> 	at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258)
> 	at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:48)
> 	at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
> 	at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
> 	at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:192)
> 	at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:369)
> 	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:261)
> 	at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:246)
> 	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:186)
> 	at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:94)
> 	at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
> 	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
> 	at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
> Caused by: javax.xml.ws.WebServiceException: java.lang.RuntimeException: Invalid schema
document passed to AbstractDataBinding.addSchemaDocument, not in W3C schema namespace: schema
> 	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:358)
> 	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:248)
> 	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:527)
> 	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:597)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1581)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1522)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
> 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
> 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:605)
> 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:926)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472)
> 	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384)
> 	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
> 	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
> 	at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:582)
> 	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> 	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
> 	at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
> 	at weblogic.servlet.internal.EventsManager.executeContextListener(EventsManager.java:233)
> 	at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:190)
> 	at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:176)
> 	at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1732)
> 	at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2741)
> 	at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1704)
> 	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:782)
> 	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:214)
> 	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
> 	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
> 	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70)
> 	at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:213)
> 	at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:112)
> 	at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:125)
> 	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:214)
> 	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
> 	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
> 	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70)
> 	at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:25)
> 	at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:730)
> 	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
> 	at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258)
> 	at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:48)
> 	at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
> 	at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
> 	at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:192)
> 	at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:369)
> 	at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:52)
> 	at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
> 	at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:31)
> 	at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:261)
> 	at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:246)
> 	at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:170)
> 	at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:124)
> 	at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:187)
> 	at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:95)
> 	... 3 more
> Caused by: java.lang.RuntimeException: Invalid schema document passed to AbstractDataBinding.addSchemaDocument,
not in W3C schema namespace: schema
> 	at org.apache.cxf.databinding.AbstractDataBinding.addSchemaDocument(AbstractDataBinding.java:109)
> 	at org.apache.cxf.databinding.AbstractDataBinding.addSchemaDocument(AbstractDataBinding.java:95)
> 	at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:385)
> 	at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:88)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:476)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:691)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:536)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:250)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)
> 	at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
> 	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:443)
> 	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:331)
> 	... 64 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message