users@glassfish.java.net

Re: javax.ejb.CreateException: Could not create stateless EJB

From: Sahoo <Sahoo_at_Sun.COM>
Date: Mon, 08 Dec 2008 10:41:52 +0530

glassfish_at_javadesktop.org wrote:
> Hi
>
> I am studyig ejb3 in action, but getting a few problems.
> I have downloaded the source code of the book and unzipped it in D:\ejb\books\glassfish.
> I have the Java System Application Server 9.1_01 (glassfish) installed.
>
> But I am getting following error on executing ant in glassfish directory of source code:
> ================
> D:\ejb\books\glassfish>ant
> Buildfile: build.xml
>
> init:
> [echo] -----> Initializing project properties
>
> DropDerbyDataSource:
>
> BUILD FAILED
> D:\ejb\books\glassfish\build.xml:82: Execute failed: java.io.IOException: CreateProcess: ${env.J2EE_HOME}\bin\asadmin.bat delete-jdbc-resource --user admin
> --host localhost --port 2697 jdbc/ActionBazaarDS error=2
>
error=2 most likely means "No such file or directory," which means
${env.J2EE_HOME}\bin\asadmin.bat does not exist. Have you set J2EE_HOME
env. var to point to the appserver installation dir?

Sahoo