1 2 Previous Next 17 Replies Latest reply on Dec 7, 2005 5:20 AM by matthew.edwards Go to original post
      • 15. Re: SEAM Embedded EJB Tomcat 5.5
        matthew.edwards

        My homepage shows up. It has a jsf commandbutton on it. I click on the button and I get the error that I listed a few replies ago. If I start out by just typing in the url of the page with the JSF extension then the page loads without delay. Byt as soon as I press one of the buttons then I get the error again and I can not longer get any of the other pages back.

        I searched my project and I don't have anything like invalidate() in it.

        What is happening?

        - When I click on the button, it throws the error and stops the application from working.


        My application was working fine on the JBoss server...so it has to have something to do with my configuration files or how I placed my supporting jar files in the classpath.

        Gavin,
        If you could help me to know what files I need and where--just briefly--I would be more than happy to convert the Tomcat NoEJB demo app into a Tomcat YesEJB app and send it to you so you can use it for your Dec. distro. If you want.

        • 16. Re: SEAM Embedded EJB Tomcat 5.5
          gavin.king

          Sorry, I have never tried to get Seam working on Tomcat. Thomas has done it successfully, and he is currently working on updating the Seam example apps to reflect that.

          • 17. Re: SEAM Embedded EJB Tomcat 5.5
            matthew.edwards

            I think that I have my settings all correct and I have worked out all of the errors that I can. There is something happening that isn't showing up as an error that is stopping me. Here is the debug code:

            DEBUG 07-12 02:53:40,468 (LifecycleImpl.java:render:366) -exiting renderResponse in org.apache.myfaces.lifecycle.LifecycleImpl
            DEBUG 07-12 02:53:40,468 (FacesServlet.java:service:132) -service end
            DEBUG 07-12 02:53:42,328 (FacesServlet.java:service:99) -service begin
            DEBUG 07-12 02:53:42,328 (ServletExternalContextImpl.java:lookupCharacterEncoding:166) -Incoming request has Content-Type header without character encoding: application/x-www-form-urlencoded
            DEBUG 07-12 02:53:42,328 (LifecycleImpl.java:restoreView:103) -entering restoreView in org.apache.myfaces.lifecycle.LifecycleImpl
            DEBUG 07-12 02:53:42,328 (?:beginRequest:?) ->>> Begin web request
            DEBUG 07-12 02:53:42,328 (?:lookupInStatefulContexts:?) -found in application context: org.jboss.seam.core.manager.component
            DEBUG 07-12 02:53:42,328 (?:newInstance:?) -instantiating Seam component: org.jboss.seam.core.manager
            DEBUG 07-12 02:53:42,328 (?:lookupInStatefulContexts:?) -found in application context: org.jboss.seam.core.manager.component
            DEBUG 07-12 02:53:42,328 (JspStateManagerImpl.java:restoreTreeStructure:173) -Tree structure restored from server session
            DEBUG 07-12 02:53:42,328 (?:lookupInStatefulContexts:?) -found in event context: org.jboss.seam.core.manager
            DEBUG 07-12 02:53:42,328 (?:lookupInStatefulContexts:?) -found in application context: org.jboss.seam.core.manager.component
            DEBUG 07-12 02:53:42,328 (?:restore:?) -No stored conversation
            DEBUG 07-12 02:53:42,328 (?:lookupInStatefulContexts:?) -found in application context: org.jboss.seam.core.init
            DEBUG 07-12 02:53:42,328 (?:lookupInStatefulContexts:?) -found in application context: org.jboss.seam.core.init.component
            DEBUG 07-12 02:53:42,328 (?:restoreAnyConversationContext:?) -After restore view, conversation context: ConversationContext(4)
            DEBUG 07-12 02:53:42,328 (?:<init>:?) -Created BusinessProcessContext
            DEBUG 07-12 02:53:42,328 (LifecycleImpl.java:restoreView:173) -exiting restoreView in org.apache.myfaces.lifecycle.LifecycleImpl
            DEBUG 07-12 02:53:42,328 (LifecycleImpl.java:applyRequestValues:186) -entering applyRequestValues in org.apache.myfaces.lifecycle.LifecycleImpl
            DEBUG 07-12 02:53:42,328 (LifecycleImpl.java:applyRequestValues:213) -exiting applyRequestValues in org.apache.myfaces.lifecycle.LifecycleImpl
            DEBUG 07-12 02:53:42,328 (LifecycleImpl.java:processValidations:226) -entering processValidations in org.apache.myfaces.lifecycle.LifecycleImpl
            DEBUG 07-12 02:53:42,343 (?:resolveVariable:?) -resolving name: user
            DEBUG 07-12 02:53:42,343 (?:newInstance:?) -seam component not found: user
            DEBUG 07-12 02:53:42,343 (VariableResolverImpl.java:resolveVariable:336) -Variable 'user' could not be resolved.
            DEBUG 07-12 02:53:42,343 (?:resolveVariable:?) -could not resolve name
            DEBUG 07-12 02:53:42,359 (?:resolveVariable:?) -resolving name: user
            DEBUG 07-12 02:53:42,359 (?:newInstance:?) -seam component not found: user
            DEBUG 07-12 02:53:42,359 (VariableResolverImpl.java:resolveVariable:336) -Variable 'user' could not be resolved.
            DEBUG 07-12 02:53:42,359 (?:resolveVariable:?) -could not resolve name
            DEBUG 07-12 02:53:42,359 (LifecycleImpl.java:shouldRenderResponse:388) -exiting from lifecycle.execute in processValidations because getRenderResponse is true from one of the after listeners
            DEBUG 07-12 02:53:42,359 (LifecycleImpl.java:render:340) -entering renderResponse in org.apache.myfaces.lifecycle.LifecycleImpl
            DEBUG 07-12 02:53:42,359 (?:storeAnyConversationContext:?) -Before render response
            DEBUG 07-12 02:53:42,359 (?:lookupInStatefulContexts:?) -found in event context: org.jboss.seam.core.manager
            DEBUG 07-12 02:53:42,375 (?:lookupInStatefulContexts:?) -found in application context: org.jboss.seam.core.manager.component
            DEBUG 07-12 02:53:42,375 (?:store:?) -Discarding conversation state: 4
            DEBUG 07-12 02:53:42,375 (?:lookupInStatefulContexts:?) -found in event context: org.jboss.seam.core.manager
            DEBUG 07-12 02:53:42,375 (?:lookupInStatefulContexts:?) -found in application context: org.jboss.seam.core.manager.component
            DEBUG 07-12 02:53:42,375 (?:endRequest:?) -After render response, destroying contexts
            DEBUG 07-12 02:53:42,375 (?:endRequest:?) -flushing busines process context
            DEBUG 07-12 02:53:42,375 (?:flush:?) -no in-memory state to flush to jBPM context
            DEBUG 07-12 02:53:42,375 (?:flush:?) -no jBPM context to which to flush
            DEBUG 07-12 02:53:42,375 (?:endRequest:?) -destroying event context
            DEBUG 07-12 02:53:42,375 (?:lookupInStatefulContexts:?) -found in application context: org.jboss.seam.core.manager.component
            DEBUG 07-12 02:53:42,375 (?:destroy:?) -destroying: org.jboss.seam.core.manager
            DEBUG 07-12 02:53:42,375 (?:lookupInStatefulContexts:?) -found in event context: org.jboss.seam.core.manager
            DEBUG 07-12 02:53:42,375 (?:lookupInStatefulContexts:?) -found in application context: org.jboss.seam.core.manager.component
            DEBUG 07-12 02:53:42,375 (?:endRequest:?) -destroying conversation context
            DEBUG 07-12 02:53:42,375 (?:destroy:?) -destroying: org.jboss.seam.bpm.recoverableState
            DEBUG 07-12 02:53:42,375 (?:endRequest:?) -flushing server-side conversation context
            DEBUG 07-12 02:53:42,375 (?:lookupInStatefulContexts:?) -found in event context: org.jboss.seam.core.manager
            DEBUG 07-12 02:53:42,375 (?:lookupInStatefulContexts:?) -found in application context: org.jboss.seam.core.manager.component
            DEBUG 07-12 02:53:42,375 (?:endRequest:?) -<<< End web request
            DEBUG 07-12 02:53:42,390 (DebugUtils.java:traceView:142) -View after rendering
            ========================================
            <UIViewRoot id="NULL" family="javax.faces.ViewRoot" locale="en" renderKitId="HTML_BASIC" rendered="true" rendererType="NULL" rendersChildren="false" transient="false" viewId="/applications/login.jsp">
             <html.ext.HtmlMessages id="NULL" com.sun.facelets.MARK_ID="_tagId0" com.sun.facelets.APPLIED="com.sun.facelets.impl.DefaultFacelet$ApplyToken@145582" detailFormat="NULL" enabledOnUserRole="NULL" errorClass="NULL" errorStyle="NULL" family="javax.faces.Messages" fatalClass="NULL" fatalStyle="NULL" globalOnly="true" globalSummaryFormat="NULL" infoClass="NULL" infoStyle="NULL" layout="list" rendered="true" rendererType="org.apache.myfaces.Messages" rendersChildren="false" replaceIdWithLabel="false" showDetail="false" showSummary="true" style="NULL" styleClass="NULL" summaryFormat="NULL" title="NULL" tooltip="false" transient="false" visibleOnUserRole="NULL" warnClass="NULL" warnStyle="NULL"/>
             <html.HtmlForm id="frmRegister" com.sun.facelets.MARK_ID="_tagId1" com.sun.facelets.APPLIED="com.sun.facelets.impl.DefaultFacelet$ApplyToken@145582" org.apache.myfaces.renderkit.html.HtmlFormRendererBase.HIDDEN_COMMAND_INPUTS_SET="[frmRegister:_link_hidden_]" accept="NULL" acceptcharset="NULL" dir="NULL" enctype="application/x-www-form-urlencoded" family="javax.faces.Form" lang="NULL" onclick="NULL" ondblclick="NULL" onkeydown="NULL" onkeypress="NULL" onkeyup="NULL" onmousedown="NULL" onmousemove="NULL" onmouseout="NULL" onmouseover="NULL" onmouseup="NULL" onreset="NULL" onsubmit="NULL" rendered="true" rendererType="javax.faces.Form" rendersChildren="false" style="NULL" styleClass="NULL" submitted="false" target="NULL" title="NULL" transient="false">
             <html.HtmlCommandButton id="btnRegister" com.sun.facelets.MARK_ID="_tagId2" accesskey="NULL" action="" actionListener="NULL" alt="NULL" dir="NULL" disabled="false" family="javax.faces.Command" image="Themes/byuvad/body/forms/btnRegister.png" immediate="false" lang="NULL" onblur="NULL" onchange="NULL" onclick="NULL" ondblclick="NULL" onfocus="NULL" onkeydown="NULL" onkeypress="NULL" onkeyup="NULL" onmousedown="NULL" onmousemove="NULL" onmouseout="NULL" onmouseover="NULL" onmouseup="NULL" onselect="NULL" readonly="false" rendered="true" rendererType="javax.faces.Button" rendersChildren="false" style="NULL" styleClass="NULL" tabindex="NULL" title="NULL" transient="false" type="submit" value="NULL"/>
             </html.HtmlForm>
             <html.HtmlForm id="frmLogin" com.sun.facelets.MARK_ID="_tagId3" com.sun.facelets.APPLIED="com.sun.facelets.impl.DefaultFacelet$ApplyToken@145582" org.apache.myfaces.renderkit.html.HtmlFormRendererBase.HIDDEN_COMMAND_INPUTS_SET="[frmLogin:_link_hidden_]" accept="NULL" acceptcharset="NULL" dir="NULL" enctype="application/x-www-form-urlencoded" family="javax.faces.Form" lang="NULL" onclick="NULL" ondblclick="NULL" onkeydown="NULL" onkeypress="NULL" onkeyup="NULL" onmousedown="NULL" onmousemove="NULL" onmouseout="NULL" onmouseover="NULL" onmouseup="NULL" onreset="NULL" onsubmit="NULL" rendered="true" rendererType="javax.faces.Form" rendersChildren="false" style="NULL" styleClass="NULL" submitted="true" target="NULL" title="NULL" transient="false">
             <html.HtmlInputText id="username" com.sun.facelets.MARK_ID="_tagId4" accesskey="NULL" alt="NULL" converter="NULL" dir="NULL" disabled="false" family="javax.faces.Input" immediate="false" lang="NULL" localValue="NULL" localValueSet="false" maxlength="-2147483648" onblur="NULL" onchange="NULL" onclick="NULL" ondblclick="NULL" onfocus="NULL" onkeydown="NULL" onkeypress="NULL" onkeyup="NULL" onmousedown="NULL" onmousemove="NULL" onmouseout="NULL" onmouseover="NULL" onmouseup="NULL" onselect="NULL" readonly="false" rendered="true" rendererType="javax.faces.Text" rendersChildren="false" required="false" size="-2147483648" style="NULL" styleClass="NULL" submittedValue="" tabindex="NULL" title="NULL" transient="false" valid="false" validator="NULL" value="#{user.username}" valueChangeListener="NULL"/>
             <html.HtmlMessage id="msgUsername" com.sun.facelets.MARK_ID="_tagId5" errorClass="NULL" errorStyle="NULL" family="javax.faces.Message" fatalClass="NULL" fatalStyle="NULL" for="username" infoClass="NULL" infoStyle="NULL" rendered="true" rendererType="javax.faces.Message" rendersChildren="false" showDetail="true" showSummary="false" style="NULL" styleClass="NULL" title="NULL" tooltip="false" transient="false" warnClass="NULL" warnStyle="NULL"/>
             <html.HtmlInputText id="password" com.sun.facelets.MARK_ID="_tagId6" accesskey="NULL" alt="NULL" converter="NULL" dir="NULL" disabled="false" family="javax.faces.Input" immediate="false" lang="NULL" localValue="NULL" localValueSet="false" maxlength="-2147483648" onblur="NULL" onchange="NULL" onclick="NULL" ondblclick="NULL" onfocus="NULL" onkeydown="NULL" onkeypress="NULL" onkeyup="NULL" onmousedown="NULL" onmousemove="NULL" onmouseout="NULL" onmouseover="NULL" onmouseup="NULL" onselect="NULL" readonly="false" rendered="true" rendererType="javax.faces.Text" rendersChildren="false" required="false" size="-2147483648" style="NULL" styleClass="NULL" submittedValue="" tabindex="NULL" title="NULL" transient="false" valid="false" validator="NULL" value="#{user.password}" valueChangeListener="NULL"/>
             <html.HtmlMessage id="msgPassword" com.sun.facelets.MARK_ID="_tagId7" errorClass="NULL" errorStyle="NULL" family="javax.faces.Message" fatalClass="NULL" fatalStyle="NULL" for="password" infoClass="NULL" infoStyle="NULL" rendered="true" rendererType="javax.faces.Message" rendersChildren="false" showDetail="true" showSummary="false" style="NULL" styleClass="NULL" title="NULL" tooltip="false" transient="false" warnClass="NULL" warnStyle="NULL"/>
             <html.HtmlCommandButton id="btnLogin" com.sun.facelets.MARK_ID="_tagId8" accesskey="NULL" action="" actionListener="NULL" alt="NULL" dir="NULL" disabled="false" family="javax.faces.Command" image="Themes/byuvad/body/forms/btnLogin.png" immediate="false" lang="NULL" onblur="NULL" onchange="NULL" onclick="NULL" ondblclick="NULL" onfocus="NULL" onkeydown="NULL" onkeypress="NULL" onkeyup="NULL" onmousedown="NULL" onmousemove="NULL" onmouseout="NULL" onmouseover="NULL" onmouseup="NULL" onselect="NULL" readonly="false" rendered="true" rendererType="javax.faces.Button" rendersChildren="false" style="NULL" styleClass="NULL" tabindex="NULL" title="NULL" transient="false" type="submit" value="NULL"/>
             </html.HtmlForm>
            </UIViewRoot>
            ========================================


            It is almost like there is an error between the JSF component and the Seam component. Maybe an instiantion error--meaning the instance of the User class (from booking example) can't be created because it can't find it. Maybe it can't find it because it gets destroyed; or the session gets invalidated.

            I'm thinking there is a Seam setting that isn't getting set correctly by me and I can't figure it out--thats okay; I can wait until Thomas finishes the example app. I just want to know if the problem I am having above is a JNDI problem or a Seam problem. Can you tell from the information that I gave or should I submit more?

            Thank you for your help so far. I have been very impressed by how active you guys are in the forms and I have enjoyed learning about Seam very much.

            Cheers.

            1 2 Previous Next