• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

deployment issue

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ricky James
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic