Sniffing loaclhost traffic for HHTP headers

2005-02-21 Thread Marco Mastrocinque
Hi All,
   Just a 'silly question,' I downloaded a HTTP sniffing program because
I want to get use to reading header information. I'm using Apache Tomcat, on
a localhost configuration for development purposes. The sniffing program I
downloaded from 'EffeTech,' in the FAQ section states, 'Due to the mechanism
of Windows operating system, a sniffer can't capture local-to-local
traffic.' Please note I found this out the hard way! The question I have is
how do you do it?

Thanks Marco Mastrocinque.
   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



The requested resource (/myApp/servlet/TestingServlet) is not available.

2005-02-11 Thread Marco Mastrocinque
Hi All,
 I'm new to Tomcat and Servlets, I'm having a problem with one of my
first Servlets:

This is my program:

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;

public class TestingServlet extends HttpServlet {

  public void doGet(HttpServletRequest request, 
HttpServletResponse response) 
throws ServletException, IOException {

PrintWriter out = response.getWriter();
out.println("");
out.println("");
out.println("Servlet Testing");
out.println("");
out.println("");
out.println("Welcome to the Servlet Testing Center");
out.println("");
out.println("");
  }
}

This is my web.xml file:



http://java.sun.com/dtd/web-app_2_3.dtd";>



Testing
TestingServlet



I'm using Tomcat version 5.0.28. 

I create the Directory structure under Tomcat, underneath the webapps
subdirectory:

myApp
 |
  WEB-INF
 |
  classes

I compile the file TestingServlet.java using

javac -classpath C:\tomcat\common\lib\servlet-api.jar TestingServlet.jar

Place the file TestingServelt.jar in the classes subdirectory.

Place the file web.xml file in the WEB-INF subdirectory.

I start Tomcat. The manager application says it there, and it seems to be
okay.

I type in the address bar of IE the following

http://locahost:8080/myApp/servlet/TestingServlet

I get the following message, from Tomcat

The requested resource (/myApp/servlet/TestingServlet) is not available.


I know it should be pretty simple, but sometimes the simplest things are the
hardest to correct!


Any suggestions most appreciated.

Thanks Marco Mastrocinque

 

 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


User name and password for the Admin area.

2004-12-28 Thread Marco Mastrocinque
Hi All,

 I'm a newbie to Tomcat. What is the user name and password for the
Status and Tomcat Manager links, in the administration area? How do I change
the passwords as well, I assume it is a XML file?

 

Thanks Marco.

 



The admin package for Tomcat 5.5

2004-12-16 Thread Marco Mastrocinque
Hi All,

 I know this is a silly question, but I'm a newbie to Tomcat. I'm
reading a book from Wrox press called, 'Professional Apache Tomcat 5.' It
states there is an admin system, but I get the following message from
Tomcat,

'Tomcat's administration web application is no longer installed by default.
Download and install the "admin" package to use it.'

 

I can't find it on the Apache / Tomcat web site, any suggestions would be
nice.

 

Thanks Marco.