Unable To Deploy Crowd On JBoss 4.2.x

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The following error is thrown when visiting pages in Crowd, when deployed on JBoss 4.2.x


javax.servlet.ServletException: org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 48 in the jsp file: /console/secure/directory/add_directoryconnector.jsp
Type mismatch: cannot convert from Object to Properties
45:
46: for (Iterator itr = values.iterator(); itr.hasNext(); ) {
47: String impl = (String) itr.next();
48: Properties props = ldapPropertiesHelper.getConfigurationDetails().get(impl);
49: %>
50:
51: if (form.connector.value == '<%=impl%>')

Cause

This is a known JBoss 4.2.x bug

Resolution

Add the following initialization parameter to the jsp servlet in JBOSS_HOME/server/SERVERCONF/deploy/JBOSSWEB_HOME/conf/web.xml


  <init-param>
    <param-name>compilerSourceVM</param-name>
    <param-value>1.5</param-value>
  </init-param>

Restart JBoss for the changes to take affect

Last modified on Nov 21, 2012

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.