EJB deployment issue in JBoss

R

ros

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.
Ros
 
P

Philipp Taprogge

Hello!

First things first, you cannot assume that everyone here knows the book you
are reading at the moment.
Since you did not give us any further information on what exactly you did,
what you expected and what did actually happen, any advice you might receive
will be mostly shots in the dark.

Thus spake ros on 06/05/2007 06:48 AM:
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.

And what error might that be?
By the way, Dummies uses JBoss 3.0.0 while I am using JBoss-4.2.0.GA

JBoss 3 is ancient. You should really try to get literature that is a little
more up-to-date. So many things have changed in JBoss since 3.0.0, that I
don't think, this book will do you any good.
Two things I noticed.
Firstly, in the bat file the author has used %JBOSS% - Should I change
it to something else.

Well, obviously. %JBOSS% is Windows' poor excuse for a shell variable.
It is supposed to represent your JBOSS_HOME, the directory containing the
JBoss intallation.
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.

Or you might want to get yourself a tutorial that is a little more up-to-date.
Like I said, JBoss 3 is way old.
I have pasted both the bat file and the error I get below.

No, you have not.

Regards,

Phil
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

ros said:
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.

You should not need that BAT file.

Just copy your xxx-ejb.jar / yyy.war / zzz.ear to the
proper deploy directory.

Arne
 
R

ros

You should not need that BAT file.

Just copy your xxx-ejb.jar / yyy.war / zzz.ear to the
proper deploy directory.

Arne

Thank you so much for the reply Arne. I really appreciate that.
Actually, I was just trying to follow the steps as described in the
book. I was curious how it worked with the BAT file and if I could
just modify and run it.

Although I have been able to run the project using Netbeans; just
wanted to explore this different approach.

Thanks again.
Ros
 
R

ros

Hello!

First things first, you cannot assume that everyone here knows the book you
are reading at the moment.
Since you did not give us any further information on what exactly you did,
what you expected and what did actually happen, any advice you might receive
will be mostly shots in the dark.

Hello!

First things first. I must say you are a good writer! Thanks for the
advice. Appreciated. Am new to programming so sometimes I can't
explian my problem as clearly as I would like. Am learning.
Thus spake ros on 06/05/2007 06:48 AM:


And what error might that be?

Sorry for forgetting to copy-paste the error.
JBoss 3 is ancient. You should really try to get literature that is a little
more up-to-date. So many things have changed in JBoss since 3.0.0, that I
don't think, this book will do you any good.

Well, actually here my question should have been what to change in
this BAT file so that it runs in JBoss-4.2.0.GA.
Well, obviously. %JBOSS% is Windows' poor excuse for a shell variable.
It is supposed to represent your JBOSS_HOME, the directory containing the
JBoss intallation.

I wanted to know whether I should add this env variable to my machine
or should I change it to that path in the bat file. So, it was not
that obvious to me. I am a new programmer seeking help so what's
obvious to you was definitely not obvious to me.
Or you might want to get yourself a tutorial that is a little more up-to-date.
Like I said, JBoss 3 is way old.

As I said before I wanted to run this app on my machine using the same
format as explained in the book. I apologise if the post wasn't that
clear.
No, you have not.

Please accept my apologies.
Regards,

Phil

Regards
Ros
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top