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

The Archive Base Latest Questions

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

I’m trying to get a simple Lift example running and I’m having a strange

  • 0

I’m trying to get a simple Lift example running and I’m having a strange issue. I am using the Sonatype sample list project here. I modified the HTML slightly, but it wasn’t working originally either. The issue I’m having is that when I run the local jetty server and try to access http://localhost:8080 it displays as XML in Firefox 3.6.10 rather than HTML. Note, it displays fine in IE8 but the Content-Type in IE8 is “text/html”. I assume Firefox doesn’t like the Content-Type “application/xhtml+xml” for some reason. The message in Firefox says:

This XML file does not appear to have
any style information associated with
it. The document tree is shown below.

Below are the response headers from Firebug:

Expires Thu, 16 Sep 2010 03:55:04 UTC
Content-Length  558
Cache-Control   no-cache; private; no-store
Content-Type    application/xhtml+xml; charset=utf-8
Pragma  no-cache
Date    Thu, 16 Sep 2010 03:55:04 UTC
X-Lift-Version  2.0-scala280-SNAPSHOT
Server  Jetty(6.1.22)

..and the actual response:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>Lift Test</title>    
</head>
<body>
  <h2>Welcome to your project!</h2>
    <p>  
      <span>Welcome to toto01 at Wed Sep 15 20:55:04 PDT 2010</span>
    </p>
    <script type="text/javascript" src="/ajax_request/liftAjax.js"></script>    
    <script type="text/javascript">
      // <![CDATA[   
      var lift_page = "F586508075515C1K";
      // ]]>
   </script>
</body>
</html> 

Any ideas as to what is going wrong? How would I change the Content-Type in Lift for Firefox if that is the issue?

  • 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-16T23:15:29+00:00Added an answer on May 16, 2026 at 11:15 pm

    Alright, it looks like the problem is related to the element not having an xmlns attribute. After changing the XHTML to below it worked fine with the content type as “application/xhtml+xml”:

    <html xmlns="http://www.w3.org/1999/xhtml">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

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.