现在我用最笨的方法,把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接口。