You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by COUBLANC Robert <Ro...@3ds.com> on 2012/12/07 16:45:15 UTC
TOMEE web service deployment failure.
Hello.
I installed apache-tomee-plus-1.5.1-SNAPSHOT , and I was trying to test the deployment of a very simple Jaxws web service (Calculator), but it’s failing each time I launch the server :
Infos: Creating Service {http://myws.sample}CalculatorService from class ws.sample.CalculatorWs
dΘc. 07, 2012 4:41:09 PM org.apache.cxf.endpoint.ServerImpl initDestination
Infos: Setting the server's publish address to be http://nopath:80
dΘc. 07, 2012 4:41:09 PM org.apache.openejb.server.webservices.WsService afterApplicationCreated
Grave: Error deploying CXF webservice for servlet ws.sample.Calculator
java.lang.IllegalArgumentException: Could not find servlet ws.sample.Calculator in web application context /WSTEST
at org.apache.tomee.webservices.TomcatWsRegistry.setWsContainer(TomcatWsRegistry.java:107)
at org.apache.openejb.server.webservices.WsService.afterApplicationCreated(WsService.java:365)
at org.apache.tomee.webservices.TomeeJaxWsService.afterApplicationCreated(TomeeJaxWsService.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.openejb.observer.ObserverManager$Observer.invoke(ObserverManager.java:145)
at org.apache.openejb.observer.ObserverManager.fireEvent(ObserverManager.java:69)
at org.apache.openejb.loader.SystemInstance.fireEvent(SystemInstance.java:107)
at org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:1290)
at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:104)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:168)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.tomee.catalina.TomcatWebAppBuilder.deployWar(TomcatWebAppBuilder.java:530)
at org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:499)
at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:903)
at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:537)
at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:533)
at org.apache.tomee.catalina.TomcatWebAppBuilder.checkHost(TomcatWebAppBuilder.java:1588)
at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:124)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
at java.lang.Thread.run(Thread.java:722)
I do not understand why, I just copied a sample test class into an eclipse dynamic web project, and generated an ear to be deployed in TOMEE+
I guess I missed something, but do not find what. Can you help me?
Thanks
Cordialement / Best Regards,
Robert COUBLANC
R&D 3D Experience Platform Cloud Supervision & Web Services Senior Technology Manager
Office: +33 1 6162 8541
robert.coublanc@3ds.com<ma...@3ds.com>
[3DS Logo]
3DS.COM<http://www.3ds.com/>
Dassault Systèmes | 10 rue Marcel Dassault, CS 40501 | 78946 Vélizy-Villacoublay Cedex | France
This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.
If you are not one of the named recipients or have received this email in error,
(i) you should not read, disclose, or copy it,
(ii) please notify sender of your receipt by reply email and delete this email and all attachments,
(iii) Dassault Systemes does not accept or assume any liability or responsibility for any use of or reliance on this email.
For other languages, go to http://www.3ds.com/terms/email-disclaimer
Re: TOMEE web service deployment failure.
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Is it possible for you to share your project (on github or anything else)?
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/10 Robert Coublanc <Ro...@3ds.com>:
> No, I just created the war with the Calculator WebService simple class, and the web.xml with the webservice “servlet” definition. Then, I copied the war in TOMEE+, under webapps, that’s all..
>
> I’m just new to TOMEE and jax-ws webservices deployment, we were used to deploy our apps with our own ws infrastructure…Now we want to use standard JAX-WS web services with TOMEE
>
>
>
> Cordialement / Best Regards,
>
> Robert COUBLANC Robert COUBLANC
>
> R&D 3D Experience Platform Cloud Supervision & Web Services Senior Technology Manager
>
>
>
>
>
> Office: +33 1 6162 8541
> robert.coublanc@3ds.com<ma...@3ds.com>
>
> [3DS Logo]
>
> 3DS.COM<http://www.3ds.com>
>
>
> Dassault Systèmes | 10 rue Marcel Dassault, CS 40501 | 78946 Vélizy-Villacoublay Cedex | France
>
>
> De : Romain Manni-Bucau [via OpenEJB] [mailto:ml-node+s979440n4659339h3@n4.nabble.com]
> Envoyé : lundi 10 décembre 2012 10:46
> À : COUBLANC Robert
> Objet : Re: TOMEE web service deployment failure.
>
> did you provide cxf in the webapp?
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2012/12/10 Robert Coublanc <[hidden email]</user/SendEmail.jtp?type=node&node=4659339&i=0>>:
>
>> Hello. Indeed, it's a pojo, with only @webservice annotations inside. And I
>> did not add the servlet tags into the web.xml.
>>
>> I have now another error message, after the <servlet>...</servlet>
>> declaration :
>> <servlet>
>> <servlet-name>CalculatorService</servlet-name>
>> <servlet-class>
>> ws.sample.Calculator
>> </servlet-class>
>> </servlet>
>>
>> <servlet-mapping>
>> <servlet-name>CalculatorService</servlet-name>
>> <url-pattern>/CalculatorService</url-pattern>
>> </servlet-mapping>
>>
>> the message is :
>> Infos: Creating Service {http://myws.sample}CalculatorService from class
>> ws.sample.CalculatorWs
>> dΘc. 10, 2012 10:34:29 AM org.apache.openejb.server.webservices.WsService
>> afterApplicationCreated
>> Grave: Error deploying CXF webservice for servlet ws.sample.Calculator
>> org.apache.cxf.service.factory.ServiceConstructionException
>> at
>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createDefaultDataBinding(ReflectionServiceFactoryBean.java:232)
>> at
>> org.apache.cxf.service.factory.AbstractServiceFactoryBean.getDataBinding(AbstractServiceFactoryBean.java:109)
>> at
>> org.apache.cxf.service.factory.AbstractServiceFactoryBean.getDataBinding(AbstractServiceFactoryBean.java:105)
>> at
>> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:662)
>> at
>> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:638)
>> at
>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:468)
>> at
>> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:690)
>> at
>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:536)
>> at
>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:248)
>> at
>> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)
>> at
>> org.apache.openejb.server.cxf.pojo.PojoEndpoint.<init>(PojoEndpoint.java:66)
>> at
>> org.apache.openejb.server.cxf.pojo.PojoWsContainer.createEndpoint(PojoWsContainer.java:43)
>> at
>> org.apache.openejb.server.cxf.pojo.PojoWsContainer.createEndpoint(PojoWsContainer.java:28)
>> at
>> org.apache.openejb.server.cxf.CxfWsContainer.start(CxfWsContainer.java:54)
>> at
>> org.apache.openejb.server.cxf.CxfService.createPojoWsContainer(CxfService.java:79)
>> at
>> org.apache.openejb.server.webservices.WsService.afterApplicationCreated(WsService.java:359)
>> at
>> org.apache.tomee.webservices.TomeeJaxWsService.afterApplicationCreated(TomeeJaxWsService.java:54)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:601)
>> at
>> org.apache.openejb.observer.ObserverManager$Observer.invoke(ObserverManager.java:145)
>> at
>> org.apache.openejb.observer.ObserverManager.fireEvent(ObserverManager.java:69)
>> at
>> org.apache.openejb.loader.SystemInstance.fireEvent(SystemInstance.java:107)
>> at
>> org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:1290)
>> at
>> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:104)
>> at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>> at
>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>> at
>> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
>> at
>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:168)
>> at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>> at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>> at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>> at
>> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWar(TomcatWebAppBuilder.java:530)
>> at
>> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:499)
>> at
>> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:903)
>> at
>> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:537)
>> at
>> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:974)
>> at
>> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:893)
>> at
>> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
>> at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>> at
>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>> at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
>> at
>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>> at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>> at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>> at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>> at
>> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
>> at
>> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
>> at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> at
>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>> at java.lang.Thread.run(Thread.java:722)
>> Caused by: java.lang.ClassCastException: class
>> org.apache.cxf.jaxb.JAXBDataBinding
>> at java.lang.Class.asSubclass(Class.java:3037)
>> at
>> org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass(ClassLoaderUtils.java:253)
>> at
>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createDefaultDataBinding(ReflectionServiceFactoryBean.java:220)
>> ... 54 more
>>
>> thanks for your help.
>> Robert
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> PS : the snapshot was : apache-tomee-1.5.1-20121205.041514-100-plus
>>
>>
>>
>> --
>> View this message in context: http://openejb.979440.n4.nabble.com/TOMEE-web-service-deployment-failure-tp4659216p4659338.html
>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
> ________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://openejb.979440.n4.nabble.com/TOMEE-web-service-deployment-failure-tp4659216p4659339.html
> To unsubscribe from TOMEE web service deployment failure., click here<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4659216&code=Um9iZXJ0LkNPVUJMQU5DQDNkcy5jb218NDY1OTIxNnwtNTEwMTI5NjA4>.
> NAML<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.
>
> If you are not one of the named recipients or have received this email in error,
>
> (i) you should not read, disclose, or copy it,
>
> (ii) please notify sender of your receipt by reply email and delete this email and all attachments,
>
> (iii) Dassault Systemes does not accept or assume any liability or responsibility for any use of or reliance on this email.
>
> For other languages, go to http://www.3ds.com/terms/email-disclaimer
>
>
> image003.gif (6K) <http://openejb.979440.n4.nabble.com/attachment/4659340/0/image003.gif>
> image004.jpg (1K) <http://openejb.979440.n4.nabble.com/attachment/4659340/1/image004.jpg>
>
>
>
>
> --
> View this message in context: http://openejb.979440.n4.nabble.com/TOMEE-web-service-deployment-failure-tp4659216p4659340.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
RE: TOMEE web service deployment failure.
Posted by Robert Coublanc <Ro...@3ds.com>.
No, I just created the war with the Calculator WebService simple class, and the web.xml with the webservice “servlet” definition. Then, I copied the war in TOMEE+, under webapps, that’s all..
I’m just new to TOMEE and jax-ws webservices deployment, we were used to deploy our apps with our own ws infrastructure…Now we want to use standard JAX-WS web services with TOMEE
Cordialement / Best Regards,
Robert COUBLANC Robert COUBLANC
R&D 3D Experience Platform Cloud Supervision & Web Services Senior Technology Manager
Office: +33 1 6162 8541
robert.coublanc@3ds.com<ma...@3ds.com>
[3DS Logo]
3DS.COM<http://www.3ds.com>
Dassault Systèmes | 10 rue Marcel Dassault, CS 40501 | 78946 Vélizy-Villacoublay Cedex | France
De : Romain Manni-Bucau [via OpenEJB] [mailto:ml-node+s979440n4659339h3@n4.nabble.com]
Envoyé : lundi 10 décembre 2012 10:46
À : COUBLANC Robert
Objet : Re: TOMEE web service deployment failure.
did you provide cxf in the webapp?
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/10 Robert Coublanc <[hidden email]</user/SendEmail.jtp?type=node&node=4659339&i=0>>:
> Hello. Indeed, it's a pojo, with only @webservice annotations inside. And I
> did not add the servlet tags into the web.xml.
>
> I have now another error message, after the <servlet>...</servlet>
> declaration :
> <servlet>
> <servlet-name>CalculatorService</servlet-name>
> <servlet-class>
> ws.sample.Calculator
> </servlet-class>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>CalculatorService</servlet-name>
> <url-pattern>/CalculatorService</url-pattern>
> </servlet-mapping>
>
> the message is :
> Infos: Creating Service {http://myws.sample}CalculatorService from class
> ws.sample.CalculatorWs
> dΘc. 10, 2012 10:34:29 AM org.apache.openejb.server.webservices.WsService
> afterApplicationCreated
> Grave: Error deploying CXF webservice for servlet ws.sample.Calculator
> org.apache.cxf.service.factory.ServiceConstructionException
> at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createDefaultDataBinding(ReflectionServiceFactoryBean.java:232)
> at
> org.apache.cxf.service.factory.AbstractServiceFactoryBean.getDataBinding(AbstractServiceFactoryBean.java:109)
> at
> org.apache.cxf.service.factory.AbstractServiceFactoryBean.getDataBinding(AbstractServiceFactoryBean.java:105)
> at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:662)
> at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:638)
> at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:468)
> at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:690)
> at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:536)
> at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:248)
> at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)
> at
> org.apache.openejb.server.cxf.pojo.PojoEndpoint.<init>(PojoEndpoint.java:66)
> at
> org.apache.openejb.server.cxf.pojo.PojoWsContainer.createEndpoint(PojoWsContainer.java:43)
> at
> org.apache.openejb.server.cxf.pojo.PojoWsContainer.createEndpoint(PojoWsContainer.java:28)
> at
> org.apache.openejb.server.cxf.CxfWsContainer.start(CxfWsContainer.java:54)
> at
> org.apache.openejb.server.cxf.CxfService.createPojoWsContainer(CxfService.java:79)
> at
> org.apache.openejb.server.webservices.WsService.afterApplicationCreated(WsService.java:359)
> at
> org.apache.tomee.webservices.TomeeJaxWsService.afterApplicationCreated(TomeeJaxWsService.java:54)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at
> org.apache.openejb.observer.ObserverManager$Observer.invoke(ObserverManager.java:145)
> at
> org.apache.openejb.observer.ObserverManager.fireEvent(ObserverManager.java:69)
> at
> org.apache.openejb.loader.SystemInstance.fireEvent(SystemInstance.java:107)
> at
> org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:1290)
> at
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:104)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> at
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
> at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:168)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
> at
> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWar(TomcatWebAppBuilder.java:530)
> at
> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:499)
> at
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:903)
> at
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:537)
> at
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:974)
> at
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:893)
> at
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
> at
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
> at
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:722)
> Caused by: java.lang.ClassCastException: class
> org.apache.cxf.jaxb.JAXBDataBinding
> at java.lang.Class.asSubclass(Class.java:3037)
> at
> org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass(ClassLoaderUtils.java:253)
> at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createDefaultDataBinding(ReflectionServiceFactoryBean.java:220)
> ... 54 more
>
> thanks for your help.
> Robert
>
>
>
>
>
>
>
>
>
> PS : the snapshot was : apache-tomee-1.5.1-20121205.041514-100-plus
>
>
>
> --
> View this message in context: http://openejb.979440.n4.nabble.com/TOMEE-web-service-deployment-failure-tp4659216p4659338.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
________________________________
If you reply to this email, your message will be added to the discussion below:
http://openejb.979440.n4.nabble.com/TOMEE-web-service-deployment-failure-tp4659216p4659339.html
To unsubscribe from TOMEE web service deployment failure., click here<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4659216&code=Um9iZXJ0LkNPVUJMQU5DQDNkcy5jb218NDY1OTIxNnwtNTEwMTI5NjA4>.
NAML<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.
If you are not one of the named recipients or have received this email in error,
(i) you should not read, disclose, or copy it,
(ii) please notify sender of your receipt by reply email and delete this email and all attachments,
(iii) Dassault Systemes does not accept or assume any liability or responsibility for any use of or reliance on this email.
For other languages, go to http://www.3ds.com/terms/email-disclaimer
image003.gif (6K) <http://openejb.979440.n4.nabble.com/attachment/4659340/0/image003.gif>
image004.jpg (1K) <http://openejb.979440.n4.nabble.com/attachment/4659340/1/image004.jpg>
--
View this message in context: http://openejb.979440.n4.nabble.com/TOMEE-web-service-deployment-failure-tp4659216p4659340.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: TOMEE web service deployment failure.
Posted by Romain Manni-Bucau <rm...@gmail.com>.
did you provide cxf in the webapp?
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/10 Robert Coublanc <Ro...@3ds.com>:
> Hello. Indeed, it's a pojo, with only @webservice annotations inside. And I
> did not add the servlet tags into the web.xml.
>
> I have now another error message, after the <servlet>...</servlet>
> declaration :
> <servlet>
> <servlet-name>CalculatorService</servlet-name>
> <servlet-class>
> ws.sample.Calculator
> </servlet-class>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>CalculatorService</servlet-name>
> <url-pattern>/CalculatorService</url-pattern>
> </servlet-mapping>
>
> the message is :
> Infos: Creating Service {http://myws.sample}CalculatorService from class
> ws.sample.CalculatorWs
> dΘc. 10, 2012 10:34:29 AM org.apache.openejb.server.webservices.WsService
> afterApplicationCreated
> Grave: Error deploying CXF webservice for servlet ws.sample.Calculator
> org.apache.cxf.service.factory.ServiceConstructionException
> at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createDefaultDataBinding(ReflectionServiceFactoryBean.java:232)
> at
> org.apache.cxf.service.factory.AbstractServiceFactoryBean.getDataBinding(AbstractServiceFactoryBean.java:109)
> at
> org.apache.cxf.service.factory.AbstractServiceFactoryBean.getDataBinding(AbstractServiceFactoryBean.java:105)
> at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:662)
> at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:638)
> at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:468)
> at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:690)
> at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:536)
> at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:248)
> at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)
> at
> org.apache.openejb.server.cxf.pojo.PojoEndpoint.<init>(PojoEndpoint.java:66)
> at
> org.apache.openejb.server.cxf.pojo.PojoWsContainer.createEndpoint(PojoWsContainer.java:43)
> at
> org.apache.openejb.server.cxf.pojo.PojoWsContainer.createEndpoint(PojoWsContainer.java:28)
> at
> org.apache.openejb.server.cxf.CxfWsContainer.start(CxfWsContainer.java:54)
> at
> org.apache.openejb.server.cxf.CxfService.createPojoWsContainer(CxfService.java:79)
> at
> org.apache.openejb.server.webservices.WsService.afterApplicationCreated(WsService.java:359)
> at
> org.apache.tomee.webservices.TomeeJaxWsService.afterApplicationCreated(TomeeJaxWsService.java:54)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at
> org.apache.openejb.observer.ObserverManager$Observer.invoke(ObserverManager.java:145)
> at
> org.apache.openejb.observer.ObserverManager.fireEvent(ObserverManager.java:69)
> at
> org.apache.openejb.loader.SystemInstance.fireEvent(SystemInstance.java:107)
> at
> org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:1290)
> at
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:104)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> at
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
> at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:168)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
> at
> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWar(TomcatWebAppBuilder.java:530)
> at
> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:499)
> at
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:903)
> at
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:537)
> at
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:974)
> at
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:893)
> at
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
> at
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
> at
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:722)
> Caused by: java.lang.ClassCastException: class
> org.apache.cxf.jaxb.JAXBDataBinding
> at java.lang.Class.asSubclass(Class.java:3037)
> at
> org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass(ClassLoaderUtils.java:253)
> at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createDefaultDataBinding(ReflectionServiceFactoryBean.java:220)
> ... 54 more
>
> thanks for your help.
> Robert
>
>
>
>
>
>
>
>
>
> PS : the snapshot was : apache-tomee-1.5.1-20121205.041514-100-plus
>
>
>
> --
> View this message in context: http://openejb.979440.n4.nabble.com/TOMEE-web-service-deployment-failure-tp4659216p4659338.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: TOMEE web service deployment failure.
Posted by Robert Coublanc <Ro...@3ds.com>.
Hello. Indeed, it's a pojo, with only @webservice annotations inside. And I
did not add the servlet tags into the web.xml.
I have now another error message, after the <servlet>...</servlet>
declaration :
<servlet>
<servlet-name>CalculatorService</servlet-name>
<servlet-class>
ws.sample.Calculator
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CalculatorService</servlet-name>
<url-pattern>/CalculatorService</url-pattern>
</servlet-mapping>
the message is :
Infos: Creating Service {http://myws.sample}CalculatorService from class
ws.sample.CalculatorWs
dΘc. 10, 2012 10:34:29 AM org.apache.openejb.server.webservices.WsService
afterApplicationCreated
Grave: Error deploying CXF webservice for servlet ws.sample.Calculator
org.apache.cxf.service.factory.ServiceConstructionException
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createDefaultDataBinding(ReflectionServiceFactoryBean.java:232)
at
org.apache.cxf.service.factory.AbstractServiceFactoryBean.getDataBinding(AbstractServiceFactoryBean.java:109)
at
org.apache.cxf.service.factory.AbstractServiceFactoryBean.getDataBinding(AbstractServiceFactoryBean.java:105)
at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:662)
at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:638)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:468)
at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:690)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:536)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:248)
at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)
at
org.apache.openejb.server.cxf.pojo.PojoEndpoint.<init>(PojoEndpoint.java:66)
at
org.apache.openejb.server.cxf.pojo.PojoWsContainer.createEndpoint(PojoWsContainer.java:43)
at
org.apache.openejb.server.cxf.pojo.PojoWsContainer.createEndpoint(PojoWsContainer.java:28)
at
org.apache.openejb.server.cxf.CxfWsContainer.start(CxfWsContainer.java:54)
at
org.apache.openejb.server.cxf.CxfService.createPojoWsContainer(CxfService.java:79)
at
org.apache.openejb.server.webservices.WsService.afterApplicationCreated(WsService.java:359)
at
org.apache.tomee.webservices.TomeeJaxWsService.afterApplicationCreated(TomeeJaxWsService.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.apache.openejb.observer.ObserverManager$Observer.invoke(ObserverManager.java:145)
at
org.apache.openejb.observer.ObserverManager.fireEvent(ObserverManager.java:69)
at
org.apache.openejb.loader.SystemInstance.fireEvent(SystemInstance.java:107)
at
org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:1290)
at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:104)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:168)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at
org.apache.tomee.catalina.TomcatWebAppBuilder.deployWar(TomcatWebAppBuilder.java:530)
at
org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:499)
at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:903)
at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:537)
at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:974)
at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:893)
at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassCastException: class
org.apache.cxf.jaxb.JAXBDataBinding
at java.lang.Class.asSubclass(Class.java:3037)
at
org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass(ClassLoaderUtils.java:253)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createDefaultDataBinding(ReflectionServiceFactoryBean.java:220)
... 54 more
thanks for your help.
Robert
PS : the snapshot was : apache-tomee-1.5.1-20121205.041514-100-plus
--
View this message in context: http://openejb.979440.n4.nabble.com/TOMEE-web-service-deployment-failure-tp4659216p4659338.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
RE: TOMEE web service deployment failure.
Posted by Robert Coublanc <Ro...@3ds.com>.
Hi again, with some help of a teammate, I succeeded to push my sample to GitHub . Meanwhile, comparing with your sample, I just found that I had written @WebService() rather thant @WebService . Removing this parenthesis makes mySample deploy well in TOMEE …
I’m going to test with my real WebService now ☺…
Thanks again for your quick answers and help.
Bye
Robert
Cordialement / Best Regards,
Robert COUBLANC Robert COUBLANC
R&D 3D Experience Platform Cloud Supervision & Web Services Senior Technology Manager
Office: +33 1 6162 8541
robert.coublanc@3ds.com<ma...@3ds.com>
[3DS Logo]
3DS.COM<http://www.3ds.com>
Dassault Systèmes | 10 rue Marcel Dassault, CS 40501 | 78946 Vélizy-Villacoublay Cedex | France
De : Romain Manni-Bucau [via OpenEJB] [mailto:ml-node+s979440n4659346h20@n4.nabble.com]
Envoyé : lundi 10 décembre 2012 11:35
À : COUBLANC Robert
Objet : Re: TOMEE web service deployment failure.
would be perfect if you can commit the project (to let us browse the
code online) -> should appear here
https://github.com/RobertCoublanc/JAXWSSampleService
btw, can you check your conf compare to the example i gave previously please?
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/10 Robert Coublanc <[hidden email]</user/SendEmail.jtp?type=node&node=4659346&i=0>>:
> Yes, there are 2 "download" items ( I'm new to github too :), so I perharps did the wrong way?)
>
> Cordialement / Best Regards,
>
> Robert COUBLANC Robert COUBLANC
>
> R&D 3D Experience Platform Cloud Supervision & Web Services Senior Technology Manager
>
>
>
>
>
> Office: +33 1 6162 8541
> [hidden email]</user/SendEmail.jtp?type=node&node=4659346&i=1><mailto:[hidden email]</user/SendEmail.jtp?type=node&node=4659346&i=2>>
>
> [3DS Logo]
>
> 3DS.COM<http://www.3ds.com>
>
>
> Dassault Systèmes | 10 rue Marcel Dassault, CS 40501 | 78946 Vélizy-Villacoublay Cedex | France
>
>
> De : Romain Manni-Bucau [via OpenEJB] [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=4659346&i=3>]
> Envoyé : lundi 10 décembre 2012 11:26
> À : COUBLANC Robert
> Objet : Re: TOMEE web service deployment failure.
>
> you pushed? i only see the readme
>
> BTW
>
>
>
> @WebService
> public interface I {
> String foo();
> }
>
> @WebService
> public class WS implements I {
> public String foo() {
> return "ok";
> }
> }
>
> with the following web.xml:
>
> <web-app xmlns="http://java.sun.com/xml/ns/javaee"
> 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/web-app_2_5.xsd"
> metadata-complete="false"
> version="2.5">
> <servlet>
> <servlet-name>WS</servlet-name>
> <servlet-class>org.WS</servlet-class>
> </servlet>
> <servlet-mapping>
> <servlet-name>WS</servlet-name>
> <url-pattern>/ws</url-pattern>
> </servlet-mapping>
> </web-app>
>
> works perfectly
>
>
> here the pom FYI::
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd">
> <modelVersion>4.0.0</modelVersion>
>
> <groupId>ws</groupId>
> <artifactId>ws</artifactId>
> <version>1.0-SNAPSHOT</version>
> <packaging>war</packaging>
>
> <dependencies>
> <dependency>
> <groupId>org.apache.openejb</groupId>
> <artifactId>javaee-api</artifactId>
> <version>6.0-4</version>
> <scope>provided</scope>
> </dependency>
> </dependencies>
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.2</version>
> <configuration>
> <failOnMissingWebXml>false</failOnMissingWebXml>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.openejb.maven</groupId>
> <artifactId>tomee-maven-plugin</artifactId>
> <version>1.0.1-SNAPSHOT</version>
> <configuration>
> <tomeeClassifier>plus</tomeeClassifier>
> </configuration>
> </plugin>
> </plugins>
> </build>
> </project>
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2012/12/10 Robert Coublanc <[hidden email]</user/SendEmail.jtp?type=node&node=4659343&i=0>>:
>> RobertCoublanc
>
> ________________________________
> If you reply to this email, your message will be added to the discussion below:
>
> NAML<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.
>
> If you are not one of the named recipients or have received this email in error,
>
> (i) you should not read, disclose, or copy it,
>
> (ii) please notify sender of your receipt by reply email and delete this email and all attachments,
>
> (iii) Dassault Systemes does not accept or assume any liability or responsibility for any use of or reliance on this email.
>
> For other languages, go to http://www.3ds.com/terms/email-disclaimer
>
>
> image001.jpg (1K) <http://openejb.979440.n4.nabble.com/attachment/4659344/0/image001.jpg>
> image002.gif (6K) <http://openejb.979440.n4.nabble.com/attachment/4659344/1/image002.gif>
>
>
>
>
> --
> View this message in context: http://openejb.979440.n4.nabble.com/TOMEE-web-service-deployment-failure-tp4659216p4659344.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
________________________________
If you reply to this email, your message will be added to the discussion below:
http://openejb.979440.n4.nabble.com/TOMEE-web-service-deployment-failure-tp4659216p4659346.html
To unsubscribe from TOMEE web service deployment failure., click here<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4659216&code=Um9iZXJ0LkNPVUJMQU5DQDNkcy5jb218NDY1OTIxNnwtNTEwMTI5NjA4>.
NAML<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.
If you are not one of the named recipients or have received this email in error,
(i) you should not read, disclose, or copy it,
(ii) please notify sender of your receipt by reply email and delete this email and all attachments,
(iii) Dassault Systemes does not accept or assume any liability or responsibility for any use of or reliance on this email.
For other languages, go to http://www.3ds.com/terms/email-disclaimer
image003.gif (6K) <http://openejb.979440.n4.nabble.com/attachment/4659358/0/image003.gif>
image004.jpg (1K) <http://openejb.979440.n4.nabble.com/attachment/4659358/1/image004.jpg>
--
View this message in context: http://openejb.979440.n4.nabble.com/TOMEE-web-service-deployment-failure-tp4659216p4659358.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: TOMEE web service deployment failure.
Posted by Romain Manni-Bucau <rm...@gmail.com>.
would be perfect if you can commit the project (to let us browse the
code online) -> should appear here
https://github.com/RobertCoublanc/JAXWSSampleService
btw, can you check your conf compare to the example i gave previously please?
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/10 Robert Coublanc <Ro...@3ds.com>:
> Yes, there are 2 "download" items ( I'm new to github too :), so I perharps did the wrong way?)
>
> Cordialement / Best Regards,
>
> Robert COUBLANC Robert COUBLANC
>
> R&D 3D Experience Platform Cloud Supervision & Web Services Senior Technology Manager
>
>
>
>
>
> Office: +33 1 6162 8541
> robert.coublanc@3ds.com<ma...@3ds.com>
>
> [3DS Logo]
>
> 3DS.COM<http://www.3ds.com>
>
>
> Dassault Systèmes | 10 rue Marcel Dassault, CS 40501 | 78946 Vélizy-Villacoublay Cedex | France
>
>
> De : Romain Manni-Bucau [via OpenEJB] [mailto:ml-node+s979440n4659343h27@n4.nabble.com]
> Envoyé : lundi 10 décembre 2012 11:26
> À : COUBLANC Robert
> Objet : Re: TOMEE web service deployment failure.
>
> you pushed? i only see the readme
>
> BTW
>
>
>
> @WebService
> public interface I {
> String foo();
> }
>
> @WebService
> public class WS implements I {
> public String foo() {
> return "ok";
> }
> }
>
> with the following web.xml:
>
> <web-app xmlns="http://java.sun.com/xml/ns/javaee"
> 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/web-app_2_5.xsd"
> metadata-complete="false"
> version="2.5">
> <servlet>
> <servlet-name>WS</servlet-name>
> <servlet-class>org.WS</servlet-class>
> </servlet>
> <servlet-mapping>
> <servlet-name>WS</servlet-name>
> <url-pattern>/ws</url-pattern>
> </servlet-mapping>
> </web-app>
>
> works perfectly
>
>
> here the pom FYI::
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd">
> <modelVersion>4.0.0</modelVersion>
>
> <groupId>ws</groupId>
> <artifactId>ws</artifactId>
> <version>1.0-SNAPSHOT</version>
> <packaging>war</packaging>
>
> <dependencies>
> <dependency>
> <groupId>org.apache.openejb</groupId>
> <artifactId>javaee-api</artifactId>
> <version>6.0-4</version>
> <scope>provided</scope>
> </dependency>
> </dependencies>
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.2</version>
> <configuration>
> <failOnMissingWebXml>false</failOnMissingWebXml>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.openejb.maven</groupId>
> <artifactId>tomee-maven-plugin</artifactId>
> <version>1.0.1-SNAPSHOT</version>
> <configuration>
> <tomeeClassifier>plus</tomeeClassifier>
> </configuration>
> </plugin>
> </plugins>
> </build>
> </project>
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2012/12/10 Robert Coublanc <[hidden email]</user/SendEmail.jtp?type=node&node=4659343&i=0>>:
>> RobertCoublanc
>
> ________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://openejb.979440.n4.nabble.com/TOMEE-web-service-deployment-failure-tp4659216p4659343.html
> To unsubscribe from TOMEE web service deployment failure., click here<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4659216&code=Um9iZXJ0LkNPVUJMQU5DQDNkcy5jb218NDY1OTIxNnwtNTEwMTI5NjA4>.
> NAML<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.
>
> If you are not one of the named recipients or have received this email in error,
>
> (i) you should not read, disclose, or copy it,
>
> (ii) please notify sender of your receipt by reply email and delete this email and all attachments,
>
> (iii) Dassault Systemes does not accept or assume any liability or responsibility for any use of or reliance on this email.
>
> For other languages, go to http://www.3ds.com/terms/email-disclaimer
>
>
> image001.jpg (1K) <http://openejb.979440.n4.nabble.com/attachment/4659344/0/image001.jpg>
> image002.gif (6K) <http://openejb.979440.n4.nabble.com/attachment/4659344/1/image002.gif>
>
>
>
>
> --
> View this message in context: http://openejb.979440.n4.nabble.com/TOMEE-web-service-deployment-failure-tp4659216p4659344.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
RE: TOMEE web service deployment failure.
Posted by Robert Coublanc <Ro...@3ds.com>.
Yes, there are 2 "download" items ( I'm new to github too :), so I perharps did the wrong way?)
Cordialement / Best Regards,
Robert COUBLANC Robert COUBLANC
R&D 3D Experience Platform Cloud Supervision & Web Services Senior Technology Manager
Office: +33 1 6162 8541
robert.coublanc@3ds.com<ma...@3ds.com>
[3DS Logo]
3DS.COM<http://www.3ds.com>
Dassault Systèmes | 10 rue Marcel Dassault, CS 40501 | 78946 Vélizy-Villacoublay Cedex | France
De : Romain Manni-Bucau [via OpenEJB] [mailto:ml-node+s979440n4659343h27@n4.nabble.com]
Envoyé : lundi 10 décembre 2012 11:26
À : COUBLANC Robert
Objet : Re: TOMEE web service deployment failure.
you pushed? i only see the readme
BTW
@WebService
public interface I {
String foo();
}
@WebService
public class WS implements I {
public String foo() {
return "ok";
}
}
with the following web.xml:
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
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/web-app_2_5.xsd"
metadata-complete="false"
version="2.5">
<servlet>
<servlet-name>WS</servlet-name>
<servlet-class>org.WS</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>WS</servlet-name>
<url-pattern>/ws</url-pattern>
</servlet-mapping>
</web-app>
works perfectly
here the pom FYI::
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>ws</groupId>
<artifactId>ws</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<dependencies>
<dependency>
<groupId>org.apache.openejb</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0-4</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.2</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.openejb.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>1.0.1-SNAPSHOT</version>
<configuration>
<tomeeClassifier>plus</tomeeClassifier>
</configuration>
</plugin>
</plugins>
</build>
</project>
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/10 Robert Coublanc <[hidden email]</user/SendEmail.jtp?type=node&node=4659343&i=0>>:
> RobertCoublanc
________________________________
If you reply to this email, your message will be added to the discussion below:
http://openejb.979440.n4.nabble.com/TOMEE-web-service-deployment-failure-tp4659216p4659343.html
To unsubscribe from TOMEE web service deployment failure., click here<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4659216&code=Um9iZXJ0LkNPVUJMQU5DQDNkcy5jb218NDY1OTIxNnwtNTEwMTI5NjA4>.
NAML<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.
If you are not one of the named recipients or have received this email in error,
(i) you should not read, disclose, or copy it,
(ii) please notify sender of your receipt by reply email and delete this email and all attachments,
(iii) Dassault Systemes does not accept or assume any liability or responsibility for any use of or reliance on this email.
For other languages, go to http://www.3ds.com/terms/email-disclaimer
image001.jpg (1K) <http://openejb.979440.n4.nabble.com/attachment/4659344/0/image001.jpg>
image002.gif (6K) <http://openejb.979440.n4.nabble.com/attachment/4659344/1/image002.gif>
--
View this message in context: http://openejb.979440.n4.nabble.com/TOMEE-web-service-deployment-failure-tp4659216p4659344.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: TOMEE web service deployment failure.
Posted by Romain Manni-Bucau <rm...@gmail.com>.
you pushed? i only see the readme
BTW
@WebService
public interface I {
String foo();
}
@WebService
public class WS implements I {
public String foo() {
return "ok";
}
}
with the following web.xml:
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
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/web-app_2_5.xsd"
metadata-complete="false"
version="2.5">
<servlet>
<servlet-name>WS</servlet-name>
<servlet-class>org.WS</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>WS</servlet-name>
<url-pattern>/ws</url-pattern>
</servlet-mapping>
</web-app>
works perfectly
here the pom FYI::
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>ws</groupId>
<artifactId>ws</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<dependencies>
<dependency>
<groupId>org.apache.openejb</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0-4</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.2</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.openejb.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>1.0.1-SNAPSHOT</version>
<configuration>
<tomeeClassifier>plus</tomeeClassifier>
</configuration>
</plugin>
</plugins>
</build>
</project>
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/10 Robert Coublanc <Ro...@3ds.com>:
> RobertCoublanc
Re: TOMEE web service deployment failure.
Posted by Robert Coublanc <Ro...@3ds.com>.
hi again.
I shared a github project, under RobertCoublanc / JAXWSSampleService
I uploaded the directory structure exported from my eclipse, with the 2 java
files, and the web.xml,
and the war file generated from this hierarchy.
Thanks again for your help.
Regards
Robert
--
View this message in context: http://openejb.979440.n4.nabble.com/TOMEE-web-service-deployment-failure-tp4659216p4659342.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: TOMEE web service deployment failure.
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,
if it is an ejb that's a bug. If just a pojo you need to define it in
the web.xml as a servlet
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/7 Jean-Louis MONTEIRO <je...@gmail.com>:
> Good point Howard, war is usually far easier for simple needs.
> Could you share you simple sample?
> And provide us with the full log please.
>
> JLouis
>
>
> 2012/12/7 Howard W. Smith, Jr. <sm...@gmail.com>
>
>> Robert,
>>
>> What is the date/time/version of that SNAPSHOT?
>>
>> Per my experience, I usually prefer to drop my .war file in tomee /webapps
>> folder, and I have to remember to access it via the same name as the war
>> file. So, what I learned by experience is the following:
>>
>> 1. Netbeans generate WAR file named, mcms_tomee.war (since name of my
>> application in Netbeans = 'mcms_tomee')
>> 2. drop mcms_tomee.war in tomee /webapps folder
>> 3. I usually access the web app via context root name defined in NetBeans,
>> which is 'mcmsweb' (or URL below)
>>
>> http://localhost:8080/*mcmsweb*/login.jsf
>>
>> 4. but the above URL does not work, since WAR file was named mcms_tomee.war
>> 5. TomEE will unpack mcms_tomee.war, and place the contents in tomee
>> /webapps/mcms_tomee
>> 6. and i have to access the app via URL below
>>
>> http://localhost:8080/*mcms_tomee*/login.jsf
>>
>>
>> I know my example is web app and not a webservice, and I know i'm using
>> Netbeans while you're using Eclipse, but I hope that tidbit-of-informatoin
>> helps.
>>
>> Howard
>>
>>
>> On Fri, Dec 7, 2012 at 10:45 AM, COUBLANC Robert <Ro...@3ds.com>wrote:
>>
>>> Hello.
>>>
>>>
>>>
>>> I installed apache-tomee-plus-1.5.1-SNAPSHOT , and I was trying to test
>>> the deployment of a very simple Jaxws web service (Calculator), but it’s
>>> failing each time I launch the server :
>>>
>>>
>>>
>>>
>>>
>>> *Infos: Creating Service {http://myws.sample}CalculatorService from
>>> class ws.sample.CalculatorWs*
>>>
>>> *dΘc. 07, 2012 4:41:09 PM org.apache.cxf.endpoint.ServerImpl
>>> initDestination*
>>>
>>> *Infos: Setting the server's publish address to be http://nopath:80*
>>>
>>> *dΘc. 07, 2012 4:41:09 PM
>>> org.apache.openejb.server.webservices.WsService afterApplicationCreated*
>>>
>>> *Grave: Error deploying CXF webservice for servlet ws.sample.Calculator*
>>>
>>> *java.lang.IllegalArgumentException: Could not find servlet
>>> ws.sample.Calculator in web application context /WSTEST*
>>>
>>> * at
>>> org.apache.tomee.webservices.TomcatWsRegistry.setWsContainer(TomcatWsRegistry.java:107)
>>> *
>>>
>>> * at
>>> org.apache.openejb.server.webservices.WsService.afterApplicationCreated(WsService.java:365)
>>> *
>>>
>>> * at
>>> org.apache.tomee.webservices.TomeeJaxWsService.afterApplicationCreated(TomeeJaxWsService.java:54)
>>> *
>>>
>>> * at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
>>>
>>> * at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> *
>>>
>>> * at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> *
>>>
>>> * at java.lang.reflect.Method.invoke(Method.java:601)*
>>>
>>> * at
>>> org.apache.openejb.observer.ObserverManager$Observer.invoke(ObserverManager.java:145)
>>> *
>>>
>>> * at
>>> org.apache.openejb.observer.ObserverManager.fireEvent(ObserverManager.java:69)
>>> *
>>>
>>> * at
>>> org.apache.openejb.loader.SystemInstance.fireEvent(SystemInstance.java:107)
>>> *
>>>
>>> * at
>>> org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:1290)
>>> *
>>>
>>> * at
>>> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:104)
>>> *
>>>
>>> * at
>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>> *
>>>
>>> * at
>>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>>> *
>>>
>>> * at
>>> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
>>> *
>>>
>>> * at
>>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:168)*
>>>
>>> * at
>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>>> *
>>>
>>> * at
>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)*
>>>
>>> * at
>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)*
>>>
>>> * at
>>> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWar(TomcatWebAppBuilder.java:530)
>>> *
>>>
>>> * at
>>> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:499)
>>> *
>>>
>>> * at
>>> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:903)
>>> *
>>>
>>> * at
>>> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:537)
>>> *
>>>
>>> * at
>>> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:533)
>>> *
>>>
>>> * at
>>> org.apache.tomee.catalina.TomcatWebAppBuilder.checkHost(TomcatWebAppBuilder.java:1588)
>>> *
>>>
>>> * at
>>> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:124)
>>> *
>>>
>>> * at
>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>> *
>>>
>>> * at
>>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>>> *
>>>
>>> * at
>>> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)
>>> *
>>>
>>> * at
>>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
>>> *
>>>
>>> * at
>>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
>>> *
>>>
>>> * at
>>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
>>> *
>>>
>>> * at java.lang.Thread.run(Thread.java:722)*
>>>
>>>
>>>
>>>
>>>
>>> I do not understand why, I just copied a sample test class into an
>>> eclipse dynamic web project, and generated an ear to be deployed in TOMEE+
>>>
>>>
>>>
>>> I guess I missed something, but do not find what. Can you help me?
>>>
>>>
>>>
>>> Thanks
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *Cordialement / Best Regards, *
>>>
>>> Robert COUBLANC
>>>
>>> R&D 3D Experience Platform Cloud Supervision & Web Services Senior
>>> Technology Manager
>>>
>>> Office: +33 1 6162 8541
>>> robert.coublanc@3ds.com <Ro...@3ds.com>
>>>
>>> [image: 3DS Logo]
>>>
>>> *3DS.COM* <http://www.3ds.com/>
>>>
>>> *Dassault Systèmes* | *10 rue Marcel Dassault, CS 40501* | *78946
>>> Vélizy-Villacoublay Cedex* | *France*
>>>
>>>
>>>
>>>
>>>
>>> This email and any attachments are intended solely for the use of the
>>> individual or entity to whom it is addressed and may be confidential and/or
>>> privileged.
>>>
>>> If you are not one of the named recipients or have received this email in
>>> error,
>>>
>>> (i) you should not read, disclose, or copy it,
>>>
>>> (ii) please notify sender of your receipt by reply email and delete this
>>> email and all attachments,
>>>
>>> (iii) Dassault Systemes does not accept or assume any liability or
>>> responsibility for any use of or reliance on this email.
>>>
>>> For other languages, go to http://www.3ds.com/terms/email-disclaimer
>>>
>>
>>
>
>
> --
> Jean-Louis
Re: TOMEE web service deployment failure.
Posted by Jean-Louis MONTEIRO <je...@gmail.com>.
Good point Howard, war is usually far easier for simple needs.
Could you share you simple sample?
And provide us with the full log please.
JLouis
2012/12/7 Howard W. Smith, Jr. <sm...@gmail.com>
> Robert,
>
> What is the date/time/version of that SNAPSHOT?
>
> Per my experience, I usually prefer to drop my .war file in tomee /webapps
> folder, and I have to remember to access it via the same name as the war
> file. So, what I learned by experience is the following:
>
> 1. Netbeans generate WAR file named, mcms_tomee.war (since name of my
> application in Netbeans = 'mcms_tomee')
> 2. drop mcms_tomee.war in tomee /webapps folder
> 3. I usually access the web app via context root name defined in NetBeans,
> which is 'mcmsweb' (or URL below)
>
> http://localhost:8080/*mcmsweb*/login.jsf
>
> 4. but the above URL does not work, since WAR file was named mcms_tomee.war
> 5. TomEE will unpack mcms_tomee.war, and place the contents in tomee
> /webapps/mcms_tomee
> 6. and i have to access the app via URL below
>
> http://localhost:8080/*mcms_tomee*/login.jsf
>
>
> I know my example is web app and not a webservice, and I know i'm using
> Netbeans while you're using Eclipse, but I hope that tidbit-of-informatoin
> helps.
>
> Howard
>
>
> On Fri, Dec 7, 2012 at 10:45 AM, COUBLANC Robert <Ro...@3ds.com>wrote:
>
>> Hello.
>>
>>
>>
>> I installed apache-tomee-plus-1.5.1-SNAPSHOT , and I was trying to test
>> the deployment of a very simple Jaxws web service (Calculator), but it’s
>> failing each time I launch the server :
>>
>>
>>
>>
>>
>> *Infos: Creating Service {http://myws.sample}CalculatorService from
>> class ws.sample.CalculatorWs*
>>
>> *dΘc. 07, 2012 4:41:09 PM org.apache.cxf.endpoint.ServerImpl
>> initDestination*
>>
>> *Infos: Setting the server's publish address to be http://nopath:80*
>>
>> *dΘc. 07, 2012 4:41:09 PM
>> org.apache.openejb.server.webservices.WsService afterApplicationCreated*
>>
>> *Grave: Error deploying CXF webservice for servlet ws.sample.Calculator*
>>
>> *java.lang.IllegalArgumentException: Could not find servlet
>> ws.sample.Calculator in web application context /WSTEST*
>>
>> * at
>> org.apache.tomee.webservices.TomcatWsRegistry.setWsContainer(TomcatWsRegistry.java:107)
>> *
>>
>> * at
>> org.apache.openejb.server.webservices.WsService.afterApplicationCreated(WsService.java:365)
>> *
>>
>> * at
>> org.apache.tomee.webservices.TomeeJaxWsService.afterApplicationCreated(TomeeJaxWsService.java:54)
>> *
>>
>> * at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
>>
>> * at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> *
>>
>> * at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> *
>>
>> * at java.lang.reflect.Method.invoke(Method.java:601)*
>>
>> * at
>> org.apache.openejb.observer.ObserverManager$Observer.invoke(ObserverManager.java:145)
>> *
>>
>> * at
>> org.apache.openejb.observer.ObserverManager.fireEvent(ObserverManager.java:69)
>> *
>>
>> * at
>> org.apache.openejb.loader.SystemInstance.fireEvent(SystemInstance.java:107)
>> *
>>
>> * at
>> org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:1290)
>> *
>>
>> * at
>> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:104)
>> *
>>
>> * at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>> *
>>
>> * at
>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>> *
>>
>> * at
>> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
>> *
>>
>> * at
>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:168)*
>>
>> * at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>> *
>>
>> * at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)*
>>
>> * at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)*
>>
>> * at
>> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWar(TomcatWebAppBuilder.java:530)
>> *
>>
>> * at
>> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:499)
>> *
>>
>> * at
>> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:903)
>> *
>>
>> * at
>> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:537)
>> *
>>
>> * at
>> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:533)
>> *
>>
>> * at
>> org.apache.tomee.catalina.TomcatWebAppBuilder.checkHost(TomcatWebAppBuilder.java:1588)
>> *
>>
>> * at
>> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:124)
>> *
>>
>> * at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>> *
>>
>> * at
>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>> *
>>
>> * at
>> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)
>> *
>>
>> * at
>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
>> *
>>
>> * at
>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
>> *
>>
>> * at
>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
>> *
>>
>> * at java.lang.Thread.run(Thread.java:722)*
>>
>>
>>
>>
>>
>> I do not understand why, I just copied a sample test class into an
>> eclipse dynamic web project, and generated an ear to be deployed in TOMEE+
>>
>>
>>
>> I guess I missed something, but do not find what. Can you help me?
>>
>>
>>
>> Thanks
>>
>>
>>
>>
>>
>>
>>
>> *Cordialement / Best Regards, *
>>
>> Robert COUBLANC
>>
>> R&D 3D Experience Platform Cloud Supervision & Web Services Senior
>> Technology Manager
>>
>> Office: +33 1 6162 8541
>> robert.coublanc@3ds.com <Ro...@3ds.com>
>>
>> [image: 3DS Logo]
>>
>> *3DS.COM* <http://www.3ds.com/>
>>
>> *Dassault Systèmes* | *10 rue Marcel Dassault, CS 40501* | *78946
>> Vélizy-Villacoublay Cedex* | *France*
>>
>>
>>
>>
>>
>> This email and any attachments are intended solely for the use of the
>> individual or entity to whom it is addressed and may be confidential and/or
>> privileged.
>>
>> If you are not one of the named recipients or have received this email in
>> error,
>>
>> (i) you should not read, disclose, or copy it,
>>
>> (ii) please notify sender of your receipt by reply email and delete this
>> email and all attachments,
>>
>> (iii) Dassault Systemes does not accept or assume any liability or
>> responsibility for any use of or reliance on this email.
>>
>> For other languages, go to http://www.3ds.com/terms/email-disclaimer
>>
>
>
--
Jean-Louis
Re: TOMEE web service deployment failure.
Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
Robert,
What is the date/time/version of that SNAPSHOT?
Per my experience, I usually prefer to drop my .war file in tomee /webapps
folder, and I have to remember to access it via the same name as the war
file. So, what I learned by experience is the following:
1. Netbeans generate WAR file named, mcms_tomee.war (since name of my
application in Netbeans = 'mcms_tomee')
2. drop mcms_tomee.war in tomee /webapps folder
3. I usually access the web app via context root name defined in NetBeans,
which is 'mcmsweb' (or URL below)
http://localhost:8080/*mcmsweb*/login.jsf
4. but the above URL does not work, since WAR file was named mcms_tomee.war
5. TomEE will unpack mcms_tomee.war, and place the contents in tomee
/webapps/mcms_tomee
6. and i have to access the app via URL below
http://localhost:8080/*mcms_tomee*/login.jsf
I know my example is web app and not a webservice, and I know i'm using
Netbeans while you're using Eclipse, but I hope that tidbit-of-informatoin
helps.
Howard
On Fri, Dec 7, 2012 at 10:45 AM, COUBLANC Robert <Ro...@3ds.com>wrote:
> Hello.
>
>
>
> I installed apache-tomee-plus-1.5.1-SNAPSHOT , and I was trying to test
> the deployment of a very simple Jaxws web service (Calculator), but it’s
> failing each time I launch the server :
>
>
>
>
>
> *Infos: Creating Service {http://myws.sample}CalculatorService from class
> ws.sample.CalculatorWs*
>
> *dΘc. 07, 2012 4:41:09 PM org.apache.cxf.endpoint.ServerImpl
> initDestination*
>
> *Infos: Setting the server's publish address to be http://nopath:80*
>
> *dΘc. 07, 2012 4:41:09 PM org.apache.openejb.server.webservices.WsService
> afterApplicationCreated*
>
> *Grave: Error deploying CXF webservice for servlet ws.sample.Calculator*
>
> *java.lang.IllegalArgumentException: Could not find servlet
> ws.sample.Calculator in web application context /WSTEST*
>
> * at
> org.apache.tomee.webservices.TomcatWsRegistry.setWsContainer(TomcatWsRegistry.java:107)
> *
>
> * at
> org.apache.openejb.server.webservices.WsService.afterApplicationCreated(WsService.java:365)
> *
>
> * at
> org.apache.tomee.webservices.TomeeJaxWsService.afterApplicationCreated(TomeeJaxWsService.java:54)
> *
>
> * at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
>
> * at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> *
>
> * at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> *
>
> * at java.lang.reflect.Method.invoke(Method.java:601)*
>
> * at
> org.apache.openejb.observer.ObserverManager$Observer.invoke(ObserverManager.java:145)
> *
>
> * at
> org.apache.openejb.observer.ObserverManager.fireEvent(ObserverManager.java:69)
> *
>
> * at
> org.apache.openejb.loader.SystemInstance.fireEvent(SystemInstance.java:107)
> *
>
> * at
> org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:1290)
> *
>
> * at
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:104)
> *
>
> * at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> *
>
> * at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> *
>
> * at
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
> *
>
> * at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:168)*
>
> * at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> *
>
> * at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)*
>
> * at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)*
>
> * at
> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWar(TomcatWebAppBuilder.java:530)
> *
>
> * at
> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:499)
> *
>
> * at
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:903)
> *
>
> * at
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:537)
> *
>
> * at
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:533)
> *
>
> * at
> org.apache.tomee.catalina.TomcatWebAppBuilder.checkHost(TomcatWebAppBuilder.java:1588)
> *
>
> * at
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:124)
> *
>
> * at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> *
>
> * at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> *
>
> * at
> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)
> *
>
> * at
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
> *
>
> * at
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
> *
>
> * at
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
> *
>
> * at java.lang.Thread.run(Thread.java:722)*
>
>
>
>
>
> I do not understand why, I just copied a sample test class into an
> eclipse dynamic web project, and generated an ear to be deployed in TOMEE+
>
>
>
> I guess I missed something, but do not find what. Can you help me?
>
>
>
> Thanks
>
>
>
>
>
>
>
> *Cordialement / Best Regards, *
>
> Robert COUBLANC
>
> R&D 3D Experience Platform Cloud Supervision & Web Services Senior
> Technology Manager
>
> Office: +33 1 6162 8541
> robert.coublanc@3ds.com <Ro...@3ds.com>
>
> [image: 3DS Logo]
>
> *3DS.COM* <http://www.3ds.com/>
>
> *Dassault Systèmes* | *10 rue Marcel Dassault, CS 40501* | *78946
> Vélizy-Villacoublay Cedex* | *France*
>
>
>
>
>
> This email and any attachments are intended solely for the use of the
> individual or entity to whom it is addressed and may be confidential and/or
> privileged.
>
> If you are not one of the named recipients or have received this email in
> error,
>
> (i) you should not read, disclose, or copy it,
>
> (ii) please notify sender of your receipt by reply email and delete this
> email and all attachments,
>
> (iii) Dassault Systemes does not accept or assume any liability or
> responsibility for any use of or reliance on this email.
>
> For other languages, go to http://www.3ds.com/terms/email-disclaimer
>