Hi,

          I need to run my first "Hello! World" EJB 2.0 program on WebLogic 6.1. I face the following problem:

I have created the following .java files for a stateless Session bean:

  1. NostraBean.java   //implements SessionBean, NostraInterface
  2. NostraHomeInterface.java //extends EJBHome
  3. NostraInterface.java   // The interface contains only the function for the business logic
  4. NostraRemoteInterface.java // extends EJBObject, NostraInterface

I compiled the files and placed the class files in D:\Sandeep\EJB\Nostra

I created the META-INF directory under the Nostra directory.

I installed WebLogic 6.1 in my D:\ drive

I started the WebLogic server at the command prompt.

I set my path in the Windows 2000 environmental variables as :

D:\jdk1.3.1\bin;D:\j2sdkee1.3\bin;D:\Oracle\Ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;

I set my classpath as:

D:\jsdk2.1\servlet.jar;.;D:\jdk1.3.1\lib;D:\j2sdkee1.3\lib\j2ee.jar;D:\WebLogic6.1\lib\weblogic.jar;

I opened a command prompt into the directory D:\Sandeep\EJB\Nostra and ran the command setEnv

In the same command prompt I am running the following command to automatically generate the EJB deployment descriptors:

java weblogic.ant.taskdefs.ejb20.DDInit D:\sandeep\ejb\Nostra

The output of the command is :

 

Loading classes

Creating descriptors

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

at java.lang.String.substring(String.java:1525)

at weblogic.ant.taskdefs.ejb20.DDInit.initDescriptors(DDInit.java:186)

at weblogic.ant.taskdefs.ejb20.DDInit.execute(DDInit.java:110)

at weblogic.ant.taskdefs.ejb20.DDInit.main(DDInit.java:531)

 

 

PROBLEM :

No descriptor files get created. Where have I gone wrong? PLEASE HELP!!!!!

Regards,

Sandeep

[EMAIL PROTECTED] 

Reply via email to