tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Tomcat deployment webapps and the whole stew
Date Fri, 28 Jun 2013 03:19:43 GMT
> From: Narahari 'n' Savitha [mailto:savithari@gmail.com] 
> Subject: Re: Tomcat deployment webapps and the whole stew

> 22:18:34,427 ERROR [ConfigServlet] com.adp.rev.config.ConfigServlet.init():
> Error trying to read file [null]. Exception = [java.lang.NullPointerException]
> java.lang.NullPointerException
>         at java.io.FileInputStream.<init>(FileInputStream.java:116)
>         at java.io.FileInputStream.<init>(FileInputStream.java:79)
>         at com.alp.rev.config.ConfigServlet.init(ConfigServlet.java:59)

> It is trying to find the faces-config.xml file which does not seem to be found.
> (yes it is a part of the war file and exists under WEB-INF)

Your servlet is making the invalid assumption that its data is accessible through the file
system, which is explicitly not allowed by the servlet spec.  It should be using ServletContext.getResourceAsStream()
rather than java.io.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message