View previous topic :: View next topic |
Author |
Message |
cambazz n00b
Joined: 07 Jan 2008 Posts: 7
|
Posted: Wed Jan 09, 2008 7:53 pm Post subject: glassfish on gentoo |
|
|
Hello,
I am not sure if this is the correct forum to ask the question - but I would like to have glassfish application server running on gentoo, and did not find anything in portage.
what is the way to run glassfish on gentoo as a service?
Best.
-C.B. |
|
Back to top |
|
|
cjubon Guru
Joined: 03 Jul 2007 Posts: 450 Location: Vienna/Europe
|
Posted: Wed Jan 09, 2008 10:09 pm Post subject: |
|
|
Your question would fit best in the "Unsupported Software" forum.
The installation seems to be straighforward, I'm sure you already had a look into this installation guide: https://glassfish.dev.java.net/nonav/javaee5/docs/SJSASEEIG.pdf.
You need JDK and ant as dependecies, which are both in portage: Code: | emerge -av sun-jdk dev-java/ant |
Would be nice if you could report how it worked.
Cheers |
|
Back to top |
|
|
alistair Retired Dev
Joined: 15 Jul 2005 Posts: 869
|
Posted: Thu Jan 10, 2008 2:24 am Post subject: |
|
|
it works nicely (already done it) _________________ ______________
Help the gentoo-java project. Visit Gentoo Java Project
what good are admin powers if you don't abuse them for personal gain - mark_alec |
|
Back to top |
|
|
amattas n00b
Joined: 25 Sep 2006 Posts: 25 Location: Kalamazoo, MI
|
Posted: Fri Jan 11, 2008 12:05 pm Post subject: |
|
|
I've tried before and didn't have a lot of luck.
How did you do it Alistar?
I want to use the SJS AS 9 version of it. _________________ "The highest forms of understanding we can achieve are laughter and human compassion." -Richard Feynman |
|
Back to top |
|
|
alistair Retired Dev
Joined: 15 Jul 2005 Posts: 869
|
Posted: Mon Jan 14, 2008 1:06 am Post subject: |
|
|
amattas wrote: | I've tried before and didn't have a lot of luck.
How did you do it Alistar?
I want to use the SJS AS 9 version of it. |
I followed the install instructions
I only did the most basic of install ( I believe ) and didn't worry about multiple hosts etc etc
I sadly don't remember how I did it but I do remember that after unpacking it you have to run ant, and it is this ant build that produces a running server. _________________ ______________
Help the gentoo-java project. Visit Gentoo Java Project
what good are admin powers if you don't abuse them for personal gain - mark_alec |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Mon Jan 14, 2008 3:04 am Post subject: |
|
|
Moved from Portage & Programming to Unsupported Software. _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
bravecobra Tux's lil' helper
Joined: 26 Dec 2002 Posts: 130 Location: Planet Earth (sometimes)
|
Posted: Thu Apr 03, 2008 7:07 pm Post subject: |
|
|
I've come up with a very basic startup script. It might need some extra tweaks. Any startupscript-wizards care to take a look at this?
This works with Sun Java System Application Server 9.1_01 (build b09d-fcs).
create /etc/init.d/sjsasd with the following content :
Code: | #!/sbin/runscript
depend() {
need net
}
start()
{
ebegin "Starting Sun Java System Application Server (Glassfish V2)"
${SJSASD_PATH}/bin/asadmin start-domain ${SJSASD_DOMAIN} >> /var/log/${SJSASD_LOG}
eend $?
}
stop()
{
ebegin "Stopping Sun Java System Application Server (Glassfish V2)"
${SJSASD_PATH}/bin/asadmin stop-domain ${SJSASD_DOMAIN} >> /var/log/${SJSASD_LOG}
eend $?
}
|
Then make /etc/conf.d/sjsasd and the following in there:
Code: | #Specify GlassFish installation directory
SJSASD_PATH="/opt/SUNWappserver"
SJSASD_LOG="sjsasd.log"
SJSASD_DOMAIN="domain1"
|
I haven't really thought of doing stuff like this yet: http://blogs.steeplesoft.com/virtual-hosting-using-apache-and-glassfish/
However it gets me started
Be creative if you want multiple domains... _________________ Brave Cobra
http://www.bravecobra.com |
|
Back to top |
|
|
|