GeeCON Prague 2014*
The moose likes BEA/Weblogic and the fly likes Problem in runnig sample code please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Problem in runnig sample code please help" Watch "Problem in runnig sample code please help" New topic
Author

Problem in runnig sample code please help

Vivek Nidhi
Ranch Hand

Joined: Aug 10, 2003
Posts: 133
Hi,
I am new to this Server. I am trying to run some examples for statefulsession bean. I have put the folder in the example folder
C:\bea\WEBLOG~1\samples\server\src\examples\sfsb>
and tried to run the ANT with target run
I got the Exception:-
C:\example\sfsb>ant run
Buildfile: build.xml
run:
[java] java.lang.NoClassDefFoundError: examples/sfsb/Client
[java] Exception in thread "main"
BUILD FAILED
file:C:/example/sfsb/build.xml:81: Java returned: 1
SOme one please help
thanks
Vivek Nidhi
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
Hi,
to run the examples:
1) open a console window
2) run the setExamplesEnv script under the examples domain
3) navigate(using the same console window you'd run the setExamplesEnv script) to the example folder you want to run i.e : %bea_home%/weblogic81/samples/server/examples/src/examples/ejb20/basic/statefulSession
4) start the examples server if you still didn't
5) type ant on the console window to build the example
6) type ant run to run the console example client
 
GeeCON Prague 2014
 
subject: Problem in runnig sample code please help