系统运行时错误:
RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: ; nested exception is: java.lang.IllegalStateException
应该是EJB没有部暑好,仔细和之前生成的EJB 发现自已的文件少了几个东西:
少了绿色字体显示的内容
<session id="TaxInvoiceFlowFacade">
<ejb-name>TaxInvoiceFlowFacade</ejb-name>
<home>com.invoice.TaxInvoiceFlowFacadeHome</home>
<remote>com.TaxInvoiceFlowFacade</remote>
<ejb-class>com.TaxInvoiceFlowFacadeBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
<resource-ref id="ResourceRef_1277364663308">
<description></description>
<res-ref-name>jdbc/cfi</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</session>
问同事解决:
打开ejb-jar.xml文件内界面管理-->引用-->选中一个ejb --> 添加 -->弹出面板 --> 选中"资源引用"
再填写要配置的要引用的资源。