org.apache.openejb.OpenEJBException: Cannot unmarshall the web.xml file: jndi:/localhost/anOldWebapp/WEB-INF/web.xml: unexpected element (uri:"http://java.sun.com/xml/ns/javaee", local:"taglib"). Expected elements are <{http://java.sun.com/xml/ns/javaee}display-name>,<{http://java.sun.com/xml/ns/javaee}session-config>,<{http://java.sun.com/xml/ns/javaee}post-construct>,<{http://java.sun.com/xml/ns/javaee}distributable>,<{http://java.sun.com/xml/ns/javaee}security-role>,<{http://java.sun.com/xml/ns/javaee}security-constraint>,<{http://java.sun.com/xml/ns/javaee}ejb-ref>,<{http://java.sun.com/xml/ns/javaee}servlet-mapping>,<{http://java.sun.com/xml/ns/javaee}jsp-config>,<{http://java.sun.com/xml/ns/javaee}filter>,<{http://java.sun.com/xml/ns/javaee}context-param>,<{http://java.sun.com/xml/ns/javaee}listener>,<{http://java.sun.com/xml/ns/javaee}login-config>,<{http://java.sun.com/xml/ns/javaee}icon>,<{http://java.sun.com/xml/ns/javaee}resource-ref>,<{http://java.sun.com/xml/ns/javaee}mime-mapping>,<{http://java.sun.com/xml/ns/javaee}ejb-local-ref>,<{http://java.sun.com/xml/ns/javaee}welcome-file-list>,<{http://java.sun.com/xml/ns/javaee}message-destination-ref>,<{http://java.sun.com/xml/ns/javaee}message-destination>,<{http://java.sun.com/xml/ns/javaee}servlet>,<{http://java.sun.com/xml/ns/javaee}env-entry>,<{http://java.sun.com/xml/ns/javaee}description>,<{http://java.sun.com/xml/ns/javaee}service-ref>,<{http://java.sun.com/xml/ns/javaee}persistence-context-ref>,<{http://java.sun.com/xml/ns/javaee}locale-encoding-mapping-list>,<{http://java.sun.com/xml/ns/javaee}resource-env-ref>,<{http://java.sun.com/xml/ns/javaee}persistence-unit-ref>,<{http://java.sun.com/xml/ns/javaee}filter-mapping>,<{http://java.sun.com/xml/ns/javaee}pre-destroy>,<{http://java.sun.com/xml/ns/javaee}error-page>

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via openejb-users by freeway, 1 year ago
Cannot unmarshall the web.xml file: jndi:/localhost/anOldWebapp/WEB-INF/web.xml: unexpected element (uri:"http://java.sun.com/xml/ns/javaee", local:"taglib"). Expected elements are <{http://java.sun.com/xml/ns/javaee}display-name>,<{http
via openejb-users by freeway, 1 year ago
Cannot unmarshall the web.xml file: jndi:/localhost/anOldWebapp/WEB-INF/web.xml: unexpected element (uri:"http://java.sun.com/xml/ns/javaee", local:"taglib"). Expected elements are <{http://java.sun.com/xml/ns/javaee}display-name>,<{http
org.apache.openejb.OpenEJBException: Cannot unmarshall the web.xml file: jndi:/localhost/anOldWebapp/WEB-INF/web.xml: unexpected element (uri:"http://java.sun.com/xml/ns/javaee", local:"taglib"). Expected elements are <{http://java.sun.com/xml/ns/javaee}display-name>,<{http://java.sun.com/xml/ns/javaee}session-config>,<{http://java.sun.com/xml/ns/javaee}post-construct>,<{http://java.sun.com/xml/ns/javaee}distributable>,<{http://java.sun.com/xml/ns/javaee}security-role>,<{http://java.sun.com/xml/ns/javaee}security-constraint>,<{http://java.sun.com/xml/ns/javaee}ejb-ref>,<{http://java.sun.com/xml/ns/javaee}servlet-mapping>,<{http://java.sun.com/xml/ns/javaee}jsp-config>,<{http://java.sun.com/xml/ns/javaee}filter>,<{http://java.sun.com/xml/ns/javaee}context-param>,<{http://java.sun.com/xml/ns/javaee}listener>,<{http://java.sun.com/xml/ns/javaee}login-config>,<{http://java.sun.com/xml/ns/javaee}icon>,<{http://java.sun.com/xml/ns/javaee}resource-ref>,<{http://java.sun.com/xml/ns/javaee}mime-mapping>,<{http://java.sun.com/xml/ns/javaee}ejb-local-ref>,<{http://java.sun.com/xml/ns/javaee}welcome-file-list>,<{http://java.sun.com/xml/ns/javaee}message-destination-ref>,<{http://java.sun.com/xml/ns/javaee}message-destination>,<{http://java.sun.com/xml/ns/javaee}servlet>,<{http://java.sun.com/xml/ns/javaee}env-entry>,<{http://java.sun.com/xml/ns/javaee}description>,<{http://java.sun.com/xml/ns/javaee}service-ref>,<{http://java.sun.com/xml/ns/javaee}persistence-context-ref>,<{http://java.sun.com/xml/ns/javaee}locale-encoding-mapping-list>,<{http://java.sun.com/xml/ns/javaee}resource-env-ref>,<{http://java.sun.com/xml/ns/javaee}persistence-unit-ref>,<{http://java.sun.com/xml/ns/javaee}filter-mapping>,<{http://java.sun.com/xml/ns/javaee}pre-destroy>,<{http://java.sun.com/xml/ns/javaee}error-page>
at org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.createWebModule(TomcatWebAppBuilder.java:624)
at org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:541)
at org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.start(TomcatWebAppBuilder.java:242)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.