What about the second problems (EL):

I have this piece of code:
<h:commandButton action="#{propertiesBean.save}" value="save"/>

It is rendered perfectly everywhere (Jetty, TOmcat).

But in SMX 4.4.0 it results in the following exception:

Caused by: javax.el.ELException: /properties.xhtml: The class
'com.luxoft.drf.web.PropertiesBean' does not have the property 'save'.
        at
org.apache.myfaces.view.facelets.compiler.AttributeInstruction.write(AttributeInstruction.java:55)
        at
org.apache.myfaces.view.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:46)
        at
org.apache.myfaces.view.facelets.compiler.UILeaf.encodeAll(UILeaf.java:214)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:614)

I know that even previous version of EL (2.1) worked perfectly with method
expressions, so this is a very strange error.

I tried to use the el-api and el-impl jars inside web application (no
import-packages for javax.el) and got the following exception:

Caused by: java.lang.LinkageError: loader constraint violation: loader
(instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5)
previously initiated loading for a different type with name
"javax/el/ExpressionFactory"
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
        at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1946)
        at
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:752)
        at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:72)
        at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1806)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at
org.apache.myfaces.view.facelets.compiler.SAXCompiler$CompilationHandler.createAttributes(SAXCompiler.java:109)
        at
org.apache.myfaces.view.facelets.compiler.SAXCompiler$CompilationHandler.startElement(SAXCompiler.java:227)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown 
Source)
        at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)
        at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:189)
        at
org.apache.myfaces.view.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:675)
        at
org.apache.myfaces.view.facelets.compiler.Compiler.compile(Compiler.java:118)
        at
org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory._createFacelet(DefaultFaceletFactory.java:280)
        at
org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:162)
        at
org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:137)
        at
org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage._getFacelet(FaceletViewDeclarationLanguage.java:1888)
        at
org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.buildView(FaceletViewDeclarationLanguage.java:311)
        at
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:66)
        at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:239) 

Meaning that ELException cannot be loaded as it was loaded before. When??
What actually does this error mean? I avoided importing of ops4j.pax.web
libraries and thought that internal web app libraries for EL will be used.

Any help very appreciated!

--
View this message in context: 
http://karaf.922171.n3.nabble.com/JSF-and-apache-servicemix-4-4-0-fuse-00-43-problems-tp3277669p3281548.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to