Unable to deploy EAR on TomEE

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Unable to deploy EAR on TomEE

chilu49
When trying to deploy a EAR file on TomEE, i am seeing below error.
Does anyone know what its complaining about.

INFO: OpenWebBeans Container has started, it took 7 ms.
Jul 18, 2017 2:12:57 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra 2.1.29 ( 20140702-1445 https://svn.java.net/svn/mojarra~svn/tags/2.1.29@13392) for context '/abc'
Jul 18, 2017 2:12:57 PM com.sun.faces.config.ConfigureListener contextInitialized
SEVERE: Critical error during deployment:
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! standard context cannot be found
        at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:376)
        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5066)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.deployWar(TomcatWebAppBuilder.java:663)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:620)
        at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:800)
        at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:677)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1261)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1100)
        at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1259)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1998)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: standard context cannot be found
        at org.apache.tomee.mojarra.TomEEInjectionProvider.<init>(TomEEInjectionProvider.java:31)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at java.lang.Class.newInstance(Class.java:442)
        at com.sun.faces.spi.InjectionProviderFactory.getProviderInstance(InjectionProviderFactory.java:156)
        at com.sun.faces.spi.InjectionProviderFactory.createInstance(InjectionProviderFactory.java:117)
        at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:335)
        ... 28 more

Jul 18, 2017 2:12:57 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
Jul 18, 2017 2:12:57 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/abc] startup failed due to previous errors
Jul 18, 2017 2:12:57 PM javax.faces.FactoryFinder$FactoryManager getFactory
SEVERE: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory. Attempting to find backup.
Jul 18, 2017 2:12:57 PM com.sun.faces.config.ConfigureListener contextDestroyed
SEVERE: Unexpected exception when attempting to tear down the Mojarra runtime
java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory.
        at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1012)
        at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:344)
        at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:141)
        at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:314)
        at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5113)
        at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5779)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:159)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.deployWar(TomcatWebAppBuilder.java:663)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:620)
        at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:800)
        at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:677)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1261)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1100)
        at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1259)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1998)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to deploy EAR on TomEE

Daniel Cunha-2
Are you using Mojarra implementation? if yes, try to use Apache TomEE Plume

Should be fixed if I understood your issue.

On Tue, Jul 18, 2017 at 4:58 PM, chilu49 <[hidden email]> wrote:

> When trying to deploy a EAR file on TomEE, i am seeing below error.
> Does anyone know what its complaining about.
>
> INFO: OpenWebBeans Container has started, it took 7 ms.
> Jul 18, 2017 2:12:57 PM com.sun.faces.config.ConfigureListener
> contextInitialized
> INFO: Initializing Mojarra 2.1.29 ( 20140702-1445
> https://svn.java.net/svn/mojarra~svn/tags/2.1.29@13392) for context '/abc'
> Jul 18, 2017 2:12:57 PM com.sun.faces.config.ConfigureListener
> contextInitialized
> SEVERE: Critical error during deployment:
> com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
> standard
> context cannot be found
>         at
> com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:376)
>         at
> com.sun.faces.config.ConfigureListener.contextInitialized(Co
> nfigureListener.java:216)
>         at
> org.apache.catalina.core.StandardContext.listenerStart(Stand
> ardContext.java:5066)
>         at
> org.apache.catalina.core.StandardContext.startInternal(Stand
> ardContext.java:5584)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(Cont
> ainerBase.java:899)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWar(Tomc
> atWebAppBuilder.java:663)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(
> TomcatWebAppBuilder.java:620)
>         at
> org.apache.openejb.assembler.classic.Assembler.createApplica
> tion(Assembler.java:800)
>         at
> org.apache.openejb.assembler.classic.Assembler.createApplica
> tion(Assembler.java:677)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(
> TomcatWebAppBuilder.java:1261)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart
> (TomcatWebAppBuilder.java:1100)
>         at
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEve
> nt(GlobalListenerSupport.java:130)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
> (LifecycleSupport.java:117)
>         at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(Li
> fecycleBase.java:90)
>         at
> org.apache.catalina.core.StandardContext.startInternal(Stand
> ardContext.java:5472)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(Cont
> ainerBase.java:899)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
>         at
> org.apache.catalina.startup.HostConfig.deployDirectory(HostC
> onfig.java:1259)
>         at
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(
> HostConfig.java:1998)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
> Executor.java:1142)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
> lExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.IllegalArgumentException: standard context cannot be
> found
>         at
> org.apache.tomee.mojarra.TomEEInjectionProvider.<init>(TomEE
> InjectionProvider.java:31)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native
> ConstructorAccessorImpl.java:62)
>         at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De
> legatingConstructorAccessorImpl.java:45)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>         at java.lang.Class.newInstance(Class.java:442)
>         at
> com.sun.faces.spi.InjectionProviderFactory.getProviderInstan
> ce(InjectionProviderFactory.java:156)
>         at
> com.sun.faces.spi.InjectionProviderFactory.createInstance(In
> jectionProviderFactory.java:117)
>         at
> com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:335)
>         ... 28 more
>
> Jul 18, 2017 2:12:57 PM org.apache.catalina.core.StandardContext
> startInternal
> SEVERE: One or more listeners failed to start. Full details will be found
> in
> the appropriate container log file
> Jul 18, 2017 2:12:57 PM org.apache.catalina.core.StandardContext
> startInternal
> SEVERE: Context [/abc] startup failed due to previous errors
> Jul 18, 2017 2:12:57 PM javax.faces.FactoryFinder$FactoryManager
> getFactory
> SEVERE: Application was not properly initialized at startup, could not find
> Factory: javax.faces.application.ApplicationFactory. Attempting to find
> backup.
> Jul 18, 2017 2:12:57 PM com.sun.faces.config.ConfigureListener
> contextDestroyed
> SEVERE: Unexpected exception when attempting to tear down the Mojarra
> runtime
> java.lang.IllegalStateException: Could not find backup for factory
> javax.faces.application.ApplicationFactory.
>         at
> javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryF
> inder.java:1012)
>         at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:344)
>         at
> com.sun.faces.config.InitFacesContext.getApplication(InitFac
> esContext.java:141)
>         at
> com.sun.faces.config.ConfigureListener.contextDestroyed(Conf
> igureListener.java:314)
>         at
> org.apache.catalina.core.StandardContext.listenerStop(Standa
> rdContext.java:5113)
>         at
> org.apache.catalina.core.StandardContext.stopInternal(Standa
> rdContext.java:5779)
>         at
> org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:159)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(Cont
> ainerBase.java:899)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWar(Tomc
> atWebAppBuilder.java:663)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(
> TomcatWebAppBuilder.java:620)
>         at
> org.apache.openejb.assembler.classic.Assembler.createApplica
> tion(Assembler.java:800)
>         at
> org.apache.openejb.assembler.classic.Assembler.createApplica
> tion(Assembler.java:677)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(
> TomcatWebAppBuilder.java:1261)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart
> (TomcatWebAppBuilder.java:1100)
>         at
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEve
> nt(GlobalListenerSupport.java:130)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
> (LifecycleSupport.java:117)
>         at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(Li
> fecycleBase.java:90)
>         at
> org.apache.catalina.core.StandardContext.startInternal(Stand
> ardContext.java:5472)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(Cont
> ainerBase.java:899)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
>         at
> org.apache.catalina.startup.HostConfig.deployDirectory(HostC
> onfig.java:1259)
>         at
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(
> HostConfig.java:1998)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
> Executor.java:1142)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
> lExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
>
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4
> .nabble.com/Unable-to-deploy-EAR-on-TomEE-tp4682283.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>



--
Daniel Cunha
https://twitter.com/dvlc_
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to deploy EAR on TomEE

chilu49
I am already using apache-tomee-1.7.4-plume on linux server with oracle Java(TM) SE Runtime Environment (build 1.8.0_121-b13)

But still iam receiving this error.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to deploy EAR on TomEE

Romain Manni-Bucau
Hi

Is it possible for you to give a shot using a war - to check it is linked
to your app or tomee?

Le 19 juil. 2017 00:32, "chilu49" <[hidden email]> a écrit :

> I am already using apache-tomee-1.7.4-plume on linux server with oracle
> Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
>
> But still iam receiving this error.
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/Unable-to-deploy-EAR-on-TomEE-tp4682283p4682285.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to deploy EAR on TomEE

chilu49
TomEE now started without any errors.

I removed tomee-mojarra-1.7.4.jar from lib directory.

Romain, i havent tried your suggestion.
I will try and let you know.
Thanks everyone.
Loading...