Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Class not found exception.  RSS feed

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After I compiled all classes,And Deploy it in Weblogic5.1,when I try to generate container...I am getting an error,Class not found exception(i.e it's not able to find the remote Interface)When I look for the problems.It's showing the directory created as C://WinNT/profile/...../c:/ejb.Where as I got all my class files and Bean under C:EJB directory..can Some body give me a solution?
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Prem,
Please refer to Examples of weblogic 5.1 version in which there is a file called build.cmd.Please edit the file for JAVAHOME and weblogic home.Following is the file.Please refer to it
@REM Copyright (c) 2000 BEA Systems, Inc. All Rights Reserved.
@REM Adjust these variables to match your environment
if "" == "%JAVA_HOME%" set JAVA_HOME=\java
if "" == "%WL_HOME%" set WL_HOME=\weblogic
set MYSERVER=%WL_HOME%\myserver
set MYCLASSPATH=%JAVA_HOME%\lib\;%WL_HOME%\classes;%WL_HOME%\lib\weblogicaux.jar;%MYSERVER%\clientclasses
@REM Create the build directory, and copy the deployment descriptors into it
mkdir build build\META-INF
copy *.xml build\META-INF
@REM Compile ejb classes into the build directory (jar preparation)
javac -d build -classpath %MYCLASSPATH%
@REM Make a standard ejb jar file, including XML deployment descriptors
cd build
jar cv0f std_ejb_basic_beanManaged.jar META-INF examples
cd ..
@REM Run ejbc to create the deployable jar file
java -classpath %MYCLASSPATH% -Dweblogic.home=%WL_HOME% weblogic.ejbc -compiler javac build\std_ejb_basic_beanManaged.jar %MYSERVER%\ejb_basic_beanManaged.jar
@REM Compile ejb interfaces & client app into the clientclasses directory
javac -d %MYSERVER%\clientclasses -classpath %MYCLASSPATH%
@REM Compile servlets into the servletclasses directory
javac -d %MYSERVER%\servletclasses -classpath %MYCLASSPATH%

Change this file for your remote/home/bean and run from your command prompt.
I think this will help you
Why should I lose weight? They make bigger overalls. And they sure don't make overalls for tiny ads:
Rocket Oven Kickstarter - from the trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!