Forums de discussion
Issue with Liferay 5.0.0 on JBoss 4.2.1
Jan Van Haaren, modifié il y a 14 années.
Issue with Liferay 5.0.0 on JBoss 4.2.1
New Member Publications: 12 Date d'inscription: 13/08/08 Publications récentes
Hi guys
I manually deployed the liferay-portal-5.0.0.war file on a clean JBoss 4.2.1 installation. The startup of JBoss went as expected and Liferay was deployed too without any problem. However, when I try to access my Liferay installation through my browser the following error appears in the server.log file and the screen remains blank.
I'm using Windows XP and Java 1.6.0_11.
Thanks in advance!
I manually deployed the liferay-portal-5.0.0.war file on a clean JBoss 4.2.1 installation. The startup of JBoss went as expected and Liferay was deployed too without any problem. However, when I try to access my Liferay installation through my browser the following error appears in the server.log file and the screen remains blank.
2009-08-26 11:33:02,265 INFO [STDOUT] 11:33:02,265 ERROR [[jsp]:719] Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 114 in the jsp file: /html/common/themes/top_js.jspf
Syntax error, 'for each' statements are only available if source level is 5.0
111: javaScriptFiles = PropsValues.JAVASCRIPT_EVERYTHING_FILES;
112: }
113:
114: for (String javaScriptFile : javaScriptFiles) {
115: %>
116:
117: <script src="<%= themeDisplay.getPathJavaScript() %>/<%= javaScriptFile %>?bn=<%= ReleaseInfo.getBuildNumber() %>" type="text/javascript"></script>
I'm using Windows XP and Java 1.6.0_11.
Thanks in advance!
Jan Van Haaren, modifié il y a 14 années.
RE: Issue with Liferay 5.0.0 on JBoss 4.2.1
New Member Publications: 12 Date d'inscription: 13/08/08 Publications récentes
I have already found a solution for this issue myself. You should add the code underneath to the web.xml file in \jboss-4.2.1.GA\server\default\deploy\jboss-web.deployer\conf\. The code should be included within the <servlet>-tag that has "jsp" within its <servlet-name>-tag.
Cheers.
<init-param>
<param-name>compilerSourceVM</param-name>
<param-value>1.5</param-value>
</init-param>
<init-param>
<param-name>compilerTargetVM</param-name>
<param-value>1.5</param-value>
</init-param>
Cheers.