Bug 1115525
Summary: | jsvc in different directories | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise Web Server 2 | Reporter: | Libor Fuka <lfuka> |
Component: | unspecified | Assignee: | Weinan Li <weli> |
Status: | CLOSED EOL | QA Contact: | Libor Fuka <lfuka> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.1.0 | CC: | jclere, jdoyle, mturk, myarboro, pslavice, weli |
Target Milestone: | CR01 | ||
Target Release: | 2.1.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Previously in JBoss Enterprise Web Server, when using the Red Hat Enterprise Linux version, the jsvc binary was missing from the <filename class="directory">tomcat6/bin</filename> directory. For the Oracle Solaris version, jsvc was not available in the <filename class="directory">share/extras</filename> directory. As a result, when the JSVC environment variable was not set, the <filename>daemon.sh</filename> script in the <filename class="directory">tomcat{6,7}/bin</filename> directory sets the value of JSVC to <literal>$CATALINA_BASE/bin/jsvc</literal>, which is incorrect.
This is fixed in JBoss Enterprise Web Server 2.1 and the jsvc binary file is available as expected in the <filename class="directory">tomcat6/bin</filename> directory for Red Hat Enterprise Linux and in the <filename class="directory">share/extras</filename> directory for Oracle Solaris.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2019-06-13 12:09:56 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 864715 |
Description
Libor Fuka
2014-07-02 14:10:59 UTC
Mladen, do you have any suggestions on this? For Solaris the jsvc binary is inside jboss-ews-2.1/sbin The only thing we are missing is symlink for tomcat6/bin/jsvc which we have for tomcat7. The same should be done for RHEL's tomcat6. I have added symlink for tomcat6/bin/jsvc for Solaris. Weinan could you do the same for RHEL? (In reply to Mladen Turk from comment #4) > I have added symlink for tomcat6/bin/jsvc for Solaris. > Weinan could you do the same for RHEL? Thanks for checking Mladen! I'll deal with the symlink for tc6 on rhel Weinan, please check all RHEL zips. The jsvc is also in extra directory nad in tomcat7/bin. It should be in one place (extra directory probabaly) and symlinks from tomcat7/bin and tomcat6/bin. Thx Mladen, could you please tell me how do you create the symlink? If I create symlink with relative path, I found it won't be very helpful: master:jboss-ews-2.1 weinanli$ ls -l tomcat6/bin/jsvc lrwxr-xr-x 1 weinanli staff 16 Jul 10 14:19 tomcat6/bin/jsvc -> tomcat7/bin/jsvc Then users can only run jsvc in $JBOSS_EWS_HOME, other locations will fail. IF I create a symlink with absolute path, I found it's hard to determine the absolute path during build time because we can't decide which directory will user put EWS in. So maybe copy the 'jsvc' from tc7 into tc6 is better: master:jboss-ews-2.1 weinanli$ cp tomcat7/bin/jsvc tomcat6/bin/jsvc master:jboss-ews-2.1 weinanli$ find . -name jsvc ./extras/jsvc ./tomcat6/bin/jsvc ./tomcat7/bin/jsvc wdyt? Inside TomcatX/bin directory I do ln -s ../../../sbin/jsvc jsvc So you can do something like ln -s ../../../shared/extra/jsvc jsvc Its historic reason i think. We should not change it in last ER. Patch added into jboss-ews: +# BZ1115525 +rm -rf ./tomcat6/bin/jsvc +rm -rf ./tomcat7/bin/jsvc + +tomcat_vers=("6" "7") +for tomcat_ver in "${tomcat_vers[@]}" +do + pushd tomcat${tomcat_ver}/bin + ln -s ../../extras/jsvc jsvc + popd +done + Will be included in next release. VERIFIED on: jboss-ews-application-servers-2.1.0-CR2-RHEL5-i386.zip jboss-ews-application-servers-2.1.0-CR2-RHEL5-x86_64.zip jboss-ews-application-servers-2.1.0-CR2-RHEL6-i386.zip jboss-ews-application-servers-2.1.0-CR2-RHEL6-x86_64.zip jboss-ews-application-servers-2.1.0-CR2-RHEL7-ppc64.zip jboss-ews-application-servers-2.1.0-CR2-RHEL7-x86_64.zip jboss-ews-application-servers-2.1.0-CR2-sun10.i386.zip jboss-ews-application-servers-2.1.0-CR2-sun10.sparc64.zip jboss-ews-application-servers-2.1.0-CR2-sun10.x86_64.zip |