HTTP Error 400 on Tomcat 5.0.28 and JAAS

Hi
I have this problem every time I send an Authentication Request using JAAS. I've a login form and, after I send my request, LoginModule starts to process it. The problem is that, viewing the tomcat log output, the authentication goes well, but Tomcat send me a HTTP error code 400 which means "Invalid direct reference to form login page".
If I reload the login form, not back button, and retype my credentials, I reach to enter in my website. Tomcat send me a HTTP code 302, then load my home page.
This is the login HTTP message:
POST /j_security_check HTTP/1.1
Host: localhost:1999
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://localhost/xxxx/index
Cookie: JSESSIONID=8F91E0B617B45C1BC772E370481C8FCF
Content-Type: application/x-www-form-urlencoded
Content-Length: 65
j_username=user&j_password=pass&Submit=LoginAnd this is the login form:
<form method="post" action ="j_security_check" name="loginform" >
  <table width="100%" cellpadding="2" cellspacing="0" class="corpo">
     <tr>
      <td><div align="right">Username</div></td>
      <td width="20%"><input type="text" class="corpo" name="j_username" /></td>
    </tr>
    <tr>
      <td><div align="right">Password</div></td>
      <td width="20%"><input type="password" class="corpo" name="j_password" /></td>
    </tr>
    <tr>
      <td> </td>
      <td><div align="right">
         <input type="submit" class="bottone" name="Submit" value="Login" /><br />
           <a href="javascript:apriFinestra('<%= request.getContextPath() %>/jsp/password.jsp', '', '400px', '400px');" class="corpo"><%=lu.resource(rb, "HOME.forgot") %> </a>
      </div></td>
    </tr>
  </table>
</form>

There've been issues when running in the embedded OC4J server where logged messages don't appear at all - I suspect this is happening on both environments, but you're only seeing the message on Tomcat.
If you look in the HTML, you'll see a <!-- ILLEGAL HTML: --> comment where the problem occurs, and you should be able to trace that content back to the components you're using at that spot. Could you let us know what combination of components produces this error? (The problem is exactly what the error message says: HTML does not allow <img> directly inside of <table>, but that's what got produced.)

Similar Messages

  • I click on a link inside an email and it won't open so I can print the coupon, response is http error 400 or I have it blocked. Others in my area aren't having any problems with the same link opening but they are using IE. What's up with Firefox?

    gohollywood.com, register, message came back from Hollywood Insider with a link to click on to "Download Coupon". Click on link and you should get the coupon and you print it out. All my friends have done it but I can't. I get various error messages including : "HTTP error 400 - the request is badly formed".... or you have a blocker set.....
    Unless it is a Gmail/Firefox blocker or firewall, I don't have anything set up as a blocker on my email. Had a few friends go in my account on their computers and they had the same thing happen. However when they go in under their names they get to the link with no problems. HELP.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • I am getting an error Bad Request Request too long HTTP Error 400. The size of the request headers is too long.

    When I sign into Methodintegration.com my data base I can get in ok. When I sign out I get the following error: I am getting an error Bad Request Request too long HTTP Error 400. The size of the request headers is too long. If I close Fire Fox and go back in it will work one time and then I get the same error message.

    That is usually a problem with corrupted cookies.
    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"

  • HTTP Error 400 with BC adapter

    Hi,
    does anyone have experience with the BC (business connector) adapter in XI. We have a sender BC compatible system that sends IDocs over HTTPS to our BC today. BC forwards these IDocs to our R/3 backend. Now we want to migrate from BC to XI. Therefore I set up a sender BC adapter. But when a message comes in via HTTPS to the adapter XI responds HTTP Error 400 which means 'Bad request, not understood by server'. When I check the logs of XI I find the following:
    Could not parse payload body due to com.sap.aii.af.ra.ms.api.MessageFormatException: unexpected document: DOC_TYPE_GENERAL_PLAIN#
    Any ideas what's wrong?

    Hi there,
    Many thanks for your reply.
    This notes is not applicable to our Portal Version (NW04).
    Any others ideas?
    Best regards,
    João Macedo

  • If I access the website of Cebu Pacific I get as reply upon entering a search request "HTTP Error 400. The size of the request headers is too long.", but if i use private browsing i do not get this reply. How do i resolve that?

    If I access the website of Cebu Pacific Air I get as reply upon entering a search request "HTTP Error 400. The size of the request headers is too long.", but if i use private browsing i do not get this reply. This refers to Firefox 5.0 on ubuntu 11.04
    I have tried to resolve this through deleting history and the cookies, but i always get the same reply. Although if i use firefox (ubuntu) private browsing or Firefox on Windows 7 i do not get this error message.
    What causes this error and how do i resolve this?

    Copied from the link mentioned below.
    ''That is usually a problem with corrupted cookies. Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies" ''
    https://support.mozilla.com/en-US/questions/785186?s=http+error+400&as=s
    Check and tell if its working.

  • Http error 400 - bad request when calling external webservice

    I have a problem connecting OSB to webservices exposed by Lotus Domino Server.
    When I test the services with XMLSpy, it works fine. I started a project in OSB, and imported WSDL files from the server url. So far it worked. I built the corresponding Business services. When I tried to test these business services, i got error 400 from the domino server.
    Does anyone have an idea to fix this problem?
    My response document:
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <soapenv:Fault>
    <faultcode>soapenv:Server.generalException</faultcode>
    <faultstring>org.xml.sax.SAXParseException: Korai fájlvége.</faultstring>
    <detail/>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>HTTP/1.1 400 Bad Request
    Server: Lotus-Domino
    Date: Sat, 09 May 2009 19:57:19 GMT
    Connection: close
    Pragma: no-cache
    Cache-Control: no-cache
    Expires: Sat, 09 May 2009 19:57:19 GMT
    Content-Type: text/html
    Content-Length: 161
    <HTML><HEAD><TITLE>Unable to Process Request</TITLE></HEAD><BODY><P>Http Status Code: 400</P><P>Reason: Unknown or unsupported protocol version</P></BODY></HTML>

    Yes, the problem should be in the request, but in the test console the request document looked fine.
    I tried the following:
    I tested the service with XMLSpy. I took the soap envelope generated, and pasted it into the business service test console. Then the payload should be the same in both cases, but it does not work.

  • I get "HTTP Error 400. The request is badly formed." when trying to access a URL that I have accessed previously in the day and works OK with IE.

    Hi
    I accessed the site earlier in the day but when I came back to it I got the above message. Tried to access the site in IE and all worked fine. Tried disabling DNS prefetch and clearing out history but to no avail. I ran a virus scan but with no threat detected.

    That issue can be caused by corrupted cookies.
    *http://kb.mozillazine.org/Cookies
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"

  • Content Server - HTTP Error 400

    Good morning. I've just installed Apache and Content Server. I've created my Content Repositories in SAP and everything checks out Online in CSADMIN and via SE38 - Report RSCMST.
    However, from the Browser when I enter: http://<hostname>:1090/ContentServer/ContentServer.dll?serverinfo
    I'm getting an HTTP 400 page not found error.
    This is installed on Unix - AIX 5.3 - Content Server Version 6.30
    Apache is working as I get a web page and I get the "Parent" directory when I enter only: http://<hostname>:1090
    Any ideas ?

    Our Content Server is installed on a Standalone system. It's not on the same host as the SAP systems we're connecting to.
    Yes, I'm able to create Content repositories and that's how I have them defined in CSADMIN. I created the CR's in OAC0 and then specified them in CSADMIN and done further configuration to them there. Our users have been able to use the CR defined in CSADMIN to archive data into the Content Server.
      My CDADMIN definition is online, active and working,,, All green lights and being used. So I'm getting my error when I attempt
    to access via http://<ContenServer_Hostname>:1090/ContentServer/ContentServer.dll?serverinfo.
    Here's my CDADMIN definistion for My CR:
    Content Repository: CS
    HTTP Server: sap01dad.<client>.com   This is my Content Server Hostname,,, Not the SAP system where it's defined in CSADMIN
    Port: 1090
    HTTP Script: ContentServer/ContentServer.dll
    Version: 0046

  • HTTP Error 400 when trying to view a report

    We use MS Dynamics CRM 2013 SP 1 Rollup 2 on Windows Server 2012 and separate SQL Server 2012 on Windows Server 2012 as well.
    Only one user is affected by the issue. Other users with exactly the same Security Roles in CRM and Groups in Active Directory are not affected whatsoever. I've read that this issue may occur if the user is a member of too many groups in AD but in this case
    it's only 7 groups.
    This is the second time the issue occures with the same user. The first time it was resolved by deactivating/activating the user in AD. Not this time, unfortunatly.
    I have no more ideas what to try and where to look. Help would be greatly appreciated.

    Hi,
         Have you checked the DNS entry for this particular user? Few things you can try from following link:
    http://www.getnetgoing.com/HTTP-400.html
    Hope this helps.
    Minal Dahiya
    blog : http://minaldahiya.blogspot.com.au/
    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

  • What does "HTTP Error 400. The request is badly formed." mean?

    Typed a web address and get above message. Another family member uses Firefox but does not get this error when entering the same address. Tried to restart with add-ons disabled but did not work.

    Please post the link in question. There could be several reasons the
    link does not work for you. Mal-ware, restrictions, censorship''' . . . . .'''

  • I get the error: HTTP Error 400. The request is badly formed.

    I am running Windows XP Professional. This seems to happen on most websites with the exception of search engines and Firefox Support sites.

    "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"<br />
    "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"<br />
    <br />
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]<br />

  • Tomcat / Glassfish Session Synchronization and JAAS

    Hi there!
    How does session synchronzation between Tomcat and Glassfish work?
    For example, if there are two users at the same time, each one has it's own webserver session and both are working on the same stateful java bean (e.g. a simple shop cart), how are both sessions - the webserver and application server session - synchronized? Any form of synchronization has to take place, otherwise a cart bean would be senseless, as there were unwanted interactions between both clients. Are there any hidden tokens that are send via JNDI Lookup?
    It's the same with JAAS: If there's a programmatic login on the application server, how does the application memorize the user's privileges and principal, in particular if there's a server cluster? Is there intern a simple stateful bean? And how does the mapping between websession and application server session work? Is it really reliable?
    Hope you can help me. It's quite hard to find detailed and solid documentation concerning this topic.
    Thanks!

    Hi,
    Can you provide a solution that does not include JSTL, as I can not use this technology as it is not in scope for the DEV environment defined for these projects I am working on.
    regards,
    Pravash

  • On Firefox 3.6.x on Mac and Windows, Google Analytics tracking code leads to an Error 400 page

    Our business sent out an email campaign that has several links containing Google Analytics tracking code in the URL.
    In the tracking code, which is automatically generated via the email campaign software, is an em-dash. The URLs works in every browser (Google Chrome, Safari, Windows) and in older versions of FireFox. They do not work in 3.6.x versions of FireFox in both Mac and Windows.
    As a result, when customers click on a link in the email, they get a page that says "HTTP Error 400 - request is badly formed" because FireFox interprets the em-dash as garbage.
    Once this error occurs none of the pages in the site can be accessed unless a specific cookie is removed.
    Seeing how many people do not know how to clear cookies - it is especially cryptic in the Windows version of FF 3.6.10 - what are the chances that there will be a release of Firefox to remedy this problem? And is there anything else that could be done?

    Weird. We are having this same problem as well. Ours happens in Chrome as well. What I have figured out is -at least for us - is its somethign to do with the Google Analytics tracking cookie on our site. If I go to cookies and then delete the _umtz cookie, the site will load fine. In the time being I have set "pageTracker._setCampaignTrack(false); " in our tracking code to keep the script from dropping the cookie in users browsers.

  • Blackberry Tour 9630 - HTTP Error

    Any ideas why I cannot use my browser?  I always get an HTTP Error 400: Bad Request even when accessing a website via a link.  Thanks.

    I have listed some information below that may help with the issue you are having with your browser.
    Complete a soft reset on your device. To complete a soft reset do the following below:
    -Remove the battery on your device (the power does not need to be off)
    -Leave the battery out for a few seconds (ex. 5secs)
    -Place the battery back in and wait for the full reboot.
    Try your browser once again.
    ***If it does not work I have listed a Blackberry Knowledge Base Article KB21377 below on this exact error message.
    http://www.blackberry.com/btsc/KB21377
    I hope this information was helpful.

  • Outlook for mac, message HTTP error resource not found 18596

    outlook for mac, message HTTP error resource not found 18596 really strange and outlook is connected and as soon as you send a mail you suddenly get the message, really annoying actually, seems to be an old problem!!!
    Help appreciated!!!!!!!!

    Same probelm any suggestions ????

Maybe you are looking for

  • Highlight word in a script when selecting a text

    Hi, Is there a setting I can configure so that when I select a word in a script, it will highlight in all occurances in rest of the document? Similar to notepad++ does in green when you select a word? Cheers. Using 3.2.20.09

  • HT4628 Wifi detected but doesn't work

    HELP! My good old Macbook Pro stopped working online. Every other device works with my DSL wireless modem/router (iPhones, Wii, Satellite receiver, iPad).  The diagnostics tell me the Internet and Server failed. I tried to go direct with an Ethernet

  • I need to tell Print services to use the 2nd ethernet port

    I need to tell Print services to use the 2nd ethernet port Thanks in advance to anyone who can shed some light. My research has led me to a dead-end so far. Running 10.3.9 on my server. XServe Dual 2.3 I want to have File services and the various oth

  • Which table stores the created work-flow event?

    Hello, When am executing FM of 'SWE_EVENT_CREATE' in my custom program, its executing with SY-SUBRC = 0, but, am not getting any email to my SAP inbox! 1) pls. let me know the reason? 2) Atleast how to know that (where to see, any table) an EVENT is

  • PS CS3 crashes when opening preferences - performance

    Help required Using CS3 on a vista 64 bit, 8gb ram, tons of storage. Screen whites out when trying to access the performance box. Have reduced the number of font, cleared cache no change. I believe this is an old problem, I sorted it out early last y