You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dennis Huang <De...@datacom.com.au> on 2000/09/04 07:54:06 UTC

I couldn't make servlet work!

Hi:

I spent whole day trying to make servlet work, but I couldn't. First I
created a context 'myapp' in admin and also a directory in the same name
under webapps. I then copy almost everything from 'examples' to 'myapps'.
All jsp files work and all beans on myapps/WEB-INF/classes work! However
none of servlets works. I tried to find out the reason by checking files
like server.xml, web.xml, and also FAQ in tomcat web site, but I still can't
get it wrok. Can someone please help me get through this?

BTW, all servlets work OK on /examples.

Thanks,


Dennis Huang

Re: mod_jserv.so and -DEAPI

Posted by Jason Rumney <jr...@att.com>.
"Boon Yeo" <cb...@netspace.net.au> writes:


> Ok, I had to hit return to get the prompt.  But
> why do I have to do that?  Would this be a
> problem if I had it started up at boot time?

You don't really have to hit return, the reason you don't see the
prompt is that it has scrolled off the screen, since Tomcat has
continued to produce output after it went into background. Hitting
return does help to reassure oneself though.

The warning message you get from apache means that your copy of Apache
was compiled with different options than the one used to compile
mod_jserv.so. It is safest to compile mod_jserv.so yourself, from the
Tomcat source, using apxs.



-- 
Jason Rumney <jr...@attlabs.att.com>
AT&T Labs (Redditch, UK)


Re: mod_jserv.so and -DEAPI

Posted by Boon Yeo <cb...@netspace.net.au>.
Erk!  Seem like I am putting my foot in my
mouth each time I post.  Should it check out
carefully before pushing the send button.

Ok, I had to hit return to get the prompt.  But
why do I have to do that?  Would this be a
problem if I had it started up at boot time?

Many thanks,
-Boon


----- Original Message ----- 
From: Boon Yeo <cb...@netspace.net.au>
To: <to...@jakarta.apache.org>
Sent: Monday, September 04, 2000 6:43 PM
Subject: Re: mod_jserv.so and -DEAPI


> Hi folks,
> 
> Pressing ahead (with the warning message), I
> found that startup.sh won't run in the background.
> In other words, I am not getting the linux prompt
> back when after startup.sh tomcat.  I had to
> cntrl-c to get back control.  Anyone has any
> idea what's going on here?
> 
> Thanks,
> -Boon
> 


Re: mod_jserv.so and -DEAPI

Posted by "J. Mark Brooks" <jm...@bigfoot.com>.
You need to run in in the background if that is what you are looking to
do.  Basic UNIX shell stuff, you would invoke it like this:

sh /whatever your tomcat home directory is/bin/startup.sh &

Hope this helps.

On Mon, 4 Sep 2000, Boon Yeo wrote:

> Hi folks,
> 
> Pressing ahead (with the warning message), I
> found that startup.sh won't run in the background.
> In other words, I am not getting the linux prompt
> back when after startup.sh tomcat.  I had to
> cntrl-c to get back control.  Anyone has any
> idea what's going on here?
> 
> Thanks,
> -Boon
> 

-- 
---------------------------------------
J. Mark Brooks
Sun Certified Programmer for Java 2
http://www.uncg.edu/~jmbrook2


Re: mod_jserv.so and -DEAPI

Posted by Boon Yeo <cb...@netspace.net.au>.
Hi folks,

Pressing ahead (with the warning message), I
found that startup.sh won't run in the background.
In other words, I am not getting the linux prompt
back when after startup.sh tomcat.  I had to
cntrl-c to get back control.  Anyone has any
idea what's going on here?

Thanks,
-Boon


Re: mod_jserv.so and -DEAPI

Posted by Boon Yeo <cb...@netspace.net.au>.
My apologies.  It was Tomcat 3.1

-Boon

----- Original Message ----- 
From: Boon Yeo <cb...@netspace.net.au>
To: <to...@jakarta.apache.org>
Sent: Monday, September 04, 2000 6:30 PM
Subject: mod_jserv.so and -DEAPI


> Hello folks,
> 
> I have recently downloaded Tomcat 3.0 and
> it's associated mod_jserv.so.



mod_jserv.so and -DEAPI

Posted by Boon Yeo <cb...@netspace.net.au>.
Hello folks,

I have recently downloaded Tomcat 3.0 and
it's associated mod_jserv.so.  I have read
the tomcat_ug carefully, and followed it's
instruction almost to the letter.  But I've got
this following message.

In the error_log file, there is this message:

> [Mon Sep  4 16:34:56 2000] [warn] Loaded
> DSO libexec/mod_jserv.so uses plain Apache
> 1.3 API, this module might crash under EAPI!
> (please recompile it with -DEAPI)

I am puzzled.  Why would the kind folks at
Apache provide us with a mod_jserv.so
which needs to be recompiled with -DEAPI?

Linux RH 6.2

-Boon