Sei sulla pagina 1di 2

set classpath for j2ee.jar javac -d . *.java D:\kiranejb>set classpath=C:\bea\weblogic81\server\lib\weblogic.jar;C:\Java\jdk1 .5.0_09\lib\tools.jar; for weblogic 10 ---C:\bea\wlserver_10.0\server\lib\weblogic.jar C:\Program Files\Java\jdk1.5.0_09\lib\tools.

jar D:\kiranejb>set classpath=C:\bea\wlserver_10.0\server\lib\weblogic.jar;C:\Progra m Files\Java\jdk1.5.0_09\lib\tools.jar; jar cvf kiaran_src.jar com copy ejb-jar.xml and weblogic-ejb-jar.xml in meta-inf folder jar uvf kiaran_src.jar META-INF java weblogic.ejbc kiaran_src.jar kiran_dest.jar s path setting for tools/weblogic/j2ee.jar compile client and run ============================================================================== O:\kiranejb\kiranEjbTry>java weblogic.ejbc kiaran_src.jar kiran_dest.jar DEPRECATED: The weblogic.ejbc compiler is deprecated and will be removed in a fu ture version of WebLogic Server. Please use weblogic.appc instead. --- if gives error check clas

There are 2 nested errors: weblogic.utils.compiler.ToolFailureException: ERROR: Error from ejbc: Unable to load a class specified in your ejb-jar.xml: com.javasree.ejb.hello.HelloBean at at at at at and weblogic.utils.compiler.ToolFailureException: ERROR: ejbc couldn't invoke compil er at weblogic.ejbc20.runBody(ejbc20.java:524) at weblogic.utils.compiler.Tool.run(Tool.java:158) at weblogic.utils.compiler.Tool.run(Tool.java:115) at weblogic.ejbc.main(ejbc.java:36) weblogic.ejbc20.formatErrorsInCollection(ejbc20.java:665) weblogic.ejbc20.runBody(ejbc20.java:523) weblogic.utils.compiler.Tool.run(Tool.java:158) weblogic.utils.compiler.Tool.run(Tool.java:115) weblogic.ejbc.main(ejbc.java:36)

O:\kiranejb\kiranEjbTry>jar uvf kiaran_src.jar META-INF adding: META-INF/ejb-jar.xml(in = 581) (out= 301)(deflated 48%) adding: META-INF/weblogic-ejb-jar.xml(in = 562) (out= 289)(deflated 48%)

ignoring entry META-INF/ O:\kiranejb\kiranEjbTry>java weblogic.ejbc kiaran_src.jar kiran_dest.jar DEPRECATED: The weblogic.ejbc compiler is deprecated and will be removed in a fu ture version of WebLogic Server. Please use weblogic.appc instead. <Nov 7, 2011 6:26:33 PM GMT> <Error> <EJB> <BEA-010054> <EJB Deployment: searchM anagerEJB has a class com.ofj.hrd.ejb.SearchManagerBean that is in the classpath . This class should only be located in the ejb-jar file.> <Nov 7, 2011 6:26:33 PM GMT> <Error> <EJB> <BEA-010054> <EJB Deployment: searchM anagerEJB has a class com.ofj.hrd.ejb.SearchManagerHome that is in the classpath . This class should only be located in the ejb-jar file.> <Nov 7, 2011 6:26:33 PM GMT> <Error> <EJB> <BEA-010054> <EJB Deployment: searchM anagerEJB has a class com.ofj.hrd.ejb.SearchManagerRemote that is in the classpa th. This class should only be located in the ejb-jar file.> <Nov 7, 2011 6:26:33 PM GMT> <Warning> <EJB> <BEA-010212> <The EJB 'searchManage rEJB(Jar: kiaran_src.jar)' contains at least one method without an explicit tran saction attribute setting. The default transaction attribute of Supports will be used for the following methods: remote[searchByCTC(double), searchByQuali(java. lang.String), searchByCompany(java.lang.String), searchByExp(java.lang.String), searchByLocation(java.lang.String), searchBySkills(java.util.ArrayList)] > <Nov 7, 2011 6:26:34 PM GMT> <Warning> <EJB> <BEA-010202> <Call-by-reference is not enabled for the EJB 'searchManagerEJB'. The server will have better performa nce if it is enabled. To enable call-by-reference, set the enable-call-by-refere nce element to True in the weblogic-ejb-jar.xml deployment descriptor for this E JB.> ejbc successful. O:\kiranejb\kiranEjbTry>javac -d . Client.java Note: Client.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. O:\kiranejb\kiranEjbTry>java com.ofj.hrd.ejb.Client [kiran, kirani@ofj.com, 99999, onlyforjava.com] [kiran, kirani@ofj.com, 99999, 6yrs] [kiran, kirani@ofj.com, 99999, M.Sc] [kiran, kirani@ofj.com, 99999, Blore] [kiran, kirani@ofj.com, 99999, 99laks] [kiran, kirani@ofj.com, 99999, ejb, ajax] O:\kiranejb\kiranEjbTry>

Potrebbero piacerti anche