List Info

Thread: pls help with exception




pls help with exception
user name
2007-09-24 05:08:21
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&quot; prefix=&quot;h" %>
<% taglib uri=" http://java.sun.com/jsf/core&quot; prefix=&quot;f" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN";>

<html>
&lt;f:view>;
 &nbsp;  <f:loadBundle basename=&quot;MessageResources&quot; var="msg"/&gt;
<head>
 ; &nbsp; &nbsp; &nbsp; <title&gt;
 &nbsp;   ; &nbsp; &nbsp; &nbsp; ${msg.titulo}
 &nbsp;   ; &nbsp; </title>
</head>

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

my faces-config is:

<?xml version=&#39;1.0' encoding=&#39;UTF-8&#39;?>


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

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

&lt;faces-config>
&nbsp;   <!-- El mantenimiento del bean proxy se delega al contenedor de spring--&gt;
 &nbsp; 
 &nbsp; &nbsp; <application>&nbsp;
 &nbsp; &nbsp; &nbsp;   <variable-resolver
 &nbsp; &nbsp; &nbsp;   ; &nbsp;  org.springframework.web.jsf.DelegatingVariableResolver
 &nbsp; &nbsp;   ;  </variable-resolver> 
 &nbsp; &nbsp; </application>
 &nbsp; &nbsp;
 &nbsp; &nbsp; <!-- el unico idioma permitido es el español.-->
   ;  <application>
&nbsp;   ; &nbsp;  <locale-config>
 &nbsp; &nbsp; &nbsp; &nbsp;   ; <default-locale>;es</default-locale>
&nbsp; &nbsp; &nbsp; &nbsp; </locale-config>;
 &nbsp; &nbsp; </application>
  
 &nbsp; &nbsp; <!--
&nbsp; &nbsp;   - navigation rules
&nbsp; &nbsp; &nbsp; -->
&nbsp; &nbsp; <navigation-rule&gt;
 &nbsp; &nbsp;   ; <from-view-id>/index.jsp&lt;/from-view-id>
  ; &nbsp; &nbsp;  <navigation-case&gt;
 &nbsp; &nbsp;   ; &nbsp; &nbsp; <from-outcome>succesJS</from-outcome>
&nbsp; &nbsp; &nbsp; &nbsp;   ;  <to-view-id>/jsActivado.jsp</to-view-id>
&nbsp;   ; &nbsp;  </navigation-case&gt;
 &nbsp;   ; &nbsp; <navigation-case&gt;
   ; &nbsp; &nbsp; &nbsp; &nbsp; <from-outcome>succesNoJS&lt;/from-outcome>
&nbsp; &nbsp;   ; &nbsp; &nbsp;  <to-view-id>/jsDesactivado.jsp</to-view-id>;
 &nbsp; &nbsp; &nbsp;  </navigation-case&gt;
 &nbsp;  </navigation-rule&gt;
</faces-config&gt;

my applicationContext.xml is

<?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN&quot;
 &nbsp;   &nbsp;    " http://www.springframework.org/dtd/spring-beans-2.0.dtd"&gt;
<beans>
&nbsp; &nbsp;
 &nbsp;  <bean id="ParserSAX&quot; class=&quot;es.yell.frontlite.parser.ParserPrincipalHandler" scope=&quot;singleton"/>
 &nbsp; 
 &nbsp;  <bean id="Controller&quot; class=&quot;es.yell.frontlite.servlets.Controller"; scope=&quot;singleton"/>
 &nbsp; 
 &nbsp;  <bean id="srvBusquedaNoxtrumService" class=&quot;es.yell.frontlite.service.impl.SrvBusquedaNoxtrumServiceImpl &quot; scope=&quot;singleton">
  ; &nbsp; &nbsp;  <property name=";parserSAX&quot;>&lt;ref bean=";ParserSAX&quot;/>&lt;/property>
 ; &nbsp; &nbsp; &nbsp; <property name=";controlador"><ref bean=";Controller"/></property>
&nbsp; &nbsp; </bean&gt;
 &nbsp;   ; &nbsp; &nbsp; &nbsp;
 &nbsp;  <bean id="yellProxy&quot; class=&quot;es.yell.frontlite.servlets.YellProxy" scope=&quot;singleton">
  ; &nbsp; &nbsp;  <property name=";servicio&quot;>
  ; &nbsp; &nbsp; &nbsp; &nbsp;  <ref bean=";srvBusquedaNoxtrumService"/>
   ; &nbsp; &nbsp; </property>
&nbsp; &nbsp; </bean&gt;
</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.
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )