Archive for July, 2005

‘Aliasing’ for JBoss + Tomcat 5.5

We’ve upgraded our infrastructure, going from Tomcat 3.1 to Tomcat 5.5 on JBoss 4.02.

Since Tomcat 3.2, URIs have been case-sensitive on Windows, and we’re worried that our customers will have bookmarks to pages that will no longer work.

We can’t create pages in different cases so that all requests get through, and there is no .htaccess option either.

So I’ve implemented a Filter that takes requests for page names with different cases and forwards them to the page name with the correct casing. Not a difficult task by any means, but just one more way the transition to our new release will be seamless for our users.

HTTP Basic Security with JBoss 4.0.2

In the WEB-INF/classes directory, add

  • a users.properties file with name-value pairs of name=password, e.g.:

    john=af40g78x
  • a roles.properties file with name-value pairs of name=role, e.g.:

    john=administrator

In the WEB-INF directory, either add a jboss-web.xml file, or add the following entry to an existing jboss-web.xml file:

<jboss-web>
  <security-domain>java:/jaas/other</security>
</jboss-web>

The security domains are defined in server/<server configuration>/conf/login-conf.xml should a different domain to “other” be required.

Security settings for the webapp are as per section SRV.12 of the servlet specification.

XML Certification

I’m already well experienced in XML, having worked on a transaction “web-services” type system for the last three years, but I’m keen to get the IBM XML certification (exam 141) under my belt.

With that in mind, here are some links to useful info: