facebook

XML validation error on weblogic-web-app.xml

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #240517 Reply

    cdionis
    Member

    I 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&#8221; schemaLocation=”http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd”/&gt;

    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

    #240540

    Riyad Kalla
    Member

    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.

    #240588

    cdionis
    Member

    @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.

    #240589

    Riyad Kalla
    Member

    Chad,
    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.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: XML validation error on weblogic-web-app.xml

You must be logged in to post in the forum log in