Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-1204

Make Wicket generated Web-Apps work

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 8.2
    • None
    • None

    Description

      Could not yet test with NB 9.0, so added only version 8.2.

      Added Glassfish 5 as a Glassfish server type, but when I try to run my project, I get the following error:

      java.io.IOException: org.xml.sax.SAXParseExceptionpublicId: file:/opt/glassfish5/glassfish/lib/schemas/web-app_3_1.xsd; lineNumber: 8; columnNumber: 27; Deployment descriptor file WEB-INF/web.xml in archive [PrivateCookingReceipes-1.0-SNAPSHOT].  TargetNamespace.1: Namespace 'http://java.sun.com/xml/ns/javaee' wird erwartet, aber der Ziel-Namespace des Schemadokuments ist 'http://xmlns.jcp.org/xml/ns/javaee'.

      Sorry for the German message. It says the target namespace of the web.xml schema does not fit, obviously this is checked by the glassfish plugin (expected 'http://java.sun.com/xml/ns/javaee' but found 'http://xmlns.jcp.org/xml/ns/javaee').

      Probably it'd be sufficient to just test for both namespaces depending on glassfish version.


      While I first thought it's a problem with the Glassfish version, it turns out to be a problem with the web.xml generated by Wicket Quickstart. I replaced the schema declaration with another one copied from a web.xml generated by NetBeans, after this change I can start my web app.

      Attachments

        Activity

          People

            Unassigned Unassigned
            epdv Peter Nabbefeld
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: