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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:28:09+00:00 2026-05-16T03:28:09+00:00

I have what I think is a bizarre problem. With the same mapping to

  • 0

I have what I think is a bizarre problem.

With the same mapping to a servlet, one url works, and the other doesn’t:

    <servlet-mapping>
    <servlet-name>UL_Admin</servlet-name>
       <url-pattern>/universal_listings_administration/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
      <servlet-name>Create_New_Site</servlet-name>
      <url-pattern>/universal_listings_administration/sites/new_site/*</url-pattern>
    </servlet-mapping>
   <servlet-mapping>
    <servlet-name>Create_New_Site</servlet-name>
    <url_pattern>/universal_listings_administration/sites/delete_site/*</url_pattern>
   </servlet-mapping>

Create_New_Site works for /universal_listings_administration/sites/new_site/* but not for /universal_listings_administration/sites/delete_site/*

When going to /universal_listings_administration/sites/delete_site/* the site simply goes to the UL_Admin!!!

I’ve changed the ordering of the urls, but get the same results. I’ve tried this on different browsers, thinking it could be a caching problem, but get the same results every time.

Does anyone have any idea about what’s going on here???

The only other thing that I think it could be is my filters or something? I’ve had a look but everything seemed to be working fine with the filters. Anyway here’s my security and filter settings in web.xml

    <security-constraint>
        <web-resource-collection>
            <url-pattern>/universal_listings_administration/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>admin</role-name>
        </auth-constraint>
    </security-constraint>
    <security-constraint>
        <web-resource-collection>
            <url-pattern>/jsps/admin/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>admin</role-name>
        </auth-constraint>
    </security-constraint>
    <security-constraint>
        <web-resource-collection>
            <url-pattern>/stylesheets/admin/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>admin</role-name>
        </auth-constraint>
    </security-constraint>

    <!-- Filters -->
     <filter>
  <!-- This filter defines all of the URIs on the site, to ensure easy to update URIs -->
  <!-- All URIs defined here will be added to the request's Attributes -->
  <!-- The URIs follow naming convention uri-name or uri-admin-name -->
  <!-- For simplicity sake, do this only for client URIs (internal can be covered by eclipse!) -->
  <filter-name>UriSettingFilter</filter-name>
  <filter-class>nz.co.unilistings.control.UriAttributeSettingFilter</filter-class>
  <init-param>
   <param-name>uri-admin-portal</param-name>
   <param-value>/universal_listings_administration/</param-value>
  </init-param>
  <init-param>
   <param-name>uri-admin-new-site</param-name>
   <param-value>/universal_listings_administration/sites/new_site/</param-value>
  </init-param>
  <init-param>
   <param-name>uri-admin-delete-site</param-name>
   <param-value>/universal_listings_administration/sites/delete_site/</param-value>
  </init-param>
 </filter>
 <filter>
     <filter-name>SubdomainFilter</filter-name>
     <filter-class>nz.co.unilistings.control.SubdomainFilter</filter-class>
     <init-param>
   <description>Any subdomain with this value will go to the parent site</description>
   <param-name>parent_site_subdomain</param-name>
   <param-value>www</param-value>
  </init-param>
     <init-param>
   <description>The URL of the parent site (where people can register)</description>
   <param-name>parent_url</param-name>
   <param-value>http://www.example.com:8888</param-value>
  </init-param>
 </filter>

 <filter-mapping>
    <filter-name>SubdomainFilter</filter-name>
    <servlet-name>*</servlet-name>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
 </filter-mapping>  
 <filter-mapping>
  <filter-name>UriSettingFilter</filter-name>
  <servlet-name>*</servlet-name>
  <dispatcher>REQUEST</dispatcher>  
  <dispatcher>FORWARD</dispatcher>
  <dispatcher>INCLUDE</dispatcher>
  <dispatcher>ERROR</dispatcher>
 </filter-mapping>

An update:

I did some debugging, I am certain that I’m going to the correct URL, (copy, paste from web.xml), and Here’s what I get in the request when it hits the first filter (comparing create_site and delete_site:

create_site:
http://www.example.com:8888/universal_listings_administration/sites/new_site/
_pathInfo: “/”
_requestURI: “/universal_listings_administration/sites/new_site/”
_servletPath: “/universal_listings_administration/sites/new_site”
_uri: “/universal_listings_administration/sites/new_site/”

delete_site:
http://www.example.com:8888/universal_listings_administration/sites/delete_site/
_pathInfo: “/sites/delete_site/”
_requestURI: “/universal_listings_administration/sites/delete_site/”
_servletPath: “/universal_listings_administration”
_uri: “/universal_listings_administration/sites/delete_site/”

I guess now I have to figure out why the _pathInfo and _servletPath are quite different…

  • 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-05-16T03:28:09+00:00Added an answer on May 16, 2026 at 3:28 am

    The mappings look fine. The symptoms at least indicate that either the actual URL was wrong or some filter or servlet has changed the request/response destination before or after the servlet was reached.

    This issue is hard to nail down without debugging/logging all the servlets and filters to track the execution path of the HttpServletRequest instance throughout the code. And since we don’t have access to your code/environment to reproduce the problem, this task is entirely up to you.

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

Sidebar

Related Questions

I think I have a problem with casting. $db = mysqli_connect('127.0.0.1','root','password','test'); if (! $db)
I think I have a big problem. I have a two projects solution. First
I think I have a synchronization problem...It may be too basic..Please help.. I have
I think I have a problem in understanding the proper way of using MVC.
I have 2 projects, one of them is included in the other one build
I have a bizarre problem that is doing my head in. I have the
I have had all sorts of bizarre errors, like the one in the title,
Hello I have a bizarre problem with sprintf . Here's my code: void draw_number(int
This is going to sound quite bizarre. I have one ASP .NET MVC 2
I have a bizarre problem: I want to start an android emulator and at

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.