[Tomcat, HTTPD, Servlets & JSP] - Re: JSF question
by n2
I have the same problem. I am using Jsf Implemantation from SUN, version is 1.1_02.
Same war file works fine with Tomcat 5.5 standalone.
Exception in der JBoss log is:
| 2007-02-07 12:04:10,378 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/beleg-web-0.9-SNAPSHOT].[jsp]] Servlet.service() for servlet jsp threw exception
| javax.servlet.jsp.JspException: No faces context?!
| at org.apache.myfaces.taglib.core.LoadBundleTag.doStartTag(LoadBundleTag.java:74)
| at org.apache.jsp.login.login_jsp._jspx_meth_f_loadBundle_0(org.apache.jsp.login.login_jsp:125)
| at org.apache.jsp.login.login_jsp._jspService(org.apache.jsp.login.login_jsp:86)
| at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
| at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| 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 com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
| at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
| at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
| at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
| 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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
| 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.java:744)
| 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:534)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012360#4012360
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012360
19Â years, 2Â months
[JBoss Seam] - Re: Who uses EntityHome objects?
by baz
I have reread the docs (chapter 10 for seam 1.1.5GA) many times.
My objects are never created because i do not know how to specify the ID.
If i use the old method (without namespaces) all is well.
@petermuir
To which paragraph in the docs do you reference?
What i like to do is described by you here:
http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamEntityHomeForLongRunningCont...
Is this possible only with components.xml and namespaces?
When i rewrite my example with namespaces it looks like:
| <factory name="bazExperiment" value="#{bazExperimentHome.instance}"/>
| <framework:hibernate-entity-home name="bazExperimentHome"
| entity-class="de.bafz.lims.model.Experiment"
| session="#{bazDatabase}"/>
|
I am not able to specify any Id in this case. Forbidden by the schema.
Which is the id of bazExperimentHome in this case?
With the configuration from above (earlier message) i can expose bazExperimentID into session context and get the same behaviour as you described in the wiki?
What will be the correct way to select an experiment?
By now i expose bazExperimentID with the selected experimentid to session scope. Is this the right way to do it?
Is it possible, that the schema definition has an error. Since, in the doc there is an paragraph, right to the beginning of chapter 10,
where the id is set.
But in practice, this results in an error.
Ciao,
Carsten
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012351#4012351
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012351
19Â years, 2Â months