- This topic has 9 replies, 5 voices, and was last updated 13 years, 9 months ago by amir55.
-
AuthorPosts
-
Behrang SaeedzadehMemberHi,
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
Loyal WaterMemberAre you deploying a Web project or an Enterprise Application project ?
Behrang SaeedzadehMember@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)
Loyal WaterMemberIs 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…./ ?
Behrang SaeedzadehMemberI 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…
squ1rr3lMemberHaving 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?
Loyal WaterMemberHave 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/
amir55ParticipantThis message has not been recovered.
support-swapnaModeratorThis message has not been recovered.
amir55Participant1 – My Configuration
*** Date:
Sunday, February 6, 2011 10:44:39 PM GST** System properties:
OS=WindowsXPOS 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.6Eclipse 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.dll2 – The example
SimpleFaceletsExample from MyEclipse – Examples On demand3 – I use JBoss 4.2.2
many thanks
-
AuthorPosts