Monday, April 10, 2006

Equinox Deployment on oc4j/orion

When deploying equinox on oc4j 9 there happens a problem. oc4j doesn't provide any debug information. Thus it is very difficult to solve the problem. I deployed the same application on oc4j 10, then it became clear. oc4j 9 was actually complaining of this problem:

Missing class: org.apache.commons.el.Logger

Dependent class: net.sourceforge.myfaces.util.ClassUtils
Loader: sibi.web.sibi:0.0.0
Code-Source: /C:/oc4j/j2ee/home/applications/sibi/sibi/WEB-INF/lib/m
Configuration: WEB-INF/lib/ directory in C:\oc4j\j2ee\home\application

That is oc4j needs commons-el.jar in its classpath. This jar file is included in the common folder of Tomcat. Therefore the application runs on tomcat but not on oc4j.

Giving back detailed debug information is crucial for any application. Fortunately oc4j 10g gives better information than oc4j 9.