RE: Tomcat 4.1.30 Hung!!! With High Traffic

2004-05-24 Thread Denise Mangano
I am not sure if I have an answer but hopefully this will help. I posted
a similar problem back in April - I have the same exact environment.
The one thing that I have noticed is from the same code in my server.xml
my maxProcessors=75.  I have noticed that when Tomcat does hang I try
to shut down Tomcat but the process does not die so I actually have to
kill it.  At that point I've checked my logs and see:

Apr 4, 2004 2:19:43 PM org.apache.tomcat.util.threads.ThreadPool logFull
SEVERE: All threads (75) are currently busy, waiting. Increase
maxThreads (75) or check the servlet status

After posting to the list it was suggested to increase the number of
servers for the connector to match what Apache allows.  Unfortunately I
got so wrapped up in my code that I never made this change.  Just today
I have increased the number of maxProcessors in Tomcat to 150 which is
equal to the number of MaxClients in Apache - I am hoping this change
helps.

Ken - when you shutdown Tomcat do you run into the same problem of
having to actually kill the process?  Also afterwards do you see a
similar message in your catalina.out?  Are the number of MaxClients in
Apache the same as the number of maxProcessors you have in your
server.xml?

So then the next question that comes to mind if this setting does the
trick how many processors/clients are too many?  For example what if
changing Tomcat to match Apache settings causes the application to still
max out but at the new number of maxProcessors.  I would imagine the
next step would be to increase both but what number is too high?  


Denise Mangano 
Director of Technical Services
Complus Data Innovations, Inc. 
914-747-1200 


-Original Message-
From: Innovest Ken [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 24, 2004 11:08 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.30 Hung!!! With High Traffic

hello all,

Currently, I have Tomcat 4.1.30 running on Linux Redhat 9, using jdk
1.4.2_03. It is now running live and every day it will hang at least
once. We are unable to see any error message in the log file. The site
is having a hit of 20 request per second with most of the requests need
the database connection.

I did a thread dump before the tomcat hangs, but it is too big to be
displayed here.

I can post any more info upon request. Any help???
Thanks

Here is part of the server.xml:

Connector
className=org.apache.coyote.tomcat4.CoyoteConnector
acceptCount=150 bufferSize=2048 compression=off
connectionLinger=-1 connectionTimeout=2
connectionUploadTimeout=30 debug=0
disableUploadTimeout=true enableLookups=false
maxKeepAliveRequests=100 maxProcessors=150
minProcessors=50 port=80
protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol
proxyPort=0 redirectPort=8443 scheme=http
secure=false serverSocketTimeout=0
tcpNoDelay=true useURIValidationHack=false
  Factory
className=org.apache.catalina.net.DefaultServerSocketFactory
/
  /Connector

innovest




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.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]



Tomcat performance issue?

2004-04-09 Thread Denise Mangano
Hi all,
 
I've tried searching the archives but have come up empty-handed.  A few
days ago I received a few complaints that my users hit a certain point
in the application and could go no further.  This point was when Apache
gives control to Tomcat.  I checked the log and found this.
 
Apr 4, 2004 2:19:43 PM org.apache.tomcat.util.threads.ThreadPool logFull
SEVERE: All threads (75) are currently busy, waiting. Increase
maxThreads (75) or check the servlet status
 
The only thing that did the trick was restarting Tomcat and Apache.  Any
ideas on what these errors mean?
 
Thanks in advance.


 

Denise Mangano 
Complus Data Innovations, Inc. 
914-747-1200 

 


RE: Possible thread crossing

2004-03-25 Thread Denise Mangano
Thanks for the replies.  This is the process involved in my webapp:

At the bottom of my form I have:  input type=hidden
name=serialNumber value=123456789 

The action of this form calls the following control jsp:

%@ page import=com.beans.clients.Validator %

jsp:useBean id=formValidator class=com.beans.clients.Validator
scope=session/
% formValidator.reset(); %
jsp:setProperty name=formValidator property=*/

% if (formValidator.isValid()) {   %

 jsp:forward page=Verify.jsp/

% } else {  %

 jsp:forward page=Retry.jsp/

% } %

If the form data is not valid it calls Retry.jsp which I have tried two
ways:
1) input type=hidden name=serialNumber
value=%=formValidator.getSerialNumber()%
2) input type=hidden name=serialNumber value=123456789

If the form data is completely valid then Verify.jsp is called.
Verify.jsp just retrieves the form data (not the serialNumber) and
displays it to the user.  Nothing can be changed on this screen and when
the user clicks submit the data is taken from the instance of
Validator.java and sent of for processing.  The user does have the
option to go back and make changes which brings them to the previous
page.

One thing to note.  On Retry.jsp up until yesterday I had the first way
in the jsp page.  I changed this yesterday to make sure it was hard
coded from all possible change points and so far since then no
transactions have crossed over - but it is still a little too early to
tell since these crossings were random and not happening everyday.

Thank you for taking a look.


Denise Mangano
Complus Data Innovations, Inc.
914-747-1200

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 24, 2004 2:34 AM
To: Tomcat Users List
Subject: RE: Possible thread crossing


That the problem is just happening for users that have the highest
volume, might indicate that you have a threading problem. (Like a
variable that should only be visible in the current request, is visible
to concurrent requests)

If there is a threading problem it's most likely in your application or
a third party software. (I wouldn't bet that tomcat isn't having such
issues, but it is much less likely)

Can you show how you set the id in the jsp ?
Can you show a example how you process the jsp ?
If you can't make it public, you may post it to me directly (No
guarantee how much time I will have to look at it).

The memory that is used by your java is very unlikely to cause such
symptoms. (In certain instances it may indirectly affect the problem by
increasing the runtime for each request and this way rising the
probability that requests are processed concurrently)

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 24, 2004 6:02 AM
 To: Tomcat Users List
 Subject: RE: Possible thread crossing
 
 
 I just wanted to point out again that this data appears to be getting 
 crossed only with the clients that have the highest volume This 
 is why I am thinking it's a java/Tomcat issue.  Perhaps my java isn't 
 using enough memory? (old-newbie guess?)  How would I check something 
 like that, and if it is too low how do I increase it?
 
 Thanks again. 
 
 
 Denise Mangano
 Complus Data Innovations, Inc.
 914-747-1200
 
 -Original Message-
 From: Denise Mangano
 Sent: Tuesday, March 23, 2004 11:53 PM
 To: Tomcat Users List
 Subject: RE: Possible thread crossing
 
 Can I please verify something?  This webapp has been live since last 
 year and I have never had this problem.  I recently reformatted my 
 server changing versions of Tomcat, Apache and RH.  The programs and 
 web pages I am using are the same - pulled from backups so nothing has

 changed.
 
 This is my java program structure:  /com/beans/transaction/*.java.
 
 The pages accessing these programs are located in: 
   /webapps/ROOT/clients/client1 
   /webapps/ROOT/clients/client2
   etc...
 
 When someone goes to client one and accesses the java program an 
 individual instance of the program is created, correct?  So if user 1 
 starts a transaction from /client1 and user 2 starts a transaction 
 from
 /client2 each user has it's own instance of the java program running -

 so technically data from one instance should not be finding it's way 
 to another.  I made some changes to my webapp but this still appears 
 to be happening.
 
 Nix:
 1.  Network sniffer?  If I add some debugging code to my java program 
 is this what you mean? Or is there a tool I can actually use?
 2.  The two key variables are a transaction number and this serial 
 number.  Both are hard coded into the JSP pages and are not changed by

 anything in either my JSP or my java program.  Only variables that 
 change are personal info (i.e. address).
 
 Thanks.
 
 
 Denise Mangano
 Complus Data Innovations, Inc.
 914-747-1200
 
 -Original Message-
 From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 22, 2004 1:13 AM
 To: Tomcat Users List

RE: Possible thread crossing

2004-03-25 Thread Denise Mangano
It would appear so, but the strange thing is that I have been using the
same program since July of last year.  I recently rebuilt my server and
changed versions of RH, Apache and Tomcat - but my web pages and java
programs were all restored from back up. This is what's boggling my mind
- nothing has changed in my application itself and this just started
happening a few weeks ago...



Denise Mangano
Complus Data Innovations, Inc.
914-747-1200

-Original Message-
From: David Rees [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 25, 2004 11:15 AM
To: Tomcat Users List
Subject: Re: Possible thread crossing

Denise Mangano wrote, On 3/25/2004 8:04 AM:

 If the form data is not valid it calls Retry.jsp which I have tried 
 two
 ways:
 1) input type=hidden name=serialNumber
 value=%=formValidator.getSerialNumber()%
 2) input type=hidden name=serialNumber value=123456789
 
 If the form data is completely valid then Verify.jsp is called.
 Verify.jsp just retrieves the form data (not the serialNumber) and 
 displays it to the user.  Nothing can be changed on this screen and 
 when the user clicks submit the data is taken from the instance of 
 Validator.java and sent of for processing.  The user does have the 
 option to go back and make changes which brings them to the previous 
 page.
 
 One thing to note.  On Retry.jsp up until yesterday I had the first 
 way in the jsp page.  I changed this yesterday to make sure it was 
 hard coded from all possible change points and so far since then no 
 transactions have crossed over - but it is still a little too early to

 tell since these crossings were random and not happening everyday.

I would guess that your formValidator class com.beans.clients.Validator
may have some issues based on the behavior you've described.

-Dave

-
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: Possible thread crossing

2004-03-25 Thread Denise Mangano
Ralph,

In the bean there is an instance variable:  
private static String serialNumber=; 

And it is set using the regular set method:
public void setserialNumber(String sn) { serialNumber = sn; }

The purpose of the serial number is to identify which client the
information being processed is for.  Correct me if I am wrong but I have
the scope of the bean set to session.  That means that that when user A
accesses my first JSP page it starts a session and the variables apply
to that session until the user ends it.  If user B comes to the site
they get their own session started.  Is that correct?  If so then if
User A is in the middle of the session how could it be possible that
they are requested the form more than once in their session?

Dave, yes I am using mod_ssl 2.8.16.

Thanks.


Denise Mangano
Complus Data Innovations, Inc.
914-747-1200

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 25, 2004 11:43 AM
To: Tomcat Users List
Subject: RE: Possible thread crossing

So far so good, but how is the serial number stored in the validator
bean ?

If the id is stored in an instance variable it may be possible that 2
concurrent request in the same session to any form that uses this bean
might cause problems.
(It is possible to change the value between jsp:setProperty and
isValid())

What exactly is the purpose of the serial id ?


 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 25, 2004 5:05 PM
 To: Tomcat Users List
 Subject: RE: Possible thread crossing
 
 %@ page import=com.beans.clients.Validator % jsp:useBean 
 id=formValidator class=com.beans.clients.Validator
 scope=session/
 % formValidator.reset(); %
 jsp:setProperty name=formValidator property=*/
 
 % if (formValidator.isValid()) {   %
 
 If the form data is not valid it calls Retry.jsp which I have tried 
 two ways:
 1) input type=hidden name=serialNumber
 value=%=formValidator.getSerialNumber()%
 2) input type=hidden name=serialNumber value=123456789
 

-
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: Possible thread crossing

2004-03-25 Thread Denise Mangano
For the life of me I cannot recall why I made them static!!!  There are
a few other variables that I had static as well.  I want to say that
when I was writing the program I was getting compile errors stating that
I cannot reference non-static variables and changing them to static
allowed the program to compile (major newbie mistake/assumption I am
sure).

I just created a copy of my program and removed static from the
serialNumber as well as a few other variables I had made static and
everything compiled fine.  Very strange though that it has been working
fine this entire time??? :-/ I guess the next step is to make this
change in the live program and monitor it very closely...

Thanks again.


Denise Mangano
Complus Data Innovations, Inc.
914-747-1200

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 25, 2004 12:16 PM
To: Tomcat Users List
Subject: RE: Possible thread crossing

Ha ! Gotcha !

That's no instance variable 
It's a class variable 

It is shared by all instances of the bean !!!

change it to:

private String serialNumber=;

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 25, 2004 6:14 PM
 To: Tomcat Users List
 Subject: RE: Possible thread crossing
 
 In the bean there is an instance variable:  
   private static String serialNumber=;
 
 And it is set using the regular set method:
   public void setserialNumber(String sn) { serialNumber = sn; }
 

-
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: Possible thread crossing

2004-03-23 Thread Denise Mangano
Can I please verify something?  This webapp has been live since last
year and I have never had this problem.  I recently reformatted my
server changing versions of Tomcat, Apache and RH.  The programs and web
pages I am using are the same - pulled from backups so nothing has
changed.

This is my java program structure:  /com/beans/transaction/*.java.

The pages accessing these programs are located in: 
/webapps/ROOT/clients/client1 
/webapps/ROOT/clients/client2
etc...

When someone goes to client one and accesses the java program an
individual instance of the program is created, correct?  So if user 1
starts a transaction from /client1 and user 2 starts a transaction from
/client2 each user has it's own instance of the java program running -
so technically data from one instance should not be finding it's way to
another.  I made some changes to my webapp but this still appears to be
happening.

Nix:
1.  Network sniffer?  If I add some debugging code to my java program is
this what you mean? Or is there a tool I can actually use?
2.  The two key variables are a transaction number and this serial
number.  Both are hard coded into the JSP pages and are not changed by
anything in either my JSP or my java program.  Only variables that
change are personal info (i.e. address).

Thanks.


Denise Mangano
Complus Data Innovations, Inc.
914-747-1200

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 1:13 AM
To: Tomcat Users List
Subject: Re: Possible thread crossing

Denise Mangano wrote:

 The only thing I can narrow it down to is Tomcat/Java.  Like I said 
 the serial numbers are hard coded on the jsp pages.  Everytime this 
 jsp page is submitted it forms its own instance of my java bean which 
 can be called one or more times.  So I guess my question is - is it 
 possible that somehow information from one thread is leaking to
another thread?

So, not only data is leaking, but always the same data. That is
possible, but sooo unlikely. I'd do two things.

1: setup network sniffer, see the actual data being sent
2: look for some static/instance variables being updated in those JSPs

Nix.


-
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: Possible thread crossing

2004-03-23 Thread Denise Mangano
I just wanted to point out again that this data appears to be getting
crossed only with the clients that have the highest volume This is
why I am thinking it's a java/Tomcat issue.  Perhaps my java isn't using
enough memory? (old-newbie guess?)  How would I check something like
that, and if it is too low how do I increase it?

Thanks again. 


Denise Mangano
Complus Data Innovations, Inc.
914-747-1200

-Original Message-
From: Denise Mangano 
Sent: Tuesday, March 23, 2004 11:53 PM
To: Tomcat Users List
Subject: RE: Possible thread crossing

Can I please verify something?  This webapp has been live since last
year and I have never had this problem.  I recently reformatted my
server changing versions of Tomcat, Apache and RH.  The programs and web
pages I am using are the same - pulled from backups so nothing has
changed.

This is my java program structure:  /com/beans/transaction/*.java.

The pages accessing these programs are located in: 
/webapps/ROOT/clients/client1 
/webapps/ROOT/clients/client2
etc...

When someone goes to client one and accesses the java program an
individual instance of the program is created, correct?  So if user 1
starts a transaction from /client1 and user 2 starts a transaction from
/client2 each user has it's own instance of the java program running -
so technically data from one instance should not be finding it's way to
another.  I made some changes to my webapp but this still appears to be
happening.

Nix:
1.  Network sniffer?  If I add some debugging code to my java program is
this what you mean? Or is there a tool I can actually use?
2.  The two key variables are a transaction number and this serial
number.  Both are hard coded into the JSP pages and are not changed by
anything in either my JSP or my java program.  Only variables that
change are personal info (i.e. address).

Thanks.


Denise Mangano
Complus Data Innovations, Inc.
914-747-1200

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 1:13 AM
To: Tomcat Users List
Subject: Re: Possible thread crossing

Denise Mangano wrote:

 The only thing I can narrow it down to is Tomcat/Java.  Like I said 
 the serial numbers are hard coded on the jsp pages.  Everytime this 
 jsp page is submitted it forms its own instance of my java bean which 
 can be called one or more times.  So I guess my question is - is it 
 possible that somehow information from one thread is leaking to
another thread?

So, not only data is leaking, but always the same data. That is
possible, but sooo unlikely. I'd do two things.

1: setup network sniffer, see the actual data being sent
2: look for some static/instance variables being updated in those JSPs

Nix.


-
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]



Possible thread crossing

2004-03-21 Thread Denise Mangano
Hi all,
 
I've tried searching archives and bugzilla for this but have come up
empty handed.  I am running Tomcat 4.1.30 on RedHat 9.  My java version
is 1.4.2.
 
One thing I have noticed is that there is only one java thread when I
start tomcat.  On a previous install there had been about 8.  Here is
the output of ps -ef relative to tomcat:
tomcat   13074 1  0 Mar11 ?00:00:32 /usr/local/java/bin/java
-Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed -classpath
/usr/local/java/lib/t
 
Here is my problem:
 
I have a jsp form that accepts user input which is then verified and
sent off for processing.  I have approximately 10 forms set up for 10
different clients.  Each form has a specific serial number hard coded in
it which gets passed to the java bean processing the data- this way we
can easily identify which client the data is being processed for.  What
is happening is that information is getting crossed between clients and
information for client A gets processed under client B's account.  This
only appears to be happening for 4 of the clients - which happen to be
the ones processing the most data.  Researching the problem shows that
my app is sending the wrong serial number.
 
The only thing I can narrow it down to is Tomcat/Java.  Like I said the
serial numbers are hard coded on the jsp pages.  Everytime this jsp page
is submitted it forms its own instance of my java bean which can be
called one or more times.  So I guess my question is - is it possible
that somehow information from one thread is leaking to another thread?  

Thanks in advance.

Denise Mangano 
Complus Data Innovations, Inc. 
914-747-1200 

 


Making a URL connection to my domain

2003-10-07 Thread Denise Mangano
Hi all,

I'm not really sure if this is an Tomcat issue - but I'm posting this
question to lists for all s/w involved (RH Linux 7.3, Apache 1.3.28,
Tomcat 4.1, Java)

I have my apache server running on my linux box, and it is serving up
web pages no problem. My JSP pages use a bean, which attempts to make a
URL connection to a script on my server
(www.mywebsite.com/cgi-bin/script). When I run the program and attempt
to make this connection from any other workstation I get a response.
However, when I run the program from the server itself and attempt to
make the connection to the domain name, the program hangs on
getOutputStream().  

Is there anything in Tomcat that would keep my web server from going out
to the internet, only to come back in and make a request? Please let me
know if I need to explain further.

Thanks.

Denise



RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-22 Thread Denise Mangano
After compiling and running some offline sample java programs, it seems
unlikely that the problem is with the JVM.  If it were I shouldn't be
able to run any java programs under non-root users, but I can.

The problem still only appears to be when starting and stopping Tomcat
as a non-root user.  I need to find a resolution to this asap.  I am
wondering if there is any way that if I am stuck with starting Tomcat as
root, is there anyway it can be started as root, but then spawn off
child threads as a non-root user (i.e. the way apache does it..)

Thanks in advance.
Denise

-Original Message-
From: Denise Mangano 
Sent: Friday, September 19, 2003 4:51 PM
To: Tomcat Users List
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


My Tomcat is not running on port 80.  I have Apache running on port 80
communicating with Tomcat via mod_jk (Apache starts up fine).  Also I am
not using IPTables - I have relied on our network firewall for
protection.

I think Filip is on to something with the JVM... I am posting to Linux
boards right now...

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 4:48 PM
To: 'Tomcat Users List'
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


I forget if you've said or not, but are non-root users allowed to
priveleged ports? Which is what Tomcat would do if you've changed it to
port 80.  Forgive my non-linux background, but perhaps you were using an
IPTables solution to work around this limitation I vaguely and poorly
remember, and because your machine crashed, those settings are gone.

Sysadmins, feel free to flame my clutching at straws!

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 3:42 PM
 To: Tomcat Users List
 Subject: RE: Cannot run Tomcat as new user [Was: Urgent!
 Cannot start Tomcat - java.lang.OutOfMemoryError]
 
 
 Why would this happen suddenly though?  Tomcat was running fine 
 before. Unfortunately switching OS is not an option.  So this sounds 
 like a linux problem?
 
 Denise Mangano
 Complus Data Innovations, Inc.
 914-747-1200
 
 
 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 4:39 PM
 To: Tomcat Users List
 Subject: Re: Cannot run Tomcat as new user [Was: Urgent!
 Cannot start Tomcat - java.lang.OutOfMemoryError]
 
 
 the problem is somewhere in the native JVM.
 It fails when trying to create a native thread on the OS level as a 
 noon root user. All I can say is, switch OS :)
 
 Filip
 - Original Message -
 From: Denise Mangano [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 1:15 PM
 Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start 
 Tomcat - java.lang.OutOfMemoryError]
 
 
 I know I've flooded the list about this, and I appreciate everyone's 
 help but I am at a complete loss.  I even restored from backup tape 
 and the same thing is happening.  I reinstalled tomcat, reinstalled 
 j2sdk, yet Tomcat will only run as root.
 
 It is obviously not safe to run Tomcat as root, but I absolutely have 
 to get my app back up.  Any more suggestions are greatly appreciated.
 
 Thanks.
 Denise
 
 
 -Original Message-
 From: Denise Mangano
 Sent: Friday, September 19, 2003 3:20 PM
 To: Tomcat Users List
 Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start 
 Tomcat - java.lang.OutOfMemoryError]
 
 
 Filip .. Sorry - this was in my original post:
 
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.27
 Sep 19, 2003 9:01:25 AM 
 org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, config='org.apache.struts.util.LocalStrings',
 returnNull=true
 Sep 19, 2003 9:01:25 AM
 org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, config='org.apache.struts.action.ActionResources',
 returnNull=true
 Sep 19, 2003 9:01:26 AM 
 org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, 
 config='org.apache.webapp.admin.ApplicationResources', 
 returnNull=true Exception during startup processing 
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
 orImpl.jav
 a:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
 odAccessor
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
 Caused by: java.lang.OutOfMemoryError: unable to create new native 
 thread
 at java.lang.Thread.start(Native Method)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ini
 t(ThreadP
 ool.java:582

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-22 Thread Denise Mangano
When Tomcat is shut down and I run a ps -ef no java threads are
displayed.  Is there any way for me to go in manually and check if there
are any threads are being held onto by Tomcat/Java, and release them?  

Thanks.
Denise



-Original Message-
From: Denise Mangano 
Sent: Monday, September 22, 2003 8:57 AM
To: Tomcat Users List
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


After compiling and running some offline sample java programs, it seems
unlikely that the problem is with the JVM.  If it were I shouldn't be
able to run any java programs under non-root users, but I can.

The problem still only appears to be when starting and stopping Tomcat
as a non-root user.  I need to find a resolution to this asap.  I am
wondering if there is any way that if I am stuck with starting Tomcat as
root, is there anyway it can be started as root, but then spawn off
child threads as a non-root user (i.e. the way apache does it..)

Thanks in advance.
Denise

-Original Message-
From: Denise Mangano 
Sent: Friday, September 19, 2003 4:51 PM
To: Tomcat Users List
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


My Tomcat is not running on port 80.  I have Apache running on port 80
communicating with Tomcat via mod_jk (Apache starts up fine).  Also I am
not using IPTables - I have relied on our network firewall for
protection.

I think Filip is on to something with the JVM... I am posting to Linux
boards right now...

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 4:48 PM
To: 'Tomcat Users List'
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


I forget if you've said or not, but are non-root users allowed to
priveleged ports? Which is what Tomcat would do if you've changed it to
port 80.  Forgive my non-linux background, but perhaps you were using an
IPTables solution to work around this limitation I vaguely and poorly
remember, and because your machine crashed, those settings are gone.

Sysadmins, feel free to flame my clutching at straws!

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 3:42 PM
 To: Tomcat Users List
 Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start 
 Tomcat - java.lang.OutOfMemoryError]
 
 
 Why would this happen suddenly though?  Tomcat was running fine
 before. Unfortunately switching OS is not an option.  So this sounds 
 like a linux problem?
 
 Denise Mangano
 Complus Data Innovations, Inc.
 914-747-1200
 
 
 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 4:39 PM
 To: Tomcat Users List
 Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start 
 Tomcat - java.lang.OutOfMemoryError]
 
 
 the problem is somewhere in the native JVM.
 It fails when trying to create a native thread on the OS level as a
 noon root user. All I can say is, switch OS :)
 
 Filip
 - Original Message -
 From: Denise Mangano [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 1:15 PM
 Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
 Tomcat - java.lang.OutOfMemoryError]
 
 
 I know I've flooded the list about this, and I appreciate everyone's
 help but I am at a complete loss.  I even restored from backup tape 
 and the same thing is happening.  I reinstalled tomcat, reinstalled 
 j2sdk, yet Tomcat will only run as root.
 
 It is obviously not safe to run Tomcat as root, but I absolutely have
 to get my app back up.  Any more suggestions are greatly appreciated.
 
 Thanks.
 Denise
 
 
 -Original Message-
 From: Denise Mangano
 Sent: Friday, September 19, 2003 3:20 PM
 To: Tomcat Users List
 Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
 Tomcat - java.lang.OutOfMemoryError]
 
 
 Filip .. Sorry - this was in my original post:
 
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.27
 Sep 19, 2003 9:01:25 AM
 org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, config='org.apache.struts.util.LocalStrings',
 returnNull=true
 Sep 19, 2003 9:01:25 AM
 org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, config='org.apache.struts.action.ActionResources',
 returnNull=true
 Sep 19, 2003 9:01:26 AM 
 org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, 
 config='org.apache.webapp.admin.ApplicationResources', 
 returnNull=true Exception during startup processing 
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
 orImpl.jav
 a:39

RE: Cannot run Tomcat as new user

2003-09-22 Thread Denise Mangano
The problem that I am having doesn't appear to make any sense - so
unfortunately I am grasping at straws.  

The common response that I seemed to get from the java forums, the Linux
forums, and at times here is a memory issue.  However, when starting
Tomcat as root these memory problems do not occur.  It was suggested
that the problem is with the JVM, but it is only starting Tomcat that
gives me this problem.  I am completely at a loss, but find it hard to
believe that there is no solution.

Thanks,
Denise 

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 22, 2003 12:10 PM
To: Tomcat Users List
Subject: RE: Cannot run Tomcat as new user


If ps doesn't show any, there aren't any.

What make you think there are ?

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 22, 2003 5:50 PM
 To: Tomcat Users List
 Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start 
 Tomcat - java.lang.OutOfMemoryError]
 
 
 When Tomcat is shut down and I run a ps -ef no java threads are 
 displayed.  Is there any way for me to go in manually and check if 
 there are any threads are being held onto by Tomcat/Java, and release 
 them?
 

-
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: Cannot run Tomcat as new user

2003-09-22 Thread Denise Mangano
The output of ulimit for the user 'jakarta' and root are the same:
core file size(blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size   (kbytes, -m) 5000
open files(-n) 1024
pipe size  (512 bytes, -p) 8
stack size(kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes(-u) 20
virtual memory(kbytes, -v) unlimited

When you are suggesting manual settings, do you mean in the OS or in
Tomcat itself?  I'm going to have to go through my notes, and make sure
all my settings are the same - but I can't recall making any special
changes to Tomcat.

Thanks.

Denise 


-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 22, 2003 12:23 PM
To: Tomcat Users List
Subject: RE: Cannot run Tomcat as new user


To me your problem sounds as if some system or user parameter 
has been set manually to some value and this setting has vanished 
after the last reboot.

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 22, 2003 6:14 PM
 To: Tomcat Users List
 Subject: RE: Cannot run Tomcat as new user
 
 
 The problem that I am having doesn't appear to make any sense - so 
 unfortunately I am grasping at straws.
 
 The common response that I seemed to get from the java
 forums, the Linux
 forums, and at times here is a memory issue.  However, when starting
 Tomcat as root these memory problems do not occur.  It was suggested
 that the problem is with the JVM, but it is only starting Tomcat that
 gives me this problem.  I am completely at a loss, but find it hard to
 believe that there is no solution.
 
 Thanks,
 Denise
 
 -Original Message-
 From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 22, 2003 12:10 PM
 To: Tomcat Users List
 Subject: RE: Cannot run Tomcat as new user
 
 
 If ps doesn't show any, there aren't any.
 
 What make you think there are ?
 
  -Original Message-
  From: Denise Mangano [mailto:[EMAIL PROTECTED]
  Sent: Monday, September 22, 2003 5:50 PM
  To: Tomcat Users List
  Subject: RE: Cannot run Tomcat as new user [Was: Urgent!
 Cannot start
  Tomcat - java.lang.OutOfMemoryError]
  
  
  When Tomcat is shut down and I run a ps -ef no java threads are
  displayed.  Is there any way for me to go in manually and check if 
  there are any threads are being held onto by Tomcat/Java, 
 and release
  them?
  
 
 -
 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]


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



RE: Cannot run Tomcat as new user

2003-09-22 Thread Denise Mangano
Well I'll be I just increased those settings, therefore:

max memory size   (kbytes, -m) unlimited
max user processes(-u) 256

Wouldn't you know it I can now start Tomcat as the user 'jakarta'!  So
perhaps as you said root ignores those values.  A million thanks cannot
even cover the gratitude that I feel right now!!

So now my question is... I've had those set as 20  5000 for some time
now... Why did this OutOfMemoryError just coincidentally occur with the
brownout?

Lastly, how can I make sure my application itself is not causing the
problem.  I downloaded and installed Java Memory Profiler and tried to
run it on my programs, but it hangs - so I have to try another solution.

Well thanks again for your help on this! 

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 22, 2003 12:46 PM
To: Tomcat Users List
Subject: RE: Cannot run Tomcat as new user


More a OS parameter.
(As otherwise tc wouln't run as other user)

E.G.:

max user processes (-u) 20
max memory size (kbytes, -m) 5000

These are quite low. We have 256 and unlimited.
20 processes per user and especially 5MB memory is 
not enough to run tomcat. (I'm not shure if these 
values are ignored for root)

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 22, 2003 6:29 PM
 To: Tomcat Users List
 Subject: RE: Cannot run Tomcat as new user
 
 When you are suggesting manual settings, do you mean in the OS or in 
 Tomcat itself?  I'm going to have to go through my notes, and make 
 sure all my settings are the same - but I can't recall making any 
 special changes to Tomcat.
 

-
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]



Permission denied to webapps folder

2003-09-20 Thread Denise Mangano
This is probably something simple, but I can't seem to understand this.
As suggested by a Tomcat book that I have, I gave the webapps folder rwx
to the owner, and r access to everyone else.  However, when I try to
change to the webapps directory as any user other than the owner I get a
permission denied.  Shouldn't I be able to at least view whats in this
directory?

Thanks.
Denise

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



Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError

2003-09-19 Thread Denise Mangano
Hi all.  I am running Apache 1.3.28, mod_jk 1.2, Tomcat 4.1.27 on a RH
Linux 7.3 box with j2sdk 1.4.2.  We had a power outage last night, and I
have been trying to restart Tomcat and Apache, but Tomcat will not
start.  I have tried searching the archives, but I can't seem to figure
out where to start with trying to fix this problem.  Any help is GREATLY
appreciated... It's urgent that I get this up and running asap.  This is
the output from my catalina.out:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Exception during startup processing
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.OutOfMemoryError: unable to create new native
thread
at java.lang.Thread.start(Native Method)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.init(ThreadP
ool.java:582)
at
org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:46
0)
at
org.apache.tomcat.util.threads.ThreadPool.start(ThreadPool.java:179)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint
.java:300)
at
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:161)
at
org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:118
0)
at
org.apache.catalina.core.StandardService.start(StandardService.java:506)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
... 5 more
Exception in thread main java.lang.OutOfMemoryError: unable to create
new native thread
at java.lang.Thread.start(Native Method)
at java.lang.Shutdown.runHooks(Shutdown.java:126)
at java.lang.Shutdown.sequence(Shutdown.java:165)
at java.lang.Shutdown.exit(Shutdown.java:210)
at java.lang.Runtime.exit(Runtime.java:90)
at java.lang.System.exit(System.java:715)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:208)


Denise Mangano 
Complus Data Innovations, Inc. 
914-747-1200 

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



RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError

2003-09-19 Thread Denise Mangano
I am about to download and run JMP (Java Memory Profiler) to test my
application for memory leaks to prevent this from happening again.  

However, I'm searching and searching on how to fix it for now.

What I have come across is adding the following flags to the java
execution command:   -ms64M -mx512M

So my questions are:
1.  Will adding this allow me to deploy Tomcat, or is there some other
way I have to free up the memory.
2.  I apparently have to add this to my catalina.sh, but I am not
exactly sure where to add it... Any idea?  I can post file if necessary.

Thanks for any help :)

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Denise Mangano 
Sent: Friday, September 19, 2003 9:31 AM
To: to
Subject: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


Hi all.  I am running Apache 1.3.28, mod_jk 1.2, Tomcat 4.1.27 on a RH
Linux 7.3 box with j2sdk 1.4.2.  We had a power outage last night, and I
have been trying to restart Tomcat and Apache, but Tomcat will not
start.  I have tried searching the archives, but I can't seem to figure
out where to start with trying to fix this problem.  Any help is GREATLY
appreciated... It's urgent that I get this up and running asap.  This is
the output from my catalina.out:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Exception during startup processing
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.OutOfMemoryError: unable to create new native
thread
at java.lang.Thread.start(Native Method)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.init(ThreadP
ool.java:582)
at
org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:46
0)
at
org.apache.tomcat.util.threads.ThreadPool.start(ThreadPool.java:179)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint
.java:300)
at
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:161)
at
org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:118
0)
at
org.apache.catalina.core.StandardService.start(StandardService.java:506)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
... 5 more
Exception in thread main java.lang.OutOfMemoryError: unable to create
new native thread
at java.lang.Thread.start(Native Method)
at java.lang.Shutdown.runHooks(Shutdown.java:126)
at java.lang.Shutdown.sequence(Shutdown.java:165)
at java.lang.Shutdown.exit(Shutdown.java:210)
at java.lang.Runtime.exit(Runtime.java:90)
at java.lang.System.exit(System.java:715)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:208)


Denise Mangano 
Complus Data Innovations, Inc. 
914-747-1200 

-
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: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError

2003-09-19 Thread Denise Mangano
Peter - thanks for the response.  Can I just add that at the very
beginning of the script, or do I have to put that anywhere in
particular?  I don't want to override anything else that might be
happening to JAVA_OPTS throughout the script?

Thanks again.

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 9:53 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


 
in catalina.sh
 
JAVA_OPTS=-Xms64m -Xmx512m
 
hope that helps.
 
peter

Denise Mangano [EMAIL PROTECTED] wrote:
I am about to download and run JMP (Java Memory Profiler) to test my
application for memory leaks to prevent this from happening again. 

However, I'm searching and searching on how to fix it for now.

What I have come across is adding the following flags to the java
execution command: -ms64M -mx512M

So my questions are:
1. Will adding this allow me to deploy Tomcat, or is there some other
way I have to free up the memory. 2. I apparently have to add this to my
catalina.sh, but I am not exactly sure where to add it... Any idea? I
can post file if necessary.

Thanks for any help :)

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Denise Mangano 
Sent: Friday, September 19, 2003 9:31 AM
To: to
Subject: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


Hi all. I am running Apache 1.3.28, mod_jk 1.2, Tomcat 4.1.27 on a RH
Linux 7.3 box with j2sdk 1.4.2. We had a power outage last night, and I
have been trying to restart Tomcat and Apache, but Tomcat will not
start. I have tried searching the archives, but I can't seem to figure
out where to start with trying to fix this problem. Any help is GREATLY
appreciated... It's urgent that I get this up and running asap. This is
the output from my catalina.out:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Exception during startup processing
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.OutOfMemoryError: unable to create new native
thread at java.lang.Thread.start(Native Method) at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.(ThreadP
ool.java:582)
at
org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:46
0)
at
org.apache.tomcat.util.threads.ThreadPool.start(ThreadPool.java:179)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint
.java:300)
at
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:161)
at
org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:118
0)
at
org.apache.catalina.core.StandardService.start(StandardService.java:506)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
... 5 more
Exception in thread main java.lang.OutOfMemoryError: unable to create
new native thread at java.lang.Thread.start(Native Method) at
java.lang.Shutdown.runHooks(Shutdown.java:126)
at java.lang.Shutdown.sequence(Shutdown.java:165)
at java.lang.Shutdown.exit(Shutdown.java:210)
at java.lang.Runtime.exit(Runtime.java:90)
at java.lang.System.exit(System.java:715)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:208)


Denise Mangano 
Complus Data Innovations, Inc. 
914-747-1200 

-
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]


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

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



RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError

2003-09-19 Thread Denise Mangano
Jon - Thanks for the response.

I did not change ulimit at all... Actually I did not change anything in
server.xml besides making the configurations for mod_jk.  Are there any
settings I should consider changing?  Perhaps, you can point me to a
good resource where I can learn about optimizing?

Thanks again!

Denise



-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 9:57 AM
To: Tomcat Users List
Subject: Re: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


Most JVMs limit the number of concurrent threads that can be created. 
That will be the OutOfMemoryError. As to why it is happening: Have you 
tweaked the server.xml settings for min/maxProcessors? Have you upped 
things like ulimit before the power outage and are now reset?

Denise Mangano wrote:

 Hi all.  I am running Apache 1.3.28, mod_jk 1.2, Tomcat 4.1.27 on a RH

 Linux 7.3 box with j2sdk 1.4.2.  We had a power outage last night, and

 I have been trying to restart Tomcat and Apache, but Tomcat will not 
 start.  I have tried searching the archives, but I can't seem to 
 figure out where to start with trying to fix this problem.  Any help 
 is GREATLY appreciated... It's urgent that I get this up and running 
 asap.  This is the output from my catalina.out:
 
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.27
 Sep 19, 2003 9:01:25 AM 
 org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, config='org.apache.struts.util.LocalStrings',
 returnNull=true
 Sep 19, 2003 9:01:25 AM
org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, config='org.apache.struts.action.ActionResources',
 returnNull=true
 Sep 19, 2003 9:01:26 AM
org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing,
 config='org.apache.webapp.admin.ApplicationResources', returnNull=true
 Exception during startup processing
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
 a:39)
 at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 Caused by: java.lang.OutOfMemoryError: unable to create new native
 thread
 at java.lang.Thread.start(Native Method)
 at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.init(ThreadP
 ool.java:582)
 at

org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:46
 0)
 at
 org.apache.tomcat.util.threads.ThreadPool.start(ThreadPool.java:179)
 at

org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint
 .java:300)
 at
 org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:161)
 at

org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:118
 0)
 at

org.apache.catalina.core.StandardService.start(StandardService.java:506)
 at

org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
 at
org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at
 org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at
 org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 ... 5 more
 Exception in thread main java.lang.OutOfMemoryError: unable to
create
 new native thread
 at java.lang.Thread.start(Native Method)
 at java.lang.Shutdown.runHooks(Shutdown.java:126)
 at java.lang.Shutdown.sequence(Shutdown.java:165)
 at java.lang.Shutdown.exit(Shutdown.java:210)
 at java.lang.Runtime.exit(Runtime.java:90)
 at java.lang.System.exit(System.java:715)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:208)
 
 
 Denise Mangano
 Complus Data Innovations, Inc. 
 914-747-1200 
 
 -
 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: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError

2003-09-19 Thread Denise Mangano
Ralph - thank you for your reply.  I have not made any export settings
like that.  Honestly, for the most part I took the Tomcat distribution
and went mostly with the defaults because everything was working fine.
Probably a newbie mistake, I'm sure - but I made very few settings /
changes.

Thanks.
Denise

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 9:58 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


It looks to me like something screwed up your system.

The main cause is not within tomcat.

The important part of the traceback is this:

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.OutOfMemoryError: unable to create new native
thread


(Very) wild guess:

Is ist possible that something like

export LD_ASSUME_KERNEL=2.2.5

or other options where set in the past manually and got lost through 
the restart ?

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 3:31 PM
 To: to
 Subject: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
 
 
 Hi all.  I am running Apache 1.3.28, mod_jk 1.2, Tomcat 4.1.27 on a RH

 Linux 7.3 box with j2sdk 1.4.2.  We had a power outage last night, and

 I have been trying to restart Tomcat and Apache, but Tomcat will not
 start.  I have tried searching the archives, but I can't seem 
 to figure
 out where to start with trying to fix this problem.  Any help 
 is GREATLY
 appreciated... It's urgent that I get this up and running 
 asap.  This is
 the output from my catalina.out:

-
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: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError

2003-09-19 Thread Denise Mangano
Thank you everyone for your responses.  So, you are saying that the
problem is not with Tomcat.  Are you suggesting that the problem is with
the server itself (Linux) or possibly with the JDK?  

I tried adding the JAVA_OPT flags to the catalina.sh but that did not
due the trick.  I also tried adding the values you suggested to the
user's environment, but I am still getting the errors on startup.
Reinstalling wouldn't hurt to try I guess...

It doesn't look like any process is behaving abnormally but then again,
I am a newbie... This is the output of ps -ef:
UIDPID  PPID  C STIME TTY  TIME CMD
root 1 0  0 08:57 ?00:00:03 init
root 2 1  0 08:57 ?00:00:00 [keventd]
root 3 1  0 08:57 ?00:00:00 [ksoftirqd_CPU0]
root 4 1  0 08:57 ?00:00:00 [kswapd]
root 5 1  0 08:57 ?00:00:00 [bdflush]
root 6 1  0 08:57 ?00:00:00 [kupdated]
root 7 1  0 08:58 ?00:00:00 [mdrecoveryd]
root13 1  0 08:58 ?00:00:00 [scsi_eh_0]
root14 1  0 08:58 ?00:00:00 [scsi_eh_1]
root17 1  0 08:58 ?00:00:00 [kjournald]
root82 1  0 08:58 ?00:00:00 [khubd]
root   148 1  0 08:58 ?00:00:00 [kjournald]
root   149 1  0 08:58 ?00:00:00 [kjournald]
root   150 1  0 08:58 ?00:00:00 [kjournald]
root   151 1  0 08:58 ?00:00:00 [kjournald]
root   152 1  0 08:58 ?00:00:00 [kjournald]
root   153 1  0 08:58 ?00:00:00 [kjournald]
root   477 1  0 08:58 ?00:00:00 syslogd -m 0
root   482 1  0 08:58 ?00:00:00 klogd -x
root   595 1  0 08:58 ?00:00:00 /usr/sbin/sshd
root   628 1  0 08:58 ?00:00:00 gpm -t ps/2 -m
/dev/mouse
root   646 1  0 08:58 ?00:00:00 crond
root   653 1  0 08:58 tty1 00:00:00 /sbin/mingetty tty1
root   654 1  0 08:58 tty2 00:00:00 /sbin/mingetty tty2
root   655 1  0 08:58 tty3 00:00:00 /sbin/mingetty tty3
root   656 1  0 08:58 tty4 00:00:00 /sbin/mingetty tty4
root   657 1  0 08:58 tty5 00:00:00 /sbin/mingetty tty5
root   658 1  0 08:58 tty6 00:00:00 /sbin/mingetty tty6
root   661   595  0 08:59 ?00:00:00 /usr/sbin/sshd
weblogin   662   661  0 08:59 pts/000:00:00 -bash
root   697   662  0 08:59 pts/000:00:00 su -
root   698   697  0 08:59 pts/000:00:00 -bash
root   990 1  0 09:09 ?00:00:00
/usr/local/apache/bin/httpd
nobody 991   990  0 09:09 ?00:00:00
/usr/local/apache/bin/fcgi-
nobody 992   990  0 09:09 ?00:00:00
/usr/local/apache/bin/httpd
nobody 993   990  0 09:09 ?00:00:00
/usr/local/apache/bin/httpd
nobody 994   990  0 09:09 ?00:00:00
/usr/local/apache/bin/httpd
nobody 995   990  0 09:09 ?00:00:00
/usr/local/apache/bin/httpd
nobody 996   990  0 09:09 ?00:00:00
/usr/local/apache/bin/httpd
nobody 998   990  0 09:10 ?00:00:00
/usr/local/apache/bin/httpd
nobody 999   990  0 09:10 ?00:00:00
/usr/local/apache/bin/httpd
nobody1000   990  0 09:10 ?00:00:00
/usr/local/apache/bin/httpd
root  1314   698  0 10:14 pts/000:00:00 bash
root  1364  1314  0 10:16 pts/000:00:00 ps -ef

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 10:13 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


May setting these values will help:

ulimit -s 2048
export LD_ASSUME_KERNEL=2.2.5

Either put them in the environment of the user that starts tomcat or put
it in the startscript of tomcat.

BTW: Have you looked what processes are running and
how the memory usage is, before you try to start tomcat ? (Maybe there
is some other process missbehaving)

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 4:02 PM
 To: Tomcat Users List
 Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
 
 
 Ralph - thank you for your reply.  I have not made any export settings

 like that.  Honestly, for the most part I took the Tomcat distribution

 and went mostly with the defaults because everything was working fine.

 Probably a newbie mistake, I'm sure - but I made very few settings / 
 changes.
 

-
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: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError

2003-09-19 Thread Denise Mangano
From what I can tell memory usage looks ok as well... According to the
output there is still memory free...

total:used:free:  shared: buffers:  cached:
Mem:  261988352 114282496 1477058560 18583552 68141056
Swap: 5346017280 534601728
MemTotal:   255848 kB
MemFree:144244 kB
MemShared:   0 kB
Buffers: 18148 kB
Cached:  66544 kB
SwapCached:  0 kB
Active:  86620 kB
Inact_dirty:  3004 kB
Inact_clean:96 kB
Inact_target:17944 kB
HighTotal:   0 kB
HighFree:0 kB
LowTotal:   255848 kB
LowFree:144244 kB
SwapTotal:  522072 kB
SwapFree:   522072 kB
Committed_AS:11736 kB

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 10:35 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


Yes, that is my assumption.

The processlist looks uncritical.

What about the memory usage ?

(I'm not familiar with red hat, 'top' or 'cat /proc/meminfo' should
work)

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 4:22 PM
 To: Tomcat Users List
 Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
 
 
 Thank you everyone for your responses.  So, you are saying that the 
 problem is not with Tomcat.  Are you suggesting that the problem is 
 with the server itself (Linux) or possibly with the JDK?
 
 I tried adding the JAVA_OPT flags to the catalina.sh but that did not 
 due the trick.  I also tried adding the values you suggested to the 
 user's environment, but I am still getting the errors on startup. 
 Reinstalling wouldn't hurt to try I guess...
 
 It doesn't look like any process is behaving abnormally but
 then again,
 I am a newbie... This is the output of ps -ef:
 UIDPID  PPID  C STIME TTY  TIME CMD
 root 1 0  0 08:57 ?00:00:03 init
 root 2 1  0 08:57 ?00:00:00 [keventd]


-
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: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError

2003-09-19 Thread Denise Mangano
The filesystem check returns that everything is clean.

I ran the test versions of the java programs that are part of my webapp
from the command line, and the program executes without a hitch.  It
makes a URL connection to a remote server and sends data, and then
receives a response...  So I would assume there is no problem with the
java installation??

How do I load a second instance of Tomcat without it interfering with
the current installation?

Thanks!

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Timothy Halloran [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 10:43 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


RH7.3 was EXT2 filesystem I think?  (you probably did this) but I'd do a
complete FSCHK on all disks.

(1) Test some other Java applications...are they working?  If not
reinstall the RPM for the JRE you are using...try again.

(2) load up another copy of Tomcat in your user account?  Does this work
(don't try to run them together)?  If so...save your XML and WEBAPP
directories and reinstall Tomcat.

Good Luck.
-- 
Timothy Halloran [EMAIL PROTECTED]
Carnegie Mellon University

-
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: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError

2003-09-19 Thread Denise Mangano
Ok, here is something interesting   

I wanted to follow Ralph's suggestion of trimming down Tomcat's config,
but I wasn't exactly sure what I could or couldn't touch in server.xml.
So what I did was backuped up my server.xml - then renamed the
server-noexamples.xml.config (shipped with the distro) to server.xml and
attempted to start Tomcat Wouldn't you know it, Tomcat started, AND
I can get to www.mysite.com:8080

I tried to stop it, and restart it again - and now I am getting the same
errors...  Does that shed any light? Or should I go with the second
install of Tomcat?

Thanks again so much for everyone's posts.

Denise 


-Original Message-
From: Timothy Halloran [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 11:25 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


On Fri, 2003-09-19 at 11:18, Denise Mangano wrote:
 The filesystem check returns that everything is clean.
 
 I ran the test versions of the java programs that are part of my 
 webapp from the command line, and the program executes without a 
 hitch.  It makes a URL connection to a remote server and sends data, 
 and then receives a response...  So I would assume there is no problem

 with the java installation??
 
 How do I load a second instance of Tomcat without it interfering with 
 the current installation?

Use the TGZ version not RPM and put it in another directory...you'll
have to change some variables (as I recall) and save your others.  Just
run the second tomcat as your local user.  I haven't done this in a
while but it works fine as long as you don't run them together (if you
do you'll need to change ports and such).

 Thanks!
 
 Denise Mangano
 Complus Data Innovations, Inc.
 914-747-1200
 
 
 -Original Message-
 From: Timothy Halloran [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 10:43 AM
 To: Tomcat Users List
 Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
 
 
 RH7.3 was EXT2 filesystem I think?  (you probably did this) but I'd do

 a complete FSCHK on all disks.
 
 (1) Test some other Java applications...are they working?  If not 
 reinstall the RPM for the JRE you are using...try again.
 
 (2) load up another copy of Tomcat in your user account?  Does this 
 work (don't try to run them together)?  If so...save your XML and 
 WEBAPP directories and reinstall Tomcat.
 
 Good Luck.
-- 
Timothy Halloran [EMAIL PROTECTED]
Carnegie Mellon University

-
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: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError

2003-09-19 Thread Denise Mangano
I did as you all suggested, and installed a second instance of tomcat.
Without changing anything in the configuration, and using the default
example webapps everything worked fine.  So instead of trying to map my
webapp to run off this second instance, I backed up the existing tomcat
installation and moved the working one to the original location.  I am
not sure if doing so was a newbie mistake, but it is still working fine,
and I can run all the examples.

So is it safe to assume that the problem was with Tomcat?  If so, how
can I begin to find out exactly what happened...

I have a few concerns before I start adding back my config and
webapps 
1.  I would like to test my java app to make sure that the program is
not causing (or will not cause) the out of memory error.
2.  What is the best procedures for restoring my configuration?  I'm
concerned that possibly something in my config allowed this to happen...

Thanks again to everyone for their help.

Denise 


-Original Message-
From: Denise Mangano 
Sent: Friday, September 19, 2003 11:37 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


Ok, here is something interesting   

I wanted to follow Ralph's suggestion of trimming down Tomcat's config,
but I wasn't exactly sure what I could or couldn't touch in server.xml.
So what I did was backuped up my server.xml - then renamed the
server-noexamples.xml.config (shipped with the distro) to server.xml and
attempted to start Tomcat Wouldn't you know it, Tomcat started, AND
I can get to www.mysite.com:8080

I tried to stop it, and restart it again - and now I am getting the same
errors...  Does that shed any light? Or should I go with the second
install of Tomcat?

Thanks again so much for everyone's posts.

Denise 


-Original Message-
From: Timothy Halloran [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 11:25 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


On Fri, 2003-09-19 at 11:18, Denise Mangano wrote:
 The filesystem check returns that everything is clean.
 
 I ran the test versions of the java programs that are part of my
 webapp from the command line, and the program executes without a 
 hitch.  It makes a URL connection to a remote server and sends data, 
 and then receives a response...  So I would assume there is no problem

 with the java installation??
 
 How do I load a second instance of Tomcat without it interfering with
 the current installation?

Use the TGZ version not RPM and put it in another directory...you'll
have to change some variables (as I recall) and save your others.  Just
run the second tomcat as your local user.  I haven't done this in a
while but it works fine as long as you don't run them together (if you
do you'll need to change ports and such).

 Thanks!
 
 Denise Mangano
 Complus Data Innovations, Inc.
 914-747-1200
 
 
 -Original Message-
 From: Timothy Halloran [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 10:43 AM
 To: Tomcat Users List
 Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
 
 
 RH7.3 was EXT2 filesystem I think?  (you probably did this) but I'd do

 a complete FSCHK on all disks.
 
 (1) Test some other Java applications...are they working?  If not
 reinstall the RPM for the JRE you are using...try again.
 
 (2) load up another copy of Tomcat in your user account?  Does this
 work (don't try to run them together)?  If so...save your XML and 
 WEBAPP directories and reinstall Tomcat.
 
 Good Luck.
-- 
Timothy Halloran [EMAIL PROTECTED]
Carnegie Mellon University

-
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: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError

2003-09-19 Thread Denise Mangano
I think it might be safe to assume the problem was with the user I was
running tomcat as, if that makes any sense at all???  After I did what I
said below, I realized that I was testing this out as root, and I should
try it as other users.  I tried it with my login, and I can start Tomcat
just fine...  I tried it with the user that was running it previously,
and that is when Tomcat will not start and I get the same errors...

Is it possible for a user to become corrupt??

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Denise Mangano 
Sent: Friday, September 19, 2003 12:18 PM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


I did as you all suggested, and installed a second instance of tomcat.
Without changing anything in the configuration, and using the default
example webapps everything worked fine.  So instead of trying to map my
webapp to run off this second instance, I backed up the existing tomcat
installation and moved the working one to the original location.  I am
not sure if doing so was a newbie mistake, but it is still working fine,
and I can run all the examples.

So is it safe to assume that the problem was with Tomcat?  If so, how
can I begin to find out exactly what happened...

I have a few concerns before I start adding back my config and
webapps 
1.  I would like to test my java app to make sure that the program is
not causing (or will not cause) the out of memory error. 2.  What is the
best procedures for restoring my configuration?  I'm concerned that
possibly something in my config allowed this to happen...

Thanks again to everyone for their help.

Denise 


-Original Message-
From: Denise Mangano 
Sent: Friday, September 19, 2003 11:37 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


Ok, here is something interesting   

I wanted to follow Ralph's suggestion of trimming down Tomcat's config,
but I wasn't exactly sure what I could or couldn't touch in server.xml.
So what I did was backuped up my server.xml - then renamed the
server-noexamples.xml.config (shipped with the distro) to server.xml and
attempted to start Tomcat Wouldn't you know it, Tomcat started, AND
I can get to www.mysite.com:8080

I tried to stop it, and restart it again - and now I am getting the same
errors...  Does that shed any light? Or should I go with the second
install of Tomcat?

Thanks again so much for everyone's posts.

Denise 


-Original Message-
From: Timothy Halloran [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 11:25 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


On Fri, 2003-09-19 at 11:18, Denise Mangano wrote:
 The filesystem check returns that everything is clean.
 
 I ran the test versions of the java programs that are part of my 
 webapp from the command line, and the program executes without a 
 hitch.  It makes a URL connection to a remote server and sends data, 
 and then receives a response...  So I would assume there is no problem

 with the java installation??
 
 How do I load a second instance of Tomcat without it interfering with 
 the current installation?

Use the TGZ version not RPM and put it in another directory...you'll
have to change some variables (as I recall) and save your others.  Just
run the second tomcat as your local user.  I haven't done this in a
while but it works fine as long as you don't run them together (if you
do you'll need to change ports and such).

 Thanks!
 
 Denise Mangano
 Complus Data Innovations, Inc.
 914-747-1200
 
 
 -Original Message-
 From: Timothy Halloran [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 10:43 AM
 To: Tomcat Users List
 Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
 
 
 RH7.3 was EXT2 filesystem I think?  (you probably did this) but I'd do

 a complete FSCHK on all disks.
 
 (1) Test some other Java applications...are they working?  If not 
 reinstall the RPM for the JRE you are using...try again.
 
 (2) load up another copy of Tomcat in your user account?  Does this 
 work (don't try to run them together)?  If so...save your XML and 
 WEBAPP directories and reinstall Tomcat.
 
 Good Luck.
-- 
Timothy Halloran [EMAIL PROTECTED]
Carnegie Mellon University

-
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]


-
To unsubscribe, e-mail: [EMAIL PROTECTED

RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError

2003-09-19 Thread Denise Mangano
I restored my Tomcat Installation to the way it was previously with my
config and webapps.  I am going to delete the user 'tomcat'.  I am going
to create a new user to run Tomcat as.  My question now is, should I
make any special settings for this user (i.e.  Such as Ralph had
suggested: ulimit -s 2048  export LD_ASSUME_KERNEL=2.2.5)?

Thanks!!

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 1:40 PM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError



Howdy,
It's very a possible for a user to have much lower ulimit/thread
limit/kernel sym version settings than root does...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 1:33 PM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError

I think it might be safe to assume the problem was with the user I was 
running tomcat as, if that makes any sense at all???  After I did what
I
said below, I realized that I was testing this out as root, and I
should
try it as other users.  I tried it with my login, and I can start
Tomcat
just fine...  I tried it with the user that was running it previously, 
and that is when Tomcat will not start and I get the same errors...

Is it possible for a user to become corrupt??

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Denise Mangano
Sent: Friday, September 19, 2003 12:18 PM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


I did as you all suggested, and installed a second instance of tomcat. 
Without changing anything in the configuration, and using the default 
example webapps everything worked fine.  So instead of trying to map my

webapp to run off this second instance, I backed up the existing tomcat

installation and moved the working one to the original location.  I am 
not sure if doing so was a newbie mistake, but it is still working
fine,
and I can run all the examples.

So is it safe to assume that the problem was with Tomcat?  If so, how 
can I begin to find out exactly what happened...

I have a few concerns before I start adding back my config and 
webapps 1.  I would like to test my java app to make sure that the 
program is not causing (or will not cause) the out of memory error. 2.

What is
the
best procedures for restoring my configuration?  I'm concerned that 
possibly something in my config allowed this to happen...

Thanks again to everyone for their help.

Denise


-Original Message-
From: Denise Mangano
Sent: Friday, September 19, 2003 11:37 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


Ok, here is something interesting 

I wanted to follow Ralph's suggestion of trimming down Tomcat's config,

but I wasn't exactly sure what I could or couldn't touch in server.xml.

So what I did was backuped up my server.xml - then renamed the 
server-noexamples.xml.config (shipped with the distro) to server.xml
and
attempted to start Tomcat Wouldn't you know it, Tomcat started, AND

I can get to www.mysite.com:8080

I tried to stop it, and restart it again - and now I am getting the
same
errors...  Does that shed any light? Or should I go with the second 
install of Tomcat?

Thanks again so much for everyone's posts.

Denise


-Original Message-
From: Timothy Halloran [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 11:25 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


On Fri, 2003-09-19 at 11:18, Denise Mangano wrote:
 The filesystem check returns that everything is clean.

 I ran the test versions of the java programs that are part of my 
 webapp from the command line, and the program executes without a 
 hitch.  It makes a URL connection to a remote server and sends data, 
 and then receives a response...  So I would assume there is no
problem

 with the java installation??

 How do I load a second instance of Tomcat without it interfering with

 the current installation?

Use the TGZ version not RPM and put it in another
directory...you'll
have to change some variables (as I recall) and save your others.  Just

run the second tomcat as your local user.  I haven't done this in a 
while but it works fine as long as you don't run them together (if you 
do you'll need to change ports and such).

 Thanks!

 Denise Mangano
 Complus Data Innovations, Inc.
 914-747-1200


 -Original Message-
 From: Timothy Halloran [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 10:43 AM
 To: Tomcat Users List
 Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


 RH7.3 was EXT2 filesystem I think?  (you probably did this) but I'd
do

 a complete FSCHK on all disks.

 (1) Test

Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Denise Mangano


Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Denise Mangano 
Sent: Friday, September 19, 2003 2:03 PM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


I restored my Tomcat Installation to the way it was previously with my
config and webapps.  I am going to delete the user 'tomcat'.  I am going
to create a new user to run Tomcat as.  My question now is, should I
make any special settings for this user (i.e.  Such as Ralph had
suggested: ulimit -s 2048  export LD_ASSUME_KERNEL=2.2.5)?

Thanks!!

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 1:40 PM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError



Howdy,
It's very a possible for a user to have much lower ulimit/thread
limit/kernel sym version settings than root does...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 1:33 PM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError

I think it might be safe to assume the problem was with the user I was
running tomcat as, if that makes any sense at all???  After I did what
I
said below, I realized that I was testing this out as root, and I
should
try it as other users.  I tried it with my login, and I can start
Tomcat
just fine...  I tried it with the user that was running it previously,
and that is when Tomcat will not start and I get the same errors...

Is it possible for a user to become corrupt??

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Denise Mangano
Sent: Friday, September 19, 2003 12:18 PM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


I did as you all suggested, and installed a second instance of tomcat.
Without changing anything in the configuration, and using the default 
example webapps everything worked fine.  So instead of trying to map my

webapp to run off this second instance, I backed up the existing tomcat

installation and moved the working one to the original location.  I am
not sure if doing so was a newbie mistake, but it is still working
fine,
and I can run all the examples.

So is it safe to assume that the problem was with Tomcat?  If so, how
can I begin to find out exactly what happened...

I have a few concerns before I start adding back my config and
webapps 1.  I would like to test my java app to make sure that the 
program is not causing (or will not cause) the out of memory error. 2.

What is
the
best procedures for restoring my configuration?  I'm concerned that
possibly something in my config allowed this to happen...

Thanks again to everyone for their help.

Denise


-Original Message-
From: Denise Mangano
Sent: Friday, September 19, 2003 11:37 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


Ok, here is something interesting 

I wanted to follow Ralph's suggestion of trimming down Tomcat's config,

but I wasn't exactly sure what I could or couldn't touch in server.xml.

So what I did was backuped up my server.xml - then renamed the
server-noexamples.xml.config (shipped with the distro) to server.xml
and
attempted to start Tomcat Wouldn't you know it, Tomcat started, AND

I can get to www.mysite.com:8080

I tried to stop it, and restart it again - and now I am getting the
same
errors...  Does that shed any light? Or should I go with the second
install of Tomcat?

Thanks again so much for everyone's posts.

Denise


-Original Message-
From: Timothy Halloran [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 11:25 AM
To: Tomcat Users List
Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError


On Fri, 2003-09-19 at 11:18, Denise Mangano wrote:
 The filesystem check returns that everything is clean.

 I ran the test versions of the java programs that are part of my
 webapp from the command line, and the program executes without a 
 hitch.  It makes a URL connection to a remote server and sends data, 
 and then receives a response...  So I would assume there is no
problem

 with the java installation??

 How do I load a second instance of Tomcat without it interfering with

 the current installation?

Use the TGZ version not RPM and put it in another
directory...you'll
have to change some variables (as I recall) and save your others.  Just

run the second tomcat as your local user.  I haven't done this in a
while but it works fine as long as you don't run them together (if you 
do you'll need to change ports and such).

 Thanks!

 Denise Mangano
 Complus Data Innovations, Inc.
 914-747-1200


 -Original Message-
 From: Timothy Halloran [mailto:[EMAIL PROTECTED]
 Sent: Friday

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Denise Mangano
Sorry - didn't mean to send that yet...

This is the output I am getting in catalina.out

Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Sep 19, 2003 2:54:19 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
GlobalResourcesLifecycleListener: Exception processing Global JNDI
Resources
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:214)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:181)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEve
nt(GlobalResourcesLifecycleListener.java:149)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java
:302)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
UserDatabaseRealm[Standalone]: Exception looking up UserDatabase under
key UserDatabase
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java
:302)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Catalina.start: LifecycleException:  No UserDatabase component found
under key UserDatabase
LifecycleException:  No UserDatabase component found under key
UserDatabase
at

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Denise Mangano
Actually the tomcat-users.xml.new does not exist... Perhaps it's a
temporary file that gets created as Tomcat starts?? There is a
tomcat-users.xml which I added the user into.  I added write permissions
to the conf directory for the owner, and when I went to start Tomcat I
was right back where I started with the Out of Memory errors...

I can start Tomcat as root, and it runs fine.  I changed owner to a
couple of different users  tried running, but same errors occur.  So it
appears that I can only start and run Tomcat as root.  This is obviously
not a good thing to do.  I feel as I am back to square one... Does
anyone please have any suggestions?

Thank you.

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 2:56 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


not sure what is is, but shouldn't the file
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new

be named
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml

try to rename it and start again
Filip
- Original Message -
From: Denise Mangano [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 19, 2003 11:55 AM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Sorry - didn't mean to send that yet...

This is the output I am getting in catalina.out

Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Sep 19, 2003 2:54:19 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
GlobalResourcesLifecycleListener: Exception processing Global JNDI
Resources
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:214)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:181)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEve
nt(GlobalResourcesLifecycleListener.java:149)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java
:302)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
UserDatabaseRealm[Standalone]: Exception looking up UserDatabase under
key UserDatabase
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Denise Mangano
By executing your command, it gave rwx access to everyone, and I still
cannot run Tomcat as another user.  The only user that will start Tomcat
successfully and remain running is root.  All other users get the java
errors (OutofMemoryError  InvocationTargetException)

I'm at a loss...

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 3:04 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


so if you do

chmod -R 777 /usr/local/jakarta-tomcat-4.1.27

you can't run it as another user?

Filip
- Original Message -
From: Denise Mangano [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 19, 2003 12:02 PM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Actually the tomcat-users.xml.new does not exist... Perhaps it's a
temporary file that gets created as Tomcat starts?? There is a
tomcat-users.xml which I added the user into.  I added write permissions
to the conf directory for the owner, and when I went to start Tomcat I
was right back where I started with the Out of Memory errors...

I can start Tomcat as root, and it runs fine.  I changed owner to a
couple of different users  tried running, but same errors occur.  So it
appears that I can only start and run Tomcat as root.  This is obviously
not a good thing to do.  I feel as I am back to square one... Does
anyone please have any suggestions?

Thank you.

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 2:56 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


not sure what is is, but shouldn't the file
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new

be named
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml

try to rename it and start again
Filip
- Original Message -
From: Denise Mangano [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 19, 2003 11:55 AM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Sorry - didn't mean to send that yet...

This is the output I am getting in catalina.out

Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Sep 19, 2003 2:54:19 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
GlobalResourcesLifecycleListener: Exception processing Global JNDI
Resources
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:214)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:181)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEve
nt(GlobalResourcesLifecycleListener.java:149)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java
:302)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot startTomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Denise Mangano
I did as you suggested and this is my output:
[EMAIL PROTECTED] boot]# ll vmlinuz*
lrwxrwxrwx1 root root   16 Aug 19 14:02 vmlinuz -
vmlinuz-2.4.18-3
-rw-r--r--1 root root  1030147 Apr 18  2002 vmlinuz-2.4.18-3
[EMAIL PROTECTED] boot]# uname -r
2.4.18-3


I find it very strange that root can run it fine, but no one else can.
I would automatically think permission issue, but even when I had rwx
for everyone I still could only run it as root.  When I try to run as
anyone else I got those two java errors, and the processes would start,
but would disappear in a few seconds.

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Timothy Halloran [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 3:12 PM
To: Tomcat Users List
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot
startTomcat - java.lang.OutOfMemoryError]


On Fri, 2003-09-19 at 15:02, Denise Mangano wrote:
 Actually the tomcat-users.xml.new does not exist... Perhaps it's a 
 temporary file that gets created as Tomcat starts?? There is a 
 tomcat-users.xml which I added the user into.  I added write 
 permissions to the conf directory for the owner, and when I went to 
 start Tomcat I was right back where I started with the Out of Memory 
 errors...

Clearly you had a permissions problem, I looked at the code pointed to
by your exception trace -- but you got there quicker :-)

 I can start Tomcat as root, and it runs fine.  I changed owner to a 
 couple of different users  tried running, but same errors occur.  So 
 it appears that I can only start and run Tomcat as root.  This is 
 obviously not a good thing to do.  I feel as I am back to square 
 one... Does anyone please have any suggestions?

OK, double check that you are running the same Linux kernel -- go to
your /boot directory and look at all your kernels vmlinuz-(version
strings).  You should get something like:

{gs06:/boot} ll vmlinuz*
lrwxrwxrwx1 root root   19 Aug 20 18:12 vmlinuz -
vmlinuz-2.4.20-20.9
-rw-r--r--1 root root 1.1M Aug 18 11:57
vmlinuz-2.4.20-20.9
-rw-r--r--1 root root 1.2M Aug 18 11:44
vmlinuz-2.4.20-20.9smp
{gs06:/boot}

I have two kernels (one SMP one single processor)

To determine the current version use uname -r

I get:

{gs06:/boot} uname -r
2.4.20-20.9smp


If you have a bunch and the file date looks more recent than your last
reboot you might try booting with the earlier kernel (pick it in lilo
menu -- I think RH7.3 used Lilo.

If no changes...we'll need to think of something else.

 Thank you.
 
 Denise Mangano
 Complus Data Innovations, Inc.
 914-747-1200
 
 
 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 2:56 PM
 To: Tomcat Users List
 Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
 Tomcat - java.lang.OutOfMemoryError]
 
 
 not sure what is is, but shouldn't the file 
 /usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new
 
 be named /usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml
 
 try to rename it and start again
 Filip
 - Original Message -
 From: Denise Mangano [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 11:55 AM
 Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start 
 Tomcat - java.lang.OutOfMemoryError]
 
 
 Sorry - didn't mean to send that yet...
 
 This is the output I am getting in catalina.out
 
 Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry 
 loadRegistry
 INFO: Loading registry information
 Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry
getRegistry
 INFO: Creating new Registry instance
 Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getServer
 INFO: Creating MBeanServer
 Sep 19, 2003 2:54:19 PM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on port 8080
 GlobalResourcesLifecycleListener: Exception processing Global JNDI
 Resources
 javax.naming.NamingException:
 /usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
 denied)
 at
 org.apache.naming.NamingContext.lookup(NamingContext.java:844)
 at
 org.apache.naming.NamingContext.lookup(NamingContext.java:194)
 at

org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
 (GlobalResourcesLifecycleListener.java:214)
 at

org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
 (GlobalResourcesLifecycleListener.java:181)
 at

org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEve
 nt(GlobalResourcesLifecycleListener.java:149)
 at

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
 pport.java:166)
 at

org.apache.catalina.core.StandardServer.start(StandardServer.java:2183)
 at
org.apache.catalina.startup.Catalina.start(Catalina.java:512

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot startTomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Denise Mangano
By the way - there have been no changes to my server.xml - Tomcat is
listening to port 8080 (even though it gets passed control from apache
in a live setting)

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Denise Mangano 
Sent: Friday, September 19, 2003 3:16 PM
To: Tomcat Users List
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot
startTomcat - java.lang.OutOfMemoryError]


I did as you suggested and this is my output:
[EMAIL PROTECTED] boot]# ll vmlinuz*
lrwxrwxrwx1 root root   16 Aug 19 14:02 vmlinuz -
vmlinuz-2.4.18-3
-rw-r--r--1 root root  1030147 Apr 18  2002 vmlinuz-2.4.18-3
[EMAIL PROTECTED] boot]# uname -r
2.4.18-3


I find it very strange that root can run it fine, but no one else can. I
would automatically think permission issue, but even when I had rwx for
everyone I still could only run it as root.  When I try to run as anyone
else I got those two java errors, and the processes would start, but
would disappear in a few seconds.

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Timothy Halloran [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 3:12 PM
To: Tomcat Users List
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot
startTomcat - java.lang.OutOfMemoryError]


On Fri, 2003-09-19 at 15:02, Denise Mangano wrote:
 Actually the tomcat-users.xml.new does not exist... Perhaps it's a
 temporary file that gets created as Tomcat starts?? There is a 
 tomcat-users.xml which I added the user into.  I added write 
 permissions to the conf directory for the owner, and when I went to 
 start Tomcat I was right back where I started with the Out of Memory 
 errors...

Clearly you had a permissions problem, I looked at the code pointed to
by your exception trace -- but you got there quicker :-)

 I can start Tomcat as root, and it runs fine.  I changed owner to a
 couple of different users  tried running, but same errors occur.  So 
 it appears that I can only start and run Tomcat as root.  This is 
 obviously not a good thing to do.  I feel as I am back to square 
 one... Does anyone please have any suggestions?

OK, double check that you are running the same Linux kernel -- go to
your /boot directory and look at all your kernels vmlinuz-(version
strings).  You should get something like:

{gs06:/boot} ll vmlinuz*
lrwxrwxrwx1 root root   19 Aug 20 18:12 vmlinuz -
vmlinuz-2.4.20-20.9
-rw-r--r--1 root root 1.1M Aug 18 11:57
vmlinuz-2.4.20-20.9
-rw-r--r--1 root root 1.2M Aug 18 11:44
vmlinuz-2.4.20-20.9smp
{gs06:/boot}

I have two kernels (one SMP one single processor)

To determine the current version use uname -r

I get:

{gs06:/boot} uname -r
2.4.20-20.9smp


If you have a bunch and the file date looks more recent than your last
reboot you might try booting with the earlier kernel (pick it in lilo
menu -- I think RH7.3 used Lilo.

If no changes...we'll need to think of something else.

 Thank you.
 
 Denise Mangano
 Complus Data Innovations, Inc.
 914-747-1200
 
 
 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 2:56 PM
 To: Tomcat Users List
 Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start 
 Tomcat - java.lang.OutOfMemoryError]
 
 
 not sure what is is, but shouldn't the file
 /usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new
 
 be named /usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml
 
 try to rename it and start again
 Filip
 - Original Message -
 From: Denise Mangano [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 11:55 AM
 Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
 Tomcat - java.lang.OutOfMemoryError]
 
 
 Sorry - didn't mean to send that yet...
 
 This is the output I am getting in catalina.out
 
 Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry
 loadRegistry
 INFO: Loading registry information
 Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry
getRegistry
 INFO: Creating new Registry instance
 Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getServer
 INFO: Creating MBeanServer
 Sep 19, 2003 2:54:19 PM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on port 8080
 GlobalResourcesLifecycleListener: Exception processing Global JNDI 
 Resources
 javax.naming.NamingException: 
 /usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
 denied)
 at
 org.apache.naming.NamingContext.lookup(NamingContext.java:844)
 at
 org.apache.naming.NamingContext.lookup(NamingContext.java:194)
 at

org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
 (GlobalResourcesLifecycleListener.java:214)
 at

org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
 (GlobalResourcesLifecycleListener.java:181

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Denise Mangano
Filip .. Sorry - this was in my original post:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Exception during startup processing
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Caused by: java.lang.OutOfMemoryError: unable to create new native
thread
at java.lang.Thread.start(Native Method)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.init(ThreadP
ool.java:582)
at
org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:46
0)
at
org.apache.tomcat.util.threads.ThreadPool.start(ThreadPool.java:179)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint
.java:300)
at
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:161)
at
org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:118
0)
at
org.apache.catalina.core.StandardService.start(StandardService.java:506)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
... 5 more

Exception in thread main java.lang.OutOfMemoryError: unable to create
new native thread
at java.lang.Thread.start(Native Method)
at java.lang.Shutdown.runHooks(Shutdown.java:126)
at java.lang.Shutdown.sequence(Shutdown.java:165)
at java.lang.Shutdown.exit(Shutdown.java:210)
at java.lang.Runtime.exit(Runtime.java:90)
at java.lang.System.exit(System.java:715)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:208)

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 3:16 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


stack traces and log entries are always helpful
- Original Message -
From: Denise Mangano [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 19, 2003 12:10 PM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


By executing your command, it gave rwx access to everyone, and I still
cannot run Tomcat as another user.  The only user that will start Tomcat
successfully and remain running is root.  All other users get the java
errors (OutofMemoryError  InvocationTargetException)

I'm at a loss...

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 3:04 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


so if you do

chmod -R 777 /usr/local/jakarta-tomcat-4.1.27

you can't run it as another user?

Filip
- Original Message -
From: Denise Mangano [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 19, 2003 12:02 PM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Actually the tomcat-users.xml.new does not exist... Perhaps it's a
temporary file that gets created as Tomcat starts?? There is a
tomcat-users.xml which I added the user into.  I added write permissions
to the conf directory for the owner, and when I went to start Tomcat I
was right back where I started with the Out of Memory errors...

I can start Tomcat as root, and it runs fine.  I changed owner to a
couple of different users  tried running, but same errors occur.  So it
appears that I can only start and run Tomcat as root.  This is obviously
not a good thing to do.  I feel as I am back to square one... Does
anyone please have any suggestions?

Thank you.

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Denise Mangano
I know I've flooded the list about this, and I appreciate everyone's
help but I am at a complete loss.  I even restored from backup tape and
the same thing is happening.  I reinstalled tomcat, reinstalled j2sdk,
yet Tomcat will only run as root.

It is obviously not safe to run Tomcat as root, but I absolutely have to
get my app back up.  Any more suggestions are greatly appreciated. 

Thanks.
Denise 


-Original Message-
From: Denise Mangano 
Sent: Friday, September 19, 2003 3:20 PM
To: Tomcat Users List
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Filip .. Sorry - this was in my original post:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Exception during startup processing
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Caused by: java.lang.OutOfMemoryError: unable to create new native
thread
at java.lang.Thread.start(Native Method)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.init(ThreadP
ool.java:582)
at
org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:46
0)
at
org.apache.tomcat.util.threads.ThreadPool.start(ThreadPool.java:179)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint
.java:300)
at
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:161)
at
org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:118
0)
at
org.apache.catalina.core.StandardService.start(StandardService.java:506)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
... 5 more

Exception in thread main java.lang.OutOfMemoryError: unable to create
new native thread
at java.lang.Thread.start(Native Method)
at java.lang.Shutdown.runHooks(Shutdown.java:126)
at java.lang.Shutdown.sequence(Shutdown.java:165)
at java.lang.Shutdown.exit(Shutdown.java:210)
at java.lang.Runtime.exit(Runtime.java:90)
at java.lang.System.exit(System.java:715)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:208)

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 3:16 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


stack traces and log entries are always helpful
- Original Message -
From: Denise Mangano [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 19, 2003 12:10 PM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


By executing your command, it gave rwx access to everyone, and I still
cannot run Tomcat as another user.  The only user that will start Tomcat
successfully and remain running is root.  All other users get the java
errors (OutofMemoryError  InvocationTargetException)

I'm at a loss...

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 3:04 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


so if you do

chmod -R 777 /usr/local/jakarta-tomcat-4.1.27

you can't run it as another user?

Filip
- Original Message -
From: Denise Mangano [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 19, 2003 12:02 PM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Actually the tomcat-users.xml.new does not exist... Perhaps it's a
temporary file that gets created as Tomcat starts?? There is a
tomcat-users.xml which I added the user into.  I added write

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Denise Mangano
Why would this happen suddenly though?  Tomcat was running fine before.
Unfortunately switching OS is not an option.  So this sounds like a
linux problem?

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 4:39 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


the problem is somewhere in the native JVM.
It fails when trying to create a native thread on the OS level as a noon
root user. All I can say is, switch OS :)

Filip
- Original Message -
From: Denise Mangano [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 19, 2003 1:15 PM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


I know I've flooded the list about this, and I appreciate everyone's
help but I am at a complete loss.  I even restored from backup tape and
the same thing is happening.  I reinstalled tomcat, reinstalled j2sdk,
yet Tomcat will only run as root.

It is obviously not safe to run Tomcat as root, but I absolutely have to
get my app back up.  Any more suggestions are greatly appreciated.

Thanks.
Denise


-Original Message-
From: Denise Mangano
Sent: Friday, September 19, 2003 3:20 PM
To: Tomcat Users List
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Filip .. Sorry - this was in my original post:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Exception during startup processing
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Caused by: java.lang.OutOfMemoryError: unable to create new native
thread
at java.lang.Thread.start(Native Method)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.init(ThreadP
ool.java:582)
at
org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:46
0)
at
org.apache.tomcat.util.threads.ThreadPool.start(ThreadPool.java:179)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint
.java:300)
at
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:161)
at
org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:118
0)
at
org.apache.catalina.core.StandardService.start(StandardService.java:506)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
... 5 more

Exception in thread main java.lang.OutOfMemoryError: unable to create
new native thread
at java.lang.Thread.start(Native Method)
at java.lang.Shutdown.runHooks(Shutdown.java:126)
at java.lang.Shutdown.sequence(Shutdown.java:165)
at java.lang.Shutdown.exit(Shutdown.java:210)
at java.lang.Runtime.exit(Runtime.java:90)
at java.lang.System.exit(System.java:715)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:208)

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 3:16 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


stack traces and log entries are always helpful
- Original Message -
From: Denise Mangano [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 19, 2003 12:10 PM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


By executing your command, it gave rwx access to everyone, and I still
cannot run Tomcat as another user.  The only user that will start Tomcat
successfully and remain running is root.  All other users get the java
errors (OutofMemoryError

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Denise Mangano
My Tomcat is not running on port 80.  I have Apache running on port 80
communicating with Tomcat via mod_jk (Apache starts up fine).  Also I am
not using IPTables - I have relied on our network firewall for
protection.

I think Filip is on to something with the JVM... I am posting to Linux
boards right now...

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 4:48 PM
To: 'Tomcat Users List'
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


I forget if you've said or not, but are non-root users allowed to
priveleged ports? Which is what Tomcat would do if you've changed it to
port 80.  Forgive my non-linux background, but perhaps you were using an
IPTables solution to work around this limitation I vaguely and poorly
remember, and because your machine crashed, those settings are gone.

Sysadmins, feel free to flame my clutching at straws!

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 3:42 PM
 To: Tomcat Users List
 Subject: RE: Cannot run Tomcat as new user [Was: Urgent! 
 Cannot start Tomcat - java.lang.OutOfMemoryError]
 
 
 Why would this happen suddenly though?  Tomcat was running
 fine before. Unfortunately switching OS is not an option.  So 
 this sounds like a linux problem?
 
 Denise Mangano
 Complus Data Innovations, Inc.
 914-747-1200
 
 
 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 4:39 PM
 To: Tomcat Users List
 Subject: Re: Cannot run Tomcat as new user [Was: Urgent! 
 Cannot start Tomcat - java.lang.OutOfMemoryError]
 
 
 the problem is somewhere in the native JVM.
 It fails when trying to create a native thread on the OS
 level as a noon root user. All I can say is, switch OS :)
 
 Filip
 - Original Message -
 From: Denise Mangano [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, September 19, 2003 1:15 PM
 Subject: RE: Cannot run Tomcat as new user [Was: Urgent!
 Cannot start Tomcat - java.lang.OutOfMemoryError]
 
 
 I know I've flooded the list about this, and I appreciate
 everyone's help but I am at a complete loss.  I even restored 
 from backup tape and the same thing is happening.  I 
 reinstalled tomcat, reinstalled j2sdk, yet Tomcat will only 
 run as root.
 
 It is obviously not safe to run Tomcat as root, but I
 absolutely have to get my app back up.  Any more suggestions 
 are greatly appreciated.
 
 Thanks.
 Denise
 
 
 -Original Message-
 From: Denise Mangano
 Sent: Friday, September 19, 2003 3:20 PM
 To: Tomcat Users List
 Subject: RE: Cannot run Tomcat as new user [Was: Urgent!
 Cannot start Tomcat - java.lang.OutOfMemoryError]
 
 
 Filip .. Sorry - this was in my original post:
 
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.27
 Sep 19, 2003 9:01:25 AM
 org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, config='org.apache.struts.util.LocalStrings',
 returnNull=true
 Sep 19, 2003 9:01:25 AM 
 org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, config='org.apache.struts.action.ActionResources',
 returnNull=true
 Sep 19, 2003 9:01:26 AM 
 org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, 
 config='org.apache.webapp.admin.ApplicationResources', 
 returnNull=true Exception during startup processing 
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
 orImpl.jav
 a:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
 odAccessor
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
 Caused by: java.lang.OutOfMemoryError: unable to create new
 native thread
 at java.lang.Thread.start(Native Method)
 at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ini
 t(ThreadP
 ool.java:582)
 at
 org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPo
 ol.java:46
 0)
 at
 org.apache.tomcat.util.threads.ThreadPool.start(ThreadPool.java:179)
 at 
 org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolT
 cpEndpoint
 .java:300)
 at
 org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:161)
 at 
 org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
 r.java:118
 0)
 at
 org.apache.catalina.core.StandardService.start(StandardService
 .java:506)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.j
 ava:2190)
 at 
 org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at
 org.apache.catalina.startup.Catalina.execute(Catalina.java:400

Urgent - strange tomcat /mod jk (?) problem going on

2003-09-04 Thread Denise Mangano
I have a major problem and I am hoping you can help.  I have a web app
which serves the first few pages through apache, then the last 4 secure
pages through tomcat.  This was all working at one point, but I've had
to rebuild since - and I'm experiencing some new problems.

I have apache 1.3.28, Tomcat 4.1.27, mod_jk 1.3.  My apache part of the
site works fine.  It appears that Tomcat (and possibly mod_jk) are
working. 

1.  When I go to  www.mysite.com:8080 I get a page cannot be displayed 
2.  Anytime I try to go to www.mysite.com/index.jsp or any other Tomcat
page I get HTTP Status 404 - The requested resource
(/CCPayments/7D/CCPayment.jsp) is not available.

Also, there is no mention of this request in the apache error logs to
indicate that the server is attempting to serve that page through
Apache.  

Mod_jk finds the match for /CCPayments/ but doesn't do anything with it.
This is the output in mod_jk.log:
[Thu Sep 04 12:26:04 2003]  [jk_uri_worker_map.c (477)]: Attempting to
map URI '/CCPayments/7D/CCPayment.jsp'
[Thu Sep 04 12:26:04 2003]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -
/CCPayments/
[Thu Sep 04 12:26:04 2003]  [jk_worker.c (132)]: Into
wc_get_worker_for_name ajp13
[Thu Sep 04 12:26:04 2003]  [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (1404)]: Into
jk_worker_t::get_endpoint
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (1448)]: In
jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 31
seconds
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (1116)]: Into
jk_endpoint_t::service
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (295)]: Into
ajp_marshal_into_msgb
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (432)]:
ajp_marshal_into_msgb - Done
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (642)]: sending to ajp13
#674
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (884)]: ajp_send_request 2:
request body to send 0 - request body to resend 0
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (729)]: received from ajp13
#109
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (483)]:
ajp_unmarshal_response: status = 404
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (488)]:
ajp_unmarshal_response: Number of headers is = 2
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (532)]:
ajp_unmarshal_response: Header[0] [Content-Type] =
[text/html;charset=ISO-8859-1]
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (532)]:
ajp_unmarshal_response: Header[1] [Content-Language] = [en-US]
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (729)]: received from ajp13
#753
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (729)]: received from ajp13
#2
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (1382)]: Into
jk_endpoint_t::done, recycling connection

Any clue what else to check for? I guess it seems that mod_jk is doing
its thing like its supposed to but Tomcat isn't working, but I won't
know for sure until I at least get Tomcat working.  Also - I started
Tomcat first and waited a whole minute before starting Apache.

Thanks,

Denise Mangano



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



RE: Urgent - strange tomcat /mod jk (?) problem going on

2003-09-04 Thread Denise Mangano
Ok I'm a dope - sorry.  I didn't realize that I had changed my
ServerName in my apache httpd.conf and forgot to change it in my
server.xml .  However, now I am getting a bad request error.  I am no
longer getting the HTTP 404 resource not available error.  I'm not
really sure if that means Tomcat is working or not though...  

Both mod_jk.log and catalina.out look normal.  My apache logs don't say
anything about the request... The strangest thing is that I have all my
logging set to debug, but there is nothing showing in my apache log.
They don't say much of anything besides my server starting and
stopping...

Thanks.


-Original Message-
From: Denise Mangano 
Sent: Thursday, September 04, 2003 1:00 PM
To: Tomcat Users List
Subject: Urgent - strange tomcat /mod jk (?) problem going on


I have a major problem and I am hoping you can help.  I have a web app
which serves the first few pages through apache, then the last 4 secure
pages through tomcat.  This was all working at one point, but I've had
to rebuild since - and I'm experiencing some new problems.

I have apache 1.3.28, Tomcat 4.1.27, mod_jk 1.3.  My apache part of the
site works fine.  It appears that Tomcat (and possibly mod_jk) are
working. 

1.  When I go to  www.mysite.com:8080 I get a page cannot be displayed 
2.  Anytime I try to go to www.mysite.com/index.jsp or any other Tomcat
page I get HTTP Status 404 - The requested resource
(/CCPayments/7D/CCPayment.jsp) is not available.

Also, there is no mention of this request in the apache error logs to
indicate that the server is attempting to serve that page through
Apache.  

Mod_jk finds the match for /CCPayments/ but doesn't do anything with it.
This is the output in mod_jk.log: [Thu Sep 04 12:26:04 2003]
[jk_uri_worker_map.c (477)]: Attempting to map URI
'/CCPayments/7D/CCPayment.jsp' [Thu Sep 04 12:26:04 2003]
[jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker,
Found a context match ajp13 - /CCPayments/ [Thu Sep 04 12:26:04 2003]
[jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Thu Sep 04
12:26:04 2003]  [jk_worker.c (136)]: wc_get_worker_for_name, done  found
a worker [Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (1404)]: Into
jk_worker_t::get_endpoint [Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c
(1448)]: In jk_endpoint_t::ajp_get_endpoint, time elapsed since last
request = 31 seconds [Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c
(1116)]: Into jk_endpoint_t::service [Thu Sep 04 12:26:04 2003]
[jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb [Thu Sep 04 12:26:04
2003]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done [Thu Sep 04
12:26:04 2003]  [jk_ajp_common.c (642)]: sending to ajp13 #674 [Thu Sep
04 12:26:04 2003]  [jk_ajp_common.c (884)]: ajp_send_request 2: request
body to send 0 - request body to resend 0 [Thu Sep 04 12:26:04 2003]
[jk_ajp_common.c (729)]: received from ajp13 #109 [Thu Sep 04 12:26:04
2003]  [jk_ajp_common.c (483)]:
ajp_unmarshal_response: status = 404
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (488)]:
ajp_unmarshal_response: Number of headers is = 2
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (532)]:
ajp_unmarshal_response: Header[0] [Content-Type] =
[text/html;charset=ISO-8859-1] [Thu Sep 04 12:26:04 2003]
[jk_ajp_common.c (532)]:
ajp_unmarshal_response: Header[1] [Content-Language] = [en-US] [Thu Sep
04 12:26:04 2003]  [jk_ajp_common.c (729)]: received from ajp13 #753
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (729)]: received from ajp13
#2 [Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (1382)]: Into
jk_endpoint_t::done, recycling connection

Any clue what else to check for? I guess it seems that mod_jk is doing
its thing like its supposed to but Tomcat isn't working, but I won't
know for sure until I at least get Tomcat working.  Also - I started
Tomcat first and waited a whole minute before starting Apache.

Thanks,

Denise Mangano



-
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: [SOLVED] Urgent - strange tomcat /mod jk (?) problem going on

2003-09-04 Thread Denise Mangano
There were a few things going on there... I should have taken a step
back and relaxed and given everything another look before I posted... My
apologies for that ... I panicked because of the bind that I am in.

1.  ServerName httpd/conf did not match the value of the name attribute
in the Host Element of server.xml

2.  Was trying to access a jsp page through http:// when I only set up
the JkMount for https://

3.  Somehow when I restored my application files, one of the directories
got copied over as 7d instead of 7D and the application was looking for
the latter.

Everything is actually all good, and running fine.  Surprisingly enough
mod_jk worked without a hitch (unlike last time when it took me two
weeks to get it working).  This time I followed your how-to pretty much
to a T... Thanks for having that available!!

Denise 

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 04, 2003 2:08 PM
To: Tomcat Users List
Subject: Re: Urgent - strange tomcat /mod jk (?) problem going on



If http://your.url:8080/yourApp doesn't work, you have to fix Tomcat 
first (server.xml).

If http://your.url/yourApp doesn't work and http://your.url:8080/yourApp

does work, you have to fix mod_jk (or rather the JK settings in Apache's

httpd.conf).

HTH

John

Denise Mangano wrote:

 Ok I'm a dope - sorry.  I didn't realize that I had changed my 
 ServerName in my apache httpd.conf and forgot to change it in my 
 server.xml .  However, now I am getting a bad request error.  I am no 
 longer getting the HTTP 404 resource not available error.  I'm not 
 really sure if that means Tomcat is working or not though...
 
 Both mod_jk.log and catalina.out look normal.  My apache logs don't 
 say anything about the request... The strangest thing is that I have 
 all my logging set to debug, but there is nothing showing in my apache

 log. They don't say much of anything besides my server starting and 
 stopping...
 
 Thanks.
 
 
 -Original Message-
 From: Denise Mangano
 Sent: Thursday, September 04, 2003 1:00 PM
 To: Tomcat Users List
 Subject: Urgent - strange tomcat /mod jk (?) problem going on
 
 
 I have a major problem and I am hoping you can help.  I have a web app

 which serves the first few pages through apache, then the last 4 
 secure pages through tomcat.  This was all working at one point, but 
 I've had to rebuild since - and I'm experiencing some new problems.
 
 I have apache 1.3.28, Tomcat 4.1.27, mod_jk 1.3.  My apache part of 
 the site works fine.  It appears that Tomcat (and possibly mod_jk) are

 working.
 
 1.  When I go to  www.mysite.com:8080 I get a page cannot be displayed
 2.  Anytime I try to go to www.mysite.com/index.jsp or any other
Tomcat
 page I get HTTP Status 404 - The requested resource
 (/CCPayments/7D/CCPayment.jsp) is not available.
 
 Also, there is no mention of this request in the apache error logs to 
 indicate that the server is attempting to serve that page through 
 Apache.
 
 Mod_jk finds the match for /CCPayments/ but doesn't do anything with 
 it. This is the output in mod_jk.log: [Thu Sep 04 12:26:04 2003] 
 [jk_uri_worker_map.c (477)]: Attempting to map URI 
 '/CCPayments/7D/CCPayment.jsp' [Thu Sep 04 12:26:04 2003] 
 [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker,
 Found a context match ajp13 - /CCPayments/ [Thu Sep 04 12:26:04 2003]

 [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Thu Sep 04 
 12:26:04 2003]  [jk_worker.c (136)]: wc_get_worker_for_name, done  
 found a worker [Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (1404)]: 
 Into jk_worker_t::get_endpoint [Thu Sep 04 12:26:04 2003]  
 [jk_ajp_common.c
 (1448)]: In jk_endpoint_t::ajp_get_endpoint, time elapsed since last
 request = 31 seconds [Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c
 (1116)]: Into jk_endpoint_t::service [Thu Sep 04 12:26:04 2003]
 [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb [Thu Sep 04
12:26:04
 2003]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done [Thu Sep
04
 12:26:04 2003]  [jk_ajp_common.c (642)]: sending to ajp13 #674 [Thu
Sep
 04 12:26:04 2003]  [jk_ajp_common.c (884)]: ajp_send_request 2:
request
 body to send 0 - request body to resend 0 [Thu Sep 04 12:26:04 2003]
 [jk_ajp_common.c (729)]: received from ajp13 #109 [Thu Sep 04 12:26:04
 2003]  [jk_ajp_common.c (483)]:
 ajp_unmarshal_response: status = 404
 [Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (488)]:
 ajp_unmarshal_response: Number of headers is = 2
 [Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (532)]:
 ajp_unmarshal_response: Header[0] [Content-Type] =
 [text/html;charset=ISO-8859-1] [Thu Sep 04 12:26:04 2003]
 [jk_ajp_common.c (532)]:
 ajp_unmarshal_response: Header[1] [Content-Language] = [en-US] [Thu
Sep
 04 12:26:04 2003]  [jk_ajp_common.c (729)]: received from ajp13 #753
 [Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (729)]: received from
ajp13
 #2 [Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (1382)]: Into
 jk_endpoint_t::done

simple workers.properties question (John Turner's how-to)

2003-08-28 Thread Denise Mangano
According to the how-to, I created the workers.properties file.  My
question is simple:
 
Is it ok to leave:
worker.ajp13.host = localhost
 
or should I change it to:
worker.ajp13.host = www.mydomain.com
 
In my httpd.conf my ServerName is www.mydomain.com, and in my server.xml
the Host name is www.mydomain.com
 
Thanks :)
 
Denise


RE: First mod_jk problem - can't start apache with Include statement (revisited)

2003-08-28 Thread Denise Mangano
Not really sure if this is a problem as of yet.  I currently cannot test
my configuration ... But I just wanted to write again regarding this
issue.  As I followed the how-to, I did things a little out of order.
Before changing Tomcat, and while Tomcat was not running, I added the
LoadModule and Include statements into httpd.conf.  I then ran an
apachectl configtest.  The configtest executed fine and I was returned
an error message that the file mod_jk.conf could not be found.  This was
right, because the file was not generated yet.

I then set up server.xml and created my workers.properties and started
Tomcat, which started no problem.

I then went back to apache and ran another configtest, and surprise...
It hangs... And so does apachectl start ...So we're back to the same
issue.  I am having a hard time at this point believing it is an Apache
issue, because the configtest executed fine with the include before
Tomcat was started and before the mod_jk.conf was created.

So what I did next was one at a time, I added in the Jk statements into
the httpd.conf to rule out this being an issue with the mod_jk
module(?).  First I added in the JkWorkersFile, then ran a configtest.
Then added in the JkLogFile and ran a configtest.  Lastly added in some
JkMount statements and ran a configtest.  At each of these points, the
configtest executed and was successful.  I can also start and stop
apache no problem.

As I mentioned, I cannot test whether or not mod_jk works just yet
(network issues)... There were no errors when starting either Tomcat or
apache.  But I do find it strange that I can't start apache just because
I have the Include statement.

Any further thoughts on this?  The output of httpd -l just lists
mod_core and mod_so.  I have all other modules added as DSO's.

Thanks :)
DEnise

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 27, 2003 11:08 AM
 To: Tomcat Users List
 Subject: Re: [OFF-TOPIC] Re: First mod_jk problem - can't 
 start apache with Include statement
 
 
 
 Cool.  My typical Apache build is:
 
 ./configure --enable-so --enable-ssl
 make
 make install
 
 John
 
 Denise Mangano wrote:
 
  Yes I am.  The problem (right now) definitely appears to be some 
  issues with Apache.  Unfortunately, the Apache list isn't 
 as heavily 
  trafficked, or as quick to response, so I'm still waiting on some 
  replies while I search the archives.  I think I have to recompile 
  Apache.  I added in a few extra flags when I did this yesterday to 
  make it more secure but I think I am better off just 
 keeping it as 
  is, then taking out what I don't need later...
  
  Won't be able to determine if I have a mod_jk problem at 
 all until I 
  get my Apache running properly.
  
  
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 10:47 AM
 To: Tomcat Users List
 Subject: [OFF-TOPIC] Re: First mod_jk problem - can't start 
 apache with Include statement
 
 
 
 Are you loading mod_ssl?
 
 I'm marking this as off-topic because we haven't determined
 that this is 
 a JK/Tomcat problem yet.
 
 John
 
 Denise Mangano wrote:
 
 
 Yeah, it appears to be my apache.  I still get that
 
 SSLMutex error.  I
 
 have to work on getting that resolved.
 
 This is the output of httpd -l:
 
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_alias.c
mod_access.c
mod_auth.c
mod_so.c
mod_setenvif.c
 suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
 
 Denise
 
 
 
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 10:25 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with
 Include statement
 
 
 
 Hate to say it, but it sounds like your Apache is munged up.
 
 If you delete the mod_jk.conf Include, and you delete all 
 other JK 
 stuff
 
 from httpd.conf, your Apache starts up properly, with no errors?
 
 What is the output of httpd -l?
 
 John
 
 Denise Mangano wrote:
 
 
 
 OK, I tried adding the Jk directives directly into the 
 httpd.conf 
 file, and apache at least starts.  So the problem is the include 
 statement. Is it possible that I don't have whatever module
 
 is needed
 
 
 to support the Include statement?
 
 So now the problem is that although apache starts, it does
 
 not start
 
 
 properly.  When I run ps -aux | grep httpd I get the following:
  www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
  www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
  www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
  www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
 
 And needless to say I can't get to my web page.  Now again I am

RE: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Denise Mangano
John -

I just realized that I explained it slightly wrong.  When I comment
the Include statement, apache starts ok.  When I uncomment apache will
not start.

I checked what you suggested.  As Bill suggested, I am including my conf
files as well.

1.  Apache's error logs are completely empty ...  Yesterday I checked
them and they had the following:
[error]mod_ssl: Child could not open SSLMutex lockfile
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)

That was a permissions issue, which I corrected.  Now when after
starting apache, I wait about 10 seconds, then attempt to start Apache
and it hangs, but nothing is written to either the access_log or the
error_log.

2.  The only thing in Tomcat's log is the server starting and
stopping...  Here's the relevant mod_jk output:
INFO: Initializing Coyote HTTP/1.1 on port 8080
INFO: Starting Coyote HTTP/1.1 on port 8009
INFO: JK2: ajp13 listening on /0.0.0.0./8009
INFO: Jk running ID=0 time=0/28
config=/usr/local/tomcat/conf/jk2.properties

Same thing that I had on my previous installation. Not sure why there is
mention of jk2.properties.

3.  Tried moving mod_jk.conf and changing the include statement but
still apache is a no go...

4.  There are two connectors on port 8009 in the server.xml file.  These
are still the defaults:
!-- Define a Coyote/JK2 AJP1.3 Connector on port 8009 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=0
useURIValidationHack=false

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

!-- Define an AJP1.3 Connector on port 8009 --
!--
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/
--

5.  workers.properties file in /usr/local/tomcat/conf/jk
#BEGIN workers.properties
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
#END workers.properties

Thanks, 

Denise

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 27, 2003 8:19 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 Hi -
 
 Things I would check:
 
 - apache's access and error log - is Apache trying to handle the 
 request instead of Tomcat?
 
 - Tomcat's log - is Tomcat even getting the request?
 
 - move mod_jk.conf to APACHE_HOME/conf, change your Include to match. 
 Then change JkLogLevel to debug or info (I forget 
 which..try info 
 first) and check mod_jk.log for more info
 
 - verify a Connector on port 8009
 
 - doublecheck your workers.properties file, especially the 
 .host parameter
 
 John
 
 Denise Mangano wrote:
 
  I've been following John Turner's how-to (diff apache 
 version but the 
  instructions can still apply).  I think they problem is a 
 permission 
  issue, but wanted some verification.
  
  Apache install is ok, Tomcat install is ok.  I followed the 
 steps, and 
  added the Listeners, and the LoadModule and Include 
 statement at the 
  end of my httpd.conf.  When I uncomment the Include 
 statement apache 
  starts up no problem.  When I try to use it, my system just 
 hangs as I 
  try to start apache.
  
  Tomcat is running under user tomcat, and all directories from 
  /usr/local/tomcat down have rwx for tomcat, and r only for 
 all others. 
  However, Apache runs as user 'www'.  I tried changing 
 permissions to 
  be executable by all but that didn't seem to do the trick.  
 The system 
  still hangs when I try to start Apache.
  
  Here is my structure with permissions:
  
  --usr drwxr-xr-x
 --local  drwxr-xr-x
   --apache  drwxr-xr-x
   --tomcat  drwxr-xr-x
--conf  drwxr-xr-x
--auto  drwxr-xr-x
mod_jk.conf -rwxr-xr-x
   
  
  If its not a permissions issue, then I'm quite clueless as 
 to what it 
  can be.  I can't even run a config test.  Any suggestions/advice is 
  greatly appreciated.
  
  Denise
  
  
  
 -
  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]
 
 
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more

RE: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Denise Mangano
The same thing happens... It just hangs  Also, the same situation.
If I comment out the Include statement in httpd.conf I can run the
configtest ok.

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 27, 2003 9:20 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 What's the output of APACHE_HOME/bin/apachectl configtest?
 
 John
 
 Denise Mangano wrote:
 
  John -
  
  I just realized that I explained it slightly wrong.  When I 
 comment 
  the Include statement, apache starts ok.  When I uncomment apache 
  will not start.
  
  I checked what you suggested.  As Bill suggested, I am including my 
  conf files as well.
  
  1.  Apache's error logs are completely empty ...  Yesterday 
 I checked 
  them and they had the following:
  [error]mod_ssl: Child could not open SSLMutex lockfile 
  /usr/local/apache/logs/ssl_mutex.30776 (System error follows)
  [error]System: Permission denied (errno: 13)
  
  That was a permissions issue, which I corrected.  Now when after 
  starting apache, I wait about 10 seconds, then attempt to 
 start Apache 
  and it hangs, but nothing is written to either the 
 access_log or the 
  error_log.
  
  2.  The only thing in Tomcat's log is the server starting and 
  stopping...  Here's the relevant mod_jk output:
  INFO: Initializing Coyote HTTP/1.1 on port 8080
  INFO: Starting Coyote HTTP/1.1 on port 8009
  INFO: JK2: ajp13 listening on /0.0.0.0./8009
  INFO: Jk running ID=0 time=0/28 
  config=/usr/local/tomcat/conf/jk2.properties
  
  Same thing that I had on my previous installation. Not sure 
 why there 
  is mention of jk2.properties.
  
  3.  Tried moving mod_jk.conf and changing the include statement but 
  still apache is a no go...
  
  4.  There are two connectors on port 8009 in the server.xml file.  
  These are still the defaults:
  !-- Define a Coyote/JK2 AJP1.3 Connector on port 8009 --
  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8009 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0 connectionTimeout=0
  useURIValidationHack=false
  
  protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
  
  !-- Define an AJP1.3 Connector on port 8009 --
  !--
  Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009 minProcessors=5 maxProcessors=75
  acceptCount=10 debug=0/
  --
  
  5.  workers.properties file in /usr/local/tomcat/conf/jk
  #BEGIN workers.properties
  worker.list=ajp13
  worker.ajp13.port=8009
  worker.ajp13.host=localhost
  worker.ajp13.type=ajp13
  #END workers.properties
  
  Thanks,
  
  Denise
  
  
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 8:19 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 Hi -
 
 Things I would check:
 
 - apache's access and error log - is Apache trying to handle the
 request instead of Tomcat?
 
 - Tomcat's log - is Tomcat even getting the request?
 
 - move mod_jk.conf to APACHE_HOME/conf, change your Include 
 to match.
 Then change JkLogLevel to debug or info (I forget 
 which..try info 
 first) and check mod_jk.log for more info
 
 - verify a Connector on port 8009
 
 - doublecheck your workers.properties file, especially the
 .host parameter
 
 John
 
 Denise Mangano wrote:
 
 
 I've been following John Turner's how-to (diff apache
 
 version but the
 
 instructions can still apply).  I think they problem is a
 
 permission
 
 issue, but wanted some verification.
 
 Apache install is ok, Tomcat install is ok.  I followed the
 
 steps, and
 
 added the Listeners, and the LoadModule and Include
 
 statement at the
 
 end of my httpd.conf.  When I uncomment the Include
 
 statement apache
 
 starts up no problem.  When I try to use it, my system just
 
 hangs as I
 
 try to start apache.
 
 Tomcat is running under user tomcat, and all directories from
 /usr/local/tomcat down have rwx for tomcat, and r only for 
 
 all others.
 
 However, Apache runs as user 'www'.  I tried changing
 
 permissions to
 
 be executable by all but that didn't seem to do the trick.
 
 The system
 
 still hangs when I try to start Apache.
 
 Here is my structure with permissions:
 
 --usr drwxr-xr-x
--local  drwxr-xr-x
  --apache  drwxr-xr-x
  --tomcat  drwxr-xr-x
  --conf  drwxr-xr-x
   --auto  drwxr-xr-x
   mod_jk.conf -rwxr-xr-x
  
 
 If its not a permissions issue, then I'm quite clueless as
 
 to what it
 
 can be.  I can't even run a config test.  Any suggestions/advice is
 greatly appreciated.
 
 Denise
 
 
 
 
 
 -
 
 To unsubscribe, e-mail

RE: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Denise Mangano
, August 27, 2003 9:29 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 configtest doesn't return an error?  It just hangs?  That is 
 very funky.
 
 Can you post your mod_jk.conf?
 
 John
 
 Denise Mangano wrote:
 
  The same thing happens... It just hangs  Also, the same 
 situation. 
  If I comment out the Include statement in httpd.conf I can run the 
  configtest ok.
  
  
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 9:20 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 What's the output of APACHE_HOME/bin/apachectl configtest?
 
 John
 
 
 
 
 -
 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: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Denise Mangano
OK, I tried adding the Jk directives directly into the httpd.conf file,
and apache at least starts.  So the problem is the include statement.
Is it possible that I don't have whatever module is needed to support
the Include statement?  

So now the problem is that although apache starts, it does not start
properly.  When I run ps -aux | grep httpd I get the following:
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]

And needless to say I can't get to my web page.  Now again I am getting
those error messages in both my error_log and ssl_engine_log:
[error]mod_ssl: Child could not open SSLMutex lockfile
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)

So apparently I have a problem with mod_ssl, which I guess I didn't
resolve yesterday and should post to the apache list.  But the question
still remains why using the Include statement would prevent Apache from
starting at all?

Thanks for your help :)
Denise



 -Original Message-  
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 27, 2003 9:29 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 configtest doesn't return an error?  It just hangs?  That is 
 very funky.
 
 Can you post your mod_jk.conf?
 
 John
 
 Denise Mangano wrote:
 
  The same thing happens... It just hangs  Also, the same 
 situation. 
  If I comment out the Include statement in httpd.conf I can run the 
  configtest ok.
  
  
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 9:20 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 What's the output of APACHE_HOME/bin/apachectl configtest?
 
 John
 
 
 
 
 -
 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: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Denise Mangano
Yeah, it appears to be my apache.  I still get that SSLMutex error.  I
have to work on getting that resolved.

This is the output of httpd -l:

http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_alias.c
mod_access.c
mod_auth.c
mod_so.c
mod_setenvif.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec

Denise

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 27, 2003 10:25 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 Hate to say it, but it sounds like your Apache is munged up.
 
 If you delete the mod_jk.conf Include, and you delete all 
 other JK stuff 
 from httpd.conf, your Apache starts up properly, with no errors?
 
 What is the output of httpd -l?
 
 John
 
 Denise Mangano wrote:
 
  OK, I tried adding the Jk directives directly into the httpd.conf 
  file, and apache at least starts.  So the problem is the include 
  statement. Is it possible that I don't have whatever module 
 is needed 
  to support the Include statement?
  
  So now the problem is that although apache starts, it does 
 not start 
  properly.  When I run ps -aux | grep httpd I get the following:
  www 80740.0   0.0   00  ?Z10:070:00
  [httpd defunct]
  www 80740.0   0.0   00  ?Z10:070:00
  [httpd defunct]
  www 80740.0   0.0   00  ?Z10:070:00
  [httpd defunct]
  www 80740.0   0.0   00  ?Z10:070:00
  [httpd defunct]
  
  And needless to say I can't get to my web page.  Now again I am 
  getting those error messages in both my error_log and 
 ssl_engine_log:
  [error]mod_ssl: Child could not open SSLMutex lockfile 
  /usr/local/apache/logs/ssl_mutex.30776 (System error follows)
  [error]System: Permission denied (errno: 13)
  
  So apparently I have a problem with mod_ssl, which I guess I didn't 
  resolve yesterday and should post to the apache list.  But the 
  question still remains why using the Include statement 
 would prevent 
  Apache from starting at all?
  
  Thanks for your help :)
  Denise
  
 
 
 
 -
 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: [OFF-TOPIC] Re: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Denise Mangano
Yes I am.  The problem (right now) definitely appears to be some issues
with Apache.  Unfortunately, the Apache list isn't as heavily
trafficked, or as quick to response, so I'm still waiting on some
replies while I search the archives.  I think I have to recompile
Apache.  I added in a few extra flags when I did this yesterday to make
it more secure but I think I am better off just keeping it as is, then
taking out what I don't need later...  

Won't be able to determine if I have a mod_jk problem at all until I get
my Apache running properly.

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 27, 2003 10:47 AM
 To: Tomcat Users List
 Subject: [OFF-TOPIC] Re: First mod_jk problem - can't start 
 apache with Include statement
 
 
 
 Are you loading mod_ssl?
 
 I'm marking this as off-topic because we haven't determined 
 that this is 
 a JK/Tomcat problem yet.
 
 John
 
 Denise Mangano wrote:
 
  Yeah, it appears to be my apache.  I still get that 
 SSLMutex error.  I 
  have to work on getting that resolved.
  
  This is the output of httpd -l:
  
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_so.c
  mod_setenvif.c
  suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
  
  Denise
  
  
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 10:25 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 Hate to say it, but it sounds like your Apache is munged up.
 
 If you delete the mod_jk.conf Include, and you delete all
 other JK stuff 
 from httpd.conf, your Apache starts up properly, with no errors?
 
 What is the output of httpd -l?
 
 John
 
 Denise Mangano wrote:
 
 
 OK, I tried adding the Jk directives directly into the httpd.conf
 file, and apache at least starts.  So the problem is the include 
 statement. Is it possible that I don't have whatever module 
 
 is needed
 
 to support the Include statement?
 
 So now the problem is that although apache starts, it does
 
 not start
 
 properly.  When I run ps -aux | grep httpd I get the following:
www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
 
 And needless to say I can't get to my web page.  Now again I am
 getting those error messages in both my error_log and 
 
 ssl_engine_log:
 
[error]mod_ssl: Child could not open SSLMutex lockfile
 /usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)
 
 So apparently I have a problem with mod_ssl, which I guess I didn't
 resolve yesterday and should post to the apache list.  But the 
 question still remains why using the Include statement 
 
 would prevent
 
 Apache from starting at all?
 
 Thanks for your help :)
 Denise
 
 
 
 
 
 -
 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]
 
 

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



Can't access tomcat pages with https://

2003-08-27 Thread Denise Mangano
Ok, I recompiled Apache and Tomcat and each seems to be working
individually.  I have a question regarding access to https:// access to
tomcat pages.  From what I remember from last time, there wasn't
anything special I had to do to configure tomcat for SSL, but for some
reason that doesn't seem to be the case this time.

Apache is configured for SSL and http://localhost and https://localhost

Tomcat :  I can access http://localhost:8080 but not
https://localhost:8080

Why would this be the case?  

I would like to get this resolved before I move back to setting up
mod_jk.  Or wait a second... is it because of mod_jk that I was able to
go from http://localhost/index.jsp to https://localhost/index.jsp ??


Thanks!

Denise 

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



RE: Can't access tomcat pages with https://

2003-08-27 Thread Denise Mangano
Even though I don't plan on using Tomcat as a standalone?  My intention
is to run it behind Apache using mod_jk.  All incoming traffic will be
coming in to my site from port 80 or port 443 which is configured on
Apache's site.  If I configured Tomcat for port 443 as well, wouldn't
that cause a conflict?

Thanks.

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 27, 2003 2:15 PM
 To: Tomcat Users List
 Subject: RE: Can't access tomcat pages with https://
 
 
 
 Howdy,
 You need to have an SSL connector on the port you want https 
 for.  Take a close look at the sample connectors in the 
 server.xml file that ships with tomcat.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 2:00 PM
 To: [EMAIL PROTECTED]
 Subject: Can't access tomcat pages with https://
 
 Ok, I recompiled Apache and Tomcat and each seems to be working 
 individually.  I have a question regarding access to 
https:// access to 
tomcat pages.  From what I remember from last time, there wasn't 
anything special I had to do to configure tomcat for SSL, but for some 
reason that doesn't seem to be the case this time.

Apache is configured for SSL and http://localhost and https://localhost

Tomcat :  I can access http://localhost:8080 but not 
https://localhost:8080

Why would this be the case?

I would like to get this resolved before I move back to setting up 
mod_jk.  Or wait a second... is it because of mod_jk that I was able to

go from http://localhost/index.jsp to https://localhost/index.jsp ??


Thanks!

Denise

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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


-
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]



First mod_jk problem - can't start apache with Include statement

2003-08-26 Thread Denise Mangano
I've been following John Turner's how-to (diff apache version but the
instructions can still apply).  I think they problem is a permission
issue, but wanted some verification.

Apache install is ok, Tomcat install is ok.  I followed the steps, and
added the Listeners, and the LoadModule and Include statement at the end
of my httpd.conf.  When I uncomment the Include statement apache starts
up no problem.  When I try to use it, my system just hangs as I try to
start apache.

Tomcat is running under user tomcat, and all directories from
/usr/local/tomcat down have rwx for tomcat, and r only for all others.
However, Apache runs as user 'www'.  I tried changing permissions to be
executable by all but that didn't seem to do the trick.  The system
still hangs when I try to start Apache.

Here is my structure with permissions:

--usr drwxr-xr-x
   --local  drwxr-xr-x
 --apache  drwxr-xr-x
 --tomcat  drwxr-xr-x
  --conf  drwxr-xr-x
  --auto  drwxr-xr-x
  mod_jk.conf -rwxr-xr-x  
 

If its not a permissions issue, then I'm quite clueless as to what it
can be.  I can't even run a config test.  Any suggestions/advice is
greatly appreciated.

Denise


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



Which mod_jk to install?

2003-08-26 Thread Denise Mangano
Hi all.. Its been a while since I've posted... I'm in a pretty big bind
right now, and I remembered how helpful everyone was here, so I thought
I'd post as I begin my mod_jk venture.  (Have to rebuild entire server
by tomorrow )...

To start, I finally finished rebuilding a RH 7.3 box with Apache 1.3.28
and Tomcat 4.1.27.  Both are working just as they should.  

I'm anticipating the trouble I'm going to have with mod_jk (had TONS
last time), so I'm trying to minimize the pain by asking ahead of time
which mod_jk version I should install - I'm guessing mod_jk-1.2.4?  Then
the next question would be do I want to compile from source or is using
the binary ok?  Lastly, if the binary is ok, do I want mod_jk-1.2.4.so
or the mod_jk.1.4.0-eapi.so?

Thanks for your help :)
Denise


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



RE: Strange mod_jk error

2003-06-04 Thread Denise Mangano
John,

Actually I changed it all to port 8009 after posting while I was trying to
fix the problem but I still have no luck.  As I mentioned all the paths to
the worker file are correct.  The mod_jk.log shows that the rules for
worker1 are being set.  I even restored the original server.xml, and
restarted both Tomcat and Apache, and the apache error log still shows the
error while opening the workers, jk will not work. I have all logging set to
debug, but can't seem to get more specific information.

I am at an absolute loss.  I can only think of a few possibilities:

1) It is possible that I am still using the auto generated mod_jk.conf file
- which would have worked previously when I had one default host set up, but
will not work now that I have added in the virtual hosts?  How can I check
this to make sure that I am using my version of mod_jk.conf found in
/tomcat/conf and not the auto generated one in /tomcat/conf/auto?  The
problem with this possibility is that I get this error message when trying
either Virtual Host (even the one that is in the generated mod_jk.conf).

2) The permissions are wrong on the workers.properties file: permissions are
read everyone, write owner

3) The workers.properties specifies the host as localhost: will this work
with virtual hosts?

4) I do not have the connectors configured right: The connectors configured
are the original defaults so I don't think this is the problem.

Do any of these sound like valid possibilities?  Or is there something I am
missing.  I appreciate all your help.

Denise


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 8:16 AM
To: Tomcat Users List
Subject: Re: Strange mod_jk error



I think the problem is that, in the .properties files you posted, you have 
the port as 8080.  That's the HTTP port...the JK port is 8009.

John

On Mon, 2 Jun 2003 23:37:04 -0400, Denise Mangano [EMAIL PROTECTED] 
wrote:

 I decided to scratch having the second worker since my problems seemed 
 to start with that approach.  I restored everything to the original 
 worker file and have both default and test virtual hosts pointing to 
 the same workers.properties.

 For some reason, mod_jk is still not working.  Its not a problem with
 Tomcat
 itself because I can access everything on port 8080.  Apache throws an
 internal server error every time I try to access a jsp without the port 
 in
 the URL.

 The error in the apache error log is:
 [Mon Jun  2 23:04:59 2003] [error] Error while opening the workers, jk
 will
 not work
 [Mon Jun  2 23:05:01 2003] [error] (2)No such file or directory: Error 
 while
 opening the workers, jk will not work

 The error in mod_jk.log is:
 [Mon Jun 02 23:01:47 2003]  [jk_uri_worker_map.c (558)]: 
 jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match worker - 
 *.jsp [Mon Jun 02 23:01:47 2003]  [jk_worker.c (132)]: Into
 wc_get_worker_for_name
 worker
 [Mon Jun 02 23:01:47 2003]  [jk_worker.c (136)]: wc_get_worker_for_name,
 done did not found a worker

 Content of my worker file is:
 worker.list = worker
 worker.worker.type = ajp13
 worker.worker.host = localhost
 worker.worker.port = 8009

 My JkMount statements are like this: JkMount /*.jsp worker

 I'd appreciate any help on this.  It has put me in a pretty serious 
 bind, and I can't for the life of me figure out why it won't work.

 Thanks,
 Denise

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Monday, 
 June
 02, 2003 4:56 PM
 To: 'Tomcat Users List'
 Subject: RE: Strange mod_jk error


 By some configuration changes I added in virtual hosting.  That 
 error message is gone.  I'm not exactly sure what I did to get it to 
 'go away' but it did.  The problem I am having is that my worker is 
 not being found.

 I have two properties files defined.  One is workers.properties for 
 use
 with
 the default virtual host, and one is test.workers.properties to use with 
 my
 testing virtual host.  I tried combining each into one workers.properties
 file but still get the same error message.  The suffix is matched, but 
 when
 it looks for the worker named testWorker it doesn't fin it:

 [Mon Jun 02 16:16:57 2003]  [jk_worker.c (132)]: Into
 wc_get_worker_for_name
 testWorker [Mon Jun 02 16:16:57 2003]  [jk_worker.c (136)]:
 wc_get_worker_for_name, done did not found a worker

 My test.workers.properties file looks like:
 worker.list = testWorker
 worker.testWorker.type = ajp13
 worker.testWorker.host = test.mysite.com worker.testWorker.port = 8080

 My test.workers.properties file looks like:
 worker.list = worker
 worker.worker.type = ajp13
 worker.worker.host = www.mysite.com
 worker.worker.port = 8080

 My server.xml, mod_jk.conf and httpd.conf both point to the 
 appropriate worker properties file within each virtual host.  I am in 
 the process of going over all my config files to see if I missed 
 anything, but it appears that everything is configured right.  Mod_jk 
 is doing its job

RE: Strange mod_jk error

2003-06-04 Thread Denise Mangano
Those lines are at the top of my mod_jk.conf (the one I edited) and my
Include statement points to my version of the mod_jk.conf.

This is a strange problem, I've searched the archives but can't seem to find
a fix.  Whats worse is that it doesn't give more detail on the error, for
example what file and line the error occurs on...

Denise

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 12:18 PM
To: Tomcat Users List
Subject: Re: Strange mod_jk error



The mod_jk.conf file isn't getting used unless there is an Include 
directive in httpd.conf to include it.

Make sure you have these lines somewhere, either hard-coded in httpd.conf, 
or at the top of your mod_jk.conf file:

JkWorkersFile /path/to/workers.properties
JkLogFile /path/to/mod_jk.log
JkLogLevel emerg

John

On Tue, 3 Jun 2003 12:05:09 -0400, Denise Mangano [EMAIL PROTECTED] 
wrote:

 I noticed that having the worker named worker wasn't the smartest 
 thing,
 so
 I changed it to worker1 and still got the same problem.

 Now the strange thing is, I did not have an include statement in my 
 httpd.conf.  I had originally set this up a while ago, so to be honest 
 I am not sure why I didn't have it there, because I remember putting 
 it in when I
 followed your how-to.  So this means that I have been using the auto
 generated mod_jk.conf (is that right?).

 I tried to 1) change the worker name to ajp13 and 2) include the 
 edited mod_jk.conf.  I am still getting the error message when I start 
 up apache stating that there was an error opening the workers and jk 
 will not work. When I try to access a jsp page I still get the same 
 error message in my mod_jk.log stating that it is looking for worker 
 ajp13, but the worker is not found.  It appears that the actual 
 problem is opening the workers.properties... The system finds it, sets 
 the rules, attempts the matches the URI request, and eventually finds 
 a context match for the worker.  The problem is when looking for the
worker it does not see it.
 It
 would make sense that this would happen since Apache is having trouble
 opening the workers.properties file.  The strange thing is that Apache is
 also stating there is No such file or directory but the file is in fact
 there, and all the paths pointing to it are correct.

 Any other suggestions?  Should I maybe post my files?

 Thanks,
 Denise


 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, 
 June
 03, 2003 9:59 AM
 To: Tomcat Users List
 Subject: Re: Strange mod_jk error


 On Tue, 3 Jun 2003 09:51:14 -0400, Denise Mangano
 [EMAIL PROTECTED] wrote:

 1) It is possible that I am still using the auto generated 
 mod_jk.conf file
 - which would have worked previously when I had one default host set 
 up,
 but
 will not work now that I have added in the virtual hosts?  How can I 
 check
 this to make sure that I am using my version of mod_jk.conf found in
 /tomcat/conf and not the auto generated one in /tomcat/conf/auto?  The
 problem with this possibility is that I get this error message when 
 trying
 either Virtual Host (even the one that is in the generated mod_jk.conf).

 There's no way to check, as far as I know.  It would be based on the
 Include statement in httpd.conf.  Is it possible that your Apache restart 
 didn't actually happen?  Sometimes the restart option doesn't 
 behave...I have more luck actually shutting Apache down, then starting it 
 back up.


 2) The permissions are wrong on the workers.properties file: 
 permissions are read everyone, write owner

 I doubt this is a problem, 644 should be fine.

 3) The workers.properties specifies the host as localhost: will this
 work with virtual hosts?

 Yes...the .host parameter is the location of the machine hosting the
 Tomcat instance, not any sort of virtual host or other server 
 name/address.

 4) I do not have the connectors configured right: The connectors 
 configured are the original defaults so I don't think this is the 
 problem.

 I agree.

 Do any of these sound like valid possibilities?  Or is there 
 something I am missing.  I appreciate all your help.

 #1 sounds pretty good.  The other thing I noticed, on reviewing your
 earlier posts, is that your worker is named worker.  My gut feeling 
 tells me that's bad.  Try changing it to ajp13 for the sake of 
 debugging.

 John

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday,
 June
 03, 2003 8:16 AM
 To: Tomcat Users List
 Subject: Re: Strange mod_jk error



 I think the problem is that, in the .properties files you posted, you 
 have the port as 8080.  That's the HTTP port...the JK port is 8009.

 John

 On Mon, 2 Jun 2003 23:37:04 -0400, Denise Mangano 
 [EMAIL PROTECTED] wrote:

 I decided to scratch having the second worker since my problems 
 seemed to start with that approach.  I restored everything to the 
 original worker file and have both default and test virtual hosts 
 pointing

RE: Strange mod_jk error

2003-06-04 Thread Denise Mangano
Well it throws me two warnings:

[Tue Jun  3 11:16:23 2003] [warn] VirtualHost www.ptp.com:80 overlaps with
VirtualHost test.ptp.com:80, the first has precedence, perhaps you need a
NameVirtualHost directive 
[Tue Jun  3 11:16:23 2003] [warn] VirtualHost www.ptp.com:443 overlaps with
VirtualHost test.ptp.com:443, the first has precedence, perhaps you need a
NameVirtualHost directive

I'm in the process of trying to get this problem worked out.  Other than
this, the syntax is OK.

Denise

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 12:45 PM
To: Tomcat Users List
Subject: Re: Strange mod_jk error



A configtest of Apache returns Syntax OK?

John

On Tue, 3 Jun 2003 12:50:25 -0400, Denise Mangano [EMAIL PROTECTED] 
wrote:

 Those lines are at the top of my mod_jk.conf (the one I edited) and my 
 Include statement points to my version of the mod_jk.conf.

 This is a strange problem, I've searched the archives but can't seem 
 to
 find
 a fix.  Whats worse is that it doesn't give more detail on the error, for
 example what file and line the error occurs on...

 Denise

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, 
 June
 03, 2003 12:18 PM
 To: Tomcat Users List
 Subject: Re: Strange mod_jk error



 The mod_jk.conf file isn't getting used unless there is an Include
 directive in httpd.conf to include it.

 Make sure you have these lines somewhere, either hard-coded in
 httpd.conf, or at the top of your mod_jk.conf file:

 JkWorkersFile /path/to/workers.properties
 JkLogFile /path/to/mod_jk.log
 JkLogLevel emerg

 John

 On Tue, 3 Jun 2003 12:05:09 -0400, Denise Mangano
 [EMAIL PROTECTED] wrote:

 I noticed that having the worker named worker wasn't the smartest 
 thing, so I changed it to worker1 and still got the same problem.

 Now the strange thing is, I did not have an include statement in my
 httpd.conf.  I had originally set this up a while ago, so to be honest I 
 am not sure why I didn't have it there, because I remember putting it in 
 when I
 followed your how-to.  So this means that I have been using the auto
 generated mod_jk.conf (is that right?).

 I tried to 1) change the worker name to ajp13 and 2) include the 
 edited
 mod_jk.conf.  I am still getting the error message when I start up 
 apache stating that there was an error opening the workers and jk will 
 not work. When I try to access a jsp page I still get the same error 
 message in my mod_jk.log stating that it is looking for worker ajp13, 
 but the worker is not found.  It appears that the actual problem is 
 opening the workers.properties... The system finds it, sets the rules, 
 attempts the matches the URI request, and eventually finds a context 
 match for the worker.  The problem is when looking for the
 worker it does not see it.
 It
 would make sense that this would happen since Apache is having 
 trouble opening the workers.properties file.  The strange thing is 
 that Apache is also stating there is No such file or directory but 
 the file is in fact
 there, and all the paths pointing to it are correct.

 Any other suggestions?  Should I maybe post my files?

 Thanks,
 Denise


 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday,
 June
 03, 2003 9:59 AM
 To: Tomcat Users List
 Subject: Re: Strange mod_jk error


 On Tue, 3 Jun 2003 09:51:14 -0400, Denise Mangano 
 [EMAIL PROTECTED] wrote:

 1) It is possible that I am still using the auto generated 
 mod_jk.conf
 file
 - which would have worked previously when I had one default host set 
 up,
 but
 will not work now that I have added in the virtual hosts?  How can I 
 check
 this to make sure that I am using my version of mod_jk.conf found in
 /tomcat/conf and not the auto generated one in /tomcat/conf/auto?  The
 problem with this possibility is that I get this error message when 
 trying
 either Virtual Host (even the one that is in the generated mod_jk.conf) 
 .

 There's no way to check, as far as I know.  It would be based on the 
 Include statement in httpd.conf.  Is it possible that your Apache 
 restart didn't actually happen?  Sometimes the restart option 
 doesn't behave...I have more luck actually shutting Apache down, then 
 starting it back up.


 2) The permissions are wrong on the workers.properties file:
 permissions are read everyone, write owner

 I doubt this is a problem, 644 should be fine.

 3) The workers.properties specifies the host as localhost: will this 
 work with virtual hosts?

 Yes...the .host parameter is the location of the machine hosting the 
 Tomcat instance, not any sort of virtual host or other server 
 name/address.

 4) I do not have the connectors configured right: The connectors
 configured are the original defaults so I don't think this is the 
 problem.

 I agree.

 Do any of these sound like valid possibilities?  Or is there 
 something
 I am missing.  I appreciate all your help.

 #1 sounds pretty

RE: Strange mod_jk error

2003-06-04 Thread Denise Mangano
Ok, dumb question.  Does port 8009 have to be open on my firewall then?  If
so then how was it possibly working before?  I can only telnet on port 80
and port 443 (These are the only ports open on my firewall).

The results of the netstat are:
tcp0  0 *:32768 *:* LISTEN

tcp0  0 *:login *:* LISTEN

tcp0  0 *:vboxd *:* LISTEN

tcp0  0 *:sunrpc*:* LISTEN

tcp0  0 *:ssh   *:* LISTEN

tcp0  0 cdiserv:smtp*:* LISTEN

unix  2  [ ACC ] STREAM LISTENING 1257   /dev/gpmctl
unix  2  [ ACC ] STREAM LISTENING 1324
/tmp/.font-unix/fs7100


I am getting the feeling something is not right... But it did work at one
point with the single virtual host...

In httpd.conf
Port 80
BindAddress *
NameVirtualHost *
If HAVE_SSL
  Listen 80
  Listen 443
/IfDefine
ServerName www (overwritten within Vhosts)

Thanks,
Denise


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 1:06 PM
To: 'Tomcat Users List'
Subject: RE: Strange mod_jk error


Denise,

I could not see in the email trail if it ever was determined that you truly
have a listener on the ajp13 port for the problem domain

if you do
telnet test.mysite.com 8009 

or whatever the correct domain/port for your current configuration do you
get a valid telnet response?

also if you are on linux, you can do a netstat -a | grep LISTEN to see what
is addresses and port have listeners

Jeff

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 10:58 AM
To: 'Tomcat Users List'
Subject: RE: Strange mod_jk error


Well it throws me two warnings:

[Tue Jun  3 11:16:23 2003] [warn] VirtualHost www.ptp.com:80 overlaps with
VirtualHost test.ptp.com:80, the first has precedence, perhaps you need a
NameVirtualHost directive 
[Tue Jun  3 11:16:23 2003] [warn] VirtualHost www.ptp.com:443 overlaps with
VirtualHost test.ptp.com:443, the first has precedence, perhaps you need a
NameVirtualHost directive

I'm in the process of trying to get this problem worked out.  Other than
this, the syntax is OK.

Denise

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 12:45 PM
To: Tomcat Users List
Subject: Re: Strange mod_jk error



A configtest of Apache returns Syntax OK?

John

On Tue, 3 Jun 2003 12:50:25 -0400, Denise Mangano [EMAIL PROTECTED] 
wrote:

 Those lines are at the top of my mod_jk.conf (the one I edited) and my
 Include statement points to my version of the mod_jk.conf.

 This is a strange problem, I've searched the archives but can't seem
 to
 find
 a fix.  Whats worse is that it doesn't give more detail on the error, for
 example what file and line the error occurs on...

 Denise

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday,
 June
 03, 2003 12:18 PM
 To: Tomcat Users List
 Subject: Re: Strange mod_jk error



 The mod_jk.conf file isn't getting used unless there is an Include 
 directive in httpd.conf to include it.

 Make sure you have these lines somewhere, either hard-coded in 
 httpd.conf, or at the top of your mod_jk.conf file:

 JkWorkersFile /path/to/workers.properties
 JkLogFile /path/to/mod_jk.log
 JkLogLevel emerg

 John

 On Tue, 3 Jun 2003 12:05:09 -0400, Denise Mangano 
 [EMAIL PROTECTED] wrote:

 I noticed that having the worker named worker wasn't the smartest
 thing, so I changed it to worker1 and still got the same problem.

 Now the strange thing is, I did not have an include statement in my 
 httpd.conf.  I had originally set this up a while ago, so to be 
 honest I am not sure why I didn't have it there, because I remember 
 putting it in when I followed your how-to.  So this means that I have 
 been using the auto generated mod_jk.conf (is that right?).

 I tried to 1) change the worker name to ajp13 and 2) include the
 edited
 mod_jk.conf.  I am still getting the error message when I start up 
 apache stating that there was an error opening the workers and jk will 
 not work. When I try to access a jsp page I still get the same error 
 message in my mod_jk.log stating that it is looking for worker ajp13, 
 but the worker is not found.  It appears that the actual problem is 
 opening the workers.properties... The system finds it, sets the rules, 
 attempts the matches the URI request, and eventually finds a context 
 match for the worker.  The problem is when looking for the
 worker it does not see it.
 It
 would make sense that this would happen since Apache is having
 trouble opening the workers.properties file.  The strange thing is 
 that Apache is also stating there is No such file or directory but 
 the file is in fact
 there, and all

RE: Strange mod_jk error

2003-06-04 Thread Denise Mangano
I tried to open port 8009 on the firewall but that did not solve the
problem...

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 1:51 PM
To: 'Tomcat Users List'
Subject: RE: Strange mod_jk error


Ok, dumb question.  Does port 8009 have to be open on my firewall then?  If
so then how was it possibly working before?  I can only telnet on port 80
and port 443 (These are the only ports open on my firewall).

The results of the netstat are:
tcp0  0 *:32768 *:* LISTEN
tcp0  0 *:login *:* LISTEN
tcp0  0 *:vboxd *:* LISTEN
tcp0  0 *:sunrpc*:* LISTEN
tcp0  0 *:ssh   *:* LISTEN
tcp0  0 cdiserv:smtp*:* LISTEN
unix  2  [ ACC ] STREAM LISTENING 1257   /dev/gpmctl
unix  2  [ ACC ] STREAM LISTENING 1324
/tmp/.font-unix/fs7100


I am getting the feeling something is not right... But it did work at one
point with the single virtual host...

In httpd.conf
Port 80
BindAddress *
NameVirtualHost *
If HAVE_SSL
  Listen 80
  Listen 443
/IfDefine
ServerName www (overwritten within Vhosts)

Thanks,
Denise


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 1:06 PM
To: 'Tomcat Users List'
Subject: RE: Strange mod_jk error


Denise,

I could not see in the email trail if it ever was determined that you truly
have a listener on the ajp13 port for the problem domain

if you do
telnet test.mysite.com 8009 

or whatever the correct domain/port for your current configuration do you
get a valid telnet response?

also if you are on linux, you can do a netstat -a | grep LISTEN to see what
is addresses and port have listeners

Jeff

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 10:58 AM
To: 'Tomcat Users List'
Subject: RE: Strange mod_jk error


Well it throws me two warnings:

[Tue Jun  3 11:16:23 2003] [warn] VirtualHost www.ptp.com:80 overlaps with
VirtualHost test.ptp.com:80, the first has precedence, perhaps you need a
NameVirtualHost directive 
[Tue Jun  3 11:16:23 2003] [warn] VirtualHost www.ptp.com:443 overlaps with
VirtualHost test.ptp.com:443, the first has precedence, perhaps you need a
NameVirtualHost directive

I'm in the process of trying to get this problem worked out.  Other than
this, the syntax is OK.

Denise

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 12:45 PM
To: Tomcat Users List
Subject: Re: Strange mod_jk error



A configtest of Apache returns Syntax OK?

John

On Tue, 3 Jun 2003 12:50:25 -0400, Denise Mangano [EMAIL PROTECTED] 
wrote:

 Those lines are at the top of my mod_jk.conf (the one I edited) and my 
 Include statement points to my version of the mod_jk.conf.

 This is a strange problem, I've searched the archives but can't seem 
 to find
 a fix.  Whats worse is that it doesn't give more detail on the error, for
 example what file and line the error occurs on...

 Denise

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, 
 June 03, 2003 12:18 PM
 To: Tomcat Users List
 Subject: Re: Strange mod_jk error



 The mod_jk.conf file isn't getting used unless there is an Include
 directive in httpd.conf to include it.

 Make sure you have these lines somewhere, either hard-coded in
 httpd.conf, or at the top of your mod_jk.conf file:

 JkWorkersFile /path/to/workers.properties
 JkLogFile /path/to/mod_jk.log
 JkLogLevel emerg

 John

 On Tue, 3 Jun 2003 12:05:09 -0400, Denise Mangano
 [EMAIL PROTECTED] wrote:

 I noticed that having the worker named worker wasn't the smartest 
 thing, so I changed it to worker1 and still got the same problem.

 Now the strange thing is, I did not have an include statement in my
 httpd.conf.  I had originally set this up a while ago, so to be 
 honest I am not sure why I didn't have it there, because I remember 
 putting it in when I followed your how-to.  So this means that I have 
 been using the auto generated mod_jk.conf (is that right?).

 I tried to 1) change the worker name to ajp13 and 2) include the 
 edited mod_jk.conf.  I am still getting the error message when I 
 start up apache stating that there was an error opening the workers 
 and jk will not work. When I try to access a jsp page I still get the 
 same error message in my mod_jk.log stating that it is looking for 
 worker ajp13, but the worker is not found.  It appears that the 
 actual problem is opening the workers.properties... The system finds 
 it, sets the rules, attempts the matches the URI request, and 
 eventually finds a context match for the worker.  The problem is when 
 looking for the
 worker it does not see

RE: Strange mod_jk error

2003-06-04 Thread Denise Mangano
John,

Actually, the virtual hosts were hard coded in my mod_jk.conf file.  I
changed that to be:

NameVirtualHost *
VirtualHost *
   ServerName www.ptp.com
   ...
/VirtualHost *
VirtualHost *
   ServerName test.ptp.com
   ...
/VirtualHost *

This seemed to get rid of the conflict on port 80.  I changed the SSL
virtual host to be for *:443 for the live site and just * for the test site,
and this seemed to get rid of the conflict.

However, I am still getting the error opening workers.

Thanks,
Denise


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 2:13 PM
To: Tomcat Users List
Subject: Re: Strange mod_jk error



OK, that tells me that you have multiple VirtualHosts going on, which means 
that you probably have multiple/conflicting JkMount and workers.

Probably, there is a hard-coded VirtualHost in httpd.conf, in addition to 
the definitions being included from mod_jk.conf.  That would explain 
(possibly) some of the problems you are experiencing...for example, the 
configuration you want is the second one, but only the first is being used 
by Apache, or vice versa.

configtest should return Syntax OK.

John

On Tue, 3 Jun 2003 12:58:26 -0400, Denise Mangano [EMAIL PROTECTED] 
wrote:

 Well it throws me two warnings:

 [Tue Jun  3 11:16:23 2003] [warn] VirtualHost www.ptp.com:80 overlaps
 with
 VirtualHost test.ptp.com:80, the first has precedence, perhaps you need a
 NameVirtualHost directive [Tue Jun  3 11:16:23 2003] [warn] VirtualHost 
 www.ptp.com:443 overlaps with
 VirtualHost test.ptp.com:443, the first has precedence, perhaps you need 
 a
 NameVirtualHost directive

 I'm in the process of trying to get this problem worked out.  Other 
 than this, the syntax is OK.

 Denise

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, 
 June
 03, 2003 12:45 PM
 To: Tomcat Users List
 Subject: Re: Strange mod_jk error



 A configtest of Apache returns Syntax OK?

 John

 On Tue, 3 Jun 2003 12:50:25 -0400, Denise Mangano
 [EMAIL PROTECTED] wrote:

 Those lines are at the top of my mod_jk.conf (the one I edited) and 
 my
 Include statement points to my version of the mod_jk.conf.

 This is a strange problem, I've searched the archives but can't seem 
 to find a fix.  Whats worse is that it doesn't give more detail on 
 the error, for
 example what file and line the error occurs on...

 Denise

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday,
 June
 03, 2003 12:18 PM
 To: Tomcat Users List
 Subject: Re: Strange mod_jk error



 The mod_jk.conf file isn't getting used unless there is an Include 
 directive in httpd.conf to include it.

 Make sure you have these lines somewhere, either hard-coded in 
 httpd.conf, or at the top of your mod_jk.conf file:

 JkWorkersFile /path/to/workers.properties
 JkLogFile /path/to/mod_jk.log
 JkLogLevel emerg

 John

 On Tue, 3 Jun 2003 12:05:09 -0400, Denise Mangano 
 [EMAIL PROTECTED] wrote:

 I noticed that having the worker named worker wasn't the smartest
 thing, so I changed it to worker1 and still got the same problem.

 Now the strange thing is, I did not have an include statement in my 
 httpd.conf.  I had originally set this up a while ago, so to be 
 honest I am not sure why I didn't have it there, because I remember 
 putting it in when I followed your how-to.  So this means that I 
 have been using the auto generated mod_jk.conf (is that right?).

 I tried to 1) change the worker name to ajp13 and 2) include the 
 edited mod_jk.conf.  I am still getting the error message when I 
 start up apache stating that there was an error opening the workers 
 and jk will not work. When I try to access a jsp page I still get 
 the same error message in my mod_jk.log stating that it is looking 
 for worker ajp13, but the worker is not found.  It appears that the 
 actual problem is opening the workers.properties... The system finds 
 it, sets the rules, attempts the matches the URI request, and 
 eventually finds a context match for the worker.  The problem is 
 when looking for the
 worker it does not see it.
 It
 would make sense that this would happen since Apache is having 
 trouble
 opening the workers.properties file.  The strange thing is that Apache 
 is also stating there is No such file or directory but the file is in 
 fact
 there, and all the paths pointing to it are correct.

 Any other suggestions?  Should I maybe post my files?

 Thanks,
 Denise


 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, 
 June 03, 2003 9:59 AM
 To: Tomcat Users List
 Subject: Re: Strange mod_jk error


 On Tue, 3 Jun 2003 09:51:14 -0400, Denise Mangano
 [EMAIL PROTECTED] wrote:

 1) It is possible that I am still using the auto generated 
 mod_jk.conf file
 - which would have worked previously when I had one default host 
 set
 up,
 but
 will not work now that I have added in the virtual hosts?  How can I 
 check

RE: Strange mod_jk error - SOLVED

2003-06-04 Thread Denise Mangano
I was having some Vhost conflicts which I just cleared up (thanks John).  I
ran netstat again, with both Tomcat and Apache running, and these are the
results:
tcp0  0 *:8009  *:* LISTEN


I was still having the error opening workers in apache error log, so I
also removed the path to the workers file from inside the VirtualHost
container to be outside all virtual hosts.  The errors are now gone, and ...
the problem is SOLVED!!!  Phew...

Thank you, Thank you, Thank you :)  That's what a newbie gets for messing
with the configuration.  But thankfully it works now, and it is working the
way I want it to (have a new small issue - will post separately).

The last note on this, is that in my mod_jk.log, after starting apache, it
has the following code:
[Tue Jun 03 15:45:14 2003]  [jk_worker.c (118)]: Into wc_close
[Tue Jun 03 15:45:14 2003]  [jk_worker.c (199)]: close_workers got -1
workers to destroy
[Tue Jun 03 15:45:14 2003]  [jk_worker.c (120)]: wc_close, done
[Tue Jun 03 15:45:14 2003]  [jk_uri_worker_map.c (190)]: Into
jk_uri_worker_map_t::uri_worker_map_free
[Tue Jun 03 15:45:14 2003]  [jk_uri_worker_map.c (441)]: Into
jk_uri_worker_map_t::uri_worker_map_close

The weird thing is that it has this code repeatedly, every time ... 12 times
to be exact.  Is that normal?

Thanks again to both of you for all your help :)
Denise

-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 2:24 PM
To: 'Tomcat Users List'
Subject: RE: Strange mod_jk error


You might check in your /etc/services file to see if 8009 corresponds to one
of the names listed in your net stat

you might try the netstat and change the grep to 8009 and see if there is
any mention of it at all.


Given the fact that your original error report was

In jk_endpoint_t::service, Error sd = -1

I would hazard a guess that everything was working originally except that
you had the ajp13 port worngly specified in your workers.properties or in
your server.xml.  From my own tests I can only get anjk_endpoint_t::service
error if apache is able to find the worker but the i/port are wrong in
worker.properties.  You current problem of not being able to find a worker
is most likely an artifact of trying changing things in your configuration
files one too many times.

Suggestion:


1) Stop all instances of apache
2) Stop all instances of tomcat
use kill -9 if need be to ensure no JVMs are left (Unless of course this is
a production server and you cannot be that indiscrimate)

3)Start tomcat

4) telnet tomcat-ajp13-domain tomcat-ajp13-port  (as specified in server.xml
for the ajp13 connector tag)
5) netstat -a | grep LISTEN

one of these tests should demonstrate the existence of your listener.  If
not check catalina.out for ajp13 error messages


6) once you are confident that your listener is correct recreate your
workers.property to have the correct tomcat-ajp13-domain tomcat-ajp13-port
information entered.

7) check that your virtual host is loading this file or place the
JkWorkersFile command outside all virtual host to make sure everyone uses
it.

8) restart apache and watch the mod_jk logs and see that it load your
workers file correctly

9) hit webpage and hopefully it will work.

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 11:51 AM
To: 'Tomcat Users List'
Subject: RE: Strange mod_jk error


Ok, dumb question.  Does port 8009 have to be open on my firewall then?  If
so then how was it possibly working before?  I can only telnet on port 80
and port 443 (These are the only ports open on my firewall).

The results of the netstat are:
tcp0  0 *:32768 *:* LISTEN

tcp0  0 *:login *:* LISTEN

tcp0  0 *:vboxd *:* LISTEN

tcp0  0 *:sunrpc*:* LISTEN

tcp0  0 *:ssh   *:* LISTEN

tcp0  0 cdiserv:smtp*:* LISTEN

unix  2  [ ACC ] STREAM LISTENING 1257   /dev/gpmctl
unix  2  [ ACC ] STREAM LISTENING 1324
/tmp/.font-unix/fs7100


I am getting the feeling something is not right... But it did work at one
point with the single virtual host...

In httpd.conf
Port 80
BindAddress *
NameVirtualHost *
If HAVE_SSL
  Listen 80
  Listen 443
/IfDefine
ServerName www (overwritten within Vhosts)

Thanks,
Denise


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 1:06 PM
To: 'Tomcat Users List'
Subject: RE: Strange mod_jk error


Denise,

I could not see in the email trail if it ever was determined that you truly
have a listener on the ajp13 port for the problem domain

if you do
telnet test.mysite.com 8009 

or whatever the correct

Using symlinks in webapps

2003-06-04 Thread Denise Mangano
I have read in some of the archives that using symlinks in tomcat cannot be
done?  Is this true, or is it just not the preferred way to handle it?

The problem that I am encountering is that my application uses Apache and
Tomcat, as well as a third party application.  Instead of having 3 different
directories with the same images  style sheet and having to update images
in 3 places I set up one main images folder and one main style folder on the
Apache server, and set up symlinks to these folders everywhere else.  From
within my Tomcat web app my images and styles are not working.  I have all
the proper JkMount statements, and the images  style sheets do exist in the
specified location.

I am looking further into this problem, but just wanted to run it by the
list to see whether or not symlinks are definitely not supported so I don't
go nuts trying to solve something that can't possibly work.

Thanks!
Denise

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



RE: Using symlinks in webapps

2003-06-04 Thread Denise Mangano
Ok sorry for that.  Finally got the right answer from the archives.
Apparently symlinks have been disabled since 4.1.12 for security reasons.  I
noticed in the archives that it was suggested to set the allowLinking in my
server.xml file be enough?

Resources className=org.apache.naming.resources.FileDirContext
allowLinking=true docBase= /

But if it was disabled for security reasons, then doesn't enabling it make
me susceptible to those same security risks?  

Can anyone suggest an alternative solution without having multiple
images/styles directories?  I read something about setting up a Context for
these directories.  Is that the path I should explore?

Sorry to ask what seems to have been asked many times before, just trying to
get pointed in the right direction :)

Thanks!
Denise  


-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 11:59 PM
To: 'Tomcat Users List'
Subject: Using symlinks in webapps


I have read in some of the archives that using symlinks in tomcat cannot be
done?  Is this true, or is it just not the preferred way to handle it?

The problem that I am encountering is that my application uses Apache and
Tomcat, as well as a third party application.  Instead of having 3 different
directories with the same images  style sheet and having to update images
in 3 places I set up one main images folder and one main style folder on the
Apache server, and set up symlinks to these folders everywhere else.  From
within my Tomcat web app my images and styles are not working.  I have all
the proper JkMount statements, and the images  style sheets do exist in the
specified location.

I am looking further into this problem, but just wanted to run it by the
list to see whether or not symlinks are definitely not supported so I don't
go nuts trying to solve something that can't possibly work.

Thanks!
Denise

-
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]



Strange mod_jk error

2003-06-03 Thread Denise Mangano
Hi all.  

I have not posted in some time as thanks to some great help from this list
my application was running smoothly.  However, I needed to make some
configuration changes, and now my apps stopped working.  Apache (1.3.23)
runs fine, and Tomcat (4.1.17) runs fine but the problem is with mod_jk.

I tried searching the archives for this one but had no luck.  The error I am
getting in my mod_jk.log is:

In jk_endpoint_t::service, Error sd = -1

And of course the error I am getting in my apache error log shows that it is
looking for the file in the apache web directory.  So it appears that mod_jk
is not working and the request is never being interpreted by the JkMount
statements.

Does anyone have any idea what this means?  I even tried restoring the
original server.xml file, but I still received the error.  I can post
server.xml, httpd.conf, etc if you need to see it, but I thought first I
would send out the error message.

Thanks for your help!

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


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



RE: Strange mod_jk error

2003-06-03 Thread Denise Mangano
By some configuration changes I added in virtual hosting.  That error
message is gone.  I'm not exactly sure what I did to get it to 'go away' but
it did.  The problem I am having is that my worker is not being found.

I have two properties files defined.  One is workers.properties for use with
the default virtual host, and one is test.workers.properties to use with my
testing virtual host.  I tried combining each into one workers.properties
file but still get the same error message.  The suffix is matched, but when
it looks for the worker named testWorker it doesn't fin it:

[Mon Jun 02 16:16:57 2003]  [jk_worker.c (132)]: Into wc_get_worker_for_name
testWorker [Mon Jun 02 16:16:57 2003]  [jk_worker.c (136)]:
wc_get_worker_for_name, done did not found a worker

My test.workers.properties file looks like:
worker.list = testWorker
worker.testWorker.type = ajp13
worker.testWorker.host = test.mysite.com
worker.testWorker.port = 8080

My test.workers.properties file looks like:
worker.list = worker
worker.worker.type = ajp13
worker.worker.host = www.mysite.com
worker.worker.port = 8080

My server.xml, mod_jk.conf and httpd.conf both point to the appropriate
worker properties file within each virtual host.  I am in the process of
going over all my config files to see if I missed anything, but it appears
that everything is configured right.  Mod_jk is doing its job - but for some
reason it is not finding the definition of the named worker.

Any suggestion?  I can post my files if necessary.

Thanks for taking a look!
Denise

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 02, 2003 4:10 PM
To: Tomcat Users List
Subject: Re: Strange mod_jk error



As far as I know, that error message is socket related, as in the socket is 
closed, or Apache thinks the socket is closed when it isn't.  Its pretty 
old, from what I know, and should be fixed in recent incarnations of 
mod_jk.  Then again, you are using Apache 1.3.23, so maybe that error still 
crops up.

Verify that your workers.properties has the right port number, verify that 
it has the right host, and verify that you don't have any workers 
configured (like ajp12 or ajp14) that you don't need.

Other than that, you'll have to explain further what you mean by some 
configuration changes.  ;)

John

On Mon, 2 Jun 2003 16:09:26 -0400, Denise Mangano [EMAIL PROTECTED] 
wrote:

 Hi all.

 I have not posted in some time as thanks to some great help from this 
 list my application was running smoothly.  However, I needed to make 
 some configuration changes, and now my apps stopped working.  Apache 
 (1.3.23) runs fine, and Tomcat (4.1.17) runs fine but the problem is 
 with mod_jk.

 I tried searching the archives for this one but had no luck.  The
 error I
 am
 getting in my mod_jk.log is:

 In jk_endpoint_t::service, Error sd = -1

 And of course the error I am getting in my apache error log shows that
 it
 is
 looking for the file in the apache web directory.  So it appears that 
 mod_jk
 is not working and the request is never being interpreted by the JkMount
 statements.

 Does anyone have any idea what this means?  I even tried restoring the
 original server.xml file, but I still received the error.  I can post 
 server.xml, httpd.conf, etc if you need to see it, but I thought first 
 I would send out the error message.

 Thanks for your help!

 Denise Mangano
 Help Desk Analyst
 Complus Data Innovations, Inc.



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





-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

-
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: Strange mod_jk error

2003-06-03 Thread Denise Mangano
I decided to scratch having the second worker since my problems seemed to
start with that approach.  I restored everything to the original worker file
and have both default and test virtual hosts pointing to the same
workers.properties.

For some reason, mod_jk is still not working.  Its not a problem with Tomcat
itself because I can access everything on port 8080.  Apache throws an
internal server error every time I try to access a jsp without the port in
the URL.

The error in the apache error log is:
[Mon Jun  2 23:04:59 2003] [error] Error while opening the workers, jk will
not work
[Mon Jun  2 23:05:01 2003] [error] (2)No such file or directory: Error while
opening the workers, jk will not work

The error in mod_jk.log is:
[Mon Jun 02 23:01:47 2003]  [jk_uri_worker_map.c (558)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match worker - *.jsp
[Mon Jun 02 23:01:47 2003]  [jk_worker.c (132)]: Into wc_get_worker_for_name
worker
[Mon Jun 02 23:01:47 2003]  [jk_worker.c (136)]: wc_get_worker_for_name,
done did not found a worker

Content of my worker file is:
worker.list = worker
worker.worker.type = ajp13
worker.worker.host = localhost
worker.worker.port = 8009

My JkMount statements are like this: JkMount /*.jsp worker

I'd appreciate any help on this.  It has put me in a pretty serious bind,
and I can't for the life of me figure out why it won't work.

Thanks,
Denise

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 02, 2003 4:56 PM
To: 'Tomcat Users List'
Subject: RE: Strange mod_jk error


By some configuration changes I added in virtual hosting.  That error
message is gone.  I'm not exactly sure what I did to get it to 'go away' but
it did.  The problem I am having is that my worker is not being found.

I have two properties files defined.  One is workers.properties for use with
the default virtual host, and one is test.workers.properties to use with my
testing virtual host.  I tried combining each into one workers.properties
file but still get the same error message.  The suffix is matched, but when
it looks for the worker named testWorker it doesn't fin it:

[Mon Jun 02 16:16:57 2003]  [jk_worker.c (132)]: Into wc_get_worker_for_name
testWorker [Mon Jun 02 16:16:57 2003]  [jk_worker.c (136)]:
wc_get_worker_for_name, done did not found a worker

My test.workers.properties file looks like:
worker.list = testWorker
worker.testWorker.type = ajp13
worker.testWorker.host = test.mysite.com
worker.testWorker.port = 8080

My test.workers.properties file looks like:
worker.list = worker
worker.worker.type = ajp13
worker.worker.host = www.mysite.com
worker.worker.port = 8080

My server.xml, mod_jk.conf and httpd.conf both point to the appropriate
worker properties file within each virtual host.  I am in the process of
going over all my config files to see if I missed anything, but it appears
that everything is configured right.  Mod_jk is doing its job - but for some
reason it is not finding the definition of the named worker.

Any suggestion?  I can post my files if necessary.

Thanks for taking a look!
Denise

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 02, 2003 4:10 PM
To: Tomcat Users List
Subject: Re: Strange mod_jk error



As far as I know, that error message is socket related, as in the socket is 
closed, or Apache thinks the socket is closed when it isn't.  Its pretty 
old, from what I know, and should be fixed in recent incarnations of 
mod_jk.  Then again, you are using Apache 1.3.23, so maybe that error still 
crops up.

Verify that your workers.properties has the right port number, verify that 
it has the right host, and verify that you don't have any workers 
configured (like ajp12 or ajp14) that you don't need.

Other than that, you'll have to explain further what you mean by some 
configuration changes.  ;)

John

On Mon, 2 Jun 2003 16:09:26 -0400, Denise Mangano [EMAIL PROTECTED] 
wrote:

 Hi all.

 I have not posted in some time as thanks to some great help from this
 list my application was running smoothly.  However, I needed to make 
 some configuration changes, and now my apps stopped working.  Apache 
 (1.3.23) runs fine, and Tomcat (4.1.17) runs fine but the problem is 
 with mod_jk.

 I tried searching the archives for this one but had no luck.  The 
 error I am
 getting in my mod_jk.log is:

 In jk_endpoint_t::service, Error sd = -1

 And of course the error I am getting in my apache error log shows that 
 it is
 looking for the file in the apache web directory.  So it appears that 
 mod_jk
 is not working and the request is never being interpreted by the JkMount
 statements.

 Does anyone have any idea what this means?  I even tried restoring the 
 original server.xml file, but I still received the error.  I can post 
 server.xml, httpd.conf, etc if you need to see it, but I thought first 
 I would send out the error message.

 Thanks for your help!

 Denise Mangano
 Help Desk

RE: Mod_jk on WinXP (revisited)

2003-03-06 Thread Denise Mangano
Hi again :)  I'm sorry to bother everyone with this - I'm sure its been
covered before but I could not find anything in the archives... And I would
really like to get this resolved.

I'm setting up mod_jk on Apache 1.3.27/Tomcat 4.1.18/WinXP install.  I am
following John Turner's HOW-TO - its for Apache 2.0.43 but I can't imagine
the set up is that much different.  Apache and Tomcat both work perfectly
individually... I am having a problem connecting with mod_jk.

I added the LoadModule jk_module modules/mod_jk-1.3.27.dll statement to my
httpd.conf.  In Apache 1.3.27 I have to update the AddModule directive
whenever I change the LoadModule directive, so I added the statement
AddModule mod_jk-1.3.27.c and I get an error.  The error says Cannot add
module mod_jk.c: not found in module list.  I also tried AddModule
mod_jk-1.3.27.dll and get the same error message (except for file
mod_jk-1.3.27.dll).  When I try to omit the AddModule statement completely I
get the error: Cannot remove module mod_jk.c: not found in module list.  

However in both cases I get a Syntax OK message.  I tried ignoring the
errors in all scenarios (since Syntax was OK) and continued with the mod_jk
setup, but then I get errors that imply mod_jk isn't installed.

Any ideas are greatly appreciated - I have searched the archives, I googled
- but I can't find any information on this error message. Thanks :)

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 03, 2003 4:29 PM
To: 'Tomcat Users List'
Subject: Mod_jk on WinXP [Was: Installing Tomcat on WinXP with Apache/PHP/
mySQL setup]


Here we go again :)

Apache v. 1.3.27
Tomcat 4.1.18
Mod_jk 1.2.2
Windows XP

I can access http://localhost:8080/index.jsp but not
http://localhost/index.jsp.  I have set up everything in the httpd.conf file
- I attached httpd.conf and server.xml.  

The error I am getting when I start the Apache service is: Invalid command
'JkMount', perhaps mis-spelled or defined by a module not included in the
server configuration.  

This is leading me to believe that mod_jk is not installed properly?  Any
ideas/thoughts/advice are greatly appreciated.

Thanks :)

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 03, 2003 11:42 AM
To: 'Tomcat Users List'
Subject: RE: Installing Tomcat on WinXP with Apache/PHP/mySQL setup



I use the EXE, which will run an installer when you execute it.  That way,
you can choose to run Tomcat as a service or not just by checking the option
in the installer instead of having to get medieval on the command line
later.

John

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 03, 2003 11:44 AM
 To: 'Tomcat Users List'
 Subject: RE: Installing Tomcat on WinXP with Apache/PHP/mySQL setup
 
 
 John - it appears that the httpd that came with the program accepts
 dynamically loaded modules, so I think I will be OK with the mod_jk 
 connector.
 
 I've only installed tomcat on a linux machine.  For the WinXP machine 
 is it better to go with the Tomcat binary that comes in the zip file, 
 or the executable?
 
 Thanks :)
 
 Denise Mangano
 Help Desk Analyst
 Complus Data Innovations, Inc.
  
 
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 03, 2003 11:11 AM
 To: 'Tomcat Users List'
 Subject: RE: Installing Tomcat on WinXP with Apache/PHP/mySQL setup
 
 
 
 Off the top of my head I would say change httpd.conf to load 
 mod_jk.so, add your JkMounts and the other JK stuff, and you should be 
 good to go.  Unless, of coures, the httpd that came with that package 
 won't except dynamically
 loaded modules.
 
 John
 
  -Original Message-
  From: Denise Mangano [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 03, 2003 11:08 AM
  To: 'Tomcat Users List'
  Subject: Installing Tomcat on WinXP with Apache/PHP/mySQL setup
  
  
  Hi all :)
  
  I have a *simple* question.  I want to set up Tomcat on my local 
  machine for testing / playing around.  I'm not sure if anyone is 
  familiar with phpdev - but phpdev is basically a pre configured 
  version of apache/PHP/MySQL.  I have this installed, and it comes 
  packaged with Apache version 1.3.27.  I
  did this primarily because I wanted to use Apache as the web 
  server, and
  wanted the ability to create PHP applications - but without 
  the headaches of
  trying to configure everything manually.
  
  Now I want to integrate Tomcat into the picture, and I am just 
  wondering if there is anything special I need to do so nothing 
  conflicts or do I proceed with the Tomcat installation as normal.
  
  Thanks!
  
  Denise Mangano
  Help Desk Analyst
  Complus Data Innovations, Inc.
   
  
  
 -
  To unsubscribe, e-mail

RE: Mod_jk on WinXP (revisited)

2003-03-06 Thread Denise Mangano
OK... I tried AddModule mod_jk.c and the error messages disappeared.  Can
anyone tell me where mod_jk.c comes from?

Thanks :)

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 06, 2003 10:26 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk on WinXP (revisited)


Hi again :)  I'm sorry to bother everyone with this - I'm sure its been
covered before but I could not find anything in the archives... And I would
really like to get this resolved.

I'm setting up mod_jk on Apache 1.3.27/Tomcat 4.1.18/WinXP install.  I am
following John Turner's HOW-TO - its for Apache 2.0.43 but I can't imagine
the set up is that much different.  Apache and Tomcat both work perfectly
individually... I am having a problem connecting with mod_jk.

I added the LoadModule jk_module modules/mod_jk-1.3.27.dll statement to my
httpd.conf.  In Apache 1.3.27 I have to update the AddModule directive
whenever I change the LoadModule directive, so I added the statement
AddModule mod_jk-1.3.27.c and I get an error.  The error says Cannot add
module mod_jk.c: not found in module list.  I also tried AddModule
mod_jk-1.3.27.dll and get the same error message (except for file
mod_jk-1.3.27.dll).  When I try to omit the AddModule statement completely I
get the error: Cannot remove module mod_jk.c: not found in module list.  

However in both cases I get a Syntax OK message.  I tried ignoring the
errors in all scenarios (since Syntax was OK) and continued with the mod_jk
setup, but then I get errors that imply mod_jk isn't installed.

Any ideas are greatly appreciated - I have searched the archives, I googled
- but I can't find any information on this error message. Thanks :)

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 03, 2003 4:29 PM
To: 'Tomcat Users List'
Subject: Mod_jk on WinXP [Was: Installing Tomcat on WinXP with Apache/PHP/
mySQL setup]


Here we go again :)

Apache v. 1.3.27
Tomcat 4.1.18
Mod_jk 1.2.2
Windows XP

I can access http://localhost:8080/index.jsp but not
http://localhost/index.jsp.  I have set up everything in the httpd.conf file
- I attached httpd.conf and server.xml.  

The error I am getting when I start the Apache service is: Invalid command
'JkMount', perhaps mis-spelled or defined by a module not included in the
server configuration.  

This is leading me to believe that mod_jk is not installed properly?  Any
ideas/thoughts/advice are greatly appreciated.

Thanks :)

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 03, 2003 11:42 AM
To: 'Tomcat Users List'
Subject: RE: Installing Tomcat on WinXP with Apache/PHP/mySQL setup



I use the EXE, which will run an installer when you execute it.  That way,
you can choose to run Tomcat as a service or not just by checking the option
in the installer instead of having to get medieval on the command line
later.

John

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 03, 2003 11:44 AM
 To: 'Tomcat Users List'
 Subject: RE: Installing Tomcat on WinXP with Apache/PHP/mySQL setup
 
 
 John - it appears that the httpd that came with the program accepts 
 dynamically loaded modules, so I think I will be OK with the mod_jk 
 connector.
 
 I've only installed tomcat on a linux machine.  For the WinXP machine
 is it better to go with the Tomcat binary that comes in the zip file, 
 or the executable?
 
 Thanks :)
 
 Denise Mangano
 Help Desk Analyst
 Complus Data Innovations, Inc.
  
 
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 03, 2003 11:11 AM
 To: 'Tomcat Users List'
 Subject: RE: Installing Tomcat on WinXP with Apache/PHP/mySQL setup
 
 
 
 Off the top of my head I would say change httpd.conf to load
 mod_jk.so, add your JkMounts and the other JK stuff, and you should be 
 good to go.  Unless, of coures, the httpd that came with that package 
 won't except dynamically
 loaded modules.
 
 John
 
  -Original Message-
  From: Denise Mangano [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 03, 2003 11:08 AM
  To: 'Tomcat Users List'
  Subject: Installing Tomcat on WinXP with Apache/PHP/mySQL setup
  
  
  Hi all :)
  
  I have a *simple* question.  I want to set up Tomcat on my local
  machine for testing / playing around.  I'm not sure if anyone is 
  familiar with phpdev - but phpdev is basically a pre configured 
  version of apache/PHP/MySQL.  I have this installed, and it comes 
  packaged with Apache version 1.3.27.  I
  did this primarily because I wanted to use Apache as the web 
  server, and
  wanted the ability to create PHP applications - but without 
  the headaches of
  trying to configure everything manually.
  
  Now I want

RE: Tomcat on WinXP (Solved??)

2003-03-05 Thread Denise Mangano
Ok, well here's a strange thing (to me at least)...

I uninstalled Tomcat, and removed CATALINA_HOME  JAVA_HOME environment
variables.  I also removed anything I added to the path, such as
%JAVA_HOME%\bin.

I then reinstalled Tomcat using the Executable.  After the installation the
service is started.  Without setting any environment variables or changes to
path, for the heck of it I tried http://localhost:8080 and wouldn't you know
it, http://localhost:8080/index.jsp comes up fine.  Also, the JSP and
servlet examples all work.

Does anyone have any idea why this would work?  And since its working I
don't want to mess with it - what are the implications of leaving the setup
without CATALINA_HOME  JAVA_HOME set and without adding the bin directories
to the PATH?

Thanks :)

On to the mod_jk setup again...

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2003 10:12 PM
To: Tomcat Users List
Subject: Re: Tomcat on WinXP


Denise Mangano wrote:

I have my JAVA_HOME set to point to my c:\jdk1.4.1\bin and export 
JAVA_HOME in my PATH variable.  I checked the error logs, and for some 
reason it is saying unable to find java compiler.

You don't have to set it to 'c:\jdk1.4.1\bin' the top level directory 
will do. Just omit the bin for JAVA_HOME.
JAVA_HOME doesn't need to be exported in the PATH variable. Installing the
jdk on a separate partition or drive is ok. As long as 
you set your JAVA_HOME correctly. You may specify a classpath variable 
if you need. Or you could pass arguments to the java.exe program.



-
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]



Tomcat on WinXP

2003-03-04 Thread Denise Mangano
Hi everyone.  Yesterday I posted to get help with setting up mod_jk on my
WinXP machine.  As it turns out I was wrong and the httpd that came with the
phpdev package won't except dynamically loaded modules. So my solution is to
reinstall everything without using the phpdev package.

I am following John Turner's how to, and the Apache install went smoothly.
I ran the executable for Tomcat install, and installation was successful.
However when I go to http://localhost:8080 I get the error below.  To me it
seems like a possibly a classpath error for the compiler??  The install
directory for tomcat is G:\tomcat (I have a separate partition set up to
keep my web server separate from everything else on the PC).  My PATH (both
user and system) includes C:\jdk1.4.1\bin and G:\tomcat\bin.  I can't
imagine why this set up should cause problems, especially since my PATH is
set, and upon Tomcat install the installer found my jdk1.4.1 installation.

exception:
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file



at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
74)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
84)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:493)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at java.lang.Thread.run(Thread.java:536)

Thanks in advance for any pointers :)
Denise


RE: Tomcat on WinXP

2003-03-04 Thread Denise Mangano
I am reading these posts on Installing Tomcat 4.1 on Win2K and I see this
discussion on  the classpath.  I have tried my setup with and without a
classpath specified, and in either case I am getting the same error message
as Baco.  The only difference is that I have JDK installed.

I have my JAVA_HOME set to point to my c:\jdk1.4.1\bin and export JAVA_HOME
in my PATH variable.  I checked the error logs, and for some reason it is
saying unable to find java compiler.  I created a simple test.java in my
G:\tomcat directory and tried to compile from the command prompt.  I receive
no error messages but the file does not compile.  (When I performed the same
test on my C:\ drive it compiled fine).

Can someone please let me know if having the JDK on a separate partition
could be causing my problem? If so then I would imagine I have to install
the JDK on the same partition - but would this cause conflicts with the JDK
I have installed on the C:\ drive.

I'm trying to get tomcat running as soon as possible, and appreciate any
help.  Thanks in advance.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2003 1:42 PM
To: 'Tomcat Users List'
Subject: Tomcat on WinXP


Hi everyone.  Yesterday I posted to get help with setting up mod_jk on my
WinXP machine.  As it turns out I was wrong and the httpd that came with the
phpdev package won't except dynamically loaded modules. So my solution is to
reinstall everything without using the phpdev package.

I am following John Turner's how to, and the Apache install went smoothly. I
ran the executable for Tomcat install, and installation was successful.
However when I go to http://localhost:8080 I get the error below.  To me it
seems like a possibly a classpath error for the compiler??  The install
directory for tomcat is G:\tomcat (I have a separate partition set up to
keep my web server separate from everything else on the PC).  My PATH (both
user and system) includes C:\jdk1.4.1\bin and G:\tomcat\bin.  I can't
imagine why this set up should cause problems, especially since my PATH is
set, and upon Tomcat install the installer found my jdk1.4.1 installation.

exception:
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file



at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
74)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
84)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:493)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke

RE: Tomcat on WinXP

2003-03-04 Thread Denise Mangano
Thanks everyone for answering.  I changed my JAVA_HOME to c:\jdk1.4.1 and
restarted Tomcat.  I still get the same error.

The exact error in the log file is: Unable to find a javac
compiler;com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME
does not point to the JDK

echo %JAVA_HOME%
C:\jdk1.4

In my PATH I have: %JAVA_HOME%\bin

I'm at a loss - the only other thing I can think of is the fact that I am
trying to access the java compiler from a different partition could be
causing this?  I don't see why it should but then again I've seen stranger
things happen...  What boggles my mind even further is that at the command
prompt I cahnge to G:\tomcat and I try javac test.java and it gives me no
error messages, but no class file is compiled.

Any other thoughts?   Thanks again.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Tam, Michael [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2003 3:42 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat on WinXP


To Denise,

   You should point your JAVA_HOME to c:\jdk1.4.1 not c:\jdk1.4.1\bin

To Sean,

   Please refer to message Installation - Tomcat 4.1 -Windows 2k.  Tomcat
works the same way in Win2K/XP.


Hope this help guys.

cheers,
Michael

-Original Message-
From: Scott, Sean [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 12:38 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat on WinXP


I encountered this when I wrote my own start scripts and I failed to add
tools.jar to my CLASSPATH.

-sean


-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 1:38 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat on WinXP


I am reading these posts on Installing Tomcat 4.1 on Win2K and I see this
discussion on  the classpath.  I have tried my setup with and without a
classpath specified, and in either case I am getting the same error message
as Baco.  The only difference is that I have JDK installed.

I have my JAVA_HOME set to point to my c:\jdk1.4.1\bin and export JAVA_HOME
in my PATH variable.  I checked the error logs, and for some reason it is
saying unable to find java compiler.  I created a simple test.java in my
G:\tomcat directory and tried to compile from the command prompt.  I receive
no error messages but the file does not compile.  (When I performed the same
test on my C:\ drive it compiled fine).

Can someone please let me know if having the JDK on a separate partition
could be causing my problem? If so then I would imagine I have to install
the JDK on the same partition - but would this cause conflicts with the JDK
I have installed on the C:\ drive.

I'm trying to get tomcat running as soon as possible, and appreciate any
help.  Thanks in advance.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2003 1:42 PM
To: 'Tomcat Users List'
Subject: Tomcat on WinXP


Hi everyone.  Yesterday I posted to get help with setting up mod_jk on my
WinXP machine.  As it turns out I was wrong and the httpd that came with the
phpdev package won't except dynamically loaded modules. So my solution is to
reinstall everything without using the phpdev package.

I am following John Turner's how to, and the Apache install went smoothly. I
ran the executable for Tomcat install, and installation was successful.
However when I go to http://localhost:8080 I get the error below.  To me it
seems like a possibly a classpath error for the compiler??  The install
directory for tomcat is G:\tomcat (I have a separate partition set up to
keep my web server separate from everything else on the PC).  My PATH (both
user and system) includes C:\jdk1.4.1\bin and G:\tomcat\bin.  I can't
imagine why this set up should cause problems, especially since my PATH is
set, and upon Tomcat install the installer found my jdk1.4.1 installation.

exception:
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file



at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
74)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
84)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter

RE: Tomcat on WinXP

2003-03-04 Thread Denise Mangano
Jon  Michael - my apologies, that was a typo - JAVA_HOME is set to
c:\jdk1.4.1

Erik:

I used the wrong word - I do not use export, but I do include
%JAVA_HOME%\bin in my PATH variable.  javac -help works even when run from
the G:\directory so apparantly the PATH is set correctly.

I even tried Sean's suggestion of adding tools.jar but that did not help
either.  

So it seems like I am left at: my path to the java compiler is good, but for
some reason Tomcat is not finding it.  My Apache Tomcat book just got
delivered, so I am going to scour through that, but if anyone can think of
anything else in the meantime I'd appreciate it.

Thanks to everyone for their help.



Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2003 4:19 PM
To: Tomcat Users List
Subject: Re: Tomcat on WinXP


Your jdk is installed at c:\jdk1.4.1 but your echo says c:\jdk1.4 Is that a
typo?


Denise Mangano wrote:

Thanks everyone for answering.  I changed my JAVA_HOME to c:\jdk1.4.1 
and restarted Tomcat.  I still get the same error.

The exact error in the log file is: Unable to find a javac 
compiler;com.sun.tools.javac.Main is not on the classpath. Perhaps 
JAVA_HOME does not point to the JDK

echo %JAVA_HOME%
C:\jdk1.4

In my PATH I have: %JAVA_HOME%\bin

I'm at a loss - the only other thing I can think of is the fact that I 
am trying to access the java compiler from a different partition could 
be causing this?  I don't see why it should but then again I've seen 
stranger things happen...  What boggles my mind even further is that at 
the command prompt I cahnge to G:\tomcat and I try javac test.java and 
it gives me no error messages, but no class file is compiled.

Any other thoughts?   Thanks again.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, 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]



RE: Tomcat on WinXP

2003-03-04 Thread Denise Mangano
Kenny - As Far As I Know :)

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2003 5:00 PM
To: Tomcat Users List
Subject: Re: Tomcat on WinXP


What is AFAIK?  Sorry to ask but I see it all the time and I've not been
able to figure it out (:p Kenny

- Original Message -
From: Erik Price [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 3:02 PM
Subject: Re: Tomcat on WinXP




 Denise Mangano wrote:

  I have my JAVA_HOME set to point to my c:\jdk1.4.1\bin

 No, that is not the home of your JDK installation.  The home is 
 the main directory -- c:\jdk1.4.1 -- so change JAVA_HOME so that it 
 points to this directory.

  and export JAVA_HOME
  in my PATH variable.

 If you are running Windows, why do you use export?  AFAIK that's a 
 bash shell construct (unless you're running Cygwin to get the bash 
 shell running on Windows, in which case none of what I'm about to say 
 applies).  The PATH environment variable simply contains a list of 
 directories that your shell should check for executables (programs 
 that often end in .exe).  Because quite a few of the tools used by 
 Java programmers are executables in the bin directory of the 
 JAVA_HOME location, it is often recommended that developers add this 
 directory to their PATH.  Assuming that said developer has already 
 defined a JAVA_HOME environment variable to point to their JDK's 
 home directory (in your case this is c:\jdk1.4.1), all you need to 
 do is make sure that the PATH environment variable contains one of the 
 following:

%JAVA_HOME%\bin  -- for non-Cygwin Windows systems
$JAVA_HOME/bin   -- for unix/linux-based systems (such as Cygwin on
Win32)

 It's like taking a shortcut instead of simply using the full path:

c:\j2sdk1.4.1\bin -- for non-Cygwin Windows systems
/usr/local/j2sdk1.4.1/bin -- for unix/linux-based systems

 Of course, it really all depends on where you installed the JDK in the 
 first place, not every Unix system has it in /usr/local and not every 
 Wintel box has it in c:\.

  I checked the error logs, and for some reason it is
  saying unable to find java compiler.

 This suggests that the javac compiler is not being found in any of 
 the directories in your PATH environment variable.  Make sure that 
 your PATH environment variable contains the bin directory of your 
 JAVA_HOME.

I created a simple test.java in my
  G:\tomcat directory and tried to compile from the command prompt.  I
receive
  no error messages but the file does not compile.  (When I performed 
  the
same
  test on my C:\ drive it compiled fine).
 
  Can someone please let me know if having the JDK on a separate 
  partition could be causing my problem? If so then I would imagine I 
  have to
install
  the JDK on the same partition - but would this cause conflicts with 
  the
JDK
  I have installed on the C:\ drive.

 I don't think the partition on which the JDK is installed really 
 matters.  What's important is that your environment variable JAVA_HOME 
 points to the location of the JDK so that tools expecting to use the 
 JDK know where to find it, and that the java, jar, and javac 
 tools are in one of the directories on your PATH.  Adjust your PATH 
 environment variable to make sure.


 Erik


 -
 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: Tomcat on WinXP

2003-03-04 Thread Denise Mangano
Not sure if this sheds any light, but in my localhost_log.2003-03-04.txt I
found the following error:

2003-03-04 17:00:41 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception

And then the stack trace for the compile error for index.jsp.

Thanks.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2003 4:04 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat on WinXP


Thanks everyone for answering.  I changed my JAVA_HOME to c:\jdk1.4.1 and
restarted Tomcat.  I still get the same error.

The exact error in the log file is: Unable to find a javac
compiler;com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME
does not point to the JDK

echo %JAVA_HOME%
C:\jdk1.4

In my PATH I have: %JAVA_HOME%\bin

I'm at a loss - the only other thing I can think of is the fact that I am
trying to access the java compiler from a different partition could be
causing this?  I don't see why it should but then again I've seen stranger
things happen...  What boggles my mind even further is that at the command
prompt I cahnge to G:\tomcat and I try javac test.java and it gives me no
error messages, but no class file is compiled.

Any other thoughts?   Thanks again.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Tam, Michael [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2003 3:42 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat on WinXP


To Denise,

   You should point your JAVA_HOME to c:\jdk1.4.1 not c:\jdk1.4.1\bin

To Sean,

   Please refer to message Installation - Tomcat 4.1 -Windows 2k.  Tomcat
works the same way in Win2K/XP.


Hope this help guys.

cheers,
Michael

-Original Message-
From: Scott, Sean [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 12:38 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat on WinXP


I encountered this when I wrote my own start scripts and I failed to add
tools.jar to my CLASSPATH.

-sean


-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 1:38 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat on WinXP


I am reading these posts on Installing Tomcat 4.1 on Win2K and I see this
discussion on  the classpath.  I have tried my setup with and without a
classpath specified, and in either case I am getting the same error message
as Baco.  The only difference is that I have JDK installed.

I have my JAVA_HOME set to point to my c:\jdk1.4.1\bin and export JAVA_HOME
in my PATH variable.  I checked the error logs, and for some reason it is
saying unable to find java compiler.  I created a simple test.java in my
G:\tomcat directory and tried to compile from the command prompt.  I receive
no error messages but the file does not compile.  (When I performed the same
test on my C:\ drive it compiled fine).

Can someone please let me know if having the JDK on a separate partition
could be causing my problem? If so then I would imagine I have to install
the JDK on the same partition - but would this cause conflicts with the JDK
I have installed on the C:\ drive.

I'm trying to get tomcat running as soon as possible, and appreciate any
help.  Thanks in advance.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2003 1:42 PM
To: 'Tomcat Users List'
Subject: Tomcat on WinXP


Hi everyone.  Yesterday I posted to get help with setting up mod_jk on my
WinXP machine.  As it turns out I was wrong and the httpd that came with the
phpdev package won't except dynamically loaded modules. So my solution is to
reinstall everything without using the phpdev package.

I am following John Turner's how to, and the Apache install went smoothly. I
ran the executable for Tomcat install, and installation was successful.
However when I go to http://localhost:8080 I get the error below.  To me it
seems like a possibly a classpath error for the compiler??  The install
directory for tomcat is G:\tomcat (I have a separate partition set up to
keep my web server separate from everything else on the PC).  My PATH (both
user and system) includes C:\jdk1.4.1\bin and G:\tomcat\bin.  I can't
imagine why this set up should cause problems, especially since my PATH is
set, and upon Tomcat install the installer found my jdk1.4.1 installation.

exception:
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file



at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
at org.apache.jasper.compiler.Compiler.compile

Installing Tomcat on WinXP with Apache/PHP/mySQL setup

2003-03-03 Thread Denise Mangano
Hi all :)

I have a *simple* question.  I want to set up Tomcat on my local machine for
testing / playing around.  I'm not sure if anyone is familiar with phpdev -
but phpdev is basically a pre configured version of apache/PHP/MySQL.  I
have this installed, and it comes packaged with Apache version 1.3.27.  I
did this primarily because I wanted to use Apache as the web server, and
wanted the ability to create PHP applications - but without the headaches of
trying to configure everything manually.

Now I want to integrate Tomcat into the picture, and I am just wondering if
there is anything special I need to do so nothing conflicts or do I proceed
with the Tomcat installation as normal.

Thanks!

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 

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



RE: Installing Tomcat on WinXP with Apache/PHP/mySQL setup

2003-03-03 Thread Denise Mangano
John - it appears that the httpd that came with the program accepts
dynamically loaded modules, so I think I will be OK with the mod_jk
connector.

I've only installed tomcat on a linux machine.  For the WinXP machine is it
better to go with the Tomcat binary that comes in the zip file, or the
executable?

Thanks :)

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 03, 2003 11:11 AM
To: 'Tomcat Users List'
Subject: RE: Installing Tomcat on WinXP with Apache/PHP/mySQL setup



Off the top of my head I would say change httpd.conf to load mod_jk.so, add
your JkMounts and the other JK stuff, and you should be good to go.  Unless,
of coures, the httpd that came with that package won't except dynamically
loaded modules.

John

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 03, 2003 11:08 AM
 To: 'Tomcat Users List'
 Subject: Installing Tomcat on WinXP with Apache/PHP/mySQL setup
 
 
 Hi all :)
 
 I have a *simple* question.  I want to set up Tomcat on my local 
 machine for testing / playing around.  I'm not sure if anyone is 
 familiar with phpdev -
 but phpdev is basically a pre configured version of 
 apache/PHP/MySQL.  I
 have this installed, and it comes packaged with Apache 
 version 1.3.27.  I
 did this primarily because I wanted to use Apache as the web 
 server, and
 wanted the ability to create PHP applications - but without 
 the headaches of
 trying to configure everything manually.
 
 Now I want to integrate Tomcat into the picture, and I am just 
 wondering if there is anything special I need to do so nothing 
 conflicts or do I proceed
 with the Tomcat installation as normal.
 
 Thanks!
 
 Denise Mangano
 Help Desk Analyst
 Complus Data Innovations, 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]



Mod_jk on WinXP [Was: Installing Tomcat on WinXP with Apache/PHP/mySQL setup]

2003-03-03 Thread Denise Mangano
Here we go again :)

Apache v. 1.3.27
Tomcat 4.1.18
Mod_jk 1.2.2
Windows XP

I can access http://localhost:8080/index.jsp but not
http://localhost/index.jsp.  I have set up everything in the httpd.conf file
- I attached httpd.conf and server.xml.  

The error I am getting when I start the Apache service is: Invalid command
'JkMount', perhaps mis-spelled or defined by a module not included in the
server configuration.  

This is leading me to believe that mod_jk is not installed properly?  Any
ideas/thoughts/advice are greatly appreciated.

Thanks :)

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 03, 2003 11:42 AM
To: 'Tomcat Users List'
Subject: RE: Installing Tomcat on WinXP with Apache/PHP/mySQL setup



I use the EXE, which will run an installer when you execute it.  That way,
you can choose to run Tomcat as a service or not just by checking the option
in the installer instead of having to get medieval on the command line
later.

John

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 03, 2003 11:44 AM
 To: 'Tomcat Users List'
 Subject: RE: Installing Tomcat on WinXP with Apache/PHP/mySQL setup
 
 
 John - it appears that the httpd that came with the program accepts 
 dynamically loaded modules, so I think I will be OK with the mod_jk 
 connector.
 
 I've only installed tomcat on a linux machine.  For the WinXP
 machine is it
 better to go with the Tomcat binary that comes in the zip file, or the
 executable?
 
 Thanks :)
 
 Denise Mangano
 Help Desk Analyst
 Complus Data Innovations, Inc.
  
 
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 03, 2003 11:11 AM
 To: 'Tomcat Users List'
 Subject: RE: Installing Tomcat on WinXP with Apache/PHP/mySQL setup
 
 
 
 Off the top of my head I would say change httpd.conf to load
 mod_jk.so, add
 your JkMounts and the other JK stuff, and you should be good 
 to go.  Unless,
 of coures, the httpd that came with that package won't except 
 dynamically
 loaded modules.
 
 John
 
  -Original Message-
  From: Denise Mangano [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 03, 2003 11:08 AM
  To: 'Tomcat Users List'
  Subject: Installing Tomcat on WinXP with Apache/PHP/mySQL setup
  
  
  Hi all :)
  
  I have a *simple* question.  I want to set up Tomcat on my local
  machine for testing / playing around.  I'm not sure if anyone is 
  familiar with phpdev -
  but phpdev is basically a pre configured version of 
  apache/PHP/MySQL.  I
  have this installed, and it comes packaged with Apache 
  version 1.3.27.  I
  did this primarily because I wanted to use Apache as the web 
  server, and
  wanted the ability to create PHP applications - but without 
  the headaches of
  trying to configure everything manually.
  
  Now I want to integrate Tomcat into the picture, and I am just
  wondering if there is anything special I need to do so nothing 
  conflicts or do I proceed
  with the Tomcat installation as normal.
  
  Thanks!
  
  Denise Mangano
  Help Desk Analyst
  Complus Data Innovations, 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]
 

-
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]

[OT] question about killfile

2003-02-13 Thread Denise Mangano
Hey all :)

Sorry for the dumb question... But I keep seeing people talk about a
killfile.  Seeing as how this is the first list I've ever subscribed to, I
had to ask - what exactly is a killfile?  Without pointing fingers, there
are some poster(s) I'd like to block.  I know I can block the address, or
set up a rule in Outlook to automatically move messages from a specific
address to the deleted items folder...  But I was just curious if this
killfile was something different, and more effective.

Thanks :)

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


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




RE: [OT] question about killfile

2003-02-13 Thread Denise Mangano
Thanks for the info :)

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Tim Moore [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 13, 2003 4:49 PM
To: Tomcat Users List
Subject: RE: [OT] question about killfile


Same thing.  The name is derived from old Usenet readers, which had a text
file list of email addresses that it would ignore posts from. Since usenet
can have a particularly low signal-to-noise ratio, these readers had a quick
kill command that would automatically add the poster of the currently
selected message to the file.

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 4:46 PM
 To: 'Tomcat Users List'
 Subject: [OT] question about killfile
 
 
 Hey all :)
 
 Sorry for the dumb question... But I keep seeing people talk
 about a killfile.  Seeing as how this is the first list I've 
 ever subscribed to, I had to ask - what exactly is a 
 killfile?  Without pointing fingers, there are some poster(s) 
 I'd like to block.  I know I can block the address, or set up 
 a rule in Outlook to automatically move messages from a 
 specific address to the deleted items folder...  But I was 
 just curious if this killfile was something different, and 
 more effective.
 
 Thanks :)
 
 Denise Mangano
 Help Desk Analyst
 Complus Data Innovations, 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]




RE: Need help w. another jsp!

2003-02-10 Thread Denise Mangano
Steve,

For the most part, I have not been following your post.  But a switch case
(in Java) should be formatted as:

switch(someThing) // someThing is the piece of data you want to analyze
{
  case a: case b: case c:  //where a, b, and c are possible values of
someThing - format may be different depending on what type of variable
someThing is)
/*whatever code you want to happen
if the value of someThing
is one of these cases*/
  case d: case e:
/*etc until you have covered all 
cases of possible values for someThing*/
  default:
/*How to handle if someThing was not matched to a case, 
usually an error handler - similar to the else in an if/else
conditional statement*/
}


HTH 

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Steve Burrus [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 10, 2003 2:34 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Need help w. another jsp!


Hi Daniel, I  don't think that I have ever heard from u before--but that is
neither here or there :). Listen, about handling that switch-case block
in my code, someone suggested to me that I wrap the whole block in
brackets ({ }). And that would magically make my problems with the code go
away! Is there anything to that suggestion at all?

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




RE: Respecting the User List

2003-02-10 Thread Denise Mangano
Couldn't have said it better myself.  While it has proven for some
entertainment it is getting pretty frustrating.  What amazes me the most is
that he promises over and over again that he will try to be better it
never happens.  It's amazing that all the great people in this list still
try to help him, and yet he still doesn't show the slightest hint of any
manners.  I think its time to go with John's suggestion of a filter.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Carl [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 10, 2003 4:21 PM
To: Tomcat Users List
Subject: Re: Respecting the User List


Steve,

I just wanted to echo Nicole's sentiments.  I asked for help just once on
this list and John Turner pointed me in the right direction and I was off
and running.  I was courteous (and desperate) and help was there.  I now
read practically every email that is sent because I have found it a very
good way to educate myself about Tomcat and JSP in general.  Lots of people
get lots of help.

You, on the other hand, have provided hours of entertainment as you trash
the very people who are trying to help you.  If you hate the people who try
to provide help so much, please take your requests elsewhere.  I would miss
the entertainment but would not miss the clutter in my inbox.  The people
who respond regularly to questions are really know their stuff and are
trying to be helpful, the kind of people you would want for your good
friends.  Would you treat your good friends like your treat these people?

Carl Kabbe
- Original Message -
From: Nicole Hibbard [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, February 10, 2003 2:55 PM
Subject: Respecting the User List


 Hello Steve Burrus:

 I don't think there is any reason for you to disrespect the users 
 involved on this list.  Everyone here is just trying to help and 
 everytime I see a reply from you it seems to contain disrespectful 
 remarks.  I know because you sent one to me one time.  Its not easy to 
 help someone that doesn't appreciate it, makes fun of peoples names 
 and hurts people's feelings.
I'm
 not writing this to get some sort of inappropriate email back from 
 you.  I just wanted to let everyone know that this has been going on 
 for quite a while, and I personally will not post another answer for 
 you not because I don't want to help, but it hurts me that people can 
 be so mean.

 Nicole Hibbard
 Systems Engineer
 Xtelesis Corporation
 http://www.xtelesis.com
 direct: 650-239-1483
 cell:   650-278-1633
 email:  [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]

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




RE: [OT]JSP defense - can you point me in the right direction

2003-02-06 Thread Denise Mangano
 Well, they're probably worried about the staying power of
 these newfangled technologies.  CGI is understood by (say) (even lazy)
(*nix) admins, while the whole concept of a Java servlet engine is a bit
overwhelming at first.

I think the keyword is overwhelming at first, but definitely not
impossible to learn.  Also I should mention that I told the hospital that I
would remain on the project along with the team already chosen for
maintenance.  This team includes members that I know for a fact are capable
of maintaining other technologies.

 If you know C and/or Perl (I assume you would choose one of these to write
your CGI app) PHP is not hard to pick up. Also, you can write PHP and run it
as CGI (some features may not  be as convenient that way, though).  So
perhaps a strategy would be, start with PHP/CGI, and then once they see
results, point out that mod_php is faster and simplifies your scripts, 
 and everyone's doing it.  It may not be the best long-term solution, but
it's one you can see from here.

Honestly,  I don't.  I toyed with CGI scripts (Perl) for a fake website I
made for a course a year ago, and that is the extent of my experience with
it.  While I don't doubt that I can learn it enough, if not more, to
complete the project, it is definitely not my preference.  And judging by
the responses I've received so far it is not the way to go.  

More importantly, they are not 'validating' their choice of CGI, they are
just opting for the quickest and easiest solution.  And the only reason why
they suggested it in the first place is because one member mentioned already
having some working examples of forms using CGI, but this member is working
on the DB... not the site.  Honestly if they could defend their decision as
well as the list defends NOT using CGI, then there would be cause for
discussion. If this project wasn't a great opportunity for me, I wouldn't
otherwise want to be involved with this team.   So I stick to my original
plan of being 'anti-CGI' and will explore the number of solutions that the
list has provided and present them with all the evidence and hopefully
open their eyes :)

Thanks for the input though!

Denise


-
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: [OT]JSP defense - can you point me in the right direction

2003-02-06 Thread Denise Mangano
Thanks for the laugh!!  It is certainly needed throughout this extremely
frustrating experience.  

To make matters worse, I just found out that the reason they are being
adamant is because the person with the working examples wants to take the
prototype from this project and use it for another.  Correct me if I'm
wrong, but I thought we're supposed to meet the client's needs...? Still in
my eyes, why would they choose CGI?!

At this point I have not been trying to convince them of JSP, just that CGI
is not the way to go.  And it is like talking to a wall.  Since there is a
good chance of me staying on the project long after the other team members
are gone, I'm thinking I may have to approach the client with the dilemma,
but I'd hate to seem unprofessional.  This is definitely getting ugly and
sadly enough I may have to just remove my self from the situation although I
would obviously rather not have to.

Well, I extremely appreciate everyone's detailed responses.  It's nice to
know that I'm not alone on this and that there are so many knowledgeable
people out there willing to help out.

Thanks again.

Denise 


-Original Message-
From: Will Hartung [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 06, 2003 12:43 PM
To: Tomcat Users List
Subject: Re: [OT]JSP defense - can you point me in the right direction


 From: Denise Mangano [EMAIL PROTECTED]
 Sent: Thursday, February 06, 2003 8:49 AM
 Subject: RE: [OT]JSP defense - can you point me in the right direction


 More importantly, they are not 'validating' their choice of CGI, they 
 are just opting for the quickest and easiest solution.  And the only 
 reason
why
 they suggested it in the first place is because one member mentioned
already
 having some working examples of forms using CGI, but this member is
working
 on the DB... not the site.  Honestly if they could defend their 
 decision
as
 well as the list defends NOT using CGI, then there would be cause for 
 discussion. If this project wasn't a great opportunity for me, I wouldn't
 otherwise want to be involved with this team.   So I stick to my original
 plan of being 'anti-CGI' and will explore the number of solutions that 
 the list has provided and present them with all the evidence and 
 hopefully open their eyes :)

They're suffering from myopia. What they see is not CGI. What they see is
Sam is half way done, so we want to continue on this path.

The problem, of course, is simply that Sam is not half way done. He's not
even close. He has a model built from popsicle sticks and rubber cement.
Unfortuneately, the Powers That Be cannot discern this model from the final
application. So, they take this popsicle stick model to the gorge, see that
it goes half way across and say That looks like a bridge to us, let's
finish this one!.

All fine and dandy until the trucks come to cross or the gorge floods.

They need to be convinced that they have a rough prototype, a stab at
proving some basic technologies, or perhaps work flow. A nice sketch. Did it
ever occur to them that these CGIs were used as a tool to simply validate
the schema the DB folks were using?

The tenet Write it once, throw it away and write again comes to play here.
Convince them that there are wonderful lessons to be learned from this
effort, but it should not be a foundation for the final application. Once
they're convinced that they have gained all they can from the system they
think they have, then they'll be much more likely to be willing to toss it
out and start fresh.

Regards,

Will Hartung
([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: cant run jsp in Tomcat (also problem with jsp javabeans)

2003-02-06 Thread Denise Mangano
Your Login.class file should be in your WEB-INF/classes/misitio/beans
directory.   This path doesn't need to be specified in the classpath.

In you Login java file you need the statement:   package misitio.beans;

In your JSP page you should have   %@ page import=misitio.beans %


HTH

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: x x [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 06, 2003 2:14 PM
To: Tomcat Users List
Subject: cant run jsp in Tomcat



 I run Tomcat 4.1.18 running in a  linux Mandrake
 8.2,
 i want to run a jsp that import a javabean from
 another directory. When i run my jsp i saw this
 messages
 
  The server encountered an internal error () that
 prevented it from fulfilling this request.
 
 exception
 
 org.apache.jasper.JasperException: No se puede
 compilar la clase para JSP
 
 An error occurred at line: 0 in the jsp file: /iata/veri_usr.jsp
 
 Generated servlet error:
 [javac] Compiling 1 source file
 

/usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/iata/veri_usr_j
sp.java:41:
 package misitio.beans does not exist
   misitio.beans.Login login = null;

 
 
 I put im my profile this CLASSPATH
 
 CLASSPAT=.:$JAVA_HOME/lib/tools.jar:/java
 export CLASSPATH
 
 where /java its the directory where i have
 mistio/beans that correspond to the packet
 mistio.beans where i have the Login.class
 
 
 Fabian
 
 
 
 
 
 
 
 
 
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.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: Unable to compile class for JSP

2003-02-06 Thread Denise Mangano
The common answer I've seen to this, and what worked for me was placing the
class in a package.

Place the class in C:\Tomcat4\webapps\MyApp\WEB-INF\classes\mypackage\beans

In your class file you need the statement:   package mypackage.beans;

In your JSP page you should have   %@ page import=mypackage.beans %

HTH

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Aaron Bennett [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 06, 2003 3:32 PM
To: [EMAIL PROTECTED]
Subject: Unable to compile class for JSP


Hi,

I've just installed Tomcat 4.18 on my Windows 2KP machine and am having
trouble using my java beans in my application.  I continually receive the
error:  

Generated servlet error:
[javac] Compiling 1 source file

C:\Tomcat4\work\Standalone\localhost\myApp\Proc\getuserinfo_jsp.java:332:
cannot resolve symbol symbol  : class ClientData  
location: class org.apache.jsp.getuserinfo_jsp
  ClientData client = null;
  ^



An error occurred at line: 12 in the jsp file: /Proc/getuserinfo.jsp

The code generating the error is:

jsp:useBean id=client class=ClientData scope=session/ 

I've placed my class files in the C:\Tomcat4\shared\classes as-well-as the
C:\Tomcat4\webapps\MyApp\WEB-INF\classes directory.  can someone tell me
why my bean is not being recognized?

- any help greatly appreciated!



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




RE: Unable to compile class for JSP

2003-02-06 Thread Denise Mangano
Oops, thanks - I forgot that :)

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 06, 2003 3:47 PM
To: Tomcat Users List
Subject: RE: Unable to compile class for JSP


and int your 

jsp:useBean id=client class=ClientData scope=session/  tag

the class attribute should contain the fully qualified classname.

Fiilip

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 06, 2003 12:44 PM
To: 'Tomcat Users List'
Subject: RE: Unable to compile class for JSP


The common answer I've seen to this, and what worked for me was placing the
class in a package.

Place the class in C:\Tomcat4\webapps\MyApp\WEB-INF\classes\mypackage\beans

In your class file you need the statement:   package mypackage.beans;

In your JSP page you should have   %@ page import=mypackage.beans %

HTH

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Aaron Bennett [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 06, 2003 3:32 PM
To: [EMAIL PROTECTED]
Subject: Unable to compile class for JSP


Hi,

I've just installed Tomcat 4.18 on my Windows 2KP machine and am having
trouble using my java beans in my application.  I continually receive the
error:  

Generated servlet error:
[javac] Compiling 1 source file

C:\Tomcat4\work\Standalone\localhost\myApp\Proc\getuserinfo_jsp.java:332:
cannot resolve symbol symbol  : class ClientData  
location: class org.apache.jsp.getuserinfo_jsp
  ClientData client = null;
  ^



An error occurred at line: 12 in the jsp file: /Proc/getuserinfo.jsp

The code generating the error is:

jsp:useBean id=client class=ClientData scope=session/ 

I've placed my class files in the C:\Tomcat4\shared\classes as-well-as the
C:\Tomcat4\webapps\MyApp\WEB-INF\classes directory.  can someone tell me
why my bean is not being recognized?

- any help greatly appreciated!



-
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]




[OT]JSP defense - can you point me in the right direction

2003-02-05 Thread Denise Mangano
Hi all :) I'm not sure if this is technically off topic, but just in case I
threw in the [OT]...

I have a dilemma at hand.  I have a team that wishes to include me in on a
project that they are working on.  This project consists of hosting a secure
site that contains a gazillion forms for people to fill out, then write
the responses back to a mySQL database, as well as build an admin section
for querying the database.

Seeing as how I am going to be doing the web dev part, while the others deal
with the complex database structure and project management tasks, I am
trying to sell them on using JSP/Tomcat.  They are insisting on using CGI
scripts, which I personally feel is too fundamental for the task at hand.

Can anyone point me in the right direction to getting stats to back up my
claim that JSP is the better choice?  Or if anyone can tell me why CGI would
be the better choice then I'm all ears...

Thanks in advance!!!
Denise

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




RE: [OT]JSP defense - can you point me in the right direction

2003-02-05 Thread Denise Mangano
Wow.  Thank you all so much for responding to this question.  Its getting
quite frustrating hearing them saying CGI CGI CGI...  especially since they
are looking for a 'quick' solution and haven't done any research to the
advantages/disadvantages of using one technology over the other.

This project is to design a system that will one day (hopefully) be
implemented in one of the largest hospitals in the area.  This is definitely
not child's play - it will not only be important for this project to be
maintainable, but also to be expandable to meet the growing needs of the
client.  Personally, when I think CGI, I think of some rinky dink site that
people put up to sell the useless items collecting dust at home.  Forgive me
if I am offending anyone, I am sure that CGI does have its good qualities...
PHP was suggested but the ones who were adamant about CGI tossed that out
the window... I would rather have to struggle through learning PHP then to
use CGI!

Well, as I said, thank you thank you thank you... I will look at the site
you found on Google, and I will use everything you have all said to support
my argument. I just hope its an argument I can win, because I would love
this opportunity, but personally I don't think I would want to be part of a
team that would take an important project so lightly as to use whatever
technology they feel is 'easiest' and deliver that to the client.

Thanks and wish me luck :)
Denise   

P.S. As for my work project, things are running quite smoothly and we are
almost ready to go live - thank you to EVERYONE that helped me through all
the obstacles!!!

-Original Message-
From: Tom Sheehan
To: Tomcat Users List
Sent: 2/5/2003 9:36 PM
Subject: Re: [OT]JSP defense - can you point me in the right direction

Good answer.

Did anyone forward this to Denise, the original author of the question?

- Original Message -
From: Will Hartung [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, February 05, 2003 8:07 PM
Subject: Re: [OT]JSP defense - can you point me in the right direction



  From: Denise Mangano [EMAIL PROTECTED]
  Sent: Wednesday, February 05, 2003 5:16 PM
  Subject: [OT]JSP defense - can you point me in the right direction


  Seeing as how I am going to be doing the web dev part, while the
others
 deal
  with the complex database structure and project management tasks, I
am
  trying to sell them on using JSP/Tomcat.  They are insisting on
using
CGI
  scripts, which I personally feel is too fundamental for the task at
hand.

 Tell them that it's 2003 and not 1995. WebApps as a class of
applications
 have matured, and there are entire bookcases written on the topic at
your
 local Barnes and Nobles bookstore. I can't fathom anybody who wanted
any
web
 project of any moderate complexity doing it in straight CGI.

 This is not a CGI vs JSP topic, it's a CGI vs Modern WebApp Framework
topic.
 Whether it's JSP, PHP, ASP, or any of a plethora of other platforms.

 CGI is still quite valuable and viable for small utilities and what
not,
 particularly for the small web hosts that only allow CGI.

 But, if it's not a deployment requirement, then I'd run away screaming
and
 latch on to ANY of the modern web app architectures and just cling
tight
 screaming NO NO NO as they tried to peal it out of my clenched
fists.

 There are simply too many wheels to reinvent.

 JSPs are valuable because of the infrastructure that the Servlet
container
 provides. Portability across web servers, and platforms. Free
 authentication, Free session management, Free filtering, all
easily
 configurable with no code changes.

 I'm not going to go into the highs and lows of JSPs themselves. The
biggest
 advantage of JSPs, IMHO, are that they're Just Servlets. Servlets
rock, I
 think it's a great architecture that has tremendous potential, as
shown by
 the abundance of frameworks built on top of the basic functionality
that
 Servlets provide.

 With Servlets and JSPs, you can write the most horrible code on the
planet
 and be ridiculed by knowledgable coders world wide (even if your site
works
 fine for you), but you can also write some very elegant code. And the
best
 part, is that you can write crappy code on top of your elegant code
when
the
 time crunches hit.

 Anyway, it's the architecture that you get for Free that makes this
a
good
 platform choice. Add in the zillions of lines of 3rd party code out
there
 and I think it's one of the most flexible platforms for web
applications
on
 the market.

 Regards,

 Will Hartung
 ([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]

-
To unsubscribe, e

General Question about JSP Database

2003-02-03 Thread Denise Mangano
I have a general question about creating a website with JSP and wanting to
connect to a mySQL database to store form data.  

Which driver would I need to do this? If more than one option, which would
be the best choice?  Are these decisions affected by what Tomcat will or
will not allow?

Thanks!

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


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




RE: General Question about JSP Database

2003-02-03 Thread Denise Mangano
Thanks John!! I was just reading up on that driver, and though it is what I
need, but I just wanted to get an outside opinion :)

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 03, 2003 11:35 AM
To: 'Tomcat Users List'
Subject: RE: General Question about JSP  Database



Hi -

You'll want a JDBC Type 4 driver (Type 4 means 100% Java, not something like
an ODBC/JDBC bridge or hybrid).

For MySQL, you'll probably want to check out Connector/J:
http://www.mysql.com/products/connector-j/  This driver was previously
MM.MySQL, which was the typical open source driver used.

John

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 03, 2003 11:28 AM
 To: 'Tomcat Users List'
 Subject: General Question about JSP  Database
 
 
 I have a general question about creating a website with JSP
 and wanting to
 connect to a mySQL database to store form data.  
 
 Which driver would I need to do this? If more than one
 option, which would
 be the best choice?  Are these decisions affected by what 
 Tomcat will or
 will not allow?
 
 Thanks!
 
 Denise Mangano
 Help Desk Analyst
 Complus Data Innovations, 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: java.lang.NoClassDefFoundError: javax/servlet/Filter

2003-01-23 Thread Denise Mangano
According to your web.xml your TestFilter class is in a package
us.va.state.dcjs.server.  This package should exist in your
WEB-INF/classes directory of the appropriate webapp - so the full path to
TestFilter should be
$TOMCAT_HOME/yourWebapp/WEB-INF/classes/us/va/state/dcjs/server/ and in your
TestFilter you should have the statement package us.va.state.dcjs.server;

My apologies if you knew this already...

Also, have you tried to manually compile TestFilter.java to see if there are
no errors with the program?

HTH
Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Lorenti, John [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 23, 2003 7:51 AM
To: '[EMAIL PROTECTED]'
Subject: java.lang.NoClassDefFoundError: javax/servlet/Filter


Hello,

I'm trying to use Filters within Tomcat 4.1.12.  When I start Tomcat,
however, I get the following error message within the log the Filter
application pertains to:

2003-01-22 16:11:36 StandardContext[/ws]: Exception starting filter
TestFilter
java.lang.NoClassDefFoundError: javax/servlet/Filter
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1340)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1274)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
Config.java:252)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
terConfig.java:314)
at
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterCon
fig.java:120)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:31
39)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3528)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at
org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:271)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245
)
at
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)


Here is the web.xml file:
?xml version='1.0' encoding='ISO-8859-1'?
!DOCTYPE web-app PUBLIC
   -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
   

   web-app
  filter
 filter-nameTestFilter/filter-name
 filter-classus.va.state.dcjs.server.TestFilter/filter-class
 /filter

  filter-mapping
 filter-nameTestFilter/filter-name
 url-pattern/ws/TRex.jsp/url-pattern
 /filter-mapping

  servlet
 servlet-nameError/servlet-name

RE: Porblem editing httpd.conf

2003-01-23 Thread Denise Mangano
Oops!  I missed the apache version :) Thanks for pointing that out! 


Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 23, 2003 8:45 AM
To: 'Tomcat Users List'
Subject: RE: Porblem editing httpd.conf



True, but only with Apache 1.3.x.  With Apache 2, there's no need for
AddModule.

John


 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 22, 2003 11:53 PM
 To: 'Tomcat Users List'
 Subject: RE: Porblem editing httpd.conf
 
 
 Not sure if this was solved or not - haven't had time to
 follow the list
 today :(
 
 Phil, my apologies if you knew this already... I believe you
 need to add the
 AddModule directive in the appropriate place as well whenever 
 you add a
 LoadModule directive to the httpd.conf.  You can just add it 
 to the end of
 the AddModule list (should follow right after the LoadModule 
 list) - this
 should be:
 
 AddModule mod_jk202.0.43.c
 
 HTH
 Denise
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 22, 2003 2:09 PM
 To: 'Tomcat Users List'
 Subject: RE: Porblem editing httpd.conf
 
 
 
 
 Oops, you're right.  My bad.  Good eye.
 
 John
 
 
  -Original Message-
  From: Andy Eastham [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 22, 2003 1:58 PM
  To: Tomcat Users List
  Subject: RE: Porblem editing httpd.conf
  
  
  John,
  
  Do you not need to name it too, ie
  LoadModule jk2_module modules/mod_jk2-2.0.43.so
  
  Thats what's in my working set up anyway.
  
  Andy
  
   -Original Message-
   From: Turner, John [mailto:[EMAIL PROTECTED]]
   Sent: 22 January 2003 18:07
   To: 'Tomcat Users List'
   Subject: RE: Porblem editing httpd.conf
   
   
   
   Tell it where:
   
   LoadModule modules/mod_jk2-2.0.43.so
   
   John
   
   
-Original Message-
From: pcampaigne [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 1:03 PM
To: Tomcat Users List
Subject: Porblem editing httpd.conf


After I added the following line to httpd.conf, the httpd server 
vails to start: LoadModule mod_jk2-2.0.43.so

I get a syntax error at startup.
What am I doing wrong here.  I am trying to tell it to load the 
jk2 connector module. using tomcat4-4.1.18 and httpd 2.0.43
Thanks,
Phil

   
   --
   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]




RE: Porblem editing httpd.conf

2003-01-22 Thread Denise Mangano
Not sure if this was solved or not - haven't had time to follow the list
today :(

Phil, my apologies if you knew this already... I believe you need to add the
AddModule directive in the appropriate place as well whenever you add a
LoadModule directive to the httpd.conf.  You can just add it to the end of
the AddModule list (should follow right after the LoadModule list) - this
should be:

AddModule mod_jk202.0.43.c

HTH
Denise

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 22, 2003 2:09 PM
To: 'Tomcat Users List'
Subject: RE: Porblem editing httpd.conf




Oops, you're right.  My bad.  Good eye.

John


 -Original Message-
 From: Andy Eastham [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 22, 2003 1:58 PM
 To: Tomcat Users List
 Subject: RE: Porblem editing httpd.conf
 
 
 John,
 
 Do you not need to name it too, ie
 LoadModule jk2_module modules/mod_jk2-2.0.43.so
 
 Thats what's in my working set up anyway.
 
 Andy
 
  -Original Message-
  From: Turner, John [mailto:[EMAIL PROTECTED]]
  Sent: 22 January 2003 18:07
  To: 'Tomcat Users List'
  Subject: RE: Porblem editing httpd.conf
  
  
  
  Tell it where:
  
  LoadModule modules/mod_jk2-2.0.43.so
  
  John
  
  
   -Original Message-
   From: pcampaigne [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, January 22, 2003 1:03 PM
   To: Tomcat Users List
   Subject: Porblem editing httpd.conf
   
   
   After I added the following line to httpd.conf, the httpd
   server vails to start:
   LoadModule mod_jk2-2.0.43.so
   
   I get a syntax error at startup.
   What am I doing wrong here.  I am trying to tell it to load
   the jk2 connector module.
   using tomcat4-4.1.18 and httpd 2.0.43
   Thanks,
   Phil
   
  
  --
  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]




RE: [beginner question] reloading classes

2003-01-21 Thread Denise Mangano
Sorry to sneak the question into this post, but is stopping and starting the
service the only way to get the class reloaded?  For example, my java and
class files are in
TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/com/complusdata/beans/ and there is
nothing in here is nothing in TOMCAT_HOME/common/classes/ so I would imagine
the higher classloader scenario you gave wouldn't apply...

Why is it then that whenever I make a change to my java file and recompile,
I have to restart Tomcat in order for the changes to take effect.  Is there
a better way to do this?

Thanks :)

Denise 


-Original Message-
From: Jeremy Nix [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 21, 2003 12:53 PM
To: Tomcat Users List
Subject: RE: [beginner question] reloading classes


If you're stopping and starting tomcat and seeing that the change has not
been picked up, then you're experiencing a classloader issue where that
class is being picked up in a higher classloader before your version of that
class is.

For instance:
TOMCAT_HOME/webapps/your_app/WEB-INF/classes/com/example/MyClass.class
TOMCAT_HOME/common/classes/com/example/MyClass.class

The 2nd one would be loaded prior to first because it will be loaded in a
higher classloader.

As for the touching of the web.xml file to reload the class.  This only
works for classes loaded in the web application's classloader, and not for
classes loaded within tomcat's internal classloader.  I don't have the
specific Tomcat classloader hierarchy on hand, but I can tell you that a
change made outside the context of your app to a class loaded within
common/lib or server/lib requires a restart of Tomcat.

_
Jeremy Nix
Senior Application Developer
Southwest Financial



-Original Message-
From: Jacques Capesius [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 21, 2003 12:31 PM
To: 'Tomcat'
Subject: [beginner question] reloading classes


Hi folks,

I'm new to Tomcat, but not as new to J2EE. I have a jsp, and I made a change
to a class that's being loaded into it as a bean, but I can't get the page
to use the new class and not the old one. 

My question, thus, is: when I make changes to a class, how do I get Tomcat
to reload the class?

Restarting Tomcat doesn't seem to do the trick. 

Searching the web, I found a doc that made mention that touching the
web.xml file would force the reloading of the class. I tried that and it
didn't work.

I also read somewhere that going to the application (where the JSPs are) and
typing ANT would force the recompile of everything. Still, the old class is
being used.

I'm storing the class in %catalina_home%/classes/PSQ/. I'm loading it into
the jsp by means of the following line of code:

jsp:useBean id=psq class=PSQ.PSQ scope=session/

I've made sure there are no other versions of PSQ.class in any other places
it might be used, for example, the WEB-INF/classes directory.

Thanks for whatever advice you can give, and I apologize if this question
has been asked many times before. 

-jacques :)

Jacques Capesius
CNT Web Marketing Developer
[EMAIL PROTECTED]
(763) 268-6749

--
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: [beginner question] reloading classes

2003-01-21 Thread Denise Mangano
Sorry, posted spur of the moment before I even checked the docs... I will do
my homework :-P  Thanks!!

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Tolles, James [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 21, 2003 2:11 PM
To: 'Tomcat Users List'
Subject: RE: [beginner question] reloading classes


We use the little manager servlet/application. As I recall there is a
pretty good HowTo on it for Tomcat 4.

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 11:12 AM
To: 'Tomcat Users List'
Subject: RE: [beginner question] reloading classes


Sorry to sneak the question into this post, but is stopping and starting the
service the only way to get the class reloaded?  For example, my java and
class files are in
TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/com/complusdata/beans/ and there is
nothing in here is nothing in TOMCAT_HOME/common/classes/ so I would imagine
the higher classloader scenario you gave wouldn't apply...

Why is it then that whenever I make a change to my java file and recompile,
I have to restart Tomcat in order for the changes to take effect.  Is there
a better way to do this?

Thanks :)

Denise 


-Original Message-
From: Jeremy Nix [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 21, 2003 12:53 PM
To: Tomcat Users List
Subject: RE: [beginner question] reloading classes


If you're stopping and starting tomcat and seeing that the change has not
been picked up, then you're experiencing a classloader issue where that
class is being picked up in a higher classloader before your version of that
class is.

For instance:
TOMCAT_HOME/webapps/your_app/WEB-INF/classes/com/example/MyClass.class
TOMCAT_HOME/common/classes/com/example/MyClass.class

The 2nd one would be loaded prior to first because it will be loaded in a
higher classloader.

As for the touching of the web.xml file to reload the class.  This only
works for classes loaded in the web application's classloader, and not for
classes loaded within tomcat's internal classloader.  I don't have the
specific Tomcat classloader hierarchy on hand, but I can tell you that a
change made outside the context of your app to a class loaded within
common/lib or server/lib requires a restart of Tomcat.

_
Jeremy Nix
Senior Application Developer
Southwest Financial



-Original Message-
From: Jacques Capesius [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 21, 2003 12:31 PM
To: 'Tomcat'
Subject: [beginner question] reloading classes


Hi folks,

I'm new to Tomcat, but not as new to J2EE. I have a jsp, and I made a change
to a class that's being loaded into it as a bean, but I can't get the page
to use the new class and not the old one. 

My question, thus, is: when I make changes to a class, how do I get Tomcat
to reload the class?

Restarting Tomcat doesn't seem to do the trick. 

Searching the web, I found a doc that made mention that touching the
web.xml file would force the reloading of the class. I tried that and it
didn't work.

I also read somewhere that going to the application (where the JSPs are) and
typing ANT would force the recompile of everything. Still, the old class is
being used.

I'm storing the class in %catalina_home%/classes/PSQ/. I'm loading it into
the jsp by means of the following line of code:

jsp:useBean id=psq class=PSQ.PSQ scope=session/

I've made sure there are no other versions of PSQ.class in any other places
it might be used, for example, the WEB-INF/classes directory.

Thanks for whatever advice you can give, and I apologize if this question
has been asked many times before. 

-jacques :)

Jacques Capesius
CNT Web Marketing Developer
[EMAIL PROTECTED]
(763) 268-6749

--
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]




RE: Cannot run JSPs with Tomcat 4.0.6

2003-01-17 Thread Denise Mangano
Check in the lib directory... is there a jar file jasper-runtime.jar?  If
so, try putting this in your classpath as well as the jasper-compiler.jar
file.

HTH
Denise 

-Original Message-
From: Al Cam
To: [EMAIL PROTECTED]
Sent: 1/16/2003 10:33 AM
Subject: RE: Cannot run JSPs with Tomcat 4.0.6

I did so, but it's the same.

Now, I've been looking inside the jasper-compiler.jar, and cannot find
the 
JspRuntimeContext.class

Is there some other version of jasper? or the problem is other stuff?


From: Turner, John [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Cannot run JSPs with Tomcat 4.0.6
Date: Thu, 16 Jan 2003 09:54:33 -0500


Try putting the JAR in $CATALINA_HOME/common/lib, it might even be
there
already.  Tomcat doesn't do much with CLASSPATH.

John

  -Original Message-
  From: Al Cam [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 16, 2003 9:41 AM
  To: [EMAIL PROTECTED]
  Subject: Cannot run JSPs with Tomcat 4.0.6
 
 
  Hi everyone!
 
  I installed the Tomcat 4.0.6 on my Unix Server, with J2SE
  1.3.0. My servlets
  works fine (with JDBC connection). But with JSPs the server
  sends me the
  error shown lines below.
 
  I have the jasper_compiler.jar on my CLASSPATH, but that doesn't
work.
 
  Any ideas?
 
  ==
 
  javax.servlet.ServletException: Servlet.init() for servlet jsp threw
  exception
  at
  org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
  rapper.java,
  Compiled Code)
  at
  org.apache.catalina.core.StandardWrapper.allocate(StandardWrap
  per.java,
  Compiled Code)
  at
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
  rapperValve.java,
  Compiled Code)
  at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java,
  Compiled Code)
  at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:472)
  at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
  Compiled Code)
  at
  org.apache.catalina.core.StandardContextValve.invoke(StandardC
  ontextValve.java,
  Compiled Code)
  at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java,
  Compiled Code)
  at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:472)
  at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
  Compiled Code)
  at
  org.apache.catalina.core.StandardContext.invoke(StandardContex
  t.java:2347)
  at
  org.apache.catalina.core.StandardHostValve.invoke(StandardHost
  Valve.java,
  Compiled Code)
  at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java,
  Compiled Code)
  at
  org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
  spatcherValve.java:170)
  at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java,
  Compiled Code)
  at
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
  Valve.java,
  Compiled Code)
  at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java,
  Compiled Code)
  at
 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java,
  Compiled Code)
  at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java,
  Compiled Code)
  at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:472)
  at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
  Compiled Code)
  at
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
  gineValve.java,
  Compiled Code)
  at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java,
  Compiled Code)
  at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:472)
  at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
  Compiled Code)
  at
  org.apache.catalina.connector.http.HttpProcessor.process(HttpP
  rocessor.java,
  Compiled Code)
  at
  org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
  ssor.java:1125)
  at java.lang.Thread.run(Thread.java:484)
 
 
  root cause
 
  java.lang.NoClassDefFoundError:
  org/apache/jasper/compiler/JspRuntimeContext
  at
  org.apache.jasper.servlet.JspServlet.init(JspServlet.java, Compiled
  Code)
  at
  org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
  rapper.java,
  Compiled Code)
  at
  org.apache.catalina.core.StandardWrapper.allocate(StandardWrap
  per.java,
  Compiled Code)
  at
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
  rapperValve.java,
  Compiled Code)
  at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java,
  Compiled Code)
  at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:472)
  at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
  Compiled 

RE: servlet with Tomcat

2003-01-15 Thread Denise Mangano
Thanks for pointing that out Jeff - typo on my part :)  Has he really been
trying this for a year?? 

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 14, 2003 5:10 PM
To: Tomcat Users List
Subject: RE: servlet with Tomcat


These are extremely clear and detailed instructions - nice, Denise... 
Hopefully, this will help Steve emerge victorious from his year-long 
battle against Tomcat.  One thing though I wanted to point out is that the 
servlet-name values should match, so use the same thing (greeting, 
Startup, or whatever) in both places.  Then, just to clarify even 
further, the URL that should get you to your servlet would be 
http://localhost:8080/greeting/GreetingServlet.  Like Noel said, though, 
if you can't get the examples to work, then you are getting ahead of 
yourself by trying to get your own servlet to work.  First get Tomcat to 
work out of the box, then dive into your own stuff.

Go for it, Steve!!! 





Denise Mangano [EMAIL PROTECTED]
01/14/03 03:50 PM
Please respond to Tomcat Users List

 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: servlet with Tomcat


Perhaps if you posted your specific problem minus the rants and nasty
remarks, people on the list would be a little more inclined to assist you.

Now I don't recall your exact situation because to be honest I have simply
deleted most of the emails you send because the have not made much sense,
and your tone for the most part annoyed me.  So this is probably a little
outdated.  You also may want verification on what I'm about to write 
because
I am a newbie too (and when seek it, let me suggest you be more polite in
asking).

The only post of yours that I actually didn't delete contained the 
following
information:

You stated that you have your servlet in a package org.burrus.So 
this
means the path for the GreetingServlet.class should be
C:\jakarta-tomcat-4.1.16\webapps\greeting\WEB-INF\classes\org\burrus\
(notice the WEB-INF is all upper case) And in your GreetingServlet.java 
you
have package org.burrus; (without the quote marks of course) at the
beginning of the file.

In that email, you posted your web-xml and it looked like this:

web-app
  servlet
!-- Servlet alias --
servlet-namegreeting/servlet-name

!-- Fully qualified Servlet class --
servlet-classGreetingServlet/servlet-class
   /servlet
  servlet-mappinggreeting/servlet-mapping

/web-app

From what I understand this is incorrect.  Since you say you are using a
package - once you check what I stated above about the package, your 
web.xml
should be:

web-app
   servlet
  servlet-namegreeting/servlet-name
  servlet-classorg.burrus.GreetingServlet/servlet-class
   /servlet
 
  servlet-mapping
   servlet-nameStartup/servlet-name
   url-pattern/GreetingServlet/url-pattern
   /servlet-mapping
/webapp


Like I said, you probably want verification on this, but I don't know how
you will get it if you don't learn how to ask a question. 

Good luck.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Steve R Burrus [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 14, 2003 4:10 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: servlet with Tomcat


 No, I am very definitely NOT a newbie to manners, whoever you are!! 
Are
you a newbie to tomcat or a newbie to manners, Steve? I just simply 
wanted
for someone to tell me how exactly I go about editing the web.xml file so 
I
can then see/view a servlet in my browser! If that offends anyone (and I
don't see how it possibly could), then I am sorry!! 

__
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

--
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: Tomcat 4.1.19 Alpha released

2003-01-15 Thread Denise Mangano
Would you (or anyone) know what SSL related bug was fixed in Tomcat 4.1.19?
I have an error in catalina.out SEVERE: Error in action code
java.lang.NullPointerException  at
org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:386)

I was told this was harmless and that it was an issue with the absence of a
client side cert - I checked bugzilla and it stated this bug should be fixed
in v4.1.18 but someone had the same error message and they were running
4.1.18.  Just curious...

Thanks :)

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 15, 2003 8:57 AM
To: Tomcat Users List; Tomcat Developers List
Subject: Tomcat 4.1.19 Alpha released


Tomcat 4.1.19 Alpha is now available for testing.

Changes over Tomcat 4.1.18 include:
- Refactored manager and deployer
- Fix for a SSL related bug
- Jasper will now launch javac in a separate JVM, in order to avoid 
problems such as memory leaks and file locking
- New printer frindly documentation
- Support for HTTP/1.1 compression in order to save bandwidth
- Fix for HTTP/1.0 keep alive support (now compatible with ab which 
should generate more accurate benchmark results)
- More robust server socket restart code in the event of a critical failure
- Fix administration webapp commit changes

The release notes include the full list of changes.

Downloads:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.19-alpha/

Remy


--
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: mod_jk apache2 tomcat4.1.8

2003-01-15 Thread Denise Mangano
There is no error message included :)

Denise


-Original Message-
From: Bill [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 15, 2003 10:35 AM
To: tomcat user
Subject: mod_jk apache2 tomcat4.1.8


I'm still having problems using mod_jk with Apache2.  The unable to open
config error seems to have gone away, the incomplete read errors are still
there.  I started fresh on a new box so I'll re-submit the relevant info:

##http.conf##
 
LoadModule  jk_module   modules/mod_jk.so
JkWorkersFile   /usr/local/tomcat/conf/jk/workers.properties
JkLogFile   /usr/local/apache2/logs/mod_jk.log
JkLogLevel  error
JkLogStampFormat[%a %b %d %H: %M: %S: %Y] 


Include /usr/local/tomcat/conf/auto/mod_jk.conf

##mod_jk.conf

VirtualHost 192.168.1.13
ServerName 192.168.1.13

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /webdav ajp13
JkMount /webdav/* ajp13

JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13

JkMount /admin ajp13
JkMount /admin/* ajp13

JkMount /cores ajp13
JkMount /cores/* ajp13

JkMount /mrccores ajp13
JkMount /mrccores/* ajp13
/VirtualHost

##workers.properties##

workers.list=ajp13
worker.ajp13.type=ajp13
worker.ajp13.host=192.168.1.13
worker.ajp13.port=8009

worker.ajp13.cachesize=10
worker.ajp13.cache_timeout=600
worker.ajp13.socket_keepalive=1
worker.ajp13.socket_timeout=300

##server.xml##
Server port=8005 shutdown=SHUTDOWN debug=0

  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
 ResourceParams name=UserDatabase
  parameter
namefactory/name
   
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

Service name=Tomcat-Apache

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
acceptCount=10 debug=0/
Engine name=Apache defaultHost=192.168.1.13 appBase=webapps
   debug=0

  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

  Realm className=org.apache.catalina.realm.MemoryRealm /
  Host name=192.168.1.13 debug=0 appBase=webapps
unpackWARs=true
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true /
Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs prefix=host_access_log. suffix=.txt
pattern=common /
Context path= docBase=ROOT reloadable=true debug=0/

Context path=/cores docBase=mrccores reloadable=true
debug=0/
/Host
/Engine

  /Service

/Server

The only error I'm getting is this in :




--
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: mod_jk apache2 tomcat4.1.8

2003-01-15 Thread Denise Mangano
Not sure if this is related to your problem since 1) I am a newbie and 2) I
didn't see any error message included, but shouldn't the first line of your
workers.properties file look like:

worker.list=ajp13 

not 

workers.list=ajp13 

??

(Just taking a guess but I compared it to mine).

HTH

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Bill [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 15, 2003 10:35 AM
To: tomcat user
Subject: mod_jk apache2 tomcat4.1.8


I'm still having problems using mod_jk with Apache2.  The unable to open
config error seems to have gone away, the incomplete read errors are still
there.  I started fresh on a new box so I'll re-submit the relevant info:

##http.conf##
 
LoadModule  jk_module   modules/mod_jk.so
JkWorkersFile   /usr/local/tomcat/conf/jk/workers.properties
JkLogFile   /usr/local/apache2/logs/mod_jk.log
JkLogLevel  error
JkLogStampFormat[%a %b %d %H: %M: %S: %Y] 


Include /usr/local/tomcat/conf/auto/mod_jk.conf

##mod_jk.conf

VirtualHost 192.168.1.13
ServerName 192.168.1.13

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /webdav ajp13
JkMount /webdav/* ajp13

JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13

JkMount /admin ajp13
JkMount /admin/* ajp13

JkMount /cores ajp13
JkMount /cores/* ajp13

JkMount /mrccores ajp13
JkMount /mrccores/* ajp13
/VirtualHost

##workers.properties##

workers.list=ajp13
worker.ajp13.type=ajp13
worker.ajp13.host=192.168.1.13
worker.ajp13.port=8009

worker.ajp13.cachesize=10
worker.ajp13.cache_timeout=600
worker.ajp13.socket_keepalive=1
worker.ajp13.socket_timeout=300

##server.xml##
Server port=8005 shutdown=SHUTDOWN debug=0

  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
 ResourceParams name=UserDatabase
  parameter
namefactory/name
   
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

Service name=Tomcat-Apache

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
acceptCount=10 debug=0/
Engine name=Apache defaultHost=192.168.1.13 appBase=webapps
   debug=0

  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

  Realm className=org.apache.catalina.realm.MemoryRealm /
  Host name=192.168.1.13 debug=0 appBase=webapps
unpackWARs=true
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true /
Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs prefix=host_access_log. suffix=.txt
pattern=common /
Context path= docBase=ROOT reloadable=true debug=0/

Context path=/cores docBase=mrccores reloadable=true
debug=0/
/Host
/Engine

  /Service

/Server

The only error I'm getting is this in :




--
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]




  1   2   3   >