OpenSSO on Tomcat 5.5x & 6.0x


Tomcat 5.5x & 6.0x
-----------------

These are the steps we used to successfully install OpenSSO b3 on Tomcat 5.5x & 6.0x. It should be the same for b4.

- extract Tomcat package
- copy webservices-api.jar from http://download.java.net/general/opensso/extlib/latest/opensso-sun-extlib.zip to /common/endorsed (in version 6, you have to create these two directories)
- edit /bin/catalina.sh
add -Xms256m -Xmx1024m to the start command (find sth like "elif [ "$1" = "start" ] ; then")
Note: there are 2 parts, one with -security switch, the second without it, edit the second one
- restart server
(/bin/shutdown.sh, /bin/startup.sh)
- copy opensso.war to /webapps
- restart server
- run configurator (host:port/opensso)
- restart server
<script type="text/javascript"> var sc_project=3055623; var sc_invisible=0; var sc_partition=33; var sc_security="2841646f"; </script> <script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script>
Comments:

Hi Robert - nice tip! You can also do the -X parameters by just setting JAVA_OPTS at the top of catalina.sh, like this:

JAVA_OPTS="-Xms256m -Xmx1024m"

I usually put it just after the initial comment block.

Posted by Pat Patterson on March 27, 2008 at 05:43 PM CET #

Hi Pat. OK, I see, it is indeed more handy this way. Thanks !

Posted by Pierrot on March 28, 2008 at 07:02 AM CET #

even better and survives tomcat updates: create a new file bin/setenv.sh and place the line JAVA_OPTS=... in this file.
It will be sourced if it exists. You don't need to change any file delivered with tomcat and can easily isolate this change and use it in other installations.

Posted by Olaf Kock on March 31, 2008 at 03:32 PM CEST #

I'm not able to get b4 running on tomcat6.0.16.
I can get to the configuration screen which I run through, though after configuration I cannot get passed the Login Page. If i log in with bogus credentials it gives me the anticipated error message, when I log in with correct credentials I get no error message but do not ge moved on past login page, it just refreshes time and time again.

Posted by Damien on June 27, 2008 at 12:38 AM CEST #

Argg, nevermind, see https://opensso.dev.java.net/issues/show_bug.cgi?id=1951

Posted by Damien on June 27, 2008 at 12:52 AM CEST #

hum... interesting ! Our student met actually this error today with Tomcat version 6.0.16. Thanks for sharing !

Posted by Pierrot on July 15, 2008 at 12:10 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Members of the EMEA Globalization Center are blogging about the products that comprise the Java Enterprise System stack.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today