This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSP and the fly likes unknown element `xsi:schemaLocation' in web-app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "unknown element `xsi:schemaLocation Watch "unknown element `xsi:schemaLocation New topic
Author

unknown element `xsi:schemaLocation' in web-app

Jim Bauer
Greenhorn

Joined: Nov 07, 2005
Posts: 9
'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

Joined: Jan 10, 2002
Posts: 60050
    
  65

Resin 2 does not support Servlets 2.4. You'll need to upgrade to Resin 3.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jim Bauer
Greenhorn

Joined: Nov 07, 2005
Posts: 9
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

Joined: Jan 10, 2002
Posts: 60050
    
  65

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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unknown element `xsi:schemaLocation' in web-app
 
Similar Threads
Configuring JSP init parameters
form action and url pattern
Deployment descriptor "web.xml" is malformed
Problem with jspInit() overriding
org.xml.sax. SAXParseException: Element type "web-app" must be declared.