aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes stuck up.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "stuck up.." Watch "stuck up.." New topic
Author

stuck up..

neeti ravi
Greenhorn

Joined: Mar 18, 2001
Posts: 9
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
Suneel Setlur
Ranch Hand

Joined: Nov 26, 2000
Posts: 202
Hi Neeti
You can try working like this.
From the Weblogic directory run the SETENV command for your classpath and other settings. Explore examples\EJB\basic\statelessSession directory. You will find a tool called Build(it has a .CMD extension). Modify this file to suit your requirement and run it.
Suneel


Suneel
neeti ravi
Greenhorn

Joined: Mar 18, 2001
Posts: 9
hi suneel
thanks for the reply
i tried doing something similar to the example..but in vain..
tried all possible ways..
it gives something like
C:\demoejb>java -classpath C:/jdk1.2.2\lib\classes.zip;C:/weblogic\classes;C:/weblogic\lib\weblogica
ux.jar;C:/weblogic\myserver\clientclasses -Dweblogic.home=C:/weblogic weblogic.ejbc -keepgenerated -
compiler javac session/preEJBCSession.jar C:/weblogic\myserver\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
i don't understand why it creates the ejbcgen folder and what is this ProgramAD.ser they are talking abt??
i tried out the set env also..
please help me out
thanks
neeti
neeti ravi
Greenhorn

Joined: Mar 18, 2001
Posts: 9
sorry suneel,
i didn't do it frm the weblogic dir, i just went thru ur mail again and just did it..
and thankx a lot...i got it created finally ..thankx a ton
neeti..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: stuck up..