I am using Eclipse Iinfocenter to provide Online Help for an application. The Infocenter is an integral part of any Eclipse distribution, it is the mechanism which delivers help and documentation for Eclipse; most Eclipse users will have seen it. You can run the Infocenter on its own and provide your own documentation as plugins to the Infocenter; we use this feature to get a professional looking frame around our web documentation (plus features such as full text search, table-of-contents synchronisation, highlighting etc). The infocenter.war file I use is consequently a collection of jars from a regular Eclipse distribution, combined with my documentation in the plugins directory. I don't do any programming or coding on my own per se, I just provide text files for the documentation, jar it up together with the jars from Eclipse, deploy and then I can access the documents from http://localhost:8080/infocenter/index.jsp.
The problem is that my infocenter.war runs fine in JBoss 4, Tomcat 5, Tomcat 6, while it fails when invoked in JBoss 5.1.0, JBoss 6.0, JBoss 7.0 and Tomcat 7. The JBoss error messages are as follows:
- JBoss 7.0 (error message: org.eclipse.equinox.jsp.jasper.JspServlet cannot be cast to javax.servlet.Servlet)
- JBoss 6.0 (error message: java.lang.ClassCastException: org.eclipse.equinox.jsp.jasper.JspServlet cannot be cast to javax.servlet.Servlet)
- JBoss 5.1.0 (error message: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor)
I have no idea of what could be wrong - maybe some prereq library was available in JBoss 4, but not in later versions, or maybe newer JBoss versions are pickier and fail on things that JBoss 4 silently accepted.
I have enclosed an example infocenter.war, which contains a tiny documentation set. My stuff can be found in /WEB-INF/plugins/bct and ./help-map, the rest is from Eclipse. Any help in solving this is highly appreciated; I would very much like to upgrade the old JBoss 4.0 instance we use today for delivering the documentation via Infocenter.
infocenter.war 11.3 MB