Forums de discussion

Aui script not working on migrating to JBOSS from Tomcat.

Sumit Bhoir, modifié il y a 7 années.

Aui script not working on migrating to JBOSS from Tomcat.

New Member Publications: 2 Date d'inscription: 03/08/16 Publications récentes
Aui script was working in earlier version of Liferay 6.0 on Tomcat but while migrating to Liferay 6.1 JBOSS it is giving error as follows.

Caused by: javax.servlet.ServletException: java.lang.NoSuchMethodError: com.liferay.portal.kernel.servlet.taglib.aui.ScriptData.append(Ljava/lang/String;Lcom/liferay/portal/kernel/util/StringBundler;Ljava/lang/String;)V
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
at org.apache.jsp.mdm.jsp.QuickInvestigate_jsp._jspService(QuickInvestigate_jsp.java:1180)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
... 235 more
Caused by: java.lang.NoSuchMethodError: com.liferay.portal.kernel.servlet.taglib.aui.ScriptData.append(Ljava/lang/String;Lcom/liferay/portal/kernel/util/StringBundler;Ljava/lang/String;)V
at com.liferay.taglib.aui.ScriptTag.doEndTag(ScriptTag.java:144)
at org.apache.jsp.mdm.jsp.QuickInvestigate_jsp._jspx_meth_aui_005fscript_005f0(QuickInvestigate_jsp.java:1339)
at org.apache.jsp.mdm.jsp.QuickInvestigate_jsp._jspService(QuickInvestigate_jsp.java:687)
... 238 more
thumbnail
David H Nebinger, modifié il y a 7 années.

RE: Aui script not working on migrating to JBOSS from Tomcat.

Liferay Legend Publications: 14915 Date d'inscription: 02/09/06 Publications récentes
you're really mashing things together that have no impact on the issue. Tomcat v jboss is certainly not any kind of problem for you.

However, 6.0 to 6.1 migration, that's where the issue is.

You haven't shared anything, not even the error, so there's really nothing we can do.

Deploy your app, use chrome or FF w/ firebug to review the console errors, review your changes made during the upgrade, compare what you've done against the 6.1 source, ...







Come meet me at the LSNA!
Sumit Bhoir, modifié il y a 7 années.

RE: Aui script not working on migrating to JBOSS from Tomcat.

New Member Publications: 2 Date d'inscription: 03/08/16 Publications récentes
Following are the error statments.
Caused by: javax.servlet.ServletException: java.lang.NoSuchMethodError: com.liferay.portal.kernel.servlet.taglib.aui.ScriptData.append(Ljava/lang/String;Lcom/liferay/portal/kernel/util/StringBundler;Ljava/lang/String;)V
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
at org.apache.jsp.mdm.jsp.QuickInvestigate_jsp._jspService(QuickInvestigate_jsp.java:1180)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
... 235 more
Caused by: java.lang.NoSuchMethodError: com.liferay.portal.kernel.servlet.taglib.aui.ScriptData.append(Ljava/lang/String;Lcom/liferay/portal/kernel/util/StringBundler;Ljava/lang/String;)V
at com.liferay.taglib.aui.ScriptTag.doEndTag(ScriptTag.java:144)
at org.apache.jsp.mdm.jsp.QuickInvestigate_jsp._jspx_meth_aui_005fscript_005f0(QuickInvestigate_jsp.java:1339)
at org.apache.jsp.mdm.jsp.QuickInvestigate_jsp._jspService(QuickInvestigate_jsp.java:687)
... 238 more
thumbnail
David H Nebinger, modifié il y a 7 années.

RE: Aui script not working on migrating to JBOSS from Tomcat.

Liferay Legend Publications: 14915 Date d'inscription: 02/09/06 Publications récentes
Sumit Bhoir:
Caused by: java.lang.NoSuchMethodError: com.liferay.portal.kernel.servlet.taglib.aui.ScriptData.append(Ljava/lang/String;Lcom/liferay/portal/kernel/util/StringBundler;Ljava/lang/String;)V


Yep, that's absolutely right. There is no method that takes lists of these values, the only reasonable match is public void append(String portletId, StringBundler contentSB, String use);.

Like I said, your plugins are not going to just move to 6.1 w/o some work. You're going to face a lot more APIs that changed from 6.0 to 6.1 and you're going to have to sweep through the code applying all of the necessary updates.

Right now you have compile errors to deal with, errors that are easy because you get advance notice that something is wrong.

The harder case is coming when you move to js, css and jsp. Those don't get compiled, those are also going to be full of necessary changes to be compatible with 6.1, and those are going to be a lot more work to get working.






Come meet me at the LSNA!