Announcement Announcement Module
Collapse
No announcement yet.
beanFactoryPath in Sun AS Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • beanFactoryPath in Sun AS

    Hi

    I'm deploying an application than contains an EJB which extends AbstractStatelessSessionBean, in Sun System Application Server 8.1 using JDK 1.4.2, and Spring 1.2.7; when I run my application, I get an exception (shown below) which says No object bound to name java:comp/env/ejb/BeanFactoryPath. I'm deploying the same application on Weblogic 8.1 and it works fine. I've not found any information about this. Can anyone give me a sugestion?

    org.springframework.beans.factory.access.Bootstrap Exception: Define an environment variable [java:comp/env/ejb/BeanFactoryPath] containing the class path locations of XML bean definition files; nested exception is javax.naming.NameNotFoundException: No object bound to name java:comp/env/ejb/BeanFactoryPath
    javax.naming.NameNotFoundException: No object bound to name java:comp/env/ejb/BeanFactoryPath
    at com.sun.enterprise.naming.NamingManagerImpl.lookup (NamingManagerImpl.java:668)
    at com.sun.enterprise.naming.java.javaURLContext.look up(javaURLContext.java:132)
    at com.sun.enterprise.naming.SerialContext.lookup(Ser ialContext.java:288)
    at javax.naming.InitialContext.lookup(InitialContext. java:347)
    at org.springframework.jndi.JndiTemplate$1.doInContex t(JndiTemplate.java:123)
    at org.springframework.jndi.JndiTemplate.execute(Jndi Template.java:85)
    at org.springframework.jndi.JndiTemplate.lookup(JndiT emplate.java:121)
    at org.springframework.jndi.JndiTemplate.lookup(JndiT emplate.java:146)
    at org.springframework.jndi.JndiLocatorSupport.lookup (JndiLocatorSupport.java:86)
    at org.springframework.context.access.ContextJndiBean FactoryLocator.useBeanFactory(ContextJndiBeanFacto ryLocator.java:67)
    at org.springframework.ejb.support.AbstractEnterprise Bean.loadBeanFactory(AbstractEnterpriseBean.java:1 17)
    at org.springframework.ejb.support.AbstractStatelessS essionBean.ejbCreate(AbstractStatelessSessionBean. java:64)
    at org.apache.jsp.index_jsp._jspService(index_jsp.jav a:69)
    at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:105)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:860)
    at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:336)
    at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:301)
    at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:251)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:860)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.security.SecurityUtil$1.run(Se curityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject .java:500)
    at org.apache.catalina.security.SecurityUtil.execute( SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPriv ilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.ac cess$000(ApplicationFilterChain.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1. run(ApplicationFilterChain.java:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:263)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:551)
    at org.apache.catalina.core.StandardContextValve.invo keInternal(StandardContextValve.java:225)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:173)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:551)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:161)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:551)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:132)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:933)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(Co yoteAdapter.java:185)
    at com.sun.enterprise.web.connector.grizzly.Processor Task.process(ProcessorTask.java:653)
    at com.sun.enterprise.web.connector.grizzly.Processor Task.process(ProcessorTask.java:534)
    at com.sun.enterprise.web.connector.grizzly.Processor Task.doTask(ProcessorTask.java:403)
    at com.sun.enterprise.web.connector.grizzly.WorkerThr ead.run(WorkerThread.java:55)


    THANKS A LOT
Working...
X