新问题,2。0能生成CLIENT生成运行时有错
在weblogic-rdbms-jar 里
  <ejb-name>Fctecm</ejb-name>
        <data-source-name>test</data-source-name>
        <table-name>FCTECM</table-name>
在/weblogic-ejb-jar>里
   <jndi-name>FctecmRemote</jndi-name>
在ejb-jar 里
             <display-name>Fctecm</display-name>
            <ejb-name>Fctecm</ejb-name>
 在CLIENT里        Object ref = ctx.lookup("FctecmRemote");   这样又说找不到我的javax.naming.NameNotFoundException: Unable to resolve FctecmRemote. Resolved: '' Unresolved:'FctecmRemote' ; remaining name ''

解决方案 »

  1.   

    又一个问题JB的例子编译时报错
    java.lang.NullPointerException
    --------------- nested within: ------------------
    "Footer.jsp": weblogic.utils.AssertionError: ***** ASSERTION FAILED ***** - with nested exception:
    [java.lang.NullPointerException]
      

  2.   

    WEBLOGIC或者环境CLASSPATH什么的需要怎么配才不会编译JSP报错
      

  3.   

    你的JNDI名称有问题啊,怎么前后不一的?当然有问题了
      

  4.   

    "fctR.ejbgrpx": ERROR: Error parsing 'ejb-jar.xml' line 128: The content of element type "relationship-role-source" is incomplete, it must match "(description?,ejb-name)".
    我在做两个实体BEAN的关联时报错
      <relationships>
            <ejb-relation>
                <ejb-relation-name>cmp-fctecm</ejb-relation-name>
                <ejb-relationship-role>
                    <description>cmp</description>
                    <ejb-relationship-role-name>cmpRelationshipRole</ejb-relationship-role-name>
                    <multiplicity>one</multiplicity>
                    <relationship-role-source />
                    <cmr-field>
                        <description>fctecm</description>
                        <cmr-field-name>fctecm</cmr-field-name>
                    </cmr-field>
                </ejb-relationship-role>
                <ejb-relationship-role>
                    <description>fctecm</description>
                    <ejb-relationship-role-name>fctecmRelationshipRole</ejb-relationship-role-name>
                    <multiplicity>one</multiplicity>
                    <relationship-role-source />
                    <cmr-field>
                        <description>cmp</description>
                        <cmr-field-name>cmp</cmr-field-name>
                    </cmr-field>
                </ejb-relationship-role>
            </ejb-relation>
        </relationships>
    我把<relationship-role-source />替换成<relationship-role-source>
    <ejb-nam>cmpT</ejb-name>
    </relationship-role-source>也不行
    另外,请教 inprise_lyj(只愛一點點) ,我配置服务器,设置好后应该EJB和JSP的服务器都是一样的啊。还需要单独设置JSP的服务器啊?
      

  5.   

    weblogic不需要另外配jsp服务器,本身就可以
    你把jsp文件放入application的defaultwebapp就可以了
    不需要另外配置了
      

  6.   

    TO  mefaintII(我晕) ( ) ,我放了是可以,问题是如果我在JB7里用面版生成JSP,他编译总通不过,我是想用JB把EJB,JSP打包成WAR然后发布