mod_jk2/tomcat 4.1.29 uri mapping

2003-11-24 Thread Stefan Proels
Hi,

I've encountered a strange problem which occurred after updating from 
mod_jk2 compiled from the jakarta-tomcat-connectors-4.1.27-src.tar.gz 
distribution to the new version from  
jakarta-tomcat-connectors-4.1.29-src.tar.gz. I have the following workers 
definition in workers2.properties:

[channel.socket:localhost:9602]
info=Ajp13 forwarding over socket
debug=0
host=localhost
port=9602
tomcatId=localhost:9602

[ajp13:localhost:9602]
channel=channel.socket:localhost:9602
tomcatId=localhost:9602

[uri:/erfx/*]
worker=ajp13:localhost:9602
context=/erfx
tomcatId=localhost:9602

This works fine with the mentioned mod_jk2 from tomcat 4.1.27. However, 
with 4.1.29 only the uri /erfx/ gets mapped as expected but /erfx/foo.jsp 
for example doesn't, i.e., the request is not processed by tomcat but the 
file is delivered in its raw form by apache. When I add another explicit 
mapping [uri:/erfx/foo.jsp] it works again. It seems the "*" in the uri 
no longer works from some reason. Similarly, when requesting an uri which 
does not directly correspond to a JSP but should be passed to a servlet, 
I get a 404 (not found) from apache.

I'm running Apache 1.3.29 with Tomcat 4.1.29 on a Linux host. As already 
stated, the same configuration works fine when using the mod_jk2 from the 
4.1.27 connector sources. Could someone please shed some light on this 
and tell me how to get the new mod_jk2 to work? Thanks in advance.


CU,
Stefan


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



Slow on Linux

2003-11-24 Thread Yonatan Goraly
I am in the process of evaluating Linux as a server platform for my 
application (this is my first Linux experience).
The environment is:
- Single AMD Opteron 1.8 GHz
- Tyan motherboard with 1 GB memory
- Mandrake Linux 9.2 AMD64 RC1
- SUN JDK 1.4.2_02
- Tomcat 4.29, without Apache web server

The first impression is that the application is extremely slow. I found 
out that calling 
getServletConfig().getServletContext().getRequestDispatcher(url).forward(request, 
response); can take about 500 ms (I put one log command before the call, 
and the other at the beginning of the forwarded JSP page, so I know that 
the only call my application does between the log commands is the 
forward call)

Please advise

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


Re: HTTP Error 302

2003-11-24 Thread Günter Kukies
Hi,
after investigating the Problem, we found that we generate a redirect to
login when
the session is invalid. We have a servlet, that generates Images. If the
client requests the Image servlet directly everything is fine. The session
is valid and the user gets his image. But when the client want's to generate
a PDF with FOP on the same webapplication where the Imigegeneratorservlet
is, we dont't get a valid session. The request to the Imagegenerator is
comming now from the webapplication and not from the client. So there is no
session and we generate a redirect to login. I monitored the datatranfere
with tcpdump on the loopback device 127.0.0.1 and there I saw the HTTP 302.

What is the best way to handle this kind of session problems.

Thanks for answeres

Günter


- Original Message -
From: "Christopher Schultz" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, November 21, 2003 2:47 PM
Subject: Re: HTTP Error 302


> Günter,
> > what are the common reasons, that tomcat 4.1 is returning a HTTP 302
error page?
>
> Response code 302 is not an error: it is a redirect. Are you connecting
> to Tomcat via a browser or some other client?
>
> Your client should be "following" that redirect, which should be
> specified in the "Location" header of the response.
>
> For more information, check out the HTTP spec at:
>
> 1.0 Spec: http://www.ietf.org/rfc/rfc1945.txt
> 1.1 Spec: http://www.ietf.org/rfc/rfc2616.txt
>
> -chris
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Re: tomcat start and stopping

2003-11-24 Thread Oscar Carrillo
I have some daemon scripts on my tutorial site. I wrote them for Linux but
you should be able to change things if need be. I use chkconfig to make
the sym links for the different runlevels, but you can just read the
chkconfig line comment at the start of the script and do it yourself. I'm
not sure how Solaris handles the runlevels sort of thing (Sys V, etc.),
but it should be fairly simple to adapt.

http://daydream.stanford.edu/#daemons

Oscar

On Sun, 23 Nov 2003, Tom Bartos wrote:

>  
>  
> Does anyone have any scripts to start and stop tomcat during system boot
> and shutdown?
>  
> Environment Solaris 8 sparc
> Tomcat 4.1.29
> Apache 1.3
>  
> Thanks
> -Tom
> 


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



Re: Servlet Response Wrapper not able to get JSP data

2003-11-24 Thread Vincent Chain
Ok, I got this figured out. 
 
I was confused for a while where the data buffering happened: the buffering happens at 
the PrintWriter that I created when the getWriter() is called on the wrapper. So i 
need flush the print writer in order to make the data available to the underlying 
outputstream, which is my wrapper outpustream.
 
Problem solved. sorry for the confusion.
 
thanks
 


-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

Re: Slow on Linux

2003-11-24 Thread Oscar Carrillo
I'm no expert on Servlets so I'm not sure what's involved with all those 
calls, but it doesn't seem like it could be anything that takes 500ms.

Have you tried running "top" while this is going on? You can set it to 
update quickly so that you can see what's taking up the processor, if 
anything. In particular, if it's a java thread (process) or Apache 
process.

Are you compiling Apache and connector from source? Have you compiled a 
new kernel? Have you done all the updates to Mandrake? In particular nptl, 
gcc, glibc, and kernel.

I don't know if many people are using Opteron here. You are picking a
pretty new hardware architecture for your first Linux experience.  I'm
interested to see how many others have experience with this hardware.

Oscar

On Sun, 23 Nov 2003, Yonatan Goraly wrote:

> I am in the process of evaluating Linux as a server platform for my 
> application (this is my first Linux experience).
> The environment is:
> - Single AMD Opteron 1.8 GHz
> - Tyan motherboard with 1 GB memory
> - Mandrake Linux 9.2 AMD64 RC1
> - SUN JDK 1.4.2_02
> - Tomcat 4.29, without Apache web server
> 
> The first impression is that the application is extremely slow. I found 
> out that calling 
> getServletConfig().getServletContext().getRequestDispatcher(url).forward(request, 
> response); can take about 500 ms (I put one log command before the call, 
> and the other at the beginning of the forwarded JSP page, so I know that 
> the only call my application does between the log commands is the 
> forward call)
> 
> Please advise
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: shared object cache

2003-11-24 Thread Rob Augustinus
thanks,

1) That's exactly what I would like to do, but I'm not quite sure how to do
this. Could you point me to some documentation?
2) I have thought about the complications of the cache, and indeed I need to
be carefull. On the other hand though it is not that critical in this 
application.



Christopher Schultz wrote:

Rob,

I have written a PersistenceManager class that handles all database
access and uses the SQLData interface to map java objects to
User Defined Types in the oracle database. Every request now
has to create a new instance of the persistencemanager so there is
no sharing whatsoever. I would like the persistencemanager to look
in the object cache first and if the object is not there retrieve it
from the database. I need a way to keep this cache in memory
so all requests can use the same cache.


I would do two things:

1) Put your PersistenceManager in the application scope, and re-use it 
all the time instead of doing "new PersistenceManager" for every request.

2) Have your PersistenceManager do its own cachine. One of my favorite 
object caching techniques is to simply use a java.util.WeakHashMap. 
The WeakHashMap works with WeakReferences, so you can fill it with 
data, and the GC will purge some of it for you if it needs some memory 
back.

It works just like any other Map, except that you aren't guarenteed to 
get your object back, later :)

This may sound sketchy, but it's a pretty good cache because it works 
the same all the time: if you have a cache miss, you go to the database.

Don't forget that caches are complicated: when data changes, you have 
to make sure that the cache gets updated. If you have multiple clients 
and a single database, this gets to be a real nightmare. Only cache 
things that don't need to be sync'd up-to-the-minute. For those 
things, *always* go back to the db.

-chris

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


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


Re: My Solution to "Intercepting Login Information" & "Realm Username & Password from TagSupport"

2003-11-24 Thread Adam Hardy
On 11/21/2003 09:57 PM Hart, Justin wrote:
-Original Message- 
On 11/21/2003 09:11 PM Hart, Justin wrote:

I think that what we BOTH need to do in this case is create a
subclass of whatever realm we are using, and using this subclass
provide our specific functionality, in my case authenticating to a
database, in yours logging.

You and Gary related?
Doubt it - I'm a Brit and Gary seems to be American. We might not be 
Smiths, but Hardys are not that rare.

Yeah, I use getRemoteUser() elsewhere, but have already started my
multi-tiered authentication implementation by subclassing JNDIRealm,
seems to work well enough :-)
Guess I completely misunderstood what you are talking about. Thought you 
were using CMS.

Adam
--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat cannot fine java classes

2003-11-24 Thread David Sierra Fernandez

Perhaps it is a bit obvious but I can help in other way...have you deployed
correctly the app? I mean...do you have the web.xml file and the servlets
declared in it? Sorry if you do...i can help more :-(

David Sierra Fernandez
e-mail: [EMAIL PROTECTED] 


> -Mensaje original-
> De: news [mailto:[EMAIL PROTECTED] nombre de Werner Daum
> Enviado el: domingo, 23 de noviembre de 2003 22:50
> Para: [EMAIL PROTECTED]
> Asunto: Tomcat cannot fine java classes
>
>
> Hi,
>
> I have the following problem with tomcat 4.1.27:  my java classes cannot
> be found. When I request a JSP which uses a java class, I get messages
> like this:
>
> File not found:
> 'http://134.xxx.yyy.zzz:8080/learnweb/servlet/learnweb.module.admi
n.userinterface.web.AdminGroupServlet'

In this case the class name is AdminGroupServlet and the corresponding
class file it is located in the directory
/data/htdocs/learnweb/jakarta-tomcat-4.1.27/webapps/learnweb/WEB-INF/classes
/learnweb/module/admin/userinterface/web,
however tomcat doesn't seem to resolve the above URL correcotly.

I tried to request example JSPs which came with tomcat (in
webapps/examples), and they worked, howewer I had no success with my own
classes. When I call startup.sh, I get the following messages:

Using CATALINA_BASE:   /data/htdocs/learnweb/jakarta-tomcat-4.1.27
Using CATALINA_HOME:   /data/htdocs/learnweb/jakarta-tomcat-4.1.27
Using CATALINA_TMPDIR: /data/htdocs/learnweb/jakarta-tomcat-4.1.27/temp
Using JAVA_HOME:   /usr/local/j2sdk1.4.2_02
Using CLASSPATH:
/usr/local/j2sdk1.4.2_02/lib/tools.jar:/data/htdocs/learnweb/jakarta-tomcat-
4.1.27/bin/bootstrap.jar

I tried to add the path to my classes to CLASSPATH in catalina.sh, but
after that I could not use tomcat at all. Any ideas, what I am doing wrong?

Thanks in advance,
Werner Daum



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


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



Re: mod_jk2/tomcat 4.1.29 uri mapping

2003-11-24 Thread Dionisio Ruiz de Zarate
i have the same problem. i must to downgrade to the 4.1.27 version.
there is other problem; if you have one dir with, for example, images, you
must to map the directory.

[uri:/erfx/*]
 worker=ajp13:localhost:9602
 context=/erfx
 tomcatId=localhost:9602

[uri:/erfx/images/*]
 worker=ajp13:localhost:9602
 context=/erfx
 tomcatId=localhost:9602

in other form doesn't run.
in the 4.1.27 version you dont have to mapp the subdirectories.


> Hi,
>
> I've encountered a strange problem which occurred after updating from
> mod_jk2 compiled from the jakarta-tomcat-connectors-4.1.27-src.tar.gz
> distribution to the new version from
> jakarta-tomcat-connectors-4.1.29-src.tar.gz. I have the following workers
> definition in workers2.properties:
>
> [channel.socket:localhost:9602]
> info=Ajp13 forwarding over socket
> debug=0
> host=localhost
> port=9602
> tomcatId=localhost:9602
>
> [ajp13:localhost:9602]
> channel=channel.socket:localhost:9602
> tomcatId=localhost:9602
>
> [uri:/erfx/*]
> worker=ajp13:localhost:9602
> context=/erfx
> tomcatId=localhost:9602
>
> This works fine with the mentioned mod_jk2 from tomcat 4.1.27. However,
> with 4.1.29 only the uri /erfx/ gets mapped as expected but /erfx/foo.jsp
> for example doesn't, i.e., the request is not processed by tomcat but the
> file is delivered in its raw form by apache. When I add another explicit
> mapping [uri:/erfx/foo.jsp] it works again. It seems the "*" in the uri
> no longer works from some reason. Similarly, when requesting an uri which
> does not directly correspond to a JSP but should be passed to a servlet,
> I get a 404 (not found) from apache.
>
> I'm running Apache 1.3.29 with Tomcat 4.1.29 on a Linux host. As already
> stated, the same configuration works fine when using the mod_jk2 from the
> 4.1.27 connector sources. Could someone please shed some light on this
> and tell me how to get the new mod_jk2 to work? Thanks in advance.
>
>
> CU,
> Stefan
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Re: lame,encoding problem

2003-11-24 Thread bwasko
Hi
I 've tried to execute insert statement that contains my national characters
with the mysql command-line client tool and all looks ok. The strings are
properly written into database. But writing into it with use of jdbc driver
ends with chars like  '??'. I use mysql-connector and i think it causes
these problems.

Cheers Bartek
- Original Message - 
From: "Christopher Schultz" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 24, 2003 4:41 AM
Subject: Re: lame,encoding problem


> Bartek,
>
> > But then when I do something with these
> > parameters and my mysql database I get then them wrong encoded and
> > all data read from mysql are wrong encoded .
>
> Hmmm... if you use your Java code to insert some text into the DB, does
> it look okay when you read it back out using the mysql command-line
> tool? I'm wondering if the characters are being mangled on the way into
> of out of the database.
>
> See... the UTF-8 encoding only comes into play when converting bytes
> from the request into Strings on which your Java code operates. Once
> you're in the Java world, everything should be okay. Again, when you
> write the data back out to the response, the UTF-8 comes into play as
well.
>
> However, when writing to the db, the strings also need to be converted
> to bytes by some character encoding. It's very possible that either the
> VM and/or MySQL are using incompatible character sets. Check to see what
> the value of the system property "file.encoding" is at runtime.
>
> Then again... unless you really are using multibyte characters, you
> should be okay no matter what. The MySQL JDBC driver should be using the
> same encoding going both to and from the db. But, if it's an encoding
> that doesn't understand multibyte characters (like ISO-8859-1), then you
> might be permanently damaging those characters. Though I use MySQL/Java
> all the time, I'm not sure how to set the character encoding for the
> JDBC driver. Check the MySQL documentation, and let us know what you find.
>
> Hope that helps,
> -chris
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



RE: Production Issues | Correction

2003-11-24 Thread Arnab Chakravarty
Hi,

One correction in the mail.

>What do you use to balance the load between the apaches ?

-We are using the mod_jk to load balance between tomcats and not apaches (for apaches 
we have a hardware loadbalancer in place). The load is not high during the other week 
days but only twice in a week.

>Some things you have to keep in mind:
>- mod_jk isn't perfect in balancing the load for one Apache
> The workers don't know enough of each other to do a good job.
>- mod_jk is even worse in doing a good job in balancing the load
>  on seperate apaches on different machines. The worker know even 
>  less (or nothing) about the other workers in the other apache 
>  instances.

-First of all, I need to know what are you basing your thoughts/conclusions on ? I 
need more details on why it isn't good enough. 

-How can we inform the each worker about other workers. It seems we need also the 
amount of sessions logged on each tomcats during this time. Any way to find this bare 
minimal changes, say with a jsp page ?

>Do you use sticky sessions ?
>When you see high load on the 2 instances do they have a proportional
>number of sessions (or is each sessions causing more load than usual) ?

-Yes, we are using sticky sessions. Yes the 2 instances are proportional (not from the 
session count, but from the database connections each has and both are observed above 
400 connections)and other instances are cool enough this time. But, apache reach their 
max client connections and other tomcats are sitting their with not much load and 
seems that this load is directed to the already clogged up tomcats (Just a thought, 
not sure!!!) and site does not respond well under these conditions and lead us to kill 
these specific tomcats with high thread counts.

But my point is why direct all the load to a specific tomcat and not distribute it 
evenly ? Then, what worth is the load balancer for. This is not understood well from 
the load balancer settings or either mod_jk is not intelligent at all or better make 
it intelligent / replace it.

Comments???

Arnab Chakravarty

> -Original Message-
> From: Arnab Chakravarty [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 13, 2003 10:07 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Production Issues
> 
> 
> 4 Solaris boxes - Each Box has 1 Apache - 3 Tomcats making 4 
> apaches and 12 tomcats in all. Please see the enclosed image.
> Problem: On a given day of a week, there is lot load on 2 
> tomcats 4_3 and 1_1 and in this sequence. The load balancer 
> setting provided in the worker.properties is:
> For Apache 1 - 4_3, 4_2, , 1_2, 1_1 
> For Apache 2 - 1_1, 1_2, , 4_2, 4_3 
> For Apache 3 - 4_3, 4_2, , 1_2, 1_1 
> For Apache 4 - 1_1, 1_2, , 4_2, 4_3 

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


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


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



our findings with Apache2.0.47/Modjk2/Tomcat4.1.29/IBMJDK1.4.1 and sig 11s

2003-11-24 Thread David Muller
I have seen numerous postings about sig 11 problems with few remedies so here is one I 
hope helps someone.  We put together a huge matrix of Java, Tomcat, Apache and OS 
parameters and finally worked around a jdk bug.

Under fairly heavy load (7-8 transactions/s) we were getting sig 11s with the Sun JDK 
1.4.2_02.  We weren't getting much in the way of stack traces to try to track down the 
problem so we switched to IBM JDK 1.4.1.  We ended up having to turn JIT optimzation 
off like this in the tomcat startup.

export JITC_COMPILEOPT=NALL{org/apache/tomcat/util/buf/Ascii}{parseInt}

also did extensive analysis of garbage collection with these two entries in JAVA_OPTS
-Xgcpolicy:optavgpause -verbosegc

first one seems similar to Sun's conncurrent gc - 2nd one for logging each gc

One thing which helped us find it was cranking the ConnectionTimeout down to 1s in the 
Tomcat server.xml.

We will probably revist the Sun jdk at some point.

-Dave

David E. Muller
Configuration Manager
Overture Services, Inc.  
www.overture.com
Office: 760.476.6406 
Mobile: 760.458.2714 



Tomcat JSP/HTML caching

2003-11-24 Thread Neal
Is there anyway to cache the output of JSP and HTML pages served by
Tomcat or do I need an HTTP server for this (e.g. Apache, IIS)?

I have a site begin hosted by Tomcat Standalone which relies upon XML
web services to render the contents and consequently the page render
time is really slow. 

Please let me know if there's solution.

Neal



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



RE: IIS is not supported in Tomcat 4.1.29.

2003-11-24 Thread Roeland Meyer
Before I sound too much like byting the hand that feeds, let me thank you
for the useful information that you have provided.

> From: Christopher Schultz [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 24, 2003 4:26 AM

and I will make due allowances for the time of your response as well. Late
nights can make one more than a bit tense.

>  > > You don't pretend to win the coveted Whiner Of The Month award
>  > > with this, I hope. There's a lot of competition, you know.
>
> I think this post gets my vote for this coveted award. Everyone: you
> have only 7 days left to submit your entries!

For one thing, whether you guys know it or not, Java is competing against MS
.NET. I surfaced specific issues that need to be covered. I have a case
where the requirements are Win2K and IIS. Neither Linux nor Apache are
viable options, although I've argued for, at least, Apache. I'm doing good
to get Tomcat, okay? I don't want to do C# as that doesn't port more than 5
micro-inches from the MS platforms. This sort of stuff makes it hard to sell
Tomcat.

> > There are three section to this email;
> > 'General Complaints', 'IIS HOW-TO', and 'Workers HOW-TO'.
>
> No, you have one section: complaining about everything. I mistakenly
> read the whole post, thinking that there woud, in fact, be an "IIS
> HOWTO" and "Workers HOWTO" contained somewhere within. Alas,
> there was not.

No, I went item-by-item thorugh the dox that were shipped with the product.
Often I was looking at
http://jakarta.caselle:8080/tomcat-docs/jk2/jk/workershowto.html or
http://jakarta.caselle:8080/tomcat-docs/jk2/jk/iishowto.html. I was making
the case that both of those documents need to be either fixed or removed
from the distribution. In fact, I stated that plainly. You must not have
read that.

> > General complaints: (in no particular order)
>
> I recognize that there are shortcomings in the documentation. You do
> realize that pretty much nobody gets paid to write this
> stuff, right? If
> you have spent a significant amount of time figuring
> something out, why
> not help out with the project and submit either a replacement
> document
> for IIS/Tomcat or a patch to any existing documentation?

Actually, I would gladly do so. I am considering compiling my notes for
subbmital after I get this stuff working. I *really* don't want to do .NET.

> > IIS HOW-TO:
> >
> > 1) Obviously, all references to Workers HOW-TO
> > point to a defective document, as shown in the
> > section on the workers HOW-TO.
>  >
>  > [snip]
>  >
>  > Workers HOW-TO:
>  >
>  > This was obviously written for Tomcat 3 and never
>  > updated for Tomcat 4.1.29.
>
> Do you mean this HOWTO:
>
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html

Yep and these are the offending lines;

---
workers.properties - A file that describes the host(s) and port(s) used by
the workers (Tomcat processes). A sample workers.properties can be found
under the conf directory.
uriworkermap.properties - A file that maps URL-Path patterns to workers. A
sample uriworkermap.properties can be found under the conf directory as
well.
---

Neither workers.properties nor uriworkermap.properties are shipped with the
product, contrary to what is clearly written insaid dox.

> It specifically mentions the changes since Tomcat 3.3 (with
> respect to
> 4.x and 5.x). Here's an example:
>
> "
> The ajp12  has been deprecated  with Tomcat 3.3.x and you should use
> instead ajp13  which is the only ajp protocol known by Tomcat 4.0.x,
> 4.1.x and 5.
>
> Of course Tomcat 3.2.x and 3.3.x also support ajp13 protocol.
> "

If you'd truely read my email then you'd have noticed that I never mentioned
ajp13. I had already read and understood that part. The isue isn't
documented changes, the issues are changes that aren't documented. A slight
difference.

>  > [I can't figure out workers, and I find the workers HOWTO to be
>  > worthless. By the way, what is a worker?]
>
> I find that this document is very helpful for these types of
> questions:
>
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workers
> howto.html

Is that anything like
http://jakarta.caselle:8080/tomcat-docs/jk2/jk/workershowto.html ?
If so, then go back and re-read my email for a section-by-section list of
errors.
BTW, your quoted portion is not anything that I wrote. I just checked.

> It explains pretty much every line of the workers.properties file.

Yes, with incorrect data.

> >  I hit 10 errors and
> > stopped logging. These indicate huge problems and
> > this document should have never been included in
> > the Tomcat 4.1.29 release. Not even as a guidline.
> > It is more misleading than useful.
>
> I think it's a better guideline that the source code for the
> connector,
> don't you think?

Hacking the sources is something I am specifically prohibited from doing.
Also, with that error rate, it is better to not have it and admit that IIS
isn't supported, rather than embarras one's self by exhibiting such
problems. This is 

RE: lame,encoding problem

2003-11-24 Thread Galbayar
jdbc:mysql://127.0.0.1:3306/test/?useUnicode=true

-Original Message-
From: bwasko [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 4:50 PM
To: Tomcat Users List
Subject: Re: lame,encoding problem


Hi
I 've tried to execute insert statement that contains my national characters
with the mysql command-line client tool and all looks ok. The strings are
properly written into database. But writing into it with use of jdbc driver
ends with chars like  '??'. I use mysql-connector and i think it causes
these problems.

Cheers Bartek
- Original Message -
From: "Christopher Schultz" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 24, 2003 4:41 AM
Subject: Re: lame,encoding problem


> Bartek,
>
> > But then when I do something with these
> > parameters and my mysql database I get then them wrong encoded and
> > all data read from mysql are wrong encoded .
>
> Hmmm... if you use your Java code to insert some text into the DB, does
> it look okay when you read it back out using the mysql command-line
> tool? I'm wondering if the characters are being mangled on the way into
> of out of the database.
>
> See... the UTF-8 encoding only comes into play when converting bytes
> from the request into Strings on which your Java code operates. Once
> you're in the Java world, everything should be okay. Again, when you
> write the data back out to the response, the UTF-8 comes into play as
well.
>
> However, when writing to the db, the strings also need to be converted
> to bytes by some character encoding. It's very possible that either the
> VM and/or MySQL are using incompatible character sets. Check to see what
> the value of the system property "file.encoding" is at runtime.
>
> Then again... unless you really are using multibyte characters, you
> should be okay no matter what. The MySQL JDBC driver should be using the
> same encoding going both to and from the db. But, if it's an encoding
> that doesn't understand multibyte characters (like ISO-8859-1), then you
> might be permanently damaging those characters. Though I use MySQL/Java
> all the time, I'm not sure how to set the character encoding for the
> JDBC driver. Check the MySQL documentation, and let us know what you find.
>
> Hope that helps,
> -chris
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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


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



RE: lame,encoding problem

2003-11-24 Thread Galbayar
jdbc:mysql://127.0.0.1:3306/test?useUnicode=true

-Original Message-
From: Galbayar [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 5:48 PM
To: Tomcat Users List
Subject: RE: lame,encoding problem


jdbc:mysql://127.0.0.1:3306/test/?useUnicode=true

-Original Message-
From: bwasko [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 4:50 PM
To: Tomcat Users List
Subject: Re: lame,encoding problem


Hi
I 've tried to execute insert statement that contains my national characters
with the mysql command-line client tool and all looks ok. The strings are
properly written into database. But writing into it with use of jdbc driver
ends with chars like  '??'. I use mysql-connector and i think it causes
these problems.

Cheers Bartek
- Original Message -
From: "Christopher Schultz" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 24, 2003 4:41 AM
Subject: Re: lame,encoding problem


> Bartek,
>
> > But then when I do something with these
> > parameters and my mysql database I get then them wrong encoded and
> > all data read from mysql are wrong encoded .
>
> Hmmm... if you use your Java code to insert some text into the DB, does
> it look okay when you read it back out using the mysql command-line
> tool? I'm wondering if the characters are being mangled on the way into
> of out of the database.
>
> See... the UTF-8 encoding only comes into play when converting bytes
> from the request into Strings on which your Java code operates. Once
> you're in the Java world, everything should be okay. Again, when you
> write the data back out to the response, the UTF-8 comes into play as
well.
>
> However, when writing to the db, the strings also need to be converted
> to bytes by some character encoding. It's very possible that either the
> VM and/or MySQL are using incompatible character sets. Check to see what
> the value of the system property "file.encoding" is at runtime.
>
> Then again... unless you really are using multibyte characters, you
> should be okay no matter what. The MySQL JDBC driver should be using the
> same encoding going both to and from the db. But, if it's an encoding
> that doesn't understand multibyte characters (like ISO-8859-1), then you
> might be permanently damaging those characters. Though I use MySQL/Java
> all the time, I'm not sure how to set the character encoding for the
> JDBC driver. Check the MySQL documentation, and let us know what you find.
>
> Hope that helps,
> -chris
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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


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


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



MBeanServer in Tomcat 5.0.10

2003-11-24 Thread santoshsprabhu
Hi,


As mentioned in the changelogs of Tomcat version 5.0.10 MX4J 1.1.1 is being replaced 
by JMX 1.2 RI 
Please refer to page http://jakarta.apache.org/tomcat/tomcat-5.0-doc/changelog.html 
for details.
Has any one tried out to get the MBeans in this new implementation ?
I am trying to get the MBeanServer and access the MBeans exposed by Tomcat.
Any help in this direction will be deeply appreciated


Santosh



 
 Click onthe image to chat with me


RE: IIS is not supported in Tomcat 4.1.29.

2003-11-24 Thread Tom Lyle
Jesus, what a way to start a Monday morning. Is there really any point in
shouting at each other like this? If you've still not got Tomcat working
with IIS try this:
http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html I followed that
and got it all working.

Tomcat isn't as well documented as it might be (for reasons that have
already been stated) but theres really no reason to start having a go at
people.

Peace people,

Tom

> -Original Message-
> From: Roeland Meyer [mailto:[EMAIL PROTECTED]
> Sent: 24 November 2003 09:43
> To: 'Tomcat Users List'
> Subject: RE: IIS is not supported in Tomcat 4.1.29.
>
>
> Before I sound too much like byting the hand that feeds, let me thank you
> for the useful information that you have provided.
>
> > From: Christopher Schultz [mailto:[EMAIL PROTECTED]
> > Sent: Monday, November 24, 2003 4:26 AM
>
> and I will make due allowances for the time of your response as well. Late
> nights can make one more than a bit tense.
>
> >  > > You don't pretend to win the coveted Whiner Of The Month award
> >  > > with this, I hope. There's a lot of competition, you know.
> >
> > I think this post gets my vote for this coveted award. Everyone: you
> > have only 7 days left to submit your entries!
>
> For one thing, whether you guys know it or not, Java is competing
> against MS
> .NET. I surfaced specific issues that need to be covered. I have a case
> where the requirements are Win2K and IIS. Neither Linux nor Apache are
> viable options, although I've argued for, at least, Apache. I'm doing good
> to get Tomcat, okay? I don't want to do C# as that doesn't port
> more than 5
> micro-inches from the MS platforms. This sort of stuff makes it
> hard to sell
> Tomcat.
>
> > > There are three section to this email;
> > > 'General Complaints', 'IIS HOW-TO', and 'Workers HOW-TO'.
> >
> > No, you have one section: complaining about everything. I mistakenly
> > read the whole post, thinking that there woud, in fact, be an "IIS
> > HOWTO" and "Workers HOWTO" contained somewhere within. Alas,
> > there was not.
>
> No, I went item-by-item thorugh the dox that were shipped with
> the product.
> Often I was looking at
> http://jakarta.caselle:8080/tomcat-docs/jk2/jk/workershowto.html or
> http://jakarta.caselle:8080/tomcat-docs/jk2/jk/iishowto.html. I was making
> the case that both of those documents need to be either fixed or removed
> from the distribution. In fact, I stated that plainly. You must not have
> read that.
>
> > > General complaints: (in no particular order)
> >
> > I recognize that there are shortcomings in the documentation. You do
> > realize that pretty much nobody gets paid to write this
> > stuff, right? If
> > you have spent a significant amount of time figuring
> > something out, why
> > not help out with the project and submit either a replacement
> > document
> > for IIS/Tomcat or a patch to any existing documentation?
>
> Actually, I would gladly do so. I am considering compiling my notes for
> subbmital after I get this stuff working. I *really* don't want
> to do .NET.
>
> > > IIS HOW-TO:
> > >
> > > 1) Obviously, all references to Workers HOW-TO
> > > point to a defective document, as shown in the
> > > section on the workers HOW-TO.
> >  >
> >  > [snip]
> >  >
> >  > Workers HOW-TO:
> >  >
> >  > This was obviously written for Tomcat 3 and never
> >  > updated for Tomcat 4.1.29.
> >
> > Do you mean this HOWTO:
> >
> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html
>
> Yep and these are the offending lines;
>
> ---
> workers.properties - A file that describes the host(s) and port(s) used by
> the workers (Tomcat processes). A sample workers.properties can be found
> under the conf directory.
> uriworkermap.properties - A file that maps URL-Path patterns to workers. A
> sample uriworkermap.properties can be found under the conf directory as
> well.
> ---
>
> Neither workers.properties nor uriworkermap.properties are
> shipped with the
> product, contrary to what is clearly written insaid dox.
>
> > It specifically mentions the changes since Tomcat 3.3 (with
> > respect to
> > 4.x and 5.x). Here's an example:
> >
> > "
> > The ajp12  has been deprecated  with Tomcat 3.3.x and you should use
> > instead ajp13  which is the only ajp protocol known by Tomcat 4.0.x,
> > 4.1.x and 5.
> >
> > Of course Tomcat 3.2.x and 3.3.x also support ajp13 protocol.
> > "
>
> If you'd truely read my email then you'd have noticed that I
> never mentioned
> ajp13. I had already read and understood that part. The isue isn't
> documented changes, the issues are changes that aren't
> documented. A slight
> difference.
>
> >  > [I can't figure out workers, and I find the workers HOWTO to be
> >  > worthless. By the way, what is a worker?]
> >
> > I find that this document is very helpful for these types of
> > questions:
> >
> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workers
> > howto.html
>
> Is that anything like
> http://jakarta.caselle:8

Re: Workers.properties for 4.1.29

2003-11-24 Thread Walter do Valle
http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm


  - Original Message - 
  From: Roeland Meyer 
  To: Tomcat Users (E-mail) 
  Sent: Saturday, November 22, 2003 7:35 PM
  Subject: Workers.properties for 4.1.29


  does one exist and where can I get a example?

  The version for 3.x has huge differences and my Tomcat 4.1.29 does not have
  one (contrary to all the dox). I'm also following the IIS HOW-TO and finding
  huge descrepencies.

  -
  R O E L A N D  M J   M E Y E R
  Yahoo Messenger: roeland_meyer
  http://www.roelandmeyer.org

  Running Tomcat 4.1.29 under Windows 2K Advanced Server.


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


Re: lame,encoding problem

2003-11-24 Thread bwasko
I ve also tried connection strings manipulations ?use Unicode and
?characterEncoding . Doesn't work :(
Bartek Wasko
- Original Message - 
From: "Galbayar" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 24, 2003 10:47 AM
Subject: RE: lame,encoding problem


> jdbc:mysql://127.0.0.1:3306/test/?useUnicode=true
>
> -Original Message-
> From: bwasko [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 24, 2003 4:50 PM
> To: Tomcat Users List
> Subject: Re: lame,encoding problem
>
>
> Hi
> I 've tried to execute insert statement that contains my national
characters
> with the mysql command-line client tool and all looks ok. The strings are
> properly written into database. But writing into it with use of jdbc
driver
> ends with chars like  '??'. I use mysql-connector and i think it
causes
> these problems.
>
> Cheers Bartek
> - Original Message -
> From: "Christopher Schultz" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, November 24, 2003 4:41 AM
> Subject: Re: lame,encoding problem
>
>
> > Bartek,
> >
> > > But then when I do something with these
> > > parameters and my mysql database I get then them wrong encoded and
> > > all data read from mysql are wrong encoded .
> >
> > Hmmm... if you use your Java code to insert some text into the DB, does
> > it look okay when you read it back out using the mysql command-line
> > tool? I'm wondering if the characters are being mangled on the way into
> > of out of the database.
> >
> > See... the UTF-8 encoding only comes into play when converting bytes
> > from the request into Strings on which your Java code operates. Once
> > you're in the Java world, everything should be okay. Again, when you
> > write the data back out to the response, the UTF-8 comes into play as
> well.
> >
> > However, when writing to the db, the strings also need to be converted
> > to bytes by some character encoding. It's very possible that either the
> > VM and/or MySQL are using incompatible character sets. Check to see what
> > the value of the system property "file.encoding" is at runtime.
> >
> > Then again... unless you really are using multibyte characters, you
> > should be okay no matter what. The MySQL JDBC driver should be using the
> > same encoding going both to and from the db. But, if it's an encoding
> > that doesn't understand multibyte characters (like ISO-8859-1), then you
> > might be permanently damaging those characters. Though I use MySQL/Java
> > all the time, I'm not sure how to set the character encoding for the
> > JDBC driver. Check the MySQL documentation, and let us know what you
find.
> >
> > Hope that helps,
> > -chris
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



I18N problems with JVM 1.3.1

2003-11-24 Thread Alexandre Roger
I have a problem with accents that is occurring when I run Tomcat under
JVM 1.3.1, but not under 1.4.

I am trying to convert a byte[] (that comes from a socket in the
production code) to a String. The bytes come from a CGI and are
ISO8859-1. When I do String(myByteArray), I get a question mark
character where I should get an accented character. Following some
advice picked up from the web, I have forced the JVM to start with a
file.encoding=ISO8859_1. This works perfectly when running Blackdown 1.4
but fails when using Blackdown 1.3.1. Here is a demo JSP:

The following JSP:

Convert a byte: <%=  new String(new byte[]{(byte)'é'}) %>
Convert ISO: <%= new String(new byte[]{(byte)'é'}, "ISO8859_1") %>
Encoding: <%= sun.io.ByteToCharConverter.getDefault() %>
Locale: <%=java.util.Locale.getDefault()%>


Here is the CATALINA_OPTS used:
-Dfile.encoding=ISO8859_1 -Duser.language=fr -Duser.region=CA"

If I do a Sytem.getProperty("file.encoding"), I get ISO8859_1 in both
JVM, but sun.io.ByteToCharConverter.getDefault() - which is what
String(byte[]) uses - says ASCII for JVM 1.3 and ISO8859_1 for JVM 1.4.

It would also seem this is not the only setting getting ignored by the
1.3 JVM... The language and region settings result in a locale of fr_CA
for 1.4 but are ignored (and default to en_US) for 1.3

I know I could simply force the encoding as I did in line 2 of the JSP,
but I am trying to migrate a whole lot of code from Websphere to Tomcat
that was written by many developers and would rather not seek all
instances of byte arrays being converted to strings. Moreover, I suspect
this is merely the tip of the iceberg and other occurrences of accents
being garbled might be going on in less obvious places. 

I also could just use version 1.4 of the JVM, but the only widely
available DEB for JVM 1.4 is a BETA. If at all possible, I'd like to use
a production release managed by the debian package manager...

Anyone has any suggestion?

Alex


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



Hosting Company moved three of my sites to new servers.

2003-11-24 Thread Kent Gilley
 and my jsp pages aren't working.  They say it's simple syntax error on 
my part.

SORRY, I sent the first email from the wrong address.

I've loaded a page with only two lines of code in them, and the problem 
is with calling the driver.

Example:
" http://www.azlehornets.com/apps/g092603.jsp "
old code



new code that I have tried.



cannot load jdbc driver class 'null'

2003-11-24 Thread Ralf Poppen
We are using the tomcat 4.1.24 and the j2sdk1.4.2_02. The jdbc- driver
we use is 'mysql-connector-java-3.0.8-stable-bin.jar'
As database we use mysql Version 3.23.58-nt.
When we call the web-service we get the message "cannot load jdbc driver
class 'null'" . Who can help?

Here is an extract of the Server.xml we use






factory
org.apache.commons.dbcp.BasicDataSourceFactory


driverClassName
org.gjt.mm.mysql.Driver 


url
jdbc:mysql://localhost/test --> 


username
root 


password
 


maxActive
8


maxIdle
4


maxWait
-1


removeAbandoned
true


removeAbandonedTimeout
60


logAbandoned
true





here is the extract of the web.xml we use


...
jdbc/testDB
javax.sql.DataSource
Container



Any help would be great.

Thanks Ralf 
 

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



form authentication doesnt't work well

2003-11-24 Thread cyril vidal
Hi,

Perhaps the problem is well known.
I'm under Tomcat/4.1.18-LE-jdk14

When I use form authentication, with the following code snippet included in web.xml:




...


declarativetest

/servlet/chapter9.DeclarativeSecureServlet

POST



...





FORM



/formlogin.html

/formerror.html





...





when I access my servlet 
http://localhost:8080/servlet/chapter9.DeclarativeSecureServlet via POST method, I 
have to fill the form http://localhost:8080/security/formlogin.html: that's confrom to 
 the informations given in web.xml ().

However, when I fill correctly this form, I have the output of doGet method of the 
DeclarativeSecureServlet and not the output of doPost method as expected!!

However, all works well when I run the same example with BASIC autthentication method 
instead of FORM one.

Is this bug fixed in a more recent version of Tomcat?



Thanks in advance for your response,

Regards,

Cyril.


tomcat stats and performances

2003-11-24 Thread arinsoun
Hi to all, I have two questions. We have Tomcat as server for a struts web
application.

- We need do stats for that web application, stats like  what pages user
enter, who user enter more to the application, performance stats ... I have
seen that one choice is do a manual filter, other choice use awstats.  I
would appreciate information about that of someone that have experiencia on
stats, and he can help me to choose the best choice on time and effort.

- The second question is about performance, here we have tomcat and when
most user enter to the application the server don't reply very well. I have
read that is better have APACHE as web server and TOMCAT as server
container, is that true?  would I improve the performance? or the solution
is customize tomcat better?.

THANKS IN ADVANCE. REGARDS.




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



Re: Apache Tomcat connector FAQ admin?

2003-11-24 Thread Tim Funk
Its already on the Wiki (Which is linked by the FAQ)
http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links
Since the links are so many links on the connectors page and many are dups of 
the Links above - I'll probably shorten the connectors list and reorg the 
Wiki Link above. (When I have time)

-Tim

Oscar Carrillo wrote:

Hi,

I have to move my tutorial listed on the Apache Tomcat Connector FAQ page.

I'm wondering who I should contact. I couldn't find the contact info on
the FAQ. I guess it's not "Frequent enough":) I believe I remember Tim
Funk starting it, but maybe it's changed now. I don't have a new URL yet,
but will shortly. Just wanted to get a contact so it doesn't have down
time.
An email or web page that has the contact info would be great.

Thanks so much,
Oscar Carrillo
http://daydream.stanford.edu/tomcat/install_web_services.html
 


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


Re: Apache 2, Tomcat 5, and JK2.

2003-11-24 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/

Any where it say tomcat 4.1 (its probbaly the same for 5)

-Tim

John Bell wrote:

Hi,

Can anyone point me to a how-to please.
 


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


Re: ScriptAlias equivalent in tomcat

2003-11-24 Thread Tim Funk
See the release notes. Its described there.

(Hint: edit $CATALINA_HOME/web.xml)

-Tim

Yochi Toledano wrote:

Hi,

I'm running tomcat version 4.X on HPUX system as a standalone server. I have read the CGI howto for tomcat and I have enabled CGI capability on the server.

My question is - How can I define additional directory that contains CGI scripts other than the default one that comes with the configuration.

On apache I would say something like:

ScriptAlias cgi-bin/myscripts /usr/local/myscript to link /usr/local/myscript to the cgi-bin/myscripts directive. How can this be done under tomcat?



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


Re: tomcat stats and performances

2003-11-24 Thread Remy Maucherat
[EMAIL PROTECTED] wrote:
Hi to all, I have two questions. We have Tomcat as server for a struts web
application.
First, don't crosspost. Thanks.

- We need do stats for that web application, stats like  what pages user
enter, who user enter more to the application, performance stats ... I have
seen that one choice is do a manual filter, other choice use awstats.  I
would appreciate information about that of someone that have experiencia on
stats, and he can help me to choose the best choice on time and effort.
You should use Tomcat 5 and precompile your web application to do that 
so that your JSPs are mapped as individual servlets. You can do that 
using the Tomcat 5 deployer tool.

The status servlet will then display statistics for the HTTP connector 
and the indivudual webapps and servlets.

- The second question is about performance, here we have tomcat and when
most user enter to the application the server don't reply very well. I have
read that is better have APACHE as web server and TOMCAT as server
container, is that true?  would I improve the performance? or the solution
is customize tomcat better?.
Tomcat HTTP has lower latency than JK, so you'll get better performance 
with HTTP unless there are very few requests for dynamic content. Tomcat 
5 is also a little bit faster than TC 4.1. However, I think your 
bottlenecks come from either your application, the database setup you're 
using, or too little bandwidth (if you have a public site).

--
x
Rémy Maucherat
Senior Developer & Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache 2, Tomcat 5, and JK2.

2003-11-24 Thread Davide Gurgone
Thanks a lot!!!

Davide Gurgone!

> http://jakarta.apache.org/tomcat/faq/
>
> Any where it say tomcat 4.1 (its probbaly the same for 5)
>
> -Tim
>
> John Bell wrote:
> > Hi,
> >
> > Can anyone point me to a how-to please.


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



Re: Tomcat JSP/HTML caching

2003-11-24 Thread Tim Funk
There are taglibs  available on the web that also do caching.

-Tim

Neal wrote:

Is there anyway to cache the output of JSP and HTML pages served by
Tomcat or do I need an HTTP server for this (e.g. Apache, IIS)?
I have a site begin hosted by Tomcat Standalone which relies upon XML
web services to render the contents and consequently the page render
time is really slow. 
 


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


AW: Multiple Tomcats handled by one Apache

2003-11-24 Thread Wegener, Dierk
Hi,

btw I'm using Apache 1.3.27 and Tomcats 3.3.1a and 4.1.24
on Solaris 8. But testing doesn't even work on win2k.

Thanks

Dierk

-Ursprungliche Nachricht-
Von: Wegener, Dierk [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 21. November 2003 09:11
An: 'Tomcat Users List'
Betreff: AW: Multiple Tomcats handled by one Apache


Hello,

can you please describe you managed to get to work?

Thank you!

Dierk Wegener

-Ursprungliche Nachricht-
Von: Bill Barker [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 21. November 2003 09:01
An: [EMAIL PROTECTED]
Betreff: Re: Multiple Tomcats handled by one Apache



"Wegener, Dierk" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I didn't find any hint in these links. So maybe anyone can describe
> how to manage this.
>
> For configuring the two different versions of Tomcat I think I have
> to switch the mod_jk.conf including depending on the version I want to
use.
> So mod_jk.so should be able to forward requests to different ports.
> Say that Tomcat 1 is a 3.3.1 and Tomcat 2 is a 4.1.24. Tomcat 1 uses
> port 8007 and Tomcat 2 uses 8009 to listen to Apache. I setup virtual
> hosts in Apache's httpd.conf which has different paths for including
> the mod_jk.conf and different uris in the JkMounts.
>
> That's the way I tried, but it doesn't work.
>

I don't know about you, but I have a similar config running for quite a
while now that works like a charm :).  Note that 8007 is the default port
for ajp12 (which is deprecated, even in Tomcat 3.3.x).  Both Tomcats should
be setup to have their ajp13 connector listening to the respective ports.

> Dierk Wegener
>
> -Ursprungliche Nachricht-
> Von: Tim Funk [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 20. November 2003 18:44
> An: Tomcat Users List
> Betreff: Re: Multiple Tomcats handled by one Apache
>
>
> Its possible. (Hopefully one of links describes it) ...
> http://jakarta.apache.org/tomcat/faq/connectors.html
>
>
> -Tim
>
> Wegener, Dierk wrote:
>
> > Hello,
> >
> > is it possible to use different Tomcats (not multiple instances but real
> > different versions)
> > in one Apache installations?
> >
> > In workers.properties there is an entry for workers.tomcat_home which I
> > suppose to mean
> > that multiple instances of one Tomcat installation can be started as
> > workers.
> >
> > My problem is that several systems on one physical machine need
different
> > Tomcat versions
> > but all have to be reachable on Port 80. So my approach was to load the
> > mod_jk and to define
> > VirtualHosts (in httpd.conf) where the Include-directives point to the
> > different Tomcats. Using
> > different mount points for JkMount should direct the requests to the
> correct
> > application.
> >
> > Unfortunately I am not able to get to work such a configuration.
> >
> > Can anyone help? Thanks!!
> >
> > Dierk Wegener
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




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

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

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



RE: Hosting Company moved three of my sites to new servers.

2003-11-24 Thread Schalk
Do you have the DB driver in your WEB-INF/lib

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Kent Gilley [mailto:[EMAIL PROTECTED]
:: Sent: Friday, November 21, 2003 9:06 PM
:: To: [EMAIL PROTECTED]
:: Subject: Hosting Company moved three of my sites to new servers.
:: 
::   and my jsp pages aren't working.  They say it's simple syntax error on
:: my part.
:: 
:: SORRY, I sent the first email from the wrong address.
:: 
:: I've loaded a page with only two lines of code in them, and the problem
:: is with calling the driver.
:: 
:: Example:
:: " http://www.azlehornets.com/apps/g092603.jsp "
:: 
:: old code
:: 
:: 
:: 
:: new code that I have tried.
:: 



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



filter problem

2003-11-24 Thread bwasko
My web.xml fragment:

Set Character Encoding
filters.SetCharacterEncodingFilter

encoding
ISO-8859-2



Set Character Encoding
/*


In fact when I get request.CharacterEncoding I get iso-8859-2 (Central
European) but why my national (polish) chars are wrong encoded??. For the
Strings I post submitting the form
and try to write into console I get something like ?Â???Â?.
What I am doing wrong?

Cheers Bartek






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



"Hot" Reload

2003-11-24 Thread Leonardo Lopez
Hi gurus, I`m using tomcat 4.0.6 and I need to know how to configure, a "hot" reload 
of an application. 
I mean if a put a recompiled class, because it suffered any change, on the directory 
"webapps/Aplication/WEB-INF/classes/..." , how could I make Tomcat detect that change 
and reload that application without using the manager tools. 
("/manager/reload?path=/Application", for instance)

Thanks in advance


How to set the user runnig tomcat ? ( + start/stop problem)

2003-11-24 Thread Julien Oix
Hi everyone,

I used to run a tomcat 4.1.18 rpm on a linux top box, where I put the
TOMCAT_USER variable in a tomcat4.conf file ( nobody user in my case ...)

Now i try to upgrade to 4.1.29 full archive (jakarta-tomcat-4.1.29.tar.gz)
and I didn't see any doc's on configuring this variable ..

Is the only solution to execute the startup.sh script as the running user ?
( the command line under a root session could be : su - nobody -c
$CATALINA_HOME/bin/startup.sh )

Another problem:

I start tomcat with the method up in the message:

[EMAIL PROTECTED] # su - nobody -c $CATALINA_HOME/bin/startup.sh
Using CATALINA_BASE:   /var/tomcat
Using CATALINA_HOME:   /var/tomcat
Using CATALINA_TMPDIR: /var/tomcat/temp
Using JAVA_HOME:   /usr/java/java
[EMAIL PROTECTED] # ps -aux

--> gives the process ran by nobody ...

[EMAIL PROTECTED] # su - nobody -c $CATALINA_HOME/bin/shutdown.sh
Using CATALINA_BASE:   /var/tomcat
Using CATALINA_HOME:   /var/tomcat
Using CATALINA_TMPDIR: /var/tomcat/temp
Using JAVA_HOME:   /usr/java/java
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.(Socket.java:309)
at java.net.Socket.(Socket.java:124)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
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(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

And the tomcat processes are always running ...

Any ideas ? ( i added the correct env in /etc/profile for every user)

Thanks in advance :-)

Julien OIX
Service Informatique de Gestion - Université de Nantes
Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65
Web: http://www.univ-nantes.fr
mailto:[EMAIL PROTECTED]


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



RE: "Hot" Reload

2003-11-24 Thread Stuart Stephen
It does this already if you have reloadable="true" in your context settings
in server.xml - it can sometimes take a small amount of time to kick in.



 or



-Original Message-
From: Leonardo Lopez [mailto:[EMAIL PROTECTED]
Sent: 23 November 2003 19:35
To: Tomcat Users List
Subject: "Hot" Reload


Hi gurus, I`m using tomcat 4.0.6 and I need to know how to configure, a
"hot" reload of an application.
I mean if a put a recompiled class, because it suffered any change, on the
directory "webapps/Aplication/WEB-INF/classes/..." , how could I make Tomcat
detect that change and reload that application without using the manager
tools. ("/manager/reload?path=/Application", for instance)

Thanks in advance



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



Re: mod_jk2/tomcat 4.1.29 uri mapping

2003-11-24 Thread Stefan Proels
Hi,

this turns out to be a bug indeed. In fact, it has already been reported 
to Bugzilla as 21561. Thanks to that bug report which pointed me to the 
right file I could track down this problem and attached a patch to fix 
it. In jk/native2/common/jk_uriEnv.c:

--- old_jk_uriEnv.c 2003-11-24 13:43:30.0 +0100
+++ jk_uriEnv.c 2003-11-24 14:13:16.0 +0100
@@ -445,6 +445,7 @@

 if (uri[strlen(uri) - 1] == '*') {
 /* context based /context/prefix/ASTERISK  */
+uri[strlen(uri) - 1] = '\0';
 uriEnv->suffix  = NULL;
 uriEnv->prefix  = uri;
 uriEnv->prefix_len  =strlen( uriEnv->prefix );


CU,
Stefan


On Monday 24 November 2003 10:10, Dionisio Ruiz de Zarate wrote:
> i have the same problem. i must to downgrade to the 4.1.27 version.
> there is other problem; if you have one dir with, for example, images,
> you must to map the directory.
>
> [uri:/erfx/*]
>  worker=ajp13:localhost:9602
>  context=/erfx
>  tomcatId=localhost:9602
>
> [uri:/erfx/images/*]
>  worker=ajp13:localhost:9602
>  context=/erfx
>  tomcatId=localhost:9602
>
> in other form doesn't run.
> in the 4.1.27 version you dont have to mapp the subdirectories.
>
> > Hi,
> >
> > I've encountered a strange problem which occurred after updating from
> > mod_jk2 compiled from the jakarta-tomcat-connectors-4.1.27-src.tar.gz
> > distribution to the new version from
> > jakarta-tomcat-connectors-4.1.29-src.tar.gz. I have the following
> > workers definition in workers2.properties:
> >
> > [channel.socket:localhost:9602]
> > info=Ajp13 forwarding over socket
> > debug=0
> > host=localhost
> > port=9602
> > tomcatId=localhost:9602
> >
> > [ajp13:localhost:9602]
> > channel=channel.socket:localhost:9602
> > tomcatId=localhost:9602
> >
> > [uri:/erfx/*]
> > worker=ajp13:localhost:9602
> > context=/erfx
> > tomcatId=localhost:9602
> >
> > This works fine with the mentioned mod_jk2 from tomcat 4.1.27.
> > However, with 4.1.29 only the uri /erfx/ gets mapped as expected but
> > /erfx/foo.jsp for example doesn't, i.e., the request is not processed
> > by tomcat but the file is delivered in its raw form by apache. When I
> > add another explicit mapping [uri:/erfx/foo.jsp] it works again. It
> > seems the "*" in the uri no longer works from some reason. Similarly,
> > when requesting an uri which does not directly correspond to a JSP
> > but should be passed to a servlet, I get a 404 (not found) from
> > apache.
> >
> > I'm running Apache 1.3.29 with Tomcat 4.1.29 on a Linux host. As
> > already stated, the same configuration works fine when using the
> > mod_jk2 from the 4.1.27 connector sources. Could someone please shed
> > some light on this and tell me how to get the new mod_jk2 to work?
> > Thanks in advance.
> >
> >
> > CU,
> > Stefan
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: tomcat start and stopping

2003-11-24 Thread Shapira, Yoav

Howdy,
Search the archives, these are posted every few weeks.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Tom Bartos [mailto:[EMAIL PROTECTED]
>Sent: Sunday, November 23, 2003 11:40 PM
>To: Tomcat Users List
>Subject: tomcat start and stopping
>
>
>
>Does anyone have any scripts to start and stop tomcat during system
boot
>and shutdown?
>
>Environment Solaris 8 sparc
>Tomcat 4.1.29
>Apache 1.3
>
>Thanks
>-Tom



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


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



RE: filter problem

2003-11-24 Thread Shapira, Yoav

Howdy,
Perhaps something is messed up in your browser?

I don't like using spaces in servlet or filter names, but that's just me ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: bwasko [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 24, 2003 7:29 AM
>To: Tomcat Users List
>Subject: filter problem
>
>My web.xml fragment:
>
>Set Character Encoding
>filters.SetCharacterEncodingFilter
>
>encoding
>ISO-8859-2
>
>
>
>Set Character Encoding
>/*
>
>
>In fact when I get request.CharacterEncoding I get iso-8859-2 (Central
>European) but why my national (polish) chars are wrong encoded??. For the
>Strings I post submitting the form
>and try to write into console I get something like ?Â???Â?.
>What I am doing wrong?
>
>Cheers Bartek
>
>
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: how to customize HTTPSession

2003-11-24 Thread Shapira, Yoav

Howdy,
Also, Servlet 2.4 adds the HttpRequestListener which you can implement:
use tomcat 5.  This may be perfect for your needs.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Christopher Schultz [mailto:[EMAIL PROTECTED]
>Sent: Sunday, November 23, 2003 10:32 PM
>To: Tomcat Users List
>Subject: Re: how to customize HTTPSession
>
>Tim,
>
>> With the functionality you desire, stay away from the Session classes
as
>> defined in the servlet API.
>
>I completely agree.
>
>> Instead, look into Filters and HttpServletRequestWrapper and
>> HttpServletResponse wrapper.
>>
>> Ideally, you'd create some helper classes which do the gets and sets
on
>> the servletrequests and responses. How they get instantiated is up to
>you.
>
>Yeah, the filter is the way to go. A Filter gets to execute both before
>and after your "application" code handles the request.
>
>You can do some clever things like gather all the cookies from a
request
>that match a certain pattern (regexp), convert them to objects, and
>shove them into request attribute (or perhaps a Map of name->value,
with
>the whole map in the request). Then, have your app code handle the
request.
>
>After your app code executes, look for an attribute in the request
>(since response objects, unfortunately for your, can't have attributes)
>that should be converted back into cookies.
>
>Let me know if you need some sample code. This seems interesting enough
>that I'd be willing to bang some simple stuff out for you :)
>
>-chris
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: HTTP Error 302

2003-11-24 Thread Shapira, Yoav

Howdy,
It's your responsibility to handle these redirects ;)  After all, it's your generating 
them.  Maybe add an extra parameter to requests coming from the web application so 
that your ImageGenerator knows it doesn't need to authenticate?  Or make the web 
application authenticate before it calls the ImageGenerator?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Günter Kukies [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 24, 2003 2:18 AM
>To: Tomcat Users List
>Subject: Re: HTTP Error 302
>
>Hi,
>after investigating the Problem, we found that we generate a redirect to
>login when
>the session is invalid. We have a servlet, that generates Images. If the
>client requests the Image servlet directly everything is fine. The session
>is valid and the user gets his image. But when the client want's to
>generate
>a PDF with FOP on the same webapplication where the Imigegeneratorservlet
>is, we dont't get a valid session. The request to the Imagegenerator is
>comming now from the webapplication and not from the client. So there is no
>session and we generate a redirect to login. I monitored the datatranfere
>with tcpdump on the loopback device 127.0.0.1 and there I saw the HTTP 302.
>
>What is the best way to handle this kind of session problems.
>
>Thanks for answeres
>
>Günter
>
>
>- Original Message -
>From: "Christopher Schultz" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Friday, November 21, 2003 2:47 PM
>Subject: Re: HTTP Error 302
>
>
>> Günter,
>> > what are the common reasons, that tomcat 4.1 is returning a HTTP 302
>error page?
>>
>> Response code 302 is not an error: it is a redirect. Are you connecting
>> to Tomcat via a browser or some other client?
>>
>> Your client should be "following" that redirect, which should be
>> specified in the "Location" header of the response.
>>
>> For more information, check out the HTTP spec at:
>>
>> 1.0 Spec: http://www.ietf.org/rfc/rfc1945.txt
>> 1.1 Spec: http://www.ietf.org/rfc/rfc2616.txt
>>
>> -chris
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: Server URL Before Request

2003-11-24 Thread Shapira, Yoav

Howdy,
I couldn't agree more with what Justin said in his previous message.
These developer vs. deployer responsibilities questions come up
frequently, especially with new developers.  This issue has been taken
very seriously and treated very carefully by the various spec expert
groups since the beginning.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
>Sent: Friday, November 21, 2003 6:47 PM
>To: Tomcat Users List
>Subject: RE: Server URL Before Request
>
>At 03:28 PM 11/21/2003, you wrote:
>>I would be interested in seeing how to read an environment variable
from
>>the init method of a servlet.
>
>Assuming you're asking about JVM environment variables since we're
>talking about the general case (not *nix or Win enviro variables).  If
>so, you can define your param on the command line when you start Tomcat
>and access it like you do any other system variable:
>
>System.getProperty("myApp.myProperty");
>
>This is one way to do it, but it's not reasonable if you need any
>flexibility or room to grow.  Instead, consider creating a properties
>file or xml configuration file.  Load this file and read your
parameters
>from it.  I'll leave the details of that to the archives...
>
>Hope this is what you're looking for.
>
>justin
>
>
>>-Original Message-
>>From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
>>Sent: Friday, November 21, 2003 2:54 PM
>>To: Tomcat Users List
>>Subject: RE: Server URL Before Request
>>
>>
>>
>>[This is a general comment: I don't disagree with Chuck Goehring]
>>
>>This is a common way to solve a problem such as the one Harris asked,
but
>>in general I don't think using init parameters are a very reasonable
>>solution.  Here's why:
>>
>>The web.xml defines the way in which the components of an application
>>interact.  It defines what urls are mapped to which resources, how
errors
>>should be handled, and (unfortunately, IMHO) definitions of roles and
>>resource authorization mappings.  These are all properties of your web
>>application and say *nothing* about how the app is deployed.
>>
>>Frequently, developers have situations where a webapp needs to be
aware
>>of the environment in which it is running.  In this case, it's the
name
>>and/or port that the app is running on.  In others, it's JNDI resource
>>lookup information.  In still others, it's application configuration
>>information that is long lived (how to configure management threads,
for
>>example).
>>
>>The point is, this is all information that belongs to a particular
>>*server*, not to the webapp.  It's different for every deployment
because
>>the machine for every deployment is different.  You could always
>>configure this stuff in a , but that's Tomcat specific and is
of
>>no help when you need to run on different platforms -- now or in the
>>future.
>>
>>Instead, leave the deployment configuration parameters up to the
person
>>responsible for deploying -- and observe the boundaries even if it's a
>>one-developer developed app.  Create a separate configuration
mechanism
>>(xml on the classpath, properties file, command line args, whatever is
>>accessible on every platform) and use that to store this type of
>>information.
>>
>>Granted, small projects can use the crutches of built-in nicities, but
>>for anyone developing a true J2EE app (not a Tomcat app), do yourself
a
>>favor and maintain strict separation between build-time configuration
>>parameters and deploy-time ones.
>>
>>justin
>>
>>[Can you tell there's pent up frustration from having to deal with
>>this?]  :)
>>
>>
>>At 01:51 PM 11/21/2003, you wrote:
>> >If you don't get a maintenance-free method from the group, you can
>> >always do the following:
>> >
>> >In the servlet:
>> >   public void init() throws ServletException {
>> > String lConnectTNSName =
>> > getServletContext().getInitParameter("ConnectTNSName");
>> > if(lConnectTNSName == null)
>> >   throw new RuntimeException("ConnectTNSName is null");
>> >...
>> >
>> >In the web applications web.xml I store the site-specific info:
>> >
>> >  (display-name)
>> > *** servlets and JSP pages.
>> > 
>> >   ConnectTNSName
>> >   
>> > 
>> >...
>> >
>> >You could store any info you want this way and it only needs to be
>> >re-entered when a change to your web.xml is required.
>> >
>> >Hope the group gives you a better answer, but this is handy for a
>> >variety of things.
>> >
>> >Chuck
>> >
>> >
>> >
>> >-Original Message-
>> >From: Harris Reynolds [mailto:[EMAIL PROTECTED]
>> >Sent: Friday, November 21, 2003 12:29 PM
>> >To: '[EMAIL PROTECTED]'
>> >Subject: Server URL Before Request
>> >
>> >
>> >Is there a mgmt API that will allow me to get the URL that the
server is
>> >running on from within the servlet init method (i.e. *before* the
first
>> >request comes in)?  ...really all I would need is the port number
(the
>> >hostname and context paths would be easy enough to get).
>> >t

RE: shared object cache

2003-11-24 Thread Shapira, Yoav

Howdy,
If you're using servlets,
getServletContext().setAttribute("myPersistenceManager",
myPersistenceManager) would do the trick.  If you're using JSPs, it's
pageContext.setAttribute(...).

The WeakHashMap is one approach: not one I'd use initially, but only if
you run into issues with a more conservative approach.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Rob Augustinus [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 24, 2003 2:38 AM
>To: Tomcat Users List
>Subject: Re: shared object cache
>
>
>thanks,
>
>1) That's exactly what I would like to do, but I'm not quite sure how
to do
>this. Could you point me to some documentation?
>
>2) I have thought about the complications of the cache, and indeed I
need
>to
>be carefull. On the other hand though it is not that critical in this
>application.
>
>
>
>Christopher Schultz wrote:
>
>> Rob,
>>
>>> I have written a PersistenceManager class that handles all database
>>> access and uses the SQLData interface to map java objects to
>>> User Defined Types in the oracle database. Every request now
>>> has to create a new instance of the persistencemanager so there is
>>> no sharing whatsoever. I would like the persistencemanager to look
>>> in the object cache first and if the object is not there retrieve it
>>> from the database. I need a way to keep this cache in memory
>>> so all requests can use the same cache.
>>
>>
>> I would do two things:
>>
>> 1) Put your PersistenceManager in the application scope, and re-use
it
>> all the time instead of doing "new PersistenceManager" for every
request.
>>
>> 2) Have your PersistenceManager do its own cachine. One of my
favorite
>> object caching techniques is to simply use a java.util.WeakHashMap.
>> The WeakHashMap works with WeakReferences, so you can fill it with
>> data, and the GC will purge some of it for you if it needs some
memory
>> back.
>>
>> It works just like any other Map, except that you aren't guarenteed
to
>> get your object back, later :)
>>
>> This may sound sketchy, but it's a pretty good cache because it works
>> the same all the time: if you have a cache miss, you go to the
database.
>>
>> Don't forget that caches are complicated: when data changes, you have
>> to make sure that the cache gets updated. If you have multiple
clients
>> and a single database, this gets to be a real nightmare. Only cache
>> things that don't need to be sync'd up-to-the-minute. For those
>> things, *always* go back to the db.
>>
>> -chris
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



Re: tomcat stats and performances

2003-11-24 Thread Peter Lin
 
The first thing you will want to consider is do you really need to use JSP tags.  If 
you read my little article on performance, you'll see jsp tags reduces performance. 
The newest jasper in tomcat5 has a plugin feature, which allows you to convert jsp 
tags to pure java code.
 
You're going to have to be more specific about what type of app it is, whether it is 
going to a database, is connection pooling used, what type of process it handles and 
so on.  The projects that I've worked on using jsp tags chose it for rapid development 
reasons and we accepted that at the beginning.  When you say it doesn't respond very 
well, it doesn't give enough detail for others to assist you.
 
there have been quite a few threads lately on performance, so I recommend reading 
those messages to see if that helps.
 
peter
 
 


[EMAIL PROTECTED] wrote:
Hi to all, I have two questions. We have Tomcat as server for a struts web
application.

- We need do stats for that web application, stats like what pages user
enter, who user enter more to the application, performance stats ... I have
seen that one choice is do a manual filter, other choice use awstats. I
would appreciate information about that of someone that have experiencia on
stats, and he can help me to choose the best choice on time and effort.

- The second question is about performance, here we have tomcat and when
most user enter to the application the server don't reply very well. I have
read that is better have APACHE as web server and TOMCAT as server
container, is that true? would I improve the performance? or the solution
is customize tomcat better?.

THANKS IN ADVANCE. REGARDS.




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


-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

RE: Tomcat JSP/HTML caching

2003-11-24 Thread Shapira, Yoav

Howdy,
It could also be done with a trivial filter, maintaining a map of
request URLs to output html Strings.  Just be careful if your request
includes POST parameters that affect the output...

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Tim Funk [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 24, 2003 6:53 AM
>To: Tomcat Users List
>Subject: Re: Tomcat JSP/HTML caching
>
>There are taglibs  available on the web that also do caching.
>
>-Tim
>
>Neal wrote:
>
>> Is there anyway to cache the output of JSP and HTML pages served by
>> Tomcat or do I need an HTTP server for this (e.g. Apache, IIS)?
>>
>> I have a site begin hosted by Tomcat Standalone which relies upon XML
>> web services to render the contents and consequently the page render
>> time is really slow.
>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: Slow on Linux

2003-11-24 Thread Shapira, Yoav

Howdy,
First of all, how fast was the forward call on another platform?

OTOH, 500ms for the line of code you gave below is not that atrocious.
Both the getRequestDispatcher and forward calls are not lightweight.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Yonatan Goraly [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 24, 2003 2:17 AM
>To: Tomcat Users List
>Subject: Slow on Linux
>
>I am in the process of evaluating Linux as a server platform for my
>application (this is my first Linux experience).
>The environment is:
>- Single AMD Opteron 1.8 GHz
>- Tyan motherboard with 1 GB memory
>- Mandrake Linux 9.2 AMD64 RC1
>- SUN JDK 1.4.2_02
>- Tomcat 4.29, without Apache web server
>
>The first impression is that the application is extremely slow. I found
>out that calling
>getServletConfig().getServletContext().getRequestDispatcher(url).forwar
d(re
>quest,
>response); can take about 500 ms (I put one log command before the
call,
>and the other at the beginning of the forwarded JSP page, so I know
that
>the only call my application does between the log commands is the
>forward call)
>
>Please advise
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: Starting Tomcat as nobody...

2003-11-24 Thread Shapira, Yoav

Howdy,
I like sudo and have been using it for years.  I like commons-daemon too
(naturally).

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Christopher Schultz [mailto:[EMAIL PROTECTED]
>Sent: Sunday, November 23, 2003 7:52 PM
>To: Tomcat Users List
>Subject: Re: Starting Tomcat as nobody...
>
>Tim,
>
>> % sudo -u nobody /path/to/startup.sh
>>
>> This seems to work. Pros, Cons?
>
>I don't have a ton of experience with sudo, but it seems like a good
>idea -- you can lock down the operations that a user is capable of
>doing, etc.
>
>I have production machines that startup tomcat on boot, and I have
>something like this in the startup scripts:
>
>su vch -p -c "/usr/local/tomcat/startup.sh"
>
>Hope that helps a bit.
>
>-chris
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: Tomcat 4 request filter

2003-11-24 Thread Shapira, Yoav

Howdy,
That's because modifying the contents of a request is:
a. Much less common
b. Much more difficult
c. Indicates bad design usually

A request is a request: someone asked for something.  If they wanted
something else, they'd ask for something else.  You shouldn't pretend
you know what they want better than they do: it indicates a bad design
either on the UI part making the request or on your part.

What you would need to do: have an HttpServletRequestWrapper with
overriding methods for getInputStream etc. so that when your servlets
call read the request, they read your stream instead.  Your stream would
be based upon the original one with your modifications.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Al Hopper [mailto:[EMAIL PROTECTED]
>Sent: Saturday, November 22, 2003 10:52 AM
>To: Tomcat Users List
>Subject: Tomcat 4 request filter
>
>
>Has anyone got a sample of a filter that would allow me to change the
>contents of the body of a http Servlet Request.  The request is a UTF-8
>encoded XML packet which contains an internal URL to a resource that is
no
>longer accessible.  I want to scan the input for the bad URL and
replace it
>with a valid URL and then pass on the request to the XML parser, which
>reads from a request.getInputStream.
>
>Googling around I see lots of code to modify a Servlet Response... but
>nothing that modifies the contents of request.
>
>Pls Help!
>
>Al Hopper  Logical Approach Inc, Plano, TX.  [EMAIL PROTECTED]
>   Voice: 972.379.2133 Fax: 972.379.2134
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



Sending to Printer?

2003-11-24 Thread Luc Foisy

Is there any code I could use to send something to a printer? Via the print writer I 
suppose would be needed. Is there some kind of jsp tag library to do this, or some 
particular way I can send a page that would be pushed to thier browsers printing 
functions?

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



Re: shared object cache

2003-11-24 Thread Vidar Langberget

- Original Message - 
From: "Shapira, Yoav" [EMAIL PROTECTED]

> Howdy,
> If you're using servlets,
> getServletContext().setAttribute("myPersistenceManager",
> myPersistenceManager) would do the trick.  If you're using JSPs, it's
> pageContext.setAttribute(...).


Is there any reason why it is better to use the servlet context instead of a
Static manager class?


regards,

Vidar



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



Re: shared object cache

2003-11-24 Thread Tim Funk
Warning! In a JSP ...

  pageContext.setAttribute(...)
should be
  application.setAttribute(...)
or
  pageContext.setAttribute(..., PageContext.APPLICATION_SCOPE)
-Tim

Shapira, Yoav wrote:

Howdy,
If you're using servlets,
getServletContext().setAttribute("myPersistenceManager",
myPersistenceManager) would do the trick.  If you're using JSPs, it's
pageContext.setAttribute(...).
The WeakHashMap is one approach: not one I'd use initially, but only if
you run into issues with a more conservative approach.


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


RE: Sending to Printer?

2003-11-24 Thread Shapira, Yoav

Howdy,
You can use the JavaScript window.print() function ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Luc Foisy [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 24, 2003 9:10 AM
>To: Tomcat User List (E-mail)
>Subject: Sending to Printer?
>
>
>Is there any code I could use to send something to a printer? Via the
print
>writer I suppose would be needed. Is there some kind of jsp tag library
to
>do this, or some particular way I can send a page that would be pushed
to
>thier browsers printing functions?
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: shared object cache

2003-11-24 Thread Shapira, Yoav

Howdy,
Ahh yes, shows how much JSP writing I do ;)

I didn't see servlet context is necessarily better than a static manager
class, but now that you ask, I'll give two reasons:
- Less code for you to write, always good
- Much simpler handling of application restart/reload

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Tim Funk [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 24, 2003 9:10 AM
>To: Tomcat Users List
>Subject: Re: shared object cache
>
>Warning! In a JSP ...
>
>   pageContext.setAttribute(...)
>should be
>   application.setAttribute(...)
>or
>   pageContext.setAttribute(..., PageContext.APPLICATION_SCOPE)
>
>-Tim
>
>Shapira, Yoav wrote:
>
>> Howdy,
>> If you're using servlets,
>> getServletContext().setAttribute("myPersistenceManager",
>> myPersistenceManager) would do the trick.  If you're using JSPs, it's
>> pageContext.setAttribute(...).
>>
>> The WeakHashMap is one approach: not one I'd use initially, but only
if
>> you run into issues with a more conservative approach.
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



Re: OutOfMemory Error in Catalina

2003-11-24 Thread Abhijeet Selukar
Hi,
I tried to increase the heap size to 1200 MB in catalina.sh file (JAVA_OPTS="-Xms64m 
-Xmx1200m"), It didn't work. I was suggested one more way is to increase the server's 
maximum file descriptor limit. But I don't know where to increase this limit. Apart 
from that, is there any other way / utility to find out the root cause of OOM in 
catalina.out log file.

Abhijeet

  - Original Message - 
  From: Tim Funk 
  To: Tomcat Users List 
  Sent: Wednesday, November 19, 2003 7:50 PM
  Subject: Re: OutOfMemory Error in Catalina


  It may not be a leak ... http://jakarta.apache.org/tomcat/faq/memory.html#why

  -Tim

  Abhijeet Selukar wrote:
  > Hi All,
  > 
  > Now a days i am stuck with a problem. I get exceptions in Catalina.out log 
file when my web application is running on that.
  > 
  > Is there any utility to find out, from where or from which files the memory is 
leaking...
  > 
  > For your information, putting the exception here...
  > 
  > java.lang.OutOfMemoryError: unable to create new native thread
  >  at java.lang.Thread.start(Native Method)


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


i18n problem

2003-11-24 Thread Fernandez Angil Marian
Jakarta i18n does not work with tomcat 4.1, does anyone know the reason. I
am trying desperately trying to get it work through any help is greatly
appreciated
Thanks in advance
Fernandez



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



Re: OutOfMemory Error in Catalina

2003-11-24 Thread Tim Funk
I bet your going down the wrong path for debugging, from the FAQ:

-- You have too many threads running. Some OS's have a limit to the number of 
threads which may be executed by a single process. (Which is what the JVM 
is.) Refer to your OS docs for more information on how to raise this threshold.

-Tim

Abhijeet Selukar wrote:

Hi,
I tried to increase the heap size to 1200 MB in catalina.sh file (JAVA_OPTS="-Xms64m 
-Xmx1200m"), It didn't work. I was suggested one more way is to increase the server's 
maximum file descriptor limit. But I don't know where to increase this limit. Apart from that, 
is there any other way / utility to find out the root cause of OOM in catalina.out log file.
Abhijeet

  - Original Message - 
  From: Tim Funk 
  To: Tomcat Users List 
  Sent: Wednesday, November 19, 2003 7:50 PM
  Subject: Re: OutOfMemory Error in Catalina

  It may not be a leak ... http://jakarta.apache.org/tomcat/faq/memory.html#why

  -Tim

  Abhijeet Selukar wrote:
  > Hi All,
  > 
  > Now a days i am stuck with a problem. I get exceptions in Catalina.out log file when my web application is running on that.
  > 
  > Is there any utility to find out, from where or from which files the memory is leaking...
  > 
  > For your information, putting the exception here...
  > 
  > java.lang.OutOfMemoryError: unable to create new native thread
  >  at java.lang.Thread.start(Native Method)

 


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


RE: OutOfMemory Error in Catalina

2003-11-24 Thread Shapira, Yoav

Howdy,

>I tried to increase the heap size to 1200 MB in catalina.sh file
>(JAVA_OPTS="-Xms64m -Xmx1200m"), It didn't work. I was suggested one
more

It didn't work in what way?  Did the JVM actually allocate 1200MB and
then die with an OutOfMemoryError, or did it never allocate that much
(e.g. because they're not that much physical memory).

>way is to increase the server's maximum file descriptor limit. But I
don't
>know where to increase this limit.

Then find out how, e.g. by reading your server's docs.  It's usually
ulimit on unix systems.

>Apart from that, is there any other way
>/ utility to find out the root cause of OOM in catalina.out log file.

Yes, it's a called a Profiler, preferably one that will give you heap
snapshot deltas like OptimizeIt.  But if your problem is at the OS level
such as by having too few file descriptors, a profiler won't help you.
Also know that a profiler requires much more memory be allocated to the
JVM to support JVMPI overhead.

Yoav Shapira



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


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



Moving from 3.3.1 to 4.1.29 question

2003-11-24 Thread Charles Gardner
  I am converting from 3.3.1 to 4.1.29.  Everything seems to be works, got
the admin part working.  It will bring up my application web pages but when
it goes to run a servlet which is in the same place as it was in 3.3.1, it
give me the following error on any servlet.  The web page specifies the
server as ../servlet/ which worked in 3.3.1.  I have the
server.xml file with a context additiona just like the "example" setup
without the dbf stuff.  I have a servlet which is run at startup and it
starts up ok but any thing run from a web page cant be found?

The other files I have not found a home for is
/conf/apps_adventa.xml  and
/conf/users/adventa-users.xml.


HTTP Status 404 - /adventa/servlet/TWSC01




type Status report

message /adventa/servlet/TWSC01

description The requested resource (/adventa/servlet/TWSC01) is not
available.





Apache Tomcat/4.1.29


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


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



mod_jk2 and ajp12-Support

2003-11-24 Thread mfleige
hi there,

i'm pretty new to this apache/tomcat connector thingy and so,
there are two open questions i was unable to solve by googling...
maybe some of you can help me? :-)

ok, here they are:

1.) does mod_jk2 (v2.0.2) still support ajp12?
2.) how do i compile mod_jk2 into apache2 statically?

thanks for your help!

Regards,

Marcus Fleige

--
Rhenus Assets & Services GmbH & Co. KG
Service Center IT
Rhenus-Platz 1 - Am Airport Dortmund
59439 Holzwickede

Marcus Fleige - Operational Service
Telefon: (02301) 291 - 1324   Telefax: (02301) 291 - 532
E-Mail: [EMAIL PROTECTED]   Internet: http://www.rhenus.de

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify your system manager.




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



RE: Moving from 3.3.1 to 4.1.29 question

2003-11-24 Thread Simon Taylor
You need to explicitly specify a servlet mapping for all servlets or
uncomment the invoker section in the server.xml
Being a newbie I asked this question just the other day - see:-

http://marc.theaimsgroup.com/?l=tomcat-user&m=103945394724196&w=2


Simon

-Original Message-
From: Charles Gardner [mailto:[EMAIL PROTECTED] 
Sent: 24 November 2003 14:35
To: Tomcat Users List
Subject: Moving from 3.3.1 to 4.1.29 question


  I am converting from 3.3.1 to 4.1.29.  Everything seems to be works, got
the admin part working.  It will bring up my application web pages but when
it goes to run a servlet which is in the same place as it was in 3.3.1, it
give me the following error on any servlet.  The web page specifies the
server as ../servlet/ which worked in 3.3.1.  I have the
server.xml file with a context additiona just like the "example" setup
without the dbf stuff.  I have a servlet which is run at startup and it
starts up ok but any thing run from a web page cant be found?

The other files I have not found a home for is
/conf/apps_adventa.xml  and
/conf/users/adventa-users.xml.


HTTP Status 404 - /adventa/servlet/TWSC01




type Status report

message /adventa/servlet/TWSC01

description The requested resource (/adventa/servlet/TWSC01) is not
available.





Apache Tomcat/4.1.29


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


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



Re: How to set the user runnig tomcat ? ( + start/stop problem)

2003-11-24 Thread Timothy Stone
Julien,

If I can just provide you some feedback, at least if only to let you 
know that someone is reading and following this thread. :)

I'm am trying to do the same, not on Linux but Mac OS X. I'm very 
interested in this as well. That said, allow me to provide some comments 
on your post:

Julien Oix wrote:

I used to run a tomcat 4.1.18 rpm on a linux top box, where I put the
TOMCAT_USER variable in a tomcat4.conf file ( nobody user in my case ...)
As an RPM, the tomcat4.conf file probably provides variables that are 
passed to the init.d scripts for startup and shutdown.

Now i try to upgrade to 4.1.29 full archive (jakarta-tomcat-4.1.29.tar.gz)
and I didn't see any doc's on configuring this variable ..
As noted, the tomcat4.conf file is a Linux convention, likely for 
convenience. This file is not going be in the binary distribution of 
Tomcat from Jakarta.

I would like to request a copy of both the conf file and the init.d 
script loaded by the RPM. It may provide clues valuable in your quest 
and my quest on Mac OS X.

In Mac OS X, similar to the init.d scripts, a script is placed in a 
StartupItems folder and executed as root. However, as one might guess, 
this results in the process being owned by root. I have not found a 
working method of changing this, including, as you suggest below:

Is the only solution to execute the startup.sh script as the running user ?
( the command line under a root session could be : su - nobody -c
$CATALINA_HOME/bin/startup.sh )
Thus, the reason I request the conf and init.d script files. Valuable 
clues may be found in each that could help us both.

Another problem:

I start tomcat with the method up in the message:

[EMAIL PROTECTED] # su - nobody -c $CATALINA_HOME/bin/startup.sh
Using CATALINA_BASE:   /var/tomcat
Using CATALINA_HOME:   /var/tomcat
Using CATALINA_TMPDIR: /var/tomcat/temp
Using JAVA_HOME:   /usr/java/java
[EMAIL PROTECTED] # ps -aux
--> gives the process ran by nobody ...

[EMAIL PROTECTED] # su - nobody -c $CATALINA_HOME/bin/shutdown.sh
Using CATALINA_BASE:   /var/tomcat
Using CATALINA_HOME:   /var/tomcat
Using CATALINA_TMPDIR: /var/tomcat/temp
Using JAVA_HOME:   /usr/java/java
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
...snip stacktrace...

And the tomcat processes are always running ...

Any ideas ? ( i added the correct env in /etc/profile for every user)

I'm not sure why you would not be able to stop the process as started. 
Hmmm...

Look forward to hearing from you and others.

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


simple classpath / webapp question

2003-11-24 Thread Mark D. Hansen
Is there any way to put .jar files on a Webapp's classpath other than placing the .jar 
files into the WEB-INF\lib directory?

I've got a lot of webapps, and it is a real chore keeping these WEB-INF\lib 
directories up-to-date as all the various java libraries that they rely on get updated.

Is there maybe a way to specify a web-app specific classpath in the web.xml file or as 
a system property?

Thanks for any help (and your patience with this simple question),

Mark

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



Re: Moving from 3.3.1 to 4.1.29 question

2003-11-24 Thread Charles Gardner

  Thanks  that did the trick.

Charles @ home
- Original Message - 
From: "Simon Taylor" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, November 24, 2003 8:42 AM
Subject: RE: Moving from 3.3.1 to 4.1.29 question


> You need to explicitly specify a servlet mapping for all servlets or
> uncomment the invoker section in the server.xml
> Being a newbie I asked this question just the other day - see:-
>
> http://marc.theaimsgroup.com/?l=tomcat-user&m=103945394724196&w=2
>
>
> Simon
>
> -Original Message-
> From: Charles Gardner [mailto:[EMAIL PROTECTED]
> Sent: 24 November 2003 14:35
> To: Tomcat Users List
> Subject: Moving from 3.3.1 to 4.1.29 question
>
>
>   I am converting from 3.3.1 to 4.1.29.  Everything seems to be works, got
> the admin part working.  It will bring up my application web pages but
when
> it goes to run a servlet which is in the same place as it was in 3.3.1, it
> give me the following error on any servlet.  The web page specifies the
> server as ../servlet/ which worked in 3.3.1.  I have the
> server.xml file with a context additiona just like the "example" setup
> without the dbf stuff.  I have a servlet which is run at startup and it
> starts up ok but any thing run from a web page cant be found?
>
> The other files I have not found a home for is
> /conf/apps_adventa.xml  and
> /conf/users/adventa-users.xml.
>
>
> HTTP Status 404 - /adventa/servlet/TWSC01
>
> --
--
> 
>
> type Status report
>
> message /adventa/servlet/TWSC01
>
> description The requested resource (/adventa/servlet/TWSC01) is not
> available.
>
>
> --
--
> 
>
> Apache Tomcat/4.1.29
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Re: simple classpath / webapp question

2003-11-24 Thread Ben Souther
You could put them in TOMCAT_HOME/common/lib.
Then the jars will be accessible to all webapps running in that instance of 
Tomcat.





On Monday 24 November 2003 10:13 am, Mark D. Hansen wrote:
> Is there any way to put .jar files on a Webapp's classpath other than
> placing the .jar files into the WEB-INF\lib directory?
>
> I've got a lot of webapps, and it is a real chore keeping these WEB-INF\lib
> directories up-to-date as all the various java libraries that they rely on
> get updated.
>
> Is there maybe a way to specify a web-app specific classpath in the web.xml
> file or as a system property?
>
> Thanks for any help (and your patience with this simple question),
>
> Mark
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Ben Souther
F.W. Davison & Company, Inc.



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



RE: Moving from 3.3.1 to 4.1.29 question

2003-11-24 Thread Bodycombe, Andrew
Please read the tomcat FAQ:

http://jakarta.apache.org/tomcat/faq/misc.html#invoker

-Original Message-
From: Charles Gardner [mailto:[EMAIL PROTECTED] 
Sent: 24 November 2003 14:35
To: Tomcat Users List
Subject: Moving from 3.3.1 to 4.1.29 question


  I am converting from 3.3.1 to 4.1.29.  Everything seems to be works, got
the admin part working.  It will bring up my application web pages but when
it goes to run a servlet which is in the same place as it was in 3.3.1, it
give me the following error on any servlet.  The web page specifies the
server as ../servlet/ which worked in 3.3.1.  I have the
server.xml file with a context additiona just like the "example" setup
without the dbf stuff.  I have a servlet which is run at startup and it
starts up ok but any thing run from a web page cant be found?

The other files I have not found a home for is
/conf/apps_adventa.xml  and
/conf/users/adventa-users.xml.


HTTP Status 404 - /adventa/servlet/TWSC01




type Status report

message /adventa/servlet/TWSC01

description The requested resource (/adventa/servlet/TWSC01) is not
available.





Apache Tomcat/4.1.29


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


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

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



Tomcat connectors on Aix

2003-11-24 Thread Jose
Hello.
I need your help to compile mod_jk2 connectors on Aix 4.3.3
I use gcc 3.2.1, libtool 1.4.2, autoconf 2.53, automake 1.5
I have downloaded jakarta-tomcat-4.1.29 and it is works fine.
Now i need apache 2.0.48 works with tomcat and i have downloaded 
jakarta-tomcat-connectors-4.1.29-src (i don't know if i need this version or JK 2.0.2 
Source Release tar.gz)
I have followed steps on notes of jeff 
trawick(http://www.apache.org/~trawick/tomcataix.html#mod_jk2_gcc):
$cd jk/native2
$ chmod +x ./buildconf.sh
$ ./buildconf.sh
$ CC=gcc ./configure --with-java-home=/usr/java131 
--with-apxs2=/usr/local/apache2/bin/apxs

At last Before running make, edit ../../jk/native2/server/apache2/Makefile and change 
the line 
MOD_LINK = $(LIBTOOL) --mode=link $(CC) -avoid-version -module -rpath 
--${APACHE2_LIBEXEC} $(LT_LDFLAGS) $(ALL_LDFLAGS)
to 
MOD_LINK = $(LIBTOOL) --mode=link $(CC) -avoid-version -module -rpath 
${APACHE2_LIBEXEC} $(LT_LDFLAGS) $(ALL_LDFLAGS) -Wl,-brtl
But i get a lot of warnings.

Any idea ?

Thanks.

RE: simple classpath / webapp question

2003-11-24 Thread Mark D. Hansen
Unfortunately, I can't do that because I've got webapps that use different versions of 
the same runtime libraries.

> -Original Message-
> From: Ben Souther [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 24, 2003 10:24 AM
> To: Tomcat Users List
> Subject: Re: simple classpath / webapp question
> 
> 
> You could put them in TOMCAT_HOME/common/lib.
> Then the jars will be accessible to all webapps running in 
> that instance of 
> Tomcat.
> 
> 
> 
> 
> 
> On Monday 24 November 2003 10:13 am, Mark D. Hansen wrote:
> > Is there any way to put .jar files on a Webapp's classpath 
> other than
> > placing the .jar files into the WEB-INF\lib directory?
> >
> > I've got a lot of webapps, and it is a real chore keeping 
> these WEB-INF\lib
> > directories up-to-date as all the various java libraries 
> that they rely on
> > get updated.
> >
> > Is there maybe a way to specify a web-app specific 
> classpath in the web.xml
> > file or as a system property?
> >
> > Thanks for any help (and your patience with this simple question),
> >
> > Mark
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -- 
> Ben Souther
> F.W. Davison & Company, Inc.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: simple classpath / webapp question

2003-11-24 Thread Shapira, Yoav

Howdy,
Or you could have ant scripts that create and deploy WAR files for you.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Mark D. Hansen [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 24, 2003 10:14 AM
>To: Tomcat User (E-mail)
>Subject: simple classpath / webapp question
>
>Is there any way to put .jar files on a Webapp's classpath other than
>placing the .jar files into the WEB-INF\lib directory?
>
>I've got a lot of webapps, and it is a real chore keeping these
WEB-INF\lib
>directories up-to-date as all the various java libraries that they rely
on
>get updated.
>
>Is there maybe a way to specify a web-app specific classpath in the
web.xml
>file or as a system property?
>
>Thanks for any help (and your patience with this simple question),
>
>Mark
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



Re: tomcat stats and performances

2003-11-24 Thread arinsoun

When I say "it doesn't respond very well" I refer that when there are most
people entering to the application sometimes when you type a action on the
navigation bar on the browser it doesn't respond anything, it doesn't show
the page, appear error 404 not found, and if you wait a moment and try
after it responds well.
Our application is written with struts and obligatory use jsp tag libs, our
application use connection pool and access to Sap continously, that
application show data extracted online from Sap.

Thanks.



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



AW: Multiple Tomcats handled by one Apache

2003-11-24 Thread Wegener, Dierk
Another hello,

so it seems that putting the "include mod_jk.conf" in a VirtualHost
directive is ignored by Apache. Every time I try I get a "workers
not found - jk will not work". 

Maybe someone can help me getting on - or say that it isn't possible
at all.

Thanx!

Dierk

-Ursprungliche Nachricht-
Von: Wegener, Dierk [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 24. November 2003 12:56
An: 'Tomcat Users List'
Betreff: AW: Multiple Tomcats handled by one Apache


Hi,

btw I'm using Apache 1.3.27 and Tomcats 3.3.1a and 4.1.24
on Solaris 8. But testing doesn't even work on win2k.

Thanks

Dierk

-Ursprungliche Nachricht-
Von: Wegener, Dierk [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 21. November 2003 09:11
An: 'Tomcat Users List'
Betreff: AW: Multiple Tomcats handled by one Apache


Hello,

can you please describe you managed to get to work?

Thank you!

Dierk Wegener

-Ursprungliche Nachricht-
Von: Bill Barker [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 21. November 2003 09:01
An: [EMAIL PROTECTED]
Betreff: Re: Multiple Tomcats handled by one Apache



"Wegener, Dierk" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I didn't find any hint in these links. So maybe anyone can describe
> how to manage this.
>
> For configuring the two different versions of Tomcat I think I have
> to switch the mod_jk.conf including depending on the version I want to
use.
> So mod_jk.so should be able to forward requests to different ports.
> Say that Tomcat 1 is a 3.3.1 and Tomcat 2 is a 4.1.24. Tomcat 1 uses
> port 8007 and Tomcat 2 uses 8009 to listen to Apache. I setup virtual
> hosts in Apache's httpd.conf which has different paths for including
> the mod_jk.conf and different uris in the JkMounts.
>
> That's the way I tried, but it doesn't work.
>

I don't know about you, but I have a similar config running for quite a
while now that works like a charm :).  Note that 8007 is the default port
for ajp12 (which is deprecated, even in Tomcat 3.3.x).  Both Tomcats should
be setup to have their ajp13 connector listening to the respective ports.

> Dierk Wegener
>
> -Ursprungliche Nachricht-
> Von: Tim Funk [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 20. November 2003 18:44
> An: Tomcat Users List
> Betreff: Re: Multiple Tomcats handled by one Apache
>
>
> Its possible. (Hopefully one of links describes it) ...
> http://jakarta.apache.org/tomcat/faq/connectors.html
>
>
> -Tim
>
> Wegener, Dierk wrote:
>
> > Hello,
> >
> > is it possible to use different Tomcats (not multiple instances but real
> > different versions)
> > in one Apache installations?
> >
> > In workers.properties there is an entry for workers.tomcat_home which I
> > suppose to mean
> > that multiple instances of one Tomcat installation can be started as
> > workers.
> >
> > My problem is that several systems on one physical machine need
different
> > Tomcat versions
> > but all have to be reachable on Port 80. So my approach was to load the
> > mod_jk and to define
> > VirtualHosts (in httpd.conf) where the Include-directives point to the
> > different Tomcats. Using
> > different mount points for JkMount should direct the requests to the
> correct
> > application.
> >
> > Unfortunately I am not able to get to work such a configuration.
> >
> > Can anyone help? Thanks!!
> >
> > Dierk Wegener
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




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

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

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

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



Tomcat Dies

2003-11-24 Thread Rob Wichterman
I have two tomcat instances each on a separate folder.  My problem is
that after a few days we get one the following errors in Catalina.out
 
1.  Exception java.lang.OutOfMemoryError: requested 24 bytes for
promotion. Out of swap space?
 
2.  SEVERE: Caught exception executing
[EMAIL PROTECTED], terminating thread
   java.lang.OutOfMemoryError
 
Any help would be appreciated.
 
Thanks,
 
 
 
 

 
 


RE: Tomcat Dies

2003-11-24 Thread Peter Guyatt
Hi There,

It looks like there is a memory lieak in your code, do you have any
listeners, and if so are you storing the session objects in a collection and
not removing them from the collection when they are being invalidated.

Thanks

Pete

-Original Message-
From: Rob Wichterman [mailto:[EMAIL PROTECTED]
Sent: 24 November 2003 15:44
To: 'Tomcat Users List'
Subject: Tomcat Dies


I have two tomcat instances each on a separate folder.  My problem is
that after a few days we get one the following errors in Catalina.out

1.  Exception java.lang.OutOfMemoryError: requested 24 bytes for
promotion. Out of swap space?

2.  SEVERE: Caught exception executing
[EMAIL PROTECTED], terminating thread
   java.lang.OutOfMemoryError

Any help would be appreciated.

Thanks,









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



Re: tomcat 4.1.29 in SSL mode on AIX 5; Algorithm SunX509 not available

2003-11-24 Thread Michael E. Allen
Bill Barker wrote:
I'm guessing that you are running IBM's JVM.  The Tomcat 5 ssl-howto has
been updated for what you need for running with IBM (Tomcat only defaults to
Sun).  The main thing is to add 'algorithm="IbmX509"' to the Factory
element.
"Michael E. Allen" <[EMAIL PROTECTED]> wrote in message

The precise message I get is:
java.io.IOException: Algorithm SunX509 not available
Thank you, thank you, thank you; it works fine now.  It would be *very* 
cool if (a) this were documented somewhere, and (b) if they would just 
support the Sun version even if they have a better one.



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


download file issue

2003-11-24 Thread Ostad, James
I have created a web site that allows users to download files.
It is working at the server level, but not out site of the server, at
user level.
Server is win2k adv. server.
Tomcat is 4.1.29


Any suggestion would appreciated.

James


Out---> (1)



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



Re: tomcat stats and performances

2003-11-24 Thread Peter Lin
 
when you say SAP, I take it is refering to SAPDB.
 
The first thing you to do is to time how long it takes to execute the query. If the 
query is not a problem, then I would move on to timing the processing time in struts. 
What I've done in the past is to take some of the production queries and run them 
against the database for increasing loads. typically I will do increasing number of 
concurrent queries and increasing dataset.
 
generally, if your queries are taking more than a couple of seconds, it will be your 
bottleneck.
 
assuming the db isn't the problem, I would time the jsp by getting the time at the top 
and at the bottom. normally no response is the cause of the database and not Tomcat.
 
 
peter


[EMAIL PROTECTED] wrote:

When I say "it doesn't respond very well" I refer that when there are most
people entering to the application sometimes when you type a action on the
navigation bar on the browser it doesn't respond anything, it doesn't show
the page, appear error 404 not found, and if you wait a moment and try
after it responds well.
Our application is written with struts and obligatory use jsp tag libs, our
application use connection pool and access to Sap continously, that
application show data extracted online from Sap.

Thanks.



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


-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

RE: IIS is not supported in Tomcat 4.1.29.

2003-11-24 Thread Januski, Ken
It's hard not to think that there's a lot of misspent energy here. Many
people have problems setting up Tomcat, esp. with IIS, and I'm one of them.
In fact I had a thread that went on for 50+ messages before it got solved.
But generally most people to get their problems resolved. The original
message is so long that I doubt that most people have the energy to go
through it and respond. This really isn't a matter of what should be or what
shouldn't but just of practicality. It doesn't seem to me that this is a
practical way to get your problems solved.

I'm sure others that know far more than me and are more vocal in this forum
will respond as well. But this my 2 cents on the subject.

Ken


-Original Message-
From: Tom Lyle [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 5:00 AM
To: Tomcat Users List
Subject: RE: IIS is not supported in Tomcat 4.1.29.


Jesus, what a way to start a Monday morning. Is there really any point in
shouting at each other like this? If you've still not got Tomcat working
with IIS try this:
http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html I followed that
and got it all working.

Tomcat isn't as well documented as it might be (for reasons that have
already been stated) but theres really no reason to start having a go at
people.

Peace people,

Tom

> -Original Message-
> From: Roeland Meyer [mailto:[EMAIL PROTECTED]
> Sent: 24 November 2003 09:43
> To: 'Tomcat Users List'
> Subject: RE: IIS is not supported in Tomcat 4.1.29.
>
>
> Before I sound too much like byting the hand that feeds, let me thank you
> for the useful information that you have provided.
>
> > From: Christopher Schultz [mailto:[EMAIL PROTECTED]
> > Sent: Monday, November 24, 2003 4:26 AM
>
> and I will make due allowances for the time of your response as well. Late
> nights can make one more than a bit tense.
>
> >  > > You don't pretend to win the coveted Whiner Of The Month award
> >  > > with this, I hope. There's a lot of competition, you know.
> >
> > I think this post gets my vote for this coveted award. Everyone: you
> > have only 7 days left to submit your entries!
>
> For one thing, whether you guys know it or not, Java is competing
> against MS
> .NET. I surfaced specific issues that need to be covered. I have a case
> where the requirements are Win2K and IIS. Neither Linux nor Apache are
> viable options, although I've argued for, at least, Apache. I'm doing good
> to get Tomcat, okay? I don't want to do C# as that doesn't port
> more than 5
> micro-inches from the MS platforms. This sort of stuff makes it
> hard to sell
> Tomcat.
>
> > > There are three section to this email;
> > > 'General Complaints', 'IIS HOW-TO', and 'Workers HOW-TO'.
> >
> > No, you have one section: complaining about everything. I mistakenly
> > read the whole post, thinking that there woud, in fact, be an "IIS
> > HOWTO" and "Workers HOWTO" contained somewhere within. Alas,
> > there was not.
>
> No, I went item-by-item thorugh the dox that were shipped with
> the product.
> Often I was looking at
> http://jakarta.caselle:8080/tomcat-docs/jk2/jk/workershowto.html or
> http://jakarta.caselle:8080/tomcat-docs/jk2/jk/iishowto.html. I was making
> the case that both of those documents need to be either fixed or removed
> from the distribution. In fact, I stated that plainly. You must not have
> read that.
>
> > > General complaints: (in no particular order)
> >
> > I recognize that there are shortcomings in the documentation. You do
> > realize that pretty much nobody gets paid to write this
> > stuff, right? If
> > you have spent a significant amount of time figuring
> > something out, why
> > not help out with the project and submit either a replacement
> > document
> > for IIS/Tomcat or a patch to any existing documentation?
>
> Actually, I would gladly do so. I am considering compiling my notes for
> subbmital after I get this stuff working. I *really* don't want
> to do .NET.
>
> > > IIS HOW-TO:
> > >
> > > 1) Obviously, all references to Workers HOW-TO
> > > point to a defective document, as shown in the
> > > section on the workers HOW-TO.
> >  >
> >  > [snip]
> >  >
> >  > Workers HOW-TO:
> >  >
> >  > This was obviously written for Tomcat 3 and never
> >  > updated for Tomcat 4.1.29.
> >
> > Do you mean this HOWTO:
> >
> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html
>
> Yep and these are the offending lines;
>
> ---
> workers.properties - A file that describes the host(s) and port(s) used by
> the workers (Tomcat processes). A sample workers.properties can be found
> under the conf directory.
> uriworkermap.properties - A file that maps URL-Path patterns to workers. A
> sample uriworkermap.properties can be found under the conf directory as
> well.
> ---
>
> Neither workers.properties nor uriworkermap.properties are
> shipped with the
> product, contrary to what is clearly written insaid dox.
>
> > It specifically mentions the changes since Tomcat 3.3 (with
> > res

RE: tomcat-jg vs tomcat-replication

2003-11-24 Thread jean-philippe . belanger
I just tried changing to tomcat-replication

and well, that didn't go as well as I wished! :)

Seams like the setAttribute, getAttribute and sessionCreation does work.
Both my server gets the replication messages.

My problem is that the browse never gets the request back! Everything looks
done on the tomcat side but the client never get the response content.

I tried removing the ReplicationValve and I can get the page back, but
replication doesn't occur (duh!) :)

So, here is my log file of the server that received the request:

 Begin of a request log 

09:24:38 StandardManager[/BusinessPortalWB]: [InMemoryReplicationManager]
Replicated Session created at lin-rap-ldev:32890 with
ID=29913859C07BCA38595DA243D1D5AB33
09:24:38 StandardManager[/BusinessPortalWB]: [InMemoryReplicationManager]
writeObject() storing session 29913859C07BCA38595DA243D1D5AB33
09:24:39 StandardManager[/BusinessPortalWB]: [InMemoryReplicationManager]
InMemoryReplicationManager.handle(): received message [dst: 228.1.2.3:45566,
src: lin-rap-ldev:32890 (1 headers), size = 607 bytes]
09:24:40 StandardManager[/BusinessPortalWB]: [InMemoryReplicationManager]
InMemoryReplicationManager.handle(): received message [dst: 228.1.2.3:45566,
src: lin-rap-ldev:32890 (1 headers), size = 553 bytes]
09:24:40 StandardManager[/BusinessPortalWB]: [InMemoryReplicationManager]
setAttribute called:
Name=businessportal.lock;
[EMAIL PROTECTED]
Debug info=SessionManager.java:55
09:24:43 StandardManager[/BusinessPortalWB]: [InMemoryReplicationManager]
getAttribute called:
Name=businessportal.lock;
[EMAIL PROTECTED]
Debug info=SessionManager.java:114
09:24:43 StandardManager[/BusinessPortalWB]: [InMemoryReplicationManager]
InMemoryReplicationManager.handle(): received message [dst: 228.1.2.3:45566,
src: lin-rap-ldev:32890 (1 headers), size = 810 bytes]
09:24:43 StandardManager[/BusinessPortalWB]: [InMemoryReplicationManager]
setAttribute called:
Name=com.cognicase.businessportal.common.usercontext;
value={com.cognicase.businessportal.common.sessionmanager=1069683880243,
businessportal.mapping_stack=[]}
Debug info=SessionManager.java:158
09:24:43 StandardManager[/BusinessPortalWB]: [InMemoryReplicationManager]
InMemoryReplicationManager.handle(): received message [dst: 228.1.2.3:45566,
src: lin-rap-ldev:32890 (1 headers), size = 359 bytes]
09:24:43 StandardManager[/BusinessPortalWB]: [InMemoryReplicationManager]
setAttribute called:
Name=businessportal.language; value=en
Debug info=SessionManager.java:159
09:24:43 ReplicationValve[/BusinessPortalWB]: [NEIL] [Thread-22]  [1]
Regular request completed in 4985ms.

--- Done --

What is a "Regular request" ??

The page I use to test it is a servlet GET with a Requestforward to a jsp
file.

Any insight would be welcomed.

Thanks,

Jean-Philippe

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 4:45 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: tomcat-jg vs tomcat-replication


I would say, use tomcat-replication,
I'm the developer of both, and if you have questions and need help, I only
support tomcat-replication, unless you pay me to support tomcat-jg :)

Filip
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 21, 2003 11:57 AM
Subject: tomcat-jg vs tomcat-replication


Hi,

I'm running Tomcat 4.1.18 in production and needing session replication.
I've been able to get tomcat-jg up and running. But after reading some mail
on the tomcat user mailling list, fillip seam to say that this version won't
work with tomcat 4.1.x and that we should use the tomcat-replication (beta
from TC5).

Any advantages to uses the 2nd one? (NIO vs javagroup?) Bugs ?

Just don't want to use the javagroup one now and find out in some weeks that
it's wrecking havoc with our transactionnal servers!

Thanks for your time

Jean-Philippe Bélanger
CGI


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



Re: IIS is not supported in Tomcat 4.1.29.

2003-11-24 Thread Christopher Schultz
Roeland,

Before I sound too much like byting the hand that feeds, let me thank you
for the useful information that you have provided.
Fair enough. Although we must be in different time zones, 'cause I 
definately didn't write that at 4:26 AM :)

For one thing, whether you guys know it or not, Java is competing against MS
.NET. I surfaced specific issues that need to be covered. I have a case
where the requirements are Win2K and IIS. Neither Linux nor Apache are
viable options, although I've argued for, at least, Apache.
Okay, let's fix the docs for IIS. What have you found. I was objecting 
to the lack of useful information (other than to point out problems) in 
your post. Please post the *correct* information, and you're more likely 
to get the problem fixed.

We hear "your stuff sucks" a lot, and that doesn't exactly motivate 
anyone to make those people happy.

I'm doing good
to get Tomcat, okay? I don't want to do C# as that doesn't port more than 5
micro-inches from the MS platforms.
The mom project works pretty well. It even comes with a 
servlet-container-type thing.

Actually, I would gladly [submit patches, etc.]. I am considering compiling my notes 
for
subbmital after I get this stuff working.
Excellent! I look forward to reading the updated documents.

Do you mean this HOWTO:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html


Yep and these are the offending lines;

---
workers.properties - A file that describes the host(s) and port(s) used by
the workers (Tomcat processes). A sample workers.properties can be found
under the conf directory.
uriworkermap.properties - A file that maps URL-Path patterns to workers. A
sample uriworkermap.properties can be found under the conf directory as
well.
You are completely right. Those files do not exist in the distros. 
However, you are looking in the wrong distro. Unfortunately, the 
'distro' that I would suggest is *NOT* the Tomcat distro. It's the 
tomcat-connectors distro. The source distro has the source of the isapi 
redirector. Unfortunately, this archive does not (as promised) contain 
example files. The pre-built isapi_redirector.dll file comes without an 
archive, and without those example files in the download directory :(


"
The ajp12  has been deprecated  with Tomcat 3.3.x and you should use
instead ajp13  which is the only ajp protocol known by Tomcat 4.0.x,
4.1.x and 5.
Of course Tomcat 3.2.x and 3.3.x also support ajp13 protocol.
"
If you'd truely read my email then you'd have noticed that I never mentioned
ajp13. I had already read and understood that part. The isue isn't
documented changes, the issues are changes that aren't documented. A slight
difference.
You said the documents hadn't been updated since Tomcat 3.3. That 
passage clearly indicates that they have been (since they mention both 
Tomcat 4.1, 4.2 and 5.x).

> [I can't figure out workers, and I find the workers HOWTO to be
> worthless. By the way, what is a worker?]
>
BTW, your quoted portion is not anything that I wrote. I just checked.
That's true: that's why it's in []s

It explains pretty much every line of the workers.properties file.


Yes, with incorrect data.
Really? You said you didn't understand worker types and properties. 
Every type is documented:

ajp12 - old skool not supported by 4.x and later
ajp13 - new skool, also supported by 3.3, so forget ajp12
jni - uses JNI to communicate directly with Tomcat
lb - load-balances across multiple Tomcat instances
Choose one: do you need load balancing? Do you want to use JNI (if you 
don't know what it is, then you don't want to use it)? If not, go with 
ajp13.

I think [the apparently crappy HOWTO is] a better guideline that the source code for 
the
connector,
don't you think?


Hacking the sources is something I am specifically prohibited from doing.
Is this your company policy? You're not allowed to find anything out 
except by reading documentation shipped with a package?

Also, with that error rate, it is better to not have it and admit that IIS
isn't supported, rather than embarras one's self by exhibiting such
problems. This is a quality issue at this point.
You're right, the IIS HOWTO isn't as step-by-step as it should be.

(Before I go on, I'll mention that there's a complete example
workers.prperties file included in the "Worker HOWTO".
No there isn't.
Yes, there is. Click on this link: 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workershowto.html

Then, press the "end" button on your keyboard. Voile! A full example 
workers.properties file. You can even copy-and-paste it, then modify it.

I'll make a bet that you haven't even unpacked the Tomcat
4.1.29 binary distro for Win32, eh?
You're got me, there. I've only unpacked the 4.1.27 binary distro on win32.

Nowhere in there, does it exist.
Again, workers.properties doesn't belong to Tomcat -- it belongs to the 
connector project. They are separate. Tomcat also doesn't include the 
JNI headers required to compile C++ code wrapped b

directive/Virtual host problem

2003-11-24 Thread john-paul delaney
Hello List...

In order that a virtual host respond correctly to urls: 

http://mydomain.com

http://www.mydomain.com

I've had to add two host entries in server.xml (one for mydomain.com, the other for 
www.mydomain.com).

I thought it would have been enough to add the alias directive for the 
www.mydomain.com in the mydomain.com host, thereby avoiding duplication within 
server.xml?

Are there problems with the alias directive - or am I misinterpreting it's function?  
Is it just that my configuration is probably bad?

Versions: Tomcat 4.1.24 standalone on redhat 9


Thanks for any suggestions,
/j-p.


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



Re: HTTP 404 response for directory listing

2003-11-24 Thread Christopher Schultz
Atreya,
In terms of URI directives that is the only one.  I don't have a 
specific directive in httpd.conf to include workers2.properties, that 
file gets loaded automatically when I load the jk2 module.
Also I don't have any JkMount directives in my httpd.conf file.
Hmmm... this is very strange. I'm sorry I can't ofer any more help. If 
nobody else asks within, say, a day, go ahead and re-post with a bit 
more information (i.e. your JkMount directive and the fact that no 
others exist).

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


Re: download file issue

2003-11-24 Thread Christopher Schultz
James,
I have created a web site that allows users to download files.
It is working at the server level, but not out site of the server, at
user level.
Can you describe what you mean by "doesn't work outside the server"?

What happens when you try to download?

-chris

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


RE: jsp cache issue

2003-11-24 Thread Euan Guttridge
So considering TC is writing these temp files to whereever it is started
from and *not* the /work directory should I log this as a bug?

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: 20 November 2003 14:59
To: Tomcat Users List
Subject: Re: jsp cache issue


Tim,

> Actually[without more digging] - I thought tomcat should be writing to
> $CATALINA_HOME/work

Yeah, that's what I thought it was there for. If it doesn't write to the 
work dir, it should at least write to the "tmpdir" or whatever that 
thing is.

-chris


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

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



RE: directive/Virtual host problem

2003-11-24 Thread Patrick Willart
Hi JP,

You don't need to do that. The Alias directive is able to do this.

111.111.111.111
mydomain.com
www.mydomain.com

grts,

Patrick

---

From: john-paul delaney [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 8:44 AM
To: Tomcat Users List
Subject:  directive/Virtual host problem


Hello List...

In order that a virtual host respond correctly to urls:

http://mydomain.com

http://www.mydomain.com

I've had to add two host entries in server.xml (one for mydomain.com, the
other for www.mydomain.com).

I thought it would have been enough to add the alias directive for the
www.mydomain.com in the mydomain.com host, thereby avoiding duplication
within server.xml?

Are there problems with the alias directive - or am I misinterpreting it's
function?  Is it just that my configuration is probably bad?

Versions: Tomcat 4.1.24 standalone on redhat 9


Thanks for any suggestions,
/j-p.


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


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



RE: download file issue

2003-11-24 Thread Ostad, James
Chris,
While I am within the host server, everything works fine. But let say
that I try to get the site from a local workstation through internet.

I am able to login, pass the information, and even get the database file
information with an hyperlink to the file. But when I double click on it
gives me an error page, or if I right click on it to save the target as,
I just get a system beep.
When I check the server, all tasks of copying the file from the secure
location to the web apps directory, so that I could access it with a
JSP, have been performed.

I am not using IIS at this time.

Thanks

James

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 11:57 AM
To: Tomcat Users List
Subject: Re: download file issue


James,
> I have created a web site that allows users to download files.
> It is working at the server level, but not out site of the server, at
> user level.

Can you describe what you mean by "doesn't work outside the server"?

What happens when you try to download?

-chris


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



<---In (1)




Out---> (1)



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



Re: jsp cache issue

2003-11-24 Thread Tim Funk
Look at bugzilla (use ant in the description), it might be an ANT config 
related issue. I remember something about files being written to weird places 
and it was due to ant.

-Tim

Euan Guttridge wrote:
So considering TC is writing these temp files to whereever it is started
from and *not* the /work directory should I log this as a bug?
-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: 20 November 2003 14:59
To: Tomcat Users List
Subject: Re: jsp cache issue

Tim,


Actually[without more digging] - I thought tomcat should be writing to
$CATALINA_HOME/work


Yeah, that's what I thought it was there for. If it doesn't write to the 
work dir, it should at least write to the "tmpdir" or whatever that 
thing is.

-chris

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



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


Re: download file issue

2003-11-24 Thread Christopher Schultz
James,
> I am not using IIS at this time.
So, this is standalone Tomcat. Okay.

I am able to login, pass the information, and even get the database file
information with an hyperlink to the file. But when I double click on it
gives me an error page, or if I right click on it to save the target as,
I just get a system beep.
What does the error page say?

When I check the server, all tasks of copying the file from the secure
location to the web apps directory, so that I could access it with a
JSP, have been performed.
Are there any exceptions reported in the Tomcat log files? Check 
catalina.out in TOMCAT_HOME/logs, as well as "yourapp.log-TODAYS_DATE" 
in the same directory.

-chris

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


XSQL installation

2003-11-24 Thread Daniel Fullum
I have been trying to install Oracle's XSQL in Tomcat 4.1.29 without
much success.
I am using Windows2k and Java 1.4

The closest I get is by installing all JAR files, including OJDBC14
driver. in ...\WEB-INF\lib\  and creating a context with the
Administration tools.
Even then I keep getting:

Oracle XDK Java 9.2.0.6.0 Production
XSQL-003: Failed to find 'XSQLConfig.xml' file in server CLASSPATH.

No matter how I try to set it or where I put it!

That's the file that contains all the passwords to all the Oracle
databases so it should remain unreachable for users on the WEB.


As you might guess, J2EE and Tomcat are new to me.

If someone can give me a hint at how I should have installed XSQL to
make it available to all applications, I would immensely appreciate. I
was hoping to do it all with the Administration tool.

The procedure provided by Oracle to install XSQL on Tomcat  3.2 does
not work.


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



RE: download file issue

2003-11-24 Thread Ostad, James
Chris,
Here is the error page:
 The page cannot be displayed 
The page you are looking for is currently unavailable. The Web site
might be experiencing technical difficulties, or you may need to adjust
your browser settings. 




Please try the following:

Click the  Refresh button, or try again later.

If you typed the page address in the Address bar, make sure that it is
spelled correctly.

To check your connection settings, click the Tools menu, and then click
Internet Options. On the Connections tab, click Settings. The settings
should match those provided by your local area network (LAN)
administrator or Internet service provider (ISP). 
If your Network Administrator has enabled it, Microsoft Windows can
examine your network and automatically discover network connection
settings.
If you would like Windows to try and discover them, 
click  Detect Network Settings 
Some sites require 128-bit connection security. Click the Help menu and
then click About Internet Explorer to determine what strength security
you have installed. 
If you are trying to reach a secure site, make sure your Security
settings can support it. Click the Tools menu, and then click Internet
Options. On the Advanced tab, scroll to the Security section and check
settings for SSL 2.0, SSL 3.0, TLS 1.0, PCT 1.0. 
Click the  Back button to try another link. 


Cannot find server or DNS Error
Internet Explorer 

I checked the app log file, and there is no error in it. I am not able
to locate catalina.out file.
Although I have localhost_admin_log file which doesnot have any error it
either.

Am I missing something? I did not see anything about catalina.out file
during installation. Of course, I am new in Tomcat.

I appreciate your help.

James


-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 12:09 PM
To: Tomcat Users List
Subject: Re: download file issue


James,
 > I am not using IIS at this time.

So, this is standalone Tomcat. Okay.

> I am able to login, pass the information, and even get the database
file
> information with an hyperlink to the file. But when I double click on
it
> gives me an error page, or if I right click on it to save the target
as,
> I just get a system beep.

What does the error page say?

> When I check the server, all tasks of copying the file from the secure
> location to the web apps directory, so that I could access it with a
> JSP, have been performed.

Are there any exceptions reported in the Tomcat log files? Check 
catalina.out in TOMCAT_HOME/logs, as well as "yourapp.log-TODAYS_DATE" 
in the same directory.

-chris


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



<---In (1)




Out---> (1)



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



RE: jsp cache issue

2003-11-24 Thread Euan Guttridge
Nothing found in bugzilla. Logged as new bug.

Thanks
Euan

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: 24 November 2003 16:59
To: Tomcat Users List
Subject: Re: jsp cache issue


Look at bugzilla (use ant in the description), it might be an ANT config 
related issue. I remember something about files being written to weird
places 
and it was due to ant.

-Tim

Euan Guttridge wrote:
> So considering TC is writing these temp files to whereever it is 
> started from and *not* the /work directory should I log this as a bug?
> 
> -Original Message-
> From: Christopher Schultz [mailto:[EMAIL PROTECTED]
> Sent: 20 November 2003 14:59
> To: Tomcat Users List
> Subject: Re: jsp cache issue
> 
> 
> Tim,
> 
> 
>>Actually[without more digging] - I thought tomcat should be writing to 
>>$CATALINA_HOME/work
> 
> 
> Yeah, that's what I thought it was there for. If it doesn't write to 
> the
> work dir, it should at least write to the "tmpdir" or whatever that 
> thing is.
> 
> -chris
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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

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



RE: simple classpath / webapp question

2003-11-24 Thread Schalk
Mark

I would think the easiest is including al your .jar's in Tomcat's
common\lib\ directory.

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Mark D. Hansen [mailto:[EMAIL PROTECTED]
:: Sent: Monday, November 24, 2003 5:14 PM
:: To: Tomcat User (E-mail)
:: Subject: simple classpath / webapp question
:: 
:: Is there any way to put .jar files on a Webapp's classpath other than
placing the .jar
:: files into the WEB-INF\lib directory?
:: 
:: I've got a lot of webapps, and it is a real chore keeping these
WEB-INF\lib directories
:: up-to-date as all the various java libraries that they rely on get
updated.
:: 
:: Is there maybe a way to specify a web-app specific classpath in the
web.xml file or
:: as a system property?
:: 
:: Thanks for any help (and your patience with this simple question),
:: 
:: Mark
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]




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



Re: download file issue

2003-11-24 Thread Christopher Schultz
James,

Here is the error page:
 The page cannot be displayed 
The page you are looking for is currently unavailable. The Web site
might be experiencing technical difficulties, or you may need to adjust
your browser settings. 
Sorry for the back-and-forth: is this a Tomcat error (light blue and 
white) or is it an Internet Explorer error message?

What is the URL being displayed in the 'location' bar of the browser 
when that error is showing?

-chris

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


Re: Starting Tomcat as nobody...

2003-11-24 Thread QM
: % sudo -u nobody /path/to/startup.sh

I use a tool called "erni" to kick off daemons and such.
Then again, I'm a little biased. ;)

In addition to the "change to user X, execute command Y"
provided by su and sudo, erni lets you:

- chroot the command 
- assign group memberships on-the-fly
- set the command umask

The URL is http://www.BrandXDev.net/

-QM

--

C++ / Java / SSL
http://www.brandxdev.net/


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



RE: directive/Virtual host problem

2003-11-24 Thread john-paul delaney
Thanks Patrick... then as suspected, I must have a misconfiguration:

  

  

  www.mydomain.com
  ...

Now the index.jsp in mydomain.com (forwards to a servlet) works ok, but when I try 
www.mydomain.com, I get a 404 requested resource (/index.jsp) is not available.

Any suggestions why this is occurring are much appreciated,

/j-p.



On Mon, 24 Nov 2003, Patrick Willart wrote:

> Hi JP,
> 
> You don't need to do that. The Alias directive is able to do this.
> 
>   111.111.111.111
>   mydomain.com
>   www.mydomain.com
> 
> 
> In order that a virtual host respond correctly to urls:
> 
> http://mydomain.com
> 
> http://www.mydomain.com
> 
> I've had to add two host entries in server.xml (one for mydomain.com, the
> other for www.mydomain.com).
> 
> I thought it would have been enough to add the alias directive for the
> www.mydomain.com in the mydomain.com host, thereby avoiding duplication
> within server.xml?
> 
> Are there problems with the alias directive - or am I misinterpreting it's
> function?  Is it just that my configuration is probably bad?
> 
> Versions: Tomcat 4.1.24 standalone on redhat 9


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



RE: simple classpath / webapp question

2003-11-24 Thread Shapira, Yoav

Howdy,
He already said he needs different versions of those jars, so common/lib
or shared/lib is NOT a solution.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Schalk [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 24, 2003 12:20 PM
>To: 'Tomcat Users List'
>Subject: RE: simple classpath / webapp question
>
>Mark
>
>I would think the easiest is including al your .jar's in Tomcat's
>common\lib\ directory.
>
>Kind Regards
>Schalk Neethling
>Web Developer.Designer.Programmer.CEO
>Volume4.Development.Multimedia.Branding
>emotionalize.conceptualize.visualize.realize
>Tel: +27125468436
>Fax: +27125468436
>email:[EMAIL PROTECTED]
>web: www.volume4.co.za
>
>This message contains information that is considered to be sensitive or
>confidential and may not be forwarded or disclosed to any other party
>without the permission of the sender. If you received this message in
>error,
>please notify me immediately so that I can correct and delete the
original
>email. Thank you.
>
>:: -Original Message-
>:: From: Mark D. Hansen [mailto:[EMAIL PROTECTED]
>:: Sent: Monday, November 24, 2003 5:14 PM
>:: To: Tomcat User (E-mail)
>:: Subject: simple classpath / webapp question
>::
>:: Is there any way to put .jar files on a Webapp's classpath other
than
>placing the .jar
>:: files into the WEB-INF\lib directory?
>::
>:: I've got a lot of webapps, and it is a real chore keeping these
>WEB-INF\lib directories
>:: up-to-date as all the various java libraries that they rely on get
>updated.
>::
>:: Is there maybe a way to specify a web-app specific classpath in the
>web.xml file or
>:: as a system property?
>::
>:: Thanks for any help (and your patience with this simple question),
>::
>:: Mark
>::
>::
-
>:: To unsubscribe, e-mail: [EMAIL PROTECTED]
>:: For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



Re: jsp cache issue

2003-11-24 Thread Tim Funk
Is it similar to:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18485
-Tim

Euan Guttridge wrote:

Nothing found in bugzilla. Logged as new bug.

Thanks
Euan
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: 24 November 2003 16:59
To: Tomcat Users List
Subject: Re: jsp cache issue

Look at bugzilla (use ant in the description), it might be an ANT config 
related issue. I remember something about files being written to weird
places 
and it was due to ant.

-Tim

Euan Guttridge wrote:

So considering TC is writing these temp files to whereever it is 
started from and *not* the /work directory should I log this as a bug?

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: 20 November 2003 14:59
To: Tomcat Users List
Subject: Re: jsp cache issue
Tim,



Actually[without more digging] - I thought tomcat should be writing to 
$CATALINA_HOME/work


Yeah, that's what I thought it was there for. If it doesn't write to 
the
work dir, it should at least write to the "tmpdir" or whatever that 
thing is.

-chris

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



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



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


RE: mod_jk2/tomcat 4.1.29 uri mapping

2003-11-24 Thread Dennis McRitchie
This problem also does not occur when you build mod_jk2 from
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz .

Dennis

> -Original Message-
> From: Stefan Proels [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 24, 2003 8:32 AM
> To: Tomcat Users List
> Subject: Re: mod_jk2/tomcat 4.1.29 uri mapping
>
>
> Hi,
>
> this turns out to be a bug indeed. In fact, it has already been reported
> to Bugzilla as 21561. Thanks to that bug report which pointed me to the
> right file I could track down this problem and attached a patch to fix
> it. In jk/native2/common/jk_uriEnv.c:
>
> --- old_jk_uriEnv.c 2003-11-24 13:43:30.0 +0100
> +++ jk_uriEnv.c 2003-11-24 14:13:16.0 +0100
> @@ -445,6 +445,7 @@
>
>  if (uri[strlen(uri) - 1] == '*') {
>  /* context based /context/prefix/ASTERISK  */
> +uri[strlen(uri) - 1] = '\0';
>  uriEnv->suffix  = NULL;
>  uriEnv->prefix  = uri;
>  uriEnv->prefix_len  =strlen( uriEnv->prefix );
>
>
> CU,
> Stefan
>
>
> On Monday 24 November 2003 10:10, Dionisio Ruiz de Zarate wrote:
> > i have the same problem. i must to downgrade to the 4.1.27 version.
> > there is other problem; if you have one dir with, for example, images,
> > you must to map the directory.
> >
> > [uri:/erfx/*]
> >  worker=ajp13:localhost:9602
> >  context=/erfx
> >  tomcatId=localhost:9602
> >
> > [uri:/erfx/images/*]
> >  worker=ajp13:localhost:9602
> >  context=/erfx
> >  tomcatId=localhost:9602
> >
> > in other form doesn't run.
> > in the 4.1.27 version you dont have to mapp the subdirectories.
> >
> > > Hi,
> > >
> > > I've encountered a strange problem which occurred after updating from
> > > mod_jk2 compiled from the jakarta-tomcat-connectors-4.1.27-src.tar.gz
> > > distribution to the new version from
> > > jakarta-tomcat-connectors-4.1.29-src.tar.gz. I have the following
> > > workers definition in workers2.properties:
> > >
> > > [channel.socket:localhost:9602]
> > > info=Ajp13 forwarding over socket
> > > debug=0
> > > host=localhost
> > > port=9602
> > > tomcatId=localhost:9602
> > >
> > > [ajp13:localhost:9602]
> > > channel=channel.socket:localhost:9602
> > > tomcatId=localhost:9602
> > >
> > > [uri:/erfx/*]
> > > worker=ajp13:localhost:9602
> > > context=/erfx
> > > tomcatId=localhost:9602
> > >
> > > This works fine with the mentioned mod_jk2 from tomcat 4.1.27.
> > > However, with 4.1.29 only the uri /erfx/ gets mapped as expected but
> > > /erfx/foo.jsp for example doesn't, i.e., the request is not processed
> > > by tomcat but the file is delivered in its raw form by apache. When I
> > > add another explicit mapping [uri:/erfx/foo.jsp] it works again. It
> > > seems the "*" in the uri no longer works from some reason. Similarly,
> > > when requesting an uri which does not directly correspond to a JSP
> > > but should be passed to a servlet, I get a 404 (not found) from
> > > apache.
> > >
> > > I'm running Apache 1.3.29 with Tomcat 4.1.29 on a Linux host. As
> > > already stated, the same configuration works fine when using the
> > > mod_jk2 from the 4.1.27 connector sources. Could someone please shed
> > > some light on this and tell me how to get the new mod_jk2 to work?
> > > Thanks in advance.
> > >
> > >
> > > CU,
> > > Stefan
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Re: simple classpath / webapp question

2003-11-24 Thread Ben Souther
I assume from the backslashes in your pathname that you are running on 
Windows. Otherwise, I would suggest using symlinks to point to the jar files 
that need to be updated often.

Since that's not an option, I would go with Yoav's suggestion and use an ant 
script for updating your libs. 


On Monday 24 November 2003 10:30 am, Mark D. Hansen wrote:
> Unfortunately, I can't do that because I've got webapps that use different
> versions of the same runtime libraries.
>
> > -Original Message-
> > From: Ben Souther [mailto:[EMAIL PROTECTED]
> > Sent: Monday, November 24, 2003 10:24 AM
> > To: Tomcat Users List
> > Subject: Re: simple classpath / webapp question
> >
> >
> > You could put them in TOMCAT_HOME/common/lib.
> > Then the jars will be accessible to all webapps running in
> > that instance of
> > Tomcat.
> >
> > On Monday 24 November 2003 10:13 am, Mark D. Hansen wrote:
> > > Is there any way to put .jar files on a Webapp's classpath
> >
> > other than
> >
> > > placing the .jar files into the WEB-INF\lib directory?
> > >
> > > I've got a lot of webapps, and it is a real chore keeping
> >
> > these WEB-INF\lib
> >
> > > directories up-to-date as all the various java libraries
> >
> > that they rely on
> >
> > > get updated.
> > >
> > > Is there maybe a way to specify a web-app specific
> >
> > classpath in the web.xml
> >
> > > file or as a system property?
> > >
> > > Thanks for any help (and your patience with this simple question),
> > >
> > > Mark
> >
> > -
> >
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > --
> > Ben Souther
> > F.W. Davison & Company, Inc.
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Ben Souther
F.W. Davison & Company, Inc.



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



Re: jsp cache issue

2003-11-24 Thread Christopher Schultz
Tim,
Is it similar to:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18485
This seems to indicate that Tomcat uses ant internally to compile 
(translated) JSP files. Is this accurate?

-chris

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


  1   2   >