Skip to main content

Migrating a web application from jetty to glassfish 4

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
skiabox1
Offline
Joined: 2014-06-29

I am trying to migrate an existing jetty application (that is probing a postgres database) to the glassfish server 4.
So I deployed the war using the admin console and the error I am getting is the following :

Error occurred during deployment: Exception while deploying the app [examples-simulated-2.1.0] : org.xml.sax.SAXParseException; lineNumber: 85; columnNumber: 17; Deployment descriptor file WEB-INF/web.xml in archive [examples-simulated-2.1.0]. cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'. One of '{"http://java.sun.com/xml/ns/javaee":servlet-class, "http://java.sun.com/xml/ns/javaee":jsp-file}' is expected.. Please see server.log for more details.

and here is the server.log :

http://pastebin.com/AKiFufq4

Any ideas on how to fix that?
Thank you.

PS : Don't hesitate to ask me about more details on the project that is running inside the war.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
reza_rahman
Offline
Joined: 2007-10-15

It looks like the web.xml structure isn't quite right. I would check the schema: http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/index.html.