This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes deployment issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "deployment issue" Watch "deployment issue" New topic
Author

deployment issue

Ricky James
Ranch Hand

Joined: Mar 26, 2007
Posts: 83
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>
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Yes, you will not get it to work because of the different JBoss versions. If the book uses JBoss AS 3, then in order to get their sample to work you need JBoss AS 3. In JBoss AS 4 files like

%JBOSS_DIST%\client\jcert.jar; %JBOSS_DIST%\client\jmx-connector-client-factory.jar; %JBOSS_DIST%\client\jmx-ejb-connector-client.jar;

Are not in the client directory. Those jars do not exist in JBoss 4.0.

So you can either use the EJB tutuorials from JBoss that work with JBoss 4.0, or look at your bat file and remove all the jars that are no longer in the client directory of JBoss.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Ricky James
Ranch Hand

Joined: Mar 26, 2007
Posts: 83
Originally posted by Mark Spritzler:
Yes, you will not get it to work because of the different JBoss versions. If the book uses JBoss AS 3, then in order to get their sample to work you need JBoss AS 3. In JBoss AS 4 files like

%JBOSS_DIST%\client\jcert.jar; %JBOSS_DIST%\client\jmx-connector-client-factory.jar; %JBOSS_DIST%\client\jmx-ejb-connector-client.jar;

Are not in the client directory. Those jars do not exist in JBoss 4.0.

So you can either use the EJB tutuorials from JBoss that work with JBoss 4.0, or look at your bat file and remove all the jars that are no longer in the client directory of JBoss.

Mark



Thanks a lot for the explanation Mark. Really appreciate.

I'll try to change the content of the bat file and see if it works.

Thanks again.
Ricky
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: deployment issue
 
Similar Threads
Return value from create(): null.
How to include full file path in io?
new to jsapi
JBOSS5.0 EJB3 lookup issue
Making exe with Launch4j