File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unknown element `xsi:schemaLocation' in web-app

 
Jim Bauer
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'm getting an error when I try to hit my jsp at:
http://bauerquarterhorses.com/JimWebApp2/PedigreeSearch.jsp

500 Servlet Exception

/home/bauer3/public_html/webapps/JimWebApp2/WEB-INF/web.xml:7: unknown
element `xsi:schemaLocation' in web-app

Resin 2.1.13 (built Thu Apr 1 10:57:42 PST 2004)

Is there something wrong im my web.xml?

here's how that's coded:

<?xml version="1.0" encoding="ISO-8859-1"?>

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">

<!-- context must always be in the beginning -->
<context-param>
<param-name>adminEmail</param-name>
<param-value>jim@bauerquarterhorses.com</param-value>
</context-param>

<servlet>
<servlet-name>peds1</servlet-name>
<servlet-class>Classes.PedProfileController</servlet-class>
</servlet>

<!-- <servlet>
<servlet-name>search</servlet-name>
<servlet-class>Classes.PedArryMod</servlet-class>

<init-param>
<param-name>sentinName</param-name>
<param-value>root</param-value>
</init-param>

</servlet> -->

<servlet-mapping>
<servlet-name>peds1</servlet-name>
<url-pattern>/PedProfileController</url-pattern>
</servlet-mapping>

<!-- <servlet-mapping>
<servlet-name>search</servlet-name>
<url-pattern>/PedArryMod</url-pattern>
</servlet-mapping> -->

</web-app>

Thanks
[ February 08, 2006: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Resin 2 does not support Servlets 2.4. You'll need to upgrade to Resin 3.
 
Jim Bauer
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't upgrade as it's on the web host.
What can I do to my web.xml to make it work?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Revert it to the Servlets 2.3 format. And be sure to use only JSP 1.2 syntax on your pages.

Can you not get your hosting company to upgrade? if not, it may be time to shop around...
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic