Unable To Deploy Crowd On JBoss 4.2.x
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
The following error is thrown when visiting pages in Crowd, when deployed on JBoss 4.2.x
1
2
3
4
5
6
7
8
9
10
11
12
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
1
2
3
4
5
<init-param>
<param-name>compilerSourceVM</param-name>
<param-value>1.5</param-value>
</init-param>
Restart JBoss for the changes to take affect
Was this helpful?