The HelloWorld.class file is also in
/usr/local/servlets/com/metricom/screens.  It compiles without error from
HelloWorld.java.  The top line of HelloWorld.java is the package line you
described "package com.metricom.modules.screens;".

I've gone ahead and removed the other repository directory from the
zone.properties (leaving only the /usr/local/servlets one) as you suggested:

Here is the diff from the Jserv default zone.properties:
# diff zone.properties.default zone.properties
25c25,26
< repositories=/usr/local/apache/servlets
---
> #repositories=/usr/local/apache/servlets
> repositories=/usr/local/servlets
134a136
>
servlet.Turbine.initArgs=properties=/usr/local/servlets/turbine/TurbineResou
rces.properties

Going to http://www.server.com/servlets/Turbine/screen/HelloWorld
(server=espresso in my case) results in the Turbine example login screen
(where I then type turbine/turbine) and get the "Welcome to the
DefaultScreen!" page.  I then retype the URL and get the error page.

I'm running the Apache-Turbine20000309 code if that makes any difference in
this (Solaris 7 with recommended patches, JSDK2.0, JDK 1.2.1_04,
Apache1.3.9+Raven1.4.2, Jserv-1.1).

I thought I was was fairly careful in following the directions to be honest
as I'm pretty new to Java servlets.




-----Original Message-----
From: jon * [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 12, 2000 7:50 PM
To: Turbine
Subject: Re: HelloWorld more like GoodByeCruelWorld for me... help?


on 3/12/00 5:49 PM, James Conley <[EMAIL PROTECTED]> wrote:

> The HelloWorld.java file is located in
> /usr/local/servlets/com/metricom/screens

Wait, where is your HelloWorld.class file?

> So, I think I covered the stuff you mentioned before except for the messed
> up classpath in jserv.properties.
> 
> I'm sure it is something completely stupid, I just haven't found it yet.

The problem is that you are trying to many things that don't work. You need
to just sit down and do /*exactly*/ as I described in the FAQ and in the
Getting Started document. So far, you have posted like 20 different things
(exaggeration) that are all different from each other. Lets just try one
thing at a time and get to the solution. The first thing that you should try
is what I stated to do earlier...

Also, why do you have two different paths in the repositories? Lets just get
one single path working for now. Ok?

So, to go over this once more:

set HelloWorld.java package name to package com.metricom.modules.screens
compile HelloWorld.class into
/usr/local/servlets/com/metricom/modules/screens (ie: that file should be in
the screens directory)
set repositories= to /usr/local/servlets

restart the JVM to make sure that everything is fresh.

go to: http://www.server.com/servlets/Turbine/screen/HelloWorld

i understand that this stuff is confusing, but it really shouldn't be. this
is just basic servlet compilation stuff...

-jon



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to