Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21133 - In JBoss 3.2.1, Jetty JSP compilation requires write access to {JBOSS_HOME}/bin
Summary: In JBoss 3.2.1, Jetty JSP compilation requires write access to {JBOSS_HOME}/bin
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-16 18:48 UTC by Greg Wiley
Modified: 2003-12-18 07:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
A patch to the jboss 3.2.1 init.d/jboss script (z,113 bytes, patch)
2003-06-16 12:54 UTC, Dan A. Dickey
Details | Diff
A patch to the jboss 3.2.1 init.d/jboss script (x,626 bytes, patch)
2003-06-16 12:59 UTC, Dan A. Dickey
Details | Diff
A patch against /usr/portage/net-www/jboss/files/3.2.1 (jboss-files-3.2.1.patch,1.33 KB, patch)
2003-07-02 14:04 UTC, Dan A. Dickey
Details | Diff
A patch against /usr/portage/net-www/jboss/files/3.2.1 (jboss-files-3.2.1.patch,1.33 KB, patch)
2003-07-02 14:05 UTC, Dan A. Dickey
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Wiley 2003-05-16 18:48:09 UTC
In JBoss 3.2.1, access to the JMX console results in an attempted write to the JBoss /bin 
directory. The default permissions are root-writeable only so JMX console access fails. 
 
Files are of the form filesN where N is arbitrary AFAI can tell. 
 
Fixed by making /bin writeable by jboss group but JBoss should really use another directory for 
compilation workfiles. 
 
 

Reproducible: Always
Steps to Reproduce:
1. groupadd and useradd 'jboss' 
2. emerge /usr/portage/net-www/jboss/jboss-3.2.1.ebuild 
3. /etc/init.d/jboss start 
4. from browser, access http://host:8080/jmx-console 
 
Actual Results:  
HTTP error 500 
 
server.log shows exception compiling jsp for jmx console with 
problem related to /opt/jboss-3.2.1/bin/filesN   access  (N is some number) 
 
 

Expected Results:  
Displayed the JMX console
Comment 1 Dan A. Dickey 2003-06-16 12:54:00 UTC
Created attachment 13382 [details, diff]
A patch to the jboss 3.2.1 init.d/jboss script

I tried a few different approaches (TMPDIR, java.io.tmpdir), but this one
seemed to work and the others did not.	I hope this helps other people as well.
Comment 2 Dan A. Dickey 2003-06-16 12:59:55 UTC
Created attachment 13384 [details, diff]
A patch to the jboss 3.2.1 init.d/jboss script

I tried a few different approaches (TMPDIR, java.io.tmpdir), but this one
seemed to work and the others did not.	I hope this helps other people as well.
Comment 3 Dylan Carlson (RETIRED) gentoo-dev 2003-06-16 18:22:59 UTC
OK, this is getting moved to mkennedy.  Since 3.2.1 did not follow the setup in 
3.0.6, I have no idea what's going on with this package anymore. 
Comment 4 Dan A. Dickey 2003-07-02 14:04:20 UTC
Created attachment 14120 [details, diff]
A patch against /usr/portage/net-www/jboss/files/3.2.1

This should be applied against the conf.d/jboss and init.d/jboss files that
exist in /usr/portage/net-www/jboss/files/3.2.1.  This patch allows the
init.d/jboss script to both start and stop jboss from either a login shell (as
root of course) or at system boot and shutdown.  The problem with the old
version of the scripts was that they assumed a valid environment existed - and
this is not the case at system boot and shutdown.
Comment 5 Dan A. Dickey 2003-07-02 14:05:56 UTC
Created attachment 14121 [details, diff]
A patch against /usr/portage/net-www/jboss/files/3.2.1

This should be applied against the conf.d/jboss and init.d/jboss files that
exist in /usr/portage/net-www/jboss/files/3.2.1.  This patch allows the
init.d/jboss script to both start and stop jboss from either a login shell (as
root of course) or at system boot and shutdown.  The problem with the old
version of the scripts was that they assumed a valid environment existed - and
this is not the case at system boot and shutdown.
Comment 6 Matthew Kennedy (RETIRED) gentoo-dev 2003-07-10 21:23:56 UTC
please check that jboss-3.2.1-r1 corrects this bug
Comment 7 Matthew Kennedy (RETIRED) gentoo-dev 2003-12-18 07:09:44 UTC
no input, assuming this can be closed