当前位置:软件学习 > 其它软件 >>

javax.ejb.EJBException: nested exception is: javax.naming.NameNotFoundException: Unable to resolve 'BasicBusiness&#

小弟进来学习一系统,初次涉及EJB,总是出现下面错误,麻烦各位大哥帮忙看看(此乃易做图帖):
ServiceFactory.Main Thread - FATAL  - javax.ejb.EJBException: nested exception is: javax.naming.NameNotFoundException: Unable to resolve 'BasicBusiness' Resolved ; remaining name 'BasicBusiness'
[2008-02-25 10:11:39] StartupServlet.Main Thread - FATAL  - initial security resource unsuccessfully
java.lang.NullPointerException
at com.cnpec.ims.dam.common.template.SearchTemplate.search(Lcom.*.*.*.service.Service;Lcom.*.*.*.model.Model;Lcom.*.*.*.dao.SearchCondition;)Lcom.*.*.*.common.Pager;(SearchTemplate.java:78)
at com.*.*.*.web.ActionCallTemplate.search(Ljava.lang.Object;Ljavax.servlet.http.HttpServletRequest;Lcom.*.*.*.dao.SearchCondition;Lcom.cnpec.ims.dam.service.Service;)Lcom.*.*.*.common.Pager;(ActionCallTemplate.java:344)
at com.*.*.*.web.ActionCallTemplate.search(Ljava.lang.Object;Ljavax.servlet.http.HttpServletRequest;Lcom.*.*.*.dao.SearchCondition;Ljava.lang.String;)Lcom.*.*.*.common.Pager;(ActionCallTemplate.java:333)
at com.*.*.*.web.ActionCallTemplate.search(Ljava.lang.Object;Ljavax.servlet.http.HttpServletRequest;Lcom.*.*.*.dao.SearchCondition;)Lcom.*.*.*.common.Pager;(ActionCallTemplate.java:323)
at com.*.*.*.web.StartupServlet.init()V(StartupServlet.java:73)
at javax.servlet.GenericServlet.init(Ljavax.servlet.ServletConfig;)V(GenericServlet.java:258)
at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run()Ljava.lang.Object;(ServletStubImpl.java:1028)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:121)
at weblogic.servlet.internal.ServletStubImpl.createServlet()Ljavax.servlet.Servlet;(ServletStubImpl.java:904)
at weblogic.servlet.internal.ServletStubImpl.createInstances()V(ServletStubImpl.java:883)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(Lweblogic.servlet.internal.RequestCallback;)V(ServletStubImpl.java:822)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(Ljava.lang.String;)V(WebAppServletContext.java:3333)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets()V(WebAppServletContext.java:3278)
at weblogic.servlet.internal.WebAppServletContext.preloadResources()V(WebAppServletContext.java:3259)
at weblogic.servlet.internal.WebAppServletContext.setStarted(Z)V(WebAppServletContext.java:5949)
at weblogic.servlet.internal.WebAppModule.start()V(WebAppModule.java:862)
at weblogic.j2ee.J2EEApplicationContainer.start([Lweblogic.j2ee.J2EEApplicationContainer$Component;)V(J2EEApplicationContainer.java:2127)
at weblogic.j2ee.J2EEApplicationContainer.activate([Lweblogic.management.configuration.ComponentMBean;)V(J2EEApplicationContainer.java:2168)
at weblogic.j2ee.J2EEApplicationContainer.activate()V(J2EEApplicationContainer.java:2115)
at weblogic.management.deploy.slave.SlaveDeployer$Application.setActivation(Z)V(SlaveDeployer.java:3082)
at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications(ZZ)V(SlaveDeployer.java:1751)
at weblogic.management.deploy.slave.SlaveDeployer.resume()V(SlaveDeployer.java:359)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume()V(DeploymentManagerServerLifeCycleImpl.java:229)
at weblogic.t3.srvr.SubsystemManager.resume()V(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume()V(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run([Ljava.lang.String;)I(T3Srvr.java:361)
at weblogic.Server.main([Ljava.lang.String;)V(Server.java:32)

下面是配置文件信息
Ejb-jar.xml:
<session>
         <description><![CDATA[TestPlayers Business]]></description>
           <ejb-name>TestPlayersEJB</ejb-name>
            <home>com.*.*.*.biz.ejb.testplayers.TestPlayersEJBHome</home>
           <remote>com. .*.*.*.biz.ejb.testplayers.TestPlayersEJB</remote>
            <ejb-class>com. .*.*.*.biz.ejb.testplayers.TestPlayersEJBBean</ejb-class>
            <session-type>Stateless</session-type>
            <transaction-type>Container</transaction-type>
 </session>

<container-transaction>
            <method>
                <ejb-name>TestPlayersEJB</ejb-name>
                <method-name>*</method-name>
            </method>
            <trans-attribute>Required</trans-attribute>
       </container-transaction>

      
Weblogic-ejb-jar.xml:
  <weblogic-enterprise-bean>
             <ejb-name>TestPlayersEJB</ejb-name>
             <jndi-name>TestPlayersBusiness</jndi-name>
       </weblogic-enterprise-bean>
--------------------编程问答-------------------- 接分先! --------------------编程问答-------------------- 关注 接分 --------------------编程问答-------------------- 什么呀 --------------------编程问答-------------------- --------------------编程问答-------------------- 调用时的JNDI名写错了,应该写TestPlayersBusiness  是不是写成'BasicBusiness.TestPlayersBusiness
补充:企业软件 ,  中间件
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,