Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why does Tomcat 5.0 include struts.jar?

 
Jitesh Sinha
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I found out after spending 3-4 hours,the new Tomcat 5.0 contains struts.jar at TOMCAT_HOME\server\webapps\admin\WEB-INF\lib.
This jar was conflicting with my app's struts.jar and gave me severe headache.
Anyone knows why it was included with the server itself?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The admin app was written in struts.
The jar file should not be affecting your app if it's in the location you've specified. Unless it's in either common/lib or shared/lib, it's not accessible to your app.
 
Jitesh Sinha
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have every reason to believe,conflict happens.
Here is what happened:
I have a jsp which uses <logic:messagesPresent> tag at two places.One of the tags was having message attribute as true(first) while the other(second) did not have anything specified.
For clarity reasons ,I commented everything inside the second tag.So it looked like :
<logic:messagesPresent>
</logic:messagesPresent>
It resulted in giving errors and jsp was not compiling.
As soon as I copied my app's struts.jar file in the Tomcat's admin location the error vanished!
Although your answer seems logical and mine illogical,that is what has happened and I am perplexed.
Any help will be greatly appreciated.
 
Jitesh Sinha
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any pointers to this one?Am I missing something?Is my installation of Tomcat screwed up?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A clean install might be a good idea at this point.
Did you explicitly state: crossContext="true" for any of your context declarations? Otherwise, I have no idea why a jar file in another app would affect your app.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic