myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alonso Isidoro Roman" <alons...@gmail.com>
Subject pls help with exception
Date Mon, 24 Sep 2007 10:08:21 GMT
hi everybody, i`m newbee with jsf first at all!


it takes me this exception when i submit the form:

javax.servlet.ServletException: Error calling action method of
component with id formulario:boton
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
	org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)

*causa raíz*

javax.faces.FacesException: Error calling action method of component
with id formulario:boton
	org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
	de.mindmatters.faces.application.DelegatingActionListener.processAction(DelegatingActionListener.java:106)
	javax.faces.component.UICommand.broadcast(UICommand.java:106)
	org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:274)
	org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:250)
	org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:405)
	de.mindmatters.faces.lifecycle.InvokeApplicationPhase.executePhase(InvokeApplicationPhase.java:43)
	de.mindmatters.faces.lifecycle.AbstractPhase.execute(AbstractPhase.java:37)
	de.mindmatters.faces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:166)
	de.mindmatters.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:211)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
	org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)



my faces page is

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<f:view>
    <f:loadBundle basename="MessageResources" var="msg"/>
<head>
        <title>
            ${msg.titulo}
        </title>
</head>

<body>
    <h:form id="formulario">
        <h:inputText id="campoQue" value="#{yellProxy.campoQue}" />
        <h:inputText id="campoDonde" value="#{yellProxy.campoDonde}" />
        <h:commandButton id="boton" value="#{msg.boton}" action="#{
yellProxy.encuentra}"/>
    </h:form>
</f:view>
</body>
</html>

my faces-config is:

<?xml version='1.0' encoding='UTF-8'?>


<!DOCTYPE faces-config PUBLIC
  "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
  "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">

<!-- =========== FULL CONFIGURATION FILE ==================================
-->

<faces-config>
    <!-- El mantenimiento del bean proxy se delega al contenedor de
spring-->

     <application>
         <variable-resolver>
             org.springframework.web.jsf.DelegatingVariableResolver
         </variable-resolver>
     </application>

     <!-- el unico idioma permitido es el español.-->
     <application>
        <locale-config>
            <default-locale>es</default-locale>
        </locale-config>
     </application>

     <!--
      - navigation rules
      -->
    <navigation-rule>
        <from-view-id>/index.jsp</from-view-id>
        <navigation-case>
            <from-outcome>succesJS</from-outcome>
            <to-view-id>/jsActivado.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>succesNoJS</from-outcome>
            <to-view-id>/jsDesactivado.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
</faces-config>

my applicationContext.xml is

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN"
          "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>

    <bean id="ParserSAX" class="
es.yell.frontlite.parser.ParserPrincipalHandler" scope="singleton"/>

    <bean id="Controller" class="es.yell.frontlite.servlets.Controller"
scope="singleton"/>

    <bean id="srvBusquedaNoxtrumService" class="
es.yell.frontlite.service.impl.SrvBusquedaNoxtrumServiceImpl"
scope="singleton">
        <property name="parserSAX"><ref bean="ParserSAX"/></property>
        <property name="controlador"><ref bean="Controller"/></property>
    </bean>

    <bean id="yellProxy" class="es.yell.frontlite.servlets.YellProxy"
scope="singleton">
        <property name="servicio">
            <ref bean="srvBusquedaNoxtrumService"/>
        </property>
    </bean>
</beans>

another question:

why do i have to put the url http: // localhost:8084/index.faces i browser
instead of
Http: // localhost:8084/index.jsp
Or
Http: // localhost:8084/index.jsf?

pls help
-- 
Alonso Isidoro Roman.

Mime
View raw message