Chetan Vasudev
2018-01-18 20:51:52 UTC
Hello,
I've been having some trouble deploying a spring application on tomEE and
was wondering if anyone could help me.
I am using TomEE 7 server in my eclipse and am deploying a very simple
spring application with a couple of JPA entities and planning to use
Hibernate as the provider and have defined as much in the persistence.xml.
When i try to deploy the application, i get the following error.
at
at
at
Caused by: org.apache.openejb.OpenEJBException: No service-jar.xml files
at
at
at
Caused by: org.apache.openejb.OpenEJBException: No service-jar.xml files
I do not know what to make of this, any pointers would be helpful.
Regards,
Chetan
I've been having some trouble deploying a spring application on tomEE and
was wondering if anyone could help me.
I am using TomEE 7 server in my eclipse and am deploying a very simple
spring application with a couple of JPA entities and planning to use
Hibernate as the provider and have defined as much in the persistence.xml.
When i try to deploy the application, i get the following error.
SEVERE: Failed Configuring Service(id=spring.cf/jdbc/java-hdi-container)
java.lang.IllegalStateException: org.apache.openejb.OpenEJBException: Noservice-jar.xml files found: searched META-INF/xs.openejb/service-jar.xml
and xs/openejb/service-jar.xml
atand xs/openejb/service-jar.xml
org.apache.openejb.config.provider.ServiceJarXmlLoader.parse(ServiceJarXmlLoader.java:71)
atorg.apache.openejb.config.provider.ServiceJarXmlLoader.load(ServiceJarXmlLoader.java:57)
atorg.apache.openejb.config.provider.ProviderManager.getProvider(ProviderManager.java:184)
atorg.apache.openejb.config.provider.ProviderManager.get(ProviderManager.java:56)
atorg.apache.openejb.config.ServiceUtils.getServiceProvider(ServiceUtils.java:116)
atorg.apache.openejb.config.ConfigurationFactory.resolveServiceProvider(ConfigurationFactory.java:1451)
atorg.apache.openejb.config.ConfigurationFactory.getServiceProvider(ConfigurationFactory.java:1310)
atorg.apache.openejb.config.ConfigurationFactory.configureService(ConfigurationFactory.java:1184)
atorg.apache.openejb.config.AutoConfig.processApplicationResources(AutoConfig.java:992)
at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:190)at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:420)
atorg.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:1037)
atorg.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1277)
atorg.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1125)
atorg.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:133)
atorg.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5105)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
atorg.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)Caused by: org.apache.openejb.OpenEJBException: No service-jar.xml files
found: searched META-INF/xs.openejb/service-jar.xml and
xs/openejb/service-jar.xml
atxs/openejb/service-jar.xml
org.apache.openejb.config.sys.JaxbOpenejb.readServicesJar(JaxbOpenejb.java:162)
atorg.apache.openejb.config.provider.ServiceJarXmlLoader.parse(ServiceJarXmlLoader.java:65)
... 23 moreJan 18, 2018 9:41:37 PM org.apache.tomee.catalina.TomcatWebAppBuilder
startInternal
SEVERE: Unable to deploy collapsed ear in warstartInternal
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/
spring.cf]
org.apache.openejb.OpenEJBException: Failed Configuring Service(id=spring.cf]
No service-jar.xml files found: searched
META-INF/xs.openejb/service-jar.xml and xs/openejb/service-jar.xml
atMETA-INF/xs.openejb/service-jar.xml and xs/openejb/service-jar.xml
org.apache.openejb.config.ConfigurationFactory.configureService(ConfigurationFactory.java:1301)
atorg.apache.openejb.config.AutoConfig.processApplicationResources(AutoConfig.java:992)
at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:190)at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:420)
atorg.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:1037)
atorg.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1277)
at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1125)
at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:133)
atorg.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5105)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
atorg.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)searched META-INF/xs.openejb/service-jar.xml and xs/openejb/service-jar.xml
atorg.apache.openejb.config.provider.ServiceJarXmlLoader.parse(ServiceJarXmlLoader.java:71)
atorg.apache.openejb.config.provider.ServiceJarXmlLoader.load(ServiceJarXmlLoader.java:57)
atorg.apache.openejb.config.provider.ProviderManager.getProvider(ProviderManager.java:184)
atorg.apache.openejb.config.provider.ProviderManager.get(ProviderManager.java:56)
atorg.apache.openejb.config.ServiceUtils.getServiceProvider(ServiceUtils.java:116)
atorg.apache.openejb.config.ConfigurationFactory.resolveServiceProvider(ConfigurationFactory.java:1451)
atorg.apache.openejb.config.ConfigurationFactory.getServiceProvider(ConfigurationFactory.java:1310)
atorg.apache.openejb.config.ConfigurationFactory.configureService(ConfigurationFactory.java:1184)
... 16 moreCaused by: org.apache.openejb.OpenEJBException: No service-jar.xml files
found: searched META-INF/xs.openejb/service-jar.xml and
xs/openejb/service-jar.xml
atxs/openejb/service-jar.xml
org.apache.openejb.config.sys.JaxbOpenejb.readServicesJar(JaxbOpenejb.java:162)
atorg.apache.openejb.config.provider.ServiceJarXmlLoader.parse(ServiceJarXmlLoader.java:65)
... 23 moreI do not know what to make of this, any pointers would be helpful.
Regards,
Chetan