Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Make war file server engine independent.  RSS feed

 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I wrap a web application in Tomcat into a war file and deploy this war file to Websphere 5.0, Websphere complains that my web.xml is wrong. I had to remove some elements (such as invoker servlet tag) from web.xml and repackage a war file for Websphere.
Is it possible to make war file server independent?
I thought they were supposed to be server independent.
Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66184
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are your Tomcat and Websphere installations using the same revision of the servlet spec? Presumably 2.3?
bear
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!