tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Robert.Jen...@surecomp.com>
Subject RE: deploying a war file and starting the application
Date Fri, 28 Jan 2011 21:24:57 GMT
The following is the directory layout

C:\Downloads\tomcat-7\apache-tomcat-7.0.6 - root

	bin
	conf
	lib
	logs
	temp
	webapps
		allMATCHWeb
			documents
			images
			lib
			logs
			META-INFO
			output
			pages
			scripts
			WEB-INF
				classes
				lib
				web.xml	
			xsl
			login.html
		docs
		examples
		host-manager
		ROOT		

	Work

This is the content of the web.xml

<?xml version='1.0' encoding='UTF-8'?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                      http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  version="2.5">
  <display-name>allMATCHWeb</display-name>
  <servlet>
    <servlet-name>InitServlet</servlet-name>
    <servlet-class>com.surecomp.allMATCH.client.InitServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>InitServlet</servlet-name>
    <url-pattern>/InitServlet</url-pattern>
  </servlet-mapping>
  <welcome-file-list>
    <welcome-file>login.html</welcome-file>
  </welcome-file-list>
</web-app>

The log files produced by Tomcat contain the following

catalina.2011-01-28.log contains

Jan 28, 2011 4:22:35 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Jan 28, 2011 4:22:35 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Jan 28, 2011 4:22:36 PM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-apr-7080"]
Jan 28, 2011 4:22:36 PM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["ajp-apr-7009"]
Jan 28, 2011 4:22:36 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1413 ms
Jan 28, 2011 4:22:36 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jan 28, 2011 4:22:36 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.6
Jan 28, 2011 4:22:36 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive allMATCHWeb.war
Jan 28, 2011 4:22:53 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://www.businessobjects.com/jsf/crystalreportsviewers is already
defined
Jan 28, 2011 4:22:53 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Jan 28, 2011 4:22:54 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Jan 28, 2011 4:22:54 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory host-manager
Jan 28, 2011 4:22:54 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
Jan 28, 2011 4:22:54 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Jan 28, 2011 4:22:54 PM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["http-apr-7080"]
Jan 28, 2011 4:22:54 PM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["ajp-apr-7009"]
Jan 28, 2011 4:22:54 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 18243 ms

Host-manager.2011-01-28.log contains

Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext filterStart
FINE:  Starting filter 'CSRF'

Localhost.2011-01-28.log contains

Jan 28, 2011 4:22:53 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Jan 28, 2011 4:22:53 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext listenerStart
FINE:  Configuring event listener class 'listeners.ContextListener'
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext listenerStart
FINE:  Configuring event listener class 'listeners.SessionListener'
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext filterStart
FINE:  Starting filter 'Compression Filter'
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext filterStart
FINE:  Starting filter 'Set Character Encoding'
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext filterStart
FINE:  Starting filter 'Timing filter'
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext filterStart
FINE:  Starting filter 'Request Dumper Filter'
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters

Manager.2011-01-28.log contains

Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext filterStart
FINE:  Starting filter 'CSRF'




Sincerely,

Robert Jenkin
Surecomp Services, Inc.
2 Hudson Place, 4th Floor
Hoboken, NJ 07030
Skype: robert.jenkin
Office: 201 217 1437 | Direct: 201 716 1219 | Mobile: 908 251 0537
http://www.Surecomp.com


-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: Friday, January 28, 2011 4:15 PM
To: Tomcat Users List
Subject: Re: deploying a war file and starting the application

On 28/01/2011 21:12, Robert.Jenkin@surecomp.com wrote:
> I have modified the InitServlet class (removed everything). The following is the complete
code of InitServlet
> 
> package com.surecomp.allMATCH.client;
> 
> import javax.servlet.ServletException;
> import javax.servlet.ServletInputStream;
> import javax.servlet.http.HttpServletRequest;
> import javax.servlet.http.HttpServletResponse;
> 
> 
> public class InitServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet
{
> 
> public void destroy() {
> }
> 
> public void init() throws ServletException {
> 	System.out.println("Loaded");
> }
> 
> }
> 
> I have compiled it and placed the class file into C:\Downloads\tomcat-7\apache-tomcat-7.0.6\webapps\allMATCHWeb\WEB-INF\classes\com\surecomp\allMATCH\client
and I expected to see the System.out.println either on the screen or in some log file. I do
not see it anywhere.

web.xml is located where?

What is in the Tomcat log files?

Mark

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


This mail was sent via Mail-SeCure System.
Mime
View raw message