I cant get my EJB injected. 1. I drop an ear in apps folder 2. Deploy my webapp in webapps folder 3. Try to use @EJB in my webapp
I always get this error: WARNING: Injection data not found in JNDI context: jndiName='comp/env/com.grupokx.mailing.controlador.inicio.LoginWebMBean/local', target=com.grupokx.mailing.controlador.inicio.LoginWebMBean/local If i try with CODI: UsuariosFacadeLocal facade = BeanManagerProvider.getInstance().getContextualReference(UsuariosFacadeLocal.class); i get this: Dec 10, 2012 9:27:55 AM org.apache.webbeans.component.AbstractInjectionTargetBean postConstructDefault SEVERE: An error occurred while executing [@PostConstruct.] java.lang.IllegalStateException: Could not find beans for Type=interface com.grupokx.globalconfig.api.ejb.local.UsuariosFacadeLocal and qualifiers:[] 2012/12/7 Romain Manni-Bucau <rmannibu...@gmail.com> > For injections youll need ear i think. Wonder about lookups (was my idea) > Le 8 déc. 2012 00:18, "José Luis Cetina" <maxtorz...@gmail.com> a écrit : > > > Hi Romain i did this: > > > > 1. Create a jar file with just 1 EJB class EJBTest.class (myejb.jar) > > 2. Look at the tomee.xml and found this line: <Deployments dir="apps/" /> > > 3. I create the "apps" directory in APACHE-HOME/ > > 4. Copy myejb.jar file to APACHE-HOME/directory > > 5. Copy myejb.jar file to APACHE-HOME/lib > > 6. Start my webapps (resides in webapps folder) > > 7. Then try to inject my EJBTest.class with @EJB even with CODI like > this: > > EJBTest facade = > > BeanManagerProvider.getInstance().getContextualReference(EJBTest.class); > > > > > > When TomEE start i can see this line in the log file: > > > > INFO: Configuring enterprise application: > > > > > /home/maxtorzito/Apache_TomEE/apache-tomee-webprofile-1.5.1-SNAPSHOT/apps/globalconfig-ejb-1.0-SNAPSHOT.jar > > Dec 07, 2012 5:06:48 PM org.apache.openejb.config.InitEjbDeployments > deploy > > INFO: Auto-deploying ejb EJBTest: EjbDeployment(deployment-id=EJBTest) > > > > BUT I CANT get my EJB injected. > > > > Q1. Do i have to create the apps folder? > > > > Whats wrong? > > > > Here is my log: > > > > Dec 07, 2012 5:06:57 PM > org.apache.openejb.cdi.CdiResourceInjectionService > > fillInjectionProperties > > WARNING: Injection data not found in JNDI context: > > > > > jndiName='comp/env/com.grupokx.mailing.controlador.inicio.LoginWebMBean/local', > > target=com.grupokx.mailing.controlador.inicio.LoginWebMBean/local > > Dec 07, 2012 5:06:57 PM > > org.apache.webbeans.component.AbstractInjectionTargetBean > > postConstructDefault > > SEVERE: An error occurred while executing [@PostConstruct.] > > java.lang.IllegalStateException: Could not find beans for Type=class > > com.grupokx.globalconfig.ejb.impl.EJBTest and qualifiers:[] > > at > > > > > org.apache.myfaces.extensions.cdi.core.api.provider.BeanManagerProvider.getContextualReference(BeanManagerProvider.java:172) > > at > > > > > com.grupokx.mailing.controlador.inicio.LoginWebMBean.myPostConstruct(LoginWebMBean.java:40) > > 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.webbeans.intercept.InvocationContextImpl.proceedCommonAnnots(InvocationContextImpl.java:381) > > at > > > > > org.apache.webbeans.intercept.InvocationContextImpl.proceed(InvocationContextImpl.java:185) > > at > > > > > org.apache.webbeans.component.AbstractInjectionTargetBean.postConstructDefault(AbstractInjectionTargetBean.java:259) > > at > > > > > org.apache.webbeans.component.AbstractInjectionTargetBean.postConstruct(AbstractInjectionTargetBean.java:237) > > at > > > > > org.apache.webbeans.portable.creation.InjectionTargetProducer.postConstruct(InjectionTargetProducer.java:122) > > at > > > > > org.apache.webbeans.component.InjectionTargetWrapper.postConstruct(InjectionTargetWrapper.java:87) > > at > > > > > org.apache.webbeans.component.AbstractOwbBean.create(AbstractOwbBean.java:182) > > at > > > > > org.apache.webbeans.container.SerializableBean.create(SerializableBean.java:119) > > at > > > > > org.apache.myfaces.extensions.cdi.core.impl.util.CodiUtils.createNewInstanceOfBean(CodiUtils.java:69) > > at > > > > > org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.AbstractConversationBeanEntry.createNewBeanInstance(AbstractConversationBeanEntry.java:139) > > at > > > > > org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.AbstractConversationBeanEntry.getBeanInstance(AbstractConversationBeanEntry.java:84) > > at > > > > > org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.AbstractGroupedConversationContext.create(AbstractGroupedConversationContext.java:100) > > at > > > > > org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.ConversationContextAdapter.get(ConversationContextAdapter.java:81) > > at > > > > > org.apache.webbeans.context.CustomContextImpl.get(CustomContextImpl.java:43) > > at > > > > > org.apache.webbeans.context.CustomPassivatingContextImpl.get(CustomPassivatingContextImpl.java:42) > > at > > > > > org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.getContextualInstance(NormalScopedBeanInterceptorHandler.java:154) > > at > > > > > org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.invoke(NormalScopedBeanInterceptorHandler.java:114) > > at > > > > > org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.invoke(NormalScopedBeanInterceptorHandler.java:108) > > at > > > > > com.grupokx.mailing.controlador.inicio.LoginWebMBean_$$_javassist_27.getUsuario(LoginWebMBean_$$_javassist_27.java) > > 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 javax.el.BeanELResolver.getValue(BeanELResolver.java:64) > > at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:58) > > at > > > > > org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:179) > > at org.apache.el.parser.AstValue.getValue(AstValue.java:183) > > at > org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:185) > > at > > > > > org.apache.webbeans.el.WrappedValueExpression.getValue(WrappedValueExpression.java:68) > > at > > > > > org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.getValue(ContextAwareTagValueExpression.java:96) > > at > javax.faces.component._DeltaStateHelper.eval(_DeltaStateHelper.java:249) > > at javax.faces.component.UIOutput.getValue(UIOutput.java:67) > > at javax.faces.component.UIInput.getValue(UIInput.java:151) > > at > > > org.primefaces.util.ComponentUtils.getValueToRender(ComponentUtils.java:61) > > at > > > > > org.primefaces.component.inputtext.InputTextRenderer.encodeMarkup(InputTextRenderer.java:77) > > at > > > > > org.primefaces.component.inputtext.InputTextRenderer.encodeEnd(InputTextRenderer.java:51) > > at > > javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:663) > > at > org.primefaces.renderkit.CoreRenderer.renderChild(CoreRenderer.java:62) > > at > > > org.primefaces.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:46) > > at > > > > > org.primefaces.component.dialog.DialogRenderer.encodeContent(DialogRenderer.java:165) > > at > > > > > org.primefaces.component.dialog.DialogRenderer.encodeMarkup(DialogRenderer.java:94) > > at > > > > > org.primefaces.component.dialog.DialogRenderer.encodeEnd(DialogRenderer.java:42) > > at > > javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:663) > > at > > javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:543) > > at > > javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:539) > > at > > javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:539) > > at > > javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:539) > > at > > > > > org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1981) > > at > > > > > org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:285) > > at > > > > > javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59) > > at > > > > > javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59) > > at > > > > > org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116) > > at > > org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241) > > at > > > > > org.apache.myfaces.extensions.cdi.jsf2.impl.listener.phase.CodiLifecycleWrapper.render(CodiLifecycleWrapper.java:126) > > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199) > > at > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) > > at > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > > at > > > > > org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79) > > at > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) > > at > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > > at > > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) > > at > > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) > > at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45) > > at > > > > > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) > > at > > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) > > at > > > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) > > at > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:931) > > at > > > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) > > at > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) > > at > > > > > org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) > > at > > > > > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) > > at > > > > > org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) > > 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) > > > > > > > > 2012/12/7 Romain Manni-Bucau <rmannibu...@gmail.com> > > > > > ear sounds fine > > > > > > you can deploy your ejb deps in tomee lib + deploy your ejb as jar too > > > (in apps/ for instance) then deploy your webapps > > > > > > depends a lot of your goal and the lifecycle of each parts > > > > > > 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 José Luis Cetina <maxtorz...@gmail.com>: > > > > Hi i have a question, i always use war files for my webapp, inside of > > > them > > > > i have ejbs,entities,classes etc, but now i need to separate my > EJB's, > > > and > > > > then i am trying to use ear file for this, but honestly i am not sure > > if > > > > this is correct. > > > > > > > > I have 3 different webapps (they are package as wars) and i need each > > of > > > > them can call EJB's methods, but i want to have my EJB in separate > > > "module" > > > > what can i do? Do i have to package my EJB in an EAR? All of this in > > the > > > > same server (same jvm). > > > > > > > > Can you give some adivce? > > > > > > > > Im using TomEE 1.5.1-SNAPSHOT > > > > > > > > Thanks. > > > > > > > > > > > > 2012/12/7 Romain Manni-Bucau <rmannibu...@gmail.com> > > > > > > > >> Hi, > > > >> > > > >> ear shouldn't be extracted in webapps (David added the needed conf > to > > > >> avoid it i think, @David: can you confirm please?) > > > >> > > > >> otherwise apps should work adding <Deployment dir="apps" /> to > > tomee.xml > > > >> > > > >> 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 José Luis Cetina <maxtorz...@gmail.com>: > > > >> > I remember i readed time ago some troubles about TomEE with ear > > files. > > > >> > > > > >> > > > > >> > Im trying to do a test, deploying an ear file that contains a > single > > > EJB > > > >> > without war. > > > >> > > > > >> > I only drop my ear into webapps folder > > > >> > > > > >> > > > > >> > > > > >> > What can be happend? > > > >> > > > > >> > > > > >> > INFO: ------------------------- > > > >> > TomcatWebAppBuilder.init /testing-ear-1.0-SNAPSHOT > > > >> > Dec 07, 2012 4:20:15 PM org.apache.openejb.util.OptionsLog info > > > >> > INFO: Using > 'openejb.deployments.classpath.filter.systemapps=false' > > > >> > Dec 07, 2012 4:20:15 PM org.apache.openejb.util.OptionsLog info > > > >> > INFO: Using > > > >> > > > > 'openejb.default.deployment-module=org.apache.openejb.config.WebModule' > > > >> > Dec 07, 2012 4:20:15 PM org.apache.openejb.util.OptionsLog info > > > >> > INFO: Using > > > >> > > > > 'openejb.default.deployment-module=org.apache.openejb.config.WebModule' > > > >> > Dec 07, 2012 4:20:15 PM org.apache.openejb.config.DeploymentLoader > > > >> > discoverModuleType > > > >> > INFO: type for > > > >> > > > > >> > > > > > > '/home/maxtorzito/Apache_TomEE/apache-tomee-webprofile-1.5.1-SNAPSHOT/lib' > > > >> > was not found, defaulting to WebModule > > > >> > Dec 07, 2012 4:20:15 PM org.apache.openejb.util.OptionsLog info > > > >> > INFO: Using > > > >> > > > > 'openejb.default.deployment-module=org.apache.openejb.config.WebModule' > > > >> > Dec 07, 2012 4:20:15 PM org.apache.openejb.util.OptionsLog info > > > >> > INFO: Using > > > >> > > > > 'openejb.default.deployment-module=org.apache.openejb.config.WebModule' > > > >> > Dec 07, 2012 4:20:15 PM > > org.apache.openejb.config.ConfigurationFactory > > > >> > configureApplication > > > >> > INFO: Configuring enterprise application: > > > >> > > > > >> > > > > > > /home/maxtorzito/Apache_TomEE/apache-tomee-webprofile-1.5.1-SNAPSHOT/webapps/testing-ear-1.0-SNAPSHOT > > > >> > Dec 07, 2012 4:20:15 PM > org.apache.openejb.config.InitEjbDeployments > > > >> deploy > > > >> > INFO: Auto-deploying ejb EJBTest: > > EjbDeployment(deployment-id=EJBTest) > > > >> > Dec 07, 2012 4:20:15 PM org.apache.openejb.config.AutoConfig > deploy > > > >> > INFO: Configuring PersistenceUnit(name=kx_globalconifg, > > > >> > provider=org.apache.openjpa.persistence.PersistenceProviderImpl) > > > >> > Dec 07, 2012 4:20:15 PM org.apache.openejb.config.AutoConfig > > > >> > setNonJtaDataSource > > > >> > INFO: Adjusting PersistenceUnit kx_globalconifg > > <non-jta-data-source> > > > to > > > >> > Resource ID 'GlobalConfigDataSourceNonJta' from 'null' > > > >> > Dec 07, 2012 4:20:15 PM > > > >> > > > org.apache.openejb.config.AppInfoBuilder$PersistenceProviderProperties > > > >> apply > > > >> > WARNING: Removing PersistenceUnit(name=kx_globalconifg) property > > > >> > openjpa.ConnectionPassword=${db.password} [not valid in a > container > > > >> > environment] > > > >> > Dec 07, 2012 4:20:15 PM > > > >> > > > org.apache.openejb.config.AppInfoBuilder$PersistenceProviderProperties > > > >> apply > > > >> > WARNING: Removing PersistenceUnit(name=kx_globalconifg) property > > > >> > openjpa.ConnectionDriverName=${db.driver.class} [not valid in a > > > >> container > > > >> > environment] > > > >> > Dec 07, 2012 4:20:15 PM > > > >> > > > org.apache.openejb.config.AppInfoBuilder$PersistenceProviderProperties > > > >> apply > > > >> > WARNING: Removing PersistenceUnit(name=kx_globalconifg) property > > > >> > openjpa.ConnectionUserName=${db.username} [not valid in a > container > > > >> > environment] > > > >> > Dec 07, 2012 4:20:15 PM > > > >> > > > org.apache.openejb.config.AppInfoBuilder$PersistenceProviderProperties > > > >> apply > > > >> > WARNING: Removing PersistenceUnit(name=kx_globalconifg) property > > > >> > openjpa.ConnectionURL=${db.url} [not valid in a container > > > environment] > > > >> > Dec 07, 2012 4:20:15 PM org.apache.openejb.config.AppInfoBuilder > > build > > > >> > INFO: Enterprise application > > > >> > > > > >> > > > > > > "/home/maxtorzito/Apache_TomEE/apache-tomee-webprofile-1.5.1-SNAPSHOT/webapps/testing-ear-1.0-SNAPSHOT" > > > >> > loaded. > > > >> > Dec 07, 2012 4:20:15 PM > > org.apache.openejb.assembler.classic.Assembler > > > >> > createApplication > > > >> > INFO: Assembling app: > > > >> > > > > >> > > > > > > /home/maxtorzito/Apache_TomEE/apache-tomee-webprofile-1.5.1-SNAPSHOT/webapps/testing-ear-1.0-SNAPSHOT > > > >> > Dec 07, 2012 4:20:15 PM > > org.apache.openejb.assembler.classic.Assembler > > > >> > createApplication > > > >> > SEVERE: Application cannot be deployed as it contains > deployment-ids > > > >> which > > > >> > are in use: app: > > > >> > > > > >> > > > > > > /home/maxtorzito/Apache_TomEE/apache-tomee-webprofile-1.5.1-SNAPSHOT/webapps/testing-ear-1.0-SNAPSHOT > > > >> > Dec 07, 2012 4:20:15 PM > > org.apache.tomee.catalina.TomcatWebAppBuilder > > > >> > startInternal > > > >> > SEVERE: Unable to deploy collapsed ear in war > > > >> > > > > >> > > > > > > StandardEngine[Catalina].StandardHost[localhost].StandardContext[/testing-ear-1.0-SNAPSHOT] > > > >> > org.apache.openejb.DuplicateDeploymentIdException: Application > > cannot > > > be > > > >> > deployed as it contains deployment-ids which are in use: app: > > > >> > > > > >> > > > > > > /home/maxtorzito/Apache_TomEE/apache-tomee-webprofile-1.5.1-SNAPSHOT/webapps/testing-ear-1.0-SNAPSHOT > > > >> > EJBTest > > > >> > at > > > >> > > > > >> > > > > > > org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:567) > > > >> > at > > > >> > > > > >> > > > > > > org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:533) > > > >> > at > > > >> > > > > >> > > > > > > org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:970) > > > >> > at > > > >> > > > > >> > > > > > > org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:889) > > > >> > 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) > > > >> > > > > >> > Dec 07, 2012 4:20:15 PM org.apache.catalina.core.ContainerBase > > > >> removeChild > > > >> > SEVERE: ContainerBase.removeChild: destroy: > > > >> > org.apache.catalina.LifecycleException: An invalid Lifecycle > > > transition > > > >> was > > > >> > attempted ([before_destroy]) for component > > > >> > > > > >> > > > > > > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/testing-ear-1.0-SNAPSHOT]] > > > >> > in state [STARTING_PREP] > > > >> > at > > > >> > > > > >> > > > > > > org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:409) > > > >> > at > > > org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:299) > > > >> > at > > > >> > > > > >> > > > > > > org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041) > > > >> > at > > > >> > > > > >> > > > > > > org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1155) > > > >> > at > > > >> > > > > >> > > > > > > org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1136) > > > >> > at > > > >> > > > > >> > > > > > > org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:974) > > > >> > at > > > >> > > > > >> > > > > > > org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:889) > > > >> > 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) > > > >> > > > > >> > Dec 07, 2012 4:20:15 PM org.apache.catalina.core.ContainerBase > > > >> > addChildInternal > > > >> > SEVERE: ContainerBase.addChild: start: > > > >> > org.apache.catalina.LifecycleException: Failed to start component > > > >> > > > > >> > > > > > > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/testing-ear-1.0-SNAPSHOT]] > > > >> > at > > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > > > >> > 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: org.apache.tomee.catalina.TomEERuntimeException: > > > >> > org.apache.openejb.DuplicateDeploymentIdException: Application > > cannot > > > be > > > >> > deployed as it contains deployment-ids which are in use: app: > > > >> > > > > >> > > > > > > /home/maxtorzito/Apache_TomEE/apache-tomee-webprofile-1.5.1-SNAPSHOT/webapps/testing-ear-1.0-SNAPSHOT > > > >> > EJBTest > > > >> > at > > > >> > > > > >> > > > > > > org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:977) > > > >> > at > > > >> > > > > >> > > > > > > org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:889) > > > >> > 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) > > > >> > ... 11 more > > > >> > Caused by: org.apache.openejb.DuplicateDeploymentIdException: > > > Application > > > >> > cannot be deployed as it contains deployment-ids which are in use: > > > app: > > > >> > > > > >> > > > > > > /home/maxtorzito/Apache_TomEE/apache-tomee-webprofile-1.5.1-SNAPSHOT/webapps/testing-ear-1.0-SNAPSHOT > > > >> > EJBTest > > > >> > at > > > >> > > > > >> > > > > > > org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:567) > > > >> > at > > > >> > > > > >> > > > > > > org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:533) > > > >> > at > > > >> > > > > >> > > > > > > org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:970) > > > >> > ... 17 more > > > >> > > > > >> > Dec 07, 2012 4:20:15 PM org.apache.catalina.startup.HostConfig > > > >> > deployDirectory > > > >> > SEVERE: Error deploying web application directory > > > >> > > > > >> > > > > > > /home/maxtorzito/Apache_TomEE/apache-tomee-webprofile-1.5.1-SNAPSHOT/webapps/testing-ear-1.0-SNAPSHOT > > > >> > java.lang.IllegalStateException: ContainerBase.addChild: start: > > > >> > org.apache.catalina.LifecycleException: Failed to start component > > > >> > > > > >> > > > > > > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/testing-ear-1.0-SNAPSHOT]] > > > >> > at > > > >> > > > > >> > > > > > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904) > > > >> > 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) > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > Thanks > > > >> > > > > > > > > > > > > > > > > -- > > > > ------------------------------------------------------------------- > > > > *SCJA. José Luis Cetina* > > > > ------------------------------------------------------------------- > > > > > > > > > > > -- > > ------------------------------------------------------------------- > > *SCJA. José Luis Cetina* > > ------------------------------------------------------------------- > > > -- ------------------------------------------------------------------- *SCJA. José Luis Cetina* -------------------------------------------------------------------