For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 3 replies, 2 voices, and was last updated 20 years, 1 month ago by
Riyad Kalla.
-
AuthorPosts
-
cdionisMemberI created a file called weblogic.xml in a Web Project:
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd"> </weblogic-web-app>In the Problems area, the validation error occurs:
src-resolve.4.2: Error resolving component 'j2ee:emptyType'. It was detected that 'j2ee:emptyType' is in namespace 'http://java.sun.com/xml/ns/j2ee', but components from this namespace are not referenceable from schema document 'http://www.bea.com/ns/weblogic/90/weblogic-application.xsd'. If this is the incorrect namespace, perhaps the prefix of 'j2ee:emptyType' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'http://www.bea.com/ns/weblogic/90/weblogic-application.xsd'.I downloaded:
http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd, which included:
http://www.bea.com/ns/weblogic/90/weblogic-application.xsd, which in turn included:
http://www.bea.com/ns/weblogic/90/weblogic-j2ee.xsd.The last one eventually included the j2ee namespace:
<import namespace=”http://java.sun.com/xml/ns/j2ee” schemaLocation=”http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd”/>
Although weblogic-application.xsd did not explicitly include the j2ee namespace, the file it included does declare it.
My question is, is this an error in the weblogic descriptors (j2ee should be declared in weblogic-application.xsd), or should the include directive declare it for the outer file?
Thanks
Chad Dionis
October 31, 2005 at 9:02 pm #240540
Riyad KallaMemberChad,
As one of the developers pointed out, the error might be a bit of a red herring as we don’t ship all these descriptors in our XML catalog. If you add them to the XML catalog, does the file validate correctly? If so, we can get this taken care of for the 4.1 release.November 1, 2005 at 10:04 am #240588
cdionisMember@support-rkalla wrote:
Chad,
As one of the developers pointed out, the error might be a bit of a red herring as we don’t ship all these descriptors in our XML catalog. If you add them to the XML catalog, does the file validate correctly? If so, we can get this taken care of for the 4.1 release.Hi. Thanks for the response. Just so I am clear, I have to download the requested files to my local box, then add them to the XML catalog. Or can I add an entry to the XML catalog to retrieve the file from the web?
Thanks.
November 1, 2005 at 10:06 am #240589
Riyad KallaMemberChad,
Typically the catalog is used to refer to local files, although to be honest I’ve never tried placing a remote file reference in there instead of using file://, it might work. -
AuthorPosts
