You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by pieter <pi...@atosorigin.com> on 2011/06/07 13:20:49 UTC

Deploy CXF on oracle OC4J

Hello,

We have a problem (or problems accually) deploying a CXF web service on an
oracle OC4J server.
We just tried to deploy an ear (with war that works on local tomcat server),
but we had error after error we could fix (mostly jar issue) untill this
one. And we have no clue on how to solve this.


SEVERE: ProgressObjectImpl.reportError Error creating bean with name
'testService': Invocation of init method failed; 
nested exception is javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionExceptionoracle.oc4j.admin.jmx.shared.exceptions.InternalException:
Error creating bean with name 'testService': Invocation of init method
failed; 
nested exception is javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException
        at
oracle.oc4j.admin.jmx.shared.deploy.NotificationUserData.<init>(NotificationUserData.java:107)
        at
oracle.oc4j.admin.internal.Notifier.reportError(Notifier.java:429)
        at
oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:130)
        at
oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
        at
oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
        at
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
        at java.lang.Thread.run(Thread.java:595)
Caused by: oracle.oc4j.admin.internal.DeployerException: Error creating bean
with name 'testService': Invocation of init method failed; 
nested exception is javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1403)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
        at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
        at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:272)
        at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:196)
        at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        at
com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1279)
        at
com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:848)
        at
com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:435)
        at
com.evermind.server.Application.getHttpApplication(Application.java:592)
        at
com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2280)
        at
com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:2199)
        at
com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1833)
        at
oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:304)
        at
oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:120)
        at
oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:92)
        at
oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:825)
        at
oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:276)
        at
oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:100)
        ... 4 more

11/06/07 13:02:10 Notification ==>Operation failed with error:
Error creating bean with name 'testService': Invocation of init method
failed; 
nested exception is javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException


SEVERE: J2EEDeploymentManager.deploy Deploy error: Operation failed with
error:
Error creating bean with name 'testService': Invocation of init method
failed; 
nested exception is javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException
oracle.oc4j.admin.deploy.api.J2EEDeploymentException: Operation failed with
error:
Error creating bean with name 'testService': Invocation of init method
failed; 
nested exception is javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException

        at
oracle.oc4j.admin.deploy.api.J2EEDeploymentManager.deploy(J2EEDeploymentManager.java:369)
        at
oracle.oc4j.admin.deploy.api.J2EEDeploymentManager.deploy(J2EEDeploymentManager.java:318)
        at
oracle.oc4j.admin.deploy.cmdline.DeployCommand.doExecute(DeployCommand.java:187)
        at
oracle.oc4j.admin.deploy.cmdline.AdminCommandBase.execute(AdminCommandBase.java:63)
        at
oracle.oc4j.admin.deploy.cmdline.Oc4jAdminCmdline.executeCommand(Oc4jAdminCmdline.java:110)
        at
oracle.oc4j.admin.deploy.cmdline.Oc4jAdminCmdline.main(Oc4jAdminCmdline.java:75)


Deploy error: Deploy error: Operation failed with error:
Error creating bean with name 'testService': Invocation of init method
failed; 
nested exception is javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException


Anybody who has a clue on what is wrong?


Thanks !


--
View this message in context: http://cxf.547215.n5.nabble.com/Deploy-CXF-on-oracle-OC4J-tp4461467p4461467.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Deploy CXF on oracle OC4J

Posted by Daniel Kulp <dk...@apache.org>.

Honestly, I have no idea.   It's not giving the real stack trace for where the 
ServiceConstructionException occurred so it's really hard to figure out what 
might be causing is.   No idea if there is some extra logging in OC4J that 
could be turned on to help diagnose this.   :-(

Dan

On Tuesday, June 07, 2011 7:20:49 AM pieter wrote:
> Hello,
> 
> We have a problem (or problems accually) deploying a CXF web service on an
> oracle OC4J server.
> We just tried to deploy an ear (with war that works on local tomcat
> server), but we had error after error we could fix (mostly jar issue)
> untill this one. And we have no clue on how to solve this.
> 
> 
> SEVERE: ProgressObjectImpl.reportError Error creating bean with name
> 'testService': Invocation of init method failed;
> nested exception is javax.xml.ws.WebServiceException:
> org.apache.cxf.service.factory.ServiceConstructionExceptionoracle.oc4j.admi
> n.jmx.shared.exceptions.InternalException: Error creating bean with name
> 'testService': Invocation of init method failed;
> nested exception is javax.xml.ws.WebServiceException:
> org.apache.cxf.service.factory.ServiceConstructionException
>         at
> oracle.oc4j.admin.jmx.shared.deploy.NotificationUserData.<init>(Notificatio
> nUserData.java:107) at
> oracle.oc4j.admin.internal.Notifier.reportError(Notifier.java:429)
>         at
> oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:130)
>         at
> oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JD
> eployerRunnable.java:52) at
> oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRun
> nable.java:81) at
> com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableR
> esourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:595)
> Caused by: oracle.oc4j.admin.internal.DeployerException: Error creating
> bean with name 'testService': Invocation of init method failed;
> nested exception is javax.xml.ws.WebServiceException:
> org.apache.cxf.service.factory.ServiceConstructionException
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
> y.initializeBean(AbstractAutowireCapableBeanFactory.java:1403) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
> y.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
> y.createBean(AbstractAutowireCapableBeanFactory.java:450) at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(A
> bstractBeanFactory.java:290) at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getS
> ingleton(DefaultSingletonBeanRegistry.java:222) at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abs
> tractBeanFactory.java:287) at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstr
> actBeanFactory.java:189) at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preIns
> tantiateSingletons(DefaultListableBeanFactory.java:562) at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFa
> ctoryInitialization(AbstractApplicationContext.java:871) at
> org.springframework.context.support.AbstractApplicationContext.refresh(Abst
> ractApplicationContext.java:423) at
> org.springframework.web.context.ContextLoader.createWebApplicationContext(C
> ontextLoader.java:272) at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(Con
> textLoader.java:196) at
> org.springframework.web.context.ContextLoaderListener.contextInitialized(Co
> ntextLoaderListener.java:47) at
> com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1
> 279) at
> com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:848)
>         at
> com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationS
> tateRunning.java:435) at
> com.evermind.server.Application.getHttpApplication(Application.java:592)
>         at
> com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHtt
> pApplicationFromReference(HttpSite.java:2280) at
> com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(Ht
> tpSite.java:2199) at
> com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1833)
>         at
> oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBi
> nder.java:304) at
> oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBi
> nder.java:120) at
> oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBi
> nder.java:92) at
> oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeploy
> er.java:825) at
> oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer
> .java:276) at
> oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:100)
>         ... 4 more
> 
> 11/06/07 13:02:10 Notification ==>Operation failed with error:
> Error creating bean with name 'testService': Invocation of init method
> failed;
> nested exception is javax.xml.ws.WebServiceException:
> org.apache.cxf.service.factory.ServiceConstructionException
> 
> 
> SEVERE: J2EEDeploymentManager.deploy Deploy error: Operation failed with
> error:
> Error creating bean with name 'testService': Invocation of init method
> failed;
> nested exception is javax.xml.ws.WebServiceException:
> org.apache.cxf.service.factory.ServiceConstructionException
> oracle.oc4j.admin.deploy.api.J2EEDeploymentException: Operation failed with
> error:
> Error creating bean with name 'testService': Invocation of init method
> failed;
> nested exception is javax.xml.ws.WebServiceException:
> org.apache.cxf.service.factory.ServiceConstructionException
> 
>         at
> oracle.oc4j.admin.deploy.api.J2EEDeploymentManager.deploy(J2EEDeploymentMan
> ager.java:369) at
> oracle.oc4j.admin.deploy.api.J2EEDeploymentManager.deploy(J2EEDeploymentMan
> ager.java:318) at
> oracle.oc4j.admin.deploy.cmdline.DeployCommand.doExecute(DeployCommand.java
> :187) at
> oracle.oc4j.admin.deploy.cmdline.AdminCommandBase.execute(AdminCommandBase.
> java:63) at
> oracle.oc4j.admin.deploy.cmdline.Oc4jAdminCmdline.executeCommand(Oc4jAdminC
> mdline.java:110) at
> oracle.oc4j.admin.deploy.cmdline.Oc4jAdminCmdline.main(Oc4jAdminCmdline.jav
> a:75)
> 
> 
> Deploy error: Deploy error: Operation failed with error:
> Error creating bean with name 'testService': Invocation of init method
> failed;
> nested exception is javax.xml.ws.WebServiceException:
> org.apache.cxf.service.factory.ServiceConstructionException
> 
> 
> Anybody who has a clue on what is wrong?
> 
> 
> Thanks !
> 
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Deploy-CXF-on-oracle-OC4J-tp4461467p446146
> 7.html Sent from the cxf-user mailing list archive at Nabble.com.

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com