"application.xml" validation error Invalid content was found starting with element 'library-directory'. application.xml

0 votes
28 views
asked Apr 24 in WebService by anonymous

Hi 

 My application.xml showing he below error. Can any one help to resolve this issue

Invalid content was found starting with element 'library-directory'. application.xml

1 Answer

0 votes
answered Apr 24 by admin (8,115 points)

Hi

  Starting from JavaEE 5, you can specify a directory inside the an EAR file to hold jar files that can be used by all modules of that EAR. You have to change xml refernce like below 

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="5"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/application_5.xsd">


</application>
...