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 7927261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:13:09+00:00 2026-06-03T19:13:09+00:00

jboss 5.1 I have an application(war) deployed to a proxied server. I put a

  • 0

jboss 5.1
I have an application(war) deployed to a proxied server.
I put a logout servlet in the jboss deploy directory and mapped it in server/default/deployers/jbossweb-deployer/web.xml so any deployed app could use it.
We want users to be able to access the site using the base url:

http://ourAwesomeSite/

vs the war name:

http://ourAwesomeSite/ourAwesomeApp.home.seam

To do this I added this to deploy/ROOT.war/index.html:

<META HTTP-EQUIV="Refresh" CONTENT="0; URL=/ourAwesomeApp"/>

But now my logout servlet no longer works correctly.

in the doGet method session is always null, so I can’t invalidate the session. Users logout, and their current session is not invalidated and anyone who logs in after(unless the browser is closed) gets the previous user’s session.
LogoutServlet:

    public void doGet(HttpServletRequest request,  HttpServletResponse response) throws java.io.IOException, 
                ServletException {
            System.out.println("**********************  logout servlet");

            HttpSession session = request.getSession(false);
// session is always null
            if (!this.isSessionInvalid(request) && session != null) {
                System.out.println("invalidating user session ... maybe");
                session.invalidate();

            }
            System.out.println("redirecting to SSO logout");
            response.sendRedirect("https://ssologoutpage/logout.html");

        }

server/default/deployers/jbossweb-deployer/web.xml entry and mapping:

<servlet>
      <servlet-name>LogoutServlet</servlet-name>
      <servlet-class>com.whatev.log.security.session.management.LogoutServlet</servlet-class>
     </servlet>
    <servlet-mapping>
      <servlet-name>LogoutServlet</servlet-name>
    <url-pattern>/web/logout.html</url-pattern>
    <url-pattern>/logout.html</url-pattern>
    </servlet-mapping>

I’m not sure how the request session is getting set to null. Anyone have any ideas?

  • 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-03T19:13:10+00:00Added an answer on June 3, 2026 at 7:13 pm

    You should be looking at Setting up Virtual Hosts rather than redirecting to another web-application page.Please find the Setup Virtual Hosts

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Spring application deployed in JBoss EAP server, using the following settings:
I have a web application deployed on a jboss server running on a unix
I have a web application running in a jboss application server (But it is
I'm trying to deploy some web services in a WAR application on JBoss 5.1.0.
Our application have several EARs deployed to a single JBOSS-AS. Every EAR uses SLF4J
I actually have an application deployed on a Tomcat server but in the future
I have an application server (JBoss, but this also happens in Tomcat) running as
I'm using: Hibernate MySQL jBoss I have to create an application that allows user
I have an Java application running in JBoss in which I have enabled JMX
I have JBoss AS 5. I'd like to see the default JSP that JBoss

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.