mercredi 25 juillet 2018

XML Broken Error

Im making servlets but following is the xml file of my web app. The JavaBeans compilor generates this error: [Fatal Error] :15:1: XML document structures must start and end within the same entity. C:\Users\Zedfn\Documents\NetBeansProjects\Assignment2\nbproject\build-impl.xml:1045: Deployment error: Tomcat configuration file C:\Users\Zedfn\Documents\NetBeansProjects\Assignment2\web\META-INF\context.xml seems to be broken. Please make sure it is parseable and valid. See the server log for details. BUILD FAILED (total time: 0 seconds)

XML Code:

<?xml version="1.0" encoding="ISO-8859-1"?>
<Context path="/Assignment2"/>
<wep-app>
    <servlet>
        <servlet-name>FormServlet</servlet-name>      
        <servlet-class>myServlet</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>FormServlet</servlet-name>   
        <url-pattern>/formServlet</url-pattern>
    </servlet-mapping>

</wep-app>

Whats wrong with this code?




Aucun commentaire:

Enregistrer un commentaire