Re: how to pass a parameter to tomcat startup in windows?

2007-02-22 Thread ashish shrivastava

Try this:

Open the tomcat console for widows (Start->ALL Programs -->Apache
Tomcat 5.X--> Monitor Tomcat).
click on JAVA tab (the fourth one)
Add the parameter in JAVA Options:

*-Djavaagent:%INFRARED_HOME%\aspectjweaver-1.5.0.jar *

now you can access the above property in your code

Thanks
Ashish Shrivastava
Software Engineer
Impetus Infotech Ind Pvt Ltd Indore
India



On 2/23/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:


> From: legolas [mailto:[EMAIL PROTECTED]
> Subject: how to pass a parameter to tomcat startup in windows?
>
> I need to pass a parameter like :
> -javaagent:%INFRARED_HOME%\aspectjweaver-1.5.0.jar to tomcat startup.
>
> the tutorial talks about a bat file that we can add this
> parameter to it but Tomcat 5.5.17 for windows does not
> has any +batch file.

The .bat files are included in the .zip download, but not the .exe, for
some unknown reason.

> can you please tell me where and how i should add that parameter ?

Best bet is to use the .zip download; probably easier to debug than
running Tomcat as a service.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




clustering and jvmRoute

2007-02-22 Thread Kristian Rink

Folks;

yesterday I dealt with the tomcat clustering feature for the first
time, getting things basically set up and working in quite a short time
(thanks to the documentation which is rather good), and even made my
application distributable / the session attributes serializable really
fast. However, one thing is massively confusing me:

I followed the straightforward approach, reading through [1] where
there is a configuration file in a section named "Simple Engine Cluster
Configuration for all hosts" - without thinking twice, I installed a
configuration similar to that on both of the nodes of my cluster
(including the _same_ jvmRoute parameter on both machines) and it
worked - no matter which one of the nodes went down, my session
remained alive and well.

However, spending some more time trying to study the details and
options of clustering, I came across [2] and learnt that the jvmRoute
parameter should be a per-host not a per-cluster configuration.
Thinking twice about this and its implications on session replication,
this seems reasonable, and looking at the log of mod_jk while running
both tomcats with the same jvmRoute parameter, indeed I see requests
belonging to the same session processed by different nodes (which, if I
got the servlet specifications right, shouldn't be). So: Why does this
setup, having jvmRoute the same in all cluster nodes, work? Just an
undesired side-effect of a broken configuration? Luck? Is there
something I didn't yet get about the cluster configuration?

Thanks in ad



[1] http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html
[2] http://tomcat.apache.org/tomcat-5.0-doc/balancer-howto.html


-- 
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771
"One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality." (Hundertwasser)

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please Help: Tomcat 5.5.17 SSL Help

2007-02-22 Thread PATTUS, Jean-Philippe
You should launch tomcat with this java option -Djavax.net.debug=ssl,
you will have probably more details about the problem

-Message d'origine-
De : Blake Smith [mailto:[EMAIL PROTECTED]
Envoye : vendredi 23 fevrier 2007 03:34
A : users@tomcat.apache.org
Objet : Please Help: Tomcat 5.5.17 SSL Help


Hi,

 

I am running a Red Hat Enterprise 4 Linux Server.  I have Tomcat
installed
under port 8080.  I have setup "iptables" to redirect all request for
port
80 to 8080.  I also have Java JDK 1.5.0_10 installed.  The
$CATALINA_HOME
and $JAVA_HOME variables have been set inside /etc/profile.   Tomcat
runs in
normal mode, and everything is working excellent.  The only issue I am
having is getting Tomcat to server HTTPS.  I have followed the tutorial
on
how to use "keytool" and successfully generated an private key,
certificate,
and then had the certificate signed by Verisign.  I then import the
signed
certificate with keytool.  I have uncommented the section within
server.xml
and pointed it to the location of the keystore, and it's password.  I
even
changed the port from 8443 to 443 and the corresponding forwarding value
for
8080.  By the way Apache HTTP Server is not running on this machine.

My iptables are setup to allow 80, 8080, and 443.  Yet I can't get
Tomcat to
use SSL.  If anyone can please provided me with directions for getting
tomcat to server SSL I would be most thankful.  Tomcat is running
standalone.

 

Im not sure if there is anything special I need to do with JSSE???
Everything I can find states it as a requirement but since I am using
JDK
1.5.0_10, it should already be included if my understanding is correct.
Is
there anything special which needs to be done to use it in my version?

 

Thanks in advance,

Blake Smith

[EMAIL PROTECTED]

 

 


**
Ce message et ses pièces jointes sont confidentiels et établis a l'intention 
exclusive de ses destinataires.
Tout message électronique est susceptible d'altération. SOGITEC décline toute 
responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié.
Si vous n'êtes pas destinataire de ce message, merci de le détruire 
immédiatement.
**


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Please Help: Tomcat 5.5.17 SSL Help

2007-02-22 Thread Bob Hall

--- Blake Smith <[EMAIL PROTECTED]> wrote:

> I have uncommented the
> section within server.xml
> and pointed it to the location of the keystore, and
> it's password.  I even
> changed the port from 8443 to 443 and the
> corresponding forwarding value for
> 8080.

Is Tomcat listening on port 443?

$ netstat -an | grep 443

-Bob


 

Need a quick answer? Get one in minutes from people who know.
Ask your question on www.Answers.yahoo.com

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk sticky session not working??

2007-02-22 Thread Mladen Turk

Scott Danforth wrote:
I'm trying to use jk1.2.20 mod_jk with Apache 1.3 for load balancing two 
tomcat services and sticky sessions aren't working.


get_most_suitable_worker::jk_lb_worker.c (733): searching worker for 
partial sessionid B4FE8293E8E81F8071F39EDD1E594BEC
[Thu Feb 22 19:08:13 2007] [3786:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (785): found best worker 
tomcat1 (tomcat1) using method 'Request'




You don't have session affinity mark
For each instance add jvmRoute="tomcat1" or
jvmRoute="tomcat2 for a second instance. See:
http://tomcat.apache.org/tomcat-5.5-doc/config/engine.html


Regards,
Mladen.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Please Help: Tomcat 5.5.17 SSL Help

2007-02-22 Thread Blake Smith
Hi,

 

I am running a Red Hat Enterprise 4 Linux Server.  I have Tomcat installed
under port 8080.  I have setup "iptables" to redirect all request for port
80 to 8080.  I also have Java JDK 1.5.0_10 installed.  The $CATALINA_HOME
and $JAVA_HOME variables have been set inside /etc/profile.   Tomcat runs in
normal mode, and everything is working excellent.  The only issue I am
having is getting Tomcat to server HTTPS.  I have followed the tutorial on
how to use "keytool" and successfully generated an private key, certificate,
and then had the certificate signed by Verisign.  I then import the signed
certificate with keytool.  I have uncommented the section within server.xml
and pointed it to the location of the keystore, and it's password.  I even
changed the port from 8443 to 443 and the corresponding forwarding value for
8080.  By the way Apache HTTP Server is not running on this machine.

My iptables are setup to allow 80, 8080, and 443.  Yet I can't get Tomcat to
use SSL.  If anyone can please provided me with directions for getting
tomcat to server SSL I would be most thankful.  Tomcat is running
standalone.

 

Im not sure if there is anything special I need to do with JSSE???
Everything I can find states it as a requirement but since I am using JDK
1.5.0_10, it should already be included if my understanding is correct.  Is
there anything special which needs to be done to use it in my version?

 

Thanks in advance,

Blake Smith

[EMAIL PROTECTED]

 

 



Re: Tomcat and OSGi

2007-02-22 Thread Lucas Galfaso

Hi,
 Was anybody able to embed Tomcat, and a WebApp as an OSGi plugin? I
was able to embed Tomcat, but I am unable to make Tomcat find my web
app using the classloader (or any form of VFS.)

Regards,
 LG

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Accessing and managing html files in another sub domain

2007-02-22 Thread Lena Breijer
Hi

The first java web project I did was without using an IDE and old version that 
came with the book in the class.  It was simple. I thought I had learned Tomcat 
- stick it all in webapps and create web.xml ect. Then I upgraded, I am using 
the latest net beans 5.5 bundled with apache Tomcat (down loaded from the java 
site)

 This new version is so much more complicated.  

So now I have a real project done on netbeans in Java with mysql on my computer 
modeling it after the netbean tutorial projects.

It seems I have to ftp up the WAR file in order to make it work on the server.  
This is my problem. I am "upgrading" an existing web site with hundreds of html 
pages which are either photo stories or video and more coming.  My application 
keeps their description in an sql database which can be searched. My problem is 
where do I put these files - they are like a data bases of html files.  Other 
people will be ftping more of them up, there will probably end up to be 1000.
It has been suggested I put them in another "project".  I would like to put 
them in a sub domain of the server, that way my project is safe from "les 
artistes" who are ftping.
If I do this how do I access them through my project in java JSP pages?  Can I 
modify them to upgrade the links in the old pages?
When they link to these pages will I lose my session variables? I don't think 
so but then I thought I knew what I was doing when I designed it initially.

Thank you for your time

Lena



 

http://www.lena-arts.ca  to see my artwork
Unique One of a kind Dolls and Costumes
 
-
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.

Re: How can I realize server side GUI??

2007-02-22 Thread wang suya

Hello

   I decided to use javascript and AJAX to realize my application
but when the sheet cells are drawed by DIV, the DIV's size can be decided by
style type, when I drag the DIV eage, how can I change the DIV style type?
Could anbody tell me or give me other ideas. Thanks at advance.

Wang suya



wang suya さんは書きました:
>
>Hello Peter
>
>   You are right. I want to make a graphical interface served form Web
>server to a Web browser. It displays a sheet with serveral rectangle cells like
>execl sheet and when I drag one cell the size of cell can change.
>Thank you very much. Hope you can help me.
>
>  Wang suya
>
>Peter Crowther さんは書きました:
>>> From: wang suya [mailto:[EMAIL PROTECTED] 
>>> I want to make a server side GUI application that draw
>>> senveral Rectanges and when mouse drag the bottom of 
>>> Rectange, the rectange
>>> extends. Do anybody know how I can realize this appication.
>>
>>I assume by "server-side GUI" you mean "a graphical interface served
>>from a Web server to a Web browser"?
>>
>>Depending on what you then wish to do with the data from the rectangles,
>>you could do it entirely in Javascript or use one of the higher-level
>>frameworks like AJAX.  Without more details on your requirements, it's
>>difficult to tell.
>>
>>  - Peter
>>
>>-
>>To start a new topic, e-mail: users@tomcat.apache.org
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>wang suya
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

wang suya

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mod_jk sticky session not working??

2007-02-22 Thread Scott Danforth
I'm trying to use jk1.2.20 mod_jk with Apache 1.3 for load balancing two 
tomcat services and sticky sessions aren't working.


My application requires authentication, and displays a login on a new 
session. When I kill one of the tomcats, the application works fine 
(i.e., the authenticated session is retained and used for each 
subsequent request). But if both workers are running, mod_jk ping-pongs 
between them (which results in new sessions being created on each request).


The thing I think is most revealing is that when I run with only one 
worker alive (so the application works), mod_jk is still trying to 
round-robin the two workers.


Here's are some excerpts from mod_jk.log that clearly show mod_jk trying 
to use both tomcat1 and tomcat2 for the same session. (is "partial 
sessionid" a clue??)


What's going on, and how do I fix this?

   -- Scott.


service sticky_session=1 id='B4FE8293E8E81F8071F39EDD1E594BEC'
[Thu Feb 22 19:08:13 2007] [3786:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (733): searching worker for 
partial sessionid B4FE8293E8E81F8071F39EDD1E594BEC
[Thu Feb 22 19:08:13 2007] [3786:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (785): found best worker 
tomcat1 (tomcat1) using method 'Request'


service sticky_session=1 id='B4FE8293E8E81F8071F39EDD1E594BEC'
[Thu Feb 22 19:08:16 2007] [3786:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (733): searching worker for 
partial sessionid B4FE8293E8E81F8071F39EDD1E594BEC
[Thu Feb 22 19:08:16 2007] [3786:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (785): found best worker 
tomcat2 (tomcat2) using method 'Request'


service sticky_session=1 id='B4FE8293E8E81F8071F39EDD1E594BEC'
[Thu Feb 22 19:08:16 2007] [3786:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (733): searching worker for 
partial sessionid B4FE8293E8E81F8071F39EDD1E594BEC
[Thu Feb 22 19:08:16 2007] [3786:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (785): found best worker 
tomcat1 (tomcat1) using method 'Request'


service sticky_session=1 id='B4FE8293E8E81F8071F39EDD1E594BEC'
[Thu Feb 22 19:10:47 2007] [3788:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (733): searching worker for 
partial sessionid B4FE8293E8E81F8071F39EDD1E594BEC
[Thu Feb 22 19:10:47 2007] [3788:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (785): found best worker 
tomcat2 (tomcat2) using method 'Request'
[Thu Feb 22 19:10:47 2007] [3788:] [debug] service::jk_lb_worker.c 
(860): service worker=tomcat2 route=tomcat2


service sticky_session=1 id='B4FE8293E8E81F8071F39EDD1E594BEC'
[Thu Feb 22 19:10:47 2007] [3788:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (733): searching worker for 
partial sessionid B4FE8293E8E81F8071F39EDD1E594BEC
[Thu Feb 22 19:10:47 2007] [3788:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (785): found best worker 
tomcat1 (tomcat1) using method 'Request'
[Thu Feb 22 19:10:47 2007] [3788:] [debug] service::jk_lb_worker.c 
(860): service worker=tomcat1 route=tomcat1


service sticky_session=1 id='B4FE8293E8E81F8071F39EDD1E594BEC'
[Thu Feb 22 19:11:57 2007] [3790:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (733): searching worker for 
partial sessionid B4FE8293E8E81F8071F39EDD1E594BEC
[Thu Feb 22 19:11:57 2007] [3790:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (785): found best worker 
tomcat2 (tomcat2) using method 'Request'
[Thu Feb 22 19:11:57 2007] [3790:] [debug] service::jk_lb_worker.c 
(860): service worker=tomcat2 route=tomcat2





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How can I realize server side GUI??

2007-02-22 Thread wang suya
Hello Propes

   But as I know Swing is client side, how can I write a code
use Swing and run in server side? And I will use database,too.
Thank you very much.

Wang suya

Propes, Barry L [GCG-NAOT] さんは書きました:
>sounds like a lot of Swing to me...is it not?
>
>-Original Message-
>From: wang suya [mailto:[EMAIL PROTECTED]
>Sent: Thursday, February 22, 2007 5:48 PM
>To: Tomcat Users List
>Subject: Re: How can I realize server side GUI??
>
>
>
>Hello Peter
>
>   You are right. I want to make a graphical interface served form Web
>server to a Web browser. It displays a sheet with serveral rectangle cells like
>execl sheet and when I drag one cell the size of cell can change.
>Thank you very much. Hope you can help me.
>
>  Wang suya
>
>Peter Crowther さんは書きました:
>>> From: wang suya [mailto:[EMAIL PROTECTED] 
>>> I want to make a server side GUI application that draw
>>> senveral Rectanges and when mouse drag the bottom of 
>>> Rectange, the rectange
>>> extends. Do anybody know how I can realize this appication.
>>
>>I assume by "server-side GUI" you mean "a graphical interface served
>>from a Web server to a Web browser"?
>>
>>Depending on what you then wish to do with the data from the rectangles,
>>you could do it entirely in Javascript or use one of the higher-level
>>frameworks like AJAX.  Without more details on your requirements, it's
>>difficult to tell.
>>
>>  - Peter
>>
>>-
>>To start a new topic, e-mail: users@tomcat.apache.org
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>wang suya
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

wang suya

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Connection reset error

2007-02-22 Thread Propes, Barry L [GCG-NAOT]
another oddity about this (maybe not).

The error occurs/ed when I tried it thru the IP address of the box.

In trying it thru the domain name, I don't get that error.



-Original Message-
From: Propes, Barry L [GCG-NAOT] 
Sent: Thursday, February 22, 2007 5:49 PM
To: Tomcat Users List
Subject: Connection reset error


I am getting this error now after logging on to a certain portion of my site 
within the security constraint.
 
The connection was reset 
 
The connection to the server was reset while the page was loading.

*   The site could be temporarily unavailable or too busy. Try again in a 
few
  moments.
 
*   If you are unable to load any pages, check your computer's network
  connection.
 
 
Any idea what could be the cause? It had previously worked fine, but now after 
logging in at the FORM level, it kicks me out and closes the Tomcat connection? 
Actually the console is still running with no errors, but the browser 
connection seemingly gets closed.
 
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How can I realize server side GUI??

2007-02-22 Thread Propes, Barry L [GCG-NAOT]
sounds like a lot of Swing to me...is it not?

-Original Message-
From: wang suya [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 22, 2007 5:48 PM
To: Tomcat Users List
Subject: Re: How can I realize server side GUI??



Hello Peter

   You are right. I want to make a graphical interface served form Web
server to a Web browser. It displays a sheet with serveral rectangle cells like
execl sheet and when I drag one cell the size of cell can change.
Thank you very much. Hope you can help me.

  Wang suya

Peter Crowther さんは書きました:
>> From: wang suya [mailto:[EMAIL PROTECTED] 
>> I want to make a server side GUI application that draw
>> senveral Rectanges and when mouse drag the bottom of 
>> Rectange, the rectange
>> extends. Do anybody know how I can realize this appication.
>
>I assume by "server-side GUI" you mean "a graphical interface served
>from a Web server to a Web browser"?
>
>Depending on what you then wish to do with the data from the rectangles,
>you could do it entirely in Javascript or use one of the higher-level
>frameworks like AJAX.  Without more details on your requirements, it's
>difficult to tell.
>
>   - Peter
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

wang suya

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How can I realize server side GUI??

2007-02-22 Thread wang suya

Hello Peter

   You are right. I want to make a graphical interface served form Web
server to a Web browser. It displays a sheet with serveral rectangle cells like
execl sheet and when I drag one cell the size of cell can change.
Thank you very much. Hope you can help me.

  Wang suya

Peter Crowther さんは書きました:
>> From: wang suya [mailto:[EMAIL PROTECTED] 
>> I want to make a server side GUI application that draw
>> senveral Rectanges and when mouse drag the bottom of 
>> Rectange, the rectange
>> extends. Do anybody know how I can realize this appication.
>
>I assume by "server-side GUI" you mean "a graphical interface served
>from a Web server to a Web browser"?
>
>Depending on what you then wish to do with the data from the rectangles,
>you could do it entirely in Javascript or use one of the higher-level
>frameworks like AJAX.  Without more details on your requirements, it's
>difficult to tell.
>
>   - Peter
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

wang suya

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mysql timouts...

2007-02-22 Thread Jacob Rhoden

David Smith wrote:

I think I see what's happening here.  You've told the database pool to
continually test connections every hour.  The validation query itself
  

 validationQuery="select 1"  testWhileIdle="true"
 timeBetweenEvictionRunsMillis="6"
 minEvictableIdleTimeMillis="6"

This is why I am confused, isnt 6=60 seconds? It is certinaly not 
doing an idle test every 60 seconds, why does it say Millis?


Best Regards,
Jacob

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Persistent Mbeans

2007-02-22 Thread Ravi116

I have a requirement to create persitant custom mbeans in tomcat (read from a
servlet filter). 
I have created a MBean and added the descriptor to server.xml -

 
 

MbeanDescriptor -


  




  



Any suggestions/ideas would be appreciated.
Ravi


-- 
View this message in context: 
http://www.nabble.com/Persistent-Mbeans-tf3275863.html#a9110239
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: how to pass a parameter to tomcat startup in windows?

2007-02-22 Thread Caldarale, Charles R
> From: legolas [mailto:[EMAIL PROTECTED] 
> Subject: how to pass a parameter to tomcat startup in windows?
> 
> I need to pass a parameter like :
> -javaagent:%INFRARED_HOME%\aspectjweaver-1.5.0.jar to tomcat startup.
>
> the tutorial talks about a bat file that we can add this 
> parameter to it but Tomcat 5.5.17 for windows does not
> has any +batch file.

The .bat files are included in the .zip download, but not the .exe, for
some unknown reason.

> can you please tell me where and how i should add that parameter ? 

Best bet is to use the .zip download; probably easier to debug than
running Tomcat as a service.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how to pass a parameter to tomcat startup in windows?

2007-02-22 Thread legolas

Hi
Thank you for reading my post.
I need to pass a parameter like :
-javaagent:%INFRARED_HOME%\aspectjweaver-1.5.0.jar to tomcat startup.
the tutorial talks about a bat file that we can add this parameter to it but
Tomcat 5.5.17 for windows does not has any +batch file.
It just has two executable files named tomcat.exe and tomcatW.exe . I have
tried to add the parameter in java tab after


-Dcatalina.home=f:\dev\apps\Tomcat 5.5.17
-Dcatalina.base=f:\dev\apps\Tomcat 5.5.17
-Djava.endorsed.dirs=f:\dev\apps\Tomcat 5.5.17\common\endorsed
-Djava.io.tmpdir=f:\dev\apps\Tomcat 5.5.17\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=f:\dev\apps\Tomcat
5.5.17\conf\logging.properties


But when i add that parameter here, tomcat does not start.

can you please tell me where and how i should add that parameter ? 


Thanks

-- 
View this message in context: 
http://www.nabble.com/how-to-pass-a-parameter-to-tomcat-startup-in-windows--tf3275543.html#a9109294
Sent from the Tomcat - User mailing list archive at Nabble.com.


RE: authentication security constraint error

2007-02-22 Thread Propes, Barry L [GCG-NAOT]
thanks, Chuck, I think that was itI had admin before "service," and it 
didn't like that at all. I guess that violates the hierarchical structure.

Barry

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 21, 2007 5:35 PM
To: Tomcat Users List
Subject: RE: authentication security constraint error


> From: Propes, Barry L [GCG-NAOT] 
> [mailto:[EMAIL PROTECTED] 
> Subject: RE: authentication security constraint error
> 
> Yeah, I had them in there.

Are they in the right order relative to the other elements?  The
 schema is rather picky about how things are arranged.  The
web.xml files for Tomcat's manager and admin apps server as good
examples.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Pls help : How to make case insensitive URL(JSP) on Tomcat 5.5

2007-02-22 Thread Propes, Barry L [GCG-NAOT]
can't you force something like that in the welcome page attribute of the 
web.xml file in the conf folder?

i.e.


index.html
index.htm
index.jsp
change_ctrl.htm


how are they getting to the URL in the first place?

-Original Message-
From: Bhandari [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 21, 2007 11:26 PM
To: users@tomcat.apache.org
Subject: Pls help : How to make case insensitive URL(JSP) on Tomcat 5.5



Hi,

I have an intranet based JSP application on Tomcat 5.5. i have rolled it
out. but the problem my JSP application users are facing is ' URL of
application' is case sensetive.

CAN ANYBODY  TELL me a way to make my URL CASE INSENSITIVE?
I need a step by step guide.

Pls help.
Thanks and Regards,
Bhandari
-- 
View this message in context: 
http://www.nabble.com/Pls-help-%3A-How-to-make-case-insensitive-URL%28JSP%29-on-Tomcat-5.5-tf3271075.html#a9094670
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can one have a log4j repository per webapp in Tomcat?

2007-02-22 Thread Morris Jones
At my company we have Tomcat 5.5 instances running lots of webapps, and 
problems with those apps interfering with each other's log files -- 
especially in instances of libraries like hibernate.


I've read and understand the principles of using log4j respositories, 
such as Ceki Gülcü's document here , 
but I get the impression that a component-based RepositorySelector is 
not available in Tomcat.


Is there a known way to eliminate interference between web applications 
in logging when using a log4j in common/lib?


Best regards,
Mojo
--
Morris Jones
Monrovia, CA
http://www.whiteoaks.com
Old Town Astronomers http://www.otastro.org

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Running tomcat as an unprivileged user with a war file

2007-02-22 Thread David Smith
Jim Goodspeed wrote:

> I would like to run tomcat as an unprivileged user for security
> reasons, but
> when my war file is created through Ant it loses all of the
> permissions (as
> it says it will in the Ant manual).  Does anyone know of a way to run
> tomcat
> as an unprivileged user and still use a war file which when it is
> created is
> not accessible to the tomcat user?
>
> I'm wondering if I need to create the war file as the tomcat user or
> maybe
> change the default umask on my build machine - just wondering if
> anyone else
> has run into this.
>
>
> Thanks.
>
S ... setting the privileges on the war file to be readable by
tomcat doesn't work?

Here's how I understand the process:

When you deploy a .war file and tomcat is configured to expand them, the
.war file is expanded to a folder of the same name in the webapps
directory.  In most systems I've ever encountered, the expanded folder
is owned by the tomcat process and therefore has full privileges.  Even
when the .war file isn't expanded to the webapps directory, it's still
expanded to the work directory and all the files are owned by tomcat.

What OS are you running?

--David


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Restarting Webapplication From Command Line

2007-02-22 Thread Caldarale, Charles R
> From: Bio Jazz [mailto:[EMAIL PROTECTED] 
> Subject: Restarting Webapplication From Command Line
> 
> However, I have a need to restart a single application from 
> the command line without restarting the entire Tomcat service
> (ie without affecting the other deployed applications).

Check the doc:
http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html#Deploying%20
on%20a%20running%20Tomcat%20server


Also note the following from:
http://tomcat.apache.org/tomcat-5.5-doc/appdev/deployment.html

'Use "Manager" Ant Tasks In Your Build Script. Tomcat 5 includes a set
of custom task definitions for the Ant build tool that allow you to
automate the execution of commands to the "Manager" web application.
These tasks are used in the Tomcat deployer.'

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Compiling mod-jk plugin for SunOne on Solaris

2007-02-22 Thread Kirk

I tried the -statis-libgcc in the Makefile and it compiled and ldd produces
no output, which I am assuming means no dependencies.  So when i fire up the
sunone server now I get a different error.

failure: CORE3170: Configuration initialization failed: Error running init
function load-modules: dlopen of
/wamu/hr/sunone/plugins/mod_jk/nsapi_redirector.so
failed ( ld.so.1: webservd: fatal: relocation error: file
/wamu/hr/sunone/plugins/mod_jk/nsapi_redirector.so: symbol __umoddi3:
referenced symbol not found)

Any ideas on that one?

Thanks,
Kirk


On 2/21/07, Rainer Jung <[EMAIL PROTECTED]> wrote:


Option 1) (Quick and dirty): Deploy libgcc_s.so. It's *not* the
compiler. The lib contains some machine specific runtime routines, for
which appropriate machine statements are not available.

Option 2): Compiling statically. If you've got good control over the
compilation process you can add "-static-libgcc" to gcc as flags. If you
don't want to find out, where all the gcc compile flags are coming from
(configure, environment variables etc.) you can decide to make all
compiles using static libgcc by hacking a specs file.

a) dump a specs file by calling "gcc -dumpspecs".

b) Edit the results and throw everything away except the block
beginneing with "*libgcc". The exact structure depends on the gcc
version. Here is an example:

*libgcc:
%{static|static-libgcc:-lgcc
-lgcc_eh}%{!static:%{!static-libgcc:%{!shared:%{!shared-libgcc:-lgcc
-lgcc_eh}%{shared-libgcc:-lgcc_s -lgcc}}%{shared:-lgcc_s}}}

Caution: this is only two lines, the second one is pretty long.

Now edit to make gcc link against libgcc (this is the static version)
instead of libgcc_s (the shared one) even if it has been called to
produce a shared object. In our example the result would be:

%{static|static-libgcc:-lgcc
-lgcc_eh}%{!static:%{!static-libgcc:%{!shared:%{!shared-libgcc:-lgcc
-lgcc_eh}%{shared-libgcc:-lgcc -lgcc_eh}}%{shared:-lgcc -lgcc_eh}}}

Save this file, e.g. as /my/gcc.specs.

Then set the environment variable CC to "gcc -specs=/my/gcc.specs" and
start building. You can check the library dependencies of the resulting
"*.so" file by using "ldd".

Good luck.

Regards,

Rainer

Kirk schrieb:
> There was a thread from February 1st on this same issue.  I am having
the
> same problem that person did, but I tried everything in the thread and
> still
> no luck.
>
> After I get mod_jk compiled I get this on server startup:
>
> failure: CORE3170: Configuration initialization failed: Error running
> init function load-modules:
> dlopen of /wamu/hr/sunone/plugins/mod_jk/nsapi_redirector.so failed
> (ld.so.1: webservd: fatal:
> relocation error: file
> /wamu/hr/sunone/plugins/mod_jk/nsapi_redirector.so: symbol __lshrdi3:
> referenced symbol not found)
>
>
> The one thing that I think is making a difference as compared to the
person
> in the earlier thread is that gcc is not installed on the server I am
> trying
> to deploy on and I am not allowed to have it on there.  it is not an
> option,
> don't ask.  I tried static linking, but I have a feeling I am doing it
> wrong.
>
> So, my question is, what exactly do I need to do to compile the mod_jk
> plugin for SunOne on Solaris where it is to be deployed on a server that
> does not have gcc installed at all?
>
> Thanks,
> Kirk
>

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Restarting Webapplication From Command Line

2007-02-22 Thread Lucas Galfaso

Hi,
 If you set the host "autoDeploy" property to "true". You can redeploy doing a
touch /WEB-INF/web.xml
 if not, you need the client deployed.

Regards,
 LG

On 2/22/07, Bio Jazz <[EMAIL PROTECTED]> wrote:

I understand how to restart the entire Tomcat service from the command line.
However, I have a need to restart a single application from the command line
without restarting the entire Tomcat service (ie without affecting the other
deployed applications).

Is there a way to restart a single web application from the command line?

_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Running tomcat as an unprivileged user with a war file

2007-02-22 Thread Jim Goodspeed

I would like to run tomcat as an unprivileged user for security reasons, but
when my war file is created through Ant it loses all of the permissions (as
it says it will in the Ant manual).  Does anyone know of a way to run tomcat
as an unprivileged user and still use a war file which when it is created is
not accessible to the tomcat user?

I'm wondering if I need to create the war file as the tomcat user or maybe
change the default umask on my build machine - just wondering if anyone else
has run into this.


Thanks.


Re: Compiling JSP Pages on Startup

2007-02-22 Thread David Delbecq
Look at lambda probe (an amdinistration webapp for tomcat), it has a
menu to compile JSPs. If it does not fit your needs, i suppose you can
still rip this code part and reuse it in a listener :)
[EMAIL PROTECTED] a écrit :
> All,
>
> Is there a known way to have Tomcat Compile JSP pages upon startup
> instead of pre-compiling and or waiting for the first page access?
> Resin has a facility like this using JspPrecompileListener. I see
> nothing like this in Tomcat.Has anyone ever attempted this? If not
> where would the entry point for jsp compiliation be so I could possibly
> write my own version of this for Tomcat.
>
> Thanks
> Tony Anter
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>   


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Restarting Webapplication From Command Line

2007-02-22 Thread Bio Jazz
I understand how to restart the entire Tomcat service from the command line. 
However, I have a need to restart a single application from the command line 
without restarting the entire Tomcat service (ie without affecting the other 
deployed applications).


Is there a way to restart a single web application from the command line?

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Compiling JSP Pages on Startup

2007-02-22 Thread aanter
All,

Is there a known way to have Tomcat Compile JSP pages upon startup
instead of pre-compiling and or waiting for the first page access?
Resin has a facility like this using JspPrecompileListener. I see
nothing like this in Tomcat.Has anyone ever attempted this? If not
where would the entry point for jsp compiliation be so I could possibly
write my own version of this for Tomcat.

Thanks
Tony Anter



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



isapi_redirect problem when servlet mapping is the same as the host

2007-02-22 Thread Baron, Bob \(LNG-OAK\)
I'm wondering if there is some kind of easy solution to this problem
that won't require a customization to work around it.
 
The problem occurs when the machine name matches the servlet name (e.g.
http://foo/foo). The problem is that the isapi_redirect is processing
all traffic going to the site and not allowing other filters to handle
them.
 
I have a servlet mapped using the name of our product:
 

  myservlet 
  /myproductname/* 

 
If the name of the machine is also myproductname, things are fine for
request that are intended for our servlet (e.g.
http://myproductname/myproductname/whatever)
 
If there is something else that should be served up by IIS (e.g.
http://myproductname/images/image.gif), the request is passed off to our
servlet instead of dropping through to let IIS serve it up from a
Virtual Directory. Same hold for .Net applications and anything else on
the box - major problem!
 
Has anyone had this problem before? Why is the name of the server used
in the filtering and is there a way to ignore it?
 
If not, I already have a version that suppresses using the host name in
the filtering and it clears up my problem - should this be considered
for an enhancement?
 
Bob Baron
[EMAIL PROTECTED]  



 


RE: strange log4j behaviour

2007-02-22 Thread Tim Lucia
> -Original Message-
> From: Andre Prasetya [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 22, 2007 12:39 AM
> To: Tomcat Users List; jug-indonesia@yahoogroups.com
> Subject: strange log4j behaviour
> 
> Hi,
> 
> I m using tomcat 5.5 and we're hosting 5 application. The problem is that
> 1
> of the application is not doing the log as expected. We're using commons
> logging and log4j. All of the log4j config is similar. and this is the
> log4j
> config file

Where is this log4j.properties file found in each case?  You could try
placing it in WEB-INF/classes/ in the misbehaving app.  

Is it only the classes in WEB-INF/classes which do not log or is it all
classes in that application?

I have *always* supplied log4j.properties in WEB-INF/classes, and never in a
jar.  Since it does not appear anywhere in your list of files below, I have
to conclude it is contained in one of your jars.

> log4j.rootLogger=INFO,STDOUT,FILE
> 
> log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
> log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
> log4j.appender.STDOUT.layout.ConversionPattern=%5p %d{HH:mm:ss} [%t] %c{1}
> -
> %m%n
> 
> log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
> log4j.appender.FILE.DatePattern=-MM-dd
> log4j.appender.FILE.layout.ConversionPattern=%5p %d{HH:mm:ss} [%t] %c{1} -
> %m%n
> log4j.appender.FILE=org.apache.log4j.DailyRollingFileAppender
> 
> log4j.appender.FILE.File=/opt/gateway/logs/LegacyEngine.log
> 
> log4j.logger.com.mchange=WARN
> log4j.logger.com.csp=INFO
> log4j.logger.com.ricochet=INFO
> 

[snip]

Tim



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mysql timouts...

2007-02-22 Thread Tim Lucia


> -Original Message-
> From: Jacob Rhoden [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 22, 2007 8:44 AM
> To: Tomcat Users List
> Subject: Re: Mysql timouts...
>
> I will have to read the documents to find out why having the connection
> automatically reconnected if there was a problem is bad thing, it is not
> clear from first reading.

It's not a bad thing, it's misunderstood.  Auto reconnect says that if I get
an exception because the connection is no longer valid, the NEXT time I get
a connection, automatically reconnect.  Your code needs to handle the retry,
in order to benefit from auto reconnect.

Instead, you should have a validation query and set testOnBorrow=true (the
default value).  That way, Tomcat (DBCP) guarantees the connection is good
before it hands it off to you, and you do not need to have the retry logic
in your application.  The simplest validation query is SELECT 1 (SELECT 1
FROM DUAL - for Oracle).

Tim



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mysql timouts...

2007-02-22 Thread David Smith
I think I see what's happening here.  You've told the database pool to
continually test connections every hour.  The validation query itself
most likely acts as a keep alive on the connection so it never actually
hits the 8 hour default time out of mysql.  Open connections will most
likely never go stale or close until tomcat itself is shutdown or the
pool starts closing the extra idle connections. 

Don't know what to tell you on the logic for maxIdle.  It's not well
documented other than to say that idle connections above x are closed. 
And maxIdleTime is not present at all in the docs I've read so it may
not be an option.

--David

Jacob Rhoden wrote:

> Thanks for your reply, I have read through that document and the one
> on the mysql website, and discovered these other parameters, so I
> added this as well. It didnt make any difference. The mysqladmin
> program still reports the connections going untouched for hours.
>
>  validationQuery="select 1"  testWhileIdle="true"
>  timeBetweenEvictionRunsMillis="6"
>  minEvictableIdleTimeMillis="6"
>
> David Smith wrote:
>
>> As a side note, drop the autoReconnect=true from your database url.
>> It's not recommended and actually does not prevent SQLExceptions on
>> connections that go stale.  It just restores the connection for the next
>> request after the exception.  The MySQL website has further information
>> regarding what autoReconnect actually does.  One of these days, the
>> tomcat docs should be updated to remove that.
>>   
>
> I will have to read the documents to find out why having the
> connection automatically reconnected if there was a problem is bad
> thing, it is not clear from first reading.
>
> Best Regards,
> Jacob
>
>
> __
> Jacob Rhoden - http://rhoden.id.au/
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Still connection problems between IIS tomcat 5.5.12....

2007-02-22 Thread Per Johnsson
It's me again, we have not yet solved our problems, but now we have
turned one of the IIS servers to IIS 5 compability mode which made us
get som logs from the tomcat connector.
 
Short Review of setup:
Tomcat 5.5.12
APR 1.1.0-dev
ispi_redirect.dll 1.2.20
between the iis and tomcat we have a firewall and a load balancer and it
have worked very good in about a year until 1/2-2007 where the IIS
started to crash without any hardware and software changes (what we know
of)
 
The thing is that Tomcat seems to run fine, we can't se any problems on
the tomcat side so I wonder if anyone have any suggestions.
(We have looked at the firewall and load balancer and there should not
be any problems there, otherwise that seemed to be a good error source.)
 
My intepretation is that the connector can send the request but don't
get any response, could that be correct?
 
Any input is more than welcome!
 
Here is a snip from our connector log:
 
---8<---
[Wed Feb 21 23:11:32 2007] [4580:7020] [error] jk_ajp_common.c (948):
(ajp13w) can't receive the response message from tomcat, network
problems or tomcat is down (10.182.19.2:8009), err=-54
[Wed Feb 21 23:11:32 2007] [4580:7020] [error] jk_ajp_common.c (1566):
(ajp13w) Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Wed Feb 21 23:11:32 2007] [4580:7020] [error] jk_ajp_common.c (948):
(ajp13w) can't receive the response message from tomcat, network
problems or tomcat is down (10.182.19.2:8009), err=-54
[Wed Feb 21 23:11:32 2007] [4580:7020] [error] jk_ajp_common.c (1566):
(ajp13w) Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Wed Feb 21 23:11:32 2007] [4580:7020] [error] jk_ajp_common.c (1928):
(ajp13w) Connecting to tomcat failed. Tomcat is probably not started or
is listening on the wrong port
[Wed Feb 21 23:11:32 2007] [4580:7020] [error] jk_isapi_plugin.c (1098):
service() failed
[Thu Feb 22 02:36:13 2007] [4580:4524] [error] jk_ajp_common.c (948):
(ajp15w) can't receive the response message from tomcat, network
problems or tomcat is down (10.182.18.2:8009), err=-54
[Thu Feb 22 02:36:13 2007] [4580:4524] [error] jk_ajp_common.c (1566):
(ajp15w) Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Thu Feb 22 02:36:13 2007] [4580:4524] [error] jk_ajp_common.c (948):
(ajp15w) can't receive the response message from tomcat, network
problems or tomcat is down (10.182.18.2:8009), err=-54
[Thu Feb 22 02:36:13 2007] [4580:4524] [error] jk_ajp_common.c (1566):
(ajp15w) Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Thu Feb 22 02:36:13 2007] [4580:4524] [error] jk_ajp_common.c (1928):
(ajp15w) Connecting to tomcat failed. Tomcat is probably not started or
is listening on the wrong port
[Thu Feb 22 02:36:13 2007] [4580:4524] [error] jk_isapi_plugin.c (1098):
service() failed
[Thu Feb 22 03:56:51 2007] [4580:7940] [error] jk_ajp_common.c (948):
(ajp13w) can't receive the response message from tomcat, network
problems or tomcat is down (10.182.19.2:8009), err=-54
[Thu Feb 22 03:56:51 2007] [4580:7940] [error] jk_ajp_common.c (1566):
(ajp13w) Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Thu Feb 22 03:56:51 2007] [4580:7940] [error] jk_ajp_common.c (948):
(ajp13w) can't receive the response message from tomcat, network
problems or tomcat is down (10.182.19.2:8009), err=-54
[Thu Feb 22 03:56:51 2007] [4580:7940] [error] jk_ajp_common.c (1566):
(ajp13w) Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Thu Feb 22 03:56:51 2007] [4580:7940] [error] jk_ajp_common.c (1928):
(ajp13w) Connecting to tomcat failed. Tomcat is probably not started or
is listening on the wrong port
[Thu Feb 22 03:56:51 2007] [4580:7940] [error] jk_isapi_plugin.c (1098):
service() failed
[Thu Feb 22 07:40:25 2007] [4580:4244] [error] jk_ajp_common.c (948):
(ajp13w) can't receive the response message from tomcat, network
problems or tomcat is down (10.182.19.2:8009), err=-54
[Thu Feb 22 07:40:25 2007] [4580:4244] [error] jk_ajp_common.c (1566):
(ajp13w) Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Thu Feb 22 07:43:41 2007] [4580:7940] [error] jk_ajp_common.c (948):
(ajp15w) can't receive the response message from tomcat, network
problems or tomcat is down (10.182.18.2:8009), err=-54
[Thu Feb 22 07:43:41 2007] [4580:7940] [error] jk_ajp_common.c (1566):
(ajp15w) Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Thu Feb 22 08:40:08 2007] [4580:6404] [error] jk_isapi_plugin.c (659):
WriteClient failed with 2746
[Thu Feb 22 10:29:52 2007] [4580:5972] [error] jk_ajp_common.c (948):
(ajp13w) can't receive the response message from tomcat, network
problems or tomcat is down (10.182.19.2:8009), err=-54
[Thu Feb 22 10:29:52 2007] [4580:5972] [error] jk_ajp_common.c (1566):
(ajp13w) Tomcat is down or refused connection. No response 

Re: Mysql timouts...

2007-02-22 Thread Jacob Rhoden
Thanks for your reply, I have read through that document and the one on 
the mysql website, and discovered these other parameters, so I added 
this as well. It didnt make any difference. The mysqladmin program still 
reports the connections going untouched for hours.


 validationQuery="select 1"  testWhileIdle="true"
 timeBetweenEvictionRunsMillis="6"
 minEvictableIdleTimeMillis="6"

David Smith wrote:
As a side note, drop the autoReconnect=true from your database url. 
It's not recommended and actually does not prevent SQLExceptions on

connections that go stale.  It just restores the connection for the next
request after the exception.  The MySQL website has further information
regarding what autoReconnect actually does.  One of these days, the
tomcat docs should be updated to remove that.
  
I will have to read the documents to find out why having the connection 
automatically reconnected if there was a problem is bad thing, it is not 
clear from first reading.


Best Regards,
Jacob


__
Jacob Rhoden - http://rhoden.id.au/

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Get rid of 8080 port in Tomcat 3.3

2007-02-22 Thread Stefan

Steffen Heil schrieb:

Hi

  

That's the way You should go:
http://www.linux.org.mt/article/tomcat-ports



I totally disagree.
First, it would surely be best to update to 6.0 and run it using jsvc

However, let's look at the solution in the link above.

1. "The Apache solution". (Which should be called the "httpd" solution.)
This will work, and might be okay, if you are already running apache on that
system.
BUT tomcat itself can be faster (at least newer ones, I don't know about
3.x) without httpd.

2. The IP tables solution
You webapplication will not know about the different port and encode urls
incorrecly. Bad Idea and impossible if SSL is required.

3. The rinetd solution
Good for development and tests. Adds a little overhead AND destroy a lot of
logging and security, as tomcat will always see ONE client ip.

4. IPchains alternative
see 2.

UPGRADE.
Otherwise get jsvc to work for you.

Regards,
  Steffen
  
Hi Steffen, good point. Neither logging nor the security was ever a 
problem for us, so we did not even notice ;-). The applications work 
fine for several years in production (a cocoon 2.0 and some struts based 
applications) and we did not encounter encoding problems. I'm not 
experienced with network protocols but for me it looks like tomcat logs 
the address information on ip level, but servlets work with the ip 
address of the http request. This information should not be influenced 
by rinetd or iptables.


Yes, the jsvc seems the correct approach. We'll change, when 6.0 reaches 
production quality.


Thanks and regards
Stefan

--

Stefan Riegel
TELIG GmbH



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mysql timouts...

2007-02-22 Thread David Smith
If you read through
http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html,
you'll find the validationQuery attribute is used to test connections
before they are borrowed from the pool.  The query can be as simple as
"select 1".

As a side note, drop the autoReconnect=true from your database url. 
It's not recommended and actually does not prevent SQLExceptions on
connections that go stale.  It just restores the connection for the next
request after the exception.  The MySQL website has further information
regarding what autoReconnect actually does.  One of these days, the
tomcat docs should be updated to remove that.

--David

Jacob Rhoden wrote:

>
> Jacob Rhoden wrote:
>
>> I am having the seemingly common "Broken pipe" to mysql problem with
>> tomcat.
>>
>>  >  maxActive="5" removeAbandoned="true"
>>  maxIdle="2" maxIdleTime="300" idleConnectionTestPeriod="60"
>>  maxWait="1" username="blah" password="blah"
>>  driverClassName="com.mysql.jdbc.Driver"
>> url="jdbc:mysql://localhost:3306/blah?autoReconnect=true&useUnicode=true&characterEncoding=utf8"/>
>>
>>
> I have installed a most up to date version of tomcat 5.5.20/mysql5.0.4
> connector on Redhat Enterprise WS 4, and according to the mysqladmin
> tool, the connections are not used (remain in sleep mode for way more
> than the idleConnectionTestPeriod variable), which makes me think this
> configuration is invalid. Is there anyway to ensure tomcat
> tests/refreshes its database connections?
>
> Best Regards,
> Jacob
>


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dynamic JSP include?

2007-02-22 Thread Kristian Rink

Hi Tim, list;
[Tim Funk <[EMAIL PROTECTED]> @ Thu, 22 Feb 2007 07:30:23 -0500]

> A few problems:
> 0) Try page='/pages/<%= request.getParameter("site")%>' (Notice the
> use of single quotes - jasper is getting confused by the extra use of
> double quotes

This doesn't work, it seems using single quotes keeps jasper from
actually evaluating what's in between them, here.

> 2) Try validating <%= request.getParameter("site")%> first in EL so
> you can say: page="/pages/${param.site}"

That, however, does it. Even though I'm not completely sure to know why
the difference in behaviour, thanks a lot for that hint! :)

Cheers,
Kristian

-- 
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771
"One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality." (Hundertwasser)

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help with tomcat installation

2007-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Pranathi,

Pranathi wrote:
> I am a new user of tomcat. I have successfully downloaded tomcat 4.1.34
> and installed it.

If you are a new user of Tomcat, you should dump the 4.1 version and
upgrade to at least 5.5. This probably isn't going to solve your
problem, but at least you'll be using an up-to-date version of Tomcat.

> Now when I try to startup the server using
> startup.bat, I see that a window flashes on my screen and the server
> does not startup.

Look in logs/catalina.out for the "standard output" log. It probably
includes either an error message or a stack trace or both. Post them to
the list and we may be able to help.

Have you modified the default configuration that comes with Tomcat? If
so, please post those changes as well.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF3Y629CaO5/Lv0PARAuPDAJ4xCzY7OIYPWXzsGvfcFowWC8myYACeI570
2wIp2hUxqbIqa35nPWZSgQc=
=vc5U
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System property use in web.xml?

2007-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Martin,

Bill Barker wrote:
> <[EMAIL PROTECTED]> wrote in message 
>> However, when I try to deploy this webapp to Websphere 6.0.x, even after
>> defining a custom property for 'region' in the server profile, I get a:
>>
>> java.io.FileNotFoundException: /WEB-INF/jmsContext-${region}.xml,
>> when the server starts.
> 
> I'm afraid that system property substitution is a Tomcat-specific feature. 
> You can't rely on it working in any other Servlet Container.

I actually never knew that Tomcat would do this for you. I use ant for
just about everything, including building WAR files for deployment. I
simply use ant's "filtering" capability in the  task.

Hope that helps,
- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF3Yz99CaO5/Lv0PARAnqzAJ9R/GoAUUdCMwddFY43A5+oEJInhQCgpCCm
9MQEKuIsmcoh2wDXSiiwPIo=
=pcb6
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dynamic JSP include?

2007-02-22 Thread Tim Funk

A few problems:
0) Try page='/pages/<%= request.getParameter("site")%>' (Notice the use 
of single quotes - jasper is getting confused by the extra use of double 
quotes
1) If you are not including JSP params (jsp:param) you should use 

2) Try validating <%= request.getParameter("site")%> first in EL so you 
can say: page="/pages/${param.site}"
3) Validate the site parameter since site="../WEB-INF/web.xml" includes 
web.xml to the client


-Tim

Kristian Rink wrote:

Folks;

currently I am playing around with something like that in my JSP
pages...

	flush="true" 
	page="/pages/<%= request.getParameter("site")%>">



... which, as I understand the JSP reference, should be possible.
However, it doesn't seem to work right. It actually _does_ work and
include the page referred to this way, but it just works _sometimes_,
in any other try I get something like this:

[...]
org.apache.jasper.JasperException: /index.jsp(11,69) equal symbol
expected
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
[...]


(index.jsp line 11 is the full jsp:include as outlined above). I feel
sort of stupid now - having something that doesn't at all work would be
easier to handle, but the behaviour of this to work once and not work
again the next time is rather disturbing. Can anyone enlighten me here?
I also played around with the "flush" but it doesn't really make things
better...



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dynamic JSP include?

2007-02-22 Thread David Delbecq
Please give us the full stacktrace, including nested exceptions. (caused
by...) if any.

En l'instant précis du 02/22/07 12:58, Kristian Rink s'exprimait en ces
termes:
> Folks;
>
> currently I am playing around with something like that in my JSP
> pages...
>
>flush="true" 
>   page="/pages/<%= request.getParameter("site")%>">
> 
>
> ... which, as I understand the JSP reference, should be possible.
> However, it doesn't seem to work right. It actually _does_ work and
> include the page referred to this way, but it just works _sometimes_,
> in any other try I get something like this:
>
> [...]
> org.apache.jasper.JasperException: /index.jsp(11,69) equal symbol
> expected
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> [...]
>
>
> (index.jsp line 11 is the full jsp:include as outlined above). I feel
> sort of stupid now - having something that doesn't at all work would be
> easier to handle, but the behaviour of this to work once and not work
> again the next time is rather disturbing. Can anyone enlighten me here?
> I also played around with the "flush" but it doesn't really make things
> better...
>
>
> Thanks in advance and bye,
> Kristian
>
>
>   


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



dynamic JSP include?

2007-02-22 Thread Kristian Rink

Folks;

currently I am playing around with something like that in my JSP
pages...

">


... which, as I understand the JSP reference, should be possible.
However, it doesn't seem to work right. It actually _does_ work and
include the page referred to this way, but it just works _sometimes_,
in any other try I get something like this:

[...]
org.apache.jasper.JasperException: /index.jsp(11,69) equal symbol
expected
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
[...]


(index.jsp line 11 is the full jsp:include as outlined above). I feel
sort of stupid now - having something that doesn't at all work would be
easier to handle, but the behaviour of this to work once and not work
again the next time is rather disturbing. Can anyone enlighten me here?
I also played around with the "flush" but it doesn't really make things
better...


Thanks in advance and bye,
Kristian


-- 
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771
"One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality." (Hundertwasser)

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mysql timouts...

2007-02-22 Thread Jacob Rhoden


Jacob Rhoden wrote:
I am having the seemingly common "Broken pipe" to mysql problem with 
tomcat.


  driverClassName="com.mysql.jdbc.Driver" 
url="jdbc:mysql://localhost:3306/blah?autoReconnect=true&useUnicode=true&characterEncoding=utf8"/> 



I have installed a most up to date version of tomcat 5.5.20/mysql5.0.4 
connector on Redhat Enterprise WS 4, and according to the mysqladmin 
tool, the connections are not used (remain in sleep mode for way more 
than the idleConnectionTestPeriod variable), which makes me think this 
configuration is invalid. Is there anyway to ensure tomcat 
tests/refreshes its database connections?


Best Regards,
Jacob


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How can I realize server side GUI??

2007-02-22 Thread Pid

That doesn't really sound like a Tomcat question.

This list is best at responding to questions about the Tomcat server, 
rather than open ended development questions.


You'll probably have more luck in the Sun Java Forums, if indeed Java is 
the language that you intend to use.


In most cases (AFAIK) this type of problem is solved by client-side 
activity, which then sends the end result(s) to the server.  You might 
look into Flash, or AJAX type Javascript.



rgds

pid


wang suya wrote:

 Hello

I want to make a server side GUI application that draw
senveral Rectanges and when mouse drag the bottom of Rectange, the rectange
extends. Do anybody know how I can realize this appication.

  Thank you at advance.

 Wang suya


wang suya

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How can I realize server side GUI??

2007-02-22 Thread Peter Crowther
> From: wang suya [mailto:[EMAIL PROTECTED] 
> I want to make a server side GUI application that draw
> senveral Rectanges and when mouse drag the bottom of 
> Rectange, the rectange
> extends. Do anybody know how I can realize this appication.

I assume by "server-side GUI" you mean "a graphical interface served
from a Web server to a Web browser"?

Depending on what you then wish to do with the data from the rectangles,
you could do it entirely in Javascript or use one of the higher-level
frameworks like AJAX.  Without more details on your requirements, it's
difficult to tell.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]