• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

"The markup in the document preceding the root element must be well-formed" error in Eclipse

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


The error occurs at line 2.

org.apache.jasper.JasperException: /New.jspx(2,2) The markup in the document preceding the root element must be well-formed.

Caused by:
org.apache.jasper.JasperException - /New.jspx(2,2) The markup in the document preceding the root element must be well-formed.

Please let me know if there is a solution to this.
I get the error when I run the file in eclipse.
 
Ranch Hand
Posts: 417
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

charak roy wrote:

The error occurs at line 2.

org.apache.jasper.JasperException: /New.jspx(2,2) The markup in the document preceding the root element must be well-formed.

Caused by:
org.apache.jasper.JasperException - /New.jspx(2,2) The markup in the document preceding the root element must be well-formed.

Please let me know if there is a solution to this.
I get the error when I run the file in eclipse.



I am not even sure eclipse supports jspx without some kind of plugin. I am using eclipse Mars and there doesn't seem the be a menu for creating jspx pages.

If you do not mind using plain jsp, just remove the first line in your jspx and rename it jsp:



It should work fine. Otherwise, search for "Using jspx vs jsp"

jspx seems more strict about what you can put in them.
 
permaculture is a more symbiotic relationship with nature so I can be even lazier. Read tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic