facebook

Error when deploying an EAR application with a JSF module

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #284565 Reply

    Hi,

    When I deploy a JSF+Facelets application into JBoss 4.2.2, it works fine: when I visit http://localhost:8080/project_name/home.faces the page is rendered correctly.

    However, if I package it as an EAR and then deploy it, JBoss displays the following error message:

    java.lang.LinkageError: loader constraints violated when linking javax/el/ELContext class
    com.sun.facelets.el.ELAdaptor.getELContext(ELAdaptor.java:45)
    com.sun.facelets.impl.DefaultFaceletContext.<init>(DefaultFaceletContext.java:85)
    com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:91)
    com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:503)
    com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:546)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

    Any ideas why this error occur and how I can resolve it?

    Regards,
    Behrang

    #284577 Reply

    Loyal Water
    Member

    Are you deploying a Web project or an Enterprise Application project ?

    #284591 Reply

    @support-nipun wrote:

    Are you deploying a Web project or an Enterprise Application project ?

    An EAR project that only contains a simple WAR project (JSF 1.2 + Facelets / JavaEE 1.5)

    #284603 Reply

    Loyal Water
    Member

    Is there an expression language library in the packaged EAR that you are deploying? Is the commons-el.jar is present in JBOSS_DIR/server/default/deploy/jbossweb…./ ?

    #284615 Reply

    I will check that tomorrow. I am very zleepy right now 😉 I has to zleep 🙂 But just as a quick response, it is the default setup and I have not changed/modified anything. I expected it to work out of da box…

    #288285 Reply

    squ1rr3l
    Member

    Having the same issue here. I’ve had a really difficult time getting JSF to work at all from MyEclipse. I guess I’m just not used to the “myeclipse way”.

    It looks like the myeclipse facelets library (which includes the el- jars) is just not compatible with the JBoss implementation. To work around this, I removed the Facelets 1.1 library, and created a new JSF implementation library using the jars from /jboss/server/default/deploy/jboss-web.deployer/jsf-libs.

    That builds and deploys and runs (so far) without any issues, but I’m afraid I’ll run into issues with the myeclipse tools later (this is a very simple test so far).

    I was really hoping myeclipse would work for me. I’m trying to work up a prototype for my next project, but it’s not really working out very well so far. Should I be using something else for web UI?

    #288331 Reply

    Loyal Water
    Member

    Have you gone thorugh this tutorial to get an idea on how to create a JSF app with MyEclipse:-
    http://www.myeclipseide.com/documentation/quickstarts/jsf/

    #312976 Reply

    amir55
    Participant

    This message has not been recovered.

    #312987 Reply

    support-swapna
    Moderator

    This message has not been recovered.

    #314258 Reply

    amir55
    Participant

    1 – My Configuration

    *** Date:
    Sunday, February 6, 2011 10:44:39 PM GST

    ** System properties:
    OS=WindowsXP

    OS version=5.1.0
    Java version=1.6.0_13

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 8.6.1
    Build id: 8.6.1-20101117

    *** Eclipse details:
    MyEclipse for Spring Version: 8.6

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    D:\MyEclipse_Group\Genuitec\MyEclipse for Spring 8.6\myeclipseforspring.exe
    -name
    Myeclipseforspring
    –launcher.library
    D:\MyEclipse_Group\Genuitec\MyEclipse for Spring 8.6\../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
    -startup
    D:\MyEclipse_Group\Genuitec\MyEclipse for Spring 8.6\../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
    -install
    D:/MyEclipse_Group/Genuitec/MyEclipse for Spring 8.6
    -configuration
    configuration
    -vm
    D:/MyEclipse_Group/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll

    2 – The example
    SimpleFaceletsExample from MyEclipse – Examples On demand

    3 – I use JBoss 4.2.2

    many thanks

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Error when deploying an EAR application with a JSF module

You must be logged in to post in the forum log in