Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Template ADF app - what web.xml error-codes do you include for ADF applications?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chris Muir  
View profile  
 More options Oct 2, 12:57 pm
From: Chris Muir <chriscm...@gmail.com>
Date: Thu, 1 Oct 2009 19:57:00 -0700 (PDT)
Subject: Template ADF app - what web.xml error-codes do you include for ADF applications?
Hi all

At my current client we've been working on building an ADF Fusion
application template that includes bits 'n' bobs required for all of
our applications beyond what JDev creates out of the box via the
Application Wizard.  For example by default we setup our package
structures in the Model and ViewController projects (ie. the Model is
split into AM/EO/VO packages), page templates and skins in our
ViewController and so on.

We'd also like to consider standard HTTP error pages.  Readers will be
familiar that the JEE web.xml supports an "error-page" option for
capturing certain HTTP error codes (ie. 404 Page Not Found) and
redirecting to an appropriate error page (ie. your equivalent of an
ADF fail-whale page ;-).

A question to readers is what HTTP error codes have you found
necessary, if at all, to configure in the web.xml for an ADF
application?

Currently we see the need for a 404 Page Not Found custom page, plus
for secure applications a 403 Forbidden, but aren't overly sure what
other HTTP error codes (http://www.w3.org/Protocols/rfc2616/rfc2616-
sec10.html) should we include?  What other HTTP error codes are likely
to occur in an ADF application?  Maybe 408 Request Timeout?

Anybody any thoughts they'd like to share please?

Cheers,

CM.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Avrom Roy-Faderman  
View profile  
 More options Oct 2, 1:52 pm
From: "Avrom Roy-Faderman" <av...@avromroyfaderman.com>
Date: Thu, 1 Oct 2009 20:52:41 -0700
Local: Fri, Oct 2 2009 1:52 pm
Subject: Re: [ADF Enterprise Methodology Group] Template ADF app - what web.xml error-codes do you include for ADF applications?
Hi Chris,

Are you only interested in covering errors in the 4xx range (user errors)?
To be on the safe side, I'd include a 500 error page. Among other things,
you can display a time stamp (somewhere not too intrusive but that your
customer support reps could ask a user about) that you can match up with
the logs to help kill bugs. Of course, you might want to only enable this
in your production environment; the stack trace you can configure your
development servers to return is more useful still.

My thought is that that, plus your list, is enough to cover.

While 401 is the proper error code for an authorization failure, I don't
think ADF security ever returns it; it (incorrectly, IIUC) returns 403 for
authorization failures (403's supposed to be for attempts to access
resources that aren't open to *anyone* via the protocol, such as directory
listings when directory browsing is turned off). Of course, you might want
to make your 403 page cover 401 too, in case the issue ever gets fixed.

408 might be important if, say, you allow the user to upload large files.
Otherwise, normal requests probably won't time out frequently. (This is
not to be confused with browser-based *response* timeouts, which can
happen any time your server is slow.)

Best,
Avrom

--
Avrom’s Java EE and Oracle ADF Blog
http://www.avromroyfaderman.com

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Haslam  
View profile  
 More options Oct 2, 2:03 pm
From: Simon Haslam <Sim...@veriton.co.uk>
Date: Thu, 1 Oct 2009 21:03:58 -0700 (PDT)
Local: Fri, Oct 2 2009 2:03 pm
Subject: Re: Template ADF app - what web.xml error-codes do you include for ADF applications?
Chris

A slightly wider consideration is that if you're deploying to the web
and have a separate web tier (e.g. OHS) then you'll want at least a
404 page at that level too (in case your user hasn't even reached the
app server - of course if you're running as the root app then that may
not matter so much).

Good things for a 404 page are a "report this link as broken"
function, or if it's a more general web app perhaps a redirect to a
search page; though just a logo/message is better than leaving it as
default.

Simon

On Oct 2, 3:57 am, Chris Muir <chriscm...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrejus Baranovskis  
View profile  
 More options Oct 2, 2:19 pm
From: Andrejus Baranovskis <andrejus.baranovs...@gmail.com>
Date: Fri, 2 Oct 2009 07:19:09 +0300
Local: Fri, Oct 2 2009 2:19 pm
Subject: Re: [ADF Enterprise Methodology Group] Re: Template ADF app - what web.xml error-codes do you include for ADF applications?

Hello,
We are configuring error page activity in ADF Task Flow for this purpose,
users are safe from seeing errors in the browser then.

Regards,
Andrejus

2009/10/2 Simon Haslam <Sim...@veriton.co.uk>

--
Oracle ACE Director

My Blog - http://andrejusb.blogspot.com/
My JDev/ADF Samples list - http://andrejusb-samples.blogspot.com/


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Muir  
View profile  
 More options Oct 3, 4:40 pm
From: Chris Muir <chriscm...@gmail.com>
Date: Fri, 2 Oct 2009 23:40:46 -0700 (PDT)
Local: Sat, Oct 3 2009 4:40 pm
Subject: Re: Template ADF app - what web.xml error-codes do you include for ADF applications?
Andrejus, correct me if I'm wrong, but I thought Task Flow error pages
were for JBO errors only.  Can they capture HTTP errors too?

CM.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrejus Baranovskis  
View profile  
 More options Oct 3, 5:37 pm
From: Andrejus Baranovskis <andrejus.baranovs...@gmail.com>
Date: Sat, 3 Oct 2009 10:37:17 +0300
Local: Sat, Oct 3 2009 5:37 pm
Subject: Re: [ADF Enterprise Methodology Group] Re: Template ADF app - what web.xml error-codes do you include for ADF applications?

Hi Chris. Not only, framework use error page activity, when for example Task
Flow authorization fails.
Andrejus

2009/10/3 Chris Muir <chriscm...@gmail.com>

> Andrejus, correct me if I'm wrong, but I thought Task Flow error pages
> were for JBO errors only.  Can they capture HTTP errors too?

> CM.

--
Oracle ACE Director

My Blog - http://andrejusb.blogspot.com/
My JDev/ADF Samples list - http://andrejusb-samples.blogspot.com/


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google