Hi all
im new to
EJB , and learning to make a simple stateless session bean.
i've three files, the remote, home interface and the ejb model
java files.i have nother client java file as the output.
now i've a problem in compiling and deploying the whole thing.
i've made a folder demoejb (my three java files r here) where i've created a folder named session/Meta-inf .Here i have the xml files ie deployment descriptor.
now i've made a batchfile doing the following
set JAVA_HOME=C:/jdk1.2.2
set WL_HOME=C:/weblogic
set MYCLASSPATH=%JAVA_HOME%/jre/lib/rt.jar;.;%WL_HOME%/classes;%WL_HOME%/lib/weblogicaux.jar;%WL_HOME%\myserver\serverclasses;c:\;
javac -d session -classpath %MYCLASSPATH% Mu*.java
pause
cd session
jar cf preEJBCSession.jar META-INF ejb
cd..
java -classpath %MYCLASSPATH% -Dweblogic.home=%WL_HOME% weblogic.ejbc -keepgenerated -compiler javac session/preEJBCSession.jar session/MultiplierJar.jar
copy session\MultiplierJar.jar C:\weblogic\myserver\Demojar
the first part works fine, but the error is shown here
C:\demoejb>java -classpath C:/jdk1.2.2/jre/lib/rt.jar;.;C:/weblogic/classes;C:/weblogic/lib/weblogic
aux.jar;C:/weblogic\myserver\serverclasses;c:\; -Dweblogic.home=C:/weblogic weblogic.ejbc -keepgener
ated -compiler javac session/preEJBCSession.jar session/MultiplierJar.jar
ERROR: Error from ejbc: C:\demoejb\ejbcgen\Files\JavaSoft\JRE\1\2\lib\rt\jar;C:\ProgramAD.ser (The f
ilename, directory name, or volume label syntax is incorrect)
ERROR: ejbc found errors
C:\demoejb>copy session\MultiplierJar.jar C:\weblogic\myserver\Demojar
The system cannot find the file specified.
can anyone please help me.
sorry for the long mail..since im learning it own my own,im finding it very difficult .please anyone there ..help me out
thankx in advance..
neeti