-
1. Re: Exception fallback isn't caught
norman May 27, 2009 6:07 PM (in response to cash1981)You are in debug mode.
-
2. Re: Exception fallback isn't caught
gonorrhea May 28, 2009 12:50 AM (in response to cash1981)So how do you determine you are in debug mode? By navigating to /debug.seam?
In components.xml, I have the following:
<core:init debug="@debug@" jndi-pattern="@jndiPattern@"/>
If Shervin hard-codes as follows:
<core:init debug="false" jndi-pattern="@jndiPattern@"/>
would that solve his problem or is there any other configs you need to do?
I believe that the variables are specified in the components.properties file but there was a JIRA at one time or another about whether or not the values were being replaced during Ant build of EAR or dynamically read from props file.
Either way, if you hard-code it like I show above, shouldn't that take you out of debug mode?
-
3. Re: Exception fallback isn't caught
gonorrhea May 28, 2009 12:59 AM (in response to cash1981)Well, I was right. The /debug.seam is not found when you do:
<core:init debug="false" jndi-pattern="@jndiPattern@"/>
@poster: there is a isDebug() method in org.jboss.seam.core.Init class. Call that postInit to see if Norman is correct.
Use this in components.xml:
<event type="org.jboss.seam.postInitialization"> <action execute="#{foo.bar}"/> </event>
or a @Startup/@Create method, etc.
-
4. Re: Exception fallback isn't caught
cash1981 May 28, 2009 9:43 AM (in response to cash1981)Thanks Arbi.
I am using @debug@ and ant task. I will try to hardcodefalse
and also try a isDebug. Thanks for the tip. I will report back. -
5. Re: Exception fallback isn't caught
cash1981 May 28, 2009 10:05 AM (in response to cash1981)Norman: I am definetly NOT running in debug mode as I just tested what Arbi wrote and the output was:
28 May 09 09:55:07, ERROR my.package.dao.DebugMode:foo:13 Are you in debug mode? false
So again to my question. Why does the Generated by Facelets exception appear? And Why doesnt pages.xml catch that and redirect to /error.xhtml
-
6. Re: Exception fallback isn't caught
cash1981 May 28, 2009 11:07 AM (in response to cash1981)Can it be because of this in web.xml?
<context-param> <param-name>facelets.DEVELOPMENT</param-name> <param-value>true</param-value> </context-param>
-
7. Re: Exception fallback isn't caught
cash1981 May 28, 2009 11:16 AM (in response to cash1981)I can confirm that that was the case.
I feel stupid now :-) -
8. Re: Exception fallback isn't caught
gonorrhea May 28, 2009 5:18 PM (in response to cash1981)It would be nice if there was one global debug setting, not one for Seam, one for Facelets, one for foo...