Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
William Daniel Howard
WebLogic 8.1 UnsupportedClassVersionError
June 16, 2008 8:53 AM
Answer

William Daniel Howard

Rank: New Member

Posts: 2

Join Date: June 16, 2008

Recent Posts

I am new to Liferay and was wanting to deploy it in our environment (WebLogic 8.1 sp5 and Oracle) to see if we could use it, but when I deploy the war file for servlets 2.3 I get

Exception:weblogic.management.ApplicationException: activate failed for liferay-portal-5.0.1-servlet23(2)
Module: liferay-portal-5.0.1-servlet23(2) Error: weblogic.management.DeploymentException: - with nested exception:
[java.lang.UnsupportedClassVersionError: com/liferay/portal/servlet/PortalSessionListener : unsupported classversion 49.0]
java.lang.UnsupportedClassVersionError: com/liferay/portal/servlet/PortalSessionListener : unsupported classversion 49.0

I also tried versions liferay-portal-4.4.2-servlet23-with-dependencies and liferay-portal-4.4, but had the same results. I am forced to use jdk 1.4.2 because of WebLogic 8.1. Am I missing something or do I have to pull down the source and compile with the jdk I am using with WebLogic (IBM jdk 1.4.2)?

Thanks.
Raju Uppalapati
RE: WebLogic 8.1 UnsupportedClassVersionError
June 16, 2008 9:03 AM
Answer

Raju Uppalapati

Rank: Junior Member

Posts: 66

Join Date: October 24, 2007

Recent Posts

The liferay binaries for these versions were built with JDK 1.5. The java.lang.UnsupportedClassVersionError is because you are trying to run the bits using a JDK version lower than the bits were compiled with.
Liferay 5.x and 4.4.x source is compatible with JDK 1.5 and 1.6.

You will not be able to compile these sources with JDK 1.4 because some JDK 1.5 APIs are being used in the Liferay source.

Is running on Weblogic 8.x a hard requirement for you? If you need J2EE features you can give Glassfish bundle of Liferay 5.x or JDK 1.6 a try. Its faster than Weblogic and Open Source.

_raju
William Daniel Howard
RE: WebLogic 8.1 UnsupportedClassVersionError
June 16, 2008 9:21 AM
Answer

William Daniel Howard

Rank: New Member

Posts: 2

Join Date: June 16, 2008

Recent Posts

Currently it is a hard requirement that WebLogic 8.1 be used.