[JBoss Seam] - Newbie Problem with Exception handling and pages.xml
by sheadley3228
I am new with seam and require a little bit of guidance. I am trying to handle application wide exceptions through the use of pages.xml and the <exception class> tags. If I forceably thow an exception in my application for testing purpose, with the following tag in my pages.xml:
<end-conversation/>
<redirect view-id="/views/admin/error.xhtml">
Database access failed
I get the following view which is incorrect:
500 Internal Server Error
Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
If I then use the following in my web.xml:
<error-page>
<error-code>500</error-code>
/views/admin/error.xhtml
</error-page>
I get the correct page displayed.
Why is this happenning? How could I maintain one place for all exceptions to be handled which allows all my exception messages to be shown?
My enviornment is OC4J, Seam, RichFaces.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113528#4113528
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113528
18 years, 4 months
[JBoss Seam] - Server.log and large tables
by hispeedsurfer
Hi,
in my application I can call a link to output a large table in a seperate browser window.
When I call this link the server.log grows up from 3.65 MB to 45 MB.
The table is build with richfaces datatabel and subtables and ~260 rows
What the reason for this server.log growing on large table. I don't see any helpful entries in the log.
here a short cutting from server.log
2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: reportDisplay
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor] ++++ LongLivedSessionPropagationInterceptor
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.reportDisplay
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.reportDisplay
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.this
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.this
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.method
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.method
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,299 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.parameters
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.parameters
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.component
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.component
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] trying to inject with hierarchical context search: facesMessages
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: org.jboss.seam.faces.facesMessages
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] trying to inject with hierarchical context search: entityManager
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: entityManager
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] trying to inject with hierarchical context search: geoMapData
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: geoMapData
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.web.parameters
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.web.parameters
| 2007-12-17 20:13:41,309 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.web.parameters
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113525#4113525
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113525
18 years, 4 months
[JBoss Seam] - Why is it that
by alllle
If I specify the following:
| @In(create=true, scope=XXXX-any scope here)
| private MyEntityClass bean;
|
I get a Seam exception that the "create=true" is not valid with the explicit scope. I don't understand the reasoning behind it. I am thinking it is common for the following scenario in a wep app:
1. The Action component is in the Conversation scope.
2. The Action component contains an component attribute, this attribute is needed for page scope only.
3. This component attribute need to be injected, its properties is updated via form post.
Therefore, it's desirable having this component attribute auto created in the Page scope when the Action component is called. But the above mentioned problem prevent me from doing this.
Any explanation? TIA.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113522#4113522
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113522
18 years, 4 months
[JBoss Seam] - Re: Identity.loggedIn and Session expiring
by b.reeve
Thank you for the answers.
anonymous wrote :
| Not yet implemented. This is the best way to do what you are AFAICS.
|
Does this mean that there are plans for adding this to future release?
anonymous wrote :
| Null in JSF means stay on the same page.
|
But I am getting the page navigated according to some rule (defined in pages.xml) when the return type is null.
| 1. Also, Is there a way I can disable Seam from adding the default seam messages to FacesMessage apart from giving a value for that key in the resource bundle?
|
| 2. Is there some way to do something like,
|
| pages.xml
|
| | <page view-id="/login.xhtml" >
| | <navigation from-action="#{identity.login}" >
| | <rule if="#{identity.loggedIn} >
| | <evaluate="#{loginBean.navigation}" >
| | <rule if-outcome="pageA" >
| | <redirect view-id="/pageA.xhtml" />
| | </rule>
| | <rule if-outcome="pageB" >
| | <redirect view-id="/pageB.xhtml" />
| | </rule>
| | <rule if-outcome="landing" >
| | <redirect view-id="/index.xhtml" />
| | </rule>
| | </evaluate>
| | </rule>
| | </navigation>
| | </page>
| |
|
| so that my evaluate would be evaluated only if certain condition is met and not always.
|
| Thanks again for helping!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113514#4113514
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113514
18 years, 4 months