if only I could!  I agree wholly, but this is thrown via custom auth
setup and Flex 1.5.  I have two security roles defined in web.xml and
a login-config set with auth-method of basic.  In the flex config I
have
<use-custom-authentication>true</use-custom-authentication>
set on my remote objects.
There is no where for me to catch the excpetion thrown when a user
request tries to access a protected resource, the Flex app catches the
exception at the UI level and displays a login page.  The error i see
is

10/11 21:54:59 error Authentication failed: Login Failure: all modules ignored
jrun.security.JRunSecurityException: Authentication failed: Login
Failure: all modules ignored
        at 
jrun.security.JRunSecurityManagerService.authenticate(JRunSecurityManagerService.java:569)
        at 
jrun.security.JRunSecurityManagerService.isPrincipalInRole(JRunSecurityManagerService.java:495)
........

DK

On 2/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> You might also want to consider why an exception is being generated each
> time a user logs into an application. It's not considered best practice
> to throw exceptions for conditions that aren't exceptional; it is also
> not considered best practice to not catch and handle most exceptions. At
> the very least, you could catch this exception and generate a log
> message using Log4j. This would give you greater flexibility in your
> logging.
>
> Sam Greenfield
> Sports Illustrated
>
> -----Original Message-----
> From: Douglas Knudsen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 21, 2006 6:20 PM
> To: JRun-Talk
> Subject: Re: <servername>-err.log
>
> thanks, yes, that will handle <servername>-error.log,
> <servername>-warning.log, <servername>-info.log, and
> <servername>-debug.log.  Also <servername>-metrics.log if you have
> metrics enable.  But this doesn't touch <servername>-err.log nor
> <servername>-out.log, eh?
>
> DK
>
> On 2/21/06, Drew Falkman <[EMAIL PROTECTED]> wrote:
> > Look for the jrun.xml in the {jrun-root}/{server}/SERVER-INF
> directory. Then
> > do a search for the keyword "logging". You should see a section like
> this:
> >
> >
> >     <attribute name="errorEnabled">true</attribute>
> >     <attribute name="warningEnabled">true</attribute>
> >     <attribute name="infoEnabled">true</attribute>
> >     <attribute name="debugEnabled">false</attribute>
> >
> > Set them all to false. Or however you want to have it...
> >
> > This should do it. Good luck.
> >
> > -Drew Falkman
> > Team Macromedia: JRun
> >
> >
> >
> > -----Original Message-----
> > From: Douglas Knudsen [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, February 21, 2006 1:19 PM
> > To: JRun-Talk
> > Subject: <servername>-err.log
> >
> > ugh, where the heck can I change the settings on this log?  I'm
> > running a Flex app on JRun using custom auth.  Every time a user hits
> > the app an exception is logged into this -err.log and it is filling up
> > VERY rapidly.  How to turn off or put it on auto rollover like the
> > other logs, eh?
> >
> > --
> > Douglas Knudsen
> > http://www.cubicleman.com
> > this is my signature, like it?
> >
> >
> >
> >
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:8:5738
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/8
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:8
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.8
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to