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

  • Home
  • SEARCH
  • 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 8487811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:21:24+00:00 2026-06-10T21:21:24+00:00

JBoss AS7.1.1.Final with Spring 3.1.0 We are using the Spring MVC framework generated by

  • 0

JBoss AS7.1.1.Final with Spring 3.1.0

We are using the Spring MVC framework generated by Spring Roo.

We are having a problem with redirect URLs.

The following redirect code is generated by Roo and resides in an AspectJ file. It is an example for a redirect to the ‘show’ page after a save of data on the ‘create’ page is complete.

@RequestMapping(method = RequestMethod.POST)
public String RequestorController.create(@Valid Requestor requestor, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) {
if (bindingResult.hasErrors()) {
uiModel.addAttribute("requestor", requestor);
addDateTimeFormatPatterns(uiModel);
return "requestors/create";
}
uiModel.asMap().clear();
requestor.persist();
return "redirect:/requestors/" + encodeUrlPathSegment(requestor.getId().toString(), httpServletRequest);
}

Here is our JBoss AS7 standalone.xml connector configuration:

<connector name="ajp" protocol="AJP/1.3" socket-binding="ajp"/>
--> The URL Spring created was: ajp://servername/context/path

We tried this then:

<connector name="ajp" protocol="AJP/1.3" socket-binding="ajp" scheme="https">
--> The URL Spring created was: https://servername:80/context/path (Notice how the :80 is appended. So this was ALMOST RIGHT.)

One more try, we added the redirect port as 443…

<connector name="ajp" protocol="AJP/1.3" socket-binding="ajp" scheme="https" redirect-port="443">
--> Generated same thing, https://servername:80/context/path

What is going on with that :80 being appended?

Note: This worked fine in JBoss 4 and 5 likely because they are based on Tomcat connectors.

  • 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-10T21:21:25+00:00Added an answer on June 10, 2026 at 9:21 pm

    This ended up not to be the issue.

    The issue was we had not set up the proxy-port and proxy-name attributes for the element in JBoss AS7.

    It was never a Spring Roo issue.

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

Sidebar

Related Questions

I'm using Jboss AS 7.1.1.final and I'm trying to add an oracle Datasource: <datasource
I installed the Postgresql JDBC driver in JBoss AS7 using the deployment method by
I am new to JBOSS AS7, and am strictly using MAVEN 3 via command
I am trying to migrate my spring MVC based REST application to Jboss 7.1.0.
I am using jboss-as-7.1.0.Final-SNAPSHOT and trying to set up custom login module that uses
Working in JBoss AS7, using Conversation Scope to manage the user's interactions within a
I'm using Mac OS X Lion and just installed JBoss 7.1.0.AS. I'm having trouble
I'm trying to install Jboss 7.1.0-Final as a service using the Java service wrapper
I'm running JBoss AS7 in a standalone mode using ./standalone.sh. This binds JBOSS to
I'm using JBoss AS 7.1.1 and I'm having trouble getting my EJB 3.0 server

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.