users@glassfish.java.net

Glassfish v3 Deployment problem

From: <glassfish_at_javadesktop.org>
Date: Mon, 11 Jan 2010 21:04:23 PST

I am trying to run our webapp under glassfish v3. Currently we have a webapp that runs under tomcat 6.0, and I would like to move us as a company over to glassfish. When I try to deploy my war file (our app is a JSP/Struts 2 App) I get the following error:

C:\Program Files\sges-v3\bin>asadmin deploy \branches\ltf\dist\marketchorus.war
com.sun.enterprise.admin.cli.CommandException: remote failure: Exception while deploying the app : java.io.IOException: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'. One of '{"http://java.sun.com/xml/ns/javaee":module-name, "http://java.sun.com/xml/ns/javaee":description, "http://java.sun.com/xml/ns/javaee":display-name, "http://java.sun.com/xml/ns/javaee":icon, "http://java.sun.com/xml/ns/javaee":distributable, "http://java.sun.com/xml/ns/javaee":context-param, "http://java.sun.com/xml/ns/javaee":filter, "http://java.sun.com/xml/ns/javaee":filter-mapping, "http://java.sun.com/xml/ns/javaee":listener, "http://java.sun.com/xml/ns/javaee":servlet, "http://java.sun.com/xml/ns/javaee":servlet-mapping, "http://java.sun.com/xml/ns/javaee":session-config, "http://java.sun.com/xml/ns/javaee":mime-mapping, "http://java.sun.com/xml/ns/javaee":welcome-file-list, "http://java.sun.com/xml/ns/javaee":error-page, "http://java.sun.com/xml/ns/javaee":jsp-config, "http://java.sun.com/xml/ns/javaee":security-constraint, "http://java.sun.com/xml/ns/javaee":login-config, "http://java.sun.com/xml/ns/javaee":security-role, "http://java.sun.com/xml/ns/javaee":env-entry, "http://java.sun.com/xml/ns/javaee":ejb-ref, "http://java.sun.com/xml/ns/javaee":ejb-local-ref, "http://java.sun.com/xml/ns/javaee":service-ref, "http://java.sun.com/xml/ns/javaee":resource-ref, "http://java.sun.com/xml/ns/javaee":resource-env-ref, "http://java.sun.com/xml/ns/javaee":message-destination-ref, "http://java.sun.com/xml/ns/javaee":persistence-context-ref, "http://java.sun.com/xml/ns/javaee":persistence-unit-ref, "http://java.sun.com/xml/ns/javaee":post-construct, "http://java.sun.com/xml/ns/javaee":pre-destroy, "http://java.sun.com/xml/ns/javaee":data-source, "http://java.sun.com/xml/ns/javaee":message-destination, "http://java.sun.com/xml/ns/javaee":locale-encoding-mapping-list, "http://java.sun.com/xml/ns/javaee":absolute-ordering}' is expected.


Command deploy failed.

I would appreciate any tips people could give me to help get past this error. The taglib entries in the web.xml that it seems to not like are as listed:

</servlet-mapping>
    <taglib>
        <taglib-uri>http://www.servletsuite.com/servlets/ajaxdivtag</taglib-uri>
        <taglib-location>/WEB-INF/ajaxdivtags.tld</taglib-location>
    </taglib>
    <taglib>
        <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
        <taglib-location>/WEB-INF/c.tld</taglib-location>
    </taglib>
    <taglib>
        <taglib-uri>/flash</taglib-uri>
        <taglib-location>/WEB-INF/flash.tld</taglib-location>
    </taglib>
</web-app>

Thank you for any assistance that people can provide.
[Message sent by forum member 'haskovec' (haskovec_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=380198