You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lizard Lizard <mr...@gmail.com> on 2008/04/02 18:02:31 UTC

N00b Installation Question

Greetings!

I am trying to setup/configure Tomcat 6.0 under Vista. I am mostly
following the examples in the Eclipse Cookbook.

Tomcat is running; I get the appropriate startup page when I go to
localhost:8080

However, I cannot get my first example to work properly. Here's all of
the relevant data:

This is the directory structure:

C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\VARiskWork\WEB-INF
In "classes", I have a folder called ExtenXLSTestbed. In that is a
file called ServletClass.class.
The class is in package ExtenXLSTestbed.

Here is my web.xml file, which is located in C:\Program Files\Apache
Software Foundation\Tomcat 6.0\webapps\VARiskWork\WEB-INF:

<?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/dtd/web-app_2_3.dtd">
<web-app>
	<display-name>Example Application</display-name>
	<servlet>
		<servlet-name>Servlet</servlet-name>
		<servlet-class>extenXLSTestbed.ServletClass</servlet-class>
	</servlet>
	<servlet-mapping>
		<servlet-name>Servlet</servlet-name>
		<url-pattern>/ServletClass</url-pattern>
	</servlet-mapping>
</web-app>

What am I missing? I'm sure it's painfully obvious, but I've wasted 2
hours now staring at "Resource not found" and looking for typos/case
sensitivity issues.

I have tried several variants on the URL, including
http://localhost:8080/VARiskWork/extenXLSTestbed.ServletClass
and
http://localhost:8080/VARiskWork/ServletClass
and
http://localhost:8080/ServletClass

all produce 'resource not found' errors.

Thanks in advance for any help.
-- 
=======================
Personal Blog: http://www.xanga.com/lizard_sf
Worldbuilding Blog: http://lizard-shatteredworld.blogspot.com/

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


Re: N00b Installation Question

Posted by Lizard Lizard <mr...@gmail.com>.
On Wed, Apr 2, 2008 at 12:06 PM, David Smith <dn...@cornell.edu> wrote:
> I'll give you a hint ... case matters.  Take a really close look at what
> you've setup in your web.xml and what you've named your servlet.
> extenXLSTestbed != ExtenXLSTestbed.
>

Gack. I kept looking for case errors -- I know it matters -- and kept
not seeing it.

Thank you. Let me try that.

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


Re: N00b Installation Question

Posted by Lizard Lizard <mr...@gmail.com>.
On Wed, Apr 2, 2008 at 1:10 PM, Caldarale, Charles R
<Ch...@unisys.com> wrote:
> > From: Lizard Lizard [mailto:mrlizard@gmail.com]
>  > Subject: Re: N00b Installation Question
>
> >
>  > I do not want a public server, I want it to only accept
>  > connections from localhost.
>
>  RTFM:
>  http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
>

Thanks for the pointer.

>  Set the address attribute of whatever <Connector> elements you have to
>  "127.0.0.1".
>

Got it. Thanks again.

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


RE: N00b Installation Question

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Lizard Lizard [mailto:mrlizard@gmail.com] 
> Subject: Re: N00b Installation Question
> 
> I do not want a public server, I want it to only accept
> connections from localhost.

RTFM:
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html

Set the address attribute of whatever <Connector> elements you have to
"127.0.0.1".

You may be able to do it with Norton as well, but I don't know how.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: N00b Installation Question

Posted by Lizard Lizard <mr...@gmail.com>.
I have solved the problem.

Norton was blocking connections. :)

Looking at the logs helped. Thanks for that suggestion. I have
unblocked it in Norton. Now I need to research the security issues
more; I do not want a public server, I want it to only accept
connections from localhost. Are there good FAQs for that?

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


Re: N00b Installation Question

Posted by David Smith <dn...@cornell.edu>.
In that case, you'll have to take a look at your logs for clues to 
what's happening.  Can you post relevant parts of your logs for when 
your webapp was started and when you tried to request the servlet?

--David

Lizard Lizard wrote:
> On Wed, Apr 2, 2008 at 12:06 PM, David Smith <dn...@cornell.edu> wrote:
>   
>> I'll give you a hint ... case matters.  Take a really close look at what
>> you've setup in your web.xml and what you've named your servlet.
>> extenXLSTestbed != ExtenXLSTestbed.
>>
>>     
>
> I double-checked; the typo was in my post to this list. :) The case is
> always lower case.
>
> Here's the exact declaration from the Java file:
> package extenXLSTestbed;
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>   


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


Re: N00b Installation Question

Posted by Lizard Lizard <mr...@gmail.com>.
On Wed, Apr 2, 2008 at 12:06 PM, David Smith <dn...@cornell.edu> wrote:
> I'll give you a hint ... case matters.  Take a really close look at what
> you've setup in your web.xml and what you've named your servlet.
> extenXLSTestbed != ExtenXLSTestbed.
>

I double-checked; the typo was in my post to this list. :) The case is
always lower case.

Here's the exact declaration from the Java file:
package extenXLSTestbed;

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


Re: N00b Installation Question

Posted by David Smith <dn...@cornell.edu>.
I'll give you a hint ... case matters.  Take a really close look at what 
you've setup in your web.xml and what you've named your servlet.  
extenXLSTestbed != ExtenXLSTestbed.

--David

Lizard Lizard wrote:
> Greetings!
>
> I am trying to setup/configure Tomcat 6.0 under Vista. I am mostly
> following the examples in the Eclipse Cookbook.
>
> Tomcat is running; I get the appropriate startup page when I go to
> localhost:8080
>
> However, I cannot get my first example to work properly. Here's all of
> the relevant data:
>
> This is the directory structure:
>
> C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\webapps\VARiskWork\WEB-INF
> In "classes", I have a folder called ExtenXLSTestbed. In that is a
> file called ServletClass.class.
> The class is in package ExtenXLSTestbed.
>
> Here is my web.xml file, which is located in C:\Program Files\Apache
> Software Foundation\Tomcat 6.0\webapps\VARiskWork\WEB-INF:
>
> <?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/dtd/web-app_2_3.dtd">
> <web-app>
> 	<display-name>Example Application</display-name>
> 	<servlet>
> 		<servlet-name>Servlet</servlet-name>
> 		<servlet-class>extenXLSTestbed.ServletClass</servlet-class>
> 	</servlet>
> 	<servlet-mapping>
> 		<servlet-name>Servlet</servlet-name>
> 		<url-pattern>/ServletClass</url-pattern>
> 	</servlet-mapping>
> </web-app>
>
> What am I missing? I'm sure it's painfully obvious, but I've wasted 2
> hours now staring at "Resource not found" and looking for typos/case
> sensitivity issues.
>
> I have tried several variants on the URL, including
> http://localhost:8080/VARiskWork/extenXLSTestbed.ServletClass
> and
> http://localhost:8080/VARiskWork/ServletClass
> and
> http://localhost:8080/ServletClass
>
> all produce 'resource not found' errors.
>
> Thanks in advance for any help.
>   


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


RE: N00b Installation Question

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Lizard Lizard [mailto:mrlizard@gmail.com] 
> Subject: N00b Installation Question
> 
> The class is in package ExtenXLSTestbed.
> 		
> <servlet-class>extenXLSTestbed.ServletClass</servlet-class>

Case matters.

> I have tried several variants on the URL, including
> http://localhost:8080/VARiskWork/ServletClass

Only the one listed above is appropriate, since it includes the app name
and the declared <url-pattern>.

Have you looked at the logs?

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org