Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

404 /listenerTest/Listen.do

 
Jerry Bustamente
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need some help if anyone has time.

I am on page 177 of HF trying to execute ListenTest.do

I've double and triple checked my source code for web.xml, Listener
Tester.java, Dog.java and MyServletCpntextListener.java.

I compiled the three classes, created the directory structure C:\jakarta-tomcat-5.5.4\webapps\listenerTest\WEB-INF\classes\com\example and put the three class files there and of course the web.xml file under WEB-INF.

My TOMCAT_HOME path reads C:\jakarta-tomcat-5.5.4

After starting and stopping Tomcat and typing into my browser:

http://localhost:8080/listenerTest/ListenTest.do and pressing Enter I get

HTTP Status 404 - /listenerTest/ListenTest.do

Two questions if I may.

1. Why is this error occuring.

2. Is the CLASSPATH even looked at at execution time or only at compile time?

Thank you for your help.

Sincerely

Jerry Bustamente
 
Baiju Mehta
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jerry,

If you could post your email address here, I can forward you my ListenTest code and you can try executing that on your computer. My code is executing correctly.

Thanks.
 
Jerry Bustamente
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
brmetha,

Thank you for your offer to help. My e-mail address is ggbusta@hotmail.com

Sincerely,

Jerry Bustamente
 
pdevi devi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the same problem too. I assume the listener is not loaded properly.
Can you please email the code at pdevip2003@yahoo.com

Thanks
pdevi
 
Manfred Herder
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I have the same problem. My Tomcat-Log says this:


But I don�t understand why the class can�t be found. I use the same deployment structure as described on page 176 (HeadFirst). So if someone know what is wrong... pleas post it hier

TIA,
Manfred
[ February 07, 2005: Message edited by: Manfred Herder ]
 
sangeeta kapoor
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try
set classpath=.;
 
Manfred Herder
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, but this is already done...
There must be another way.

Manfred
 
pdevi devi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone help us out.

Thanks,
pdevi
 
Jerry Bustamente
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gentlemen,

Thank you for continuing this conversation. I have posted a generic question regarding the tomcat environment - you might want to check that out. I do not have an answer there but just layed out my understanding of what my specific environment looks like including system variables.

I've also searched with Google using the words "tomcat directory structure" and found several promising documents which I printed off and will analyze tonight.

Of course if I solve the problem I will fully document it here for our benefit.

Sincerely,

Jerry Bustamente
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic