• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Moving project from webshpere to Tomcat

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am moving my project from Websphere to Tomcat server. But getting the following exceptions in the log. Can anyone help me to resolve this.



Thanks in advance.
 
Saloon Keeper
Posts: 27856
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Caused by: java.lang.IllegalArgumentException: Error page location unauthorized.html must start with a '/'



This means that in your web.xml file, you specified an errorpage element with a value of "unauthorized.html". That is a relative resource path location. Tomcat demands an absolute path location (*). So the correct value would be "/unauthorized.html". Apparently WebSphere did not enforce this requirement, but Tomcat does.

* Resource paths have their root at the base of the WAR, not the filesystem. So it doesn't matter what directory the WAR is located in or whether the WAR is exploded or kept intact. Hence "/unauthorized.html" and not something like "C:/Tomcat/webapps/mywebapp/unauthorized.html".

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic