Hello,
I am new to
EJB and am trying EJB for dummies. I tried to deploy a sample application that can be downloaded from the book website - HelloWorld.
I followed the instructions and everything went well till I reached the section where I have to run this bat file. I get errors when I run it.
By the way, Dummies uses
JBoss 3.0.0 while I am using JBoss-4.2.0.GA so I believe there is a problem with the path. Two things I noticed. Firstly, in the bat file the author has used %JBOSS% - Should I change it to something else. Secondly, I notice the files listed in the bat file are different from the ones I have in the client directory of my JBoss installation. So do they all need to be listed or changed.
I have pasted both the bat file and the error I get below. Would be really thankful if someone kindly guides me how I can solve this isssue.
Thanks in advance.
Ricky
java -classpath %JBOSS_DIST%\client;
%JBOSS_DIST%\client\auth.conf;
%JBOSS_DIST%\client\concurrent.jar;
%JBOSS_DIST%\client\gnu-regexp.jar;
%JBOSS_DIST%\client\jaas.jar;
%JBOSS_DIST%\client\jboss-client.jar;
%JBOSS_DIST%\client\jboss-common-client.jar;
%JBOSS_DIST%\client\jboss-j2ee.jar;
%JBOSS_DIST%\client\jbossmq-client.jar;
%JBOSS_DIST%\client\jbosssx-client.jar;
%JBOSS_DIST%\client\jboss-system-client.jar;
%JBOSS_DIST%\client\jcert.jar;%JBOSS_DIST%\client\jmx-connector-client-factory.jar; %JBOSS_DIST%\client\jmx-ejb-connector-client.jar; %JBOSS_DIST%\client\jmx-rmi-connector-client.jar;
%JBOSS_DIST%\client\jnet.jar;
%JBOSS_DIST%\client\jpn-client.jar;
%JBOSS_DIST%\client\jsse.jar;
%JBOSS_DIST%\client\log4j.jar;
%JBOSS_DIST%\client\jndi.properties;%JBOSS_DIST%\server\default\deploy\helloWorld.jar;
%JBOSS_DIST%\lib\mail.jar com.sextanttech.hello.interfaces.Client
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>helloWorld.bat
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>java -classpath \client;
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\client\auth.conf;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\client\concurrent.jar;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\client\gnu-regexp.jar;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\client\jaas.jar;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\client\jboss-client.jar;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\client\jboss-common-client.jar;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\client\jboss-j2ee.jar;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\client\jbossmq-client.jar;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\client\jbosssx-client.jar;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\client\jboss-system-client.jar;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\client\jcert.jar;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\client\jmx-connector-client-factory.jar;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\client\jmx-ejb-connector-client.jar;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\client\jmx-rmi-connector-client.jar;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\client\jnet.jar;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\client\jpn-client.jar;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\client\jsse.jar;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\client\log4j.jar;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\client\jndi.properties;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\server\default\deploy\helloWorld.jar;
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>\lib\mail.jar com.sextanttech.hello.interfaces.Cl
ient
The system cannot find the path specified.
C:\Documents and Settings\HP_Administrator\Desktop\SAMPLE code from EJB 4 DUMMIE
S\HelloWorldProject\clientCode>