Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
glassfish on gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
cambazz
n00b
n00b


Joined: 07 Jan 2008
Posts: 7

PostPosted: Wed Jan 09, 2008 7:53 pm    Post subject: glassfish on gentoo Reply with quote

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
View user's profile Send private message
cjubon
Guru
Guru


Joined: 03 Jul 2007
Posts: 450
Location: Vienna/Europe

PostPosted: Wed Jan 09, 2008 10:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
alistair
Retired Dev
Retired Dev


Joined: 15 Jul 2005
Posts: 869

PostPosted: Thu Jan 10, 2008 2:24 am    Post subject: Reply with quote

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
View user's profile Send private message
amattas
n00b
n00b


Joined: 25 Sep 2006
Posts: 25
Location: Kalamazoo, MI

PostPosted: Fri Jan 11, 2008 12:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
alistair
Retired Dev
Retired Dev


Joined: 15 Jul 2005
Posts: 869

PostPosted: Mon Jan 14, 2008 1:06 am    Post subject: Reply with quote

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 :P

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
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Mon Jan 14, 2008 3:04 am    Post subject: Reply with quote

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
View user's profile Send private message
bravecobra
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2002
Posts: 130
Location: Planet Earth (sometimes)

PostPosted: Thu Apr 03, 2008 7:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum