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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:31:51+00:00 2026-05-14T01:31:51+00:00

I have an application which uses JSPs and Servlets and deployed on IBM-WASCE 2.1.

  • 0

I have an application which uses JSPs and Servlets and deployed on IBM-WASCE 2.1.
I want the application to use SSL for login purposes. Based upon the documentation, I added the following lines to web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">

        <!-- Usual servlet mapping code -->

  <security-constraint>
        <web-resource-collection>
            <web-resource-name>Login</web-resource-name>
            <url-pattern>/login.jsp</url-pattern>
            <http-method>GET</http-method>
            <http-method>POST</http-method>
        </web-resource-collection>
        <user-data-constraint>
            <transport-guarantee>CONFIDENTIAL</transport-guarantee>
        </user-data-constraint>
    </security-constraint>

However I get an error which states,

web.xml for web app
default/foo/1.0/car includes security
elements but Geronimo deployment plan
is not provided or does not contain
element
necessary to configure security
accordingly.

How to proceed from here? What elements to add to the file geronimo-web.xml?

  • 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-14T01:31:52+00:00Added an answer on May 14, 2026 at 1:31 am

    [Solved]

    The following modifications had to be done in the file geronimo-web.xml.

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1" xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1" xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1" xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1">
      <sys:environment>
        <sys:moduleId>
          ...
               <!-- Basic stuff -->
          ...
        </sys:moduleId>
    
    
      </sys:environment>
      <context-root>/foo</context-root>
    
      <security-realm-name>geronimo-admin</security-realm-name>
        <security>
            <default-principal>
                <principal name="anonymous" class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
                />
            </default-principal>
            <role-mappings>
                <role role-name="admin">
                    <principal name="administrators" designated-run-as="true" 
                    class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal"         
                    />
                    <principal name="root"
    class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
                    />
                </role>
            </role-mappings>
        </security>
    </web-app>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application which uses a Javascript-based rules engine. I need a way
I have an application which uses Active Directory intensively. I want to know if
I have an Android Application which uses JNI calls. Now i want this application
I have one application which uses the standard .NET forms authentication cookie, now I
I have a PHP web application which uses a MySQL database for object tagging,
We have an intranet asp.net web application which uses the OOTB ASP.net membership and
I have a problem with an application which uses the same stored procedure over
I have a problem with a little .Net web application which uses the Amazon
Background: I have an application written in native C++ which uses the wxWidgets toolkit's
We have an application (well, 3) which uses Oracle 9i, however this is being

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.