سؤال

My Jboss Seam application is working just fine at a local environment, but when i try to deploy it on a Remote Jboss, some pages redirect to the debug page, with the following Exception:

Exception during request processing:
Caused by javax.servlet.ServletException with message: "Servlet execution threw an exception" 
java.lang.NoSuchMethodError: org.richfaces.component.UIColumn.getFilterMethod()Ljavax/el/MethodExpression;

The Local and the remote Jboss versions are the same: 4.2.3.GA, I'm using Seam(same version on both servers) 2.2.2.Final and Richfaces 3.3.3.Final with JSF 1.2, the files are the same, I'm sure because i copied them to the remote server, The only difference is the OS, my local server is running Windows Server 2003 R2 32 bits, and the remote server is running Ubuntu Server 12.04 64 bits. Is there any known problem with Ubuntu Server and Jboss or any other of these tools ?

Update: I'm using Oracle's jdk1.6.0_26 on the Windows Server, and openjdk-7-jdk 7u7-2.3.2-1ubuntu0.12.04.1 on Ubuntu Server

هل كانت مفيدة؟

المحلول 3

I've found two jars at WEB-INF/lib, from a different version(4.0) of the Richfaces I'm using(3.3.3), the problem was solved by removing them and restarting the server.

نصائح أخرى

Upgrade Expression Language 'EL' to the version that should be used in conjunction with JSF 1.2. This looks to be EL 1.2 and maybe you can download/extract it from a JBoss AS5 install archive (since it is part of EE5).

Or copy/compare files with your old installation. On linux cmp file1.jar file2.jar

http://docs.oracle.com/javaee/5/api/javax/el/package-summary.html

This like confirms the method is available in EL 1.2 which was shipped with EE5 standards set.

JBoss AS 4.x did not support EE5. So you must have upgraded it manually (in the old installation) and it is usually upgraded along with JSF.

There was no EL in previous JavaEE but there was EL in Servlet Spec 2.3 that came before (as shown here) http://docs.oracle.com/javaee/1.4/tutorial/doc/JSPIntro7.html

It looks like the method getFilterMethod() is missing on the UIColumn class, so this probably an issue with the RichFaces jars. See this page for how to check whether the RichFaces version is the right one on both deployments. In any case, use the commands mentioned by others to look for RichFaces jars.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top