У меня проблема при развертывании моего приложения (разработанного с помощью JBoss Seam) на Tomcat.
Мне удалось запустить представления, но я не могу запросить список в БД.
Это то, что отображается в консоли, когда я пытаюсь войти, например
Ошибка при вызове метода входа в систему javax.el.PropertyNotFoundException:
Цель недостижима, идентификатор «аутентификатор» преобразован в ноль в
org.jboss.el.parser.AstValue.getTarget (AstValue.java:38) в
org.jboss.el.parser.AstValue.invoke (AstValue.java:95) в
org.jboss.el.MethodExpressionImpl.invoke (MethodExpressionImpl.java:276)
в org.jboss.seam.core.Expressions $ 2.invoke (Expressions.java:175) в
org.jboss.seam.security.jaas.SeamLoginModule.login (SeamLoginModule.java:109)
в sun.reflect.NativeMethodAccessorImpl.invoke0 (собственный метод) в
sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57)
в
sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
в java.lang.reflect.Method.invoke (Method.java:616) в
javax.security.auth.login.LoginContext.invoke (LoginContext.java:784)
в
javax.security.auth.login.LoginContext.access $ 000 (LoginContext.java:203)
в
javax.security.auth.login.LoginContext $ 5.run (LoginContext.java:721)
в
javax.security.auth.login.LoginContext $ 5.run (LoginContext.java:719)
в java.security.AccessController.doPrivileged (собственный метод) в
javax.security.auth.login.LoginContext.invokeCreatorPriv (LoginContext.java:718)
в
javax.security.auth.login.LoginContext.login (LoginContext.java:590)
в org.jboss.seam.security.Identity.authenticate (Identity.java:344)
в org.jboss.seam.security.Identity.authenticate (Identity.java:332)
в org.jboss.seam.security.Identity.login (Identity.java:259) в
sun.reflect.NativeMethodAccessorImpl.invoke0 (собственный метод) в
sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57)
в
sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
в java.lang.reflect.Method.invoke (Method.java:616) в
org.jboss.el.util.ReflectionUtil.invokeMethod (ReflectionUtil.java:335)
в
org.jboss.el.util.ReflectionUtil.invokeMethod (ReflectionUtil.java:348)
в
org.jboss.el.parser.AstPropertySuffix.invoke (AstPropertySuffix.java:58)
в org.jboss.el.parser.AstValue.invoke (AstValue.java:96) в
org.jboss.el.MethodExpressionImpl.invoke (MethodExpressionImpl.java:276)
в
com.sun.facelets.el.TagMethodExpression.invoke (TagMethodExpression.java:68)
в
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke (MethodBindingMethodExpressionAdapter.java:88)
в
com.sun.faces.application.ActionListenerImpl.processAction (ActionListenerImpl.java:102)
на javax.faces.component.UICommand.broadcast (UICommand.java:387) на
org.ajax4jsf.component.AjaxViewRoot.processEvents (AjaxViewRoot.java:321)
в
org.ajax4jsf.component.AjaxViewRoot.broadcastEvents (AjaxViewRoot.java:296)
в
org.ajax4jsf.component.AjaxViewRoot.processPhase (AjaxViewRoot.java:253)
в
org.ajax4jsf.component.AjaxViewRoot.processApplication (AjaxViewRoot.java:466)
в
com.sun.faces.lifecycle.InvokeApplicationPhase.execute (InvokeApplicationPhase.java:82)
в com.sun.faces.lifecycle.Phase.doPhase (Phase.java:100) в
com.sun.faces.lifecycle.LifecycleImpl.execute (LifecycleImpl.java:118)
в javax.faces.webapp.FacesServlet.service (FacesServlet.java:265) в
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:290)
в
org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206)
в
org.jboss.seam.servlet.SeamFilter $ FilterChainImpl.doFilter (SeamFilter.java:83)
в org.jboss.seam.web.IdentityFilter.doFilter (IdentityFilter.java:40)
в
org.jboss.seam.servlet.SeamFilter $ FilterChainImpl.doFilter (SeamFilter.java:69)
вorg.jboss.seam.web.MultipartFilter.doFilter (MultipartFilter.java:90)
в
org.jboss.seam.servlet.SeamFilter $ FilterChainImpl.doFilter (SeamFilter.java:69)
в
org.jboss.seam.web.ExceptionFilter.doFilter (ExceptionFilter.java:64)
в
org.jboss.seam.servlet.SeamFilter $ FilterChainImpl.doFilter (SeamFilter.java:69)
в org.jboss.seam.web.RedirectFilter.doFilter (RedirectFilter.java:45)
в
org.jboss.seam.servlet.SeamFilter $ FilterChainImpl.doFilter (SeamFilter.java:69)
в
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter (BaseXMLFilter.java:178)
в org.ajax4jsf.webapp.BaseFilter.handleRequest (BaseFilter.java:290)
в
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest (BaseFilter.java:368)
в org.ajax4jsf.webapp.BaseFilter.doFilter (BaseFilter.java:495) в
org.jboss.seam.web.Ajax4jsfFilter.doFilter (Ajax4jsfFilter.java:56) в
org.jboss.seam.servlet.SeamFilter $ FilterChainImpl.doFilter (SeamFilter.java:69)
в org.jboss.seam.web.LoggingFilter.doFilter (LoggingFilter.java:60)
в
org.jboss.seam.servlet.SeamFilter $ FilterChainImpl.doFilter (SeamFilter.java:69)
в org.jboss.seam.servlet.SeamFilter.doFilter (SeamFilter.java:158)
в
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:235)
в
org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206)
в
org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:233)
в
org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:191)
в
org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java:470)
в
org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:127)
в
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102)
в
org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109)
в
org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:298)
в
org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:857)
в
org.apache.coyote.http11.Http11Protocol $ Http11ConnectionHandler.process (Http11Protocol.java:588)
в
org.apache.tomcat.util.net.JIoEndpoint $ Worker.run (JIoEndpoint.java:489)
at java.lang.Thread.run (Thread.java:636)
это мой файл component.xml:
<?xml version="1.0" encoding="UTF-8"?>
<components xmlns="http://jboss.com/products/seam/components"
xmlns:core="http://jboss.com/products/seam/core"
xmlns:persistence="http://jboss.com/products/seam/persistence"
xmlns:drools="http://jboss.com/products/seam/drools"
xmlns:bpm="http://jboss.com/products/seam/bpm"
xmlns:security="http://jboss.com/products/seam/security"
xmlns:mail="http://jboss.com/products/seam/mail"
xmlns:web="http://jboss.com/products/seam/web"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:transaction="http://jboss.com/products/seam/transaction"
xsi:schemaLocation=
"http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.2.xsd
http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.2.xsd
http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.2.xsd
http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.2.xsd
http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.2.xsd
http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.2.xsd
http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.2.xsd
http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.2.xsd
http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.2.xsd">
<core:init />
<core:manager concurrent-request-timeout="500"
conversation-timeout="120000"
conversation-id-parameter="cid"
parent-conversation-id-parameter="pid"/>
<transaction:entity-transaction entity-manager="#{entityManager}"/>
<!-- Make sure this URL pattern is the same as that used by the Faces Servlet -->
<web:hot-deploy-filter url-pattern="*.seam"/>
<persistence:entity-manager-factory name="entityManagerFactory"
persistence-unit-name="testp"/>
<persistence:managed-persistence-context
name="entityManager" auto-create="true"
entity-manager-factory="#{entityManagerFactory}"/>
<security:rule-based-permission-resolver security-rules="#{securityRules}"/>
<security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
<event type="org.jboss.seam.security.notLoggedIn">
<action execute="#{redirect.captureCurrentView}"/>
</event>
<event type="org.jboss.seam.security.loginSuccessful">
<action execute="#{redirect.returnToCapturedView}"/>
</event>
<mail:mail-session host="localhost" port="25"/>
<!-- For use with jBPM pageflow or process management -->
<!--
<bpm:jbpm>
<bpm:process-definitions></bpm:process-definitions>
<bpm:pageflow-definitions></bpm:pageflow-definitions>
</bpm:jbpm>
-->
</components>