现在我用最笨的方法,把webclient.jar加到tools.jar中已经成功,但是又出了新的问题:
javax.naming.NameNotFoundException: Name TDbobject is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:814)
at org.apache.naming.NamingContext.lookup(NamingContext.java:197)
at testejb.MyWebC.getHello(MyWebC.java:23)
at org.apache.jsp.testejb.index_jsp._jspService(index_jsp.java:73)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrappe
.java:320)
说我的TDbobject找不到,但是xml文档如下:
weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>TDbobject</ejb-name>
<entity-descriptor>
<persistence>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-use>
</persistence>
</entity-descriptor>
<local-jndi-name>TDbobject</local-jndi-name>
</weblogic-enterprise-bean>
所以我就很奇怪了,是不是jsp页面调用必须要remote接口,我是用的local接口。
javax.naming.NameNotFoundException: Name TDbobject is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:814)
at org.apache.naming.NamingContext.lookup(NamingContext.java:197)
at testejb.MyWebC.getHello(MyWebC.java:23)
at org.apache.jsp.testejb.index_jsp._jspService(index_jsp.java:73)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrappe
.java:320)
说我的TDbobject找不到,但是xml文档如下:
weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>TDbobject</ejb-name>
<entity-descriptor>
<persistence>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-use>
</persistence>
</entity-descriptor>
<local-jndi-name>TDbobject</local-jndi-name>
</weblogic-enterprise-bean>
所以我就很奇怪了,是不是jsp页面调用必须要remote接口,我是用的local接口。
解决方案 »
- CTRL+A windows的cmd控制台解除线程阻塞
- 请问谁对jms,Apache的ActiveMQ有一些研究的吗?
- 一个简单的jsp验证问题
- 使用spirng aop ,配置transactioninterceptor事务不能回滚,什么原因?谢谢
- 请教一个利用java中socket字节流进行收发时遇到的问题
- 求几道J2EE题的答案!!!在线等!!谢谢!!!!
- tomcat5.0 里用JDBC连数据库为何不行
- 我是一名初学者,一开始就被类变量、类方法、实例变量、实例方法概念搞得晕头转向,请你们举一个简单的例子说明这些概念谢谢!
- 关于J2EE,EJB的书籍
- java线程定时器需要1分钟遍历一次的死循环求大神帮忙弄个吧!!急啊!!!
- 简单的登陆程序报错,我实在是读不懂jboss的错误信息了,麻烦各位给看看错在哪儿?
- 求救:请大家帮我看看我发布程序时报的错误是什么意思。
比如做一个index.jsp页面,里面只有<%
out.println("hello");
%>
那么我如何访问呢?
这个页面应该放在哪儿呢?
http:\\127.0.0.1:8080\examples\aaa.jsp