CSS

Friday, October 14, 2011

CAS - Central Authentication Service

I've been working on getting a Central Authentication Service (CAS) server up.  This server allows all your web applications to have Single Sign On (SSO).  The service itself can run on any JSP container.  We are using Tomcat.  Each web application needs to be secured using a CAS client.  If you are using JEE or JSP CAS comes with some nice filters thatmake the sucuring pretty much invisible to the application.  As we use WebObjects and PHP we need to do some of our own plumbing.
 

Wednesday, August 17, 2011

YUM, Ant and Optional Tasks

So I have a program that's ant tasks works fine on my Mac but when I ran the task on a Linux box I got java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison.  Well it turns out that YUM has split Apache Ant into a bunch of different packages.  In this case I needed to run the following command.


yum install ant-trax.noarch


Wednesday, August 3, 2011

DB2Plugin Added to Wonder

The DB2 database plugin for WebObjects that I wrote has been added to the Wonder Framework.  The Plugin supports both mainstream DB2 and DB2 for iSeries.  The biggest pain for using the plugin is getting the DB2 jars.  Check the README files for help on that.

Friday, July 22, 2011

Eclipse, JBoss and Javaee6 Maven Archtype

I created a new JBoss Java EE 6 project using the jboss-javaee6-webapp archtype.  I had to problems.  It had a  Missing artifact org.apache.xalan:xalan:jar:2.7.1-1.jbossorg:provided error which I fixed by editing the pom.xml file. Here is the change

     <dependency>
         <groupId>org.jboss.spec</groupId>
         <artifactId>jboss-javaee-web-6.0</artifactId>
         <version>2.0.0.Final</version>
         <type>pom</type>
         <scope>provided</scope>
         <exclusions>
            <exclusion>
               <groupId>org.apache.xalan</groupId>
               <artifactId>xalan</artifactId>
            </exclusion>
         </exclusions>
        
      </dependency>
      <dependency>
          <groupId>xalan</groupId>
          <artifactId>xalan</artifactId>
          <version>2.7.1</version>
    </dependency>

By excluding the problem dependency and adding in the generic dependency for xlan it built fine.

The harder problem was to get Eclipse to properly run the application on my JBoss server.  I am using Eclipse Indigo and  I went back and forth with m2eclipse and the eclipse project m2e.  Neither one seemed to do the trick.

In the end I used the mvn -Dwtpversion=2.0 eclipse:eclipse from the command line

Tuesday, June 28, 2011

How to beat Active Directory searches returning referral

At work I discovered that our Biscom fax server was not sending out any faxes when we used its SMTP gateway.  With the help of a technician we discover that when they looked up our user in AD they we reciving an Referral result back.  They had no fix but I was able to find this MSDN article about how to connect to the Global Catalog.  That seems to fix the problem.