• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

stuck up..

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
neeti ravi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic