Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Conflict between Struts 1.0 and 1.1

Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I deployed an application that comprises of modules developed with Struts 1.0 and 1.1 on iPlanet Apps Server 6.5. When I run the modules concurrently, I encountered the following errors:
javac error: C:\iplanet\ias6\ias\APPS\cgsImportEar\cgsImportWar\WEB-INF\compiled_jsp\jsp\APPS\cgsImportWar\web\inbound\importStorage\enquireImportCsgnm\ Method setBodyContent(javax.servlet.jsp.tagext.BodyContent) not found in class org.apache.struts.taglib.bean.DefineTag. _jspx_th_bean_define_0.setBodyContent((BodyContent) out); ^ C:\iplanet\ias6\ias\APPS\cgsImportEar\cgsImportWar\WEB-INF\compiled_jsp\jsp\APPS\cgsImportWar\web\inbound\importStorage\enquireImportCsgnm\ Method doInitBody() not found in class org.apache.struts.taglib.bean.DefineTag. _jspx_th_bean_define_0.doInitBody(); ^ C:\iplanet\ias6\ias\APPS\cgsImportEar\cgsImportWar\WEB-INF\compiled_jsp\jsp\APPS\cgsImportWar\web\inbound\importStorage\enquireImportCsgnm\ Method doAfterBody() not found in class org.apache.struts.taglib.bean.DefineTag. } while (_jspx_th_bean_define_0.doAfterBody() == BodyTag.EVAL_BODY_TAG); ^ 3 errors
The error is intermitten. I thought the error occurred because the modules are not able to load struts 1.1 jar during run time. Am I correct and is there a solution to overcome this problem?
Many thanks,
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Richard,
I feel that the compiler tries to look for a certain class, but it cannot find it from the JAR files that provided by your classpath.
Does you check that your classpath for that project is set correctly, so that the corresponding version of Structs lib can be indicated by the compiler?
Hope this help.
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have checked the Struts 1.0 and 1.1 API docs, the errors occur because the org.apache.struts.taglib.bean.DefineTag class in Struts 1.0 extends TagSupport, and it extends BodyTagSupport in Struts 1.1!
I am sure that the problem is that you web application loads the Struts 1.0 library, so you may check your classpath and make it points to the Struts 1.1! You should noticed that if your classpath points to both Struts 1.0 and 1.1, the problem may still be there!
[ February 13, 2004: Message edited by: Jacky Chow ]
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic