掲示板

java.lang.NoSuchMethodError while deploying liferay 6.0 SP2

9年前 に Al-Mothafar Al-Hasan によって更新されました。

java.lang.NoSuchMethodError while deploying liferay 6.0 SP2

Regular Member 投稿: 110 参加年月日: 09/12/06 最新の投稿
Hi

I have an strange issue, I'm trying to deploy war file of Liferay Portal EE 6.0 SP2 with latest patches (latest-fix-packs-6012-2013-01-14) on Glassfish 3.1.2.2 for cluster, but I get the following message in console:

An error has occurred
Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.NoSuchMethodError: com.liferay.portal.model.PortletConstants.hasInstanceId(Ljava/lang/String;)Z. Please see server.log for more details. 


But in server.log file nothing warning or error just loading component INFO logs:
[#|2014-06-22T14:50:15.518+0300|WARNING|glassfish3.1.2|org.apache.catalina.connector.Request|_ThreadID=24;_ThreadName=Thread-2;|PWC4011: Unable to set request character encoding to UTF-8 from context , because request parameters have already been read, or ServletRequest.getReader() has already been called|#]

[#|2014-06-22T14:50:28.623+0300|WARNING|glassfish3.1.2|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=18;_ThreadName=Thread-2;|DPL8029: Ignore WEB-INF/weblogic.xml in archive /home/portal-6.0.12/glassfish/glassfish/domains/domain1/applications/liferay-portal-6.0-ee-sp2/, as Sun counterpart runtime xml WEB-INF/sun-web.xml is present in the same archive.|#]

[#|2014-06-22T14:50:38.777+0300|INFO|glassfish3.1.2|com.liferay.portal.kernel.deploy.hot.HotDeployUtil|_ThreadID=18;_ThreadName=Thread-2;|Initializing hot deploy manager 994432|#]

[#|2014-06-22T14:50:38.796+0300|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=18;_ThreadName=Thread-2;|Loading file:/home/portal-6.0.12/glassfish/glassfish/domains/domain1/generated/jsp/liferay-portal-6.0-ee-sp2/loader_31954909/system.properties|#]

[#|2014-06-22T14:50:38.881+0300|INFO|glassfish3.1.2|com.liferay.portal.kernel.util.ServerDetector|_ThreadID=18;_ThreadName=Thread-2;|Detected server glassfish|#]

[#|2014-06-22T14:50:39.196+0300|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=18;_ThreadName=Thread-2;|14:50:39,188 INFO  [EasyConf:122] Refreshed the configuration of all components
|#]

[#|2014-06-22T14:50:40.165+0300|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=18;_ThreadName=Thread-2;|14:50:40,164 INFO  [ConfigurationLoader:56] Properties for /home/portal-6.0.12/glassfish/glassfish/domains/domain1/generated/jsp/liferay-portal-6.0-ee-sp2/loader_31954909/portal loaded from [file:/home/portal-6.0.12/glassfish/glassfish/domains/domain1/generated/jsp/liferay-portal-6.0-ee-sp2/loader_31954909/portal.properties]
|#]

[#|2014-06-22T14:50:40.170+0300|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=18;_ThreadName=Thread-2;|Loading file:/home/portal-6.0.12/glassfish/glassfish/domains/domain1/generated/jsp/liferay-portal-6.0-ee-sp2/loader_31954909/portal.properties|#]

[#|2014-06-22T14:50:41.694+0300|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=18;_ThreadName=Thread-2;|PWC1412: WebModule[null] ServletContext.log():Initializing Spring root WebApplicationContext|#]

[#|2014-06-22T14:50:52.820+0300|INFO|glassfish3.1.2|null|_ThreadID=25;_ThreadName=Thread-2;|Domain Pinged: stable.glassfish.org|#]


I read some issues talk about wrong version of jar files, so I double check my jar files and from many resources (like jars from bundles and dependencies zip folder) and still fails.

I tried JDK 7 and JDK 6 and all have same issue.

Any help with this? I'm stuck with this from 3 days, tried many ways with no luck.

P.S: Tomcat Bundle after patching worked very well.