RE: Running Tomcat as service on Win2003 Server

2004-07-14 Thread Birt, Jeffrey
What version of Win2003 sever are you running, Standard, Web Edition?

Web edition is made only to serve web pages.  Some software won't even
LOAD on it.

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 

-Original Message-
From: Bui, Bao-Ha D [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 14, 2004 11:03 AM
To: 'Tomcat Users List'
Subject: Running Tomcat as service on Win2003 Server

Hello,

I am trying to set up Tomcat 4.0.2 to run as service on Win2003 server
with
IIS 6.

The service will start and stop right away.

Looking into the event viewer, the log indicated that Tomcat failed to
start.

Could anyone tell me what's wrong?  We have the same version of Tomcat
running fine on Win2K server.

Thanks very much.

Bao-Ha Dam Bui
 



* 
This communication may contain information that is proprietary,
privileged,
confidential or legally exempt from disclosure.  If you are not a named
addressee, you are notified that you are not authorized to read, print,
retain, copy or disseminate this communication without the consent of
the
sender and that doing so may be unlawful. If you have received this
communication in error, please notify the sender via return e-mail and
delete it from your computer. Thank you. St. Jude Medical, Inc. 
*



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



RE: Running Tomcat as service on Win2003 Server

2004-07-14 Thread Birt, Jeffrey
Web Edition will not run any 'Enterprise' Applications (from MS at
least).  I've tried SQL 2000 with no luck.  

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 


-Original Message-
From: Ty Mercer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 14, 2004 2:50 PM
To: Tomcat Users List
Subject: Re: Running Tomcat as service on Win2003 Server

wha  The actual limitations are max number of cpu's, disk size and
memory, not applications.

I have no issues with any type of program not loading on a web edition
install of 2k3 over one of Standard or Enterprise 2k3.

The error log that Tomcat generates is going to provide more
information that the windows Event log.

I have tomcat running on several 2k3 web editon servers just fine, yet
they are running with apache and not IIS (they are running as services
though).

Can you provide some more info on your configuration to assist in
troubleshooting?

On Wed, 14 Jul 2004 12:25:04 -0500, Birt, Jeffrey [EMAIL PROTECTED] wrote:
 What version of Win2003 sever are you running, Standard, Web Edition?
 
 Web edition is made only to serve web pages.  Some software won't even
 LOAD on it.
 
 Jeff Birt
 Electronics Engineer
 Integrated Systems Facility
 University of Missouri - Rolla
 573.341.6058
 
 
 
 -Original Message-
 From: Bui, Bao-Ha D [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 14, 2004 11:03 AM
 To: 'Tomcat Users List'
 Subject: Running Tomcat as service on Win2003 Server
 
 Hello,
 
 I am trying to set up Tomcat 4.0.2 to run as service on Win2003 server
 with
 IIS 6.
 
 The service will start and stop right away.
 
 Looking into the event viewer, the log indicated that Tomcat failed to
 start.
 
 Could anyone tell me what's wrong?  We have the same version of Tomcat
 running fine on Win2K server.
 
 Thanks very much.
 
 Bao-Ha Dam Bui
 
 *
 This communication may contain information that is proprietary,
 privileged,
 confidential or legally exempt from disclosure.  If you are not a
named
 addressee, you are notified that you are not authorized to read,
print,
 retain, copy or disseminate this communication without the consent of
 the
 sender and that doing so may be unlawful. If you have received this
 communication in error, please notify the sender via return e-mail and
 delete it from your computer. Thank you. St. Jude Medical, Inc.
 *
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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




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



RE: problems with mod_jk2

2004-07-11 Thread Birt, Jeffrey
I've clipped the relevant sections of some recent list postings that got
me pointed in the correct direction.

I've been following along with this guide.
http://www.opq.se/sxs/internet_serving/c875.html

Another list member responded: Have a read through this,
http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html

Which I did and used the following config files:

I used the min configuration given in the jk docs of.

jk2.properties: 

# The default port is 8009 but you can use another one #
channelSocket.port=8019

workers2.properties: 

# Define the communication channel
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*] info=Map the whole webapp

And this works, which means my problem, is in trying to create the Unix
channel.  I don't know why the Unix channel config did not work, heck I
don't even know the difference between a Unix channel and socket
channel!


Jeff_Birt


-Original Message-
From: sarojini chowdary [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 11, 2004 1:39 PM
To: [EMAIL PROTECTED]
Subject: problems with mod_jk2

Please Help... 
  Hi, 
  I have problem with mod_jk2.so 
  I have installed redhat 9 and I used the default 
  version of apache that came with redhat 9 i.e. 
  apache/2.0.40 
  and I installed and configured tomcat 5.0.25. 
  Till now both work fine when I start them alone. 
  I have installed mod_jk 2 connector latest version 
  i.e. jakarta-tomcat-connectors-jk2-2.0.4-src. 
  I restarted tomcat. 
  And when I look at CATALINA_OUT I see this line. 
  INFO: APR not loaded, disabling jni components: 
  java.io.IOException: java.lang.UnsatisfiedLinkError:

  /usr/local/apache2/modules/jkjni.so: 
  /usr/local/apache2/modules/jkjni.so: undefined 
  symbol: 
  apr_md5_final 
  When I try to use apu-config to know the list of
libraries to attach it says the command is not found.
  After this point, when I try to restart apache it 
  gives this error. 
  Starting httpd: Syntax error on line 157 of 
  /etc/httpd/conf/httpd.conf: 
  Cannot load /etc/httpd/modules/mod_jk2.so into 
  server: 
  /etc/httpd/modules/mod_jk2.so: undefined symbol: 
  apr_socket_send 
  
  [FAILED] 
  I was trying to fix it right from past 2 days and I 
  could not do it. 
  Please tel me what I should do. 
  Thanks in advance. 
  Sarojini. 
  IndusRAD Inc. 
  Peoria, IL, 61606 
  USA 
  309-691-0591 



Yahoo! India Careers: Over 50,000 jobs online
Go to: http://yahoo.naukri.com/

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



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



RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-09 Thread Birt, Jeffrey
I too am running Linux (Fedora 1).  Another chap posted after me having
similar problems with Windows (IIS).  I've confirmed that apache is
running as user apache which belongs to the group apache.  User tomcat
of the group tomcat owns the tomcat directory (and I'm running tomcat as
user tomcat).  I've added the apache group to the tomcat group (I think)
like this

#usermod -G apache,tomcat apache

I read through some more of the Tomcat 5 docs last night and I'll give
it another whack today.

Thanks,

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 


-Original Message-
From: Tim Wills [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 08, 2004 11:18 PM
To: Birt, Jeffrey
Cc: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable

I had the same Error 503 on Linux (not Windows) and found that was
caused by
Apache running as Nobody. Apache couldn't write to the socket because
the
owner was tomcat and Nobody was not a member of the group tomcat.

Check your apache error_log and see what it says. I have never run a
Windows
server so can't be more helpful.

Cheers

Tim




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



RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-09 Thread Birt, Jeffrey
I finally got this working

I used the min configuration given in the jk docs of.

jk2.properties: 

# The default port is 8009 but you can use another one
# channelSocket.port=8019

workers2.properties: 

# Define the communication channel 
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp

And this works, which means my problem, is in trying to create the Unix
channel.  I don't know why the Unix channel config did not work, heck I
don't even know the difference between a Unix channel and socket
channel!



Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 


-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 09, 2004 8:06 AM
To: Tim Wills
Cc: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable

I too am running Linux (Fedora 1).  Another chap posted after me having
similar problems with Windows (IIS).  I've confirmed that apache is
running as user apache which belongs to the group apache.  User tomcat
of the group tomcat owns the tomcat directory (and I'm running tomcat as
user tomcat).  I've added the apache group to the tomcat group (I think)
like this

#usermod -G apache,tomcat apache

I read through some more of the Tomcat 5 docs last night and I'll give
it another whack today.

Thanks,

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 


-Original Message-
From: Tim Wills [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 08, 2004 11:18 PM
To: Birt, Jeffrey
Cc: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable

I had the same Error 503 on Linux (not Windows) and found that was
caused by
Apache running as Nobody. Apache couldn't write to the socket because
the
owner was tomcat and Nobody was not a member of the group tomcat.

Check your apache error_log and see what it says. I have never run a
Windows
server so can't be more helpful.

Cheers

Tim




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




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



RE: Tomcat works for localhost, but won't work for the local intranet..

2004-07-09 Thread Birt, Jeffrey
Redhat also comes with a handy gui called Security Level (or something)
to administer the firewall.

Jeff Birt

-Original Message-
From: Robert F. Hall [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 09, 2004 7:25 PM
To: Tomcat Users List
Subject: Re: Tomcat works for localhost, but won't work for the local
intranet..

Ivan, do you have a firewall in place on the linux box? If so, is port 
80 open?

-Robert

Ivan Jouikov wrote:

 I am running tomcat 5.0.27 on Linux RH 9.0, and I have a little
problem.

  

 I am using jsvc to launch Tomcat standalone as Tomcat5 user.  
 Everything seems to work fine, when I connect to localhost or 
 127.0.0.1 from that same computer.

  

 However, if I try to connect to Tomcat from my local intranet, I get 
 Page Cannot be Displayed after a long wait.

  

 If I try to ping that computer, everything works just fine:  ping 
 192.168.0.33..  If I try to run MySQL client for that computer, 
 everything works fine...  But if I type in my browser

  

 http://192.168.0.33/

  

 I get page not found.  Oh yeah, my Tomcat is set up to work 
 standalone, and the only connector that it has is an HTTP connector on

 port 80.

  

 Does anyone know what could be wrong?

  

  




 Best Regards,

 Ivan V. Jouikov
 (206) 228-6670
 http://www.ablogic.net/

  


 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004



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



Newbie question: Error 503 Service Temp. Unavailable

2004-07-08 Thread Birt, Jeffrey
Hello all,

I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play
nice together via mod_jk2 connector.  Both work fine separately and I
get the dreaded 503 Service Temp. Unavailable error.  (which seems to
have come up a lot on various list but I've yet to find  a solution).

I've been following along with this guide.
http://www.opq.se/sxs/internet_serving/c875.html

I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both
Apache and Tomcat were installed form RPM's, and as mentioned both seem
to work fine separately.  The only relevant thing I've found in the logs
is in the Apache error_log and is as follows:

[error] chanelUn.connect() connect failed 2 No such file or directory
[error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket
Etc.

My jk2.properties is as follows:
# jk2.properties
# Configured for channel UNIX

# Set the desired handler list
handler.list=apr,request,channelUnix

# UNIX Domain socket location
channelUnix.file=/opt/tomcat/work/jk2.socket

# Dynamic Library
serverRoot=/etc/httpd
apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so

and workers2.properties:
# workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess serve
rs
file=/opt/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket
[channel.un:/opt/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/opt/tomcat/work/jk2.socket]
channel=channel.un:/opt/tomcat/work/jk2.socket

# Announce a status worker
[status:status]
info=Status worker. Displays runtime information.

[uri:/jkstatus/*]
group=status:status

# Uri mapping
[uri:/examples/*]

# Uri mapping for MyFirst
[uri:/MyFirst/*]

I've added the LoadModule jk2_module etc. in httpd.conf

When Tomcat starts a jk2.shm file is created but no jk2.socket file.
I'm running everything as root (to make it simpler at this point) and
have checked that everything is owned by root (I think).

I'm guessing this is caused by incorrect configuration but I don't have
a clue as to where to look.

Can you guys help a newbie out?

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 




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



RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-08 Thread Birt, Jeffrey
Arrgg Still no luck.  This is a copy of my error log.  I still can't seem to get 
Apache2 and Tomcat 5 to work together.  I tried creating an emty file called 
jk2.socket in /opt/tomcat/work.  When Apache starts jk2.shm is created and the 
jk2.socket file I created disappeared.  This error report looks like the unix socket 
is not being created but I don't know why.  BTW, I added a group and user called 
tomcat and made tomcat owner of opt/tomcat and added the user apache to the tomcat 
group.  AFAIK this should give Apache appropriate permissions to the needed files in 
teh tomcaat folders.  My jk2.properties file etc are listed with the original post.

Any other ideas guys?  

Thanks,

Jeff_Birt


[Thu Jul 08 14:48:04 2004] [error] channelUn.connect() connect failed 2 No such file 
or directory
[Thu Jul 08 14:48:04 2004] [error] ajp13.connect() failed 
ajp13:/opt/tomcat/work/jk2.socket
[Thu Jul 08 14:48:04 2004] [error] ajp13.service() failed to connect endpoint errno=2 
No such file or directory
[Thu Jul 08 14:48:04 2004] [error] ajp13.service() Error  forwarding 
ajp13:/opt/tomcat/work/jk2.socket 1 1
[Thu Jul 08 14:48:04 2004] [error] lb.service() worker failed 12 for 
ajp13:/opt/tomcat/work/jk2.socket
[Thu Jul 08 14:48:04 2004] [error] lb_worker.service() all workers in error or 
disabled state
[Thu Jul 08 14:48:04 2004] [error] mod_jk2.handler() Error connecting to tomcat 
12, status 503

-Original Message-
From:   Dale, Matt [mailto:[EMAIL PROTECTED]
Sent:   Thu 7/8/2004 10:34 AM
To: Tomcat Users List
Cc: 
Subject:RE: Newbie question: Error 503 Service Temp. Unavailable
Have a read through this, 
http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html and then let me know if 
you have any more specific questions.

But basically you should have a JK2 connector defined in your server.xml, its on port 
8009 by default. And you need to define a worker in your workers2.properties in your 
apache/conf directory that points to this port.

Ta
Matt

-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:30
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


Do you know how to do this on a windows box?

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:28 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



The file must exist and be readable and writable by both the tomcat user and the 
apache user.

You won't be able to get UNIX sockets working on a windows 2000 box, obviously.

Ta
Matt

-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:24
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


I am trying to do the same thing as you guys.  I have a windows 2000 box.  How did you 
configure the two so far?  And what goes in the jk2.socket file?   

Tont

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:16 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



I think you might have to create the file yourself.

touch /opt/tomcat/work/jk2.socket

Ta
Matt

-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:11
To: [EMAIL PROTECTED]
Subject: Newbie question: Error 503 Service Temp. Unavailable


Hello all,

I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play
nice together via mod_jk2 connector.  Both work fine separately and I
get the dreaded 503 Service Temp. Unavailable error.  (which seems to
have come up a lot on various list but I've yet to find  a solution).

I've been following along with this guide.
http://www.opq.se/sxs/internet_serving/c875.html

I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both
Apache and Tomcat were installed form RPM's, and as mentioned both seem
to work fine separately.  The only relevant thing I've found in the logs
is in the Apache error_log and is as follows:

[error] chanelUn.connect() connect failed 2 No such file or directory
[error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket
Etc.

My jk2.properties is as follows:
# jk2.properties
# Configured for channel UNIX

# Set the desired handler list
handler.list=apr,request,channelUnix

# UNIX Domain socket location
channelUnix.file=/opt/tomcat/work/jk2.socket

# Dynamic Library
serverRoot=/etc/httpd
apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so

and workers2.properties:
# workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess serve
rs
file=/opt/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket
[channel.un:/opt/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/opt/tomcat/work/jk2.socket]
channel=channel.un:/opt