[JBoss Seam] - Re: Can Seam be configured to support JSP and Facelets in an
by dcshonda
Hi everyone,
I have a similar problem. I have tried your solutions, but it doesn´t work. My problem is that when I have a datatable in a portlet, and I want to see another page of the datatable, it redirect to faces/home.xhtml, and I don´t want that ir redirect to faces/... because I have my views in webapp directory.
Sorry very much, for my english.
Mi web.xml is as follows:
| <web-app 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"
| version="2.4">
|
| <description>JbossPortalBuscadorOperaciones</description>
|
| <context-param>
| <param-name>javax.portlet.faces.BridgeImplClass</param-name>
| <param-value>org.apache.myfaces.portlet.faces.bridge.BridgeImpl</param-value>
| </context-param>
|
| <!-- <context-param>
| <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
| <param-value>org.ajax4jsf.portlet.application.FaceletPortletViewHandler</param-value>
| </context-param>
| <filter>
| <display-name>Ajax4jsf Filter</display-name>
| <filter-name>ajax4jsf</filter-name>
| <filter-class>org.ajax4jsf.Filter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>ajax4jsf</filter-name>
| <servlet-name>Faces Servlet</servlet-name>
| <dispatcher>FORWARD</dispatcher>
| <dispatcher>REQUEST</dispatcher>
| <dispatcher>INCLUDE</dispatcher>
| </filter-mapping>-->
| <!-- Seam -->
|
| <listener>
| <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
| </listener>
|
|
| <servlet>
| <servlet-name>Seam Resource Servlet</servlet-name>
| <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Seam Resource Servlet</servlet-name>
| <url-pattern>/seam/resource/*</url-pattern>
| </servlet-mapping>
|
|
| <filter>
| <filter-name>Seam Filter</filter-name>
| <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Seam Filter</filter-name>
| <url-pattern>/*</url-pattern>
| </filter-mapping>
|
|
| <!-- JSF -->
| <!--<context-param>
| <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
| <param-value>NEKO,TIDY,NONE</param-value>
| </context-param>-->
| <!--<context-param>
| <param-name>org.ajax4jsf.xmlparser.TIDY</param-name>
| <param-value>/pages/repeater.xhtml,/pages/tabs.xhtml</param-value>
| </context-param>-->
|
| <context-param>
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>server</param-value>
| </context-param>
|
| <context-param>
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| <param-value>.xhtml</param-value>
| </context-param>
|
| <context-param>
| <param-name>facelets.DEVELOPMENT</param-name>
| <param-value>false</param-value>
| </context-param>
|
| <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>com.sun.faces.config.ConfigureListener</listener-class>
| </listener>
|
| <session-config>
| <session-timeout>30</session-timeout>
| </session-config>
|
| <welcome-file-list>
| <welcome-file>index.html</welcome-file>
| </welcome-file-list>
|
|
| </web-app>
|
If anyone can help me...
Thank you anyway.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112186#4112186
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112186
18 years, 4 months
[JBoss jBPM] - Re: How to integrate jBpm into EJB3 based application
by Deady
I replaced jsf libs with 1.2-b20-FCS (found here:
https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderI...
), now jbpm-console deploys ok, but I recieve this error when I go to http://localhost:8080/jbpm-console/:
| 12:01:37,265 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
| java.lang.NoSuchMethodError: javax.faces.application.ViewHandler.initView(Ljavax/faces/context/FacesContext;)V
| at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:124)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:266)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:132)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
| at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
| at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
| at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
| at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:315)
| at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:243)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| 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:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
| 12:01:37,266 WARN [FormAuthenticator] Unexpected error forwarding to login page
| javax.servlet.ServletException: javax.faces.application.ViewHandler.initView(Ljavax/faces/context/FacesContext;)V
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
| at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
| at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
| at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
| at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:315)
| at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:243)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| 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:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112182#4112182
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112182
18 years, 4 months
[JBoss Seam] - Re: Problems with contexts not being active
by bmc
I actually localize the problem. Error is show if I try to redirect from my servlet to seam page. If I do redirect to simple (not seam) JSP page - everything is ok.
| request.getRequestDispatcher("/seam/index.xhtml").forward(request, httpServletResponse);
|
I don`t know how to attach a file in this forum, so I`ll describe my steps to create a example application.
I took a seam example Blog application (it comes as example application with JBoss Seam sources) add my test servlet (TestServlet.java)
| package actions;
|
| import javax.servlet.http.HttpServlet;
| import javax.servlet.http.HttpServletRequest;
| import javax.servlet.http.HttpServletResponse;
| import javax.servlet.ServletException;
| import java.io.IOException;
| import org.jboss.seam.Component;
|
| public class TestServlet extends HttpServlet {
| protected void doGet(HttpServletRequest request, HttpServletResponse httpServletResponse) throws ServletException, IOException {
| TestAction testAction = (TestAction) Component.getInstance("testAction");
|
| request.getRequestDispatcher("/seam/index.xhtml").forward(request, httpServletResponse);
| }
| }
|
add TestAction.java
| package actions;
|
| import org.jboss.seam.ScopeType;
| import org.jboss.seam.annotations.Factory;
| import org.jboss.seam.annotations.In;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.annotations.Scope;
|
| @Scope(ScopeType.EVENT)
| @Name("testAction")
| public class TestAction {
| public String sayHi() {
| return "hallo, dude";
| }
| }
|
and modify web.xml file:
| <servlet>
| <servlet-name>TestServlet</servlet-name>
| <servlet-class>actions.TestServlet</servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>TestServlet</servlet-name>
| <url-pattern>/testservlet/*</url-pattern>
| </servlet-mapping>
|
| <filter>
| <filter-name>ContextFilter</filter-name>
| <filter-class>org.jboss.seam.web.ContextFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>ContextFilter</filter-name>
| <url-pattern>/testservlet/*</url-pattern>
| </filter-mapping>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112178#4112178
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112178
18 years, 4 months