Not able to start Tomcat with jvm parameter -Xrunhprof

2005-06-29 Thread Nallapeta Bhaskar

Hello,
I have set the environment variable CATALINA_OPTS to -Xmx1536m 
-Xrunhprof:cpu=samples,file=/var/tmp/hprof.txt. Tomcat is not getting 
started up. In the catalina.out i noticed the following error:
HPROF ERROR: can't write profile file: /var/tmp/hprof.txt. (Write 
permission is there for this folder)


But if I go and see /var/tmp, the file hprof.txt is created.

I am using tomcat 5.0.28 with jdk 1.4.2 on RH linux (64bit)

Any reason why tomcat is not starting up?

TIA,
Bhaskar

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



Re: Not able to start Tomcat with jvm parameter -Xrunhprof

2005-06-29 Thread Athol . Kelly




Please remove my name from Tomcat Users List.

Thank you,
Athol Kelly.
IMPORTANT--PLEASE READ***
If this electronic message contains a zipped attachment and you do not have
a decompression tool, you can download unZIP (for free) from:
http://www.mk-net-work.com/us/uz/unzip.htm. Alternatively, request 
that the attachment be resent in an uncompressed format. This electronic 
message, 
including its attachments, is COMPANY CONFIDENTIAL
and may contain PROPRIETARY or LEGALLY PRIVILEGED information.  If you are 
not the intended recipient, you are hereby notified that any use, disclosure,
copying, or distribution of this message or any of the information included
in it is unauthorized and strictly prohibited.  If you have received this
message in error, please immediately notify the sender by reply e-mail and
permanently delete this message and its attachments, along with any copies
thereof.   Thank you.  2.2


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



Re: help in setting up

2005-06-29 Thread ganesan malairaja

thankx

htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, CursiveEMSTRONGIMG 
height=16 src=http://graphics.hotmail.com/emarrow_right.gif; 
width=16Ganesan_MalairajaIMG height=16 
src=http://graphics.hotmail.com/emarrow_left.gif; 
width=16/STRONG/EM/FONT/DIV/DIV/html





From: Parsons Technical Services [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: help in setting up
Date: Wed, 29 Jun 2005 01:52:39 -0400

It depends:

5.5.x only needs JRE
5.0.x and earlier versions needs full JDK
As for version I recommend Java 1.5 and it is required for the 5.5.x 
version unless you use the compatibility patch for 1.4


Doug

- Original Message - From: ganesan malairaja 
[EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Tuesday, June 28, 2005 11:42 PM
Subject: help in setting up




hi guys

i know that to settup tomcat , there no need for apache

i wanna know what java i should use

is it j2dk or j2ee

because i saw some example that uses both..

i am going to run JSP to retrieve info from database

i need guide on how to setup tomcat .. ie what java version i shoud use.

any links also would be helpfull .. consider a newbie case

thanks guys .. ur help is appreaciated.
htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, 
CursiveEMSTRONGIMG height=16 
src=http://graphics.hotmail.com/emarrow_right.gif; 
width=16Ganesan_MalairajaIMG height=16 
src=http://graphics.hotmail.com/emarrow_left.gif; 
width=16/STRONG/EM/FONT/DIV/DIV/html




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



Using Tomcat for communicating direct TCP/IP?

2005-06-29 Thread Keijo Lehto
Hi,

I'm currently working on implementing a Java server, which (in
nutshell) listens to certain TCP ports, reads input, processes the
data and sends output back to the client depending on how the input
processing went.

Now, instead of reinventing the wheel, I was wondering whether I could
somehow (easily, if possible) use Tomcat to do just that ie. leave all
HTTP stuff away and just simply forward all data to a servlet or
something similar. My goal with this approach would be to be able to
use the robust connection handling, database pooling etc. of Tomcat.

Should this be possible, I'd appreciate any pointers (documentation,
tutorials...) on how to continue.

BR,
Keke

PS. I'd very much be interested in hearing about other robust server
frameworks, too, if that doesn't go too OT. :-)

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



JK for AIX

2005-06-29 Thread Arnaud HERITIER
Hi guys,
  I'm trying to install modjk between Tomcat 5.5.7 and Apache 1.3.33 on AIX 
5.2 and I have some build errors.
  I did it some years ago with tomcat 4 on AIX 4.3 and I remember that I 
needed to add some flags to do it on AIX.
  Is there anyone who have some information to build the connector on AIX 
5.2 ?
 Thanks
 Arnaud


Load all JSP pages on startup

2005-06-29 Thread Geoffrey

In Tomcat 5.5 (or Jboss 4.0 using Tomcat 5.5),
can I load all JSP pages on deployment?

I don't want to precompile in my build script,
but I do want the server to compile all jsp pages as soon as they are 
deployed.


I can load one jsp page on startup like this:

servlet
servlet-nameHomeJsp/servlet-name
jsp-file/home.jsp/jsp-file
load-on-startup1/load-on-startup
/servlet

But I want to do something like

jsp-property-group
display-nameallJsp/display-name
url-pattern*.jsp/url-pattern
load-on-startup1/load-on-startup
/jsp-property-group
(this isn't allowed in the web.xml)

Thanks for any and all help,
Geoffrey


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



Regarding JDBC applet server

2005-06-29 Thread reddy.sudheer

Hi

In our project we are using Tomcat server(version 5.0.28) and
DB2(version 5.1).From time to time we get the following error.

ERROR_MSG : [IBM][JDBC Driver] CLI0614E Error sending to the socket,
server is not responding. SQLSTATE=08S01

This is happening due to the jdbc applet server stopping after some
indefinite periods. When we go to services and start the jdbc applet
server things work fine. Can anyone tell me why this particular service
is stopping at irregular intervals? We have closed all statements and
connections in Dao's.

Is there anyone who have some information Please pass to me.

Thanks

Sudheer











Confidentiality Notice

The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

Re: Using Tomcat for communicating direct TCP/IP?

2005-06-29 Thread Bhaskar

Have you given any thoughts on using RMI or JavaSpaces?

Bhaskar

Keijo Lehto wrote:


Hi,

I'm currently working on implementing a Java server, which (in
nutshell) listens to certain TCP ports, reads input, processes the
data and sends output back to the client depending on how the input
processing went.

Now, instead of reinventing the wheel, I was wondering whether I could
somehow (easily, if possible) use Tomcat to do just that ie. leave all
HTTP stuff away and just simply forward all data to a servlet or
something similar. My goal with this approach would be to be able to
use the robust connection handling, database pooling etc. of Tomcat.

Should this be possible, I'd appreciate any pointers (documentation,
tutorials...) on how to continue.

BR,
Keke

PS. I'd very much be interested in hearing about other robust server
frameworks, too, if that doesn't go too OT. :-)

-
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: Regarding JDBC applet server

2005-06-29 Thread Brereton, Stephen
perhaps connection pooling or timeout? 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 29 June 2005 11:24
To: tomcat-user@jakarta.apache.org
Subject: Regarding JDBC applet server



Hi


In our project we are using Tomcat server(version 5.0.28) and
DB2(version 5.1).From time to time we get the following error.


ERROR_MSG : [IBM][JDBC Driver] CLI0614E Error sending to the socket,
server is not responding. SQLSTATE=08S01


This is happening due to the jdbc applet server stopping after some
indefinite periods. When we go to services and start the jdbc applet
server things work fine. Can anyone tell me why this particular service
is stopping at irregular intervals? We have closed all statements and
connections in Dao's.

Is there anyone who have some information Please pass to me.

Thanks

Sudheer














Confidentiality Notice


The information contained in this electronic message and any attachments to
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
[EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

* * * * * * * * * * * *
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.
This email represents the personal views of the author/sender.  The
author/sender has no authority or delegation to bind the City of York
Council by this e-mail and the City of York Council accepts no
responsibility whatsoever for its contents.  Please note that any reply to
this email may be screened.

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



RE: connecting IIS and Tomcat

2005-06-29 Thread Brereton, Stephen
Solved this now. I removed all but the specific one I knew I needed and then
reset the home page on IIS to point at the app folder.

Ta for the suggestions!

-Original Message-
From: Derrick Koes [mailto:[EMAIL PROTECTED]
Sent: 28 June 2005 17:56
To: Tomcat Users List
Subject: RE: connecting IIS and Tomcat



Then you won't mind commenting the others and re-trying.;-)  Simplify first.
BTW workers2.properties is unused for the JK connector.  The JK2 connector
uses it.  It is safe to delete. 

-Original Message-
From: Brereton, Stephen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 28, 2005 12:52 PM
To: 'Tomcat Users List'
Subject: RE: connecting IIS and Tomcat

Thanks for pointing that out, but the worker I'm trying to use is 'raid',
and I'm somewhat confused why its picked up the URL of the site as part of
the name - this is the (test) copy - hence the name.

-Original Message-
From: Derrick Koes [mailto:[EMAIL PROTECTED]
Sent: 28 June 2005 17:44
To: Tomcat Users List
Subject: RE: connecting IIS and Tomcat



One thing that might help:

The name of the worker can contain only the alphanumeric characters
[a-z][A-Z][0-9] and is case insensitive. 


http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html


-Original Message-
From: Brereton, Stephen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 28, 2005 12:43 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: connecting IIS and Tomcat

I'm in process of getting IIS to use Tomcat (for the obvious) but have hit a
problem. 
As far as I can tell, the config files are all as they should be, but on
restarting the server and requesting the page I want, a blank is returned
and jk_IIS.log has this in it::

###

[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1018)]: Using registry.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1020)]: Using log file
G:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\jk_iis.log.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1021)]: Using log level 0.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1022)]: Using extension uri
/tomcat/isapi_redirector.dll.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1023)]: Using worker file
G:\Program Files\Apache Software Foundation\Tomcat
5.0\conf\workers2.properties.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1024)]: Using worker mount
file G:\Program Files\Apache Software Foundation\Tomcat
5.0\conf\uriworkermap.properties.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1025)]: Using uri select 0.
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (172)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (375)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 7 [Tue Jun 28
17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=testWorker
was added [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/=raid was
added [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /=raid was added [Tue
Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/tomcat/=raid
was added [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule
/raid-test.york.gov.uk/tomcat/=raid was added [Tue Jun 28 17:25:57 2005]
[jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /raid-test.york.gov.uk/=raid was added [Tue Jun 28 17:25:57 2005]
[jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /raid/=raid was added [Tue Jun 28 17:25:57 2005]
[jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open,
there are 7 rules [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done [Tue Jun 28 17:25:57 2005]
[jk_worker.c (88)]: Into wc_open [Tue Jun 28 17:25:57 2005]  [jk_worker.c
(222)]: Into build_worker_map, creating 1 workers [Tue Jun 28 17:25:57 2005]
[jk_worker.c (228)]: build_worker_map, creating worker ajp12 [Tue Jun 28
17:25:57 2005]  [jk_worker.c (148)]: Into wc_create_worker [Tue Jun 28
17:25:57 2005]  [jk_worker.c (162)]: wc_create_worker, about to create
instance ajp12 of ajp12 [Tue Jun 28 17:25:57 2005]  [jk_ajp12_worker.c
(283)]: Into ajp12_worker_factory [Tue Jun 28 17:25:57 2005]  [jk_worker.c
(171)]: wc_create_worker, about to validate and init ajp12 [Tue Jun 28
17:25:57 2005]  [jk_ajp12_worker.c (200)]: Into jk_worker_t::validate [Tue
Jun 28 17:25:57 2005]  [jk_ajp12_worker.c (212)]: In jk_worker_t::validate
for worker ajp12 contact is localhost:8007 [Tue Jun 28 17:25:57 2005]
[jk_worker.c (187)]: wc_create_worker, done [Tue Jun 28 

Re: Using Tomcat for communicating direct TCP/IP?

2005-06-29 Thread Keijo Lehto
Hi Bhaskar,

I've understood (please correct me if I'm wrong) that both JavaSpaces
and RMI are somewhat Java-specific techniques.

My usage scenario doesn't involve Java clients. In fact, the
communication between the clients and the server has been limited to a
predefined text-based protocol (basically just a very simple
request-response model with ASCII text messages).

BR,
- keke

On 6/29/05, Bhaskar [EMAIL PROTECTED] wrote:
 Have you given any thoughts on using RMI or JavaSpaces?
 
 Bhaskar
 
 Keijo Lehto wrote:
 
 Hi,
 
 I'm currently working on implementing a Java server, which (in
 nutshell) listens to certain TCP ports, reads input, processes the
 data and sends output back to the client depending on how the input
 processing went.
 
 Now, instead of reinventing the wheel, I was wondering whether I could
 somehow (easily, if possible) use Tomcat to do just that ie. leave all
 HTTP stuff away and just simply forward all data to a servlet or
 something similar. My goal with this approach would be to be able to
 use the robust connection handling, database pooling etc. of Tomcat.
 
 Should this be possible, I'd appreciate any pointers (documentation,
 tutorials...) on how to continue.
 
 BR,
 Keke
 
 PS. I'd very much be interested in hearing about other robust server
 frameworks, too, if that doesn't go too OT. :-)
 
 -
 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]



AW: Load all JSP pages on startup

2005-06-29 Thread Bernhard Slominski
 
 I don't want to precompile in my build script,

With the precompilation you can do the stuff you need, it automatically
creates the servlet mapping in the web.xml.
The only thing you have to add is the load-on-startup1/load-on-startup
part, but I think you can automate this as well.

So why don't you want precompilation?

Bernhard

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



Re: tomcat default page

2005-06-29 Thread Tim Diggins
Are you aware that what is show at  http://www.mydomain.com:8080 is the 
output of the ROOT webapp? You can change this webapp as you like (ofr 
example to one that just displays an single error page for example). 
IMHO, best to change this using a deployment method rather than editing 
the expanded root webapp in place. Some suggestions for mechanisms are 
at (diddn't find a similar page in the tomcat docs):

http://www.oreillynet.com/cs/user/view/cs_msg/62284

-- Tim

Tony Smith wrote:

I would like to try both...

--- Brereton, Stephen [EMAIL PROTECTED]
wrote:



Do you mean to display another page, or to stop the
access via port 8080?

-Original Message-
From: Tony Smith [mailto:[EMAIL PROTECTED]
Sent: 28 June 2005 22:39
To: Tomcat Users List
Subject: tomcat default page


I install tomcat on my machine and my webapp can be
accessed as 

http://www.mydomain.com:8080/myapp/index.jsp. 


If I type http://www.mydomain.com:8080, the default
tomcat page will be displayed. How can I change this
page to something else, or forbid it?

Thanks,




__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your
mobile phone. 
http://mobile.yahoo.com/learn/mail 





-


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

* * * * * * * * * * * *
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.
This email represents the personal views of the
author/sender.  The
author/sender has no authority or delegation to bind
the City of York
Council by this e-mail and the City of York Council
accepts no
responsibility whatsoever for its contents.  Please
note that any reply to
this email may be screened.




-


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








 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com


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






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



Re: Mail Session ClassCastException

2005-06-29 Thread Carlos Bracho
Thanks Dirk, you were right, I had the jar files in common/lib and also in 
the web-inf/lib

Thanks again

On 6/29/05, Dirk Weigenand [EMAIL PROTECTED] wrote:
 
 Hi Carlos,
 
  --- Ursprüngliche Nachricht ---
  Von: Carlos Bracho [EMAIL PROTECTED]
  An: tomcat-user@jakarta.apache.org
  Betreff: Mail Session ClassCastException
  Datum: Tue, 28 Jun 2005 10:08:28 -0400
 
  Hello everybody.
 
  I am trying to get a mail session using the context's lookup method and 
 I
  get a ClassCastException.
 
  this is the resource declaration in my context.xml:
 
  Resource name=mail/sessionMail auth=Container
  type=javax.mail.Session
  mail.smtp.host=localhost/
 
  the code I am using to lookup the resource is:
 
  Context initialContext = new InitialContext();
  Object objeto = initialContext.lookup(java:comp/env/mail/sessionMail);
  String clase = objeto.getClass().getName();
  if(objeto instanceof javax.mail.Session)
  {
  this.session = (javax.mail.Session) objeto;
  }
 
  when I debug that code I see the clase variable has 
 javax.mail.Session
  as value but the if test does not pass
 
 
 I think your code is correct. What you are running into here is a case of
 loading classes via different class loaders. Check that your tomcat
 installation and your webapp do not both contain mail.jar. The bean 
 factory
 which provides your javax.mail.Session loads the class probably from the
 common/lib/mail.jar and your webapp gets this class from its
 WEB-INF/lib/mail.jar so they are both instances of javax.mail.Session but
 since loaded via different class loaders not really the same classes.
 
  Can anybody help men??
 
 Regards,
 Dirk
 
 --
 Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
 Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
 



-- 
--
Carlos J, Bracho M. 
--
e-mail: [EMAIL PROTECTED]
MSN: [EMAIL PROTECTED]
+58 416 409 21 75 
--


SLL on Apache Tomcat 4.1

2005-06-29 Thread Marilyn Belcher
I am trying to register at Verisign for an SSL certificate.  We are running
Tomcat 4.1 on our server.  In order to obtain a CSR on the server, I must
specify whether I want the Apache SSL or the Mod SSL.  Can you please tell
me which option I need to choose?

 

Thanks

Marilyn

 

Marilyn Belcher

World Travel Service, LLC

918-743-8856

800-324-4987

918-747-7480 - fax

Visit us at www.WorldTravelToday.com http://www.WorldTravelToday.com 

 

 



RE: help in setting up

2005-06-29 Thread Venkat Radha Venkataramanan
Ganesan:

You can download the latest and greatest version of Tomcat, unzip it and run
the batch file to start it up. That's all to it.

-Original Message-
From: ganesan malairaja [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 28, 2005 11:42 PM
To: tomcat-user@jakarta.apache.org
Subject: help in setting up


hi guys

i know that to settup tomcat , there no need for apache

i wanna know what java i should use

is it j2dk or j2ee

because i saw some example that uses both..

i am going to run JSP to retrieve info from database

i need guide on how to setup tomcat .. ie what java version i shoud use.

any links also would be helpfull .. consider a newbie case

thanks guys .. ur help is appreaciated.
htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, CursiveEMSTRONGIMG

height=16 src=http://graphics.hotmail.com/emarrow_right.gif; 
width=16Ganesan_MalairajaIMG height=16 
src=http://graphics.hotmail.com/emarrow_left.gif; 
width=16/STRONG/EM/FONT/DIV/DIV/html



-
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: Problem in Resource declaration

2005-06-29 Thread Larry Meadors
Without more info, my guess is that it doesn't work.

Maybe you could tell us *how* it doesn't work. Do you get an error?
Does smoke pour out of your server? Do the lights dim?

Throw us a bone here.

Larry


On 6/28/05, Behrang Saeedzadeh [EMAIL PROTECTED] wrote:
 Hi
 
 I want to define a DBCP pooled MySQL connection for a test application.
 The following definition is not working:
 
 ?xml version=1.0 encoding=UTF-8?
 Context path=/Hibernate-02
 Resource name=jdbc/Hibernate02 scope=Shareable
 type=javax.sql.DataSource auth=Container/
 ResourceParams name=jdbc/Hibernate02
 parameter
 namefactory/name
 
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 
 !-- DBCP database connection settings --
 parameter
 nameurl/name
 
 valuejdbc:mysql:///Hibernate02?user=rootamp;password=bsaku2633amp;autoReconnect=true/value
 /parameter
 parameter
 namedriverClassName/name
 valuecom.mysql.jdbc.Driver/value
 /parameter
 
 !-- DBCP connection pooling options --
 parameter
 namemaxWait/name
 value3000/value
 /parameter
 parameter
 namemaxIdle/name
 value100/value
 /parameter
 parameter
 namemaxActive/name
 value10/value
 /parameter
 /ResourceParams
 /Context
 
 But the following definition works:
 
 ?xml version=1.0 encoding=UTF-8?
 Context path=/Hibernate-02
 Resource name=jdbc/Hibernate02 auth=Container
 type=javax.sql.DataSource
  maxActive=100 maxIdle=30 maxWait=1
  username=root password=bsaku2633
 driverClassName=com.mysql.jdbc.Driver
  url=jdbc:mysql:///Hibernate02?autoReconnect=true/
 /Resource
 /Context
 
 Any ideas what's wrong with the first declaration?
 
 --
 Behrang Saeedzadeh
 http://www.jroller.com/page/behrangsa
 
 Using Opera's revolutionary e-mail client
 
 -
 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: SLL on Apache Tomcat 4.1

2005-06-29 Thread Rajasekar
Hi,
 You can get the SSL for tomcat only. Now thawte and verisign supports ssl 
for tomcat itself. 
 and Now if you are using Tomcat integrated with Apache, go for Apache SSL. 
But you can implement SSL only for tomcat.
 Regards
 Raj

 On 6/29/05, Marilyn Belcher [EMAIL PROTECTED] wrote: 
 
 I am trying to register at Verisign for an SSL certificate. We are running
 Tomcat 4.1 on our server. In order to obtain a CSR on the server, I must
 specify whether I want the Apache SSL or the Mod SSL. Can you please tell
 me which option I need to choose?
 
 
 
 Thanks
 
 Marilyn
 
 
 
 Marilyn Belcher
 
 World Travel Service, LLC
 
 918-743-8856
 
 800-324-4987
 
 918-747-7480 - fax
 
 Visit us at www.WorldTravelToday.com http://www.WorldTravelToday.com 
 http://www.WorldTravelToday.com
 
 
 
 
 
 
 


-- 
Rajasekar V.R
#489, Amar Jyothi Layout,
Domlur IInd Stage,
Bangalore - 560 071
Ph: 080-51151565 / 64


Convert URL path from directory/ to directory/index.htm (Spring related)

2005-06-29 Thread Andy

Hi,

Is there anyway to get Tomcat to convert a request such as
myserver.com/directory into myserver.com/directory/index.htm.

The reason for this is that in Spring you have to specify a
wild card to match against the URL path in order to invoke
the DispatcherServlet, if this wild card is *.htm then a
requested without index.htm in it results in a 404 from Tomcat.

i.e. myserver.com/directory
 - gives a 404 response
 myserver.com/directory/index.htm
 - invokes Spring to deal with the request

Perhaps this is an issue I can solve within Spring but
thought I'd try the Tomcat angle first.

This is what I have in my web.xml for Spring -

servlet
servlet-nameabc/servlet-name

servlet-classorg.springframework.web.servlet.DispatcherServlet/servlet-cl
ass
load-on-startup1/load-on-startup
/servlet

servlet-mapping
servlet-nameabc/servlet-name
url-pattern*.htm/url-pattern
/servlet-mapping


Thanks,

Andy.






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



RE: Convert URL path from directory/ to directory/index.htm (Spring related)

2005-06-29 Thread Allistair Crossley
Hi,

You'd normally attempt to do this with URL rewriting at the web server side. I 
read that tomcat does not really offer URL rewriting at this time if used as a 
web server, I could be wrong.

For what it's worth, we place index.jsp documents in folders that the user may 
request that do a erquest forward to index.htm which is then picked up by 
Spring. If using IIS you can also specifying default documents like index.htm 
which the web server will try until it gets a bite from Tomcat

All the best, Allistair.

 -Original Message-
 From: Andy [mailto:[EMAIL PROTECTED]
 Sent: 29 June 2005 14:18
 To: tomcat-user@jakarta.apache.org
 Subject: Convert URL path from directory/ to 
 directory/index.htm (Spring
 related)
 
 
 
 Hi,
 
 Is there anyway to get Tomcat to convert a request such as
 myserver.com/directory into myserver.com/directory/index.htm.
 
 The reason for this is that in Spring you have to specify a
 wild card to match against the URL path in order to invoke
 the DispatcherServlet, if this wild card is *.htm then a
 requested without index.htm in it results in a 404 from Tomcat.
 
 i.e. myserver.com/directory
  - gives a 404 response
  myserver.com/directory/index.htm
  - invokes Spring to deal with the request
 
 Perhaps this is an issue I can solve within Spring but
 thought I'd try the Tomcat angle first.
 
 This is what I have in my web.xml for Spring -
 
 servlet
 servlet-nameabc/servlet-name
 
 servlet-classorg.springframework.web.servlet.DispatcherServl
 et/servlet-cl
 ass
 load-on-startup1/load-on-startup
 /servlet
 
 servlet-mapping
 servlet-nameabc/servlet-name
 url-pattern*.htm/url-pattern
 /servlet-mapping
 
 
 Thanks,
 
 Andy.
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Tomcat hang everyday

2005-06-29 Thread Rajasekar
Hi,
 I am using tomcat5.0 with java1.5.0.
Every i have to restart the my tomcat, it is working the day full. but when 
i come to office nextday i have to restart. What could be the problem? and 
how can I resolve it. If anyone give me the solutions i would appricate.
 
Rajasekar V.R


Re: Convert URL path from directory/ to directory/index.htm (Spring related)

2005-06-29 Thread Tim Diggins

Hi Andy -

Control of what to handle in tomcat and how to forward is fairly 
limited. (someone posted the relevant parts of the servlet spec)


What I do is have tomcat forward all requests to spring, except for ones 
I really want tomcat's default servlet to handle (static stuff like 
images, css), so I have the following in the web.xml


servlet-mapping
servlet-namedefault/servlet-name
url-pattern*.gif/url-pattern
/servlet-mapping
servlet-mapping
servlet-namedefault/servlet-name
url-pattern*.png/url-pattern
/servlet-mapping
servlet-mapping
servlet-namedefault/servlet-name
url-pattern*.css/url-pattern
/servlet-mapping
servlet-mapping
servlet-namemy_spring_dispatcher/servlet-name
url-pattern//url-pattern
/servlet-mapping

The control you have on url-mapping is much finer in spring - so why not 
do everything you want there... This __does__ mean you have to handle 
404 etc type problems within spring (but again, quite easy to have a 
catch-all handler for these).


I only do the default mappings so spring doesn't need to handle 
obviously static resouces.


hth

Tim

Andy wrote:

Hi,

Is there anyway to get Tomcat to convert a request such as
myserver.com/directory into myserver.com/directory/index.htm.

The reason for this is that in Spring you have to specify a
wild card to match against the URL path in order to invoke
the DispatcherServlet, if this wild card is *.htm then a
requested without index.htm in it results in a 404 from Tomcat.

i.e. myserver.com/directory
 - gives a 404 response
 myserver.com/directory/index.htm
 - invokes Spring to deal with the request

Perhaps this is an issue I can solve within Spring but
thought I'd try the Tomcat angle first.

This is what I have in my web.xml for Spring -

servlet
servlet-nameabc/servlet-name

servlet-classorg.springframework.web.servlet.DispatcherServlet/servlet-cl
ass
load-on-startup1/load-on-startup
/servlet

servlet-mapping
servlet-nameabc/servlet-name
url-pattern*.htm/url-pattern
/servlet-mapping


Thanks,

Andy.






-
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 hang everyday

2005-06-29 Thread Tim Diggins

are you using mysql in your webapp? (timeout on connections)

Rajasekar wrote:

Hi,
 I am using tomcat5.0 with java1.5.0.
Every i have to restart the my tomcat, it is working the day full. but when 
i come to office nextday i have to restart. What could be the problem? and 
how can I resolve it. If anyone give me the solutions i would appricate.
 
Rajasekar V.R





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



Re: Tomcat hang everyday

2005-06-29 Thread david . delbecq
Error message could be usefull for you to get help :)

Le Mercredi 29 Juin 2005 15:13, Rajasekar a écrit :
 Hi,
  I am using tomcat5.0 with java1.5.0.
 Every i have to restart the my tomcat, it is working the day full. but when 
 i come to office nextday i have to restart. What could be the problem? and 
 how can I resolve it. If anyone give me the solutions i would appricate.
  
 Rajasekar V.R
 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



Re: AW: Load all JSP pages on startup

2005-06-29 Thread Geoffrey
We have a custom (non-generated) web.xml, with some taglibs and servlets 
defined in there.



Precompilation is tomcat dependend I suppose?

Our application has to run on JBoss, Tomcat and Resin.
Weblogic and others might be added in the future.

I was hoping there was a simple way in the web deployment descriptor to 
load them all on startup, in a webserver independed way.


Bernhard Slominski wrote:

I don't want to precompile in my build script,



With the precompilation you can do the stuff you need, it automatically
creates the servlet mapping in the web.xml.
The only thing you have to add is the load-on-startup1/load-on-startup
part, but I think you can automate this as well.

So why don't you want precompilation?

Bernhard



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



AW: AW: Load all JSP pages on startup

2005-06-29 Thread Bernhard Slominski
 
 We have a custom (non-generated) web.xml, with some taglibs 
 and servlets defined in there.
 Precompilation is tomcat dependend I suppose?

You're right precompliation is tomcat dependent, but it works like this that
the ant task takes your (non-tomcat dependent) web.xml and just adds the
mappings for the precompiled JSPs, so it would still be possible to use one
single web.xml and then have a jsp server target-dependent precomplitation
task, but I don't know how that works in resin or Weblogic, and I see your
point now.

Sorry, but I don't have a better solution for you!

Bernhard

 
 I was hoping there was a simple way in the web deployment 
 descriptor to 
 load them all on startup, in a webserver independed way.
 

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



RE : AW: Load all JSP pages on startup

2005-06-29 Thread LERBSCHER Jean-Pierre
Hi,
For WebLogic you can use: 
- ANT task (wlappc);
- appc compiler;
- setting the precompile parameter to true in the jsp-descriptor element
of the weblogic.xml deployment descriptor to configure WebLogic Server to
precompile your JSPs when a Web Application is deployed or re-deployed or
when WebLogic Server starts up;

-Message d'origine-
De : Bernhard Slominski [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 29 juin 2005 15:40
À : 'Tomcat Users List'
Objet : AW: AW: Load all JSP pages on startup

 
 We have a custom (non-generated) web.xml, with some taglibs 
 and servlets defined in there.
 Precompilation is tomcat dependend I suppose?

You're right precompliation is tomcat dependent, but it works like this that
the ant task takes your (non-tomcat dependent) web.xml and just adds the
mappings for the precompiled JSPs, so it would still be possible to use one
single web.xml and then have a jsp server target-dependent precomplitation
task, but I don't know how that works in resin or Weblogic, and I see your
point now.

Sorry, but I don't have a better solution for you!

Bernhard

 
 I was hoping there was a simple way in the web deployment 
 descriptor to 
 load them all on startup, in a webserver independed way.
 

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



Boundle in tag library

2005-06-29 Thread Carlos Bracho
Hello.

Can I get boundle values using tag library?

I try with c:out value=${boundle.title}/ but it does not work

-- 
--
Carlos J, Bracho M. 
--
e-mail: [EMAIL PROTECTED]
MSN: [EMAIL PROTECTED]
+58 416 409 21 75 
--


Re: RE : AW: Load all JSP pages on startup

2005-06-29 Thread Geoffrey


- setting the precompile parameter to true in the jsp-descriptor element
of the weblogic.xml deployment descriptor to configure WebLogic Server to
precompile your JSPs when a Web Application is deployed or re-deployed or
when WebLogic Server starts up;


Can I do that on Tomcat too? :)

Tomcat will ignore weblogic.xml and Weblogic will ignore jboss-web.xml,
unlike Tomcat compiled JSP's in weblogic or visa versa.

Thanks for any help,
Geoffrey

LERBSCHER Jean-Pierre wrote:

Hi,
For WebLogic you can use: 
- ANT task (wlappc);

- appc compiler;
- setting the precompile parameter to true in the jsp-descriptor element
of the weblogic.xml deployment descriptor to configure WebLogic Server to
precompile your JSPs when a Web Application is deployed or re-deployed or
when WebLogic Server starts up;

-Message d'origine-
De : Bernhard Slominski [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 29 juin 2005 15:40

À : 'Tomcat Users List'
Objet : AW: AW: Load all JSP pages on startup


We have a custom (non-generated) web.xml, with some taglibs 
and servlets defined in there.

Precompilation is tomcat dependend I suppose?



You're right precompliation is tomcat dependent, but it works like this that
the ant task takes your (non-tomcat dependent) web.xml and just adds the
mappings for the precompiled JSPs, so it would still be possible to use one
single web.xml and then have a jsp server target-dependent precomplitation
task, but I don't know how that works in resin or Weblogic, and I see your
point now.

Sorry, but I don't have a better solution for you!

Bernhard


I was hoping there was a simple way in the web deployment 
descriptor to 
load them all on startup, in a webserver independed way.





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



Norton Antivirus is Blocking Tomcat Service access to Port 5001

2005-06-29 Thread Muriithi O. Kimotho

Hi,

I installed the latest tomcat in my WinXP Pro but my Norton Antivirus 2005 
shuts the Tomcat Service anytime i fire it up then a popup saying a trojan is 
trying to communicate via Port 5001. 

How can i solve this? I cannot start the Tomcat service at all. Norton shuts is 
down after 3secs

-Kim

 



http://www.imediamx.com
Web hosting
Domain Registration
Content Management System
Web Development
Billboards  Catalogue Design


-
Discover Yahoo!
 Have fun online with music videos, cool games, IM  more. Check it out!

RE: Norton Antivirus is Blocking Tomcat Service access to Port 5001

2005-06-29 Thread David
It's probably XP's firewall that is the culprit (I encountered this when
moving from W2K to XP SP2).  You'll need to add Tomcat as an exception in
the Control Panel, Windows Firewall.

-Original Message-
From: Muriithi O. Kimotho [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 29, 2005 7:43 AM
To: Tomcat Users List
Subject: Norton Antivirus is Blocking Tomcat Service access to Port 5001



Hi,

I installed the latest tomcat in my WinXP Pro but my Norton Antivirus 2005
shuts the Tomcat Service anytime i fire it up then a popup saying a trojan
is trying to communicate via Port 5001.

How can i solve this? I cannot start the Tomcat service at all. Norton shuts
is down after 3secs

-Kim





http://www.imediamx.com
Web hosting
Domain Registration
Content Management System
Web Development
Billboards  Catalogue Design


-
Discover Yahoo!
 Have fun online with music videos, cool games, IM  more. Check it out!




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



RE: Norton Antivirus is Blocking Tomcat Service access to Port 5001

2005-06-29 Thread Peter Crowther
 From: Muriithi O. Kimotho [mailto:[EMAIL PROTECTED] 
 I installed the latest tomcat in my WinXP Pro but my Norton 
 Antivirus 2005 shuts the Tomcat Service anytime i fire it up 
 then a popup saying a trojan is trying to communicate via Port 5001. 
 
 How can i solve this? I cannot start the Tomcat service at 
 all. Norton shuts is down after 3secs

1) Run a virus scan.  Is that trojan real?  If not...

2) Uninstall Norton and install a more useful AV?  (No, I'm not kidding
- Norton tends to get poor reviews these days compared to
free-for-personal-use AVs such as AVG).

- Peter

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



AW: AW: Load all JSP pages on startup

2005-06-29 Thread Bernhard Slominski
 
  
  We have a custom (non-generated) web.xml, with some taglibs 
  and servlets defined in there.
  Precompilation is tomcat dependend I suppose?
 
 You're right precompliation is tomcat dependent, but it works 
 like this that
 the ant task takes your (non-tomcat dependent) web.xml and 
 just adds the
 mappings for the precompiled JSPs, so it would still be 
 possible to use one
 single web.xml and then have a jsp server target-dependent 
 precomplitation
 task, but I don't know how that works in resin or Weblogic, 
 and I see your
 point now.

When thinking about it again I assume that the precompiled webapp with
Tomcat should also work in any other JSP container, as long as you have the
Tomcat libraries in your classpath, because in the end your compiled JSPs
are just normal servlets.

Bernhard

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



RE: Norton Antivirus is Blocking Tomcat Service access to Port 5001

2005-06-29 Thread Muriithi O. Kimotho
Funny enough, i have the firewall off but it's still not working. Norton 
reports the error on Port 5100 the Sokets de Trois v1. Trojan

David [EMAIL PROTECTED] wrote:It's probably XP's firewall that is the culprit 
(I encountered this when
moving from W2K to XP SP2). You'll need to add Tomcat as an exception in
the Control Panel, Windows Firewall.

-Original Message-
From: Muriithi O. Kimotho [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 29, 2005 7:43 AM
To: Tomcat Users List
Subject: Norton Antivirus is Blocking Tomcat Service access to Port 5001



Hi,

I installed the latest tomcat in my WinXP Pro but my Norton Antivirus 2005
shuts the Tomcat Service anytime i fire it up then a popup saying a trojan
is trying to communicate via Port 5001.

How can i solve this? I cannot start the Tomcat service at all. Norton shuts
is down after 3secs

-Kim





http://www.imediamx.com
Web hosting
Domain Registration
Content Management System
Web Development
Billboards  Catalogue Design


-
Discover Yahoo!
Have fun online with music videos, cool games, IM  more. Check it out!




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





http://www.imediamx.com
Web hosting
Domain Registration
Content Management System
Web Development
Billboards  Catalogue Design

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: Norton Antivirus is Blocking Tomcat Service access to Port 5001

2005-06-29 Thread Muriithi O. Kimotho
Actually i dont have the trojan Sokets Tres Trojan, it's only reporting that a 
program is trying to communicate via Port 5100 which ofcoz is Tomcat...i just 
bought NAV2005 for 1 year!

Peter Crowther [EMAIL PROTECTED] wrote: From: Muriithi O. Kimotho 
[mailto:[EMAIL PROTECTED] 
 I installed the latest tomcat in my WinXP Pro but my Norton 
 Antivirus 2005 shuts the Tomcat Service anytime i fire it up 
 then a popup saying a trojan is trying to communicate via Port 5001. 
 
 How can i solve this? I cannot start the Tomcat service at 
 all. Norton shuts is down after 3secs

1) Run a virus scan. Is that trojan real? If not...

2) Uninstall Norton and install a more useful AV? (No, I'm not kidding
- Norton tends to get poor reviews these days compared to
free-for-personal-use AVs such as AVG).

- Peter

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





http://www.imediamx.com
Web hosting
Domain Registration
Content Management System
Web Development
Billboards  Catalogue Design

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Wouter Devisch/BE/EUR/Daikin is out of the office.

2005-06-29 Thread devisch . w
I will be out of the office starting  11/05/2005 and will not return until
04/07/2005.

For questions concerning Forecast you can contact Ms. Laurence Hogard and
Mr. Antonio Zurro.

For questions concerning APO (SAP) you can contact Mr. Luc Dendooven.

For other topics or questions you can always contact Mr. Erik Gilte.

I will respond to your message when I return.


Daikin Europe NV
Zandvoordestraat 300
8400 Oostende
Belgium
Tel : (+32) 59 / 55 81 11
Fax : (+32) 59 / 55 88 99
http://www.daikineurope.com

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



RE: Norton Antivirus is Blocking Tomcat Service access to Port 5001

2005-06-29 Thread David
Try turning on the Firewall and adding port 5100 as an exception.  Actually,
I've got the path (C:\Tomcat5\bin\tomcat5.exe) to Tomcat 5.5.9 setup as an
exception.

-Original Message-
From: Muriithi O. Kimotho [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 29, 2005 8:08 AM
To: Tomcat Users List
Subject: RE: Norton Antivirus is Blocking Tomcat Service access to Port
5001


Actually i dont have the trojan Sokets Tres Trojan, it's only reporting that
a program is trying to communicate via Port 5100 which ofcoz is Tomcat...i
just bought NAV2005 for 1 year!

Peter Crowther [EMAIL PROTECTED] wrote: From: Muriithi O.
Kimotho [mailto:[EMAIL PROTECTED]
 I installed the latest tomcat in my WinXP Pro but my Norton
 Antivirus 2005 shuts the Tomcat Service anytime i fire it up
 then a popup saying a trojan is trying to communicate via Port 5001.

 How can i solve this? I cannot start the Tomcat service at
 all. Norton shuts is down after 3secs

1) Run a virus scan. Is that trojan real? If not...

2) Uninstall Norton and install a more useful AV? (No, I'm not kidding
- Norton tends to get poor reviews these days compared to
free-for-personal-use AVs such as AVG).

- Peter

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





http://www.imediamx.com
Web hosting
Domain Registration
Content Management System
Web Development
Billboards  Catalogue Design

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com




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



Re: Convert URL path from directory/ to directory/index.htm (Spring related)

2005-06-29 Thread David Smith

This is also done in Tomcat via welcome-file element in web.xml. Ex.:

welcome-file-list
welcome-fileindex.htm /welcome-file
/welcome-file-list

In servlet spec 2.4 (Tomcat 5.0,5.5), this can map to either a physical 
file or a servlet mapped to that URL. I think in earlier servlet specs, 
it had to be a physical file. SRV.9.10 of the spec has more info.


--David

Allistair Crossley wrote:


Hi,

You'd normally attempt to do this with URL rewriting at the web server side. I 
read that tomcat does not really offer URL rewriting at this time if used as a 
web server, I could be wrong.

For what it's worth, we place index.jsp documents in folders that the user may 
request that do a erquest forward to index.htm which is then picked up by 
Spring. If using IIS you can also specifying default documents like index.htm 
which the web server will try until it gets a bite from Tomcat

All the best, Allistair.

 


-Original Message-
From: Andy [mailto:[EMAIL PROTECTED]
Sent: 29 June 2005 14:18
To: tomcat-user@jakarta.apache.org
Subject: Convert URL path from directory/ to 
directory/index.htm (Spring

related)



Hi,

Is there anyway to get Tomcat to convert a request such as
myserver.com/directory into myserver.com/directory/index.htm.

The reason for this is that in Spring you have to specify a
wild card to match against the URL path in order to invoke
the DispatcherServlet, if this wild card is *.htm then a
requested without index.htm in it results in a 404 from Tomcat.

i.e. myserver.com/directory
- gives a 404 response
myserver.com/directory/index.htm
- invokes Spring to deal with the request

Perhaps this is an issue I can solve within Spring but
thought I'd try the Tomcat angle first.

This is what I have in my web.xml for Spring -

   servlet
   servlet-nameabc/servlet-name

servlet-classorg.springframework.web.servlet.DispatcherServl
et/servlet-cl
ass
   load-on-startup1/load-on-startup
   /servlet

   servlet-mapping
   servlet-nameabc/servlet-name
   url-pattern*.htm/url-pattern
   /servlet-mapping


Thanks,

Andy.






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


   




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---

QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



trimSpaces doesn't work

2005-06-29 Thread Dewitte Rémi
It seems my web.xml isn't correct while i still get empty lines. Is it a known 
problem ? 

Thanks in advance.

Here web.xml is :

web-app
  display-nameQuestionnaire/display-name

  servlet
servlet-namestruts-action/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
load-on-startup2/load-on-startup
  /servlet
  
  servlet
        servlet-namejsp/servlet-name
        servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
        init-param
            param-namemodificationTestInterval/param-name
            param-value30/param-value
        /init-param
init-param
            param-namegenStrAsCharArray/param-name
            param-valuetrue/param-value
        /init-param
init-param
            param-namedevelopment/param-name
            param-valuefalse/param-value
        /init-param
init-param
            param-nametrimSpaces/param-name
            param-valuetrue/param-value
        /init-param
        load-on-startup3/load-on-startup
    /servlet
  !-- Standard Action Servlet Mapping --
  
  servlet-mapping
servlet-namestruts-action/servlet-name
url-pattern*.do/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.jsp/url-pattern
  /servlet-mapping


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



SEVERE: Error listenerStart when starting a context in tomcat 5.0.28

2005-06-29 Thread Joseph Silverman
I get the following error in the catalina.out log when I restart the  
server, but only for SOME of the contexts.  I get the same error when  
using the manager start these contexts..


SEVERE: Error listenerStart

The start fails, of course.

Odd thing is, doing a start on these contexts, twice more,  
typically, will successfully start them!!


This behavior started recently.  I believe it coincided with  
installing jira on the same tomcat, but am not absolutely sure of this.


Any clues??

- Yossie

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



How to upload and Deploy from script?

2005-06-29 Thread Matteo Turra
I would like to automate the deploy process.
There is a method to perform the upload via script like via browser
tomcat manager does?

I read tomcat manager docs and seems that command issue via http in form
of 
http://{host}:{port}/manager/deploy?{parameters}

the war parameters is a path of a war file located in the computer where
the tomcat is running.

How can I write a script (i.e.: wget
http://{host}:{port}/manager/deploy?{parameters}) to upload the war from
remote computer?

Matteo.

_

Matteo TURRA   mail: [EMAIL PROTECTED]
Analisi  sviluppo WEB tel: +39 051 61.11.430

KION Srl   web: www.kion.it
Via Cristoni, 86   tel: +39 051 61.11.411
40033 Casalecchio di Reno (BO) fax: +39 051 57.04.23
ITALIA
_




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



Re: How to upload and Deploy from script?

2005-06-29 Thread Tim Diggins
check out ant (another apache project) and the tomcat tasks for ant 
(catalina-ant).


lots of stuff in google, in jakarta.apache.org and in archives of this 
forum on those!


-- Tim



Matteo Turra wrote:

I would like to automate the deploy process.
There is a method to perform the upload via script like via browser
tomcat manager does?

I read tomcat manager docs and seems that command issue via http in form
of 
http://{host}:{port}/manager/deploy?{parameters}


the war parameters is a path of a war file located in the computer where
the tomcat is running.

How can I write a script (i.e.: wget
http://{host}:{port}/manager/deploy?{parameters}) to upload the war from
remote computer?

Matteo.

_

Matteo TURRA   mail: [EMAIL PROTECTED]
Analisi  sviluppo WEB tel: +39 051 61.11.430

KION Srl   web: www.kion.it
Via Cristoni, 86   tel: +39 051 61.11.411

40033 Casalecchio di Reno (BO) fax: +39 051 57.04.23
ITALIA
_




-
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 : RE : AW: Load all JSP pages on startup

2005-06-29 Thread LERBSCHER Jean-Pierre
I think the simplest way is to write a custom ant task for each deployment
(one for weblogic, another for tomcat et jboss).

-Message d'origine-
De : news [mailto:[EMAIL PROTECTED] De la part de Geoffrey
Envoyé : mercredi 29 juin 2005 16:29
À : tomcat-user@jakarta.apache.org
Objet : Re: RE : AW: Load all JSP pages on startup

 
- setting the precompile parameter to true in the jsp-descriptor element
of the weblogic.xml deployment descriptor to configure WebLogic Server to
precompile your JSPs when a Web Application is deployed or re-deployed or
when WebLogic Server starts up;
 

Can I do that on Tomcat too? :)

Tomcat will ignore weblogic.xml and Weblogic will ignore jboss-web.xml,
unlike Tomcat compiled JSP's in weblogic or visa versa.

Thanks for any help,
Geoffrey

LERBSCHER Jean-Pierre wrote:
 Hi,
 For WebLogic you can use: 
 - ANT task (wlappc);
 - appc compiler;
 - setting the precompile parameter to true in the jsp-descriptor element
 of the weblogic.xml deployment descriptor to configure WebLogic Server to
 precompile your JSPs when a Web Application is deployed or re-deployed or
 when WebLogic Server starts up;
 
 -Message d'origine-
 De : Bernhard Slominski [mailto:[EMAIL PROTECTED] 
 Envoyé : mercredi 29 juin 2005 15:40
 À : 'Tomcat Users List'
 Objet : AW: AW: Load all JSP pages on startup
 
 
We have a custom (non-generated) web.xml, with some taglibs 
and servlets defined in there.
Precompilation is tomcat dependend I suppose?
 
 
 You're right precompliation is tomcat dependent, but it works like this
that
 the ant task takes your (non-tomcat dependent) web.xml and just adds the
 mappings for the precompiled JSPs, so it would still be possible to use
one
 single web.xml and then have a jsp server target-dependent precomplitation
 task, but I don't know how that works in resin or Weblogic, and I see your
 point now.
 
 Sorry, but I don't have a better solution for you!
 
 Bernhard
 
 
I was hoping there was a simple way in the web deployment 
descriptor to 
load them all on startup, in a webserver independed way.

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



disable tomcat in a cluster

2005-06-29 Thread Rogerio Baldini das Neves
Hi 

I need to disable a Tomcat from my cluster without restart my apache..
Is it possible ?

Is there a manager to do this ?

Thanks

Rogerio Baldini


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



Setting BASEDIR in Tomcat 5.0.28

2005-06-29 Thread Dakota Jack
For some reason I cannot get the BASEDIR set right in Tomcat 5.0.28. 
Isn't it supposed to be set to $CATALINA_HOME ?  If not, what?  I am
using OSX.  Thanks for any help.  I am used to working with Win$.

-- 
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~

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



Re: jsp include/RequestDispatcher incompatible?

2005-06-29 Thread George Finklang
So before each request dispatcher call I need to call a flush on the
out in the JspPage?  How do I get access to it?

Do I also need to call flush at the end of each request dispatcher call?

--George

On 6/28/05, Tim Funk [EMAIL PROTECTED] wrote:
 The out from the jspwriter is NOT the same out as receieved by
 response.getWriter();
 
 The out in the JspPage is  buffered.
 
 -Tim
 
 George Finklang wrote:
 
  have the following code in my jsp, which is called by a forward from my
  Controller servlet. The various Dispatchers are either servlets or jsps 
  declared
  in my web.xml.
 
  All the servlets and jsps get run correctly. The problem is the output. The
  output of the root jsp and the 3-4 included jsps are arbitrarily 
  rearranged, see
  below. Bizarre shuffling, not reverse order, but a different order and not
  interleaved with the text from the jsp.
 
  If I translate the jsp into servlet code, and use RequestDispatchers
  for all the components,
  the page works.  The documentation says something about flushing buffers, 
  but I
  can't see how to do this with RequestDispatchers.
 
 
  Code:
 
  BODY
  jsp:include page=WEB-INF/jsps/portal/header.jsp flush=true/
  % if(option1) {
  
  application.getNamedDispatcher(Option1Servlet).include(request,response);
  } else { %
  tabletr
  % if(option2) { %
  td%
 
  application.getNamedDispatcher(Option2Servlet).include(request,response);
  %/td
  %  } %
  td%
 application.getNamedDispatcher(page).include(request,response); 
  %/td
  td%
 
  application.getNamedDispatcher(InfoServlet).include(request,response);
  %/td
  /tr/table
  %  } %
  /BODY
 
 
 
  generated html:
 
  BODY
 
 
  Page text  // from the page dispatcher
 
  Info servlet text   // from the infoservlet dispatcher
 
  Header form text // from the header.jsp dispatcher
 
 
  tabletr
 
  td/td
  td/td
  /tr/table
 
  /BODY
 
  -
  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: jsp include/RequestDispatcher incompatible?

2005-06-29 Thread Tim Funk
Try flush first, otherwise you might need to pass a 
HttpServletResponseWrapper() to include() where the wrapper oversrides 
getOutputStream() (or getWriter()


-Tim

George Finklang wrote:

So before each request dispatcher call I need to call a flush on the
out in the JspPage?  How do I get access to it?

Do I also need to call flush at the end of each request dispatcher call?

--George

On 6/28/05, Tim Funk [EMAIL PROTECTED] wrote:


The out from the jspwriter is NOT the same out as receieved by
response.getWriter();

The out in the JspPage is  buffered.

-Tim

George Finklang wrote:



have the following code in my jsp, which is called by a forward from my
Controller servlet. The various Dispatchers are either servlets or jsps declared
in my web.xml.

All the servlets and jsps get run correctly. The problem is the output. The
output of the root jsp and the 3-4 included jsps are arbitrarily rearranged, see
below. Bizarre shuffling, not reverse order, but a different order and not
interleaved with the text from the jsp.

If I translate the jsp into servlet code, and use RequestDispatchers
for all the components,
the page works.  The documentation says something about flushing buffers, but I
can't see how to do this with RequestDispatchers.


Code:

BODY
jsp:include page=WEB-INF/jsps/portal/header.jsp flush=true/
% if(option1) {
   application.getNamedDispatcher(Option1Servlet).include(request,response);
   } else { %
tabletr
% if(option2) { %
td%

application.getNamedDispatcher(Option2Servlet).include(request,response);
%/td
%  } %
td%
  application.getNamedDispatcher(page).include(request,response); %/td
td%
  application.getNamedDispatcher(InfoServlet).include(request,response);
%/td
/tr/table
%  } %
/BODY



generated html:

BODY


Page text  // from the page dispatcher

Info servlet text   // from the infoservlet dispatcher

Header form text // from the header.jsp dispatcher


tabletr

td/td
td/td
/tr/table

/BODY

-
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: jsp include/RequestDispatcher incompatible?

2005-06-29 Thread George Finklang
Feh.  Easier to just translate the whole jsp into a servlet by hand
which is what I already did.

--George

On 6/29/05, Tim Funk [EMAIL PROTECTED] wrote:
 Try flush first, otherwise you might need to pass a
 HttpServletResponseWrapper() to include() where the wrapper oversrides
 getOutputStream() (or getWriter()
 
 -Tim
 
 George Finklang wrote:
  So before each request dispatcher call I need to call a flush on the
  out in the JspPage?  How do I get access to it?
 
  Do I also need to call flush at the end of each request dispatcher call?
 
  --George
 
  On 6/28/05, Tim Funk [EMAIL PROTECTED] wrote:
 
 The out from the jspwriter is NOT the same out as receieved by
 response.getWriter();
 
 The out in the JspPage is  buffered.
 
 -Tim
 
 George Finklang wrote:
 
 
 have the following code in my jsp, which is called by a forward from my
 Controller servlet. The various Dispatchers are either servlets or jsps 
 declared
 in my web.xml.
 
 All the servlets and jsps get run correctly. The problem is the output. The
 output of the root jsp and the 3-4 included jsps are arbitrarily 
 rearranged, see
 below. Bizarre shuffling, not reverse order, but a different order and not
 interleaved with the text from the jsp.
 
 If I translate the jsp into servlet code, and use RequestDispatchers
 for all the components,
 the page works.  The documentation says something about flushing buffers, 
 but I
 can't see how to do this with RequestDispatchers.
 
 
 Code:
 
 BODY
 jsp:include page=WEB-INF/jsps/portal/header.jsp flush=true/
 % if(option1) {
 
  application.getNamedDispatcher(Option1Servlet).include(request,response);
 } else { %
 tabletr
 % if(option2) { %
 td%
 
 application.getNamedDispatcher(Option2Servlet).include(request,response);
 %/td
 %  } %
 td%
application.getNamedDispatcher(page).include(request,response); 
  %/td
 td%

  application.getNamedDispatcher(InfoServlet).include(request,response);
 %/td
 /tr/table
 %  } %
 /BODY
 
 
 
 generated html:
 
 BODY
 
 
 Page text  // from the page dispatcher
 
 Info servlet text   // from the infoservlet dispatcher
 
 Header form text // from the header.jsp dispatcher
 
 
 tabletr
 
 td/td
 td/td
 /tr/table
 
 /BODY
 
 -
 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]



How to catch and fix this error

2005-06-29 Thread st946tbf


We have a web app running on Tomcat 5.028.  When running at our company, 
it works.  However, it crashes (exits) at client site when access 
certain page (it used to work).  When we ask them to sent us the 
database used and run it at our company, it works fine.


There is an Sql query in this page.  Records are written out to the 
page.  Some records already came down before it crashes.


Please tell me how do I trouble shoot this?  What kind of log can I make? 


This is an urgent problem.  Please help.  Thank you very much for your time.




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



naming of individual Context files

2005-06-29 Thread Paul Singleton

If I store Context elements...

 * in individual files (with a .xml extension) in the
   $CATALINA_HOME/conf/[enginename]/[hostname]/ directory

(to quote the current Server Configuration Reference
docs), do the names of the files (apart from .xml) matter?

Must I have only one Context element per file?

Paul Singleton


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.6/33 - Release Date: 28/Jun/2005


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



how many Manager apps need I configure?

2005-06-29 Thread Paul Singleton

I have two virtual hosts under 5.5.9, on separate IP addresses
and with different SSL certificates, each with just one web app.

The Manager App HOW-TO says:

 If you have Tomcat configured to support multiple virtual hosts
 (websites) you would need to configure a Manager for each.

so I did, but in each manager I can see both web apps.

My server.xml is structured like this:

Server port=8005 ...
  Service name=AAA ...
Connector ...
Engine name=AAA ...
  Host name=aaa.com ...
Context path= ...
Context path=/manager ...
  Service name=BBB ...
Connector ...
Engine name=BBB ...
  Host name=bbb.com ...
Context path= ...
Context path=/manager ...

and each manager lists 4 apps at these paths:

  /
  /aaa
  /bbb
  /manager

where the / path seems to duplicate either aaa or bbb,
but reports different nos of sessions.

Anyway, right now I don't entirely trust what either
manager tells me, I wonder why I need one for each virtual
host, and wonder whether one would be enough, and if so,
how to configure it?

Paul Singleton



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.6/33 - Release Date: 28/Jun/2005


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



Specifying multiple, valid ciphers in standalone tomcat configuration 4.0.29

2005-06-29 Thread Chris Zappala
Hi,
 
I'm trying to specify a list of valid ciphers for a standalone tomcat
instance. I've scoured the FAQs, documentation, and googled until my
eyes bled.
 
I did find references to the RFC, and to the best of my knowledge, I am
specifying the ciphers in compliance with those specifications.
 
I know that the ciphers need to be specified in a comma-separated list.
However, what are the valid ciphers and/or cipher aliases that can be
specified? The configuration below does not appear to work. I'm assuming
this is an issue with the way I'm specifying the ciphers.
 
If someone could provide an example, I'd appreciate it.
 
Here is the relevant excerpt from my server.xml file (arrows point out
cipher attribute).
 
Service name=Tomcat-Standalone
Connector acceptCount=100
className=org.apache.catalina.connector.http.HttpConnector
debug=0 disableUploadTimeout=true enableLookups=true
maxProcessors=75 minProcessors=5 port=443
scheme=https secure=true useURIValidationHack=false
Factory
 
className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false
 
ciphers=ALL,!ADH,!aNULL,!eNULL,!LOW,!EXP,RC4+RSA,+HIGH,+MEDIUM--
--
keystoreFile=somefile
keystorePass=somepassword protocol=TLS/
/Connector

Thanks you kindly for any assistance.

-chris


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



Host Context Configuration

2005-06-29 Thread Chris. Grobmeier

Hello,
its me again. I am trying to configure my tomcat to receive domain.de 
and map it to the correct context.

Apache-Configuration looks OK.

In my Localhost-Engine (is this ok? i guess so) i have a seconde host:

Host   name=domain.de
   appBase=/etc/tomcat4/webapps/domain_webapp
   autoDeploy=true   
   Aliaswww.domain.de/Alias

   Context path= docBase=/etc/tomcat4/webapps/domain_webapp.war /
/Host
.
Problem is, when i type domain.de in my browser, the standard root-app 
of tomcat

appears. It would be nice if you have any suggestions for me.
If have read these documents (thx to colby):
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html

but it seems i haven't got the point yet.

Thanx in advance and have a good n8!
Chris



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



Apache2 and mod_jk2 POST performance problems (GET is fine)

2005-06-29 Thread Joe Kislo
I have run into what I believe is a problem with mod_jk2, or in the part
of tomcat that communicates with mod_jk2.  I am running apache 2.0.53,
and tomcat 5.0.28.  I'm running an ubuntu hoary system, so apache2,
libapachje2-mod-jk2 come out of ubuntu archives.

The problem I'm running into is that performance on a POST request is
abysmal, while GET requests is just fine.  As seen here:

ab -n 1000 http://localhost/tomcat/test
Time taken for tests:   0.300519 seconds
Requests per second:3327.58 [#/sec] (mean)

ab -p testpost -n 1000 http://localhost/tomcat/test
Time taken for tests:   40.340663 seconds
Requests per second:24.79 [#/sec] (mean)

the 'testpost' only has a few characters in it.. so size is not a
factor.

For the record I am actually requesting an invalid URL (tomcat is
returning a 404).  This eliminates the possibility that it was our
application causing the slowdown... infact any request that gets passed
to tomcat5 as a POST suffers this slowdown.

The weird thing is the server is not pegged on CPU, infact, quite the
opposite.  It's practically entirely idle during the 40 seconds of the
testing.  So it's not CPU bound.

If I make the same POST requests directly to Tomcat's HTTP port (EG:
8180), performance is fine.  If I make the POST requests to a URL that
apache does not forward to tomcat, performance is fine.

Here is my workers2.properties:
#[logger]
#level=DEBUG

[config:]
file=/var/lib/apache2/workers2.properties
debug=0
debugEnv=0

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

# Alternate file logger
#[logger.file:0]
#level=DEBUG
#file=${serverRoot}/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with
multiprocess servers
file=/var/lib/apache2/jk2.shm
size=100
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=0
debug=0
# Default Native Logger (apache2 or win32 )
# can be overriden to a file logger, useful
# when tracing win32 related issues
#logger=logger.file:0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009
group=testsite

[status:]
info=Status worker, displays runtime informations


And the snippet from my httpd.conf:
LocationMatch /tomcat/.*
  Allow from 10.0.2.1
  Deny from all
  JkUriSet group testsite
/LocationMatch

This performance hit is significant enough our application will not work
in a suitable fashion in these conditions.  I have scoured the web and
mailing lists for any solutions, and haven't found anything that I can
tweak to try to resolve this issue.  I found lots of documentation on
jk1 for parameters I could tweak, but nothing for jk2.

Ideas?

Thanks,
-Joe



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



help for class not found

2005-06-29 Thread MEHMOOD, QAISER
I have created one web application(reminder) and deployed this on the 

tomcat/webapps with folder name reminder.

 

 

 

 I put all classes under  the reminder/WEB-INF/classes folder , but 

 when I run the jsps and try to access any class, its giving me message 

 No Class Def Found error , plz help me is there any place in tomcat 

 where I can specify the classpath for a context or web application.

 

 

 

 Qaiser Mehmood

 Email : [EMAIL PROTECTED]

 



Re: Setting BASEDIR in Tomcat 5.0.28

2005-06-29 Thread Anoop kumar V
I think the basedir is the path to your webapps folder (excluding the
webapp)- u might want to keep it out of the tomcat installation
directories to improve portability or any other reason!!

Catalina_home is the path to the tomcat installation - In a default
tomcat installation these 2 will be the same...

HTH,
Anoop

On 6/29/05, Dakota Jack [EMAIL PROTECTED] wrote:
 For some reason I cannot get the BASEDIR set right in Tomcat 5.0.28.
 Isn't it supposed to be set to $CATALINA_HOME ?  If not, what?  I am
 using OSX.  Thanks for any help.  I am used to working with Win$.
 
 --
 You can lead a horse to water but you cannot make it float on its back.
 ~Dakota Jack~
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Thanks and best regards,
Anoop

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



Re: How to catch and fix this error

2005-06-29 Thread Anoop kumar V
One suggestion I can give u (one which I / we follow when faced with a
similar situation) is to go to the client site (ot necessarily prod)
to debug it.

If you have used log4j then there are ways u can enable trace logging
in production and catch the problem 

From the looks of it - does ur webapp have to make a connection
outside the local domain (or firewall) to run the queries?

-Anoop


On 6/29/05, st946tbf [EMAIL PROTECTED] wrote:
 
 We have a web app running on Tomcat 5.028.  When running at our company,
 it works.  However, it crashes (exits) at client site when access
 certain page (it used to work).  When we ask them to sent us the
 database used and run it at our company, it works fine.
 
 There is an Sql query in this page.  Records are written out to the
 page.  Some records already came down before it crashes.
 
 Please tell me how do I trouble shoot this?  What kind of log can I make?
 
 This is an urgent problem.  Please help.  Thank you very much for your time.
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Thanks and best regards,
Anoop

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



Re: naming of individual Context files

2005-06-29 Thread Tim Funk

No - the name does not matter.

I haven't tries more than one context decalration in a file. If it would work 
- It doesn't feel like a good idea.


-Tim

Paul Singleton wrote:


If I store Context elements...

 * in individual files (with a .xml extension) in the
   $CATALINA_HOME/conf/[enginename]/[hostname]/ directory

(to quote the current Server Configuration Reference
docs), do the names of the files (apart from .xml) matter?

Must I have only one Context element per file?

Paul Singleton




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



Tomcat 5 and encodeRedirectURL

2005-06-29 Thread Ben
Hi

Is it true that Tomcat will ignore the encoding if the request scheme
and URL protocol are not the same? So if I am currently on http and
would like to redirect to https, Tomcat will not encode the https URL
even though the the servername and the port are the same for both
protocols.

This is the reason why the session object always lost when switching
between http and https and vice versa.

What can I do in my app to maintain the session across protocols?

Thanks,
Ben

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



Re: Host Context Configuration

2005-06-29 Thread Anoop kumar V
what happens if u remove the standard root-app ??

I think tomcat is showing u the index.html and maybe this is in your
domain_webapp.

Also shouldn't the line:
 Context path= docBase=/etc/tomcat4/webapps/domain_webapp.war /
be
Context path= docBase=/etc/tomcat4/webapps/domain_webapp /

Hope that helps,
Anoop

On 6/29/05, Chris. Grobmeier [EMAIL PROTECTED] wrote:
 Hello,
 its me again. I am trying to configure my tomcat to receive domain.de
 and map it to the correct context.
 Apache-Configuration looks OK.
 
 In my Localhost-Engine (is this ok? i guess so) i have a seconde host:
 
 Host   name=domain.de
 appBase=/etc/tomcat4/webapps/domain_webapp
 autoDeploy=true
 Aliaswww.domain.de/Alias
 Context path= docBase=/etc/tomcat4/webapps/domain_webapp.war /
 /Host
 .
 Problem is, when i type domain.de in my browser, the standard root-app
 of tomcat
 appears. It would be nice if you have any suggestions for me.
 If have read these documents (thx to colby):
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html
 
 but it seems i haven't got the point yet.
 
 Thanx in advance and have a good n8!
 Chris
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Thanks and best regards,
Anoop

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



RE: Specifying multiple, valid ciphers in standalone tomcat configuration 4.0.29

2005-06-29 Thread Chris Zappala
I'm going to answer my own question.
 
The cipher attribute is not support in tomcat 4.1.29.
 
Thanks,
-chris



From: Chris Zappala
Sent: Wed 6/29/2005 1:52 PM
To: tomcat-user@jakarta.apache.org
Subject: Specifying multiple, valid ciphers in standalone tomcat configuration 
4.0.29



Hi,

I'm trying to specify a list of valid ciphers for a standalone tomcat
instance. I've scoured the FAQs, documentation, and googled until my
eyes bled.

I did find references to the RFC, and to the best of my knowledge, I am
specifying the ciphers in compliance with those specifications.

I know that the ciphers need to be specified in a comma-separated list.
However, what are the valid ciphers and/or cipher aliases that can be
specified? The configuration below does not appear to work. I'm assuming
this is an issue with the way I'm specifying the ciphers.

If someone could provide an example, I'd appreciate it.

Here is the relevant excerpt from my server.xml file (arrows point out
cipher attribute).

Service name=Tomcat-Standalone
Connector acceptCount=100
className=org.apache.catalina.connector.http.HttpConnector
debug=0 disableUploadTimeout=true enableLookups=true
maxProcessors=75 minProcessors=5 port=443
scheme=https secure=true useURIValidationHack=false
Factory

className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false

ciphers=ALL,!ADH,!aNULL,!eNULL,!LOW,!EXP,RC4+RSA,+HIGH,+MEDIUM--
--
keystoreFile=somefile
keystorePass=somepassword protocol=TLS/
/Connector

Thanks you kindly for any assistance.

-chris





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



Re: AW: Load all JSP pages on startup

2005-06-29 Thread QM
On Wed, Jun 29, 2005 at 04:49:10PM +0200, Bernhard Slominski wrote:
: When thinking about it again I assume that the precompiled webapp with
: Tomcat should also work in any other JSP container, as long as you have the
: Tomcat libraries in your classpath, because in the end your compiled JSPs
: are just normal servlets.

It's even better than that: the webapp itself is portable, without the
Tomcat libraries.  The precompilation process just churns your JSPs into
servlets at build time instead of runtime.

(The container-specific precomps don't involve web.xml mappings for the
generated servlets.  That's why, for example, I can precomp in WebLogic
and but still change my JSP on the fly. Maybe that's what you were
thinking?)

-and it's not as though you'd lose your custom web.xml configuration;
there are ways to fold the generated servlet/mapping sets (from the JSP
precomp) in with your original web.xml at build time.

I don't have such an example readily available... there should be plenty
in the archives, though.

-QM

-- 

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/

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



making clear

2005-06-29 Thread ganesan malairaja

hi guys

i already have apache 2,

java jdk 1.4.2 .. i need to know can i use tomcat version 5.0.x or must have 
version 4..


need to clarify..

thanks alot

htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, CursiveEMSTRONGIMG 
height=16 src=http://graphics.hotmail.com/emarrow_right.gif; 
width=16Ganesan_MalairajaIMG height=16 
src=http://graphics.hotmail.com/emarrow_left.gif; 
width=16/STRONG/EM/FONT/DIV/DIV/html




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



Problem with SSL / JSSE in Tomcat using a PKCS12_truststore_ - a curly one

2005-06-29 Thread Nigel Smith

Hi there,

I'm having trouble with an interesting problem.

I have a keystore and a truststore setup, both as pkcs12 stores. I'm 
telling tomcat about the keystore by something like the following code 
(I actually do it in spring, and so I've translated it into plain java 
code here for simplicity)


connector.setAttribute(keystoreFile, c:\tomcatEmbedded\keystore.p12);
connector.setAttribute(keystorePass, secret);
connector.setAttribute(keystoreType, PKCS12);

and similarly to setup the trust store, I'm doing the following:

connector.setAttribute(truststoreFile, 
c:\tomcatEmbedded\truststore.p12);

connector.setAttribute(truststorePass, secret);
connector.setAttribute(truststoreType, PKCS12);

The problem I have here is that Tomcat (I suspect it's not tomcat, but 
something in J2SE, or the way tomcat uses JSSE, or even the way I've got 
my env setup - I'll explain in a minute) loves the keystore, but is a 
right snob about the truststore. It simply refuses to acknowledge its 
existence.


Actually, I've lied - I have setup a different type of truststore. It's 
a JKS store, and when I use the following code to initialise the 
truststore, things start to work again:


connector.setAttribute(truststoreFile, 
c:\tomcatEmbedded\truststore.jks);

connector.setAttribute(truststorePass, changeit);
connector.setAttribute(truststoreType, JKS);

they key point here is that intitialising the truststore as a PKCS12 
store simply does not work.


Some more information: if I set a system property as such: 
-Djavax.net.debug=all, I can actually see the trusted certificates being 
loaded up as tomcat starts up. I mean, I can see all the certs in the 
trust store being loaded up when it's a JKS store. When its a PKCS12 
store, it ignores them. Very rude.


Further, if I set the trust store through the javax.net.ssl.trustStore* 
properties (JKS or PKCS12), things go a bit wrong with a message like 
java.io.IOException: DerInputStream.getLength(): length Tag=109  - I 
don't know what the hell this means, but from what I have been able to 
glean from a bit of googling, this happens because of the Tomcat 
classloader hierarchy - I think. Which is probably why we have the 
setAttribute() method on the connector.


I'm initerested in knowing if anyone has had a similar problem / 
experience, and knows of any way I can use a PKCS12 store as a trust store.


I'm using Java 1.5.0_03, Tomcat 5.5.9 embedded.

Many thanks,
Nigel

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