tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Narahari 'n' Savitha" <savith...@gmail.com>
Subject Re: Tomcat deployment webapps and the whole stew
Date Fri, 28 Jun 2013 02:32:16 GMT
Here is what I tried.

CATALINA_HOME=/opt/narahari/paas/apache-tomcat-7.0.37

CATALINA_BASE=/opt/narahari/paas/adp-tomcat


In the $CATALINA_BASE/conf/Catalina/localhost/ptl#cts.xml file the entry is

<Context docBase="/opt/narahari/paas/webapps/ptl#cts.war"
antiResourceLocking="false" />

=====================

The contents of /opt/narahari/paas/webapps folder is

virtual@cdl-pid-p1-01:/opt/narahari/paas/webapps> ls

ptl#cts.war

===================

Now I start tomcat and I go check the logs to see if the ptl#cts.war got
deployed and I see the following

22:18:34,426 INFO  [ConfigServlet] com.alp.rev.config.ConfigServlet.init():
Entering.

22:18:34,427 INFO  [ConfigServlet] com.alp.rev.config.ConfigServlet.init():
FILEINPUTSTREAM VERSION 1.0

22:18:34,427 INFO  [ConfigServlet] com.alp.rev.config.ConfigServlet.init():
configFiles = [/WEB-INF/faces-config.xml]

22:18:34,427 INFO  [ConfigServlet] com.alp.rev.config.ConfigServlet.init():
Full path to Faces configuration file [null]

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)

        at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)

        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)

        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)

        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5033)

        at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5317)

        at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

So as you can see I have the war file in the right
location(/opt/narahari/paas/webapps) and is pointed to in the
$CATALINA_BASE/conf/Catalina/localhost/ptl#cts.xml

However I dont see the war initializing correctly.  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)

So it looks like app running out of the war file directly is not working
correctly.  I am not sure why but I would want your expert advice.

Regards,
-Narahari

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message