You're forgetting to begin the path to your Java file with a slash: "/home/pav/..."

Also, why are you including the "classes" directory in your classpath when compiling...?? This is the directory you are storing the compiled class files in. You need these files to run the program, but not to compile it because compiling it is what creates these files in the first place!

and it finally worked! Yet I am still confused why it didn't accept the -d directive?!!

Another amazing issue I've just found in this code is that now after it was compiled, and I've placed it exactly in the place they mentioned in the book, under tomcat/project directory/WEB-INF/classes when I try to load the project form using:

Check the startup logs for any errors. Oh, and use the same case in the URL that you use for the directory name--you've shown /Beer-V1 instead of /Beer-v1 as your directory listing shows.

thirun pavan
Greenhorn

Joined: Jun 27, 2007
Posts: 22

posted Aug 03, 2010 17:59:59

0

David Newton wrote:Check the startup logs for any errors. Oh, and use the same case in the URL that you use for the directory name--you've shown /Beer-V1 instead of /Beer-v1 as your directory listing shows.

Can you please elaborate what type of 'startup logs' you are pointing to? and if possible where they are located so that I can check them

I've already tried with /Beer-V1 and /Beer-v1 and even /beer-v1 and none of them worked

So any ideas?

Thanks in advance for your time and efforts

thirun pavan
Greenhorn

Joined: Jun 27, 2007
Posts: 22

posted Aug 04, 2010 03:02:05

0

David,

I've searched the web for any reference to 'start logs' under Tomcat, or java and couldn't find anything...so can you please elaborate what are those 'start logs'?

Tomcat has a log (two, actually) under the "logs" directory. If there are startup errors, they're in those logs. Knowing about logging is very important.

thirun pavan
Greenhorn

Joined: Jun 27, 2007
Posts: 22

posted Aug 04, 2010 07:24:32

0

Hi David,

I found two log files under /var/log/tomcat6/:

1. catalina.2010-08-03.log which happened to contain the following:

2. localhost.2010-08-03.log which happened to contain the following:

Keeping in consideration that I have no experience reading tomcat log files, I am not sure if it indicate any problem....so any idea what might be wrong in those log files? In other words doe they indicate any problem?