java.lang.IllegalStateException: Cannot call >> next() when input is exhausted >> at net.sf.saxon.tinytree.TinyTreeWalker.next(TinyTreeWalker.java:196) >> at net.sf.saxon.pull.PullFilter.next(PullFilter.java:85) >> at >> net.sf.saxon.pull.PullNamespaceReducer.next(PullNamespaceReducer.java:71) >> at net.sf.saxon.pull.PullToStax.next(PullToStax.java:223) >> at >> com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:156) >> at >> com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:333) >> at >> com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312) >> at TaskImpl.readFromXML(TaskImpl.java:182) >> at TaskImpl.main(TaskImpl.java:336) >> >> I wonder whether these two variants are equivalent >> >> >> Nikita Zinoviev wrote: >> >>> Good luck to you, this seems rather eye-catching! >>> I don't know much about JAXB, though I explored some openjdk sources >>> for UnmarshallerImpl via google codesearch. >>> >>> Nikita >>> >>> Michael Kay wrote: >>> >>> >>>> Just another progress report on this: can't entirely blame the >>>> Unmarshaller >>>> for falling over, because it seems the stream of events delivered by >>>> Saxon >>>> isn't actually well-balanced. This could be a consequence of a bad >>>> patch for >>>> another problem. Will need to investigate further. >>>> >>>> Michael Kay >>>> >>>> >>>> >>>> >>>> -----Original Message----- From: Michael Kay [mailto:mike@...] Sent: 30 March 2009 23:14 To: 'Mailing list for the SAXON XSLT and XQuery processor' Subject: Re: [saxon] Forwarding saxon results to JAXB unmarshaller via S9API > Shouldn't be hard to fix. > > > Perhaps I spoke too soon. After Saxon returns the END_DOCUMENT event, the Unmarshaller calls next() again. It shouldn't do this; the only valid call in END_DOCUMENT state is close(). So Saxon should either throw NoSuchElementException ("if next() is called when hasNext() returns false"), or IllegalStateException ("If a method is called in an invalid state the method will throw a java.lang.IllegalStateException"). But either exception simply causes the Unmarshaller to bomb out with a stack trace. So I don't really know what's going on: I don't think the Unmarshaller is behaving in a conformant way. Here's the stack trace: Exception in thread "main" java.lang.IllegalStateException at net.sf.saxon.evpull.EventToStaxBridge.nextx(EventToStaxBridge. java:257) at net.sf.saxon.evpull.EventToStaxBridge.next(EventToStaxBridge.java:233) at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.b ridge(StAXStre amConnector.java:126) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unma rshal0(Unmarsh allerImpl.java:333) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unma rshal(Unmarsha llerImpl.java:312)

sourceforge.net | 5 months ago
  1. 0

    Saxon XSLT and XQuery Processor / Mailing Lists

    sourceforge.net | 5 months ago
    java.lang.IllegalStateException: Cannot call >> next() when input is exhausted >> at net.sf.saxon.tinytree.TinyTreeWalker.next(TinyTreeWalker.java:196) >> at net.sf.saxon.pull.PullFilter.next(PullFilter.java:85) >> at >> net.sf.saxon.pull.PullNamespaceReducer.next(PullNamespaceReducer.java:71) >> at net.sf.saxon.pull.PullToStax.next(PullToStax.java:223) >> at >> com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:156) >> at >> com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:333) >> at >> com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312) >> at TaskImpl.readFromXML(TaskImpl.java:182) >> at TaskImpl.main(TaskImpl.java:336) >> >> I wonder whether these two variants are equivalent >> >> >> Nikita Zinoviev wrote: >> >>> Good luck to you, this seems rather eye-catching! >>> I don't know much about JAXB, though I explored some openjdk sources >>> for UnmarshallerImpl via google codesearch. >>> >>> Nikita >>> >>> Michael Kay wrote: >>> >>> >>>> Just another progress report on this: can't entirely blame the >>>> Unmarshaller >>>> for falling over, because it seems the stream of events delivered by >>>> Saxon >>>> isn't actually well-balanced. This could be a consequence of a bad >>>> patch for >>>> another problem. Will need to investigate further. >>>> >>>> Michael Kay >>>> >>>> >>>> >>>> >>>> -----Original Message----- From: Michael Kay [mailto:mike@...] Sent: 30 March 2009 23:14 To: 'Mailing list for the SAXON XSLT and XQuery processor' Subject: Re: [saxon] Forwarding saxon results to JAXB unmarshaller via S9API > Shouldn't be hard to fix. > > > Perhaps I spoke too soon. After Saxon returns the END_DOCUMENT event, the Unmarshaller calls next() again. It shouldn't do this; the only valid call in END_DOCUMENT state is close(). So Saxon should either throw NoSuchElementException ("if next() is called when hasNext() returns false"), or IllegalStateException ("If a method is called in an invalid state the method will throw a java.lang.IllegalStateException"). But either exception simply causes the Unmarshaller to bomb out with a stack trace. So I don't really know what's going on: I don't think the Unmarshaller is behaving in a conformant way. Here's the stack trace: Exception in thread "main" java.lang.IllegalStateException at net.sf.saxon.evpull.EventToStaxBridge.nextx(EventToStaxBridge. java:257) at net.sf.saxon.evpull.EventToStaxBridge.next(EventToStaxBridge.java:233) at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.b ridge(StAXStre amConnector.java:126) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unma rshal0(Unmarsh allerImpl.java:333) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unma rshal(Unmarsha llerImpl.java:312)
  2. 0

    TomEE Users - EAR IN TOMEE

    nabble.com | 11 months ago
    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 < > >>>> >> > >>>> >> > > 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: >>>> >> > > LinkedIn: >>>> >> > > Github: >>>> >> > > >>>> >> > > >>>> >> > > >>>> >> > > 2012/12/7 José Luis Cetina < >: >>>> >> > > > 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 < > >>>> >> > > > >>>> >> > > >> 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: >>>> >> > > >> LinkedIn: >>>> >> > > >> Github: >>>> >> > > >> >>>> >> > > >> >>>> >> > > >> >>>> >> > > >> 2012/12/7 José Luis Cetina < >: >>>> >> > > >> > 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)
  3. 0

    Game keeps crashing when placing/interacting/activating BuildCraft Blocks

    GitHub | 1 year ago | ChlodAidanAlejandro
    java.lang.IllegalStateException: Already tesselating!" I don't know what tesselating means but when I dug deeper into the crash report I saw something related to BuildCraft: "at net.minecraft.client.renderer.Tessellator.func_78371_b(Tessellator.java:374)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    TomEE Users - EAR IN TOMEE

    nabble.com | 11 months ago
    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 < > >>> >> > >>> >> > > 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: >>> >> > > LinkedIn: >>> >> > > Github: >>> >> > > >>> >> > > >>> >> > > >>> >> > > 2012/12/7 José Luis Cetina < >: >>> >> > > > 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 < > >>> >> > > > >>> >> > > >> 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: >>> >> > > >> LinkedIn: >>> >> > > >> Github: >>> >> > > >> >>> >> > > >> >>> >> > > >> >>> >> > > >> 2012/12/7 José Luis Cetina < >: >>> >> > > >> > 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)
  6. 0

    TomEE Users - EAR IN TOMEE

    nabble.com | 11 months ago
    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 < > >>>>> >> > >>>>> >> > > 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: >>>>> >> > > LinkedIn: >>>>> >> > > Github: >>>>> >> > > >>>>> >> > > >>>>> >> > > >>>>> >> > > 2012/12/7 José Luis Cetina < >: >>>>> >> > > > 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 < > >>>>> >> > > > >>>>> >> > > >> 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: >>>>> >> > > >> LinkedIn: >>>>> >> > > >> Github: >>>>> >> > > >> >>>>> >> > > >> >>>>> >> > > >> >>>>> >> > > >> 2012/12/7 José Luis Cetina < >: >>>>> >> > > >> > 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)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Cannot call >> next() when input is exhausted >> at net.sf.saxon.tinytree.TinyTreeWalker.next(TinyTreeWalker.java:196) >> at net.sf.saxon.pull.PullFilter.next(PullFilter.java:85) >> at >> net.sf.saxon.pull.PullNamespaceReducer.next(PullNamespaceReducer.java:71) >> at net.sf.saxon.pull.PullToStax.next(PullToStax.java:223) >> at >> com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:156) >> at >> com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:333) >> at >> com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312) >> at TaskImpl.readFromXML(TaskImpl.java:182) >> at TaskImpl.main(TaskImpl.java:336) >> >> I wonder whether these two variants are equivalent >> >> >> Nikita Zinoviev wrote: >> >>> Good luck to you, this seems rather eye-catching! >>> I don't know much about JAXB, though I explored some openjdk sources >>> for UnmarshallerImpl via google codesearch. >>> >>> Nikita >>> >>> Michael Kay wrote: >>> >>> >>>> Just another progress report on this: can't entirely blame the >>>> Unmarshaller >>>> for falling over, because it seems the stream of events delivered by >>>> Saxon >>>> isn't actually well-balanced. This could be a consequence of a bad >>>> patch for >>>> another problem. Will need to investigate further. >>>> >>>> Michael Kay >>>> >>>> >>>> >>>> >>>> -----Original Message----- From: Michael Kay [mailto:mike@...] Sent: 30 March 2009 23:14 To: 'Mailing list for the SAXON XSLT and XQuery processor' Subject: Re: [saxon] Forwarding saxon results to JAXB unmarshaller via S9API > Shouldn't be hard to fix. > > > Perhaps I spoke too soon. After Saxon returns the END_DOCUMENT event, the Unmarshaller calls next() again. It shouldn't do this; the only valid call in END_DOCUMENT state is close(). So Saxon should either throw NoSuchElementException ("if next() is called when hasNext() returns false"), or IllegalStateException ("If a method is called in an invalid state the method will throw a java.lang.IllegalStateException"). But either exception simply causes the Unmarshaller to bomb out with a stack trace. So I don't really know what's going on: I don't think the Unmarshaller is behaving in a conformant way. Here's the stack trace: Exception in thread "main" java.lang.IllegalStateException at net.sf.saxon.evpull.EventToStaxBridge.nextx(EventToStaxBridge. java:257) at net.sf.saxon.evpull.EventToStaxBridge.next(EventToStaxBridge.java:233) at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.b ridge(StAXStre amConnector.java:126) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unma rshal0(Unmarsh allerImpl.java:333) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unma rshal(Unmarsha llerImpl.java:312)

      at test.ZinovievTest.readFromXML()
    2. test
      ZinovievTest.main
      1. test.ZinovievTest.readFromXML(ZinovievTest.java:172)
      2. test.ZinovievTest.main(ZinovievTest.java:301)
      2 frames
    3. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      1 frame