aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes SchemaLocation Error In Eclipse IDE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "SchemaLocation Error In Eclipse IDE" Watch "SchemaLocation Error In Eclipse IDE" New topic
Author

SchemaLocation Error In Eclipse IDE

amarshi mohanty
Ranch Hand

Joined: Jul 01, 2008
Posts: 110
Hi,

I am using the below example as given in HFSJ :
<?xml version="1.0" encoding="ISO-8859-1" ?>
<taglib 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/web-jsptaglibrary_2_0.xsd" version="1.0">
<tlib-version>1.2</tlib-version>
<short-name>RandomTags</short-name>

<uri>randomThings</uri>

<tag>
<description>random advice</description>
<name>advice</name>
<tag-class>foo.AdvisorTagHandler</tag-class>
<body-content>empty</body-content>
<attribute>
<name>user</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>

The code in block says:
-SchemaLocation:schemaLovatin value="http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" must have even number of URI's.

What can be the problem?


SCJP (97%), SCWCD (95%))
chandan kumar mitwaa
Ranch Hand

Joined: Jul 01, 2009
Posts: 49
<taglib 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/web-jsptaglibrary_2_0.xsd" version="1.0">


Use version="2.0" instead.

Hope that it works.

Thanks,
Chandan Kumar
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

And use an even number of URIs--you have only one.

Every example I've seen looks more like this:
amarshi mohanty
Ranch Hand

Joined: Jul 01, 2008
Posts: 110
<?xml version="1.0" encoding="ISO-8859-1" ?>
<taglib>
....
....
</taglib>

worked .
Thankx
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SchemaLocation Error In Eclipse IDE
 
Similar Threads
Coding tag handlers or tag files together
custom "advice" tag example
Simple Tag with Attribute
body-content as scriptless
Why in tld,you need add attribute type?