[JBoss Seam] - Re: problem in a simple seam application
by mnrz
Hi Petemuir,
eventually I could find the problem, it was something with starting embedded Ejb container because I am using Tomcat and it was not starting properly, I put SeamExceptionFilter and after that all exceptions have emerged in Tomcat console.
after all, I've got a new problem, after click on button to submit the form following exception throws:
I think SeamPhaseListener diclared in faces-config.xml can not bind the RegisterAction class to action represented in jsp file.
| (servlet.SeamExceptionFilter 119 ) uncaught exception handled by Seam
| javax.servlet.ServletException: Error calling action method of component with id _idJsp0:_idJsp6
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.ja
| va:744)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
| at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
| at java.lang.Thread.run(Thread.java:595)
| ([/registration].[Faces Servlet] 119 ) Servlet.service() for servlet Faces Servlet threw exception
| javax.faces.FacesException: Error calling action method of component with id _idJsp0:_idJsp6
| at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
| at javax.faces.component.UICommand.broadcast(UICommand.java:106)
| at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
| at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
| at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.ja
| va:744)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
| at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: javax.faces.el.EvaluationException: Exception while invoking expression #{register.register}
| at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:165)
| at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
| ... 26 more
| Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: register
| at org.jboss.seam.Component.newInstance(Component.java:735)
| at org.jboss.seam.Component.newInstance(Component.java:1308)
| at org.jboss.seam.Component.getInstance(Component.java:1263)
| at org.jboss.seam.Component.getInstance(Component.java:1246)
| at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
| at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.j
| ava:42)
| at org.apache.myfaces.el.ValueBindingImpl$ELVariableResolver.resolveVariable(ValueBindingImpl.java:574
| )
| at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)
| at org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueBindingImpl.java:455)
| at org.apache.myfaces.el.MethodBindingImpl.resolveToBaseAndProperty(MethodBindingImpl.java:180)
| at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:114)
| ... 27 more
| Caused by: javax.naming.NameNotFoundException: RegisterAction not bound
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
| at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:626)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:588)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at org.jboss.seam.Component.instantiate(Component.java:774)
| at org.jboss.seam.Component.newInstance(Component.java:731)
| ... 37 more
|
another question I have is about the role of SeamExceptionFilter. If we dont use it, won't exception messages being displayed?
any guide greatly appreciated
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977787#3977787
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977787
19 years, 7 months
[JBoss jBPM] - About decision node, I need help
by ppxiaofei
Hi, I meet a problem, anyone could help me?
I want to add a DecisionNode in my process definition, this is the first sample:
<start-state name="start">
| <task name="NewApply" swimlane="proposer"></task>
| <transition name="" to="DepLeader"></transition>
| </start-state>
| <task-node name="DepLeaderApprove">
| <task name="DepLeaderUpdte" swimlane="depleader"></task>
| <transition name="" to="NeedUnitLeader"></transition>
| </task-node>
| <decision name="NeedUnitLeader">
| <handler class="com.test.action.NeedUnitleaderApproveHandler">
| </handler>
| <transition name="ToUnitLeader" to="UnitLeaderApprove"></transition>
| <transition name="ToUser" to="UserConfirm"></transition>
| </decision>
| <task-node name="UnitLeaderApprove">
| <task name="UnitLeaderUpdte" swimlane="unitleader"></task>
| <transition name="" to="UserConfirm"></transition>
| </task-node>
| ...
It is OK.
But I want to add a task node after the DepLeaderApprove node to realize the return to sender function.
This is the second sample:
<start-state name="start">
| <task name="NewApply" swimlane="proposer"></task>
| <transition name="" to="DepLeader"></transition>
| </start-state>
| <task-node name="DepLeaderApprove">
| <task name="DepLeaderUpdte" swimlane="depleader"></task>
| <transition name="" to="NeedUnitLeader"></transition>
| </task-node>
| <task-node name="Modify">
| <task name="ModifyApply" swimlane="proposer"></task>
| <transition name="" to="DepLeaderApprove"></transition>
| </task-node>
| <decision name="NeedUnitLeader">
| <handler class="com.test.action.NeedUnitleaderApproveHandler">
| </handler>
| <transition name="ToUnitLeader" to="UnitLeaderApprove"></transition>
| <transition name="ToUser" to="UserConfirm"></transition>
| </decision>
| <task-node name="UnitLeaderApprove">
| <task name="UnitLeaderUpdte" swimlane="unitleader"></task>
| <transition name="" to="UserConfirm"></transition>
| </task-node>
| ...
After I deploy this, when the DepLeader open the instance from home page on Node'DepLeaderApprove', an exception throw like this:
type Exception report
|
| message
|
| description The server encountered an internal error () that prevented it from fulfilling this request.
|
| exception
|
| javax.servlet.ServletException: Error calling action method of component with id _id1_5:_id4
| javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
| org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:55)
| org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
| org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
|
|
| root cause
|
| javax.faces.FacesException: Error calling action method of component with id _id1_5:_id4
| org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
| javax.faces.component.UICommand.broadcast(UICommand.java:106)
| javax.faces.component.UIData.broadcast(UIData.java:338)
| javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
| javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
| org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
| org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
| javax.faces.webapp.FacesServlet.service(FacesServlet.java:94)
| org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:55)
| org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
| org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
Anyone could tell me the reason? thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977785#3977785
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977785
19 years, 7 months
[JBoss Seam] - Facelets does not submit
by paul@xfact.nl
Hi,
I have a problem that i can't figure out.
I just got started with Seam and try to build a really simple form.
On the page there is a datatable and a button that calls a method on a stateless bean wich prints out a line.
The page works perfectly when using JSP, but when i try to replace JSP with Facelets things start to be strange.
The datatable is still working fine with Facelets, but the commandButton doesn't seem to do anything. The page reloads, but my bean's method is never called.
Thanks in advance.
This are the relevant files.
This JSP works fine:
| <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
| <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
| <f:view>
| <h:form>
| <h:messages />
| test
| <h:dataTable value="#{browseProducts.products}" var="product" >
| <h:column>
| <f:facet name="header">
| <h:outputText value="Product naam" />
| </f:facet>
| <h:outputText value="#{product.name}" />
| </h:column>
| <h:column>
|
| </h:column>
| </h:dataTable>
| <h:commandButton value="Edit" actionListener="#{browseProducts.edit}"/>
| </h:form>
| </f:view>
|
This facelet doesn't submit...
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:h="http://java.sun.com/jsf/html">
|
| <ui:composition template="/template.xhtml">
|
|
| <ui:define name="title">
| Browse Products test
| </ui:define>
|
|
| <ui:define name="body">
| <h:form id="helloForm">
| <h:messages/>
| <h:dataTable value="#{browseProducts.products}" var="product">
| <h:column>
| <h:outputText value="#{product.name}"/>
| </h:column>
| </h:dataTable>
| <h:commandButton type="submit" id="submit" actionListener="#{browseProducts.edit}" value="Submit" />
| <br/>
| </h:form>
| </ui:define>
|
|
| </ui:composition>
| </html>
|
Facelets template
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:h="http://java.sun.com/jsf/html">
| <head>
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
| <title>Facelets: Number Guess Tutorial</title>
| <style type="text/css">
| <!--
| body {
| font-family: Verdana, Arial, Helvetica, sans-serif;
| font-size: small;
| }
| -->
| </style>
| </head>
|
| <body>
| <h1>
| <ui:insert name="title">Default Title</ui:insert>
| </h1>
| <p>
| <ui:insert name="body">Default Body</ui:insert>
| </p>
| </body>
|
| </html>
|
Web.xml
<?xml version="1.0" encoding="UTF-8"?>
| <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
| http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
|
| <display-name>Seam Buy A Bike</display-name>
|
| <context-param>
| <param-name>org.jboss.seam.core.init.jndiPattern</param-name>
| <param-value>SeamBuyABike/#{ejbName}/local</param-value>
| </context-param>
| <!-- Seam -->
| <listener>
| <listener-class>
| org.jboss.seam.servlet.SeamListener
| </listener-class>
| </listener>
|
| <context-param>
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| <param-value>.xhtml</param-value>
| </context-param>
|
| <!-- Special Debug Output for Development -->
| <context-param>
| <param-name>facelets.DEVELOPMENT</param-name>
| <param-value>true</param-value>
| </context-param>
|
| <context-param>
| <param-name>org.jboss.seam.core.init.debug</param-name>
| <param-value>true</param-value>
| </context-param>
|
| <!-- Optional JSF-RI Parameters to Help Debug -->
| <context-param>
| <param-name>com.sun.faces.validateXml</param-name>
| <param-value>true</param-value>
| </context-param>
| <context-param>
| <param-name>com.sun.faces.verifyObjects</param-name>
| <param-value>true</param-value>
| </context-param>
| <servlet>
| <servlet-name>Seam Remoting</servlet-name>
| <servlet-class>
| org.jboss.seam.remoting.SeamRemotingServlet
| </servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Seam Remoting</servlet-name>
| <url-pattern>/seam/remoting/*</url-pattern>
| </servlet-mapping>
| <servlet>
| <servlet-name>Faces Servlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>*.seam</url-pattern>
| </servlet-mapping>
|
| <listener>
| <listener-class>
| org.apache.myfaces.webapp.StartupServletContextListener
| </listener-class>
| </listener>
|
| </web-app>
|
Faces config
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE faces-config
| PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
| "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
| <faces-config>
| <application>
| <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
| </application>
| <!-- A phase listener is needed by all Seam applications -->
|
| <lifecycle>
| <phase-listener>
| org.jboss.seam.jsf.SeamPhaseListener
| </phase-listener>
| </lifecycle>
|
| </faces-config>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977783#3977783
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977783
19 years, 7 months
[Installation, Configuration & Deployment] - Deployment of cfusion.war on gentoo(linux) jboss
by kevin_ingen
Members,
I have problems with deploying my cfusion.war i've generated with cf installation software. After reading a tutorial i decided to try to deploy my cfusion.war on Jboss. I was tolled that the cfusion.war contained everything i needed to run it so it was not necesarry to instal coldfusion on Jboss before the deployment. My coleque tested the cfusion.war on a Jrun/Tomcat install on windows and it worked.
I did it like this:
I've got Jboss installed on Linux Gentoo and i can reach my console.
In the directory var/lib/jboss/default/deploy/ i made a directory called cfusion.war.
I unzipped my cfusion.war and uploaded the two folders called WEB-INF and CFIDE.
In the folder WEB-INF i placed a file called jboss-web.xml wich contains <jboss-web>/cfusion</jboss-web>
When i tried to reach this in my browser al i saw was the CFIDE directory.
Could someone tell me what i did wrong and how to do it wright?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977780#3977780
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977780
19 years, 7 months