Bug 859265 - JSVC installation on Tomcat 7 (Refer: JBPAPP-9814)
Summary: JSVC installation on Tomcat 7 (Refer: JBPAPP-9814)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Web Server 2
Classification: JBoss
Component: doc-HTTP-Connectors-Guide
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Misha H. Ali
QA Contact:
URL:
Whiteboard:
: 859266 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-21 00:07 UTC by Misha H. Ali
Modified: 2012-11-08 22:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-08 22:10:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Misha H. Ali 2012-09-21 00:07:55 UTC
As in $TITLE.

Need an SME for this information.

Comment 1 Misha H. Ali 2012-09-21 00:08:57 UTC
Adding Jean-Frederic to confirm if he is SME for this bug. If not, could you please cc the relevant person, Jean-Frederic?

Comment 2 Jean-frederic Clere 2012-09-21 06:38:39 UTC
I suggested something like:
> MHA: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/samples/Tomcat7.sh?revision=1132665&view=markup&pathrev=1202069

you have to describe the 5 parameters:
 --java-home: The JAVA_HOME. (default: guessed for the PATH variable).
 --catalina-home: The directory where tomcat is installed. Environment variable: CATALINA_HOME (default: guessed from the script location).
 --catalina-base: in case of multiple servers using the same installation the directory containing the specific configuration and setup. Environment variable: CATALINA_BASE (default: catalina-home).
--catalina-pid: file to store the pid of the running tomcat. (default: $CATALINA_BASE/logs/catalina-daemon.pid
--tomcat-user: User to use to run tomcat7. (Default: tomcat).

Comment 3 Misha H. Ali 2012-09-23 23:39:48 UTC
For some introductory matter for JSVC, referring to the following JIRA:

https://issues.jboss.org/browse/JBPAPP-9814

Comment 4 Misha H. Ali 2012-09-24 05:03:27 UTC
Added for this bug:

1. Information about what Jsvc is.
2. How to install Jsvc with Tomcat 7.
3 How to run Jsvc with (any) Tomcat. -- Need ACK from Jean-Frederic if older versions of Tomcat have different instructions.

Did not add:

1. Instructions to move daemon.sh file (see JIRA) as this problem is now resolved.

This bug will be set to ON_QA with a link once the results appear on the stage.

Comment 6 Jean-frederic Clere 2012-09-24 08:19:39 UTC
For 12.2 the parameters are the parameters of the tomcat7/bin/daemon.sh utility not the parameters of jsvc itself.
jsvc is the same of tomcat6 and tomcat7 but the start scripts are different.
The input I gave you is for daemon.sh script not for jsvc itself,

In 12.3: 
CLASSPATH is not \
It is:
$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/bin/commons-daemon.jar:$CATALINA_HOME/bin/bootstrap.jar

Note I assumed we used a script in tomcat6 but it is not in delivery I need to check how to fix that part of the doc accordingly.

Comment 7 Jean-frederic Clere 2012-09-25 06:19:59 UTC
So for 12.2. Install Jsvc with Tomcat 7 I suggest:
Which Tomcat7 jsvc is control via a wrapper script daemon.sh the parameter of the script are the following.

Keep the table 12.1. Jsvc Installation Parameters for Tomcat 7

After the table add:

If you want to modify the script or write your owen see next chap.

Comment 8 Jean-frederic Clere 2012-09-25 07:01:57 UTC
the 12.4. Run Tomcat with Jsvc in fact that is only for Tomcat7 (we don't have the script for Tomcat6).

Comment 9 Misha H. Ali 2012-10-02 08:11:34 UTC
These problems should be fixed in the next build. This bug will be set to ON_QA when the results appear on the stage.

Comment 11 Libor Fuka 2012-10-11 10:57:18 UTC
check chapter 11.3 table 11.2

1. Java 2 SDK version 1.5 -> JDK 1.6 or later
2. The temporart - The temporary

after this fix its ok.

Comment 12 Jean-frederic Clere 2012-10-11 12:14:46 UTC
11.2.2. Configure Jsvc with Tomcat 7

I spotted the following:

"if multiple values of --java-home are configured, this parameter determines the Java home directory for the script."

That is wrong see comment #2

Comment 13 Misha H. Ali 2012-10-12 06:01:48 UTC
For comment#11:

1. Fixed, now reads JDK 1.6 or later.
2. Typo fixed, now reads temporary.

For comment#12:

1. Fixed using comment#2 as a reference.

Comment 15 Misha H. Ali 2012-10-13 03:22:42 UTC
*** Bug 859266 has been marked as a duplicate of this bug. ***

Comment 16 Jean-frederic Clere 2012-10-15 06:17:00 UTC
-cp $JAVA_HOME/lib/tools.jar:CATALINA_HOME/bin/commons-daemon.jar:$CATALINA_HOME/bin/bootstrap.jar should be:
-cp $JAVA_HOME/lib/tools.jar:$CATALINA_HOME/bin/commons-daemon.jar:$CATALINA_HOME/bin/bootstrap.jar

$ missing.

Comment 17 Jean-frederic Clere 2012-10-15 06:19:10 UTC
Oops my comment should go in 859263 I think.

Comment 18 Misha H. Ali 2012-11-08 22:10:41 UTC
This bug is set to CLOSED CURRENT RELEASE to indicate that this fix is now released and available at access.redhat.com.


Note You need to log in before you can comment on or make changes to this bug.