[jboss-jira] [JBoss JIRA] (WFLY-1529) CNFE for a class implementing a taglib function

Juergen Zimmermann (JIRA) jira-events at lists.jboss.org
Mon Jul 22 03:20:26 EDT 2013


     [ https://issues.jboss.org/browse/WFLY-1529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juergen Zimmermann closed WFLY-1529.
------------------------------------

    Fix Version/s: 8.0.0.Beta1
       Resolution: Done


The issue is gone in Undertow 1.0.0.Beta3.
                
> CNFE for a class implementing a taglib function
> -----------------------------------------------
>
>                 Key: WFLY-1529
>                 URL: https://issues.jboss.org/browse/WFLY-1529
>             Project: WildFly
>          Issue Type: Bug
>          Components: Web (Undertow)
>    Affects Versions: 8.0.0.Alpha2
>            Reporter: Juergen Zimmermann
>            Assignee: Stuart Douglas
>             Fix For: 8.0.0.Beta1
>
>
> I'm using the latest WildFly snapshot containing Undertow 1.0.0.Alpha19. When I implement a JSF taglib having 1 function, then I get the stacktrace below when the .war file is deployed. This feature works fine with EAP 6.1.
> The JSF function is implemented in de.shop.util.JsfFunctions and declared in WEB-INF/shop.taglib.xml as follows:
> <?xml version="1.0" encoding="UTF-8"?>
> <facelet-taglib xmlns="http://xmlns.jcp.org/xml/ns/javaee"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facelettaglibary_2_2.xsd"
> 	version="2.2">
> 	<namespace>http://shop.de</namespace>
> 	<function>
> 		<function-name>aktuellesDatum</function-name>
> 		<function-class>de.shop.util.JsfFunctions</function-class>
> 		<function-signature>
> 			java.util.Date aktuellesDatum()
> 		</function-signature>
> 	</function>
> </facelet-taglib>
> The stacktrace in the WildFly console:
> 12:25:16,832 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] Critical error during deployment: : com.sun.faces.config.ConfigurationException: javax.faces.FacesException: de.shop.util.JsfFunctions from [Module "deployment.shop2.war:main" from Service Module Loader]
> 	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processFunctions(FaceletTaglibConfigProcessor.java:642) [jsf-impl-2.2.0-jbossorg-2.jar:]
> 	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTagLibrary(FaceletTaglibConfigProcessor.java:325) [jsf-impl-2.2.0-jbossorg-2.jar:]
> 	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.process(FaceletTaglibConfigProcessor.java:270) [jsf-impl-2.2.0-jbossorg-2.jar:]
> 	at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:437) [jsf-impl-2.2.0-jbossorg-2.jar:]
> 	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:214) [jsf-impl-2.2.0-jbossorg-2.jar:]
> 	at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:144) [undertow-servlet-1.0.0.Alpha19.jar:1.0.0.Alpha19]
> 	at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:158) [undertow-servlet-1.0.0.Alpha19.jar:1.0.0.Alpha19]
> 	at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:74)
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1942)
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1875)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_21]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21]
> 	at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]
> Caused by: javax.faces.FacesException: de.shop.util.JsfFunctions from [Module "deployment.shop2.war:main" from Service Module Loader]
> 	at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:384) [jsf-impl-2.2.0-jbossorg-2.jar:]
> 	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processFunctions(FaceletTaglibConfigProcessor.java:638) [jsf-impl-2.2.0-jbossorg-2.jar:]
> 	... 12 more
> Caused by: java.lang.ClassNotFoundException: de.shop.util.JsfFunctions from [Module "deployment.shop2.war:main" from Service Module Loader]
> 	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196) [jboss-modules.jar:1.2.1.Final]
> 	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444) [jboss-modules.jar:1.2.1.Final]
> 	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432) [jboss-modules.jar:1.2.1.Final]
> 	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374) [jboss-modules.jar:1.2.1.Final]
> 	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119) [jboss-modules.jar:1.2.1.Final]
> 	at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_21]
> 	at java.lang.Class.forName(Class.java:266) [rt.jar:1.7.0_21]
> 	at com.sun.faces.util.Util.loadClass(Util.java:301) [jsf-impl-2.2.0-jbossorg-2.jar:]
> 	at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:376) [jsf-impl-2.2.0-jbossorg-2.jar:]
> 	... 13 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list