• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

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: 28713
211
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