我在做下面这一步的时候 java weblogic.ejbc -compiler javac build\std_ejb_basic_statelessSession.jar %WL_HOME%\config\%DOMAIN_NAME%\applications\ejb_basic_statelessSession.jar出现如下警告: <2004-1-20 下午04时35分35秒> <Warning> <EJB> <EJB Deployment: statelessSession h as a class examples.ejb.basic.statelessSession.TraderHome which is in the classp ath. This class should only be located in the ejb-jar file.> <2004-1-20 下午04时35分35秒> <Warning> <EJB> <EJB Deployment: statelessSession h as a class examples.ejb.basic.statelessSession.Trader which is in the classpath. This class should only be located in the ejb-jar file.>我在ejb-jar.xml文件中是这样写的 <home>examples.ejb.basic.statelessSession.TraderHome</home> <remote>examples.ejb.basic.statelessSession.Trader</remote> <ejb-class>examples.ejb.basic.statelessSession.TraderBean</ejb-class> 为什么最下面的那个没有警告,而它们是放在一块儿的啊?这两是警告会不会是我上面所说的错误的关键地方呢?对了顺便说一句我在weblogic-ejb-jar.xml中是这样定义的: <jndi-name>examples.ejb.basic.statelessSession.TraderHome</jndi-name> 客户端程序中用的jndiname也是examples.ejb.basic.statelessSession.TraderHome
java weblogic.ejbc -compiler javac build\std_ejb_basic_statelessSession.jar %WL_HOME%\config\%DOMAIN_NAME%\applications\ejb_basic_statelessSession.jar出现如下警告:
<2004-1-20 下午04时35分35秒> <Warning> <EJB> <EJB Deployment: statelessSession h
as a class examples.ejb.basic.statelessSession.TraderHome which is in the classp
ath. This class should only be located in the ejb-jar file.>
<2004-1-20 下午04时35分35秒> <Warning> <EJB> <EJB Deployment: statelessSession h
as a class examples.ejb.basic.statelessSession.Trader which is in the classpath.
This class should only be located in the ejb-jar file.>我在ejb-jar.xml文件中是这样写的
<home>examples.ejb.basic.statelessSession.TraderHome</home>
<remote>examples.ejb.basic.statelessSession.Trader</remote>
<ejb-class>examples.ejb.basic.statelessSession.TraderBean</ejb-class>
为什么最下面的那个没有警告,而它们是放在一块儿的啊?这两是警告会不会是我上面所说的错误的关键地方呢?对了顺便说一句我在weblogic-ejb-jar.xml中是这样定义的:
<jndi-name>examples.ejb.basic.statelessSession.TraderHome</jndi-name>
客户端程序中用的jndiname也是examples.ejb.basic.statelessSession.TraderHome