-
1. Re: java.lang.ClassNotFoundException: org.apache.struts.taglib.template.InsertTag from [Module "deployment.my.ear.tc.war:main" from Service Module Loader]
wdfink Jun 17, 2013 1:17 PM (in response to johnsmith81)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?
-
2. Re: java.lang.ClassNotFoundException: org.apache.struts.taglib.template.InsertTag from [Module "deployment.my.ear.tc.war:main" from Service Module Loader]
johnsmith81 Jun 17, 2013 4:43 PM (in response to wdfink)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?
Please help
-
3. Re: java.lang.ClassNotFoundException: org.apache.struts.taglib.template.InsertTag from [Module "deployment.my.ear.tc.war:main" from Service Module Loader]
sfcoy Jun 17, 2013 8:56 PM (in response to johnsmith81)Move the struts.jar into each webapp.
I think you're getting a CNFE because the EAR/lib module classloader cannot see the servlet and jsp APIs classes (ie. javax.servlet.http.HttpServletRequest, etc)
-
4. Re: java.lang.ClassNotFoundException: org.apache.struts.taglib.template.InsertTag from [Module "deployment.my.ear.tc.war:main" from Service Module Loader]
johnsmith81 Jun 17, 2013 9:11 PM (in response to sfcoy)I moved struts.jar into WAR/WEB-INF/lib.
But i still got same error. ClassNotFoundException.
-
5. Re: java.lang.ClassNotFoundException: org.apache.struts.taglib.template.InsertTag from [Module "deployment.my.ear.tc.war:main" from Service Module Loader]
sfcoy Jun 17, 2013 9:17 PM (in response to johnsmith81)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).
-
6. Re: java.lang.ClassNotFoundException: org.apache.struts.taglib.template.InsertTag from [Module "deployment.my.ear.tc.war:main" from Service Module Loader]
niteshmehta Jun 18, 2013 1:08 PM (in response to johnsmith81)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
-
7. Re: java.lang.ClassNotFoundException: org.apache.struts.taglib.template.InsertTag from [Module "deployment.my.ear.tc.war:main" from Service Module Loader]
sfcoy Jun 18, 2013 10:55 PM (in response to niteshmehta)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.
-
8. Re: java.lang.ClassNotFoundException: org.apache.struts.taglib.template.InsertTag from [Module "deployment.my.ear.tc.war:main" from Service Module Loader]
nateprice490 Aug 27, 2013 4:09 PM (in response to johnsmith81)Did you ever solve this issue? I am having the same problem.
Thanks,
Nate