Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
rkhemka Nov 3, 2017 4:11 AMHi All,
While trying to deploy an application to JBOSS 7.0.0 EAP I am getting the following error while deploying the application EAR in JBoss 7.0.0 EAP. though the same worked fine in Jboss 6.4 EAP. I did validated by .TLD file against the XML validator online.
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYUT0027: Failed to parse XML descriptor \"/C:/UI_Workspace/jboss-eap-7.0.0/jboss-eap-7.0/standalone/deployments/TAXEAR.ear/Tax.war/WEB-INF/lib/taglibs-application.jar\" at [1,0]
Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
([("deployment" => "TAXEAR.ear")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.subunit.\"TAXEAR.ear\".\"Tax.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"TAXEAR.ear\".\"Tax.war\".PARSE: WFLYSRV0153: Failed to process phase PARSE of subdeployment \"Tax.war\" of deployment \"TAXEAR.ear\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYUT0027: Failed to parse XML descriptor \"/C:/UI_Workspace/jboss-eap-7.0.0/jboss-eap-7.0/standalone/deployments/TAXEAR.ear/Tax.war/WEB-INF/lib/taglibs-application.jar\" at [1,0]
Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]"}}
Below is the .TLD for ready reference
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0.1</tlibversion>
<jspversion>1.1</jspversion>
<shortname>application</shortname>
<uri>http://jakarta.apache.org/taglibs/application-1.0</uri>
<info>application info </info>
<tag>
<name>attribute</name>
<tagclass>org.apache.taglibs.application.AttributeTag</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>name</name>
<required>yes</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
</tag>
<tag>
<name>attributes</name>
<tagclass>org.apache.taglibs.application.AttributesTag</tagclass>
<teiclass>org.apache.taglibs.application.AttributesTEI</teiclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>id</name>
<required>yes</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>no</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
</tag>
<tag>
<name>equalsAttribute</name>
<tagclass>org.apache.taglibs.application.EqualsAttributeTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>yes</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>no</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
<attribute>
<name>match</name>
<required>yes</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
<attribute>
<name>ignoreCase</name>
<required>no</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
</tag>
<tag>
<name>existsAttribute</name>
<tagclass>org.apache.taglibs.application.ExistsAttributeTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>yes</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>no</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
</tag>
<tag>
<name>removeAttribute</name>
<tagclass>org.apache.taglibs.application.RemoveAttributeTag</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>name</name>
<required>yes</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
</tag>
<tag>
<name>setAttribute</name>
<tagclass>org.apache.taglibs.application.SetAttributeTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>yes</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
</tag>
<tag>
<name>initParameter</name>
<tagclass>org.apache.taglibs.application.InitParameterTag</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>name</name>
<required>yes</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
</tag>
<tag>
<name>initParameters</name>
<tagclass>org.apache.taglibs.application.InitParametersTag</tagclass>
<teiclass>org.apache.taglibs.application.InitParametersTEI</teiclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>id</name>
<required>yes</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>no</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
</tag>
<tag>
<name>equalsInitParameter</name>
<tagclass>org.apache.taglibs.application.EqualsInitParameterTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>yes</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>no</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
<attribute>
<name>match</name>
<required>yes</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
<attribute>
<name>ignoreCase</name>
<required>no</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
</tag>
<tag>
<name>existsInitParameter</name>
<tagclass>org.apache.taglibs.application.ExistsInitParameterTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>yes</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>no</required>
<rtexprvalue>no</rtexprvalue>
</attribute>
</tag>
</taglib>