-
1. Re: JBoss 3.0 running as a service under RedHat 7.3
joelvogt Aug 1, 2002 4:42 AM (in response to jman)when you say your browser cannot access localhost:8082 is there something deployed there for it to see (jsp etc)?
-
2. Re: JBoss 3.0 running as a service under RedHat 7.3
websel Aug 1, 2002 7:43 AM (in response to jman)> I've downloaded the JBoss3.0QuickStart documentation
> from sourceforge, i've done all required operations
> to install JBoss as Unix Service, when starting the
> daemon manually:
> /etc/init.d/sh jboss30.sh start
> it starts normally
> Starting jboss daemon: [ OK ]
> even when i stop it
> /etc/init.d/sh jboss30.sh stop
> Stopping jboss daemon: [ OK ]
>
> But how can i test that the server is realyy
> running?
> when i tape http://localhost:8082 the browser says
> that can not access http://localhost:8082
Correct! There is nothing behind port 8082 in the 3.0.1RC version. The port where Cataline is behind is 8080.
A quick way to see some pictures go to the following directory (I presume you have JBOSS & Tomcat as one package):
In the jboss root directory type:
cd catalina/webapps/ROOT
jar cvf ../../../server/default/deploy/test.war *
Now look with your browser at:
http://purgatory:8080/test/
And you get the startpage of Tomcat. Nothing wil work, but it's a check that JBoss is running.
The best way to monitor your JBoss server is by using a window where you put a tail in like this:
tail -f ./server/default/log/server.log
Than you see all the messages coming by. And you know it's ALIVE :-))
>
> Another thing, in the JBoss3.0QuickStart
> documentation, it's written to test the installation
> by calling /etc/init.d by entering at the prompt :
> ./jboss start and ./jboss stop
The renamed the jboss_init_redhat.sh to jboss
You should do the same in the /etc/init.d/ directory too.
> Even when doing the symbolic links S01JBoss and
> K23JBoss
> it's written to type:
> ln -s ../jboss S01JBoss in /etc/rc3.d
STOP!
That is a very unconventional way to do the job!
Remove these symbolic links nd let redhat do that for you.
Here is how you install jboss as a service into the RedHAt distribution.
Edit the jboss_init_redhat.sh script so that the JBOSS_HOME path and the JAVAPTH are set correct for you.
Now copy the script as follow:
cp jboss_init_redhat.sh /etc/init.d/jboss
Next step is to add it to the service list as follow:
chkconfig --add jboss
chkconfig jboss on
Now check it with:
chkconfig --list|grep jboss
The output should be something like:
[root@Purgatory root]# chkconfig --list|grep jboss
jboss 0:off 1:off 2:off 3:on 4:on 5:on 6:off
The server is started and stoped with (as you already did :-)
/etc/init.d/jboss start
or
/etc/init.d/jboss stop
The server will automaticaly start when the system boot by the chkconfig jboss on command. To remove the service from autostart use the following:
chkconfig jboss off
> but WHAT ../jboss IS ??????
Cool OpensSource project ? ;-)
> Thanx a lot for helping me !
You're welcome!, I'm just in the process of putting it to work as well :-)
Knf!
Wessel de Roode -
3. Re: JBoss 3.0 running as a service under RedHat 7.3
websel Aug 1, 2002 2:23 PM (in response to jman)Another good check if Jboss is running is with the agent.
type:
http://localhost:8080/jmx-console/
This works when you have 3.0.1 plain out-off-the-box.
Knf!
Wessel de Roode -
4. Re: JBoss 3.0 running as a service under RedHat 7.3
jman Aug 1, 2002 4:04 PM (in response to jman)Thanx WebSel,
but i have two other questions..
1-
chkconfig --list|grep jboss
The output should be something like:
[root@localhost root]# chkconfig --list|grep jboss
jboss 0:off 1:off 2:off 3:on 4:on 5:on 6:off
it's OK about this !
but when i try to start jboss by typing :
[root@localhost root]# /etc/init.d/jboss start
I have this :
CMD_START = cd /usr/java/jboss/bin; /usr/java/jboss/bin/run.sh
su: usager jboss does not exist
where "/usr/java/jboss" is my jboss home directory
What does it mean !!! ?, waht should i do?
2-
When i type under JBOSS_HOME/
tail -f ./server/default/log/server.log
a message informs me that the file does not exist, and in fact i have no "/log" under /server/default ??
thanx again ! -
5. Re: JBoss 3.0 running as a service under RedHat 7.3
schaefera Aug 1, 2002 9:51 PM (in response to jman)Hi
The "jboss" in the /etc/init.d directory is the actual script like your jboss30.sh. You then just use "jboss30.sh" instead of "jboss".
Andy -
6. Re: JBoss 3.0 running as a service under RedHat 7.3
jman Aug 2, 2002 9:11 AM (in response to jman)Mr andreas,
I renamed my "jboss_init_redhat.sh" to jboss
after cpoying it to "/etc/init.d" (i did the same in "JBOSS_HOME/bin" )
So no existence of jboss30.sh
But what
"CMD_START = cd /usr/java/jboss/bin; /usr/java/jboss/bin/run.sh
su: usager jboss does not exist"
does mean ? and should i do?
Thanx (and cool documentation Mr Andreas !) -
7. Re: JBoss 3.0 running as a service under RedHat 7.3
jwkaltz Aug 2, 2002 9:59 AM (in response to jman)> su: usager jboss does not exist"
I haven't tried that script myself but ...
"su" is the Unix command to execute something as a different user.
It looks like your script expects that there is a user named jboss on your system, under which the server will run. That is actually a good idea.
So what do you need to do ?
I would suggest something like
useradd jboss -
8. Re: JBoss 3.0 running as a service under RedHat 7.3
websel Aug 2, 2002 12:25 PM (in response to jman)> Thanx WebSel,
8<---8<--
> [root@localhost root]# /etc/init.d/jboss start
>
> I have this :
>
> CMD_START = cd /usr/java/jboss/bin;
> /usr/java/jboss/bin/run.sh
> su: usager jboss does not exist
You check the script and see to which user it is switching. You probaly don't have a user Jboss on your linux machiene. Just create one and you're on the way.
Don't forget to chown -R you're entire jboss distribution as it needs to be writeable by the jboss server for it's deployment en creation of the ./log/files.
> where "/usr/java/jboss" is my jboss home directory
>
> What does it mean !!! ?, waht should i do?
>
> 2-
>
> When i type under JBOSS_HOME/
>
> tail -f ./server/default/log/server.log
>
> a message informs me that the file does not exist,
> and in fact i have no "/log" under /server/default
> ??
That's because jboss never ran before. as soon as it is started once these directories are created and filled.
>
> thanx again !
Welcome
Wessel de Roode -
9. Re: JBoss 3.0 running as a service under RedHat 7.3
jman Aug 2, 2002 10:40 PM (in response to jman)OK, wessel
i've finally started jboss without problems, (the problem was in fact that i did not have a "jboss" user on my machine) but :
1-
no "log" directory under "/server/default" !!!
2-
the problem is when i try to stop jboss service :
[root@localhost root]# /etc/init.d/jboss stop
look what i have !
CMD_START = cd /usr/java/jboss/bin; /usr/java/jboss/bin/run.sh
-bash: java: command not found
but i hava my JAVA_HOME export in both ".bash_profile"
and "/etc/profile"
3-
when you say to chown -R my entire jboss distribution, should i do it for root or jboss (user jboss under jboss group) :
chown -R root:root /usr/java/jboss
or
chown -R jboss:jboss /usr/java/jboss
??
I'm really frustrated !! but i'm learning ;-)
PS: i'm a Software Engineering Student in Tunisia...
Skander ESSID -
10. Re: JBoss 3.0 running as a service under RedHat 7.3
websel Aug 4, 2002 7:25 PM (in response to jman)> OK, wessel
>
> i've finally started jboss without problems, (the
> problem was in fact that i did not have a "jboss"
> user on my machine) but :
>
> 1-
>
> no "log" directory under "/server/default" !!!
??
Than jboss probaly never really started ...
have you tried to run.sh in the /usr/java/jboss/bin dir ?
and see a lot off lines of info running by ?
> 2-
>
> the problem is when i try to stop jboss service :
>
> [root@localhost root]# /etc/init.d/jboss stop
>
> look what i have !
>
> CMD_START = cd /usr/java/jboss/bin;
> /usr/java/jboss/bin/run.sh
> -bash: java: command not found
You don't have the java bin in your default path.
check your file in:
/etc/profile
add the following line BEFORE the export line:
PATH="$PATH:/usr/java/j2sdk1.4.0/bin"
(that is if your j2sdk is in that path.)
Another usefull lines are the following:
ANT_HOME="/usr"
JDK_HOME="/usr/java/j2sdk1.4.0"
JAVA_HOME="/usr/java/j2sdk1.4.0"
J2EE_HOME="/usr/java/j2sdkee1.3.1"
JBOSS_HOME="/usr/java/jboss"
export ANT_HOME JDK_HOME JAVA_HOME J2EE_HOME JBOSS_HOME
(or you can just add ANT_HOME JDK_HOME JAVA_HOME J2EE_HOME JBOSS_HOME at the end of the excisting export line)
Just change your path's what is valid for your installation.
reboot, and you should be able to type java and have no errors appear. Be sure you have java installed ;-)
>
> but i hava my JAVA_HOME export in both
> ".bash_profile"
> and "/etc/profile"
Ok, but you need to add it to your $PATH as well ass described above.
> when you say to chown -R my entire jboss
> distribution, should i do it for root or jboss (user
> jboss under jboss group) :
Well yhea, that's a kind of lazy workaround. NEVER DO THAT ON PRODUCTION INSTALLATIONS. but chown it to your jboss user. Jboss should be able to write files in it's own directory and create directories there as wel.
So chown -R jboss.jboss /usr/java/jboss.
First time just run jboss by hand in the ./bin dir and see if it does all it needs to do and doesn't die at the end. than try the /etc/init.d start up/shutdown trick.
> I'm really frustrated !! but i'm learning ;-)
> PS: i'm a Software Engineering Student in Tunisia...
I'm master of science in Chemical Engenering, now doing freelance work in IT & personal breakthrough Coaching in the netherlands.
Wessel de Roode -
11. Re: JBoss 3.0 running as a service under RedHat 7.3
jman Aug 4, 2002 9:05 PM (in response to jman)Thanx Wessel i'm gonna try that,
How about my other topic : JBoss service started under RedHat7.3 but not Tomact... ?? -
12. Re: JBoss 3.0 running as a service under RedHat 7.3
jman Aug 5, 2002 1:47 AM (in response to jman)Dear Wessel,
now i'm REALLY frustrated !!
i've done all with the necessaries pathes, now while stopping jboss service
no "-bash: java: command not found" is prompting, in fact i had no java bin
in my defaukt path, it's all ok about that.
But my frustration grown up when i found that the server did not really start !!
"/usr/java/jboss/bin/sh run.sh"
the usual lines are prompted, but many exceptions are caught, basicly with many jar files
that dont exist in "/server/default/lib" !
I attached the output in jboss.txt, please tell me where can i find these files !
and if there are anothers requirements ! -
13. Re: JBoss 3.0 running as a service under RedHat 7.3
ericmacau Aug 5, 2002 6:55 AM (in response to jman)There is a script called "jboss_initxxx.sh"
-
14. Re: JBoss 3.0 running as a service under RedHat 7.3
jman Aug 6, 2002 12:05 PM (in response to jman)Need Urgent Help !!!
Can some one look at the "jboss.txt" attached with my previous message, these are the output lines i got when my jboss starts, and tell me what are these exceptions !!
(errors in deploying some jar files)
Thanx a lot
Skander ESSID