当前位置: 技术问答>java相关
做一个ejb后报以下错误:求教!
来源: 互联网 发布时间:2015-10-09
本文导语: "hello.ejbgrpx": G:weblogicjdk131_03binjavaw -classpath "G:weblogicweblogic700serverlibweblogic_sp.jar;G:weblogicweblogic700serverlibweblogic.jar;" weblogic.ejbc -keepgenerated -compiler G:/JBuilder7/bin/bcjW K:/Projects/Java/hello/hello.jar.jar K:/Projects/Java/hello/hello...
"hello.ejbgrpx": G:weblogicjdk131_03binjavaw -classpath "G:weblogicweblogic700serverlibweblogic_sp.jar;G:weblogicweblogic700serverlibweblogic.jar;" weblogic.ejbc -keepgenerated -compiler G:/JBuilder7/bin/bcjW K:/Projects/Java/hello/hello.jar.jar K:/Projects/Java/hello/hello.jar
"hello.ejbgrpx": ERROR: Error from ejbc:
"hello.ejbgrpx": In EJB hello, method hellow defined in the remote interface either does not exist in the bean class, or it is not a public method. Each method in the remote interface must have a corresponding public method in the bean class.
"hello.ejbgrpx": ERROR: ejbc found errors
"hello.ejbgrpx": ERROR: Error from ejbc:
"hello.ejbgrpx": In EJB hello, method hellow defined in the remote interface either does not exist in the bean class, or it is not a public method. Each method in the remote interface must have a corresponding public method in the bean class.
"hello.ejbgrpx": ERROR: ejbc found errors
|
ejbc有错误,好象是你部署时有问题。
|
Hello中
应该是这样:
public void hellow(...) throws RemoteException;
HelloBean中
应该是这样:
public void hellow(...){
}
这两个应该匹配,你查查两部分是不是缺了一个
应该是这样:
public void hellow(...) throws RemoteException;
HelloBean中
应该是这样:
public void hellow(...){
}
这两个应该匹配,你查查两部分是不是缺了一个