Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9126665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:05:36+00:00 2026-06-17T07:05:36+00:00

I use Tomcat 7 and Lo4j for all my server logs and GWT for

  • 0

I use Tomcat 7 and Lo4j for all my server logs and GWT for client (only AJAX calls).
All my unhandled exceptions get logged in my catalina.log.

Now I want to catch all exceptions and add some of the user’s specific Tomcat SessionData.

There are several ways:

  • Try catch over all servlets (there must be a better solution).
  • http://tomcat.apache.org/tomcat-7.0-doc/aio.html: I would have to change my connecter, and I don’t know if I could use the Tomcat Session within the Event Handler (EventType.ERROR).
  • Better way?

What would be the best way to achieve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T07:05:37+00:00Added an answer on June 17, 2026 at 7:05 am

    Just Overriding the GWT function doUnexpectedFailure worked.

    @Override
    protected void doUnexpectedFailure(Throwable t) {
      ServerLog.error(t.getMessage(), t);
      super.doUnexpectedFailure(t);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use tomcat server in development mode with GWT. When I use
Java EE application servers provide all the features of tomcat, so why use tomcat
I try to get Tomcat to use BoneCP as a connection pool because DBCP
How Can I use my system as a tomcat server ? Like tomcat server
I use SpringSource Tool Suite 3.0.1, Tomcat server 7.0.21, maven-2.2.1. I successfully built my
suppose, I use Tomcat as a web container. Is it true that once all
I am trying to use Tomcat 6.0 as a web development server within SpringSource
I use tomcat-maven-plugin to deploy my war to a server. What I have to
I use tomcat for my server side with Mysql Server 5.5. i use Spring
My application runs on a remote server. I use tomcat to deploy the web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.