You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Allen Williams <an...@csunv.com> on 2006/05/20 03:57:33 UTC

Directory Structure and Can't Find Resources in Tomcat

Well, I can't figure out this directory structure and finding stuff at all.
 
Here are my directory listings

docroot= /usr/share/tomcat5/webapps/smsinfo
*******************************************
anw-dev:/usr/share/tomcat5/webapps/smsinfo$ ls -laF
total 20
drwxr-xr-x  3 anw     root 4096 2006-05-19 21:14 ./
drwxr-xr-x  9 tomcat5 root 4096 2006-05-13 16:10 ../
-rw-r--r--  1 anw     anw   564 2006-05-19 21:20 login.jsp
drwxr-xr-x  4 anw     anw  4096 2006-05-19 21:15 WEB-INF/
-rw-r--r--  1 anw     anw   241 2006-05-19 21:20 welcome.jsp

********************************************
anw-dev:/usr/share/tomcat5/webapps/smsinfo/WEB-INF$ ls -laF
total 20
drwxr-xr-x  4 anw anw  4096 2006-05-19 21:15 ./
drwxr-xr-x  3 anw root 4096 2006-05-19 21:14 ../
drwxr-xr-x  3 anw root 4096 2006-05-18 20:27 classes/
drwxr-xr-x  2 anw root 4096 2006-05-13 15:49 lib/
-rw-r--r--  1 anw anw   440 2006-05-19 21:18 web.xml

(lib is empty)
***********************************************
anw-dev:/usr/share/tomcat5/webapps/smsinfo/WEB-INF/classes$ ls -laF
total 12
drwxr-xr-x  3 anw root 4096 2006-05-18 20:27 ./
drwxr-xr-x  4 anw anw  4096 2006-05-19 21:15 ../
drwxr-xr-x  2 anw root 4096 2006-05-18 20:27 UserConfig/
*************************************************
anw-dev:/usr/share/tomcat5/webapps/smsinfo/WEB-INF/classes/UserConfig$
ls -laF
total 12
drwxr-xr-x  2 anw root 4096 2006-05-18 20:27 ./
drwxr-xr-x  3 anw root 4096 2006-05-18 20:27 ../
-rwxr-xr-x  1 anw root 1322 2006-05-19 21:18 login.class*
*************************************************

Here is the source to login.jsp (located in docroot,
/usr/share/tomcat5/webapps/smsinfo):

<html>
<head>
        <title>SMS Information Transfer Login Page</title>
        <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" onload="document.loginForm.username.focus()">
        <!-- form name="loginForm" method="post"
action="/servlet/UserConfig.login" -->
        <form name="loginForm" method="post"
action="WEB-INF/classes/UserConfig.login">
                <p>User Name:<input type="text" name="username"></p>
                <p>Password:<input type="password" name="password"></p>
                <p><input type="Submit" name="Submit"></p>
        </form>
</body>
</html>

*************************************************
Here is the source to login.class:

package UserConfig;

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

public class login extends HttpServlet
    {
    private String target="/welcome.jsp";
    private String getUser(String username, String password)
        {
        return username;
        }
    public void doGet(HttpServletRequest request, HttpServletResponse
response)
        throws ServletException, IOException
        {
        // If it is a Get request, forward to doPost
        doPost(request, response);
        }
    public void doPost(HttpServletRequest request, HttpServletResponse
response)
        throws ServletException, IOException
        {
        // Get user name and password:
        String username= request.getParameter("username");
        String password= request.getParameter("password");
        String user= getUser(username, password);
        // Add fake user to the request
        request.setAttribute("USER", user);
        ServletContext context= getServletContext();
        RequestDispatcher dispatcher= context.getRequestDispatcher(target);
//target defined above
        dispatcher.forward(request, response);
        }
    }
***************************************************
Here is the source for my web.xml file:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">

<web-app>
<servlet>
    <servlet-name>login</servlet-name>
    <servlet-class>UserConfig.login</servlet-class>
</servlet>
<servlet-mapping>
    <servlet-name>login</servlet-name>
    <url-pattern>/servlet/login</url-pattern>
</servlet-mapping>
</web-app>
*******************************************************

As can be seen, all this is very simple, my very first Tomcat web app.  I
have
followed the instructions in

http://tomcat.apache.org/tomcat-5.5-doc/appdev/index.html

When I go to http://localhost:8180/smsinfo/login.jsp, I get the form, input
some text, then get the following screen from tomcat:

HTTP Status 404 - /smsinfo/WEB-INF/classes/UserConfig.login

Type: Status report

Message: /smsinfo/WEB-INF/classes/UserConfig.login

Description: The requested resource
(/smsinfo/WEB-INF/classes/UserConfig.login) is not available.
Apache Tomcat/5.0
*****************************************************

I've been screwing around with this for days, reading books and the web
help,
but can't find out what's wrong.  Any help is greatly appreciated.

TIA and regards,
anw


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


Re: Directory Structure and Can't Find Resources in Tomcat

Posted by Gregg Leichtman <gs...@erols.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Try putting your webapp under:

docroot= /usr/share/tomcat5/webapps/ROOT/smsinfo

  -=> Gregg <=-

Mladen Adamovic wrote:
> I would suggest you to install and work with Netbeans 5.0. Netbeans
> 5.0 have bundled Tomcat which work out of the box. Than you will not
> have problems like these before deployment.
>
> Allen Williams wrote:
>> Well, I can't figure out this directory structure and finding stuff
>> at all.
>> 
>> Here are my directory listings
>>
>> docroot= /usr/share/tomcat5/webapps/smsinfo
>> *******************************************
>> anw-dev:/usr/share/tomcat5/webapps/smsinfo$ ls -laF
>> total 20
>> drwxr-xr-x  3 anw     root 4096 2006-05-19 21:14 ./
>> drwxr-xr-x  9 tomcat5 root 4096 2006-05-13 16:10 ../
>> -rw-r--r--  1 anw     anw   564 2006-05-19 21:20 login.jsp
>> drwxr-xr-x  4 anw     anw  4096 2006-05-19 21:15 WEB-INF/
>> -rw-r--r--  1 anw     anw   241 2006-05-19 21:20 welcome.jsp
>>
>> ********************************************
>> anw-dev:/usr/share/tomcat5/webapps/smsinfo/WEB-INF$ ls -laF
>> total 20
>> drwxr-xr-x  4 anw anw  4096 2006-05-19 21:15 ./
>> drwxr-xr-x  3 anw root 4096 2006-05-19 21:14 ../
>> drwxr-xr-x  3 anw root 4096 2006-05-18 20:27 classes/
>> drwxr-xr-x  2 anw root 4096 2006-05-13 15:49 lib/
>> -rw-r--r--  1 anw anw   440 2006-05-19 21:18 web.xml
>>
>> (lib is empty)
>> ***********************************************
>> anw-dev:/usr/share/tomcat5/webapps/smsinfo/WEB-INF/classes$ ls -laF
>> total 12
>> drwxr-xr-x  3 anw root 4096 2006-05-18 20:27 ./
>> drwxr-xr-x  4 anw anw  4096 2006-05-19 21:15 ../
>> drwxr-xr-x  2 anw root 4096 2006-05-18 20:27 UserConfig/
>> *************************************************
>> anw-dev:/usr/share/tomcat5/webapps/smsinfo/WEB-INF/classes/UserConfig$
>> ls -laF
>> total 12
>> drwxr-xr-x  2 anw root 4096 2006-05-18 20:27 ./
>> drwxr-xr-x  3 anw root 4096 2006-05-18 20:27 ../
>> -rwxr-xr-x  1 anw root 1322 2006-05-19 21:18 login.class*
>> *************************************************
>>
>> Here is the source to login.jsp (located in docroot,
>> /usr/share/tomcat5/webapps/smsinfo):
>>
>> <html>
>> <head>
>>         <title>SMS Information Transfer Login Page</title>
>>         <meta http-equiv="Content-Type" content="text/html;
>> charset=iso-8859-1">
>> </head>
>>
>> <body bgcolor="#FFFFFF" onload="document.loginForm.username.focus()">
>>         <!-- form name="loginForm" method="post"
>> action="/servlet/UserConfig.login" -->
>>         <form name="loginForm" method="post"
>> action="WEB-INF/classes/UserConfig.login">
>>                 <p>User Name:<input type="text" name="username"></p>
>>                 <p>Password:<input type="password"
>> name="password"></p>
>>                 <p><input type="Submit" name="Submit"></p>
>>         </form>
>> </body>
>> </html>
>>
>> *************************************************
>> Here is the source to login.class:
>>
>> package UserConfig;
>>
>> import javax.servlet.*;
>> import javax.servlet.http.*;
>> import java.io.*;
>> import java.util.*;
>>
>> public class login extends HttpServlet
>>     {
>>     private String target="/welcome.jsp";
>>     private String getUser(String username, String password)
>>         {
>>         return username;
>>         }
>>     public void doGet(HttpServletRequest request, HttpServletResponse
>> response)
>>         throws ServletException, IOException
>>         {
>>         // If it is a Get request, forward to doPost
>>         doPost(request, response);
>>         }
>>     public void doPost(HttpServletRequest request, HttpServletResponse
>> response)
>>         throws ServletException, IOException
>>         {
>>         // Get user name and password:
>>         String username= request.getParameter("username");
>>         String password= request.getParameter("password");
>>         String user= getUser(username, password);
>>         // Add fake user to the request
>>         request.setAttribute("USER", user);
>>         ServletContext context= getServletContext();
>>         RequestDispatcher dispatcher=
>> context.getRequestDispatcher(target);
>> //target defined above
>>         dispatcher.forward(request, response);
>>         }
>>     }
>> ***************************************************
>> Here is the source for my web.xml file:
>>
>> <?xml version="1.0" encoding="ISO-8859-1"?>
>>
>> <!DOCTYPE web-app
>>     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>>     "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
>>
>> <web-app>
>> <servlet>
>>     <servlet-name>login</servlet-name>
>>     <servlet-class>UserConfig.login</servlet-class>
>> </servlet>
>> <servlet-mapping>
>>     <servlet-name>login</servlet-name>
>>     <url-pattern>/servlet/login</url-pattern>
>> </servlet-mapping>
>> </web-app>
>> *******************************************************
>>
>> As can be seen, all this is very simple, my very first Tomcat web
>> app.  I
>> have
>> followed the instructions in
>>
>> http://tomcat.apache.org/tomcat-5.5-doc/appdev/index.html
>>
>> When I go to http://localhost:8180/smsinfo/login.jsp, I get the
>> form, input
>> some text, then get the following screen from tomcat:
>>
>> HTTP Status 404 - /smsinfo/WEB-INF/classes/UserConfig.login
>>
>> Type: Status report
>>
>> Message: /smsinfo/WEB-INF/classes/UserConfig.login
>>
>> Description: The requested resource
>> (/smsinfo/WEB-INF/classes/UserConfig.login) is not available.
>> Apache Tomcat/5.0
>> *****************************************************
>>
>> I've been screwing around with this for days, reading books and the
>> web
>> help,
>> but can't find out what's wrong.  Any help is greatly appreciated.
>>
>> TIA and regards,
>> anw
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>>  
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEbvbWMcSsEtbyA2cRAtxNAJ0Uk/vsQXZx4ao/95rqW9yeNqdOSACZAelz
29EquM0PPbFTTpASfv6yJUE=
=w+ty
-----END PGP SIGNATURE-----

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


RE: Directory Structure and Can't Find Resources in Tomcat

Posted by Allen Williams <an...@csunv.com>.
The problem with that approach (admittedly valid if all you care about is
getting something working) is that I'm doing this for the educational value,
and really want to understand how this works and what I'm doing wrong.

Actually, for other Java development, I have used Netbeans, and like it.

Thanks for the help, though.

-----Original Message-----
From: Mladen Adamovic [mailto:adamm@blic.net]
Sent: Saturday, May 20, 2006 2:29 AM
To: Tomcat Users List
Subject: Re: Directory Structure and Can't Find Resources in Tomcat


I would suggest you to install and work with Netbeans 5.0. Netbeans 5.0
have bundled Tomcat which work out of the box. Than you will not have
problems like these before deployment.

Allen Williams wrote:
> Well, I can't figure out this directory structure and finding stuff at
all.
>
> Here are my directory listings
>
> docroot= /usr/share/tomcat5/webapps/smsinfo
> *******************************************
> anw-dev:/usr/share/tomcat5/webapps/smsinfo$ ls -laF
> total 20
> drwxr-xr-x  3 anw     root 4096 2006-05-19 21:14 ./
> drwxr-xr-x  9 tomcat5 root 4096 2006-05-13 16:10 ../
> -rw-r--r--  1 anw     anw   564 2006-05-19 21:20 login.jsp
> drwxr-xr-x  4 anw     anw  4096 2006-05-19 21:15 WEB-INF/
> -rw-r--r--  1 anw     anw   241 2006-05-19 21:20 welcome.jsp
>
> ********************************************
> anw-dev:/usr/share/tomcat5/webapps/smsinfo/WEB-INF$ ls -laF
> total 20
> drwxr-xr-x  4 anw anw  4096 2006-05-19 21:15 ./
> drwxr-xr-x  3 anw root 4096 2006-05-19 21:14 ../
> drwxr-xr-x  3 anw root 4096 2006-05-18 20:27 classes/
> drwxr-xr-x  2 anw root 4096 2006-05-13 15:49 lib/
> -rw-r--r--  1 anw anw   440 2006-05-19 21:18 web.xml
>
> (lib is empty)
> ***********************************************
> anw-dev:/usr/share/tomcat5/webapps/smsinfo/WEB-INF/classes$ ls -laF
> total 12
> drwxr-xr-x  3 anw root 4096 2006-05-18 20:27 ./
> drwxr-xr-x  4 anw anw  4096 2006-05-19 21:15 ../
> drwxr-xr-x  2 anw root 4096 2006-05-18 20:27 UserConfig/
> *************************************************
> anw-dev:/usr/share/tomcat5/webapps/smsinfo/WEB-INF/classes/UserConfig$
> ls -laF
> total 12
> drwxr-xr-x  2 anw root 4096 2006-05-18 20:27 ./
> drwxr-xr-x  3 anw root 4096 2006-05-18 20:27 ../
> -rwxr-xr-x  1 anw root 1322 2006-05-19 21:18 login.class*
> *************************************************
>
> Here is the source to login.jsp (located in docroot,
> /usr/share/tomcat5/webapps/smsinfo):
>
> <html>
> <head>
>         <title>SMS Information Transfer Login Page</title>
>         <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
> </head>
>
> <body bgcolor="#FFFFFF" onload="document.loginForm.username.focus()">
>         <!-- form name="loginForm" method="post"
> action="/servlet/UserConfig.login" -->
>         <form name="loginForm" method="post"
> action="WEB-INF/classes/UserConfig.login">
>                 <p>User Name:<input type="text" name="username"></p>
>                 <p>Password:<input type="password" name="password"></p>
>                 <p><input type="Submit" name="Submit"></p>
>         </form>
> </body>
> </html>
>
> *************************************************
> Here is the source to login.class:
>
> package UserConfig;
>
> import javax.servlet.*;
> import javax.servlet.http.*;
> import java.io.*;
> import java.util.*;
>
> public class login extends HttpServlet
>     {
>     private String target="/welcome.jsp";
>     private String getUser(String username, String password)
>         {
>         return username;
>         }
>     public void doGet(HttpServletRequest request, HttpServletResponse
> response)
>         throws ServletException, IOException
>         {
>         // If it is a Get request, forward to doPost
>         doPost(request, response);
>         }
>     public void doPost(HttpServletRequest request, HttpServletResponse
> response)
>         throws ServletException, IOException
>         {
>         // Get user name and password:
>         String username= request.getParameter("username");
>         String password= request.getParameter("password");
>         String user= getUser(username, password);
>         // Add fake user to the request
>         request.setAttribute("USER", user);
>         ServletContext context= getServletContext();
>         RequestDispatcher dispatcher=
context.getRequestDispatcher(target);
> //target defined above
>         dispatcher.forward(request, response);
>         }
>     }
> ***************************************************
> Here is the source for my web.xml file:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <!DOCTYPE web-app
>     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>     "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
>
> <web-app>
> <servlet>
>     <servlet-name>login</servlet-name>
>     <servlet-class>UserConfig.login</servlet-class>
> </servlet>
> <servlet-mapping>
>     <servlet-name>login</servlet-name>
>     <url-pattern>/servlet/login</url-pattern>
> </servlet-mapping>
> </web-app>
> *******************************************************
>
> As can be seen, all this is very simple, my very first Tomcat web app.  I
> have
> followed the instructions in
>
> http://tomcat.apache.org/tomcat-5.5-doc/appdev/index.html
>
> When I go to http://localhost:8180/smsinfo/login.jsp, I get the form,
input
> some text, then get the following screen from tomcat:
>
> HTTP Status 404 - /smsinfo/WEB-INF/classes/UserConfig.login
>
> Type: Status report
>
> Message: /smsinfo/WEB-INF/classes/UserConfig.login
>
> Description: The requested resource
> (/smsinfo/WEB-INF/classes/UserConfig.login) is not available.
> Apache Tomcat/5.0
> *****************************************************
>
> I've been screwing around with this for days, reading books and the web
> help,
> but can't find out what's wrong.  Any help is greatly appreciated.
>
> TIA and regards,
> anw
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>

--
Mladen Adamovic
http://home.blic.net/adamm
http://www.shortopedia.com
http://www.froola.com


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


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


Re: Directory Structure and Can't Find Resources in Tomcat

Posted by Mladen Adamovic <ad...@blic.net>.
I would suggest you to install and work with Netbeans 5.0. Netbeans 5.0 
have bundled Tomcat which work out of the box. Than you will not have 
problems like these before deployment.

Allen Williams wrote:
> Well, I can't figure out this directory structure and finding stuff at all.
>  
> Here are my directory listings
>
> docroot= /usr/share/tomcat5/webapps/smsinfo
> *******************************************
> anw-dev:/usr/share/tomcat5/webapps/smsinfo$ ls -laF
> total 20
> drwxr-xr-x  3 anw     root 4096 2006-05-19 21:14 ./
> drwxr-xr-x  9 tomcat5 root 4096 2006-05-13 16:10 ../
> -rw-r--r--  1 anw     anw   564 2006-05-19 21:20 login.jsp
> drwxr-xr-x  4 anw     anw  4096 2006-05-19 21:15 WEB-INF/
> -rw-r--r--  1 anw     anw   241 2006-05-19 21:20 welcome.jsp
>
> ********************************************
> anw-dev:/usr/share/tomcat5/webapps/smsinfo/WEB-INF$ ls -laF
> total 20
> drwxr-xr-x  4 anw anw  4096 2006-05-19 21:15 ./
> drwxr-xr-x  3 anw root 4096 2006-05-19 21:14 ../
> drwxr-xr-x  3 anw root 4096 2006-05-18 20:27 classes/
> drwxr-xr-x  2 anw root 4096 2006-05-13 15:49 lib/
> -rw-r--r--  1 anw anw   440 2006-05-19 21:18 web.xml
>
> (lib is empty)
> ***********************************************
> anw-dev:/usr/share/tomcat5/webapps/smsinfo/WEB-INF/classes$ ls -laF
> total 12
> drwxr-xr-x  3 anw root 4096 2006-05-18 20:27 ./
> drwxr-xr-x  4 anw anw  4096 2006-05-19 21:15 ../
> drwxr-xr-x  2 anw root 4096 2006-05-18 20:27 UserConfig/
> *************************************************
> anw-dev:/usr/share/tomcat5/webapps/smsinfo/WEB-INF/classes/UserConfig$
> ls -laF
> total 12
> drwxr-xr-x  2 anw root 4096 2006-05-18 20:27 ./
> drwxr-xr-x  3 anw root 4096 2006-05-18 20:27 ../
> -rwxr-xr-x  1 anw root 1322 2006-05-19 21:18 login.class*
> *************************************************
>
> Here is the source to login.jsp (located in docroot,
> /usr/share/tomcat5/webapps/smsinfo):
>
> <html>
> <head>
>         <title>SMS Information Transfer Login Page</title>
>         <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
> </head>
>
> <body bgcolor="#FFFFFF" onload="document.loginForm.username.focus()">
>         <!-- form name="loginForm" method="post"
> action="/servlet/UserConfig.login" -->
>         <form name="loginForm" method="post"
> action="WEB-INF/classes/UserConfig.login">
>                 <p>User Name:<input type="text" name="username"></p>
>                 <p>Password:<input type="password" name="password"></p>
>                 <p><input type="Submit" name="Submit"></p>
>         </form>
> </body>
> </html>
>
> *************************************************
> Here is the source to login.class:
>
> package UserConfig;
>
> import javax.servlet.*;
> import javax.servlet.http.*;
> import java.io.*;
> import java.util.*;
>
> public class login extends HttpServlet
>     {
>     private String target="/welcome.jsp";
>     private String getUser(String username, String password)
>         {
>         return username;
>         }
>     public void doGet(HttpServletRequest request, HttpServletResponse
> response)
>         throws ServletException, IOException
>         {
>         // If it is a Get request, forward to doPost
>         doPost(request, response);
>         }
>     public void doPost(HttpServletRequest request, HttpServletResponse
> response)
>         throws ServletException, IOException
>         {
>         // Get user name and password:
>         String username= request.getParameter("username");
>         String password= request.getParameter("password");
>         String user= getUser(username, password);
>         // Add fake user to the request
>         request.setAttribute("USER", user);
>         ServletContext context= getServletContext();
>         RequestDispatcher dispatcher= context.getRequestDispatcher(target);
> //target defined above
>         dispatcher.forward(request, response);
>         }
>     }
> ***************************************************
> Here is the source for my web.xml file:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <!DOCTYPE web-app
>     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>     "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
>
> <web-app>
> <servlet>
>     <servlet-name>login</servlet-name>
>     <servlet-class>UserConfig.login</servlet-class>
> </servlet>
> <servlet-mapping>
>     <servlet-name>login</servlet-name>
>     <url-pattern>/servlet/login</url-pattern>
> </servlet-mapping>
> </web-app>
> *******************************************************
>
> As can be seen, all this is very simple, my very first Tomcat web app.  I
> have
> followed the instructions in
>
> http://tomcat.apache.org/tomcat-5.5-doc/appdev/index.html
>
> When I go to http://localhost:8180/smsinfo/login.jsp, I get the form, input
> some text, then get the following screen from tomcat:
>
> HTTP Status 404 - /smsinfo/WEB-INF/classes/UserConfig.login
>
> Type: Status report
>
> Message: /smsinfo/WEB-INF/classes/UserConfig.login
>
> Description: The requested resource
> (/smsinfo/WEB-INF/classes/UserConfig.login) is not available.
> Apache Tomcat/5.0
> *****************************************************
>
> I've been screwing around with this for days, reading books and the web
> help,
> but can't find out what's wrong.  Any help is greatly appreciated.
>
> TIA and regards,
> anw
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>   

-- 
Mladen Adamovic
http://home.blic.net/adamm
http://www.shortopedia.com 
http://www.froola.com 


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


Re: Directory Structure and Can't Find Resources in Tomcat

Posted by Hassan Schroeder <ha...@gmail.com>.
On 5/21/06, Allen Williams <an...@csunv.com> wrote:

> I don't really have a burning need, but would consider it educational

So's putting your hand on a hot stove burner; the value of the lesson
is yours to decide :-)

> ... was laboring under the impression (rightly or wrongly)
> that it would increase performance because Apache was better
> at static content

An out-of-date assumption; again, check the archives for more recent
discussion on that. I have one very graphics-intensive site in production
and see no responsiveness issues.

>  Would it change the argument if I was hosting multiple,
> independent,  disparate virtual hosts?

No; fronting with Apache httpd is even more of a PITA in that case.

> Would the fact I was using a second IP make a difference in the ease
> of configuration and/or maintenance?

The second IP approach is only suggested if you *need* httpd for some
non-Java applications. Keeping them totally separate from your Tomcat
installation seems a lot easier (more maintainable) to me. YMMV. :-)

HTH!
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

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


RE: Directory Structure and Can't Find Resources in Tomcat

Posted by Allen Williams <an...@csunv.com>.

> -----Original Message-----
> From: Hassan Schroeder [mailto:hassan.schroeder@gmail.com]
> Sent: Sunday, May 21, 2006 4:02 PM
> To: Tomcat Users List
> Subject: Re: Directory Structure and Can't Find Resources in Tomcat
	<snip>
	</snip>
> > Also, now that I have this rudimentary piece of code working, I
> am off to
> > integrate Apache and Tomcat. I started doing this last year,
> spent about a
> > week on it and never got it quite working, but had to leave.  Any good
> > references there?
>
> Do you have a burning *need* to do this (*must* run PHP, FastCGI for
> Rails, or some such)? If not, I'd say don't do it :-)   And if
> you must, get
> a second IP and run Apache httpd separately on that.

I don't really have a burning need, but would consider it educational (is
this
a good reason?;-) and was laboring under the impression (rightly or wrongly)
that
it would increase performance because Apache was better at static content
than
Tomcat.  Would it change the argument if I was hosting multiple,
independent,
disparate virtual hosts?

Would the fact I was using a second IP make a difference in the ease of
configuration
and/or maintenance?

Again, thanks a lot!

>
> Regardless, good luck,
> --
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org


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


Re: Directory Structure and Can't Find Resources in Tomcat

Posted by Hassan Schroeder <ha...@gmail.com>.
On 5/21/06, Allen Williams <an...@csunv.com> wrote:

> Do you know where I can find a GOOD reference on how Tomcat resolves that
> stuff?  I've looked at most of the "official" docs, and a lot of stuff on
> the web, but they more or less allude to it peripherally, as though it is
> already understood.  This will be particularly important in the future, when
> I plan to set up multiple virtual servers.

I've pretty much relied on  the servlet spec and the Tomcat docs -- it's
too easy to find other resources (i.e., books, tutorials, whatever) that are
simply out of date, and hence actually detrimental to understanding.

> Also, now that I have this rudimentary piece of code working, I am off to
> integrate Apache and Tomcat. I started doing this last year, spent about a
> week on it and never got it quite working, but had to leave.  Any good
> references there?

Do you have a burning *need* to do this (*must* run PHP, FastCGI for
Rails, or some such)? If not, I'd say don't do it :-)   And if you must, get
a second IP and run Apache httpd separately on that.

The list archives are full of discussion on this -- that may help you decide.

Regardless, good luck,
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

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


Re: Tomcat Web Statistics program for Linux (free, java preffered)

Posted by Mark Thomas <ma...@apache.org>.
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-user-owner

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


Tomcat Web Statistics program for Linux (free, java preffered)

Posted by Mladen Adamovic <ad...@blic.net>.
Hi!

I tried to find good free web statistics program for Tomcat.
AKA Log Analyzer.
I'm running standalone Tomcat (without Apache).
Any recommandation?

I would prefer Java solution.
I know about AwStats, but so far it don't work properly. Probably I 
would be able to configure it properly but maybe you will recommend me 
something other.

I googled for 2 hours but I haven't found any Java solution.

Thank you.




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


RE: Directory Structure and Can't Find Resources in Tomcat

Posted by Allen Williams <an...@csunv.com>.
Ha!  That was it!  It now works just as expected.  Thanks a million!!!!

Do you know where I can find a GOOD reference on how Tomcat resolves that
stuff?  I've looked at most of the "official" docs, and a lot of stuff on
the web, but they more or less allude to it peripherally, as though it is
already understood.  This will be particularly important in the future, when
I plan to set up multiple virtual servers.

Also, now that I have this rudimentary piece of code working, I am off to
integrate Apache and Tomcat. I started doing this last year, spent about a
week on it and never got it quite working, but had to leave.  Any good
references there?

Thanks again!!!  Hopefully, before long, I'll know enough to contribute.

-----Original Message-----
From: Hassan Schroeder [mailto:hassan.schroeder@gmail.com]
Sent: Sunday, May 21, 2006 9:30 AM
To: Tomcat Users List
Subject: Re: Directory Structure and Can't Find Resources in Tomcat


On 5/20/06, Allen Williams <an...@csunv.com> wrote:
> Sorry, it didn't work.  Once again, in my browser I have:
>
> HTTP Status 404 - /login
> Description: The requested resource (/login) is not available.

> <form name="loginForm" method="post" action="/login">

Looking back at your original email -- is this your ROOT context?
If not -- if it's "smsinfo" -- then of course the above path has to
reflect that, e.g.

<form name="loginForm" method="post" action="/smsinfo/login">

The url-mapping in web.xml is relative to the context; HTML href or
form action attributes are relative to the server.

HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

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


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


Re: Directory Structure and Can't Find Resources in Tomcat

Posted by Hassan Schroeder <ha...@gmail.com>.
On 5/20/06, Allen Williams <an...@csunv.com> wrote:
> Sorry, it didn't work.  Once again, in my browser I have:
>
> HTTP Status 404 - /login
> Description: The requested resource (/login) is not available.

> <form name="loginForm" method="post" action="/login">

Looking back at your original email -- is this your ROOT context?
If not -- if it's "smsinfo" -- then of course the above path has to
reflect that, e.g.

<form name="loginForm" method="post" action="/smsinfo/login">

The url-mapping in web.xml is relative to the context; HTML href or
form action attributes are relative to the server.

HTH,
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

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


RE: Directory Structure and Can't Find Resources in Tomcat

Posted by Allen Williams <an...@csunv.com>.
So, I don't need 'action="servlet/login"', like the book I'm using said? 
Or, don't need 'action="classes/login"', like I might infer?

Thanks, I'll do the google you recommend, try it, and be back with you
in short order (or maybe tomorrow;-).

Thanks again!

-----Original Message-----
From: Hassan Schroeder [mailto:hassan.schroeder@gmail.com]
Sent: Saturday, May 20, 2006 2:19 PM
To: Tomcat Users List
Subject: Re: Directory Structure and Can't Find Resources in Tomcat


On 5/19/06, Allen Williams <an...@csunv.com> wrote:

>         <form name="loginForm" method="post"
> action="WEB-INF/classes/UserConfig.login">

You can't directly address something under WEB-INF; your action
should be something like `action="/login"` with a mapping in your
web.xml like

<servlet>
   <servlet-name>login</servlet-name>
   <servlet-class>UserConfig.login</servlet-class>
</servlet>
<servlet-mapping>
   <servlet-name>login</servlet-name>
   <url-pattern>/login</url-pattern>
</servlet-mapping>

Note: NO "/servlet" in there -- read the Tomcat doc or google for
"Tomcat invoker servlet" to understand why...

HTH,
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

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

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


Re: Problem with Tomcat Unexpectedly Shutting Down

Posted by Hassan Schroeder <ha...@gmail.com>.
On 5/21/06, Dan Golob <zh...@zsolutionz.com> wrote:

> We are having a strange Tomcat issue on one of our client's machines.  The
> problem is that it shuts down randomly.  There is nothing in the Tomcat Log
> to indicate why this is occurring, and the Windows Event Manager simply
> states that the process "shut down unexpectedly".

What level of logging are you running? If not at DEBUG, you might
try  cranking that up -- generates a lot of data, so maybe rotate logs
hourly or so  :-)

Also, you might try running visualgc against that system; at least if
(when!) it dies again you'll have a snapshot of memory use leading
up to the end, which might offer some clues.

You could also use the Tomcat manager interface to grab status
from the system periodically for post-crash analysis.

HTH!
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

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


Re: Problem with Tomcat Unexpectedly Shutting Down

Posted by Martin Gainty <mg...@hotmail.com>.
Good Afternoon Dan

If your configuration mirrors everything about the clients environment 
(HW/SW JVM / OS / Memory /TCP/IP Stack/ Diskspace /installed 
utilities)environment (when I say everything I mean right to the letter 
grade version of JVM)
with the only EXCEPTION you are not running the balancer
AND you have run every burn-in and smoke test without so much as a hiccup 
with DEBUG LOGGING turned on
then the delta IS THE BALANCER there can be NO OTHER REASON

Talk to the vendor who sold them the balancer and ask their assistance 
.make sure you go straight to the engineers and write EVERYTHING down they 
say to do
and repreat it back to them
Install a fresh copy of the balancer which the company states is supported 
(dont get trapped by we only support version 1B and not 1A)

If for whatever reason the vendor isnt responsive (no answer in 48 hours) 
then notify the client that the balancer as 'unsupported' and must be backed 
out of the client's env
As a very necessary cya Get your managers to rework any documentation to 
specifically exclude items installed by foreign vendors
(A Foreign Vendor is anyone but yourself)

My undertstanding of balancer is that they balance the webapp software OR 
they are HW based in which case they can balance multiple hosts
I know someone that knows balancers quite well if you provide me the vendor 
name offline I'll ask him tommorrow

Good Luck/Viel Gluck
Martin --

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- 
From: "Dan Golob" <zh...@zsolutionz.com>
To: "'Tomcat Users List'" <us...@tomcat.apache.org>; "'Martin Gainty'" 
<mg...@hotmail.com>
Sent: Sunday, May 21, 2006 10:15 AM
Subject: RE: Problem with Tomcat Unexpectedly Shutting Down


> Hello Martin,
>
> The fact is our application is the only one running under tomcat. 
> However,
> again, it runs fine absolutely everywhere else.  As for the load balancer,
> the problem is that the client specifically paid for this feature and by
> shutting it off we will have to admit failure and refund the money.  So,
> this is kind of an option that the administration will not agree with, as
> you can probably imagine.
>
> To be honest, I too think that this is a problem with the load balancer, 
> but
> I have no way to prove it.  Is there something we need to do for the load
> balancer to work properly?  More importantly, is there a way to determine 
> if
> in fact the load balancer is causing the problem?  My lack of knowledge of
> Tomcat is one thing, but I have absolutely no knowledge of how a load
> balancer works at all.  The most interesting bit, the load balancer is
> active, but only on one machine ... meaning, it isn't actually balancing
> anything.
>
> However, the second installation that also went down does not have load
> balancing running on it.  This doesn't help my argument with the
> administration that this is truly a load balancing issue.  Please keep in
> mind that we have dozens of other installations running without any
> problems.
>
> Thanks for the response, it is greatly appreciated.
> Dan
>
>
>
>
>
> -----Original Message-----
> From: Martin Gainty [mailto:mgainty@hotmail.com]
> Sent: Sunday, May 21, 2006 3:09 PM
> To: Tomcat Users List
> Subject: Re: Problem with Tomcat Unexpectedly Shutting Down
>
> If you Start each webapp independently and note behaviour of the Tomcat
> engine can you determine which webapp is causing this malady?
> Specifically if you unload your balancer / restart Tomcat /does Tomcat
> Engine shutdown unexpectedly?
> Thanks,
> Martin --
>
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed.  If you have received this email message in error, please 
> notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy.  Thank you.
>
> ----- Original Message ----- 
> From: "Dan Golob" <zh...@zsolutionz.com>
> To: "'Tomcat Users List'" <us...@tomcat.apache.org>
> Sent: Sunday, May 21, 2006 7:03 AM
> Subject: Problem with Tomcat Unexpectedly Shutting Down
>
>
>> Hello Everyone,
>>
>> This is a repost of a prior error which was never solved.
>>
>> We are having a strange Tomcat issue on one of our client's machines. 
>> The
>> problem is that it shuts down randomly.  There is nothing in the Tomcat
>> Log
>> to indicate why this is occurring, and the Windows Event Manager simply
>> states that the process "shut down unexpectedly".  We have tried
>> recreating
>> this problem in-house, but have absolutely no luck.
>>
>> We are running tomcat 5.0.27 and Java 1.4.2_06.  The machine that this is
>> installed on is Windows 2003 with all the latest updates.  Tomcat is
>> running
>> in standalone mode, meaning without Apache.  One other thing to note, 
>> this
>> installation of tomcat is using Load balancing.
>>
>> If anyone can point me in a direction of where to look, it would be very
>> helpful.  I have scoured the internet and newsgroups but can't find a
>> similar problem anywhere.
>>
>> Recently, another installation of ours shut down with the exact same
>> problem.  We have avoided reinstalling everything because we weren't
>> convinced that this would solve anything.  During our research we came up
>> with a great number of leads, but none of them seemed to work.  Please, 
>> if
>> you have any information as to how to solve this problem, or even where 
>> to
>> look for more information it would be most helpful.  We are primarily
>> developers with very little knowledge of Tomcat as a whole, so we are
>> struggling to find a solution.
>>
>> Thanks in advance
>> Dan
>>
>>
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
> 

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


RE: Problem with Tomcat Unexpectedly Shutting Down

Posted by Dan Golob <zh...@zsolutionz.com>.
Hello Martin,

The fact is our application is the only one running under tomcat.  However,
again, it runs fine absolutely everywhere else.  As for the load balancer,
the problem is that the client specifically paid for this feature and by
shutting it off we will have to admit failure and refund the money.  So,
this is kind of an option that the administration will not agree with, as
you can probably imagine.

To be honest, I too think that this is a problem with the load balancer, but
I have no way to prove it.  Is there something we need to do for the load
balancer to work properly?  More importantly, is there a way to determine if
in fact the load balancer is causing the problem?  My lack of knowledge of
Tomcat is one thing, but I have absolutely no knowledge of how a load
balancer works at all.  The most interesting bit, the load balancer is
active, but only on one machine ... meaning, it isn't actually balancing
anything.

However, the second installation that also went down does not have load
balancing running on it.  This doesn't help my argument with the
administration that this is truly a load balancing issue.  Please keep in
mind that we have dozens of other installations running without any
problems.  

Thanks for the response, it is greatly appreciated.
Dan





-----Original Message-----
From: Martin Gainty [mailto:mgainty@hotmail.com] 
Sent: Sunday, May 21, 2006 3:09 PM
To: Tomcat Users List
Subject: Re: Problem with Tomcat Unexpectedly Shutting Down

If you Start each webapp independently and note behaviour of the Tomcat 
engine can you determine which webapp is causing this malady?
Specifically if you unload your balancer / restart Tomcat /does Tomcat 
Engine shutdown unexpectedly?
Thanks,
Martin --

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- 
From: "Dan Golob" <zh...@zsolutionz.com>
To: "'Tomcat Users List'" <us...@tomcat.apache.org>
Sent: Sunday, May 21, 2006 7:03 AM
Subject: Problem with Tomcat Unexpectedly Shutting Down


> Hello Everyone,
>
> This is a repost of a prior error which was never solved.
>
> We are having a strange Tomcat issue on one of our client's machines.  The
> problem is that it shuts down randomly.  There is nothing in the Tomcat 
> Log
> to indicate why this is occurring, and the Windows Event Manager simply
> states that the process "shut down unexpectedly".  We have tried 
> recreating
> this problem in-house, but have absolutely no luck.
>
> We are running tomcat 5.0.27 and Java 1.4.2_06.  The machine that this is
> installed on is Windows 2003 with all the latest updates.  Tomcat is 
> running
> in standalone mode, meaning without Apache.  One other thing to note, this
> installation of tomcat is using Load balancing.
>
> If anyone can point me in a direction of where to look, it would be very
> helpful.  I have scoured the internet and newsgroups but can't find a
> similar problem anywhere.
>
> Recently, another installation of ours shut down with the exact same
> problem.  We have avoided reinstalling everything because we weren't
> convinced that this would solve anything.  During our research we came up
> with a great number of leads, but none of them seemed to work.  Please, if
> you have any information as to how to solve this problem, or even where to
> look for more information it would be most helpful.  We are primarily
> developers with very little knowledge of Tomcat as a whole, so we are
> struggling to find a solution.
>
> Thanks in advance
> Dan
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 

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





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


Re: Problem with Tomcat Unexpectedly Shutting Down

Posted by Martin Gainty <mg...@hotmail.com>.
If you Start each webapp independently and note behaviour of the Tomcat 
engine can you determine which webapp is causing this malady?
Specifically if you unload your balancer / restart Tomcat /does Tomcat 
Engine shutdown unexpectedly?
Thanks,
Martin --

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- 
From: "Dan Golob" <zh...@zsolutionz.com>
To: "'Tomcat Users List'" <us...@tomcat.apache.org>
Sent: Sunday, May 21, 2006 7:03 AM
Subject: Problem with Tomcat Unexpectedly Shutting Down


> Hello Everyone,
>
> This is a repost of a prior error which was never solved.
>
> We are having a strange Tomcat issue on one of our client's machines.  The
> problem is that it shuts down randomly.  There is nothing in the Tomcat 
> Log
> to indicate why this is occurring, and the Windows Event Manager simply
> states that the process "shut down unexpectedly".  We have tried 
> recreating
> this problem in-house, but have absolutely no luck.
>
> We are running tomcat 5.0.27 and Java 1.4.2_06.  The machine that this is
> installed on is Windows 2003 with all the latest updates.  Tomcat is 
> running
> in standalone mode, meaning without Apache.  One other thing to note, this
> installation of tomcat is using Load balancing.
>
> If anyone can point me in a direction of where to look, it would be very
> helpful.  I have scoured the internet and newsgroups but can't find a
> similar problem anywhere.
>
> Recently, another installation of ours shut down with the exact same
> problem.  We have avoided reinstalling everything because we weren't
> convinced that this would solve anything.  During our research we came up
> with a great number of leads, but none of them seemed to work.  Please, if
> you have any information as to how to solve this problem, or even where to
> look for more information it would be most helpful.  We are primarily
> developers with very little knowledge of Tomcat as a whole, so we are
> struggling to find a solution.
>
> Thanks in advance
> Dan
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 

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


Re: Problem with Tomcat Unexpectedly Shutting Down

Posted by Mark Thomas <ma...@apache.org>.
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-user-owner

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


Problem with Tomcat Unexpectedly Shutting Down

Posted by Dan Golob <zh...@zsolutionz.com>.
Hello Everyone,

This is a repost of a prior error which was never solved.  

We are having a strange Tomcat issue on one of our client's machines.  The
problem is that it shuts down randomly.  There is nothing in the Tomcat Log
to indicate why this is occurring, and the Windows Event Manager simply
states that the process "shut down unexpectedly".  We have tried recreating
this problem in-house, but have absolutely no luck.

We are running tomcat 5.0.27 and Java 1.4.2_06.  The machine that this is
installed on is Windows 2003 with all the latest updates.  Tomcat is running
in standalone mode, meaning without Apache.  One other thing to note, this
installation of tomcat is using Load balancing.

If anyone can point me in a direction of where to look, it would be very
helpful.  I have scoured the internet and newsgroups but can't find a
similar problem anywhere.

Recently, another installation of ours shut down with the exact same
problem.  We have avoided reinstalling everything because we weren't
convinced that this would solve anything.  During our research we came up
with a great number of leads, but none of them seemed to work.  Please, if
you have any information as to how to solve this problem, or even where to
look for more information it would be most helpful.  We are primarily
developers with very little knowledge of Tomcat as a whole, so we are
struggling to find a solution.

Thanks in advance
Dan







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


RE: Directory Structure and Can't Find Resources in Tomcat

Posted by Allen Williams <an...@csunv.com>.
Sorry, it didn't work.  Once again, in my browser I have:

HTTP Status 404 - /login
Type: Status report
Message: /login
Description: The requested resource (/login) is not available.
Apache Tomcat/5.0
*************************************
Here is the suggested line directly from my login.jsp:

<form name="loginForm" method="post" action="/login">
*************************************
Here is my entire web.xml file:

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">

<web-app>
<servlet>
    <servlet-name>login</servlet-name>
    <servlet-class>UserConfig.login</servlet-class>
</servlet>
<servlet-mapping>
    <servlet-name>login</servlet-name>
    <!-- url-pattern>/servlet/login</url-pattern -->
    <url-pattern>/login</url-pattern>
</servlet-mapping>
</web-app>

All the rest (directory structure, etc.) is as in my first post.

-----Original Message-----
From: Hassan Schroeder [mailto:hassan.schroeder@gmail.com]
Sent: Saturday, May 20, 2006 2:19 PM
To: Tomcat Users List
Subject: Re: Directory Structure and Can't Find Resources in Tomcat


On 5/19/06, Allen Williams <an...@csunv.com> wrote:

>         <form name="loginForm" method="post"
> action="WEB-INF/classes/UserConfig.login">

You can't directly address something under WEB-INF; your action
should be something like `action="/login"` with a mapping in your
web.xml like

<servlet>
   <servlet-name>login</servlet-name>
   <servlet-class>UserConfig.login</servlet-class>
</servlet>
<servlet-mapping>
   <servlet-name>login</servlet-name>
   <url-pattern>/login</url-pattern>
</servlet-mapping>

Note: NO "/servlet" in there -- read the Tomcat doc or google for
"Tomcat invoker servlet" to understand why...

HTH,
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

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

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


Re: Directory Structure and Can't Find Resources in Tomcat

Posted by Hassan Schroeder <ha...@gmail.com>.
On 5/19/06, Allen Williams <an...@csunv.com> wrote:

>         <form name="loginForm" method="post"
> action="WEB-INF/classes/UserConfig.login">

You can't directly address something under WEB-INF; your action
should be something like `action="/login"` with a mapping in your
web.xml like

<servlet>
   <servlet-name>login</servlet-name>
   <servlet-class>UserConfig.login</servlet-class>
</servlet>
<servlet-mapping>
   <servlet-name>login</servlet-name>
   <url-pattern>/login</url-pattern>
</servlet-mapping>

Note: NO "/servlet" in there -- read the Tomcat doc or google for
"Tomcat invoker servlet" to understand why...

HTH,
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

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