From https://docs.jboss.org/author/display/AS72/Class+Loading+in+AS7 the jars in EAR/lib should be in the WAR classpath.
Did you have any special in the jboss-structure.xml?
Was the deployment with EAP6.0.x successful?
There aer ejb jar and war file in my ear.
If i deploy ejb jar only on EAP6, it deployed.
But when i deploy ejb jar and war, the error occurred.
What should i change and how?
I moved struts.jar into WAR/WEB-INF/lib.
But i still got same error. ClassNotFoundException.
What version of struts is it? Some versions of struts had the tags in a separate jar.
Please attach the complete server.log. (Click on the "Use advanced editor" link on the top right hand side of the reply panel).
We were facing simmilar problem during migration from jboss 5.x to jboss 7.1.1, but in our case struts tld.s were directly inside WEB-INF folder and we have following type entries for each tld in web.xml
<taglib> <taglib-uri>/WEB-INF/struts-tiles</taglib-uri> <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location> </taglib>
we noticed that we were missing entry for struts-temlate.tld. we added this entry and problem was resolved
The JSP container automatically finds all tlds contained in jars in a webapp's WEB-INF/lib directory.
Adding taglib entries to the web.xml is not required if your JSPs use the uri defined in the tld.
In the case of the struts library, the uri values changed over the evolution of the product, which probably did not help. Additionally struts-template was replaced by struts-tiles between the 1.1 release and the 1.2 release.
So it it could be that the original java.lang.ClassNotFoundException: org.apache.struts.taglib.template.InsertTag could be a conseqence of using version 1.2 or newer of apache struts.
Did you ever solve this issue? I am having the same problem.