Problemas de JSP/JSF/Icefaces em migração de aplicação antiga do Glassfish para o Wildfly 10
wallace.cunha Nov 30, 2016 2:27 PMEstou migrando uma aplicação de 10 anos atrás do Glassfish para o Wildfly 10 usando Java 1.8 ( atualizando versões de jar e excluindo alguns módulos do jboss no jboss-deployment sem acesso ao código ), a aplicação carrega normalmente, porém estou recebendo a seguinte exceção quando acesso a mesma pela URL:
2016-11-29 16:46:05,695 ERROR [io.undertow.request] (default task-18) UT005023: Exception handling request to /app/login.iface: javax.servlet.ServletException: java.lang.Exception: javax.faces.FacesException: Problem in renderResponse: javax.el.PropertyNotFoundException: /login.jspx @68,91 binding="#{loginMB.usuario}": Target Unreachable, identifier 'loginMB' resolved to null at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:158) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129) at br.com.portal.filter.GerenciarSessaoUsuarioFilter.doFilter(GerenciarSessaoUsuarioFilter.java:56) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) at br.com.portal.filter.UsuarioFilter.doFilter(UsuarioFilter.java:107) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:84) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131) at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64) at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77) at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50) at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292) at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81) at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138) at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135) at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48) at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:805) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.Exception: javax.faces.FacesException: Problem in renderResponse: javax.el.PropertyNotFoundException: /login.jspx @68,91 binding="#{loginMB.usuario}": Target Unreachable, identifier 'loginMB' resolved to null at com.icesoft.faces.context.View.servePage(View.java:152) at com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:67) at com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11) at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:149) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24) at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16) at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53) at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23) at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131) ... 50 more Caused by: javax.faces.FacesException: Problem in renderResponse: javax.el.PropertyNotFoundException: /login.jspx @68,91 binding="#{loginMB.usuario}": Target Unreachable, identifier 'loginMB' resolved to null at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:296) at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:159) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:19) at com.icesoft.faces.context.View$2$1.respond(View.java:48) at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:201) at com.icesoft.faces.context.View$2.serve(View.java:77) at com.icesoft.faces.context.View.servePage(View.java:149) ... 59 more Caused by: javax.faces.FacesException: javax.el.PropertyNotFoundException: /login.jspx @68,91 binding="#{loginMB.usuario}": Target Unreachable, identifier 'loginMB' resolved to null at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:253) at com.sun.facelets.tag.jsf.ComponentHandler.createComponent(ComponentHandler.java:224) at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:139) at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314) at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169) at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314) at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169) at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314) at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169) at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314) at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169) at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314) at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169) at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314) at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169) at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314) at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169) at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314) at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169) at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314) at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169) at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314) at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169) at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314) at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169) at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) at com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:109) at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49) at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25) at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95) at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:274) ... 68 more Caused by: javax.el.PropertyNotFoundException: /login.jspx @68,91 binding="#{loginMB.usuario}": Target Unreachable, identifier 'loginMB' resolved to null at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:95) at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:250) ... 104 more
Meu faces-config.xml é o seguinte:
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd"> <faces-config xmlns="http://java.sun.com/JSF/Configuration"> <application> <locale-config> <default-locale>pt</default-locale> <supported-locale>en</supported-locale> </locale-config> <view-handler>com.icesoft.faces.facelets.D2DFaceletViewHandler</view-handler> </application> <application> <variable-resolver>org.springframework.web.jsf.SpringBeanVariableResolver</variable-resolver> </application> <converter> <converter-id>converterInteger</converter-id> <converter-class>br.com.portal.converter.ConverterInteger</converter-class> </converter> <converter> <converter-id>converterLong</converter-id> <converter-class>br.com.portal.converter.ConverterLong</converter-class> </converter> <converter> <converter-id>converterBoolean</converter-id> <converter-class>br.com.portal.converter.ConverterBoolean</converter-class> </converter> <converter> <converter-id>converterTrustEnum</converter-id> <converter-class>br.com.portal.converter.ConverterTrustEnum</converter-class> </converter> <converter> <converter-id>converterTipoAssinanteEnum</converter-id> <converter-class>br.com.portal.converter.ConverterTipoAssinanteEnum</converter-class> </converter> <application> <locale-config> <default-locale>pt_BR</default-locale> <supported-locale>pt_BR</supported-locale> </locale-config> <message-bundle>br.com.resources.msgs</message-bundle> </application> </faces-config>
Meu jboss-deployment-structure.xml é o seguinte:
<?xml version="1.0" encoding="UTF-8"?> <jboss-deployment-structure> <deployment> <exclude-subsystems> <subsystem name="jpa" /> <subsystem name="jsf" /> </exclude-subsystems> </deployment> </jboss-deployment-structure>
E as libs no web-inf\lib são:
activation.jar antlr-2.7.5.jar antlr-3.0.jar aopalliance-1.0.jar asm-all-2.2.3.jar axis.jar backport-util-concurrent.jar barbecue-1.5-beta1.jar barcode4j.jar batik-anim.jar batik-awt-util.jar batik-bridge.jar batik-css.jar batik-dom.jar batik-ext.jar batik-gvt.jar batik-parser.jar batik-script.jar batik-svg-dom.jar batik-svggen.jar batik-util.jar batik-xml.jar bsh-2.0b4.jar castor-1.2.jar cglib-nodep-2.1_3.jar cincom-jr-xmla.jar commons-beanutils-1.8.0.jar commons-collections-3.2.1.jar commons-dbcp-1.2.2.jar commons-digester-1.7.jar commons-discovery-0.2.jar commons-el.jar commons-fileupload.jar commons-io-2.1.jar commons-javaflow-20060411.jar commons-lang-2.4.jar commons-logging-1.1.jar commons-logging.jar commons-math-1.0.jar commons-pool-1.3.jar commons-vfs-1.0.jar dom4j-1.6.1.jar ehcache-1.2.4.jar ejb3-persistence.jar el-ri.jar ext\jsf-metadata-resources-1.1.1.jar groovy-all-1.5.5.jar hamcrest-core-1.1.jar hamcrest-library-1.1.jar hibernate3.jar hibernate-annotations.jar hibernate-commons-annotations.jar hibernate-core.jar hibernate-entitymanager.jar icefaces-1.8.2.jar icefaces-comps-1.8.2.jar icefaces-facelets-1.8.2.jar iText-2.1.0.jar jakarta-bcel-20050813.jar jakarta-regexp-1.5.jar jasperreports-3.5.3.jar jasperreports-chart-themes-3.5.3.jar jasperreports-dejavu-fonts.jar jasperreports-extensions-3.5.3.jar javacup.jar javassist-3.4.GA.jar javax.wsdl_1.5.1.v200806030408.jar jaxb1-impl.jar jaxb-api.jar jaxb-impl.jar jaxb-xjc.jar jaxrpc.jar jcommon-1.0.15.jar jdom.jar jettison-1.0.1.jar jfreechart-1.0.12.jar jmock-2.5.1.jar joda-time-1.6.jar jsf-api-1.2.jar jsf-impl-1.2.jar jsr173_1.0_api.jar jstl.jar jta-1.1.jar jxl-2.6.jar krysalis-jCharts-1.0.0-alpha-1.jar lista.txt log4j-1.2.16.jar mail.jar mondrian-3.1.1.12687-Jaspersoft.jar mysql-connector-java-5.1.7-bin.jar ojdbc14.jar org.springframework.aop-3.0.0.M2.jar org.springframework.aspects-3.0.0.M2.jar org.springframework.beans-3.0.0.M2.jar org.springframework.context-3.0.0.M2.jar org.springframework.context.support-3.0.0.M2.jar org.springframework.core-3.0.0.M2.jar org.springframework.expression-3.0.0.M2.jar org.springframework.instrument-3.0.0.M2.jar org.springframework.instrument.classloading-3.0.0.M2.jar org.springframework.integration-tests-3.0.0.M2.jar org.springframework.jdbc-3.0.0.M2.jar org.springframework.jms-3.0.0.M2.jar org.springframework.orm-3.0.0.M2.jar org.springframework.oxm-3.0.0.M2.jar org.springframework.spring-library-3.0.0.M2.libd org.springframework.test-3.0.0.M2.jar org.springframework.transaction-3.0.0.M2.jar org.springframework.web-3.0.0.M2.jar org.springframework.web.portlet-3.0.0.M2.jar org.springframework.web.servlet-3.0.0.M2.jar png-encoder-1.5.jar poi-3.2-FINAL-20081019.jar RadarLib.jar rex-20080421.jar rhino-1.7R1.jar saaj.jar slf4j-api-1.5.5.jar slf4j-log4j12-1.5.5.jar spring-ldap-core-1.3.0.RELEASE.jar spring-ldap-core-tiger-1.3.0.RELEASE.jar spring-ldap-test-1.3.0.RELEASE.jar sqleonardo-2007.03.jar stax-1.2.0.jar stax-api-1.0.1.jar swingx-2007_10_07.jar wsdl4j.jar wstx-asl-3.2.7.jar xercesImpl.jar xml-apis-ext.jar xml-apis.jar xml-writer-0.2.jar xom-1.1.jar xpp3_min-1.1.4c.jar xstream-1.3.1.jar
Alguma idéia do que posso fazer?!
Muito obrigado!