RE: How to write a servlet that handle request for .xml documents

2002-09-27 Thread Aaron Chan

Hi, thanks for ur reply. I already know how to write basic servlet, just
that I am not sure when the tomcat redirect the request of .xml file to
the servlet, which method inside the servlet gets to handle it? doGet or
doPost? I even tried service() but can't do it. Also how can I get the
requested file names?

Thanks in advance

Btw.. I agree that it is a good book I have it here :)

-Original Message-
From: Andreas Probst [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 2:22 PM
To: Tomcat Users List
Subject: Re: How to write a servlet that handle request for .xml
documents

 Hi, I have setup the web.xml to direct request to .xml to my servlet
 
 However, I do not know how to write the servlet inorder to have it
 perform jobs I want it to do. Anyone know of any guides on writing it
or
 know how to write it? Thanks in advance.

The sun site has a tutorial. Search www.javasoft.com.

O'Reilly's Java Servlet Programming is a good book on Java 
servlets.

Andreas


--
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: Inquiries...

2002-09-27 Thread Kwok Peng Tuck

You need some text editor to write your jsp(s),
A jdbc driver for your db of choice.
And some patience.


Glinn Cortez wrote:

Hi, I'm new in using Tomcat 4.0. I have installed Tomcat in my PC. I
have also already installed JDK in my PC. What are things I need for me
to start using Tomcat by running .jsp files? What are some database
server that are compatible with Tomcat.

Please help me sort out these things. Thank you very much.


Regards, 
Glinn
  



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




AW: How to write a servlet that handle request for .xml documents

2002-09-27 Thread Ralph Einfeldt

Wether doGet() or doPost() is called depends on the kind 
of request that is sent to tomcat, not on the file type.

If tomcat receives a GET-request doGet() is called, if 
tomcat receives a POST-request doPost() is called.

If the client is a browser, all href, src attributes and
forms with method=get are GET-requests. Only forms with
method=post are POST-request.

Other clients can choose arbitrary methods to do requests.

This is basic knowledge before you even can start to write 
servlets and this list isn't the platform for this kind of
questions.

 -Ursprüngliche Nachricht-
 Von: Aaron Chan [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 27. September 2002 08:34
 An: 'Tomcat Users List'
 Betreff: RE: How to write a servlet that handle request for .xml
 documents
 
 
 Hi, thanks for ur reply. I already know how to write basic 
 servlet, just that I am not sure when the tomcat redirect 
 the request of .xml file to the servlet, which method inside 
 the servlet gets to handle it? doGet or doPost? I even tried 
 service() but can't do it. Also how can I get the requested 
 file names?

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




RE: How to write a servlet that handle request for .xml documents

2002-09-27 Thread Nicholas Orr

Hi,

What exactly are you trying to do??

Nicholas Orr

-Original Message-
From: Aaron Chan [mailto:[EMAIL PROTECTED]] 
Sent: Friday, 27 September 2002 4:34 PM
To: 'Tomcat Users List'
Subject: RE: How to write a servlet that handle request for .xml documents


Hi, thanks for ur reply. I already know how to write basic servlet, just
that I am not sure when the tomcat redirect the request of .xml file to the
servlet, which method inside the servlet gets to handle it? doGet or doPost?
I even tried service() but can't do it. Also how can I get the requested
file names?

Thanks in advance

Btw.. I agree that it is a good book I have it here :)

-Original Message-
From: Andreas Probst [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 2:22 PM
To: Tomcat Users List
Subject: Re: How to write a servlet that handle request for .xml documents

 Hi, I have setup the web.xml to direct request to .xml to my servlet
 
 However, I do not know how to write the servlet inorder to have it 
 perform jobs I want it to do. Anyone know of any guides on writing it
or
 know how to write it? Thanks in advance.

The sun site has a tutorial. Search www.javasoft.com.

O'Reilly's Java Servlet Programming is a good book on Java 
servlets.

Andreas


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


**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**


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




Re: Debugging servlets !!!

2002-09-27 Thread Toni . Kielo


On 2002-09-27 Mohan,Gautam  wrote:
 Hi ,

    normally if any java program has to be debugged we use options
java -Xdebug -Xnoagent
 -Xrunjdwp:transport=dt_socket,address=,server=y,suspend=y HelloWorld

 and then if using JBuilder we can attach to the program at port  and
start debugging or with
 jdb we use jdb -attach hostname:port .

 But for servlet debugging how to go about doing the same.

Hi.

I've never done this, so im not 100% sure, but this should work according
to docs.

Modify catalina.sh-script so that CATALINA_OPTS-parameters value is  the
options you use normally (-Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,address=,server=y,suspend=y), except add
-Djava.compiler=NONE to it.

Debugging servlets is propably a little different then normal java apps.
Docs say that

   1.  Set one or more breakpoints in your servlet code.
   2.  From the Run menu, select Debug servletname.java.
   3.  Start the servlet running (for example, start your web browser
 and open a connection to the servlet).
   4.  Debug as normal.

If your using Oracle's JDeveloper you should propably use JDevelopers
servler.jar instead of tomcats. Don't know about JBuilder.

-
Toni Kielo
Ineo Oy
-


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




Re: how to integrate tomcat with apache

2002-09-27 Thread Raj Saini

It looks your host is not a public one. Your URLs are not accessible. Try if
you can access your host from out of your local network.

How are you integrating with Apache? Are you using AJP connector or Warp
conenctor or proxy? Post the complete information for people to help you.

Raj Saini
- Original Message -
From: micael [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 27, 2002 7:01 AM
Subject: RE: how to integrate tomcat with apache


 Tried to help, but discovered neither url worked.


 At 12:53 AM 9/27/2002 -0500, you wrote:
 On Thu, 26 Sep 2002, Anup Ray wrote:
 
   I did not get any response. so I am reposting it. Please help me:
   Anup
   I am a newbie in tomcat. I installed tomcat in Solaris and configured
it at
   port 8090. Now I want to integrate it with apache ssl web server
working
   with port 443 in the same server and get  a spellcheck application
working.
   Now with tomcat spellcheck is working as you see here:
   http://u10-3:8090/jspellhtml/test.html.org---click spellcheck
  
   But when it is accessed via apache  spellcheck does not work as you
see
   here:
   https://u10-3/jspellhtml/test.html.org  --click spellcheck
  
   It is giving error: 405 Method not allowed.
  
   Could any body help me out.
   Thanks,
   anup ray
 
 Well, I didn't respond to your post because you gave us basically no
 information to go on.  That's now the way to go if you'd like people
 to try to help you.  As a first measure, I suggest you check the list
 archives for similar problems, and see what kinds of things have
 helped in those situations, including what information you need to
 provide so people can help troubleshoot it.
 
 Milt Epstein
 Research Programmer
 Integration and Software Engineering (ISE)
 Campus Information Technologies and Educational Services (CITES)
 University of Illinois at Urbana-Champaign (UIUC)
 [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: How to write a servlet that handle request for .xml documents

2002-09-27 Thread Aaron Chan

I totally understand the diff between get n post. 
The purpose of me posting is to ask about the way to implement a servlet
to handle certain file type. What I am more interested to know is how
can the servlet know what to do when a request to abc.xml is pass to it.
Not whats the different between get and post etc. Please read before
replying or don't reply if you don’t' intend to. I don't call myself an
expert, but I certainly know what I can or cannot ask here. Thanks for
your rude reply.


-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 2:55 PM
To: Tomcat Users List
Subject: AW: How to write a servlet that handle request for .xml
documents

Wether doGet() or doPost() is called depends on the kind 
of request that is sent to tomcat, not on the file type.

If tomcat receives a GET-request doGet() is called, if 
tomcat receives a POST-request doPost() is called.

If the client is a browser, all href, src attributes and
forms with method=get are GET-requests. Only forms with
method=post are POST-request.

Other clients can choose arbitrary methods to do requests.

This is basic knowledge before you even can start to write 
servlets and this list isn't the platform for this kind of
questions.

 -Ursprüngliche Nachricht-
 Von: Aaron Chan [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 27. September 2002 08:34
 An: 'Tomcat Users List'
 Betreff: RE: How to write a servlet that handle request for .xml
 documents
 
 
 Hi, thanks for ur reply. I already know how to write basic 
 servlet, just that I am not sure when the tomcat redirect 
 the request of .xml file to the servlet, which method inside 
 the servlet gets to handle it? doGet or doPost? I even tried 
 service() but can't do it. Also how can I get the requested 
 file names?

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




AW: Inquiries...

2002-09-27 Thread Lorenz Beyeler

Also, some of those links might be of help:

Tomcat installation and software development:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html

JSP tutorial:
http://www.jsptut.com/Index.html#contents

JDBC driver database:
http://industry.java.sun.com/products/jdbc/drivers

Tomcat howto:
http://kevinj.develop.com/javahome/javatomcat.jsp

JSP FAQ:
http://www.jguru.com/faq/JSP

Regards,
Lorenz


 -Ursprüngliche Nachricht-
 Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 27. September 2002 08:56
 An: Tomcat Users List
 Betreff: Re: Inquiries...
 
 
 You need some text editor to write your jsp(s),
 A jdbc driver for your db of choice.
 And some patience.
 
 
 Glinn Cortez wrote:
 
 Hi, I'm new in using Tomcat 4.0. I have installed Tomcat in my PC. I
 have also already installed JDK in my PC. What are things I 
 need for me
 to start using Tomcat by running .jsp files? What are some database
 server that are compatible with Tomcat.
 
 Please help me sort out these things. Thank you very much.
 
 
 Regards, 
 Glinn
   
 
 -
 ---
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




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

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




RE: How to write a servlet that handle request for .xml documents

2002-09-27 Thread Aaron Chan

Hi,

I am trying to have all the request to .xml documents to be pass to a
servlet, so that I can dynamically change the documents before sending
it back to the client. Thanks.


-Original Message-
From: Nicholas Orr [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 2:55 PM
To: 'Tomcat Users List'
Subject: RE: How to write a servlet that handle request for .xml
documents

Hi,

What exactly are you trying to do??

Nicholas Orr

-Original Message-
From: Aaron Chan [mailto:[EMAIL PROTECTED]] 
Sent: Friday, 27 September 2002 4:34 PM
To: 'Tomcat Users List'
Subject: RE: How to write a servlet that handle request for .xml
documents


Hi, thanks for ur reply. I already know how to write basic servlet, just
that I am not sure when the tomcat redirect the request of .xml file to
the
servlet, which method inside the servlet gets to handle it? doGet or
doPost?
I even tried service() but can't do it. Also how can I get the requested
file names?

Thanks in advance

Btw.. I agree that it is a good book I have it here :)

-Original Message-
From: Andreas Probst [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 2:22 PM
To: Tomcat Users List
Subject: Re: How to write a servlet that handle request for .xml
documents

 Hi, I have setup the web.xml to direct request to .xml to my servlet
 
 However, I do not know how to write the servlet inorder to have it 
 perform jobs I want it to do. Anyone know of any guides on writing it
or
 know how to write it? Thanks in advance.

The sun site has a tutorial. Search www.javasoft.com.

O'Reilly's Java Servlet Programming is a good book on Java 
servlets.

Andreas


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


**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**


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




BasicDataSourceFactory and validationQuery parameter

2002-09-27 Thread Horn, Rob
Title: BasicDataSourceFactory and validationQuery parameter





Has anyone used (successfully) the validationQuery parameter specifiable in server.xml for a JNDI datasource.


--- background ---
When specifying a JNDI datasource resource a parameter exists -
validationQuery - that can be used to validate a connection before returning
it to the client. - sounds useful !

Is this implemented? I have set up a connection pool with this parameter
set and all runs fine. If I pull out the wire between Tomcat and the
database (or terminate the listeners) I would expect that the validation query should fail, and some
error get thrown. This does not seem to be the case. Instead an
SQLException: socket connect failure (or something like that) is thrown when
trying to use the connection returned from the pool.

This rather extreme example raises another interesting (well I think so)
question: If all of the connections in the pool are now broken - i.e. have
had the socket reset - is it possible to refresh all of the pooled
connections.

What seems to be happening is that connections are returned and invalidated
by the error until all broken connection are exhausted - then new ones are
being created.

Any thoughts would be appreciated


Rob


Rob Horn
Systems Engineer

Mobile :  07808 822 922 [723 2922 (mobex)] 




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


AW: How to write a servlet that handle request for .xml documents

2002-09-27 Thread Ralph Einfeldt

My post is a direct answer to your question:

 I am not sure when the tomcat redirect the 
 request of .xml file to the servlet, which method inside 
 the servlet gets to handle it? doGet or doPost?

That was for me a clear indicator that you didn't
understand how get/put work. (Why would you ask this
question otherwise)

 -Ursprüngliche Nachricht-
 Von: Aaron Chan [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 27. September 2002 09:26
 An: 'Tomcat Users List'
 Betreff: RE: How to write a servlet that handle request for .xml
 documents
 
snip/ 
 I totally understand the diff between get n post. 
 The purpose of me posting is to ask about the way to 
snip/
 Not whats the different between get and post etc.
 Please read before replying
 
 -Original Message-
 From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, September 27, 2002 2:55 PM
 To: Tomcat Users List
 Subject: AW: How to write a servlet that handle request for .xml
 documents
 
 Wether doGet() or doPost() is called depends on the kind 
 of request that is sent to tomcat, not on the file type.
 

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




RE: How to write a servlet that handle request for .xml documents

2002-09-27 Thread Aaron Chan

What I am not sure of is how the servlet handle request by tomcat after
it encounter a request for a .xml. The servlet is running as a handler
servlet for .xml. I want to know is there a diff between writing this
type of servlet. 

If you really intend to help me, I am thankful for your effort. But if
you are trying to show off your superiority here by replying me with
this

This is basic knowledge before you even can start to write 
servlets and this list isn't the platform for this kind of questions.

Thanks a lot then, I don't really need your help.

And by the way, I didn't know that Tomcat User list is actually Tomcat
EXPERT user list... is that defined by you?

Thank you.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 3:40 PM
To: Tomcat Users List
Subject: AW: How to write a servlet that handle request for .xml
documents

My post is a direct answer to your question:

 I am not sure when the tomcat redirect the 
 request of .xml file to the servlet, which method inside 
 the servlet gets to handle it? doGet or doPost?

That was for me a clear indicator that you didn't
understand how get/put work. (Why would you ask this
question otherwise)

 -Ursprüngliche Nachricht-
 Von: Aaron Chan [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 27. September 2002 09:26
 An: 'Tomcat Users List'
 Betreff: RE: How to write a servlet that handle request for .xml
 documents
 
snip/ 
 I totally understand the diff between get n post. 
 The purpose of me posting is to ask about the way to 
snip/
 Not whats the different between get and post etc.
 Please read before replying
 
 -Original Message-
 From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, September 27, 2002 2:55 PM
 To: Tomcat Users List
 Subject: AW: How to write a servlet that handle request for .xml
 documents
 
 Wether doGet() or doPost() is called depends on the kind 
 of request that is sent to tomcat, not on the file type.
 

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




Appache v2.0.40 + Tomcat 4.1.x + Connectors

2002-09-27 Thread Steltner, Jörn HTC/DE/ESS

Hallo,

I installed the Apache and Tomcat from source. Both are running well. I
compiled the jk2 connectors and made the configuration. Apache is loading
the module, but couldn't find the jk-worker. The Tomcat installation gets an
error in the Log-File. It seems that Apache can no find the Tomcat
process

I need some help.

Regards
Joern


Part I: mod_jk.log

[Fri Sep 27 09:35:26 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/jsp/source.jsp'
[Fri Sep 27 09:35:26 2002]  [jk_uri_worker_map.c (558)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp
[Fri Sep 27 09:35:26 2002]  [mod_jk.c (1277)]: Into handler r-proxyreq=0
r-handler=jakarta-servlet r-notes=135575144 worker=ajp13
[Fri Sep 27 09:35:26 2002]  [jk_worker.c (132)]: Into wc_get_worker_for_name
ajp13
[Fri Sep 27 09:35:26 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done did not found a worker

Part II: catalina.out

Starting service Tomcat-Standalone
Apache Tomcat/4.1.10
[ERROR] JkMain - -No class name for request  request 
[INFO] JkMain - -APR not loaded, disabling jni components:
java.io.IOException: /opt/jakarta/lib/libjkjni.so: libapr.so.0: cannot open
shared object file: No such file or directory
[INFO] ChannelSocket - -JK2: ajp13 listening on tcp port 8009
[INFO] ChannelUn - -No file, disabling unix channel
[INFO] JkMain - -Jk running ID=0 time=1/75
config=/opt/jakarta/conf/jk2.properties

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




RE: Tomcat 4.1.12: access log corrupted

2002-09-27 Thread gabriele . garuglieri

Well, i rechecked all twice, i't a new fresh install.
The only old thing is the app context, that is not embedded into server.xml
but as a standalone file.
I still had a doubt about the jk module that was compiled for 4.1.10, but i
downloaded 4.1.12 connectors and recompiled them.
I tested both jk and jk2 with ajp3 connector with same results.
Also the application was recompiled against 4.1.12.
If nobody has any other hint, i'll open a bug.

BTW, sorry i posted the initial message both to user and dev lists breaking
the rules. I just changed my mind on where to send it, but hit the send
button too fast.

Regards,  Gabriele


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




default encoding problems

2002-09-27 Thread tomcat

I need to display Thai language (TIS-620) on Browser.
But I can't set this encoding to default when user open my web page.
user must select IE-menu--View--Encoding--Thai(Windows)) every time.

My environment is Redhat 7.3 + Tomcat 4.1 + struts 1.1

My jsp code is

%@ page import=messages.* %
%@ page import=java.util.* %

%@ page contentType=text/html; charset=TIS620 %
html
head
titleHome :: PeTerPan/title
meta http-equiv=Content-Type content=text/html; charset=windows-874
/head
body bgcolor=#FF 
 %=messages.getValue(1)%
% System.out.println(comm.getValue(1)); %
/body
/html

thank you

Apirak Panatkool


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




RE: How to write a servlet that handle request for .xml documents

2002-09-27 Thread Nicholas Orr

So, if I am understanding right, what you want to do is:-
1. Client calls http://localhost:8080/home.jsp and there html code in there:
a href=/file.xmla xml file/a
2. Client then calls http://localhost:8080/file.xml and you want to
intercept this and redirect to a servlet
http://localhost:8080/servlet/myServlet (which you have done?)
3. Now this is where you are stuck?? How do I know that file.xml has been
redirected?
4. Do stuff and return file.xml.

Is this right? Well if it is, back in step one you can have the link specify
a href=/servlet/myServlet?xmlFile=/file.xmla xml file/a. But if you
just want to be able to type in http://localhost:8080/file.xml and do you
what you want, then you need to find out where you have come from, (been
redirected from), you might be able to use 'request.getRequestURL()' this
would only work however, if tomcat redirects without sending a proper
'response.sendRedirect()'.

Other than that I don't know of a way to do what you want, hope this all
helps somehow.

Nicholas Orr

-Original Message-
From: Aaron Chan [mailto:[EMAIL PROTECTED]] 
Sent: Friday, 27 September 2002 5:27 PM
To: 'Tomcat Users List'
Subject: RE: How to write a servlet that handle request for .xml documents


Hi,

I am trying to have all the request to .xml documents to be pass to a
servlet, so that I can dynamically change the documents before sending it
back to the client. Thanks.


-Original Message-
From: Nicholas Orr [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 2:55 PM
To: 'Tomcat Users List'
Subject: RE: How to write a servlet that handle request for .xml documents

Hi,

What exactly are you trying to do??

Nicholas Orr

-Original Message-
From: Aaron Chan [mailto:[EMAIL PROTECTED]] 
Sent: Friday, 27 September 2002 4:34 PM
To: 'Tomcat Users List'
Subject: RE: How to write a servlet that handle request for .xml documents


Hi, thanks for ur reply. I already know how to write basic servlet, just
that I am not sure when the tomcat redirect the request of .xml file to the
servlet, which method inside the servlet gets to handle it? doGet or doPost?
I even tried service() but can't do it. Also how can I get the requested
file names?

Thanks in advance

Btw.. I agree that it is a good book I have it here :)

-Original Message-
From: Andreas Probst [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 2:22 PM
To: Tomcat Users List
Subject: Re: How to write a servlet that handle request for .xml documents

 Hi, I have setup the web.xml to direct request to .xml to my servlet
 
 However, I do not know how to write the servlet inorder to have it
 perform jobs I want it to do. Anyone know of any guides on writing it
or
 know how to write it? Thanks in advance.

The sun site has a tutorial. Search www.javasoft.com.

O'Reilly's Java Servlet Programming is a good book on Java 
servlets.

Andreas


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


**
The information contained in this e-mail is confidential and is intended
only for the use of the addressee(s). If you receive this e-mail in error,
any use, distribution or copying of this e-mail is not permitted. You are
requested to forward unwanted e-mail and address any problems to the MIM
Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**


--
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: AW: Inquiries...

2002-09-27 Thread Glinn Cortez

thank you for all the help. 

after installing the driver, where should my .jsp files be stored and
should be my prefix address when running the jsp file, e.g. http://


r/gli




Lorenz Beyeler wrote:
 
 Also, some of those links might be of help:
 
 Tomcat installation and software development:
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html
 
 JSP tutorial:
 http://www.jsptut.com/Index.html#contents
 
 JDBC driver database:
 http://industry.java.sun.com/products/jdbc/drivers
 
 Tomcat howto:
 http://kevinj.develop.com/javahome/javatomcat.jsp
 
 JSP FAQ:
 http://www.jguru.com/faq/JSP
 
 Regards,
 Lorenz
 
  -Ursprüngliche Nachricht-
  Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
  Gesendet: Freitag, 27. September 2002 08:56
  An: Tomcat Users List
  Betreff: Re: Inquiries...
 
 
  You need some text editor to write your jsp(s),
  A jdbc driver for your db of choice.
  And some patience.
 
 
  Glinn Cortez wrote:
 
  Hi, I'm new in using Tomcat 4.0. I have installed Tomcat in my PC. I
  have also already installed JDK in my PC. What are things I
  need for me
  to start using Tomcat by running .jsp files? What are some database
  server that are compatible with Tomcat.
  
  Please help me sort out these things. Thank you very much.
  
  
  Regards,
  Glinn
  
  
  -
  ---
  
  --
  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: AW: Inquiries...

2002-09-27 Thread Glinn Cortez

by the way, when i'm trying to install Atinav Access Driver, the
installation is asking for a disk and then when i click OK it says
Cannot find file '...\Atinav Access Driver\Server Component\Trial
Atinav Access2000 Component for NT\Atinav~1.CAB. Please insert disk '1'.

why is this so?...i need help on this please...


r/gli


Lorenz Beyeler wrote:
 
 Also, some of those links might be of help:
 
 Tomcat installation and software development:
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html
 
 JSP tutorial:
 http://www.jsptut.com/Index.html#contents
 
 JDBC driver database:
 http://industry.java.sun.com/products/jdbc/drivers
 
 Tomcat howto:
 http://kevinj.develop.com/javahome/javatomcat.jsp
 
 JSP FAQ:
 http://www.jguru.com/faq/JSP
 
 Regards,
 Lorenz
 
  -Ursprüngliche Nachricht-
  Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
  Gesendet: Freitag, 27. September 2002 08:56
  An: Tomcat Users List
  Betreff: Re: Inquiries...
 
 
  You need some text editor to write your jsp(s),
  A jdbc driver for your db of choice.
  And some patience.
 
 
  Glinn Cortez wrote:
 
  Hi, I'm new in using Tomcat 4.0. I have installed Tomcat in my PC. I
  have also already installed JDK in my PC. What are things I
  need for me
  to start using Tomcat by running .jsp files? What are some database
  server that are compatible with Tomcat.
  
  Please help me sort out these things. Thank you very much.
  
  
  Regards,
  Glinn
  
  
  -
  ---
  
  --
  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: How to write a servlet that handle request for .xml documents

2002-09-27 Thread Aaron Chan

Hi,

I tried understand the JspServlet source and I have already solve the
problem. 

Thanks for your help again.

-Original Message-
From: Nicholas Orr [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 4:14 PM
To: 'Tomcat Users List'
Subject: RE: How to write a servlet that handle request for .xml
documents

So, if I am understanding right, what you want to do is:-
1. Client calls http://localhost:8080/home.jsp and there html code in
there:
a href=/file.xmla xml file/a
2. Client then calls http://localhost:8080/file.xml and you want to
intercept this and redirect to a servlet
http://localhost:8080/servlet/myServlet (which you have done?)
3. Now this is where you are stuck?? How do I know that file.xml has
been
redirected?
4. Do stuff and return file.xml.

Is this right? Well if it is, back in step one you can have the link
specify
a href=/servlet/myServlet?xmlFile=/file.xmla xml file/a. But if
you
just want to be able to type in http://localhost:8080/file.xml and do
you
what you want, then you need to find out where you have come from, (been
redirected from), you might be able to use 'request.getRequestURL()'
this
would only work however, if tomcat redirects without sending a proper
'response.sendRedirect()'.

Other than that I don't know of a way to do what you want, hope this all
helps somehow.

Nicholas Orr

-Original Message-
From: Aaron Chan [mailto:[EMAIL PROTECTED]] 
Sent: Friday, 27 September 2002 5:27 PM
To: 'Tomcat Users List'
Subject: RE: How to write a servlet that handle request for .xml
documents


Hi,

I am trying to have all the request to .xml documents to be pass to a
servlet, so that I can dynamically change the documents before sending
it
back to the client. Thanks.


-Original Message-
From: Nicholas Orr [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 2:55 PM
To: 'Tomcat Users List'
Subject: RE: How to write a servlet that handle request for .xml
documents

Hi,

What exactly are you trying to do??

Nicholas Orr

-Original Message-
From: Aaron Chan [mailto:[EMAIL PROTECTED]] 
Sent: Friday, 27 September 2002 4:34 PM
To: 'Tomcat Users List'
Subject: RE: How to write a servlet that handle request for .xml
documents


Hi, thanks for ur reply. I already know how to write basic servlet, just
that I am not sure when the tomcat redirect the request of .xml file to
the
servlet, which method inside the servlet gets to handle it? doGet or
doPost?
I even tried service() but can't do it. Also how can I get the requested
file names?

Thanks in advance

Btw.. I agree that it is a good book I have it here :)

-Original Message-
From: Andreas Probst [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 2:22 PM
To: Tomcat Users List
Subject: Re: How to write a servlet that handle request for .xml
documents

 Hi, I have setup the web.xml to direct request to .xml to my servlet
 
 However, I do not know how to write the servlet inorder to have it
 perform jobs I want it to do. Anyone know of any guides on writing it
or
 know how to write it? Thanks in advance.

The sun site has a tutorial. Search www.javasoft.com.

O'Reilly's Java Servlet Programming is a good book on Java 
servlets.

Andreas


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


**
The information contained in this e-mail is confidential and is intended
only for the use of the addressee(s). If you receive this e-mail in
error,
any use, distribution or copying of this e-mail is not permitted. You
are
requested to forward unwanted e-mail and address any problems to the MIM
Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**


--
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: JSP compile in debug mode

2002-09-27 Thread Christophe Marchand

Thanks a lot

- Original Message -
From: Larry Isaacs [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 26, 2002 8:13 PM
Subject: RE: JSP compile in debug mode


 Look at the documentation in conf/web.xml for classdebuginfo
 init parameter, found just above:

 ...
 servlet
 servlet-namejsp/servlet-name
 ...
 /servlet

 Cheers,
 Larry


  -Original Message-
  From: Christophe Marchand [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 26, 2002 1:24 PM
  To: Tomcat
  Subject: JSP compile in debug mode
 
 
  Where do I configure that Jasper should compile JSP in debug mode ?
 
  I use Tomcat 3.2.3 and I will use the latest 4.x in a near future.
 
  Thanks a lot
 
  --
  Christophe Marchand
  [EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user- [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: Appache v2.0.40 + Tomcat 4.1.x + Connectors

2002-09-27 Thread Robert L Sowders

You need to supply your Jk2 config files, jk2.properties and 
worker2.properties, before we can begin to help you.  A description of 
your system is also needed.  (win2k, redhat, solaris, )  Will also need to 
know anything outside of the default that you have done.

rls





Steltner, Jörn  HTC/DE/ESS [EMAIL PROTECTED]
09/27/2002 12:58 AM
Please respond to Tomcat Users List

 
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
cc: 
Subject:Appache v2.0.40 + Tomcat 4.1.x + Connectors

Hallo,

I installed the Apache and Tomcat from source. Both are running well. I
compiled the jk2 connectors and made the configuration. Apache is loading
the module, but couldn't find the jk-worker. The Tomcat installation gets 
an
error in the Log-File. It seems that Apache can no find the Tomcat
process

I need some help.

Regards
Joern


Part I: mod_jk.log

[Fri Sep 27 09:35:26 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/jsp/source.jsp'
[Fri Sep 27 09:35:26 2002]  [jk_uri_worker_map.c (558)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - 
*.jsp
[Fri Sep 27 09:35:26 2002]  [mod_jk.c (1277)]: Into handler r-proxyreq=0
r-handler=jakarta-servlet r-notes=135575144 worker=ajp13
[Fri Sep 27 09:35:26 2002]  [jk_worker.c (132)]: Into 
wc_get_worker_for_name
ajp13
[Fri Sep 27 09:35:26 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done did not found a worker

Part II: catalina.out

Starting service Tomcat-Standalone
Apache Tomcat/4.1.10
[ERROR] JkMain - -No class name for request  request 
[INFO] JkMain - -APR not loaded, disabling jni components:
java.io.IOException: /opt/jakarta/lib/libjkjni.so: libapr.so.0: cannot 
open
shared object file: No such file or directory
[INFO] ChannelSocket - -JK2: ajp13 listening on tcp port 8009
[INFO] ChannelUn - -No file, disabling unix channel
[INFO] JkMain - -Jk running ID=0 time=1/75
config=/opt/jakarta/conf/jk2.properties

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




Appache v2.0.40 + Tomcat 4.1.x + Connectors II

2002-09-27 Thread Steltner, Jörn HTC/DE/ESS

Hallo,

thanks for the reply. Again, I installed the Apache (/opt/apache2) and
Tomcat (/opt/jakarta) from source. Both are running well. I compiled the jk2
connectors and made the configuration. Apache is loading the module, but
couldn't find the jk-worker. The Tomcat installation gets an error in the
Log-File. It seems that Apache can no find the Tomcat process

My environment is a Suse Prof v8.0, 2.4.18 kernel 

I need some help.

Regards
Joern


Part I: mod_jk.log

[Fri Sep 27 09:35:26 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/jsp/source.jsp'
[Fri Sep 27 09:35:26 2002]  [jk_uri_worker_map.c (558)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp
[Fri Sep 27 09:35:26 2002]  [mod_jk.c (1277)]: Into handler r-proxyreq=0
r-handler=jakarta-servlet r-notes=135575144 worker=ajp13
[Fri Sep 27 09:35:26 2002]  [jk_worker.c (132)]: Into wc_get_worker_for_name
ajp13
[Fri Sep 27 09:35:26 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done did not found a worker

Part II: catalina.out

Starting service Tomcat-Standalone
Apache Tomcat/4.1.10
[ERROR] JkMain - -No class name for request  request 
[INFO] JkMain - -APR not loaded, disabling jni components:
java.io.IOException: /opt/jakarta/lib/libjkjni.so: libapr.so.0: cannot open
shared object file: No such file or directory
[INFO] ChannelSocket - -JK2: ajp13 listening on tcp port 8009
[INFO] ChannelUn - -No file, disabling unix channel
[INFO] JkMain - -Jk running ID=0 time=1/75
config=/opt/jakarta/conf/jk2.properties


Part III: j2.properties

## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Override the default port for the socketChannel
channelSocket.port=8009

# list of needed handlers. 
handler.list=apr,channelSocket,channelUnix,request 

# Set the default port for the channelSocket 
channelSocket.port=8009 

# State where the UNIX domain socket is located 
#channelUnix.file=/opt/jakarta/work/jk2.socket 

# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm


# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess

# Dynamic library
serverRoot=/opt/apache2
apr.NativeSo=/opt/jakarta/lib/libjkjni.so


# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:
#apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

Part IV: worker2.properties

[logger]
level=DEBUG

[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0

# Shared memory handling. Needs to be set.
[shm]
file=/opt/apache2/logs/shm.file
size=1048576



[uriMap:]
info=Maps the requests. Options: debug
debug=1

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=${serverRoot}/logs/jk2.shm
size=100
debug=0
disabled=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
port=8009
debug=1
host=127.0.0.1
tomcatId=localhost:8009

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


# define the worker
[ajp13:localhost:8009]
#channel=channel.un:/usr/local/tomcat/work/jk2.socket
# To use the TCP/IP socket instead, just comment out the above
# line, and uncomment the one below
channel=channel.socket:localhost:8009

# Announce a status worker
[status:status]

# Uri mapping
[uri:/examples/*]
worker=ajp13:localhost:8009
#worker=ajp13:/usr/local/tomcat/work/jk2.socket

[uri:/status/*]
worker=status:status

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




RE: Tomcat 4.0.2, Apache 1.3.24, mod_jk, OpenBSDP 3.1 - eratic behaviour

2002-09-27 Thread Robert L Sowders

Host name=monkeymagic debug=0 

increment the debug= statement to something  than 0.  9 works pretty 
well.

rls





danox [EMAIL PROTECTED]
09/26/2002 10:40 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat 4.0.2, Apache 1.3.24, mod_jk, OpenBSDP 3.1 - 
eratic behaviour

Thanks for your response.
here is my mod_jk.conf file.
looks to me like the log directives are ok:



## Auto generated on Mon Sep 23 13:17:20 EST 2002##

IfModule !mod_jk.c
 LoadModule jk_module libexec/mod_jk.so
/IfModule

JkWorkersFile /usr/local/jakarta-tomcat-4.0.2/conf/jk/workers.properties
JkLogFile /usr/local/jakarta-tomcat-4.0.2/logs/mod_jk.log

JkLogLevel emerg



VirtualHost monkeymagic
   ServerName monkeymagic

   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 / ajp13
   JkMount /* ajp13
   DocumentRoot /var/tomcat/webapps/ROOT
/VirtualHost


Milt Epstein wrote:

 On Wed, 25 Sep 2002, danox wrote:

 

 I have set up tomcat 4.0.2 to run with apache 1.3.24 on an OpenBSD
 platform. I used mod_jk to provide the connection, which I managed to
 compile from source on OpenBSD.

 I am having 2 problems,  believe if I resolved the first it would help
 me someways to resolve the second.

 1)
 mod_jk creates a log file, but never writes to it. the log is always 0
 length. I have used the following lines to try and get it to produce a
 log file:
 ***
  !-- Define the default virtual host --
  Host name=monkeymagic debug=0 appBase=/var/tomcat/webapps
 unpackWAR
 s=true

!-- this line is included for apache integration using mod_jk 
--
 Listener
 className=org.apache.ajp.tomcat4.config.ApacheConfig append =true
 forwardAll=true noRoot=false jkDebug=debug  /
 ***

 I have tried this with jkDebug=debug and jkDebug=error as well. 
(got
 this from 
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html)

 Everything else goes fine, catalina.out reveals that tomcat-apache has
 started, and I can actually get apache to talk to tomcat, but no log
 file is generated.
 

 [ ... ]

 I believe the mod_jk log file is controlled by directives that go in
 the Apache httpd.conf (perhaps via an Include).  (The above Listener
 is to have Tomcat auto-generate a mod_jk.conf file.)  Check out the
 JkLogFile and JkLogLevel directives.  You show that you include the
 auto-generated mod_jk.conf file, but you don't show what's in it.

 Don't know about 2.

 Milt Epstein
 Research Programmer
 Integration and Software Engineering (ISE)
 Campus Information Technologies and Educational Services (CITES)
 University of Illinois at Urbana-Champaign (UIUC)
 [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: Appache v2.0.40 + Tomcat 4.1.x + Connectors II

2002-09-27 Thread Robert L Sowders

Have you set the Tomcat home in the environment in which it starts?
Type env at the cmd line and look for all TOMCAT variables.






Steltner, Jörn  HTC/DE/ESS [EMAIL PROTECTED]
09/27/2002 02:13 AM
Please respond to Tomcat Users List

 
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
cc: 
Subject:Appache v2.0.40 + Tomcat 4.1.x + Connectors II

Hallo,

thanks for the reply. Again, I installed the Apache (/opt/apache2) and
Tomcat (/opt/jakarta) from source. Both are running well. I compiled the 
jk2
connectors and made the configuration. Apache is loading the module, but
couldn't find the jk-worker. The Tomcat installation gets an error in the
Log-File. It seems that Apache can no find the Tomcat process

My environment is a Suse Prof v8.0, 2.4.18 kernel 

I need some help.

Regards
Joern


Part I: mod_jk.log

[Fri Sep 27 09:35:26 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/jsp/source.jsp'
[Fri Sep 27 09:35:26 2002]  [jk_uri_worker_map.c (558)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - 
*.jsp
[Fri Sep 27 09:35:26 2002]  [mod_jk.c (1277)]: Into handler r-proxyreq=0
r-handler=jakarta-servlet r-notes=135575144 worker=ajp13
[Fri Sep 27 09:35:26 2002]  [jk_worker.c (132)]: Into 
wc_get_worker_for_name
ajp13
[Fri Sep 27 09:35:26 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done did not found a worker

Part II: catalina.out

Starting service Tomcat-Standalone
Apache Tomcat/4.1.10
[ERROR] JkMain - -No class name for request  request 
[INFO] JkMain - -APR not loaded, disabling jni components:
java.io.IOException: /opt/jakarta/lib/libjkjni.so: libapr.so.0: cannot 
open
shared object file: No such file or directory
[INFO] ChannelSocket - -JK2: ajp13 listening on tcp port 8009
[INFO] ChannelUn - -No file, disabling unix channel
[INFO] JkMain - -Jk running ID=0 time=1/75
config=/opt/jakarta/conf/jk2.properties


Part III: j2.properties

## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Override the default port for the socketChannel
channelSocket.port=8009

# list of needed handlers. 
handler.list=apr,channelSocket,channelUnix,request 

# Set the default port for the channelSocket 
channelSocket.port=8009 

# State where the UNIX domain socket is located 
#channelUnix.file=/opt/jakarta/work/jk2.socket 

# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm


# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess

# Dynamic library
serverRoot=/opt/apache2
apr.NativeSo=/opt/jakarta/lib/libjkjni.so


# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:
#apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

Part IV: worker2.properties

[logger]
level=DEBUG

[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0

# Shared memory handling. Needs to be set.
[shm]
file=/opt/apache2/logs/shm.file
size=1048576



[uriMap:]
info=Maps the requests. Options: debug
debug=1

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=${serverRoot}/logs/jk2.shm
size=100
debug=0
disabled=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
port=8009
debug=1
host=127.0.0.1
tomcatId=localhost:8009

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


# define the worker
[ajp13:localhost:8009]
#channel=channel.un:/usr/local/tomcat/work/jk2.socket
# To use the TCP/IP socket instead, just comment out the above
# line, and uncomment the one below
channel=channel.socket:localhost:8009
 
# Announce a status worker
[status:status]
 
# Uri mapping
[uri:/examples/*]
worker=ajp13:localhost:8009
#worker=ajp13:/usr/local/tomcat/work/jk2.socket
 
[uri:/status/*]
worker=status:status

--
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: Appache v2.0.40 + Tomcat 4.1.x + Connectors II

2002-09-27 Thread Steltner, Jörn HTC/DE/ESS

I don't have any TOMCAT or Catalina variables in my Environment. I start it
witj ./startup.sh thats all.

-Original Message-
From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 27. September 2002 11:18
To: Tomcat Users List
Subject: Re: Appache v2.0.40 + Tomcat 4.1.x + Connectors II


Have you set the Tomcat home in the environment in which it starts?
Type env at the cmd line and look for all TOMCAT variables.






Steltner, Jörn  HTC/DE/ESS [EMAIL PROTECTED]
09/27/2002 02:13 AM
Please respond to Tomcat Users List

 
To: '[EMAIL PROTECTED]'
[EMAIL PROTECTED]
cc: 
Subject:Appache v2.0.40 + Tomcat 4.1.x + Connectors II

Hallo,

thanks for the reply. Again, I installed the Apache (/opt/apache2) and
Tomcat (/opt/jakarta) from source. Both are running well. I compiled the 
jk2
connectors and made the configuration. Apache is loading the module, but
couldn't find the jk-worker. The Tomcat installation gets an error in the
Log-File. It seems that Apache can no find the Tomcat process

My environment is a Suse Prof v8.0, 2.4.18 kernel 

I need some help.

Regards
Joern


Part I: mod_jk.log

[Fri Sep 27 09:35:26 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/jsp/source.jsp'
[Fri Sep 27 09:35:26 2002]  [jk_uri_worker_map.c (558)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - 
*.jsp
[Fri Sep 27 09:35:26 2002]  [mod_jk.c (1277)]: Into handler r-proxyreq=0
r-handler=jakarta-servlet r-notes=135575144 worker=ajp13
[Fri Sep 27 09:35:26 2002]  [jk_worker.c (132)]: Into 
wc_get_worker_for_name
ajp13
[Fri Sep 27 09:35:26 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done did not found a worker

Part II: catalina.out

Starting service Tomcat-Standalone
Apache Tomcat/4.1.10
[ERROR] JkMain - -No class name for request  request 
[INFO] JkMain - -APR not loaded, disabling jni components:
java.io.IOException: /opt/jakarta/lib/libjkjni.so: libapr.so.0: cannot 
open
shared object file: No such file or directory
[INFO] ChannelSocket - -JK2: ajp13 listening on tcp port 8009
[INFO] ChannelUn - -No file, disabling unix channel
[INFO] JkMain - -Jk running ID=0 time=1/75
config=/opt/jakarta/conf/jk2.properties


Part III: j2.properties

## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Override the default port for the socketChannel
channelSocket.port=8009

# list of needed handlers. 
handler.list=apr,channelSocket,channelUnix,request 

# Set the default port for the channelSocket 
channelSocket.port=8009 

# State where the UNIX domain socket is located 
#channelUnix.file=/opt/jakarta/work/jk2.socket 

# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm


# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess

# Dynamic library
serverRoot=/opt/apache2
apr.NativeSo=/opt/jakarta/lib/libjkjni.so


# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:
#apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

Part IV: worker2.properties

[logger]
level=DEBUG

[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0

# Shared memory handling. Needs to be set.
[shm]
file=/opt/apache2/logs/shm.file
size=1048576



[uriMap:]
info=Maps the requests. Options: debug
debug=1

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=${serverRoot}/logs/jk2.shm
size=100
debug=0
disabled=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
port=8009
debug=1
host=127.0.0.1
tomcatId=localhost:8009

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


# define the worker
[ajp13:localhost:8009]
#channel=channel.un:/usr/local/tomcat/work/jk2.socket
# To use the TCP/IP socket instead, just comment out the above
# line, and uncomment the one below
channel=channel.socket:localhost:8009
 
# Announce a status worker
[status:status]
 
# Uri mapping
[uri:/examples/*]
worker=ajp13:localhost:8009
#worker=ajp13:/usr/local/tomcat/work/jk2.socket
 
[uri:/status/*]
worker=status:status

--
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: Appache v2.0.40 + Tomcat 4.1.x + Connectors II

2002-09-27 Thread Robert L Sowders

I don't see any class path lines in the workers2.prop file.

Grab a default one from your connector build sources , and don't change 
anything excepts the paths, and see if it will work for the /examples dir.

Especially pay attention to these lines

OPT=-Djava.class.path=${TOMCAT_HOME}/lib/tomcat-jni.jar;${TOMCAT_HOME}/server/lib/commons-logging.jar
OPT=-Dtomcat.home=${TOMCAT_HOME}
OPT=-Dcatalina.home=${TOMCAT_HOME}
OPT=-Xmx128M

I have to go home now, I hope you get it working.

rls





Steltner, Jörn  HTC/DE/ESS [EMAIL PROTECTED]
09/27/2002 02:25 AM
Please respond to Tomcat Users List

 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: Appache v2.0.40 + Tomcat 4.1.x + Connectors II

I don't have any TOMCAT or Catalina variables in my Environment. I start 
it
witj ./startup.sh thats all.

-Original Message-
From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 27. September 2002 11:18
To: Tomcat Users List
Subject: Re: Appache v2.0.40 + Tomcat 4.1.x + Connectors II


Have you set the Tomcat home in the environment in which it starts?
Type env at the cmd line and look for all TOMCAT variables.






Steltner, Jörn  HTC/DE/ESS [EMAIL PROTECTED]
09/27/2002 02:13 AM
Please respond to Tomcat Users List

 
To: '[EMAIL PROTECTED]'
[EMAIL PROTECTED]
cc: 
Subject:Appache v2.0.40 + Tomcat 4.1.x + Connectors II

Hallo,

thanks for the reply. Again, I installed the Apache (/opt/apache2) and
Tomcat (/opt/jakarta) from source. Both are running well. I compiled the 
jk2
connectors and made the configuration. Apache is loading the module, but
couldn't find the jk-worker. The Tomcat installation gets an error in the
Log-File. It seems that Apache can no find the Tomcat process

My environment is a Suse Prof v8.0, 2.4.18 kernel 

I need some help.

Regards
Joern


Part I: mod_jk.log

[Fri Sep 27 09:35:26 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/jsp/source.jsp'
[Fri Sep 27 09:35:26 2002]  [jk_uri_worker_map.c (558)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - 
*.jsp
[Fri Sep 27 09:35:26 2002]  [mod_jk.c (1277)]: Into handler r-proxyreq=0
r-handler=jakarta-servlet r-notes=135575144 worker=ajp13
[Fri Sep 27 09:35:26 2002]  [jk_worker.c (132)]: Into 
wc_get_worker_for_name
ajp13
[Fri Sep 27 09:35:26 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done did not found a worker

Part II: catalina.out

Starting service Tomcat-Standalone
Apache Tomcat/4.1.10
[ERROR] JkMain - -No class name for request  request 
[INFO] JkMain - -APR not loaded, disabling jni components:
java.io.IOException: /opt/jakarta/lib/libjkjni.so: libapr.so.0: cannot 
open
shared object file: No such file or directory
[INFO] ChannelSocket - -JK2: ajp13 listening on tcp port 8009
[INFO] ChannelUn - -No file, disabling unix channel
[INFO] JkMain - -Jk running ID=0 time=1/75
config=/opt/jakarta/conf/jk2.properties


Part III: j2.properties

## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Override the default port for the socketChannel
channelSocket.port=8009

# list of needed handlers. 
handler.list=apr,channelSocket,channelUnix,request 

# Set the default port for the channelSocket 
channelSocket.port=8009 

# State where the UNIX domain socket is located 
#channelUnix.file=/opt/jakarta/work/jk2.socket 

# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm


# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess

# Dynamic library
serverRoot=/opt/apache2
apr.NativeSo=/opt/jakarta/lib/libjkjni.so


# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:
#apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

Part IV: worker2.properties

[logger]
level=DEBUG

[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0

# Shared memory handling. Needs to be set.
[shm]
file=/opt/apache2/logs/shm.file
size=1048576



[uriMap:]
info=Maps the requests. Options: debug
debug=1

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=${serverRoot}/logs/jk2.shm
size=100
debug=0
disabled=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
port=8009
debug=1
host=127.0.0.1
tomcatId=localhost:8009

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


# define the worker
[ajp13:localhost:8009]
#channel=channel.un:/usr/local/tomcat/work/jk2.socket
# To use the TCP/IP socket instead, just comment out the above
# line, and uncomment the one below
channel=channel.socket:localhost:8009
 
# Announce a status worker
[status:status]
 
# Uri mapping
[uri:/examples/*]
worker=ajp13:localhost:8009

Get all hosts while initializing a context

2002-09-27 Thread Stefan Henke

Hi,

I´m wondering if the following is possible. I´m implementing a servlet
context listener which does some initialize work for my webapp. Here, I want
to get a list of all hosts (server name and port) my webapp is available on.
If haven´t found a way to do this with the regular servlet api.
I thought of passing a reference to the server.xml file to the context
listener as parameter in my web.xml. But I think this is a dirty and
insecure way. Do you have any other ideas?

Thanks
Stefan


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




RE: Urgent, no website until Apache 2.0.42 works with Tomcat 4.1.12

2002-09-27 Thread David Wynter

When I look into the server.xml it has a connector for port 8080 using
coyote. But I note this is in the Service name=Tomcat Standalone
section. Since I am redirecting from Apache to Tomcat do I need a separate
connector entry in the service section Service name=Tomcat-Apache ?

David

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 26 September 2002 21:18
To: 'Tomcat Users List'
Subject: RE: Urgent, no website until Apache 2.0.42 works with Tomcat
4.1.12



Sorry, I'm lost, too.  I'm not clear anymore what you're trying to do.  If
you have a URL with 8080 in it, Apache isn't even involved.

John


 -Original Message-
 From: David Wynter [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 26, 2002 3:52 PM
 To: Tomcat Users List
 Subject: RE: Urgent, no website until Apache 2.0.42 works with Tomcat
 4.1.12


 The error below was caused by the line JkMount /*/servlet/
 I had added to
 my httpd.conf.

 Now for
 http://www.roamware.com:8080/rwsite/servlet/rwsite/templates/i
 ndex.vm all I
 get is the line
 ..[error] [client] File does not exist:
 /usr/local/apache2/htdocs/rwsite
 Why is Apache looking in there when it is on port 8080?
 Shouldn't it be
 forwarding this to Tomcat?

 I am now getting ConnectException: connection refused when
 I use service
 tomcat4 stop These had disappeared, but now they are back. I am lost

 David



 -Original Message-
 From: David Wynter [mailto:[EMAIL PROTECTED]]
 Sent: 26 September 2002 20:28
 To: Tomcat Users List
 Subject: RE: Urgent, no website until Apache 2.0.42 works with Tomcat
 4.1.12


 Futher progress , but it has stopped. I can now see
 http://www.roamware.com:8080/index.jsp but I get a 500 error
 when it tries
 to resolve
 http://www.roamware.com:8080/rwsite/servlet/rwsite/templates/i
 ndex.vm which
 is my Turbine servlet application. I have set th eTomcat Root
 Context as
 follows:

 Context path= docBase=/rwsite debug=0/

 But I get the following errors in mod_jk.log not sure if they
 are related.
 They seem to be by the timing.

 [Thu Sep 26 20:21:25 2002]  [jk_connect.c (177)]:
 jk_open_socket, connect()
 failed errno = 111
 [Thu Sep 26 20:21:25 2002]  [jk_ajp_common.c (626)]: In
 jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
 [Thu Sep 26 20:21:25 2002]  [jk_ajp_common.c (872)]: Error
 connecting to the
 Tomcat process.
 [Thu Sep 26 20:21:25 2002]  [jk_ajp_common.c (1181)]: In
 jk_endpoint_t::service, ajp_send_request failed in send loop 2

 Ideas?

 David

 -Original Message-
 From: David Wynter [mailto:[EMAIL PROTECTED]]
 Sent: 26 September 2002 19:19
 To: Tomcat Users List
 Subject: RE: Urgent, no website until Apache 2.0.42 works with Tomcat
 4.1.12


 Ok, getting there.

 Now I have Tomcat running and deploying the jars in my
 servlet, a very good
 sign. I used to put a redirect in the HEAD of the Apache home
 page, but
 better would be to direct all /servlet/* URI's to Tomcat.
 Which section of
 the http.conf file do you do that? How do you make the
 particular servlet
 the default page?

 David

 -Original Message-
 From: David Wynter [mailto:[EMAIL PROTECTED]]
 Sent: 26 September 2002 19:08
 To: Tomcat Users List
 Subject: RE: Urgent, no website until Apache 2.0.42 works with Tomcat
 4.1.12


 Hi,

 I had run that and for /native2 and it all worked fine. Not
 sure about the
 step they called dsp though, not in your instructions.

 I moved copied the missing jni_md.h file into the same
 directory as the
 jni.h file and then ran ant from the /jk/native directory and
 it finished
 OK. Then I cd to /jk/native and ran ant again (all ant native in the
 /jk/build.xml file does is run these 2 build.xml file
 anyway). It failed
 massively, lots of missing header files, I am not sure if
 this is because
 the Mandrake instal of Apache 1.3.23 is not a full one, but
 as I don't need
 to support it I assume it is OK.

 I then went to copy the build jar files to the /var/tomcat4/server/lib
 directory where I found the tomcat-coyote.jar. The
 tomcat-jk2.jar is smaller
 than the incumbent by 1K and the tomcat-jk.jar is 21.2k
 compared to the
 incumbent's 64.1KB. I assume this is because mine does not
 have support for
 Apache 1.3? Anyway I left the incumbents there.

 Now I get the problem in the apache2 error_log where it says
 there is no
 worker file of worker file. Since there is no
 /var/tomcat4/conf/jk/mod_jk.cong-auto as the docuemntation
 says there is
 (how can this be!) I added the Jk... commands to the
 httpd.conf file. Now I
 don't get any error, but nor do I get Tomcat and my servlet
 application.
 There ar eno log files under Tomcat so where do you look to
 see what is
 wrong?

 David

 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: 26 September 2002 18:06
 To: 'Tomcat Users List'
 Subject: RE: Urgent, no website until Apache 2.0.42 works with Tomcat
 4.1.12



 You want the buildconf.sh files in jk/native.  Run them, if
 all is well 

Re: javax error

2002-09-27 Thread Atif Shahab


ok, here is the code generated by tomcat (line numbers added by me).  Also
the compiler doesn't seem to have any problems compiling, this is a run
time error.

47:  try
48:   {
49:int DEFAULT_MAX_POST_SIZE = 1024 * 1024;
50:MultipartParser parser;
51:parser = new MultipartParser( request
52:  , DEFAULT_MAX_POST_SIZE );
53:  } catch( Exception e )
54:  {
55:out.println( Sorry! An error was detected );
56:  }
57:  out.write(\n);
58:} catch (Throwable t) {
59:  out = _jspx_out;
60:  if (out != null  out.getBufferSize() != 0)
61:out.clearBuffer();
62:  if (pageContext != null) pageContext.handlePageException(t);
63:} finally {
64:  if (_jspxFactory != null)
65:_jspxFactory.releasePageContext(pageContext);
66:}
67:  }
68:}


On Thu, 26 Sep 2002, Tim Funk wrote:

 Look for a file called testing_jsp.java. This is the java file created
 by your JSP by tomcat. Line 62 will give you more insight to the error.

 The java file should be buried somewhere under $CATALINA_HOME/work. Use
 a find command to locate the file.

 Atif Shahab wrote:
  hope this helps
 
  -
 
  HTTP Status 500 -
 
  type Exception report
 
  message
 
  description The server encountered an internal error () that prevented it
  from fulfilling this request.
 
  exception
 
  org.apache.jasper.JasperException: javax/servlet/ServletRequest
  at
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:246)
  at
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
  at
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
  at
  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
  at
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
  at
  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191)
  at
  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at
  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
  at
  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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:2397)
  at
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
  at
  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at
  
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
  at
  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  at
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
  at
  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.invokeNext(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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:256)
  at
  org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
  at
  org.apache.jk.common.ChannelUn.processConnection(ChannelUn.java:253)
  at org.apache.jk.common.AprConnection.runIt(ChannelUn.java:314)
  at
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
  at java.lang.Thread.run(Thread.java:536)
 
  root cause
 
  javax.servlet.ServletException: javax/servlet/ServletRequest
  at
  
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:497)
  at 

Re: Tomcat 4.1.12: access log corrupted

2002-09-27 Thread Remy Maucherat

[EMAIL PROTECTED] wrote:
 Well, i rechecked all twice, i't a new fresh install.
 The only old thing is the app context, that is not embedded into server.xml
 but as a standalone file.
 I still had a doubt about the jk module that was compiled for 4.1.10, but i
 downloaded 4.1.12 connectors and recompiled them.
 I tested both jk and jk2 with ajp3 connector with same results.
 Also the application was recompiled against 4.1.12.
 If nobody has any other hint, i'll open a bug.

According to my testing, this doesn't happen with Tomcat standalone on 
8080 (or you'll have to explain how to get the problems).

Since the requestURI buffer isn't used much in Tomcat, it is possible 
that Coyote JK2 mutates it, creating the incorrect logs.
Of course, if you use Apache + Tomcat, maybe you should use the native 
access logger instead (it should be much faster).

Remy


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




Re: Tomcat 4.1.12 memory leak, resources leak, what to do ?

2002-09-27 Thread Ing. Damiano Bolla

Thanks to all that have replied, the problem is still here and what follows 
are the tests I did
To clear the issue here it is what I am doing

--
- Clean install of redhat 7.2 or Suse 7.1 (same results for both platforms)
- Clean installation of tomcat 4.1.12
- Clean installation if JDK 1.4.1 (the same happens with 1.4.0.2 or 1.3.1)
- What I am doing is http://localhost:8080/  and keep refreshing that with F5
- I am NOT testing my own servlet. I am NOT doing anything else !!!

I monitor memory usage using top and sorting the results by memory. I am 
looking at the SIZE column.
What I get is an EVER INCREASING memory usage. Something like
30212
30220
31016
31040
31576

-
I did try the various suggestions and as far as I can tell it is not a 
pure  memory issue but it probably is a resource issue, maybe a file not 
closed or a socket ...
The question, what should I do next ?
Who should I report the problem to ?

I must say that it is very easy to reproduce.

Damiano



At 20.11 26/09/2002 -0500, you wrote:
The easiest way to track JVM garbage collection is to start java with the
-verbose:gc arg.  This enables GC data output to stdout.

Regards,

Glenn


Raj Saini wrote:
I am experiencing the same problem with tomcat 4.0.3. I have my JVM memory
setting as -Xms=32 -Xmx=384 and running the tomcat on Sun Solaris 2.7,
integrated with Apache 1.3.x through warp connector.
I have a JSP page monitoring the memory consumption at
http://www.emerging-trade.pt/servlets/memory.jsp, The memory consumption
pattern of the JSP shows the GC runs as you can see the increase/decerece in
the free memory of the current heap size.
Raj Saini
Raj Saini
- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 26, 2002 2:29 PM
Subject: Re: Tomcat 4.1.12 memory leak


Each request allocates memory. (And relinquishes accordingly) The
garbage collector runs when it feels like it should. The JVM will
continually suck up memory until it reaches its startup parameters. (-mx
...)

Once a JVM takes memory from the OS - it does not release it to the OS -
it only releases it to its own memory heap.

Ing. Damiano Bolla wrote:

System: Linux redhat 7.2
Java: /usr/local/j2sdk1.3.1
Tomcat 4.1.12

To reproduce the behaviour you install the 4.1.12 distribution, set the
JAVA_HOME run startup.sh and then keep refreshing the homepage
http://localhost:8080/

If you monitor the memory usage using top and switching it into display
memory usage (Capital M) you sull see tipically something like

22824
22832
22840
23576
23676
23684
23904
23908
23934
23938
.

This is the SIZE field of the top command.
The point is that it never goes down and eventually you run very slowly.

Any idea ?

Ah, the same behaviour is with jdk 1.4.1

Damiano


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



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

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

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




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


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




HOW TO: How do I allocate memory in JVM for extra virtual hosts

2002-09-27 Thread Donie Kelly

Hi all
I am running tomcat 4.0.1 with virtual hosting and was wondering how much
memory to allocate to each additional host. By default, we use 64M for one
host but adding another 64M for second host seems excessive considering it's
the same tomcat instance.
However, if we add a lot the JVM will use more memory before garbage
collection and we've seen a 30 second (!!!) delay when using 1G Ram on JVM
as it just kept using memory until it ran out. It then had almost 1G of ram
to garbage collect. How can I force garbage collection to be more aggressive
and do it more often when garbage is small enough not to cause a problem?
As we need this to run in a production environment we cannot possible allow
a JVM to go for a garbage break for 30 seconds
Any insight or help is greatly appreciated.
Donie


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




RE: Starting problems

2002-09-27 Thread John Trollinger

You might also want to check the logs for the error message or run
catalina run and then the console window will stay so you can see the
error

 -Original Message-
 From: Brad Plies [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, September 26, 2002 4:21 PM
 To: Tomcat Users List
 Subject: Re: Starting problems
 
 
 Check the /log directory?
 
 You might need to make some changes in
 /conf/server.xml and /conf/web.xml.
 --- Sebastien Col [EMAIL PROTECTED] wrote:
  Hello,
  I just installed Tomcat 4.1.12 following all the
  installation =
  instructions. I am running Windows 2000 SP3, with
  jdk1.4.1 and ant1.5.
  When I start Tomcat using both startup.bat and
  Startup icon in the start =
  menu, I can see the CMD window, and then I see what
  looks like an =
  exception trace and the CMD window closes.
  Any idea?
  Thanks
  Sebastien
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 New DSL Internet Access from SBC  Yahoo!
 http://sbc.yahoo.com
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [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]




Install Question

2002-09-27 Thread Curley, Thomas

Hi,

I have looked on the web-site for the answer but without success.  Would appreciate 
your ideas:

Tomcat 4.1.12 / Apache 1.23 on RedHat 7.3

Does anyone have any recommendations as to what user to start tomcat as ? (for 
security reasons).  Is it usual to add a dedicated 'tomcat' user for this purpose

regards


Thomas Curley









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




AW: HOW TO: How do I allocate memory in JVM for extra virtual hosts

2002-09-27 Thread Ralph Einfeldt

Depends on the vendor and the version of the vm.

Sun has some background and advice at:
http://java.sun.com/docs/hotspot/gc/
http://java.sun.com/products/hotspot/whitepaper.html

Also javaworld:
http://www.javaworld.com/javaworld/jw-01-2002/jw-0111-hotspotgc.html

 -Ursprüngliche Nachricht-
 Von: Donie Kelly [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 27. September 2002 12:12
 An: 'Tomcat Users List'
 Betreff: HOW TO: How do I allocate memory in JVM for extra 
 virtual hosts
 
 How can I force garbage collection to be more aggressive
 and do it more often when garbage is small enough not to 
 cause a problem?

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




AW: Install Question

2002-09-27 Thread Ralph Einfeldt

It is usual to create a dedicated user for each tomcat instance.
But I wouldn't recommend to use 'tomcat' as user name, we prefer 
to use application level names for users. (E.G. if the site is 
called www.foobar.comm, the user is foobar, this way you are 
prepared to host more than one instance of tomcat on one maschine
with dedicated users for each instance.)

 -Ursprüngliche Nachricht-
 Von: Curley, Thomas [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 27. September 2002 12:45
 An: Tomcat Users List
 Betreff: Install Question
 
 Does anyone have any recommendations as to what user to start 
 tomcat as ? (for security reasons).  Is it usual to add a 
 dedicated 'tomcat' user for this purpose
 

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




Re: javax error

2002-09-27 Thread Tim Funk

I can't tell the exact error from the stack trace and code. When this 
happens to me, I wrap the entire page in a try/catch similar to the 
following:

%try { %
YOUR JSP PAGE HERE
%
   } catch(Throwable e) {
 e.printStackTrace();
 out.println(D'oh: an error occurred - go see the catalina.out!);
 out.println(Here's a hint: PRE + e + /PRE);
   }
%


The stacktrace will show where the REAL error occured and you can follow 
it from there. Currently the error is being wrapped by multiple 
ServletExceptions and the error handler(by tomcat) isn't logging deep 
enough. (I think)


Atif Shahab wrote:
 ok, here is the code generated by tomcat (line numbers added by me).  Also
 the compiler doesn't seem to have any problems compiling, this is a run
 time error.
 
 47:  try
 48:   {
 49:int DEFAULT_MAX_POST_SIZE = 1024 * 1024;
 50:MultipartParser parser;
 51:parser = new MultipartParser( request
 52:  , DEFAULT_MAX_POST_SIZE );
 53:  } catch( Exception e )
 54:  {
 55:out.println( Sorry! An error was detected );
 56:  }
 57:  out.write(\n);
 58:} catch (Throwable t) {
 59:  out = _jspx_out;
 60:  if (out != null  out.getBufferSize() != 0)
 61:out.clearBuffer();
 62:  if (pageContext != null) pageContext.handlePageException(t);
 63:} finally {
 64:  if (_jspxFactory != null)
 65:_jspxFactory.releasePageContext(pageContext);
 66:}
 67:  }
 68:}
 
 
 On Thu, 26 Sep 2002, Tim Funk wrote:
 
 
Look for a file called testing_jsp.java. This is the java file created
by your JSP by tomcat. Line 62 will give you more insight to the error.

The java file should be buried somewhere under $CATALINA_HOME/work. Use
a find command to locate the file.

Atif Shahab wrote:

hope this helps

-

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: javax/servlet/ServletRequest
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:246)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
 at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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:2397)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.invokeNext(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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:256)
 at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
  

i am still trying to figure this out

2002-09-27 Thread Sharifuddin Ahmed

I have sent this message once before and I am still have the same 
problem, could somebody please please help!!!

I would be ever so grateful.

Could somebody help me and reply to my e-mail .

I have the following :

jakarta-tomcat-3.2.4 
Win2K

On startup i get the following error:

2002-09-25 09:34:13 - ContextManager: Adding context Ctx( 
/examples )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /admin 
)
Starting tomcat. Check logs/tomcat.log for error messages
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( 
/FormProcess )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /gino )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( 
/GinoTest )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( 
/GinoTest2 )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( 
/GraphService )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( 
/jspBeanExample )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /myapp 
)
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( 
/postsearch )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( 
/postsearch2 )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( 
/registration )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( 
/regXML )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /test )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( 
/UserReg )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( 
/UserReg_old )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( 
/xsltExample )
XmlMapper: Can't find resource for entity: -//Sun Microsystems, 
Inc.//DTD Web Ap
plication 2.3//EN -- http://java.sun.com/dtd/web-app_2_3.dtd null
2002-09-25 09:34:21 - PoolTcpConnector: Starting 
HttpConnectionHandler on 8080
2002-09-25 09:34:21 - PoolTcpConnector: Starting 
Ajp12ConnectionHandler on 8007

I have checked the web.xml file checking for versions



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




Re: javax error

2002-09-27 Thread Atif Shahab


I don't get it.

currently I have

%@ page import=java.util.*, java.io.*, com.oreilly.servlet.*,
com.oreilly.servlet.multipart.* %
%
  try
  {
int DEFAULT_MAX_POST_SIZE = 1024 * 1024;
MultipartParser parser;
parser = new MultipartParser( request
  , DEFAULT_MAX_POST_SIZE );
  } catch( Exception e )
  {
out.println( Sorry! An error was detected );
  }
%

1. you want me put another try over this block?
or
2. make another page and then include this page?

if it's optione 1 then doing that doesn't help.  This exeception is
comming from the code generated by tomcat.  It doesn't even seem to get
to my code. If an exception is generated by my code then I should have
caught it and not the exception handler code generated by tomcat.

Another question is, is this a bug in tomcat?  Initially I was more
inclined to believe that it was my code but it seems that somehow tomcat
is screwing up.


 On Fri, 27 Sep 2002, Tim Funk wrote:

 I can't tell the exact error from the stack trace and code. When this
 happens to me, I wrap the entire page in a try/catch similar to the
 following:

 %try { %
 YOUR JSP PAGE HERE
 %
} catch(Throwable e) {
  e.printStackTrace();
  out.println(D'oh: an error occurred - go see the catalina.out!);
  out.println(Here's a hint: PRE + e + /PRE);
}
 %


 The stacktrace will show where the REAL error occured and you can follow
 it from there. Currently the error is being wrapped by multiple
 ServletExceptions and the error handler(by tomcat) isn't logging deep
 enough. (I think)


 Atif Shahab wrote:
  ok, here is the code generated by tomcat (line numbers added by me).  Also
  the compiler doesn't seem to have any problems compiling, this is a run
  time error.
 
  47:  try
  48:   {
  49:int DEFAULT_MAX_POST_SIZE = 1024 * 1024;
  50:MultipartParser parser;
  51:parser = new MultipartParser( request
  52:  , DEFAULT_MAX_POST_SIZE );
  53:  } catch( Exception e )
  54:  {
  55:out.println( Sorry! An error was detected );
  56:  }
  57:  out.write(\n);
  58:} catch (Throwable t) {
  59:  out = _jspx_out;
  60:  if (out != null  out.getBufferSize() != 0)
  61:out.clearBuffer();
  62:  if (pageContext != null) pageContext.handlePageException(t);
  63:} finally {
  64:  if (_jspxFactory != null)
  65:_jspxFactory.releasePageContext(pageContext);
  66:}
  67:  }
  68:}
 
 
  On Thu, 26 Sep 2002, Tim Funk wrote:
 
 
 Look for a file called testing_jsp.java. This is the java file created
 by your JSP by tomcat. Line 62 will give you more insight to the error.
 
 The java file should be buried somewhere under $CATALINA_HOME/work. Use
 a find command to locate the file.
 
 Atif Shahab wrote:
 
 hope this helps
 
 -
 
 HTTP Status 500 -
 
 type Exception report
 
 message
 
 description The server encountered an internal error () that prevented it
 from fulfilling this request.
 
 exception
 
 org.apache.jasper.JasperException: javax/servlet/ServletRequest
at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:246)
at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191)
at
 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
at
 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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:2397)
at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
 

ScriptAlias

2002-09-27 Thread Mike Hulse

I have a ScriptAlias in Apache that works fine
ScriptAlias /cgi-bin/db2www/ /QSYS.LIB/FLTCGI.LIB/DB2WWW.PGM/
Is there some way to do this kind of thing with an in-process tomcat?
In other words can I define, somewhere in tomcat, a way to handle cgi
scripts?

Thanks,
Mike 



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




Re: javax error

2002-09-27 Thread Tim Funk

No, there is probably and uncaught exception in your code. Instead of my 
previous post - you can change:
} catch( Exception e )
  TO
} catch( Throwable e )

NullPointerExceptions and other exceptions are not caught by Exception 
but they are caught by Throwable, which is the lowest level.

Failing that - do wrap the entire page in the snippet I provided. If the 
snippet you provided was the ENTIRE page - then my wrapping the entire 
page suggestion is useless. (I am not accustomed to very short JSP pages)


Atif Shahab wrote:
 I don't get it.
 
 currently I have
 
 %@ page import=java.util.*, java.io.*, com.oreilly.servlet.*,
 com.oreilly.servlet.multipart.* %
 %
   try
   {
 int DEFAULT_MAX_POST_SIZE = 1024 * 1024;
 MultipartParser parser;
 parser = new MultipartParser( request
   , DEFAULT_MAX_POST_SIZE );
   } catch( Exception e )
   {
 out.println( Sorry! An error was detected );
   }
 %
 
 1. you want me put another try over this block?
 or
 2. make another page and then include this page?
 
 if it's optione 1 then doing that doesn't help.  This exeception is
 comming from the code generated by tomcat.  It doesn't even seem to get
 to my code. If an exception is generated by my code then I should have
 caught it and not the exception handler code generated by tomcat.
 
 Another question is, is this a bug in tomcat?  Initially I was more
 inclined to believe that it was my code but it seems that somehow tomcat
 is screwing up.
 
 
  On Fri, 27 Sep 2002, Tim Funk wrote:
 
 
I can't tell the exact error from the stack trace and code. When this
happens to me, I wrap the entire page in a try/catch similar to the
following:

%try { %
YOUR JSP PAGE HERE
%
   } catch(Throwable e) {
 e.printStackTrace();
 out.println(D'oh: an error occurred - go see the catalina.out!);
 out.println(Here's a hint: PRE + e + /PRE);
   }
%


The stacktrace will show where the REAL error occured and you can follow
it from there. Currently the error is being wrapped by multiple
ServletExceptions and the error handler(by tomcat) isn't logging deep
enough. (I think)


Atif Shahab wrote:

ok, here is the code generated by tomcat (line numbers added by me).  Also
the compiler doesn't seem to have any problems compiling, this is a run
time error.

47:  try
48:   {
49:int DEFAULT_MAX_POST_SIZE = 1024 * 1024;
50:MultipartParser parser;
51:parser = new MultipartParser( request
52:  , DEFAULT_MAX_POST_SIZE );
53:  } catch( Exception e )
54:  {
55:out.println( Sorry! An error was detected );
56:  }
57:  out.write(\n);
58:} catch (Throwable t) {
59:  out = _jspx_out;
60:  if (out != null  out.getBufferSize() != 0)
61:out.clearBuffer();
62:  if (pageContext != null) pageContext.handlePageException(t);
63:} finally {
64:  if (_jspxFactory != null)
65:_jspxFactory.releasePageContext(pageContext);
66:}
67:  }
68:}


On Thu, 26 Sep 2002, Tim Funk wrote:



Look for a file called testing_jsp.java. This is the java file created
by your JSP by tomcat. Line 62 will give you more insight to the error.

The java file should be buried somewhere under $CATALINA_HOME/work. Use
a find command to locate the file.

Atif Shahab wrote:


hope this helps

-

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it

from fulfilling this request.

exception

org.apache.jasper.JasperException: javax/servlet/ServletRequest
   at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:246)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at

Context and URL

2002-09-27 Thread Bill Blackmon

My host has given me /home/billblac/tomcat/build/webapps to tack onto my
context and most paths in my file
references in web.xml and server.xml files, thus I have the following entry
in the server.xml file:

Host name=billblackmon.com
 Context path=/home/billblac/tomcat/build/webapps/EGPS
docBase=/home/billblac/tomcat/build/webapps/EGPS debug=6
reloadable=true
!-- much more follows --
/context
/host

The host has also given me the following entries:

   Host name=216.218.203.117
Context path= docBase=/home/billblac/public_html debug=6/
Context path=/manager
docBase=/home/billblac/tomcat/build/webapps/manager debug=6
privileged=true/
Valve className=org.apache.catalina.valves.AccessLogValve
directory=/home/billblac/logs prefix=access_log. suffix=.log
pattern=common/
Logger className=org.apache.catalina.logger.FileLogger
directory=/home/billblac/logs prefix=context_log. suffix=.log
timestamp=true/
   /Host



   Host name=www.billblackmon.com
Context path= docBase=/home/billblac/public_html debug=6/
Context path=/manager
docBase=/home/billblac/tomcat/build/webapps/manager debug=0
privileged=true/
Valve className=org.apache.catalina.valves.AccessLogValve
directory=/home/billblac/logs prefix=access_log. suffix=.log
pattern=common/
Logger className=org.apache.catalina.logger.FileLogger
directory=/home/billblac/logs prefix=context_log. suffix=.log
timestamp=true/
   /Host

These entries seem redundant and there is no explanation yet.

The app loads without errors in the log files. I was hoping to be able to
access the app by using the URL
billblackmon.com/EGPS but no matter what combination of paths I use in the
URL I get '404 not found'  messages
in the browser.

Any hints or explanations on why I need 3 entries and why the app is not
found?

Thanks,
Bill


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




RE: Context and URL

2002-09-27 Thread Raghupathy, Gurumoorthy

the config should be 

Host name=billblackmon.com
 Context path=/EGPS
docBase=/home/billblac/tomcat/build/webapps/EGPS debug=6
reloadable=true
!-- much more follows --
/context
/host


and on the browser type http://somedomain.com:yourport/EGPS




-Original Message-
From: Bill Blackmon [mailto:[EMAIL PROTECTED]]
Sent: 27 September 2002 12:40
To: TOMCAT USERS GROUP
Subject: Context and URL


My host has given me /home/billblac/tomcat/build/webapps to tack onto my
context and most paths in my file
references in web.xml and server.xml files, thus I have the following entry
in the server.xml file:

Host name=billblackmon.com
 Context path=/home/billblac/tomcat/build/webapps/EGPS
docBase=/home/billblac/tomcat/build/webapps/EGPS debug=6
reloadable=true
!-- much more follows --
/context
/host

The host has also given me the following entries:

   Host name=216.218.203.117
Context path= docBase=/home/billblac/public_html debug=6/
Context path=/manager
docBase=/home/billblac/tomcat/build/webapps/manager debug=6
privileged=true/
Valve className=org.apache.catalina.valves.AccessLogValve
directory=/home/billblac/logs prefix=access_log. suffix=.log
pattern=common/
Logger className=org.apache.catalina.logger.FileLogger
directory=/home/billblac/logs prefix=context_log. suffix=.log
timestamp=true/
   /Host



   Host name=www.billblackmon.com
Context path= docBase=/home/billblac/public_html debug=6/
Context path=/manager
docBase=/home/billblac/tomcat/build/webapps/manager debug=0
privileged=true/
Valve className=org.apache.catalina.valves.AccessLogValve
directory=/home/billblac/logs prefix=access_log. suffix=.log
pattern=common/
Logger className=org.apache.catalina.logger.FileLogger
directory=/home/billblac/logs prefix=context_log. suffix=.log
timestamp=true/
   /Host

These entries seem redundant and there is no explanation yet.

The app loads without errors in the log files. I was hoping to be able to
access the app by using the URL
billblackmon.com/EGPS but no matter what combination of paths I use in the
URL I get '404 not found'  messages
in the browser.

Any hints or explanations on why I need 3 entries and why the app is not
found?

Thanks,
Bill


--
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: Urgent, no website until Apache 2.0.42 works with Tomcat 4.1.12

2002-09-27 Thread Turner, John


No, you don't.  You can disable all of the connectors that you aren't using.
In your case, you could disable all but the AJP connector on 8009.

John


 -Original Message-
 From: David Wynter [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 26, 2002 5:05 PM
 To: Tomcat Users List
 Subject: RE: Urgent, no website until Apache 2.0.42 works with Tomcat
 4.1.12
 
 
 When I look into the server.xml it has a connector for port 8080 using
 coyote. But I note this is in the Service name=Tomcat Standalone
 section. Since I am redirecting from Apache to Tomcat do I 
 need a separate
 connector entry in the service section Service 
 name=Tomcat-Apache ?
 
 David
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: 26 September 2002 21:18
 To: 'Tomcat Users List'
 Subject: RE: Urgent, no website until Apache 2.0.42 works with Tomcat
 4.1.12
 
 
 
 Sorry, I'm lost, too.  I'm not clear anymore what you're 
 trying to do.  If
 you have a URL with 8080 in it, Apache isn't even involved.
 
 John
 
 
  -Original Message-
  From: David Wynter [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 26, 2002 3:52 PM
  To: Tomcat Users List
  Subject: RE: Urgent, no website until Apache 2.0.42 works 
 with Tomcat
  4.1.12
 
 
  The error below was caused by the line JkMount /*/servlet/
  I had added to
  my httpd.conf.
 
  Now for
  http://www.roamware.com:8080/rwsite/servlet/rwsite/templates/i
  ndex.vm all I
  get is the line
  ..[error] [client] File does not exist:
  /usr/local/apache2/htdocs/rwsite
  Why is Apache looking in there when it is on port 8080?
  Shouldn't it be
  forwarding this to Tomcat?
 
  I am now getting ConnectException: connection refused when
  I use service
  tomcat4 stop These had disappeared, but now they are back. 
 I am lost
 
  David
 
 
 
  -Original Message-
  From: David Wynter [mailto:[EMAIL PROTECTED]]
  Sent: 26 September 2002 20:28
  To: Tomcat Users List
  Subject: RE: Urgent, no website until Apache 2.0.42 works 
 with Tomcat
  4.1.12
 
 
  Futher progress , but it has stopped. I can now see
  http://www.roamware.com:8080/index.jsp but I get a 500 error
  when it tries
  to resolve
  http://www.roamware.com:8080/rwsite/servlet/rwsite/templates/i
  ndex.vm which
  is my Turbine servlet application. I have set th eTomcat Root
  Context as
  follows:
 
  Context path= docBase=/rwsite debug=0/
 
  But I get the following errors in mod_jk.log not sure if they
  are related.
  They seem to be by the timing.
 
  [Thu Sep 26 20:21:25 2002]  [jk_connect.c (177)]:
  jk_open_socket, connect()
  failed errno = 111
  [Thu Sep 26 20:21:25 2002]  [jk_ajp_common.c (626)]: In
  jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
  [Thu Sep 26 20:21:25 2002]  [jk_ajp_common.c (872)]: Error
  connecting to the
  Tomcat process.
  [Thu Sep 26 20:21:25 2002]  [jk_ajp_common.c (1181)]: In
  jk_endpoint_t::service, ajp_send_request failed in send loop 2
 
  Ideas?
 
  David
 
  -Original Message-
  From: David Wynter [mailto:[EMAIL PROTECTED]]
  Sent: 26 September 2002 19:19
  To: Tomcat Users List
  Subject: RE: Urgent, no website until Apache 2.0.42 works 
 with Tomcat
  4.1.12
 
 
  Ok, getting there.
 
  Now I have Tomcat running and deploying the jars in my
  servlet, a very good
  sign. I used to put a redirect in the HEAD of the Apache home
  page, but
  better would be to direct all /servlet/* URI's to Tomcat.
  Which section of
  the http.conf file do you do that? How do you make the
  particular servlet
  the default page?
 
  David
 
  -Original Message-
  From: David Wynter [mailto:[EMAIL PROTECTED]]
  Sent: 26 September 2002 19:08
  To: Tomcat Users List
  Subject: RE: Urgent, no website until Apache 2.0.42 works 
 with Tomcat
  4.1.12
 
 
  Hi,
 
  I had run that and for /native2 and it all worked fine. Not
  sure about the
  step they called dsp though, not in your instructions.
 
  I moved copied the missing jni_md.h file into the same
  directory as the
  jni.h file and then ran ant from the /jk/native directory and
  it finished
  OK. Then I cd to /jk/native and ran ant again (all ant native in the
  /jk/build.xml file does is run these 2 build.xml file
  anyway). It failed
  massively, lots of missing header files, I am not sure if
  this is because
  the Mandrake instal of Apache 1.3.23 is not a full one, but
  as I don't need
  to support it I assume it is OK.
 
  I then went to copy the build jar files to the 
 /var/tomcat4/server/lib
  directory where I found the tomcat-coyote.jar. The
  tomcat-jk2.jar is smaller
  than the incumbent by 1K and the tomcat-jk.jar is 21.2k
  compared to the
  incumbent's 64.1KB. I assume this is because mine does not
  have support for
  Apache 1.3? Anyway I left the incumbents there.
 
  Now I get the problem in the apache2 error_log where it says
  there is no
  worker file of worker file. Since there is no
  /var/tomcat4/conf/jk/mod_jk.cong-auto as the docuemntation
 

different contexts on different connectors

2002-09-27 Thread Marco Baiguera

I'm trying to configure tomcat 4.1.10 (on win2k) to replay with different
root contexts on different connectors:
for example:

- application AAA on / by http on port 8080
- application BBB on / by https on port 8443
- application CCC on /CCC_context by http on port 8080
- application DDD on /CCC_context by https on port 8443

I'm trying with multiple service definition in server.xml but I can't figure
out why
ALL my contexts (defined in different service tags) shows to ALL
connectors/services
(also all contexts are listed by admin and manager apps)
Any hint?
Thank you
Marco

this is my server-xml:


?xml version='1.0' encoding='utf-8'?
Server className=org.apache.catalina.core.StandardServer port=8005
debug=0
shutdown=SHUTDOWN
  GlobalNamingResources

  /GlobalNamingResources
  Service className=org.apache.catalina.core.StandardService debug=0
name=Tomcat-8443
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
redirectPort=8443
address=localhost bufferSize=2048 port=8443 connectionTimeout=6
scheme=https
enableLookups=false secure=true
protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol debug=9
proxyPort=0
maxProcessors=20 minProcessors=5 tcpNoDelay=true acceptCount=10
useURIValidationHack=true
  Factory
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
rootFile=C:\Documents and Settings\marba\root.pem keystoreType=JKS
keystorePass=changeit
clientAuth=false randomFile=C:\Documents and Settings\marba\random.pem
keystoreFile=C:\Documents and Settings\marba\.keystore protocol=TLS/
/Connector

Engine className=org.apache.catalina.core.StandardEngine
mapperClass=org.apache.catalina.core.StandardEngineMapper debug=0
defaultHost=localhost
name=Engine-8443
  Host className=org.apache.catalina.core.StandardHost
appBase=webapps liveDeploy=true
mapperClass=org.apache.catalina.core.StandardHostMapper autoDeploy=true
configClass=org.apache.catalina.startup.ContextConfig
errorReportValveClass=org.apache.catalina.valves.ErrorReportValve
debug=0 deployXML=true
contextClass=org.apache.catalina.core.StandardContext unpackWARs=true
name=localhost
 Context
AAA
/Context

 Context
CCC
/Context
  /Host
/Engine
  /Service

  Service className=org.apache.catalina.core.StandardService debug=0
name=Tomcat-8080
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
redirectPort=8443
address=localhost bufferSize=2048 port=8080 connectionTimeout=2
scheme=http
enableLookups=false secure=false
protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol debug=9
proxyPort=0
maxProcessors=75 minProcessors=5 tcpNoDelay=true acceptCount=10
useURIValidationHack=false
  Factory
className=org.apache.catalina.net.DefaultServerSocketFactory/
/Connector

Engine className=org.apache.catalina.core.StandardEngine
mapperClass=org.apache.catalina.core.StandardEngineMapper debug=0
defaultHost=localhost
name=Engine-800
  Host className=org.apache.catalina.core.StandardHost
appBase=webapps liveDeploy=true
mapperClass=org.apache.catalina.core.StandardHostMapper autoDeploy=true
configClass=org.apache.catalina.startup.ContextConfig
errorReportValveClass=org.apache.catalina.valves.ErrorReportValve
debug=0 deployXML=true
contextClass=org.apache.catalina.core.StandardContext unpackWARs=true
name=localhost
 Context
BBB
 /Context
 Context
DDD
 /Context
  /Host
/Engine
  /Service

/Server



---
Dott.Ing. Marco Baiguera
Web Application Designer

T.C.TELECENTRAL s.r.l.
Via Fura, 10
25122 Brescia - Italy
Tel  +39 030 3510701

NB. Nel rispetto della legge sulla privacy è fatto  divieto di
includere il presente indirizzo email in  CC, Forwards e Mailing list
senza previa autorizzazione. In caso di violazione della suddetta
richiesta sarete perseguiti legalmente.


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




RE: Tomcat 4.0.2, Apache 1.3.24, mod_jk, OpenBSDP 3.1 - eraticbehaviour

2002-09-27 Thread Milt Epstein

On Fri, 27 Sep 2002, danox wrote:

 Thanks for your response.
 here is my mod_jk.conf file.
 looks to me like the log directives are ok:

You might try setting your JkLogLevel to a lower level, so more
information gets output to it.  I think other allowable values are
warn, info, debug.  Also make sure the permission are such that the
process can write to the log.


 ## Auto generated on Mon Sep 23 13:17:20 EST 2002##

 IfModule !mod_jk.c
  LoadModule jk_module libexec/mod_jk.so
 /IfModule

 JkWorkersFile /usr/local/jakarta-tomcat-4.0.2/conf/jk/workers.properties
 JkLogFile /usr/local/jakarta-tomcat-4.0.2/logs/mod_jk.log

 JkLogLevel emerg



 VirtualHost monkeymagic
ServerName monkeymagic

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 / ajp13
JkMount /* ajp13
DocumentRoot /var/tomcat/webapps/ROOT
 /VirtualHost


 Milt Epstein wrote:

  On Wed, 25 Sep 2002, danox wrote:
 
 
 
  I have set up tomcat 4.0.2 to run with apache 1.3.24 on an OpenBSD
  platform. I used mod_jk to provide the connection, which I managed to
  compile from source on OpenBSD.
 
  I am having 2 problems,  believe if I resolved the first it would help
  me someways to resolve the second.
 
  1)
  mod_jk creates a log file, but never writes to it. the log is always 0
  length. I have used the following lines to try and get it to produce a
  log file:
  ***
   !-- Define the default virtual host --
   Host name=monkeymagic debug=0 appBase=/var/tomcat/webapps
  unpackWAR
  s=true
 
 !-- this line is included for apache integration using mod_jk --
  Listener
  className=org.apache.ajp.tomcat4.config.ApacheConfig append =true
  forwardAll=true noRoot=false jkDebug=debug  /
  ***
 
  I have tried this with jkDebug=debug and jkDebug=error as well. (got
  this from
  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html)
 
  Everything else goes fine, catalina.out reveals that tomcat-apache has
  started, and I can actually get apache to talk to tomcat, but no log
  file is generated.
 
 
  [ ... ]
 
  I believe the mod_jk log file is controlled by directives that go in
  the Apache httpd.conf (perhaps via an Include).  (The above Listener
  is to have Tomcat auto-generate a mod_jk.conf file.)  Check out the
  JkLogFile and JkLogLevel directives.  You show that you include the
  auto-generated mod_jk.conf file, but you don't show what's in it.
 
  Don't know about 2.
 
  Milt Epstein
  Research Programmer
  Integration and Software Engineering (ISE)
  Campus Information Technologies and Educational Services (CITES)
  University of Illinois at Urbana-Champaign (UIUC)
  [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]


Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




Re: javax error

2002-09-27 Thread Atif Shahab


Wonderful! it worked! as in I got an error message.  There was no stack
trace printed out but the error message is

java.lang.NoClassDefFoundError: javax/servlet/ServletRequest


On Fri, 27 Sep 2002, Tim Funk wrote:

 No, there is probably and uncaught exception in your code. Instead of my
 previous post - you can change:
 } catch( Exception e )
   TO
 } catch( Throwable e )

 NullPointerExceptions and other exceptions are not caught by Exception
 but they are caught by Throwable, which is the lowest level.

 Failing that - do wrap the entire page in the snippet I provided. If the
 snippet you provided was the ENTIRE page - then my wrapping the entire
 page suggestion is useless. (I am not accustomed to very short JSP pages)


 Atif Shahab wrote:
  I don't get it.
 
  currently I have
 
  %@ page import=java.util.*, java.io.*, com.oreilly.servlet.*,
  com.oreilly.servlet.multipart.* %
  %
try
{
  int DEFAULT_MAX_POST_SIZE = 1024 * 1024;
  MultipartParser parser;
  parser = new MultipartParser( request
, DEFAULT_MAX_POST_SIZE );
} catch( Exception e )
{
  out.println( Sorry! An error was detected );
}
  %
 
  1. you want me put another try over this block?
  or
  2. make another page and then include this page?
 
  if it's optione 1 then doing that doesn't help.  This exeception is
  comming from the code generated by tomcat.  It doesn't even seem to get
  to my code. If an exception is generated by my code then I should have
  caught it and not the exception handler code generated by tomcat.
 
  Another question is, is this a bug in tomcat?  Initially I was more
  inclined to believe that it was my code but it seems that somehow tomcat
  is screwing up.
 
 
   On Fri, 27 Sep 2002, Tim Funk wrote:
 
 
 I can't tell the exact error from the stack trace and code. When this
 happens to me, I wrap the entire page in a try/catch similar to the
 following:
 
 %try { %
 YOUR JSP PAGE HERE
 %
} catch(Throwable e) {
  e.printStackTrace();
  out.println(D'oh: an error occurred - go see the catalina.out!);
  out.println(Here's a hint: PRE + e + /PRE);
}
 %
 
 
 The stacktrace will show where the REAL error occured and you can follow
 it from there. Currently the error is being wrapped by multiple
 ServletExceptions and the error handler(by tomcat) isn't logging deep
 enough. (I think)
 
 
 Atif Shahab wrote:
 
 ok, here is the code generated by tomcat (line numbers added by me).  Also
 the compiler doesn't seem to have any problems compiling, this is a run
 time error.
 
 47:  try
 48:   {
 49:int DEFAULT_MAX_POST_SIZE = 1024 * 1024;
 50:MultipartParser parser;
 51:parser = new MultipartParser( request
 52:  , DEFAULT_MAX_POST_SIZE );
 53:  } catch( Exception e )
 54:  {
 55:out.println( Sorry! An error was detected );
 56:  }
 57:  out.write(\n);
 58:} catch (Throwable t) {
 59:  out = _jspx_out;
 60:  if (out != null  out.getBufferSize() != 0)
 61:out.clearBuffer();
 62:  if (pageContext != null) pageContext.handlePageException(t);
 63:} finally {
 64:  if (_jspxFactory != null)
 65:_jspxFactory.releasePageContext(pageContext);
 66:}
 67:  }
 68:}
 
 
 On Thu, 26 Sep 2002, Tim Funk wrote:
 
 
 
 Look for a file called testing_jsp.java. This is the java file created
 by your JSP by tomcat. Line 62 will give you more insight to the error.
 
 The java file should be buried somewhere under $CATALINA_HOME/work. Use
 a find command to locate the file.
 
 Atif Shahab wrote:
 
 
 hope this helps
 
 -
 
 HTTP Status 500 -
 
 type Exception report
 
 message
 
 description The server encountered an internal error () that prevented it
 
 from fulfilling this request.
 
 exception
 
 org.apache.jasper.JasperException: javax/servlet/ServletRequest
  at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:246)
  at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
  at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
  at
 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
  at
 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
  at
 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191)
  at
 

Re: JDBC Connnection Pool for Oracle

2002-09-27 Thread Felipe Schnack

  Why don't you use oracle's own pool implementation? I used it once, is
quite good.

On Thu, 2002-09-26 at 19:55, Zeeshan wrote:
 Hello :)
 I am using Tomcat 4.0.4 with JDK1.4
 I am getting the followig exception while creating the DataSource:
 javax.naming.NamingException: Cannot create resource instance
 
 Following is  my code, server.xml and web.xml entries.
 I will really appreciate if anyone can help me out here.
 
 Thanx in advance
 
 Zeeshan
 
 Java Code
 
 ctx = (Context) new InitialContext().lookup(java:comp/env);
  if (ctx!=null) {
   dataSource = (javax.sql.DataSource) ctx.lookup(jdbc/datasource);
   connection = dataSource.getConnection();
 }
 
 Server.xml
 
 Resource name=jdbc/datasource auth=Container 
type=oracle.jdbc.pool.OracleDataSource/
   ResourceParams name=jdbc/datasource
parameternameusername/namevaluetest/value/parameter
parameternamepassword/namevaluetest/value/parameter

parameternamedriverClassName/namevalueoracle.jdbc.driver.OracleDriver/value/parameter
parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
namedriverName/name
valuejdbc:oracle:thin:@localhost:1521:ORACLE/value
/parameter
parameter
  nameurl/namevaluejdbc:oracle:thin:@localhost:1521:ORACLE/value
/parameter
parameternamemaxActive/namevalue100/value/parameter
parameternamemaxIdle/namevalue3/value/parameter
parameternamemaxWait/namevalue100/value/parameter
  /ResourceParams
 
 Web.xml
 ===
 resource-ref
  descriptionResource reference to java.sql.Connection factory defined in 
server.xml /description
  res-ref-namejdbc/datasource/res-ref-name
  res-typeoracle.jdbc.pool.OracleDataSource/res-type
  res-authContainer/res-auth
 /resource-ref
 
-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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




RE: Tomcat 4.1.12 memory leak, resources leak, what to do ?

2002-09-27 Thread Cox, Charlie

post it as a bug to http://nagoya.apache.org/bugzilla/

Charlie

 -Original Message-
 From: Ing. Damiano Bolla [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 27, 2002 6:19 AM
 To: Tomcat Users List
 Subject: Re: Tomcat 4.1.12 memory leak, resources leak, what to do ?
 
 
 Thanks to all that have replied, the problem is still here 
 and what follows 
 are the tests I did
 To clear the issue here it is what I am doing
 
 --
 - Clean install of redhat 7.2 or Suse 7.1 (same results for 
 both platforms)
 - Clean installation of tomcat 4.1.12
 - Clean installation if JDK 1.4.1 (the same happens with 
 1.4.0.2 or 1.3.1)
 - What I am doing is http://localhost:8080/  and keep 
 refreshing that with F5
 - I am NOT testing my own servlet. I am NOT doing anything else !!!
 
 I monitor memory usage using top and sorting the results by 
 memory. I am 
 looking at the SIZE column.
 What I get is an EVER INCREASING memory usage. Something like
 30212
 30220
 31016
 31040
 31576
 
 -
 I did try the various suggestions and as far as I can tell it 
 is not a 
 pure  memory issue but it probably is a resource issue, maybe 
 a file not 
 closed or a socket ...
 The question, what should I do next ?
 Who should I report the problem to ?
 
 I must say that it is very easy to reproduce.
 
 Damiano
 
 
 
 At 20.11 26/09/2002 -0500, you wrote:
 The easiest way to track JVM garbage collection is to start 
 java with the
 -verbose:gc arg.  This enables GC data output to stdout.
 
 Regards,
 
 Glenn
 
 
 Raj Saini wrote:
 I am experiencing the same problem with tomcat 4.0.3. I 
 have my JVM memory
 setting as -Xms=32 -Xmx=384 and running the tomcat on Sun 
 Solaris 2.7,
 integrated with Apache 1.3.x through warp connector.
 I have a JSP page monitoring the memory consumption at
 http://www.emerging-trade.pt/servlets/memory.jsp, The 
 memory consumption
 pattern of the JSP shows the GC runs as you can see the 
 increase/decerece in
 the free memory of the current heap size.
 Raj Saini
 Raj Saini
 - Original Message -
 From: Tim Funk [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, September 26, 2002 2:29 PM
 Subject: Re: Tomcat 4.1.12 memory leak
 
 
 Each request allocates memory. (And relinquishes accordingly) The
 garbage collector runs when it feels like it should. The JVM will
 continually suck up memory until it reaches its startup 
 parameters. (-mx
 ...)
 
 Once a JVM takes memory from the OS - it does not release 
 it to the OS -
 it only releases it to its own memory heap.
 
 Ing. Damiano Bolla wrote:
 
 System: Linux redhat 7.2
 Java: /usr/local/j2sdk1.3.1
 Tomcat 4.1.12
 
 To reproduce the behaviour you install the 4.1.12 
 distribution, set the
 JAVA_HOME run startup.sh and then keep refreshing the homepage
 http://localhost:8080/
 
 If you monitor the memory usage using top and switching 
 it into display
 memory usage (Capital M) you sull see tipically something like
 
 22824
 22832
 22840
 23576
 23676
 23684
 23904
 23908
 23934
 23938
 .
 
 This is the SIZE field of the top command.
 The point is that it never goes down and eventually you 
 run very slowly.
 
 Any idea ?
 
 Ah, the same behaviour is with jdk 1.4.1
 
 Damiano
 
 
 --
 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: Tomcat 4.1.12 memory leak, resources leak, what to do ?

2002-09-27 Thread peter lin


out of curiousity, have you tried it with jdk1.4.0?

it could be there's a memory leak with jdk1.4.1.  You may also want to
check Sun's java bug database to see if there isn't already a bug
reported related to your findings.


peter lin


  -Original Message-
  From: Ing. Damiano Bolla [mailto:[EMAIL PROTECTED]]
  Sent: Friday, September 27, 2002 6:19 AM
  To: Tomcat Users List
  Subject: Re: Tomcat 4.1.12 memory leak, resources leak, what to do ?
 
 
  Thanks to all that have replied, the problem is still here
  and what follows
  are the tests I did
  To clear the issue here it is what I am doing
 
  --
  - Clean install of redhat 7.2 or Suse 7.1 (same results for
  both platforms)
  - Clean installation of tomcat 4.1.12
  - Clean installation if JDK 1.4.1 (the same happens with
  1.4.0.2 or 1.3.1)
  - What I am doing is http://localhost:8080/  and keep
  refreshing that with F5
  - I am NOT testing my own servlet. I am NOT doing anything else !!!
 
  I monitor memory usage using top and sorting the results by
  memory. I am
  looking at the SIZE column.
  What I get is an EVER INCREASING memory usage. Something like
  30212
  30220
  31016
  31040
  31576
 
  -
  I did try the various suggestions and as far as I can tell it
  is not a
  pure  memory issue but it probably is a resource issue, maybe
  a file not
  closed or a socket ...
  The question, what should I do next ?
  Who should I report the problem to ?
 
  I must say that it is very easy to reproduce.
 
  Damiano
 
 

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




RE: HOW TO: How do I allocate memory in JVM for extra virtual hosts

2002-09-27 Thread Takaoglu, Uzay

 There are several things you can do (on 1.3.1 and after):

 1. Make sure your global and local class parms are explicitly set to null
after the work is being completed
 2. Heavily used classes should provide their own finalize methods
 3. You will need to call JVM to run finalization and recommend JVM to run
the GC. (System.runFinalization() and System.gc() ). However, be very
careful with these methods since specially System.runFinalization() might
clean up the objects that you still need. 
 4. Use -server option for HotSpot since it's GC is much better than regular
GC
 5. If all above does not work, then try using java.lang.ref.Reference
package to explicitly define your reference types so they would easily be
collected by the GC (weak references, unreachable object etc.)
 6. do NOT set Xmx and Xms to same value
 7. Look at -XX options of the JVM and do more reading abouts eden, young,
old generations. Some options are XX:SurvivorRatio and
XX:SoftRefLRUPolicyMSPerMB 

-Original Message-
From: Donie Kelly
To: 'Tomcat Users List'
Sent: 9/27/02 6:12 AM
Subject: HOW TO: How do I allocate memory in JVM for extra virtual hosts

Hi all
I am running tomcat 4.0.1 with virtual hosting and was wondering how
much
memory to allocate to each additional host. By default, we use 64M for
one
host but adding another 64M for second host seems excessive considering
it's
the same tomcat instance.
However, if we add a lot the JVM will use more memory before garbage
collection and we've seen a 30 second (!!!) delay when using 1G Ram on
JVM
as it just kept using memory until it ran out. It then had almost 1G of
ram
to garbage collect. How can I force garbage collection to be more
aggressive
and do it more often when garbage is small enough not to cause a
problem?
As we need this to run in a production environment we cannot possible
allow
a JVM to go for a garbage break for 30 seconds
Any insight or help is greatly appreciated.
Donie


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




[ANNOUNCE] New Windows connector binary posted

2002-09-27 Thread Turner, John


Thanks to Robert Sowders, there is a mod_jk2.dll file available in my
connector collection now.

This DLL is for Apache 2.0.42 and is compiled from 4.1.12 connector sources.

After downloading, change the file name to mod_jk2.dll.

http://www.johnturner.com/howto

If you have a connector binary and would like to share it with others, let
me know.  I would be happy to host it.  If you send me one off-list, please
make sure you tell me:

- Your name
- Operating System (with version)
- Apache version
- Connector source/Tomcat version

Thank you!

- John


John Turner
[EMAIL PROTECTED]
Advertising Audit Service
http://www.aas.com


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




Re: Context and URL

2002-09-27 Thread Bill Blackmon

I've tried that. The apps log states:
 invoker: init
jsp: init
StandardContext[/EGPS]: Starting completed

at the end of the file and everything else seems loaded successfully, but
still '404 Not Found' for the URL http://www.billblackmon.com/EGPS/ .
Strange...


- Original Message -
From: Raghupathy, Gurumoorthy [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, September 27, 2002 8:10 AM
Subject: RE: Context and URL


 the config should be

 Host name=billblackmon.com
  Context path=/EGPS
 docBase=/home/billblac/tomcat/build/webapps/EGPS debug=6
 reloadable=true
 !-- much more follows --
 /context
 /host


 and on the browser type http://somedomain.com:yourport/EGPS




 -Original Message-
 From: Bill Blackmon [mailto:[EMAIL PROTECTED]]
 Sent: 27 September 2002 12:40
 To: TOMCAT USERS GROUP
 Subject: Context and URL


 My host has given me /home/billblac/tomcat/build/webapps to tack onto my
 context and most paths in my file
 references in web.xml and server.xml files, thus I have the following
entry
 in the server.xml file:

 Host name=billblackmon.com
  Context path=/home/billblac/tomcat/build/webapps/EGPS
 docBase=/home/billblac/tomcat/build/webapps/EGPS debug=6
 reloadable=true
 !-- much more follows --
 /context
 /host

 The host has also given me the following entries:

Host name=216.218.203.117
 Context path= docBase=/home/billblac/public_html debug=6/
 Context path=/manager
 docBase=/home/billblac/tomcat/build/webapps/manager debug=6
 privileged=true/
 Valve className=org.apache.catalina.valves.AccessLogValve
 directory=/home/billblac/logs prefix=access_log. suffix=.log
 pattern=common/
 Logger className=org.apache.catalina.logger.FileLogger
 directory=/home/billblac/logs prefix=context_log. suffix=.log
 timestamp=true/
/Host



Host name=www.billblackmon.com
 Context path= docBase=/home/billblac/public_html debug=6/
 Context path=/manager
 docBase=/home/billblac/tomcat/build/webapps/manager debug=0
 privileged=true/
 Valve className=org.apache.catalina.valves.AccessLogValve
 directory=/home/billblac/logs prefix=access_log. suffix=.log
 pattern=common/
 Logger className=org.apache.catalina.logger.FileLogger
 directory=/home/billblac/logs prefix=context_log. suffix=.log
 timestamp=true/
/Host

 These entries seem redundant and there is no explanation yet.

 The app loads without errors in the log files. I was hoping to be able to
 access the app by using the URL
 billblackmon.com/EGPS but no matter what combination of paths I use in the
 URL I get '404 not found'  messages
 in the browser.

 Any hints or explanations on why I need 3 entries and why the app is not
 found?

 Thanks,
 Bill


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




What Java Profile tool do you use?

2002-09-27 Thread Hauck, Joe

Hello all,

What java profiling tool do you recommend for java servlets? (Memory
consumption, garbage collection, process hogs, etc.)

Thanks.

Joe.

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




RE: Tomcat 4.1.12 memory leak, resources leak, what to do ?

2002-09-27 Thread Shapira, Yoav

Hi,

- What I am doing is http://localhost:8080/  and keep refreshing that
with
F5
- I am NOT testing my own servlet. I am NOT doing anything else !!!

I monitor memory usage using top and sorting the results by memory. I
am
looking at the SIZE column.
What I get is an EVER INCREASING memory usage. Something like
30212
30220
31016
31040
31576

Why is that necessarily a leak??? The JVM will allocate as much memory
as it wants even for identical resources, up to when a GC is needed.  As
long as this is all you're doing, it could go up to close to 64MB (the
default limit), before everything will be GCed.  

Did you try going up that high?

I wouldn't rush to put in a bug for this ;)

Yoav Shapira
Millennium ChemInformatics


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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: What Java Profile tool do you use?

2002-09-27 Thread Shapira, Yoav

Hi,
OptimizeIt.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Hauck, Joe [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 8:59 AM
To: [EMAIL PROTECTED]
Subject: What Java Profile tool do you use?

Hello all,

What java profiling tool do you recommend for java servlets? (Memory
consumption, garbage collection, process hogs, etc.)

Thanks.

Joe.

--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


war not being fully unpacked

2002-09-27 Thread Bryan Dollery

Hi guys,

I'm deploying a war from ANT using the Catalina ant tasks. It seems that
the only things being unpacked are the classes. I've got a WEB-INF/lib
directory that's being ignored, and a bunch of XML files in WEB-INF/classes
that are also being ignored. The files are definitely in the war, and
they're in the right place in the war.

Has anyone got any idea about why this would be happening?

Cheers,

Bryan

b r y a n   d o l l e r y
c h a o s   e n g i n e e r s
 www.ChaosEngineers.co.nz
 +64 (0)21 330607


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




Howto configure mod_jk2/apache2/virtual Hosts/mod_rewrite

2002-09-27 Thread Alexander Schulz

Hi

I switched my servlet environment from apache 1.3.24/tomcat 4.0.4/mod_jk
to apache 2.0.42/tomcat4.1.10/mod_jk2.

Everything ist working fine except the kombination of URL rewriting with
mod_rewrite and mod_jk2.

This configuration ist working fine with the old environment:
...
VirtualHost xxx.xxx.xxx.xxx
ServerName www.xxx.de
DocumentRoot /usr/shared/sebp/data
Alias /images /usr/shared/sebp/data/images/
Alias /css /usr/shared/sebp/data/css/
Alias /statistics /usr/shared/xxx/data/statistics
ErrorLog /usr/shared/xxx/logs/error.log
CustomLog /usr/shared/xxx/logs/access.log combined
RewriteEngine on
RewriteRule ^/index.html /universal/servlet [R,L]
RewriteRule ^/$ /universal/servlet [R,L]
RewriteRule ^/images/(.*) /images/$1 [L]
RewriteRule ^/css/(.*) /css/$1 [L]
RewriteRule ^/static/(.*) /static/$1 [L]
RewriteRule ^/universal/(.*) /universal/$1 [L]
RewriteRule ^/eba http://www.xxx.de/ [R,L]
RewriteRule ^/eba/ http://www.xxx.de/ [R,L]
RewriteRule ^/(.*) http://www2.xxx.de/$1 [R,L]
JkMount /universal/* ajp13
/VirtualHost
...

I changed it to:
...
VirtualHost xxx.xxx.xxx.xxx
ServerName www.xxx.de
DocumentRoot /usr/shared/sebp/data
Alias /images /usr/shared/sebp/data/images/
Alias /css /usr/shared/sebp/data/css/
Alias /statistics /usr/shared/xxx/data/statistics
ErrorLog /usr/shared/xxx/logs/error.log
CustomLog /usr/shared/xxx/logs/access.log combined
RewriteEngine on
RewriteRule ^/index.html /universal/servlet [R,L]
RewriteRule ^/$ /universal/servlet [R,L]
RewriteRule ^/images/(.*) /images/$1 [L]
RewriteRule ^/css/(.*) /css/$1 [L]
RewriteRule ^/static/(.*) /static/$1 [L]
RewriteRule ^/universal/(.*) /universal/$1 [L]
RewriteRule ^/eba http://www.xxx.de/ [R,L]
RewriteRule ^/eba/ http://www.xxx.de/ [R,L]
RewriteRule ^/(.*) http://www2.xxx.de/$1 [R,L]
Location /universal/*
SetHandler jakarta-servlet2
JkUriSet worker ajp13
/Location
/VirtualHost
...

Without rewriting it works well.

Please, can someone tell me whats wrong and how to fix it?

Thank you.
Alexander Schulz


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




RE: war not being fully unpacked

2002-09-27 Thread Bryan Dollery

forgot to mention - JDK1.4.1, Tomcat 4.1.10

 Hi guys,

 I'm deploying a war from ANT using the Catalina ant tasks. It seems that
 the only things being unpacked are the classes. I've got a WEB-INF/lib
 directory that's being ignored, and a bunch of XML files in
 WEB-INF/classes
 that are also being ignored. The files are definitely in the war, and
 they're in the right place in the war.

 Has anyone got any idea about why this would be happening?

 Cheers,

 Bryan

 b r y a n   d o l l e r y
 c h a o s   e n g i n e e r s
  www.ChaosEngineers.co.nz
  +64 (0)21 330607


 --
 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: What Java Profile tool do you use?

2002-09-27 Thread David Kavanagh

I've used OptimizeIt and JProbe. For each, I've configured tomcat like a 
normal app. They both are able to use Tomcat as a web app container to 
debug your web app, but I'm not sure why I should have done that. I like 
OptimizeIt a little better, but they both get the job done.

David

Hauck, Joe wrote:

Hello all,

What java profiling tool do you recommend for java servlets? (Memory
consumption, garbage collection, process hogs, etc.)

Thanks.

Joe.

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




AW: Questions about Tomcat/Servlets

2002-09-27 Thread Ralph Einfeldt

Just answering 2:

Only JSP's are compiled automagically from .jsp to .java to .class.
(Note that the step to create .java is implementation specific, a
jsp engine could also directly produce the class file)

Servlets (that are not generated from jsp files) are not compiled 
automagically. That must be done by yourself.

 -Ursprüngliche Nachricht-
 Von: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 27. September 2002 15:04
 An: Tomcat Users List
 Betreff: Questions about Tomcat/Servlets
 
 2) How do you get a .class file when you create a .java 
 Servlet file?  I was hoping that if I delete a .class file 
 and the .java file still exists, the .class file gets 
 recreated/recompiled automatically by Tomcat.
 

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




Running class finalize method when stopping/restarting a WebApp

2002-09-27 Thread Oakleaf Admin

Hi,
 
I have an application scope class that is managing an Oracle connection
cache to my database. 
 
The finalize method of this class is written to terminate all connections
and close the connection cache. 
 
However, when I stop the webapp or restart it (using the manager app) the
finalize of this class is not run everytime (about1 in every 3 times it does
run), furthermore it seems to me that Tomcat is keeping a reference to the
class as the garbage collector never closes it and Oracle DCD cannot
terminate the connection as it thinks it is still alive. 
 
Can anyone tell me how to ensure the finalize method is run everytime the
webapp is stopped/restarted or if there is any other way of doing the same
thing ?
 
Thanks in advance, Eddie
 



Re: Starting problems

2002-09-27 Thread Sebastien Col

Thanks a lot.
Here is the exception. Apparently, a class is missing, but the
common-collections.jar is in %CATALINA_HOME%\common\lib, so I don't
understand. Do I have to put these JAR files in the classpath?


Using CATALINA_BASE:   c:\jakarta\tomcat4.1
Using CATALINA_HOME:   c:\jakarta\tomcat4.1
Using CATALINA_TMPDIR: c:\jakarta\tomcat4.1\temp
Using JAVA_HOME:   c:\j2sdk1.4.1
27-Sep-2002 9:23:31 AM org.apache.commons.logging.impl.Jdk14Logger error
SEVERE: Begin event threw error
java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap
at
org.apache.commons.beanutils.BeanUtils.clinit(BeanUtils.java:106)
at
org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule
.java:259)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1237)

at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXP
arser.java:454)
at
org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBi
nder.java:571)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidat
or.java:756)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(XMLDocumentFragmentScannerImpl.java:752)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanR
ootElementHook(XMLDocumentScannerImpl.java:942)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1520)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
LDocumentFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:524)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:580)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1169)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
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.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Exception during startup processing
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.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.NoClassDefFoundError:
org/apache/commons/collections/FastHa
shMap
at
org.apache.commons.beanutils.BeanUtils.clinit(BeanUtils.java:106)
at
org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule
.java:259)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1237)

at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXP
arser.java:454)
at
org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBi
nder.java:571)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidat
or.java:756)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(XMLDocumentFragmentScannerImpl.java:752)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanR
ootElementHook(XMLDocumentScannerImpl.java:942)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1520)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
LDocumentFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:524)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:580)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1169)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
... 5 more



- Original Message -
From: John Trollinger [EMAIL PROTECTED]
To: 

Re: Help Urgently needed, Security problem

2002-09-27 Thread ed banfa


Hey Rick,
Man ur da BOMB, yes it work!. Thanks a lot.
Now its back to da labs to see my baby(tomcat), be right back with more quetions
thanks bro
Edward
 Rick Fincher wrote:Hi Ed,

You have a couple of problems. First, you left out the user data constraint
transport guarantee tag that forces Tomcat to use HTTPS. A security
constraint has to have 3 things: 1- the web resource collection describing
what to protect, 2- the authorization constraint describing who gets access,
and 3- the user data constraint telling how to protect it at the transport
level. Since you mentioned that you set up port 8443 I presume you want to
use secure HTTP, so the transport guarantee has to be set to CONFIDENTIAL.
Use NONE for no encryption or INTEGRAL to prevent changes in data but not
necessarily to prevent observation of the data during transport.

One note: Port 8443 isn't the default HTTPS port. It is the default in
Tomcat so that you can do development without interfering with the
production port. If you don't change this to 443 you'll have to put the
port number (8443) in your web address to access this webapp.

One other thing that might cause a problem in your web.xml file: you had
your login config out of order. It comes before security role. Some
parsers are picky about that.

The order from the servlet 2.3 specification is:


distributable?, context-param*, filter*, filter-mapping*,

listener*, servlet*, servlet-mapping*, session-config?, mimemapping*,

welcome-file-list?, error-page*, taglib*, resourceenv-

ref*, resource-ref*, security-constraint*, login-config?,

security-role*, env-entry*, ejb-ref*, ejb-local-ref*)

A corrected web.xml file is below. Hope this helps.

Rick

 

 

 

 

 Secure Area

 

 /secure/*

 

 

 manager

 tomcat

 



CONFIDENTIAL




 




BASIC

User Basic Authentication




 

 manager

 


 

- Original Message -
From: ed banfa 
To: 
Sent: Thursday, September 26, 2002 3:23 PM
Subject: Help Urgently needed, Security problem


 Hi ,

 How is everyone doing, hope ok.

 I have this problem with trying to use Basic authentication with my web
app. I have Tomcat 4.1.10 up and running on win 2000 machine using j2sdk1.4.

 Tomcat is listening on port 8443 for SSL connnections. I would like the
browser to display a login box to the user when the user attempts to access
a protected resource. When I try to check/test the app, It allows me into
the restricted area with out having to log in. I expect to be promted to
enter a user name and a password but hey nothing like thats happens. What am
I doing wrong.



 Please if u can help me out I will appreciate it

 Below is what my web.xml looks like. The manager role is the same role
name I specified in tomcat-users.xml

 

 

 

 

 Secure Area

 

 /secure/*

 

 

 manager

 tomcat

 

 

 

 manager

 

 

 BASIC

 User Basic Authentication

 

 



 Thanks in advance

 Edward







 -
 Do you Yahoo!?
 New DSL Internet Access from SBC  Yahoo!


--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!


reloadable=true

2002-09-27 Thread Lindomar

Hi everybody!

I set this property(reloadable=true) on my context in server.xml, but don´t works?!
When i change any class, tomcat don't work until i restart it.

Any idea about this problem?

Thanks in advanced.





MIME type

2002-09-27 Thread Mistry, Samir (US - Boston)

This is a quick question about Tomcat config.  How can configure Tomcat so 
that it sends HTML rather than octet-stream? 
  
Thanks, 
Samir 


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




RE: Tomcat 4.1.12 memory leak, resources leak, what to do ?

2002-09-27 Thread Ing. Damiano Bolla

Yes, I did let it run and it keeps eating.
I have other production systems that exibit the problem and they need 
rebooting.

In any case, did any of you tried what I did ?

If you have not, then please do not comment..
If you have and everything is fine, then please tell me what setup you are 
using.

As far as I see this IS a problem.

Thanks.

P.S. Asking for help at bugzilla had no effect.

At 09.02 27/09/2002 -0400, you wrote:
content-class: urn:content-classes:message
Content-Type: text/plain;   charset=us-ascii
Content-Disposition: inline

Hi,

 - What I am doing is http://localhost:8080/  and keep refreshing that
with
 F5
 - I am NOT testing my own servlet. I am NOT doing anything else !!!
 
 I monitor memory usage using top and sorting the results by memory. I
am
 looking at the SIZE column.
 What I get is an EVER INCREASING memory usage. Something like
 30212
 30220
 31016
 31040
 31576

Why is that necessarily a leak??? The JVM will allocate as much memory
as it wants even for identical resources, up to when a GC is needed.  As
long as this is all you're doing, it could go up to close to 64MB (the
default limit), before everything will be GCed.

Did you try going up that high?

I wouldn't rush to put in a bug for this ;)

Yoav Shapira
Millennium ChemInformatics
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:   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: JDBC Connnection Pool for Oracle

2002-09-27 Thread echambe1


Zeeshan:

To correct this issue, everyewhere you have
oracle.jdbc.pool.OracleDataSource,
replace it with javax.sql.DataSource

Thanks,
ej





Felipe Schnack [EMAIL PROTECTED] on 09/27/2002 09:19:53 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:Re: JDBC Connnection Pool for Oracle


  Why don't you use oracle's own pool implementation? I used it once, is
quite good.

On Thu, 2002-09-26 at 19:55, Zeeshan wrote:
 Hello :)
 I am using Tomcat 4.0.4 with JDK1.4
 I am getting the followig exception while creating the DataSource:
 javax.naming.NamingException: Cannot create resource instance

 Following is  my code, server.xml and web.xml entries.
 I will really appreciate if anyone can help me out here.

 Thanx in advance

 Zeeshan

 Java Code
 
 ctx = (Context) new InitialContext().lookup(java:comp/env);
  if (ctx!=null) {
   dataSource = (javax.sql.DataSource) ctx.lookup(jdbc/datasource);
   connection = dataSource.getConnection();
 }

 Server.xml
 
 Resource name=jdbc/datasource auth=Container type
=oracle.jdbc.pool.OracleDataSource/
   ResourceParams name=jdbc/datasource
parameternameusername/namevaluetest/value/parameter
parameternamepassword/namevaluetest/value/parameter

parameternamedriverClassName/namevalueoracle.jdbc.driver.OracleDriver/value/parameter

parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
namedriverName/name
valuejdbc:oracle:thin:@localhost:1521:ORACLE/value
/parameter
parameter
  nameurl/namevaluejdbc:oracle:thin:
@localhost:1521:ORACLE/value
/parameter
parameternamemaxActive/namevalue100/value/parameter
parameternamemaxIdle/namevalue3/value/parameter
parameternamemaxWait/namevalue100/value/parameter
  /ResourceParams

 Web.xml
 ===
 resource-ref
  descriptionResource reference to java.sql.Connection factory
defined in server.xml /description
  res-ref-namejdbc/datasource/res-ref-name
  res-typeoracle.jdbc.pool.OracleDataSource/res-type
  res-authContainer/res-auth
 /resource-ref

--

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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









**
Confidentiality Notice: This email message, including any attachments,
contains or may contain confidential information intended only for the 
addressee.  If you are not an intended recipient of this message, be 
advised that any reading, dissemination, forwarding, printing, copying 
or other use of this message or its attachments is strictly prohibited.  
If you have received this message in error, please notify the sender 
immediately by reply message and delete this email message and any 
attachments from your system. 
**


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




Re: Starting problems

2002-09-27 Thread Sebastien Col

Ok, I solve the problem by copying the commons-***.jar in the /lib\ext of
the jdk.
Is there another way?
Thanks again
Seb


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




Tomcat killing SuSE?

2002-09-27 Thread Alexander Banthien

Hello there,

I wanted to share some of my trouble with the people on this list. maybe
some of you knows a way out of it.

1) I am using Tomcat 3.2.4, IBM JDK 1.3, Apache 1.3.x and mod_jk. All of
these are pretty much unchanged and come from YaST/SuSE 7.3 on an Intel
system.

2) My Application is relying heavily on XSL (xalan 2.1.0), Dom (xerces
2.0.2), JDom and all those. They all came with Turbine 2.2 b3 and I am
using that.

Problem 1: when accessing the site through Apache and mod_jk, URL
rewriting didn't work. That is, session tracking didn't work. URLs got
rewritten, but tomcat didn't recognize the browser coming back and
assigned a new session.

Solution to 1: on one of my other servers I had a self-compiled mod_jk,
that did the job. If you ever need a reason to not trust SuSE and their
packages and distribution contact me, i'll give you plenty.

Problem 2: my servers once in a while stop. Yes, they do, stop entirely.
Can such a thing be blamed on a Java application? Lets say one without a
memory leak? Are there known pitfalls in the interplay: JVM, Apache,
Tomcat (also Xalan, Xerces, etc.) that can crash the entire operation
system? This happened on a machine that had been running for monthS
without any failure. The apache there was serving many applications, but
this was the first Java app.

No solution to that one so far and help greatly appreciated!

Cheers, Alex

--

___
Questech GmbH
Schwarzwaldstr. 19
79199 Kirchzarten

Fon: +49 (0)7661 90 35-15
Fax: +49 (0)7661 90 35-20
www.questech.de

___



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




RE: Tomcat 4.1.12 memory leak, resources leak, what to do ?

2002-09-27 Thread John Trollinger

Asking for help at bugzilla did have an effect.  The dev team told you
they have read these posts and do not feel it is a bug.

If you realy think it is a bug d/l the source and find it and submit a
patch.

 -Original Message-
 From: Ing. Damiano Bolla [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, September 27, 2002 10:13 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1.12 memory leak, resources leak, what to do ?
 
 
 Yes, I did let it run and it keeps eating.
 I have other production systems that exibit the problem and they need 
 rebooting.
 
 In any case, did any of you tried what I did ?
 
 If you have not, then please do not comment..
 If you have and everything is fine, then please tell me what 
 setup you are 
 using.
 
 As far as I see this IS a problem.
 
 Thanks.
 
 P.S. Asking for help at bugzilla had no effect.
 
 At 09.02 27/09/2002 -0400, you wrote:
 content-class: urn:content-classes:message
 Content-Type: text/plain;   charset=us-ascii
 Content-Disposition: inline
 
 Hi,
 
  - What I am doing is http://localhost:8080/  and keep 
 refreshing that
 with
  F5
  - I am NOT testing my own servlet. I am NOT doing anything else !!!
  
  I monitor memory usage using top and sorting the results 
 by memory. I
 am
  looking at the SIZE column.
  What I get is an EVER INCREASING memory usage. Something like 30212
  30220
  31016
  31040
  31576
 
 Why is that necessarily a leak??? The JVM will allocate as 
 much memory 
 as it wants even for identical resources, up to when a GC is 
 needed.  
 As long as this is all you're doing, it could go up to close to 64MB 
 (the default limit), before everything will be GCed.
 
 Did you try going up that high?
 
 I wouldn't rush to put in a bug for this ;)
 
 Yoav Shapira
 Millennium ChemInformatics
 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:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [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: reloadable=true

2002-09-27 Thread busch

I have the same problem. I have changed any Context in web.xml
and also checked the server.xml file for DefaultContext and stuff,
but Tomcat just won't reload classes.

I am using latest Tomcat 3.3 version, JDK1.3 IBM Linux

Regards
Danny


On 27 Sep 2002, at 11:07, Lindomar wrote:

 Hi everybody!

 I set this property(reloadable=true) on my context in server.xml, but don´t works?!
 When i change any class, tomcat don't work until i restart it.

 Any idea about this problem?

 Thanks in advanced.






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




RE: reloadable=true

2002-09-27 Thread Turner, John


Have you tried using the Manager app?  How are you updating your classes?
Just deleting them and adding the new one?

John


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 27, 2002 10:55 AM
 To: Tomcat Users List
 Subject: Re: reloadable=true
 
 
 I have the same problem. I have changed any Context in web.xml 
 and also checked the server.xml file for DefaultContext and stuff, 
 but Tomcat just won't reload classes.
 
 I am using latest Tomcat 3.3 version, JDK1.3 IBM Linux
 
 Regards
 Danny
 
 
 On 27 Sep 2002, at 11:07, Lindomar wrote:
 
  Hi everybody!
  
  I set this property(reloadable=true) on my context in 
 server.xml, but don´t works?!
  When i change any class, tomcat don't work until i restart it.
  
  Any idea about this problem?
  
  Thanks in advanced.
  
  
  
 
 
 
 --
 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.12 memory leak, resources leak, what to do ?

2002-09-27 Thread peter lin


I'm running stress testing right now on 4.1.12 with jdk1.4.0.

I see no memory leak problems with a real webapp that uses a ton of jstl
tags. I've run it with both -Xmx128 and without. I'm guessing the
culprit is something else.  one suggestion is to run a super simple
stand alone java program and have it run for 30 minutes. If you see a
memory leak, then you know the problem isn't with tomcat.

if you haven't tried running a java program with verbose GC, you really
should consider trying that to see if any patterns emerge.  If you see
the same number of objects garbaged, but the heap grows steadily that is
normal. On the other hand, if the number of objects garbaged is low and
decreases with time, then you know there's a leak some place.

the problem is only going to solved if you put in real effort to help
diagnose it.

peter


Ing. Damiano Bolla wrote:
 
 Yes, I did let it run and it keeps eating.
 I have other production systems that exibit the problem and they need
 rebooting.
 
 In any case, did any of you tried what I did ?
 
 If you have not, then please do not comment..
 If you have and everything is fine, then please tell me what setup you are
 using.
 
 As far as I see this IS a problem.
 
 Thanks.
 
 P.S. Asking for help at bugzilla had no effect.
 
 At 09.02 27/09/2002 -0400, you wrote:
 content-class: urn:content-classes:message
 Content-Type: text/plain;   charset=us-ascii
 Content-Disposition: inline
 
 Hi,
 
  - What I am doing is http://localhost:8080/  and keep refreshing that
 with
  F5
  - I am NOT testing my own servlet. I am NOT doing anything else !!!
  
  I monitor memory usage using top and sorting the results by memory. I
 am
  looking at the SIZE column.
  What I get is an EVER INCREASING memory usage. Something like
  30212
  30220
  31016
  31040
  31576
 
 Why is that necessarily a leak??? The JVM will allocate as much memory
 as it wants even for identical resources, up to when a GC is needed.  As
 long as this is all you're doing, it could go up to close to 64MB (the
 default limit), before everything will be GCed.
 
 Did you try going up that high?
 
 I wouldn't rush to put in a bug for this ;)
 
 Yoav Shapira
 Millennium ChemInformatics
 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:   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]




AW: Tomcat 4.1.12 memory leak, resources leak, what to do ?

2002-09-27 Thread Ralph Einfeldt

- The memory that a vm uses is never decreasing (At least I don't 
  know any that behave that way)
  To understand that you have to see two different things:
  - the memory that is used by the vm
  - the memory inside the vm 
  All vm's that I know, don't return memory to the os. What
  happens during a gc is just that inside the vm the memory is 
  marked as free. So the only save indicators for the question
  'how many memory is currently in use' are the methods
  java.lang.Runtime.get*Memory.
- To a certain degree it is normal that the memory is increasing.
  Reasons for that:
  - each session needs some memory, that is only released after
the session has timed out. If you create sessions very fast
this can consume quite some memory. (If you are creating
the sessions faster as they dye tomcat will die with an out 
of memory error.)
  - Just because an object isn't used anymore , is dosn't mean 
that the memory that is consumed by it is freed. This just 
happens, when the garbage collector runs. When this will 
happen, is up to the VM. Until then the memory will grow.
There is nothing you (or tomcat) can do about that from 
inside the application. The only action that has affect, 
is to play with the various parameters for the garbage 
collector as argument to the java process.

So what can you do, to track the problem down:
- Make shure that the request don't create new sessions.
  (There are several routes how to achieve that)
- Strip the page that you test down to a minmal jsp.
  (I haven't seen in your previous posts that
   you say anything about the nature of this page)
- Track the memory usage with java.lang.Runtime.get*Memory()
- Use the java options to achieve a verbose gc
- Set the maximal heap size to a lower bound, to see
  what happens when this value is reached.
- Profile the application with OptimizeIt or jProbe
  or any other profiler.
- show us your page, maybe it's the page that contains the 
  memory leak

Sun has some background and advice at:
http://java.sun.com/docs/hotspot/gc/
http://java.sun.com/products/hotspot/whitepaper.html

Also javaworld:
http://www.javaworld.com/javaworld/jw-01-2002/jw-0111-hotspotgc.html


Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

 -Ursprüngliche Nachricht-
 Von: Ing. Damiano Bolla [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 27. September 2002 16:13
 An: Tomcat Users List
 Betreff: RE: Tomcat 4.1.12 memory leak, resources leak, what to do ?
 
 
 Yes, I did let it run and it keeps eating.

 As far as I see this IS a problem.

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




Re: AW: Tomcat 4.1.12 memory leak, resources leak, what to do ?

2002-09-27 Thread Remy Maucherat

Ralph Einfeldt wrote:
 - The memory that a vm uses is never decreasing (At least I don't 
   know any that behave that way)
   To understand that you have to see two different things:
   - the memory that is used by the vm
   - the memory inside the vm 
   All vm's that I know, don't return memory to the os. What
   happens during a gc is just that inside the vm the memory is 
   marked as free. So the only save indicators for the question
   'how many memory is currently in use' are the methods
   java.lang.Runtime.get*Memory.
 - To a certain degree it is normal that the memory is increasing.
   Reasons for that:
   - each session needs some memory, that is only released after
 the session has timed out. If you create sessions very fast
 this can consume quite some memory. (If you are creating
 the sessions faster as they dye tomcat will die with an out 
 of memory error.)

To avoid that, you can either:
- use some more scalable manager (JDBC store or similar)
- set a maximum amount of active sessions (session creation will be 
denied after that until some timeout)

Remy


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




Setup Tomcat 4.1.12 Apache 2.0.42 with mod_jk but still errors?

2002-09-27 Thread David Wynter

Hi,

I successfully built the connectors, follwed the tutorial at yolinux but
still cannot get Apache to redirect gets to port 8080 to Tomcat. The site is
at www.roamware.com

Here are the contents of my logs and key config files. Can you see what is
wrong, 'cause I cannot.

error.log:

[Fri Sep 27 15:51:47 2002] [notice] Apache/2.0.42 (Unix) mod_jk/1.2.0
configured -- resuming normal operations

access_log:

213.120.115.98 - - [27/Sep/2002:15:51:59 +0100] GET / HTTP/1.1 304 0
213.120.115.98 - - [27/Sep/2002:15:52:00 +0100] GET /apache_pb.gif
HTTP/1.1 200 2326
213.120.115.98 - - [27/Sep/2002:15:52:00 +0100] GET
/rwsite/servlet/rwsite/template HTTP/1.1 500 613


mod_jk.log:

[Fri Sep 27 15:52:00 2002]  [jk_connect.c (177)]: jk_open_socket, connect()
failed errno = 111
[Fri Sep 27 15:52:00 2002]  [jk_ajp_common.c (626)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
[Fri Sep 27 15:52:00 2002]  [jk_ajp_common.c (872)]: Error connecting to the
Tomcat process.
[Fri Sep 27 15:52:00 2002]  [jk_ajp_common.c (1181)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 0
[Fri Sep 27 15:52:00 2002]  [jk_connect.c (177)]: jk_open_socket, connect()
failed errno = 111
[Fri Sep 27 15:52:00 2002]  [jk_ajp_common.c (626)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
[Fri Sep 27 15:52:00 2002]  [jk_ajp_common.c (872)]: Error connecting to the
Tomcat process.
[Fri Sep 27 15:52:00 2002]  [jk_ajp_common.c (1181)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 1
[Fri Sep 27 15:52:00 2002]  [jk_connect.c (177)]: jk_open_socket, connect()
failed errno = 111
[Fri Sep 27 15:52:00 2002]  [jk_ajp_common.c (626)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
[Fri Sep 27 15:52:00 2002]  [jk_ajp_common.c (872)]: Error connecting to the
Tomcat process.
[Fri Sep 27 15:52:00 2002]  [jk_ajp_common.c (1181)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 2

httpd.conf:

#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See URL:http://httpd.apache.org/docs-2.0/ for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as
a
# whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default'
server,
# which responds to requests that aren't handled by a virtual host.
# These directives also provide default values for the settings
# of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
# different IP addresses or hostnames and have them handled by the
# same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with / (or drive:/ for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with /, the value of ServerRoot is prepended -- so logs/foo.log
# with ServerRoot set to /usr/local/apache2 will be interpreted by the
# server as /usr/local/apache2/logs/foo.log.
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation (available
# at URL:http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot /usr/local/apache2

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
IfModule !mpm_winnt.c
IfModule !mpm_netware.c
#LockFile logs/accept.lock
/IfModule
/IfModule

#
# ScoreBoardFile: File used to store internal server process information.
# If unspecified (the default), the scoreboard will be stored in an
# anonymous shared memory segment, and will be unavailable to third-party
# applications.
# If specified, ensure that no two invocations of Apache share the same
# scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.
#
IfModule !mpm_netware.c
IfModule !perchild.c
#ScoreBoardFile logs/apache_runtime_status
/IfModule
/IfModule


#
# PidFile: The file in which the server should record its process
# identification number when it starts.
#
IfModule !mpm_netware.c
PidFile logs/httpd.pid

Integrating Apache 1.3 / Tomcat 4.12 on Redhat Linux 7.3

2002-09-27 Thread Curley, Thomas

Hello all,

I wish to integrate Apache 1.3 with Tomcat 4.1 on Redhat 7.3


I have looked at the 4.1 doc on site but am still a bit confused confusing.  For 
example it talks about turning on auto-config in tomcat but does not say how.  Should 
I use the mod_jk2 connector ?

I know this is a popular request so does anyone have an list of instructions written ?


any help appreciated


Thomas Curley
Irl


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




Re: AW: Tomcat 4.1.12 memory leak, resources leak, final call ?

2002-09-27 Thread Ing. Damiano Bolla

Let me repeat, once more

I am reloading the DEFAULT installation page of tomcat.
I am NOT using my own page.
I am NOT testing a weird servlet.
Just the DEFAULT tomcat page. (the one that comes right after you have 
installed tomcat)


Sorry for the capital letters above, I would like to say that

1) I understand the GC concept and heap, BUT there is something wrong if 
reloading the same page eats all the ram.
2) Thanks to everybody that are tryng to help, BUT please read the mail 
before posting a reply.

3) Is there one that does NOT have my same problem by doing EXACTLY what I 
am doing ?

If there is one please send me your setup and I will adopt it.

Thanks.

At 17.04 27/09/2002 +0200, you wrote:
- The memory that a vm uses is never decreasing (At least I don't
   know any that behave that way)
   To understand that you have to see two different things:
   - the memory that is used by the vm
   - the memory inside the vm
   All vm's that I know, don't return memory to the os. What
   happens during a gc is just that inside the vm the memory is
   marked as free. So the only save indicators for the question
   'how many memory is currently in use' are the methods
   java.lang.Runtime.get*Memory.
- To a certain degree it is normal that the memory is increasing.
   Reasons for that:
   - each session needs some memory, that is only released after
 the session has timed out. If you create sessions very fast
 this can consume quite some memory. (If you are creating
 the sessions faster as they dye tomcat will die with an out
 of memory error.)
   - Just because an object isn't used anymore , is dosn't mean
 that the memory that is consumed by it is freed. This just
 happens, when the garbage collector runs. When this will
 happen, is up to the VM. Until then the memory will grow.
 There is nothing you (or tomcat) can do about that from
 inside the application. The only action that has affect,
 is to play with the various parameters for the garbage
 collector as argument to the java process.

So what can you do, to track the problem down:
- Make shure that the request don't create new sessions.
   (There are several routes how to achieve that)
- Strip the page that you test down to a minmal jsp.
   (I haven't seen in your previous posts that
you say anything about the nature of this page)
- Track the memory usage with java.lang.Runtime.get*Memory()
- Use the java options to achieve a verbose gc
- Set the maximal heap size to a lower bound, to see
   what happens when this value is reached.
- Profile the application with OptimizeIt or jProbe
   or any other profiler.
- show us your page, maybe it's the page that contains the
   memory leak

Sun has some background and advice at:
http://java.sun.com/docs/hotspot/gc/
http://java.sun.com/products/hotspot/whitepaper.html

Also javaworld:
http://www.javaworld.com/javaworld/jw-01-2002/jw-0111-hotspotgc.html


Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de

  -Ursprüngliche Nachricht-
  Von: Ing. Damiano Bolla [mailto:[EMAIL PROTECTED]]
  Gesendet: Freitag, 27. September 2002 16:13
  An: Tomcat Users List
  Betreff: RE: Tomcat 4.1.12 memory leak, resources leak, what to do ?
 
 
  Yes, I did let it run and it keeps eating.
 
  As far as I see this IS a problem.

--
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: JDBC Connnection Pool for Oracle

2002-09-27 Thread Ryan Cornia

Check out -
 
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg56314.html
 
Specifically, you should be using oracle.jdbc.pool.OracleConnectionCacheImpl as the 
classname. I found I have to use the same class name in web.xml to get everything to 
work properly.
 
I'm using this on several applications without problems.
 
Ryan


 [EMAIL PROTECTED] 09/26/02 04:55PM 
Hello :)
I am using Tomcat 4.0.4 with JDK1.4
I am getting the followig exception while creating the DataSource:
javax.naming.NamingException: Cannot create resource instance

Following is  my code, server.xml and web.xml entries.
I will really appreciate if anyone can help me out here.

Thanx in advance

Zeeshan

Java Code

ctx = (Context) new InitialContext().lookup(java:comp/env);
if (ctx!=null) {
  dataSource = (javax.sql.DataSource) ctx.lookup(jdbc/datasource);
  connection = dataSource.getConnection();
}

Server.xml

Resource name=jdbc/datasource auth=Container 
type=oracle.jdbc.pool.OracleDataSource/
  ResourceParams name=jdbc/datasource
   parameternameusername/namevaluetest/value/parameter
   parameternamepassword/namevaluetest/value/parameter
   
parameternamedriverClassName/namevalueoracle.jdbc.driver.OracleDriver/value/parameter
   parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
   namedriverName/name
   valuejdbc:oracle:thin:@localhost:1521:ORACLE/value
   /parameter
   parameter
 nameurl/namevaluejdbc:oracle:thin:@localhost:1521:ORACLE/value
   /parameter
   parameternamemaxActive/namevalue100/value/parameter
   parameternamemaxIdle/namevalue3/value/parameter
   parameternamemaxWait/namevalue100/value/parameter
/ResourceParams

Web.xml
===
resource-ref
 descriptionResource reference to java.sql.Connection factory defined in 
server.xml /description
 res-ref-namejdbc/datasource/res-ref-name
 res-typeoracle.jdbc.pool.OracleDataSource/res-type
 res-authContainer/res-auth
/resource-ref






RE: [ANNOUNCEMENT]: JK 1.2.0 is now available

2002-09-27 Thread Turner, John


Question:  What is 1.2.0?  What connector source was used?  4.1.12?
4.1.10?

John


 -Original Message-
 From: Henri Gomez [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 27, 2002 11:03 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Subject: [ANNOUNCEMENT]: JK 1.2.0 is now available
 
 
 Hi all,
 
 The Jakarta-Tomcat-Connector team is pleased to announce the 
 availability of JK 1.2.0.
 
 JK, also known as mod_jk, is a Tomcat / WebServers plug-in 
 that handles 
 the communication between Tomcat and webservers.
 
 Currently Apache 1.3.x and 2.0.x, IIS, Netscape/iPlanet are supported.
 
 binaries and source versions of the release are available and can be 
 downloaded from :
 
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
 release/v1.2.0/
 
 Binaries allready available are :
 
 - Linux i386 (Apache 1.3/2.0.42)
 - Solaris 8 (Apache 1.3/2.0.39/2.0.42)
 - Win32 (IIS/Apache 1.3/2.0.42)
 
 MacOS X, AIX, iSeries binaries to be released shortly (I hope)
 
 Feel free to contact us to provide binaries for your own operating
 system.
 
 Enjoy!
 
 
 --
 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: Integrating Apache 1.3 / Tomcat 4.12 on Redhat Linux 7.3

2002-09-27 Thread Turner, John


http://www.johnturner.com/howto/apache1-tomcat404-howto.html

It's for Tomcat 4.0.4, but that shouldn't make too much of a difference.  If
you use it and have suggestions for changes specific to tomcat 4.1.12, let
me know and I will update it and credit you with the changes.  Also, it uses
mod_jk, not mod_jk2.  Whether you use mod_jk or mod_jk2 is up to you.

To answer your question about auto-config, you do this by adding Listener
elements to server.xml (see Connector Step 3 in my HOWTO).

John

 -Original Message-
 From: Curley, Thomas [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 27, 2002 11:15 AM
 To: Tomcat Users List
 Subject: Integrating Apache 1.3 / Tomcat 4.12 on Redhat Linux 7.3
 
 
 Hello all,
 
 I wish to integrate Apache 1.3 with Tomcat 4.1 on Redhat 7.3
 
 
 I have looked at the 4.1 doc on site but am still a bit 
 confused confusing.  For example it talks about turning on 
 auto-config in tomcat but does not say how.  Should I use the 
 mod_jk2 connector ?
 
 I know this is a popular request so does anyone have an list 
 of instructions written ?
 
 
 any help appreciated
 
 
 Thomas Curley
 Irl
 
 
 --
 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]




New Release JK 1.2.0 not installing

2002-09-27 Thread David Wynter

Hi,

In desperation at not having a working setup and problems with mod_jk I
thought it cannot get worse and may even get better if I install the latest
release from RPM (what luxury not having to build it!). Anyway it tells me
that I need Apache 2.0.42. If I run  /usr/local/apache2/apachectl status
it tells me I DO have 2.0.42. So how do I get PAckage Manager to detect that
it is 2.0.42? What mechanism does it use to determine what version is
installed?

Mandrake 8.2 distro

Thanks

David Wynter
Director
roamware Ltd.
(+44) (0) 208 922 7539 B.
(+44) (0) 7879 605 706 M.
[EMAIL PROTECTED]


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




AW: [ANNOUNCEMENT]: JK 1.2.0 is now available

2002-09-27 Thread Ralph Einfeldt

Please say something about this release and it's relation to mod_jk2.

Otherwise the people will get more confused as they already are.

I guess that this is just a new release of mod_jk,
but the link to the online documentation leads to a page
for both (jk and jk2)

 -Ursprüngliche Nachricht-
 Von: Henri Gomez [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 27. September 2002 17:03
 An: [EMAIL PROTECTED]; [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Betreff: [ANNOUNCEMENT]: JK 1.2.0 is now available
 
 
 The Jakarta-Tomcat-Connector team is pleased to announce the 
 availability of JK 1.2.0.
 
 JK, also known as mod_jk, is a Tomcat / WebServers plug-in 
 that handles 
 the communication between Tomcat and webservers.
 
 Currently Apache 1.3.x and 2.0.x, IIS, Netscape/iPlanet are supported.
 
 binaries and source versions of the release are available and can be 
 downloaded from :
 
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
 release/v1.2.0/
 

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




RE: [ANNOUNCEMENT]: JK 1.2.0 is now available

2002-09-27 Thread Henri Gomez

JK 1.2.0 came from jakarta-tomcat-connectors/jk/native.

in JTC, you got jk/native, also called jk 1.2.x, jk/native2,
also called jk2.

JK 1.2.0 came from Tomcat 3.3.x mod_jk and should be considered
stable release.

JK2 is the developpment version which will replace JK 1.2.0,
and should be considered beta release.

Regards


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




Re: Log4j @ jGuru.com

2002-09-27 Thread Mark R. Diggory

Please note, I'm not bashing your incentive in getting together a forum 
for Log4J issues, I say Cheers to that, but I see a avenue for 
development here at jakarta.apache.org...

Unfortunately, to search any faq messages at jGuru you have to become 
member at 14.95 a month or 149.95 a year. That doesn't seem very 
Opensource like to me, just to read through some emails people are 
writing back and forth to each other.

I would love to see some decent faq and email archive searching 
facilities housed at the Apache site. I know mail archives exist in gz 
form at Jakarta. It seems upto the project head to decide which 
offsite facility ends up providing indexing/search tools across those 
archives. Often times I find the List-serv Archive searching tools very 
limited for sites devoted to such objectives. That is, there's no 
advanced search options.

How about showcasing some of these great Servlet Engine, JSP tags, 
Database Interfaces, Native XML DB's and Indexing tools developed 
through Apache by using them on site to supply great interfaces for 
accessing the email archives?!

IDEAIt could even be released as a WebApplication project in Jakarta 
that others could download and install for thier email list 
services.../IDEA

Plus, most of the documentation on how things really work ends up in 
email messages. Having a decent search facility is integral to reducing 
the amount of repeat questioning going on in the list-srvs.

-Mark Diggory


Michael P. Canzoneri wrote:

Hi everyone,

I just wanted to let you all know that within a few days www.JGuru.com will
have a forum for Log4j administered by yours truly.  If you have
questions/comments you would like to see in the forum please let me know.  I
highly encourage contacting me with your suggestions.

I am currently using Log4j on a rather large insurance application which
also uses Struts and Ant.  Hope to hear from you.

Michael

Michael P. Canzoneri
Senior Associate
Business Technology Services Inc.
1150 First Avenue Suite #130
King Of Prussia, PA 19406
Office: 610.592.0600
Mobile: 570.977.6823
[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]




multiple service tag in server.xml

2002-09-27 Thread marba

I'm trying to configure tomcat 4.1.10 (on win2k) to replay with different
root contexts on different connectors:
- http on port 8080
- http on port 8180
- https on port 8443
I can't figure out why ALL my contexts (defined in different service tags)
shows to ALL connectors/services
(also all contexts are listed by admin and manager apps)
Thank you
Marco

follows my server-xml:

?xml version='1.0' encoding='utf-8'?
Server className=org.apache.catalina.core.StandardServer port=8005
debug=0
shutdown=SHUTDOWN
  GlobalNamingResources

  /GlobalNamingResources
  Service className=org.apache.catalina.core.StandardService debug=0
name=Tomcat-8443
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
redirectPort=8443
address=localhost bufferSize=2048 port=8443 connectionTimeout=6
scheme=https
enableLookups=false secure=true
protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol debug=9
proxyPort=0
maxProcessors=20 minProcessors=5 tcpNoDelay=true acceptCount=10
useURIValidationHack=true
  Factory
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
rootFile=C:\Documents and Settings\marba\root.pem keystoreType=JKS
keystorePass=changeit
clientAuth=false randomFile=C:\Documents and Settings\marba\random.pem
keystoreFile=C:\Documents and Settings\marba\.keystore protocol=TLS/
/Connector

Engine className=org.apache.catalina.core.StandardEngine
mapperClass=org.apache.catalina.core.StandardEngineMapper debug=0
defaultHost=localhost
name=Engine-8443
  Host className=org.apache.catalina.core.StandardHost
appBase=webapps liveDeploy=true
mapperClass=org.apache.catalina.core.StandardHostMapper autoDeploy=true
configClass=org.apache.catalina.startup.ContextConfig
errorReportValveClass=org.apache.catalina.valves.ErrorReportValve
debug=0 deployXML=true
contextClass=org.apache.catalina.core.StandardContext unpackWARs=true
name=localhost
 Context
...
/Context
 Context
...
 /Context
  /Host
/Engine
  /Service

  Service className=org.apache.catalina.core.StandardService debug=0
name=Tomcat-8080
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
redirectPort=8443
address=localhost bufferSize=2048 port=8080 connectionTimeout=2
scheme=http
enableLookups=false secure=false
protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol debug=9
proxyPort=0
maxProcessors=75 minProcessors=5 tcpNoDelay=true acceptCount=10
useURIValidationHack=false
  Factory
className=org.apache.catalina.net.DefaultServerSocketFactory/
/Connector

Engine className=org.apache.catalina.core.StandardEngine
mapperClass=org.apache.catalina.core.StandardEngineMapper debug=0
defaultHost=localhost
name=Engine-800
  Host className=org.apache.catalina.core.StandardHost
appBase=webapps liveDeploy=true
mapperClass=org.apache.catalina.core.StandardHostMapper autoDeploy=true
configClass=org.apache.catalina.startup.ContextConfig
errorReportValveClass=org.apache.catalina.valves.ErrorReportValve
debug=0 deployXML=true
contextClass=org.apache.catalina.core.StandardContext unpackWARs=true
name=localhost
 Context
...
 /Context
 Context
..
 /Context
  /Host
/Engine
  /Service

/Server




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




Tomcat 4.1.12 spontaneously exiting...

2002-09-27 Thread Corey Puffalt

Hi...

Tomcat (v4.1.12) seems to keep quitting on us.  This is what we see in 
the log:

ServerLifecycleListener: destroyMBeans: Throwable
javax.management.InstanceNotFoundException: MBeanServer cannot find 
MBean with O
bjectName 
Catalina:type=Valve,sequence=10668,path=/kwik,host=clint.kelman.com,se
rvice=Tomcat-Standalone
at 
mx4j.server.MBeanServerImpl.findMBeanMetaData(MBeanServerImpl.java:28
2)
at 
mx4j.server.MBeanServerImpl.unregisterMBean(MBeanServerImpl.java:611)
at 
org.apache.catalina.mbeans.MBeanUtils.destroyMBean(MBeanUtils.java:21
80)
at 
org.apache.catalina.mbeans.ServerLifecycleListener.destroyMBeans(Serv
erLifecycleListener.java:853)
at 
org.apache.catalina.mbeans.ServerLifecycleListener.destroyMBeans(Serv
erLifecycleListener.java:1067)
at 
org.apache.catalina.mbeans.ServerLifecycleListener.destroyMBeans(Serv
erLifecycleListener.java:1016)
at 
org.apache.catalina.mbeans.ServerLifecycleListener.destroyMBeans(Serv
erLifecycleListener.java:1198)
at 
org.apache.catalina.mbeans.ServerLifecycleListener.destroyMBeans(Serv
erLifecycleListener.java:1170)
at 
org.apache.catalina.mbeans.ServerLifecycleListener.destroyMBeans(Serv
erLifecycleListener.java:796)
at 
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Ser
verLifecycleListener.java:221)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at 
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2218
)
at 
org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalin
a.java:622)
Stopping service Tomcat-Standalone

Any ideas?

Thanks,
Corey



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




RE: New Release JK 1.2.0 not installing

2002-09-27 Thread Turner, John


All due respect to the RPM managers, but I honestly, truly feel that you can
get up and running much quicker without using RPMs, and just using the
Tomcat binary install and a connector binary.  I'm not bragging, but I can
do a Tomcat+connector install on RedHat now almost quicker than an RPM could
do it...it's that easy.  Tomcat is so self-contained, I find it difficult to
understand the need for an RPM at all, unless it is because the RPM creates
a new user (tomcat4) and adds some startup scripts to /etc/init.d (does it
even do that much?).

Try a binary install of Tomcat, not an RPM.  Here are the steps, on any
Linux:

- download Tomcat
- unpack Tomcat
- symlink /usr/local/tomcat to /usr/local/jakarta-tomcat-some-version
- set CATALINA_HOME (or is it TOMCAT_HOME now in 4.1.12?)
- make sure JAVA_HOME is set
- stick the mod_jk binary in /path/to/apache/modules
- edit httpd.conf with JK directives or use auto-conf
- start Tomcat
- start Apache

It's essentially fool-proof, in my experience, anyway.  I have no experience
with Mandrake, but I can't see how it would break a binary install.  Note
that the steps above have Tomcat running as root, and that adding
start-on-boot scripts to /etc/init.d has to be done manually.

John

 -Original Message-
 From: David Wynter [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 27, 2002 11:27 AM
 To: 'Tomcat Users List'
 Subject: New Release JK 1.2.0 not installing
 
 
 Hi,
 
 In desperation at not having a working setup and problems 
 with mod_jk I
 thought it cannot get worse and may even get better if I 
 install the latest
 release from RPM (what luxury not having to build it!). 
 Anyway it tells me
 that I need Apache 2.0.42. If I run  
 /usr/local/apache2/apachectl status
 it tells me I DO have 2.0.42. So how do I get PAckage Manager 
 to detect that
 it is 2.0.42? What mechanism does it use to determine what version is
 installed?
 
 Mandrake 8.2 distro
 
 Thanks
 
 David Wynter
 Director
 roamware Ltd.
 (+44) (0) 208 922 7539 B.
 (+44) (0) 7879 605 706 M.
 [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: reloadable=true

2002-09-27 Thread Lindomar

I tried the Manager app, updating and deleting and adding the new one, none
works; but the exception is generated : No driver suitable ?!

Regards,


Lindomar.


- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, September 27, 2002 11:48 AM
Subject: RE: reloadable=true


Quer ter seu próprio endereço na Internet?
Garanta já o seu e ainda ganhe cinco e-mails personalizados.
DomíniosBOL - http://dominios.bol.com.br


Have you tried using the Manager app?  How are you updating your classes?
Just deleting them and adding the new one?

John


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 27, 2002 10:55 AM
 To: Tomcat Users List
 Subject: Re: reloadable=true


 I have the same problem. I have changed any Context in web.xml
 and also checked the server.xml file for DefaultContext and stuff,
 but Tomcat just won't reload classes.

 I am using latest Tomcat 3.3 version, JDK1.3 IBM Linux

 Regards
 Danny


 On 27 Sep 2002, at 11:07, Lindomar wrote:

  Hi everybody!
 
  I set this property(reloadable=true) on my context in
 server.xml, but don´t works?!
  When i change any class, tomcat don't work until i restart it.
 
  Any idea about this problem?
 
  Thanks in advanced.
 
 
 



 --
 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: New Release JK 1.2.0 not installing

2002-09-27 Thread Henri Gomez

You should use rpm for Apache 2.0.42 only if you got such rpm.

They are available at :

http://ftp.falsehope.com/home/gomez/apache2/

You could use the source rpm to rebuild it on your MDK box.



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




Re: Integrating Apache 1.3 / Tomcat 4.12 on Redhat Linux 7.3

2002-09-27 Thread Marc

Hi John,
wich connector do you recommend to connect Tomcat with Apache (I haven't seen in
your howto)?

Thank you

Marc

Turner, John wrote:

 http://www.johnturner.com/howto/apache1-tomcat404-howto.html

 It's for Tomcat 4.0.4, but that shouldn't make too much of a difference.  If
 you use it and have suggestions for changes specific to tomcat 4.1.12, let
 me know and I will update it and credit you with the changes.  Also, it uses
 mod_jk, not mod_jk2.  Whether you use mod_jk or mod_jk2 is up to you.

 To answer your question about auto-config, you do this by adding Listener
 elements to server.xml (see Connector Step 3 in my HOWTO).

 John

  -Original Message-
  From: Curley, Thomas [mailto:[EMAIL PROTECTED]]
  Sent: Friday, September 27, 2002 11:15 AM
  To: Tomcat Users List
  Subject: Integrating Apache 1.3 / Tomcat 4.12 on Redhat Linux 7.3
 
 
  Hello all,
 
  I wish to integrate Apache 1.3 with Tomcat 4.1 on Redhat 7.3
 
 
  I have looked at the 4.1 doc on site but am still a bit
  confused confusing.  For example it talks about turning on
  auto-config in tomcat but does not say how.  Should I use the
  mod_jk2 connector ?
 
  I know this is a popular request so does anyone have an list
  of instructions written ?
 
 
  any help appreciated
 
 
  Thomas Curley
  Irl
 
 
  --
  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]




AW: Feedback: tomcat-3.2.4

2002-09-27 Thread Ralph Einfeldt


Although I'm not using IIS, I'm quite shure that even MS uses the same 
HTTP return codes, and that means it is just OK.

 Now, the following error-code is found in the log-file:

 2002-09-27 11:36:40 127.0.0.1 - 127.0.0.1 80 GET /test/examples/jsp/index.html - 200 
Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0)

 This error-code (200) is a sign for missing the executable-right in 
jakarta-virtual-directory. But I have set this right.

-Ursprüngliche Nachricht-
Von: Wolfgang Löw [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 27. September 2002 15:58
An: [EMAIL PROTECTED]
Betreff: Feedback: tomcat-3.2.4


Please I need help to solve this:
 
I have problems to install tomcat-3.2.4
 
During installation I used the information in 
c:\jakarta-tomcat-3.2.4\doc\tomcat-iis-howto.html
 
For a detailed description of my problems please have a look in the attached files.
 
Thank you for your help
 
Best regards
 
 
Wolfgang Löw
 
 

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




Re: AW: Tomcat 4.1.12 memory leak, resources leak, final call ?

2002-09-27 Thread Luciano Kiniti Issoe

Hi,

don't worry about that. It's just that top doesn't show exactly what's going
on inside the VM. It WON'T crash your machine. When tomcat hits the limit of
the amount of memory allocatted to it, it'll stop increase. It's not a bug.
If you want to know how much memory Java is using,  Nathan Meyers
[EMAIL PROTECTED] suggests this approach:
  My recommendation is to stop trying to make sense of the output from top
and ps, and go to an unambiguous source. Take a look at the contents of
/proc/pid/status, where pid is the process ID. This will, at any instant
you examine it, give you (among other things) total current VM usage and
RSS.

Regards

miagi


- Original Message -
From: Ing. Damiano Bolla [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 27, 2002 12:19 PM
Subject: Re: AW: Tomcat 4.1.12 memory leak, resources leak, final call ?


Let me repeat, once more

I am reloading the DEFAULT installation page of tomcat.
I am NOT using my own page.
I am NOT testing a weird servlet.
Just the DEFAULT tomcat page. (the one that comes right after you have
installed tomcat)


Sorry for the capital letters above, I would like to say that

1) I understand the GC concept and heap, BUT there is something wrong if
reloading the same page eats all the ram.
2) Thanks to everybody that are tryng to help, BUT please read the mail
before posting a reply.

3) Is there one that does NOT have my same problem by doing EXACTLY what I
am doing ?

If there is one please send me your setup and I will adopt it.

Thanks.

At 17.04 27/09/2002 +0200, you wrote:
- The memory that a vm uses is never decreasing (At least I don't
   know any that behave that way)
   To understand that you have to see two different things:
   - the memory that is used by the vm
   - the memory inside the vm
   All vm's that I know, don't return memory to the os. What
   happens during a gc is just that inside the vm the memory is
   marked as free. So the only save indicators for the question
   'how many memory is currently in use' are the methods
   java.lang.Runtime.get*Memory.
- To a certain degree it is normal that the memory is increasing.
   Reasons for that:
   - each session needs some memory, that is only released after
 the session has timed out. If you create sessions very fast
 this can consume quite some memory. (If you are creating
 the sessions faster as they dye tomcat will die with an out
 of memory error.)
   - Just because an object isn't used anymore , is dosn't mean
 that the memory that is consumed by it is freed. This just
 happens, when the garbage collector runs. When this will
 happen, is up to the VM. Until then the memory will grow.
 There is nothing you (or tomcat) can do about that from
 inside the application. The only action that has affect,
 is to play with the various parameters for the garbage
 collector as argument to the java process.

So what can you do, to track the problem down:
- Make shure that the request don't create new sessions.
   (There are several routes how to achieve that)
- Strip the page that you test down to a minmal jsp.
   (I haven't seen in your previous posts that
you say anything about the nature of this page)
- Track the memory usage with java.lang.Runtime.get*Memory()
- Use the java options to achieve a verbose gc
- Set the maximal heap size to a lower bound, to see
   what happens when this value is reached.
- Profile the application with OptimizeIt or jProbe
   or any other profiler.
- show us your page, maybe it's the page that contains the
   memory leak

Sun has some background and advice at:
http://java.sun.com/docs/hotspot/gc/
http://java.sun.com/products/hotspot/whitepaper.html

Also javaworld:
http://www.javaworld.com/javaworld/jw-01-2002/jw-0111-hotspotgc.html


Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de

  -Ursprüngliche Nachricht-
  Von: Ing. Damiano Bolla [mailto:[EMAIL PROTECTED]]
  Gesendet: Freitag, 27. September 2002 16:13
  An: Tomcat Users List
  Betreff: RE: Tomcat 4.1.12 memory leak, resources leak, what to do ?
 
 
  Yes, I did let it run and it keeps eating.
 
  As far as I see this IS a problem.

--
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 : [ANNOUNCE] New Windows connector binary posted

2002-09-27 Thread Henri Gomez

Why not send the jk 1.2.0 (2.0.0 to come) binary you provide and
host to jakarta.apache.org, in the bin subdirectory of jk releases ?

for jk 1.2.0 it will live in :

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/

Regards.


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




How many people are using 4.1.12 successfully?

2002-09-27 Thread Turner, John


Hello -

We're almost ready to deploy a new app.  We have been using 4.0.4 in
development.

I need to get an idea of how stable 4.1.12 is...based on the traffic in the
last week, 4.1.12 looks to be fairly unstable, regardless of its 'release'
designation.

Should we stick with 4.0.4, or take the plunge with 4.1.12?  We will be
using Apache with a connector in addition to Tomcat.

- John


John Turner
[EMAIL PROTECTED]
Advertising Audit Service
http://www.aas.com


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




error-page

2002-09-27 Thread Rui Fernandes

I keep getting this error when starting tomcat for a web app with an error page 
configured in its web.xml:

ERROR reading java.io.ByteArrayInputStream@6f0be8
At Line 47 /web-app/error-page/

What's going on?



RE : Re: Integrating Apache 1.3 / Tomcat 4.12 on Redhat Linux 7.3

2002-09-27 Thread Henri Gomez

You should use JK 1.2.0 for production purposes,
restrict JK 2.0 for test purpose since it need more
testing and feedbacks.

Regards


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




RE: New Release JK 1.2.0 not installing

2002-09-27 Thread Henri Gomez

RPM is a good solution when you need package, ie when you have
to clone configuration on site with many boxes.

the mod_jk 1.2.0 rpms also setup httpd.conf and that's
important for newbies and beginers.

Experienced users could still use the good old configure/make
system :

./configure --with-apxs=/usr/sbin/apxs
make

Voila the jk is compiled, not so hard ?

BTW, Linux binaries (.so) are also provided.





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




RE: Tomcat 4.1.12 memory leak, resources leak, what to do ?

2002-09-27 Thread Shapira, Yoav

Hi,

In any case, did any of you tried what I did ?

Yes.

As well as having tried substantially more refined, QC'ed, regulated
stress testing of various JDK / Tomcat / OS combinations for memory and
other resources leaks.

If you have not, then please do not comment..

People are trying to help you out.  It's completely voluntary and at
their own time / expense.  A nicer attitude is likelier to get
responses.

As far as I see this IS a problem.

I disagree.  The memory will never decrease without a garbage
collection.  You have to play with other stuff (limit session creation,
limit processing threads, etc) and even then you'd be hard-pressed to
keep the memory constant with ongoing page retrievals.

P.S. Asking for help at bugzilla had no effect.

Yes it did.  People looked at it and feel it's not a bug.

If you still think it's a bug, submit a patch.  That's what open-source
is all about.

Yoav Shapira
Millennium ChemInformatics


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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


  1   2   >