openejb-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rudytblr <rudyt...@gmail.com>
Subject Re: OpenEJB 4.0.0-beta-2 : ERROR - Error in safeBind method
Date Thu, 05 Apr 2012 01:39:30 GMT
I will give it a try.

Bruce


On Wed, Apr 4, 2012 at 6:02 PM, Romain Manni-Bucau [via OpenEJB] <
ml-node+s979440n4533330h31@n4.nabble.com> wrote:

> Hi,
>
> Did you try with tomcat 7.0.21?
>
> - Romain
>
> Le 4 avr. 2012 17:44, "rudytblr" <[hidden email]<http://user/SendEmail.jtp?type=node&node=4533330&i=0>>
> a écrit :
>
> > My goal is to run a JEE 6 tutorial application both in Glassfish 3.1.1
> and
> > Tomcat 7. The application works in Glassfish. Tomcat needs the
> capabilities
> > in OpenEJB in order to be able to support the application. I am using
> > NetBeans 7.1 as the IDE
> >
> > I manually installed the drop-in WAR,
> tomee-plus-webapp-4.0.0-beta-2.war,
> > to
> > Tomcat 7.0.26 and followed the manual installation steps provided on the
> > OpenEJB website.
> >
> > I have verified that the session bean implemented in the application was
> > created by opening the OpenEJB web application and clicking on the JNDI
> > menu
> > link. I also clicked Index > Testing your setup and the following pages
> > show
> > OK on the eight tests.
> >
> > The application uses a MySQL database.
> >
> > When the application attempts to access an instance of the session bean
> but
> > fails because the instance variable is null (the bean is not
> instantiated).
> > The following errors are then written to the openejb.log file:
> >
> > *Summary:*
> > 2012-04-04 11:18:11,765 - ERROR - Error in safeBind method
> > javax.naming.NameNotFoundException: Name openejb is not bound in this
> > Context
> >
> > 2012-04-04 11:18:11,781 - ERROR - Error in safeBind method
> > javax.naming.NameNotFoundException: No ORB registered with the OpenEJB
> > system
> >
> > 2012-04-04 11:18:11,781 - ERROR - Error in safeBind method
> > javax.naming.NameNotFoundException: No HandleDelegate registered with
> the
> > OpenEJB system
> >
> > *Detail:*
> > 2012-04-04 11:18:09,843 - INFO  - Configuring enterprise application:
> >
> C:\Data\Development\NetBeans\javaeetutorial6\examples\PetCatalog\build\web
> > 2012-04-04 11:18:10,265 - INFO  - Auto-deploying ejb ItemFacade:
> > EjbDeployment(deployment-id=ItemFacade)
> > 2012-04-04 11:18:10,375 - INFO  - Configuring
> > PersistenceUnit(name=catalogPU)
> > 2012-04-04 11:18:10,375 - INFO  - Adjusting PersistenceUnit catalogPU
> > <jta-data-source> to Resource ID 'mysqlDataSource' from
> > 'petcatalogDataSource'
> > 2012-04-04 11:18:10,375 - INFO  - Adjusting PersistenceUnit catalogPU
> > <non-jta-data-source> to Resource ID 'mysqlDataSourceNonJta' from 'null'
> > 2012-04-04 11:18:10,375 - INFO  - Enterprise application
> >
> >
> "C:\Data\Development\NetBeans\javaeetutorial6\examples\PetCatalog\build\web"
>
> > loaded.
> > 2012-04-04 11:18:10,375 - INFO  - Assembling app:
> >
> C:\Data\Development\NetBeans\javaeetutorial6\examples\PetCatalog\build\web
> > 2012-04-04 11:18:10,406 - INFO  - PersistenceUnit(name=catalogPU,
> > provider=org.apache.openjpa.persistence.PersistenceProviderImpl) -
> provider
> > time 18ms
> > 2012-04-04 11:18:10,484 - INFO  - Jndi(name=ItemFacadeLocalBean) -->
> > Ejb(deployment-id=ItemFacade)
> > 2012-04-04 11:18:10,484 - INFO  -
> > Jndi(name=global/localhost/petcatalog/ItemFacade!controller.ItemFacade)
> -->
> > Ejb(deployment-id=ItemFacade)
> > 2012-04-04 11:18:10,484 - INFO  -
> > Jndi(name=global/localhost/petcatalog/ItemFacade) -->
> > Ejb(deployment-id=ItemFacade)
> > 2012-04-04 11:18:10,500 - INFO  - Created Ejb(deployment-id=ItemFacade,
> > ejb-name=ItemFacade, container=My Stateless Container)
> > 2012-04-04 11:18:10,515 - INFO  - Started Ejb(deployment-id=ItemFacade,
> > ejb-name=ItemFacade, container=My Stateless Container)
> > 2012-04-04 11:18:10,531 - INFO  - Deployed
> >
> >
> Application(path=C:\Data\Development\NetBeans\javaeetutorial6\examples\PetCatalog\build\web)
>
> > 2012-04-04 11:18:11,765 - ERROR - Error in safeBind method
> > javax.naming.NameNotFoundException: Name openejb is not bound in this
> > Context
> >        at org.apache.naming.NamingContext.lookup(NamingContext.java:820)
> >        at org.apache.naming.NamingContext.lookup(NamingContext.java:168)
> >        at
> >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.safeBind(TomcatWebAppBuilder.java:1145)
>
> >        at
> >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:726)
>
> >        at
> >
> >
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:103)
>
> >        at
> >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>
> >        at
> >
> >
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>
> >        at
> >
> >
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
>
> >        at
> > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:168)
> >        at
> >
> org.apache.catalina.core.StandardContext.reload(StandardContext.java:3908)
> >        at
> >
> org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:949)
> >        at
> >
> org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:360)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> >        at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>
> >        at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>
> >        at
> >
> >
> org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
>
> >        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:224)
>
> >        at
> >
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
>
> >        at
> > org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
> >        at
> >
> >
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
>
> >        at
> >
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
>
> >        at
> >
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>
> >        at
> >
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
> >        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:987)
>
> >        at
> >
> >
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
>
> >        at
> >
> >
> org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1805)
>
> >        at
> >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>
> >        at
> >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>
> >        at java.lang.Thread.run(Thread.java:662)
> > 2012-04-04 11:18:11,781 - INFO  - TransactionManager already bound,
> > ignoring
> > 2012-04-04 11:18:11,781 - INFO  - TransactionSynchronizationRegistry
> > already
> > bound, ignoring
> > 2012-04-04 11:18:11,781 - ERROR - Error in safeBind method
> > javax.naming.NameNotFoundException: No ORB registered with the OpenEJB
> > system
> >        at
> >
> >
> org.apache.openejb.core.ivm.naming.SystemComponentReference.getObject(SystemComponentReference.java:38)
>
> >        at
> >
> org.apache.openejb.core.ivm.naming.Reference.getContent(Reference.java:40)
> >        at
> >
> >
> org.apache.xbean.naming.reference.SimpleReference$SimpleObjectFactory.getObjectInstance(SimpleReference.java:137)
>
> >        at
> > javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
> >        at org.apache.naming.NamingContext.lookup(NamingContext.java:843)
> >        at org.apache.naming.NamingContext.lookup(NamingContext.java:168)
> >        at
> >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.safeBind(TomcatWebAppBuilder.java:1145)
>
> >        at
> >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:756)
>
> >        at
> >
> >
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:103)
>
> >        at
> >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>
> >        at
> >
> >
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>
> >        at
> >
> >
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
>
> >        at
> > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:168)
> >        at
> >
> org.apache.catalina.core.StandardContext.reload(StandardContext.java:3908)
> >        at
> >
> org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:949)
> >        at
> >
> org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:360)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> >        at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>
> >        at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>
> >        at
> >
> >
> org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
>
> >        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:224)
>
> >        at
> >
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
>
> >        at
> > org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
> >        at
> >
> >
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
>
> >        at
> >
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
>
> >        at
> >
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>
> >        at
> >
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
> >        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:987)
>
> >        at
> >
> >
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
>
> >        at
> >
> >
> org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1805)
>
> >        at
> >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>
> >        at
> >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>
> >        at java.lang.Thread.run(Thread.java:662)
> > 2012-04-04 11:18:11,781 - ERROR - Error in safeBind method
> > javax.naming.NameNotFoundException: No HandleDelegate registered with
> the
> > OpenEJB system
> >        at
> >
> >
> org.apache.openejb.core.ivm.naming.SystemComponentReference.getObject(SystemComponentReference.java:38)
>
> >        at
> >
> org.apache.openejb.core.ivm.naming.Reference.getContent(Reference.java:40)
> >        at
> >
> >
> org.apache.xbean.naming.reference.SimpleReference$SimpleObjectFactory.getObjectInstance(SimpleReference.java:137)
>
> >        at
> > javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
> >        at org.apache.naming.NamingContext.lookup(NamingContext.java:843)
> >        at org.apache.naming.NamingContext.lookup(NamingContext.java:168)
> >        at
> >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.safeBind(TomcatWebAppBuilder.java:1145)
>
> >        at
> >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:757)
>
> >        at
> >
> >
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:103)
>
> >        at
> >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>
> >        at
> >
> >
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>
> >        at
> >
> >
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
>
> >        at
> > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:168)
> >        at
> >
> org.apache.catalina.core.StandardContext.reload(StandardContext.java:3908)
> >        at
> >
> org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:949)
> >        at
> >
> org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:360)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> >        at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>
> >        at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>
> >        at
> >
> >
> org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
>
> >        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:224)
>
> >        at
> >
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
>
> >        at
> > org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
> >        at
> >
> >
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
>
> >        at
> >
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
>
> >        at
> >
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>
> >        at
> >
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
> >        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:987)
>
> >        at
> >
> >
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
>
> >        at
> >
> >
> org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1805)
>
> >        at
> >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>
> >        at
> >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>
> >        at java.lang.Thread.run(Thread.java:662)
> >
> > I am looking for ideas to help resolve this.
> >
> > Regards,
> > Bruce
> >
> > --
> > View this message in context:
> >
> http://openejb.979440.n4.nabble.com/OpenEJB-4-0-0-beta-2-ERROR-Error-in-safeBind-method-tp4532318p4532318.html
> > Sent from the OpenEJB User mailing list archive at Nabble.com.
> >
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://openejb.979440.n4.nabble.com/OpenEJB-4-0-0-beta-2-ERROR-Error-in-safeBind-method-tp4532318p4533330.html
>  To unsubscribe from OpenEJB 4.0.0-beta-2 : ERROR - Error in safeBind
> method, click here<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4532318&code=cnVkeXRibHJAZ21haWwuY29tfDQ1MzIzMTh8MTIyNzAzNjM4Mw==>
> .
> NAML<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: http://openejb.979440.n4.nabble.com/OpenEJB-4-0-0-beta-2-ERROR-Error-in-safeBind-method-tp4532318p4533689.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message