jsvc.exec error: syscall failed in set_caps

2004-04-05 Thread Hal Robertson
hi,

I am new to tomcat and catalina, and am setting it up
for the first time on my Red Hat 9 x86 box

I compiled jsvc w/ configure
--prefix=/home/hal/tomcat, but otherwise followed the
directions posted at:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html
for UNIX daemon

I used the Tomcat5.sh file, fitting my environment
variables, and, upon issuing a Tomcat5.sh start, I
get:

jsvc.exec error: syscall failed in set_caps
jsvc.exec error: Service exit with a return value of 4

in ${CATALINA_HOME}/logs/catalina.out

I'm not sure what to do now to debug this problem. 
Any advice?

thanks

Hal


__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Bug ? Init is called twice in SingleThreadModel

2003-07-09 Thread Hal Lander
I modified my init method as suggested by Yoav.
The new init() and its output are shown below.
The addresses printed are different so it appears I have two instances of my 
servlet. Bill said that instance-pooling for STM Servlets is normal 
behaviour.

I was expecting that, since I am the only person calling the servlet, only 
one instance would be created and initialised. I guess Tomcat is being 
clever and getting a second one ready just in case it is needed.

Where can I learn about this behaviour and get control over the number of 
instances created?



public void init()
//
{
System.out.println(init called +toString());
System.out.println(init call 2 +toString());
return;
}
Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
Starting service Tomcat-Apache
Apache Tomcat/4.0.4
init called [EMAIL PROTECTED]
init called [EMAIL PROTECTED]
Regards
Hal
P.S. Thanks Yoav  Bill.

_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Bug ? Init is called twice in SingleThreadModel

2003-07-02 Thread Hal Lander
The init method of my servlet is called twice if my class implements the 
SingleThreadModel.
Full details are given below. If I remove implements SingleThreadModel 
init is called only once - as I would expect.

Is this a bug?
Any help would be appreciated.
Hal.



THE SOURCE CODE

import javax.servlet.http.HttpServlet;
import javax.servlet.SingleThreadModel;
public class x extends HttpServlet implements SingleThreadModel
//
{
public void init()
//
{
System.out.println(init called);
return;
}
}
URL USED TO INVOKE SERVLET
==
http://localhost:8080/examples/servlet/x


OUTPUT IN START TOMCAT WINDOW
===
Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
Starting service Tomcat-Apache
Apache Tomcat/4.0.4
init called
init called
localhost_examples_log.2003-06-27.txt
=
2003-06-27 11:39:09 WebappLoader[/examples]: Deploying class repositories to 
work directory C:\Program Files\Apache Tomcat 
4.0\work\Standalone\localhost\examples
2003-06-27 11:39:09 WebappLoader[/examples]: Deploy JAR 
/WEB-INF/lib/httpclient.jar to C:\Program Files\Apache Tomcat 
4.0\webapps\examples\WEB-INF\lib\httpclient.jar
2003-06-27 11:39:09 WebappLoader[/examples]: Deploy JAR 
/WEB-INF/lib/logging.jar to C:\Program Files\Apache Tomcat 
4.0\webapps\examples\WEB-INF\lib\logging.jar
2003-06-27 11:39:09 WebappLoader[/examples]: Reloading checks are enabled 
for this Context
2003-06-27 11:39:09 StandardManager[/examples]: Seeding random number 
generator class java.security.SecureRandom
2003-06-27 11:39:09 StandardManager[/examples]: Seeding of random number 
generator has been completed
2003-06-27 11:39:09 ContextConfig[/examples]: Added certificates - request 
attribute Valve
2003-06-27 11:39:09 ContextConfig[/examples]: Configured an authenticator 
for method FORM
2003-06-27 11:39:09 ContextListener: contextInitialized()
2003-06-27 11:39:09 SessionListener: contextInitialized()
2003-06-27 11:39:09 ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@1f6226')
2003-06-27 11:39:09 StandardWrapper[/examples:default]: Loading container 
servlet default
2003-06-27 11:39:09 default: init 2003-06-27 11:39:09 
StandardWrapper[/examples:invoker]: Loading container servlet invoker
2003-06-27 11:39:09 invoker: init 2003-06-27 11:39:09 jsp: init 2003-06-27 
11:39:45 org.apache.catalina.INVOKER.x: init
2003-06-27 11:39:45 org.apache.catalina.INVOKER.x: init
2003-06-27 11:39:45 InvokerFilter(ApplicationFilterConfig[name=Servlet 
Mapped Filter, filterClass=filters.ExampleFilter]): 20 milliseconds
2003-06-27 11:39:45 InvokerFilter(ApplicationFilterConfig[name=Path Mapped 
Filter, filterClass=filters.ExampleFilter]): 20 milliseconds
2003-06-27 11:40:04 SessionListener: contextDestroyed() 2003-06-27 11:40:04 
ContextListener: contextDestroyed()
2003-06-27 11:40:04 org.apache.catalina.INVOKER.x: destroy 2003-06-27 
11:40:04 org.apache.catalina.INVOKER.x: destroy

_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to use Port 80?

2002-09-22 Thread hal

thanks

I looked back at the archieves and found out how to change the user to Root.
 I did that and it worked.  I did find some other messages indicating what
you said, which was running as ROOT might be bad idea from a system adminstration
perspective.  Unfortunately, I found no other way to run on Port 80.  Is
there another way?


-- Original Message --
Reply-To: Tomcat Users List [EMAIL PROTECTED]
Date: Sun, 22 Sep 2002 18:38:01 +1000
From: Ben Walding [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: How to use Port 80?


You don't want to change /etc/services as it is simply a directory of
mappings between well known service names and ports.

Tomcat runs as the user tomcat4 on RedHat 7.x.  This user is unable to

bind to port 80.  People have had success with changing the user to
root, but this is generally considered a bad way of doing things.
 You'll want to check the mail archives as this has been discussed quite

a bit.

[EMAIL PROTECTED] wrote:

I looked in /etc/services and found
...
ttp80/tcp  www www-http# WorldWideWeb HTTP
http   80/udp  www www-http# HyperText Transfer Protocol
...

I'm not sure how got there unless it was just part of RedHat 7.3.  Im
not
running Apache or any other web server.  Im trying to use Tomcat4 as my
Web server.  Should I change /etc/services and if so how?

thanks again



-- Original Message --
Reply-To: Tomcat Users List [EMAIL PROTECTED]
From: Arthur Chan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: How to use Port 80?
Date: Sat, 21 Sep 2002 23:50:41 -0400


Normally that's the default - Apache  (not Tomcat) uses it.
Look at httpd.conf , the Listen directive, should read something like
192.168.4.5:80 ie the ip-addr:port
In default RH  u will find that under /etc/httpd/conf
To look at a static list of port assignments : /etc/services
I am not sure what u r tyring to do , but I hope that's helpful.

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, September 21, 2002 11:36 PM
Subject: Re: How to use Port 80?




not intentionally, how would I know if I did that?



-- Original Message --
Reply-To: Tomcat Users List [EMAIL PROTECTED]
From: Arthur Chan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: How to use Port 80?
Date: Sat, 21 Sep 2002 23:34:53 -0400


Could you have assigned 80 to HTTP requests already ???

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, September 21, 2002 11:03 PM
Subject: How to use Port 80?




Hi

Im running Tomcat 4.1.10 on Red Hat 7.3.

Im trying to change the port to 80 from 8080.

I made the following change in my server.xml

From:

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=2
   useURIValidationHack=false /

to:

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=80 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=2
   useURIValidationHack=false /

then I restart Tomcat4 with the Service Configuration utility and


I


get


the following message in the browser when I go to http://localhost

An error occured while loading http://localhost/:

Could not connect to host localhost

Thanks in advance for any help
Hal Haig






--
To unsubscribe, e-mail:


mailto:[EMAIL PROTECTED]


For additional commands, e-mail:


mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:


mailto:[EMAIL PROTECTED]


For additional commands, e-mail:


mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:


mailto:[EMAIL PROTECTED]


For additional commands, e-mail:


mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]








--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




How to use Port 80?

2002-09-21 Thread hal

Hi

Im running Tomcat 4.1.10 on Red Hat 7.3.

Im trying to change the port to 80 from 8080.

I made the following change in my server.xml

From:

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=2
   useURIValidationHack=false /

to:

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=80 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=2
   useURIValidationHack=false /

then I restart Tomcat4 with the Service Configuration utility and I get
the following message in the browser when I go to http://localhost

An error occured while loading http://localhost/:

Could not connect to host localhost

Thanks in advance for any help
Hal Haig






--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: How to use Port 80?

2002-09-21 Thread hal

not intentionally, how would I know if I did that?

-- Original Message --
Reply-To: Tomcat Users List [EMAIL PROTECTED]
From: Arthur Chan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: How to use Port 80?
Date: Sat, 21 Sep 2002 23:34:53 -0400


Could you have assigned 80 to HTTP requests already ???

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, September 21, 2002 11:03 PM
Subject: How to use Port 80?


 Hi

 Im running Tomcat 4.1.10 on Red Hat 7.3.

 Im trying to change the port to 80 from 8080.

 I made the following change in my server.xml

 From:

 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8080 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=2
useURIValidationHack=false /

 to:

 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=80 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=2
useURIValidationHack=false /

 then I restart Tomcat4 with the Service Configuration utility and I get
 the following message in the browser when I go to http://localhost

 An error occured while loading http://localhost/:

 Could not connect to host localhost

 Thanks in advance for any help
 Hal Haig






 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: How to use Port 80?

2002-09-21 Thread hal

I looked in /etc/services and found
...
ttp80/tcp  www www-http# WorldWideWeb HTTP
http   80/udp  www www-http# HyperText Transfer Protocol
...

I'm not sure how got there unless it was just part of RedHat 7.3.  Im not
running Apache or any other web server.  Im trying to use Tomcat4 as my
Web server.  Should I change /etc/services and if so how?

thanks again

-- Original Message --
Reply-To: Tomcat Users List [EMAIL PROTECTED]
From: Arthur Chan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: How to use Port 80?
Date: Sat, 21 Sep 2002 23:50:41 -0400


Normally that's the default - Apache  (not Tomcat) uses it.
Look at httpd.conf , the Listen directive, should read something like
192.168.4.5:80 ie the ip-addr:port
In default RH  u will find that under /etc/httpd/conf
To look at a static list of port assignments : /etc/services
I am not sure what u r tyring to do , but I hope that's helpful.

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, September 21, 2002 11:36 PM
Subject: Re: How to use Port 80?


 not intentionally, how would I know if I did that?

 -- Original Message --
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 From: Arthur Chan [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: How to use Port 80?
 Date: Sat, 21 Sep 2002 23:34:53 -0400
 
 
 Could you have assigned 80 to HTTP requests already ???
 
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, September 21, 2002 11:03 PM
 Subject: How to use Port 80?
 
 
  Hi
 
  Im running Tomcat 4.1.10 on Red Hat 7.3.
 
  Im trying to change the port to 80 from 8080.
 
  I made the following change in my server.xml
 
  From:
 
  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8080 minProcessors=5 maxProcessors=75
 enableLookups=true redirectPort=8443
 acceptCount=10 debug=0 connectionTimeout=2
 useURIValidationHack=false /
 
  to:
 
  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 port=80 minProcessors=5 maxProcessors=75
 enableLookups=true redirectPort=8443
 acceptCount=10 debug=0 connectionTimeout=2
 useURIValidationHack=false /
 
  then I restart Tomcat4 with the Service Configuration utility and
I
get
  the following message in the browser when I go to http://localhost
 
  An error occured while loading http://localhost/:
 
  Could not connect to host localhost
 
  Thanks in advance for any help
  Hal Haig
 
 
 
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]