« You just need to... | Main | Conquered OC4J authe... »

More install-blogging

Tonight, I've been trying to complete the install of Roller of Oracle's OC4J9.0.3 J2EE app server. I've had a little luck, but I am still not quite there.

I tried the JDK 1.4 trick suggested by Matt from the JavaLobby and that worked for me. OC4J is now working fine for me under JDK 1.4.

Next, I searched around for docs on configuring OC4J Servlet Authentication so that I can get OC4J to use Roller's rolleruser and role tables. I found the docs for the Orion DataSourceUserManager on OrionSupport.com.

Following those docs, I put a user-manager element after the principals element in the OC4J/application.xml file like so:

<user-manager class="com.evermind.sql.DataSourceUserManager">
  <property name="table" value="rolleruser" />
  <property name="passwordField" value="password" />
  <property name="usernameField" value="username" />
  <property name="groupMembershipTableName" value="role" />
  <property name="groupMembershipUsernameFieldName" value="username" />
  <property name="groupMembershipGroupFieldName" value="role" /> 
  <property name="dataSource" value="jdbc/rollerdb"/>
</user-manager>

and I put a security-role mapping after the commit-coordinator elementin OC4J/application.xml:

<security-role-mapping name="guest">
  <group name="guest" /> 
</security-role-mapping>

Then I tried to login and OC4J complained that it could not find Roller's login page "404 Not Found Could not find form-login-error page: '/login.jsp?error=true'" Matt Raible's cool error=true trick is not acceptible to OC4J. So I wrote a loginerror.jsp page, took out the error=true thing and tried again.

Now, OC4J displays my login.jsp page, but when I post the page I get a "Redirection Limit for this URL exceeded, unable to load the requested page." Time to do some googling.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed

« You just need to... | Main | Conquered OC4J authe... »

Welcome

This is just one entry in the weblog Blogging Roller. You may want to visit the main page of the weblog

Related entries

Below are the most recent entries in the category Roller, some may be related to this entry.