Skip to main content

Migrating a web application from jetty to glassfish 4

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
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 '{"":servlet-class, "":jsp-file}' is expected.. Please see server.log for more details.

and here is the server.log :

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.
Joined: 2007-10-15

It looks like the web.xml structure isn't quite right. I would check the schema: