RE: Force One page to not use SSL

2002-10-30 Thread Ralph Einfeldt
I've once posted a skeleton to do that:

> One option for you to work around this, would be 
> (roughly) something like this:

> - Create a hashtable that is global to the webapp.
> - Create a hashtable for each session
> - Store the session hashtable in the application 
>   Hashtable and use the session id as key
> - if (session.isNew() && ( != null))
>   get the session hashtable by using the RequestedSessionId
>   and store it with the new SessionId as key.
> - otherwise get the session hashtable by using the 
>   current session id.
> - Store your session variables in the session hashtable
> - make shure to remove every thing from the application
>   hashtable whenever a session gets destroyed.

> -Original Message-
> From: Rustad, Aaron [mailto:ARustad@;Online-can.com]
> Sent: Wednesday, October 30, 2002 1:55 AM
> To: 'Tomcat Users List'
> Subject: RE: Force One page to not use SSL
> 
> All I am asking is...does anyone know how to persist a 
> session from HTTPs to HTTP. Any potential solutions are
> GREATLY appreciate...any other suggestions
> (even though they might be well-meaning) are discouraged.
> 

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




Re: Profiling with tomcat

2002-10-30 Thread Steinar Bang
> Graham King <[EMAIL PROTECTED]>:

> I found a combination of -Xrunhprof (see 'java -Xrunhprof:help') and
> HPjmeter (free tool from HP for visualising the output of hprof. See
> http://www.hp.com/products1/unix/java/hpjmeter/index.html)

Is this program available for free download?  I was unable to
determine from the web pages whether it was a freely downloadable
program, or whether it was a commercial product.



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




RE: Profiling with tomcat

2002-10-30 Thread Ralph Einfeldt
Have a look at 
http://www.hp.com/products1/unix/java/hpjmeter/downloads/license_hpjmeter_1-5.html

(It's just 2 clicks from the start page)

> -Original Message-
> From: Steinar Bang [mailto:sb@;dod.no]
> Sent: Wednesday, October 30, 2002 9:10 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Profiling with tomcat
> 
> Is this program available for free download?  I was unable to
> determine from the web pages whether it was a freely downloadable
> program, or whether it was a commercial product.
> 

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




RE: Session start

2002-10-30 Thread Ralph Einfeldt
It's quite simple.

Whenever a request reaches tomcat that contains no
session id (url or cookie) or a session id that
doesn't belongs to a active session, tomcat creates
a new session.

To do what you want you have to disable cookies
in tomcat. This way you will get a new session
whenever a new window is opened and the url that 
is used for the window contains no session id.

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

> -Original Message-
> From: Mauro Daniel Ardolino [mailto:mauro@;altersoft.com.ar]
> Sent: Tuesday, October 29, 2002 5:13 PM
> To: [EMAIL PROTECTED]
> Subject: Session start
> 
> I'm confussed about when does a session starts.
> 
> Browsing with netscape on a linux gui, opening 2 browsers, 
> calling the same servlet, the session is shared.  I want 
> to start a new  session! I mean every time a user opens a 
> new browser or a new window of the browser and calls my 
> servlet, I want to start a new session.

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




RE: DBCP Woes! Ahaa!

2002-10-30 Thread neal
Thanks for all the info.  Yeah, I'm using 4.0.4 so I guess that resources
link won't work. Too bad.  I will take a look at the default context though.
That sounds like it fits my scenario perfectly.

Thanks!

Neal


-Original Message-
From: Craig R. McClanahan [mailto:craigmcc@;apache.org]
Sent: Tuesday, October 29, 2002 10:16 PM
To: Tomcat Users List
Subject: RE: DBCP Woes! Ahaa!




On Tue, 29 Oct 2002, neal wrote:

> Date: Tue, 29 Oct 2002 18:48:20 -0800
> From: neal <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: DBCP Woes! Ahaa!
>
> AHAAA!
>
> I figured it out ... well ... sort of.
>
> My primary content is www.hotel.us.  But, I also configured hotel.us,
> hotel.us.com, etc to all point to www.hotel.us.  It turns out that the
times
> I was getting the JDBC not bound to Context error, were the times I was
> going to the alternat domains, not www.hotel.us!
>
> Ok, so that is the issue!  Pheew!  BUT, here's another question.  Must I
> configure DBCP in every single one of those other hosts?  I was hoping I
> could jsut switch crossContext=true on the Context containing the correct
> setup.

The crossContext attribute has nothing at all to do with JNDI resources --
it only determines whether the ServletContext.getContext() method will
unconditionally return null or not.  See the documentation (hyperlink
listed below) for more details.

JNDI resources for each  must be configured individually.  If you
are using Tomcat 4.1, there is a mechanism to share the physical resources
themselves (such as a JDBC data source) by defining the resources in the
 section at the top of server.xml, and then using a
 element nested inside each  element that links to
it (analogous to a symbolic link in a filesystem).

> Perhaps for this to work the contexts must all be nested within the
> same host? But to have different urls resolve the only way I know to do
it,
> is via a seperate host node, per domain:
>
>   
>   
>   
>
> Any thoughts?
>

Are all (or most) of the domain names supposed to resolve to the exact
same set of webapps?  If so, you're probably best off using the
"defaulthost"  capability of the  element:



...


...



In this scenario, any request received by this Tomcat instance, for any
unrecognized host name will be forwarded to the hotel.us domain.  You can
explicitly list the separate hosts that should not be shared, as
illustrated with the "other.com" entry above.

For more info about all of the server.xml options, see the docs included
in the standard Tomcat distribution at:

  http://localhost:8080/tomcat-docs/config/

or online:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/


> Thanks everyone for your help
>
> Neal

Craig


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: tc4.1.12 and Apache2.0.43 mod_jk Root Context not appearing in mod_jk.conf

2002-10-30 Thread Robert L Sowders
Oops, cat short_term_memory | /dev/null 

I'm glad I could help you at least once then,

It's been awhile since I've been down with JK mind you, been tracking JK2 
while others here have maintained JK systems. 

If you know the correct syntax for your jkmounts and such and make your 
own edits to server.xml, there really is no reason to use the generated 
mod_jk.conf.  A judicious use of Apache DocumentRoot and webapp 
co-mingling, together with JkAutoAlias, sprinkled with a dash of auto 
generated mod_jk.conf can lead to allot less configuration for admins. 
Especially on sites with a lot of virtual hosts. 

I guess the difference is the same as cmd line unix and windows gui.  I've 
often wondered why windows users put up with having to click thru 15 
different windows to get to a button that changes one line in a file they 
just as easily could have directly edited.

For single user installations, it's not really needed, but it's cool 
none-the-less.

I believe if you make your own contexts in server.xml outside of the ROOT 
then your auto generated mod_jk.conf will contain the new Jkmounts.

I'll send you a txt file off list that details a web hosting setup that 
makes it easy without auto generated mod_jk.conf.

rls
 





"Bill Barker" <[EMAIL PROTECTED]>
Sent by: news <[EMAIL PROTECTED]>
10/29/2002 11:07 PM
Please respond to "Tomcat Users List"

 
To: [EMAIL PROTECTED]
cc: 
Subject:Re: tc4.1.12 and Apache2.0.43 mod_jk Root Context not 
appearing in 
mod_jk.conf


You also need to set the noRoot="false" attribute in the Listener.  It
defaults to "true", since otherwise (if the default forwardAll="true"), 
all
requests get sent to Tomcat.

"Tref Gare" <[EMAIL PROTECTED]> wrote in message
news:D9E0834F4E6DA84C8F8F421EDA28E84106A63F@;proxy.areeba.com.au...
Thanks Robert,

You actually helped me out last week with the same howto.. however in
this case we're a step past that.  I've got the listeners set up as per
the howto and they're doing fine when it comes to setting up the
examples context, however they don't seem to want to have anything to do
with the root context.

I was wondering briefly if this has something to do with the invoker
servlet (disabled by default in tomcat 4.1.12) but I'm only trying to
reach .jsp's at the moment not /servlet/MyServlet etc.

On the topic can you enlighten me at all as to what's the advantage
(aside from ease of use) of using the auto generated files as compared
to manually created ones (ie: taking the params in mod_jk.conf and
copying/tweaking them in httpd.conf direct).  I'm going to have some non
vanilla mappings (*.form for example) that I imagine might not be able
to be configured via the auto generated file.


Tref

--
Tref Gare
Development Consultant
Areeba
Level 19/114 William St, Melbourne VIC 3000
email: [EMAIL PROTECTED]
phone: +61 3 9642 5553
fax: +61 3 9642 1335
website: http://www.areeba.com.au
--
"This email is intended only for the use of the individual or entity
named above and contains information that is confidential. No
confidentiality is waived or lost by any mis-transmission. If you
received this correspondence in error, please notify the sender and
immediately delete it from your system. You must not disclose, copy or
rely on any part of this correspondence if you are not the intended
recipient. Any communication directed to clients via this message is
subject to our Agreement and relevant Project Schedule. Any information
that is transmitted via email which may offend may have been sent
without knowledge or the consent of Areeba."
--

-Original Message-
From: Robert L Sowders [mailto:rsowders@;usgs.gov]
Sent: Tuesday, 29 October 2002 7:52 PM
Subject: Re: tc4.1.12 and Apache2.0.43 mod_jk Root Context not appearing
in mod_jk.conf

You will need to setup a listener in server.xml and then the Include in
your httpd.conf will be something like "Include
/usr/local/tomcat/conf/auto/mod_jk.conf"

Here is a How To that I refer to from time to time.

http://www.johnturner.com/howto/apache2-tomcat4110-jk-howto.html

The part you want is at step 3.

rls





"Tref Gare" <[EMAIL PROTECTED]>
10/28/2002 07:39 PM
Please respond to "Tomcat Users List"


To: "Tomcat Users List" <[EMAIL PROTECTED]>
cc:
Subject:tc4.1.12 and Apache2.0.43 mod_jk Root Context
not appearing in mod_jk.conf


Hi All,

Any help much appreciated.

We've got a tomcat 4.1.12 and Apache 2.0.43 connected up using mod_jk
and I'm having grief getting the root context to register in
mod_jk.conf.

I had thought that any contexts defined in Tomcat would be automatically
setup in mod_jk.conf, is there a secret I'm unaware of?

I've got both docBase and appBase settings set to the same location
which is also the root context. Eg:

Tomcat thinks it's docBase is /WWW/MySi

AW: apache/tomcat multiple hosts

2002-10-30 Thread Dieter Kaltenbach
Hi,
i guess you need a second tomcat host within the same engine container according to 
your apache virtual host. Something like:









Hope it helps.

-Ursprüngliche Nachricht-
Von: tamsin [mailto:tamsin@;anorakgirl.co.uk]
Gesendet: Dienstag, 29. Oktober 2002 17:39
An: [EMAIL PROTECTED]
Betreff: apache/tomcat multiple hosts


hi,
i'm using apache, tomcat 4.1 and mod_jk
i have apache configured:


ServerName www.foo.com
DocumentRoot /home/foo
JkMount /servlet/* worker1


and in server.xml:

 


this all works fine. however, i want to serve a copy of the foo site from
demo.foo.com

i.e. i want to add something like:

ServerName demo.foo.com
DocumentRoot /home/foodemo
JkMount /servlet/* worker1



but i'm not sure how to configure tomcat for the second context? thanks for
any help,
tamsin



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


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




RE: DBCP Woes! Ahaa!

2002-10-30 Thread neal
One last question on the topic:

If I configure the conn pooling resources indepdently for 5 different Hosts,
when I set the maxActive parameter, will this be the maxActive connections
*per* Host, or total?  If I set the maxActive to 10 for 5 websites,have am I
effectively allocating 50 connections?

Thanks
Neal


-Original Message-
From: Craig R. McClanahan [mailto:craigmcc@;apache.org]
Sent: Tuesday, October 29, 2002 10:16 PM
To: Tomcat Users List
Subject: RE: DBCP Woes! Ahaa!




On Tue, 29 Oct 2002, neal wrote:

> Date: Tue, 29 Oct 2002 18:48:20 -0800
> From: neal <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: DBCP Woes! Ahaa!
>
> AHAAA!
>
> I figured it out ... well ... sort of.
>
> My primary content is www.hotel.us.  But, I also configured hotel.us,
> hotel.us.com, etc to all point to www.hotel.us.  It turns out that the
times
> I was getting the JDBC not bound to Context error, were the times I was
> going to the alternat domains, not www.hotel.us!
>
> Ok, so that is the issue!  Pheew!  BUT, here's another question.  Must I
> configure DBCP in every single one of those other hosts?  I was hoping I
> could jsut switch crossContext=true on the Context containing the correct
> setup.

The crossContext attribute has nothing at all to do with JNDI resources --
it only determines whether the ServletContext.getContext() method will
unconditionally return null or not.  See the documentation (hyperlink
listed below) for more details.

JNDI resources for each  must be configured individually.  If you
are using Tomcat 4.1, there is a mechanism to share the physical resources
themselves (such as a JDBC data source) by defining the resources in the
 section at the top of server.xml, and then using a
 element nested inside each  element that links to
it (analogous to a symbolic link in a filesystem).

> Perhaps for this to work the contexts must all be nested within the
> same host? But to have different urls resolve the only way I know to do
it,
> is via a seperate host node, per domain:
>
>   
>   
>   
>
> Any thoughts?
>

Are all (or most) of the domain names supposed to resolve to the exact
same set of webapps?  If so, you're probably best off using the
"defaulthost"  capability of the  element:



...


...



In this scenario, any request received by this Tomcat instance, for any
unrecognized host name will be forwarded to the hotel.us domain.  You can
explicitly list the separate hosts that should not be shared, as
illustrated with the "other.com" entry above.

For more info about all of the server.xml options, see the docs included
in the standard Tomcat distribution at:

  http://localhost:8080/tomcat-docs/config/

or online:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/


> Thanks everyone for your help
>
> Neal

Craig


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Tomcat standalone - traffic logs???

2002-10-30 Thread neal
I'm using Tomcat Standalone and I would like to be able to process my logs
to determine traffic trends on my site. I have webalizer and can use it to
parse the logs.

The problem though, is that I was looking at the logs being generated form
tomcat and these logs don't seem to have any traffic info in them.  The have
info such as what happened when the server started, etc ... but I'm not
seeing each page request being logged.  And, I'm not seeing IP addresses
(which I presume is needed to determine unique users) being logged.

Anyone know how to setup tomcat standalone logs to provide the information,
and to do so cleanly so that the info can be consumer by Webalizer?

Thanks!
Neal


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




RE: Tomcat standalone - traffic logs???

2002-10-30 Thread Reynir Hübner
Just have the following in the context of your webapp  (in server.xml)
: 
 
Hope it helps
-reynir


> -Original Message-
> From: neal [mailto:nealcabage@;yahoo.com] 
> Sent: 30. október 2002 11:15
> To: Tomcat Users List
> Subject: Tomcat standalone - traffic logs???
> 
> 
> I'm using Tomcat Standalone and I would like to be able to 
> process my logs to determine traffic trends on my site. I 
> have webalizer and can use it to parse the logs.
> 
> The problem though, is that I was looking at the logs being 
> generated form tomcat and these logs don't seem to have any 
> traffic info in them.  The have info such as what happened 
> when the server started, etc ... but I'm not seeing each page 
> request being logged.  And, I'm not seeing IP addresses 
> (which I presume is needed to determine unique users) being logged.
> 
> Anyone know how to setup tomcat standalone logs to provide 
> the information, and to do so cleanly so that the info can be 
> consumer by Webalizer?
> 
> Thanks!
> Neal
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

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




Re: Tomcat standalone - traffic logs???

2002-10-30 Thread Luc Santeramo
At 03:14 30/10/2002  -0800, you wrote:

I'm using Tomcat Standalone and I would like to be able to process my logs
to determine traffic trends on my site. I have webalizer and can use it to
parse the logs.

The problem though, is that I was looking at the logs being generated form
tomcat and these logs don't seem to have any traffic info in them.  The have
info such as what happened when the server started, etc ... but I'm not
seeing each page request being logged.  And, I'm not seeing IP addresses
(which I presume is needed to determine unique users) being logged.

Anyone know how to setup tomcat standalone logs to provide the information,
and to do so cleanly so that the info can be consumer by Webalizer?


Hi

have a look to $CATALINA_HOME/logs/localhost_access_log.-MM-DD.txt

check your server.xml file for

 
 directory="logs"  prefix="localhost_access_log." 
suffix=".txt"
 pattern="common"/>

maybe you'll have to change the pattern to "combined"...

Luc




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



ques : tomcat4, cgi & window 2k server

2002-10-30 Thread tk g
hi all,
i've tried to run cgi in tomcat 4.1.2.  i've changed the web.xml - uncomment the cgi part & rename the cgi to jar file.  unfortunately when i type:
http://localhost:8080/cgi-bin/index.cgi i get error 500 exception report.  attached are the error msg & web.xml & server.xml.
my environment: win2k server, j2sdk1.4.1,tomcat 4.1.2
pls help.  Thanks in advance for your assistance.
rgds
tk
 Do you Yahoo!?
HotJobs - Search new jobs daily now







  
  
  

  
  








  
factory
org.apache.catalina.users.MemoryUserDatabaseFactory
  
  
pathname
conf/tomcat-users.xml
  


  

  

  
  































  
  

  
  

  

  
  

  
  

  

  

  ntserver:1521:ORCL"
 connectionName="scott" connectionPassword="tiger"
  userTable="users" userNameCol="user_name" userCredCol="user_pass"
  userRoleTable="user_roles" roleNameCol="role_name" />
  -->

  

  
  

















  
  

  



  
		  
  
  
  
  
usernamesa
password
driverClassName
  org.hsql.jdbcDriver
url
  jdbc:HypersonicSQL:database
  
  
  

  mail.smtp.host
  localhost

  
  


  



  

  

  





http://java.sun.com/dtd/web-app_2_3.dtd";>


  
  
  
  
  
  
  
  
  


  


  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  


default

  org.apache.catalina.servlets.DefaultServlet


debug
0


listings
true

1



  
  
  
  
  
  
  
  
  
  
  
  


invoker

  org.apache.catalina.servlets.InvokerServlet


debug
0

2



  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  


jsp
org.apache.jasper.servlet.JspServlet

logVerbosityLevel
WARNING

3



  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  




  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  


cgi
org.apache.catalina.servlets.CGIServlet

  clientInputTimeout
  100


  debug
  6


  cgiPathPrefix
  WEB-INF/cgi

 5



  


  
  
  
  



default
/







jsp
*.jsp







cgi
/cgi-bin/*



  
  
  


30



  
  
  
  
  
  


abs
audio/x-mpeg


ai
application/postscript


aif
audio/x-aiff


aifc
audio/x-aiff


aiff
audio/x-aiff


aim
application/x-aim


art
image/x-jg


asf
video/x-ms-asf


asx
video/x-ms-asf


au
audio/basic


avi
video/x-msvideo


avx
video/x-rad-screenplay


bcpio
application/x-bcpio


bin
application/octet-stream


bmp
image/bmp


body
text/html


cdf
application/x-cdf


cer
application/x-x509-ca-cert


class
application/java


cpio
application/x-cpio


csh
application/x-csh


css
text/css


dib
image/bmp


doc
application/msword


dtd
text/plain


dv
video/x-dv


dvi
application/x-dvi


eps
application/postscript


etx
text/x-setext


exe
application/octet-stream


gif
image/gif


gtar
application/x-gtar


gz
application/x-gzip


hdf
application/x-hdf


hqx
application/mac-binhex40


htc
text/x-component


htm
text/html


html
text/html


hqx
application/mac-binhex40

   

Advanced / multiple worker configuration

2002-10-30 Thread Samuel Rochas
Hi there,

I am running tomcat 4 with IIS just fine.
Since we are hosting different java applications on the same server, we 
have trouble using the default configuration with only the ajp13 worker. 
If one application make the java process to crash, all sites crash :-(

I would like to define 1 worker for each application on the server.
How can I do this? Where can I find some manual since what I got from 
the tomcat page did not help? Is that a good way to solve my problem?

Thanx in advance

Sincerly
Samuel


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



ques: Tomcat Apache 4.0.6 v 4.1.12

2002-10-30 Thread Dodd, Andrew
Greetings, my first posting to the site hopefully I can find some answers,

I'm currently using a MVC based framework that uses JSP's as the
presentation Medium. This was written and originally ran under Tomcat/Apache
3.3.

The application will run correctly under 3.3 and also 4.0.6 but fails to
work correctly under 4.1.12. The main problem is that the generic composite
view framework from the Advanced JSP book does not function correctly under
4.1.12 in my application.

>From looking at the differences between the 4.0.6 and the 4.1.12 all I can
see that 4.0.6 supports web applications built for the Servlet 2.2 and JSP
1.1 Spec but does 4.1.12.

Is it true that 4.1.12 will also support web applications written for
Servlet 2.2 and JSP 1.1 Spec as well as Servlet 2.3 and JSP 1.2 Spec.

I'm slightly confused as to why the same web application would work under
4.0.6 and not under 4.1.12 as both use the new Catalina container ?

Can anyone help ?

rgs

   Andrew Dodd



" This message contains information that may be privileged or confidential and 
is the property of the Cap Gemini Ernst & Young Group. It is intended only for 
the person to whom it is addressed. If you are not the intended recipient, you 
are not authorized to read, print, retain, copy, disseminate, distribute, or use 
this message or any part thereof. If you receive this message in error, please 
notify the sender immediately and delete all copies of this message ".



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




RE: apache/tomcat multiple hosts

2002-10-30 Thread tamsin
thanks, that did exactly what i wanted!
tamsin

-Original Message-
From: Dieter Kaltenbach [mailto:Dieter.Kaltenbach@;unitedplanet.de]
Sent: 30 October 2002 09:19
To: Tomcat Users List
Subject: AW: apache/tomcat multiple hosts


Hi,
i guess you need a second tomcat host within the same engine container
according to your apache virtual host. Something like:









Hope it helps.

-Ursprüngliche Nachricht-
Von: tamsin [mailto:tamsin@;anorakgirl.co.uk]
Gesendet: Dienstag, 29. Oktober 2002 17:39
An: [EMAIL PROTECTED]
Betreff: apache/tomcat multiple hosts


hi,
i'm using apache, tomcat 4.1 and mod_jk
i have apache configured:


ServerName www.foo.com
DocumentRoot /home/foo
JkMount /servlet/* worker1


and in server.xml:

 


this all works fine. however, i want to serve a copy of the foo site from
demo.foo.com

i.e. i want to add something like:

ServerName demo.foo.com
DocumentRoot /home/foodemo
JkMount /servlet/* worker1



but i'm not sure how to configure tomcat for the second context? thanks for
any help,
tamsin



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.408 / Virus Database: 230 - Release Date: 24/10/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.408 / Virus Database: 230 - Release Date: 24/10/2002


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




Tomcat Xerces Issue.

2002-10-30 Thread Saurabh Arora
I have been looking at the webClassLoader Code. I realised that the Classloader 
doesnot allow the Xerces lib to be loaded from the WEB-INB/lib . 

 It prevents the same be filtering the org.apache.xerces package.

It means the documentation that , Application can use specific version of Xerces.jar 
in the ClassLoader HOWTO is wrong.

 Why are we forcing users to use only the common\lib \ xerces implementations. 


Saurabh arora




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




Re: Tomcat Xerces Issue.

2002-10-30 Thread Saurabh Arora
Just to add to previous posting , i was looking at source code for v4.1.12 release 
Build

>>> [EMAIL PROTECTED] 10/30/02 04:54PM >>>
I have been looking at the webClassLoader Code. I realised that the Classloader 
doesnot allow the Xerces lib to be loaded from the WEB-INB/lib . 

 It prevents the same be filtering the org.apache.xerces package.

It means the documentation that , Application can use specific version of Xerces.jar 
in the ClassLoader HOWTO is wrong.

 Why are we forcing users to use only the common\lib \ xerces implementations. 


Saurabh arora




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



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




RE: Tomcat standalone - traffic logs???

2002-10-30 Thread neal
Excellent!  Thanks!

:)



-Original Message-
From: Luc Santeramo [mailto:luc.santeramo@;univ-avignon.fr]
Sent: Wednesday, October 30, 2002 2:22 AM
To: Tomcat Users List
Subject: Re: Tomcat standalone - traffic logs???


At 03:14 30/10/2002  -0800, you wrote:
>I'm using Tomcat Standalone and I would like to be able to process my logs
>to determine traffic trends on my site. I have webalizer and can use it to
>parse the logs.
>
>The problem though, is that I was looking at the logs being generated form
>tomcat and these logs don't seem to have any traffic info in them.  The
have
>info such as what happened when the server started, etc ... but I'm not
>seeing each page request being logged.  And, I'm not seeing IP addresses
>(which I presume is needed to determine unique users) being logged.
>
>Anyone know how to setup tomcat standalone logs to provide the information,
>and to do so cleanly so that the info can be consumer by Webalizer?

Hi

have a look to $CATALINA_HOME/logs/localhost_access_log.-MM-DD.txt

check your server.xml file for

  

maybe you'll have to change the pattern to "combined"...

Luc




--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Tomcat standalone - traffic logs???

2002-10-30 Thread omar . pinheiro
I have installed sucessfully the Tomcat 4.0.6 conector working with 
Microsoft IIS 5.0 using the isapi DLL. Now we want to use SSL to make 
secure connnections. We have already made the request to the CA and today 
we will install the certificate on IIS. Anyone knows if this will run 
correctly ? 

Thanks,
 

Omar Pinheiro.


Connecting to mysql - Server configuration denies access to data source

2002-10-30 Thread Kevin Passey
Has anybody seen this.

I've set the mysql tables correctly.

Can anybody shed any light on this.

Thanks

Kevin Passey
KDP Software Limited
Tel: 01273 712830
Fax: 08700 510103
mailto:kpassey@;kdpsoftware.co.uk
http://www.kdpsoftware.co.uk

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




Tomcat 4.0.6 + SSL + IIS 5.0

2002-10-30 Thread omar . pinheiro
Sorry, the subject was off-topic:

I have installed sucessfully the Tomcat 4.0.6 conector working with 
Microsoft IIS 5.0 using the isapi DLL. Now we want to use SSL to make 
secure connnections. We have already made the request to the CA and today 
we will install the certificate on IIS. Anyone knows if this will run 
correctly ? 

Thanks,
 

Omar Pinheiro.




Re: Tomcat standalone - traffic logs???

2002-10-30 Thread Tim Funk
Performance tip - keep  resolveHosts="false".

Otherwise your server will attempt to resolve all incoming addresses to 
their hostname. But on an intranet - this might not be much of an issue.

-Tim

Reynir Hübner wrote:
Just have the following in the context of your webapp  (in server.xml)
: 
 
Hope it helps
-reynir



-Original Message-
From: neal [mailto:nealcabage@;yahoo.com] 
Sent: 30. október 2002 11:15
To: Tomcat Users List
Subject: Tomcat standalone - traffic logs???


I'm using Tomcat Standalone and I would like to be able to 
process my logs to determine traffic trends on my site. I 
have webalizer and can use it to parse the logs.

The problem though, is that I was looking at the logs being 
generated form tomcat and these logs don't seem to have any 
traffic info in them.  The have info such as what happened 
when the server started, etc ... but I'm not seeing each page 
request being logged.  And, I'm not seeing IP addresses 
(which I presume is needed to determine unique users) being logged.

Anyone know how to setup tomcat standalone logs to provide 
the information, and to do so cleanly so that the info can be 
consumer by Webalizer?

Thanks!
Neal


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



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






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




tomcat speed

2002-10-30 Thread Sandeep Murphy
hi all,

I have been using Tomcat for more than a year now...however 2 things hv always bugged 
me and decided its time to get them solved..

1. The Tomcat 4 normally used to boot up/start up in under 30 seconds but sometimes 
takes as much 6-8 mins to start up and run !!! Why does this happen and is there any 
way to solve it??

do i need to chk anything??

2. As u can c below this indicates that the tomcat service has started up and 
running.. but why does it appear 2 times on the tomcat console ??? any particular 
reason??

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1

thnx for any suggestions..

cheers,
sands

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




Re: tomcat speed

2002-10-30 Thread Mr. Cristian Romanescu
seems very strange, because I never have to wait so much for Tomcat to 
start...

1. Of course you could read docs and fine-tune the server.xml to your 
needs, i.e. removing uneeded connectors, realms (correct ?) that you 
don't normally need for your app.

2.Get a better processor ;)

Regards,
Cristian

Sandeep Murphy wrote:

hi all,

I have been using Tomcat for more than a year now...however 2 things 
hv always bugged me and decided its time to get them solved..

1. The Tomcat 4 normally used to boot up/start up in under 30 seconds 
but sometimes takes as much 6-8 mins to start up and run !!! Why does 
this happen and is there any way to solve it??

do i need to chk anything??

2. As u can c below this indicates that the tomcat service has started 
up and running.. but why does it appear 2 times on the tomcat console 
??? any particular reason??

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1

thnx for any suggestions..

cheers,
sands

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



--
Cristian D. Romanescu
alternative: cristian at qdrei.de
mobile : +40745133096

--- "Pauca sed matura" - Gauss' motto ---


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




Re: Profiling with tomcat

2002-10-30 Thread Steinar Bang
> "Ralph Einfeldt" <[EMAIL PROTECTED]>:

>> From: Steinar Bang [mailto:sb@;dod.no]

>> Is this program available for free download?  I was unable to
>> determine from the web pages whether it was a freely downloadable
>> program, or whether it was a commercial product.

> Have a look at 
> http://www.hp.com/products1/unix/java/hpjmeter/downloads/license_hpjmeter_1-5.html

I've seen it.

But it contradicts with the information that's displayed during
download, ie. the 90 day's warranty statement, that looks like it's
meant for a commercial product.

I kept looking for where they would be asking me for my credit card
number.




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




RE: tomcat speed

2002-10-30 Thread Sandeep Murphy
hi,

the server.xml looks fine... will chk it out again slowly...(wud also appreciate more 
suggestion..:))

well, hv a P IV with 256 mb ram.. shud be sufficient i guess!!

but is there any explanation for the message appearing twice or is it normal???

thnx

-Original Message-
From: Mr. Cristian Romanescu [mailto:c.romanescu@;finsiel.ro]
Sent: quarta-feira, 30 de Outubro de 2002 12:19
To: Tomcat Users List
Subject: Re: tomcat speed


seems very strange, because I never have to wait so much for Tomcat to 
start...

1. Of course you could read docs and fine-tune the server.xml to your 
needs, i.e. removing uneeded connectors, realms (correct ?) that you 
don't normally need for your app.

2.Get a better processor ;)

Regards,
Cristian

Sandeep Murphy wrote:

> hi all,
>
> I have been using Tomcat for more than a year now...however 2 things 
> hv always bugged me and decided its time to get them solved..
>
> 1. The Tomcat 4 normally used to boot up/start up in under 30 seconds 
> but sometimes takes as much 6-8 mins to start up and run !!! Why does 
> this happen and is there any way to solve it??
>
> do i need to chk anything??
>
> 2. As u can c below this indicates that the tomcat service has started 
> up and running.. but why does it appear 2 times on the tomcat console 
> ??? any particular reason??
>
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0.1
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0.1
>
> thnx for any suggestions..
>
> cheers,
> sands
>
> --
> To unsubscribe, e-mail:
> For additional commands, e-mail:



-- 
Cristian D. Romanescu
alternative: cristian at qdrei.de
mobile : +40745133096

--- "Pauca sed matura" - Gauss' motto ---


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


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




Coyote AJP 1.3 connector: apache HTTPS info blocked

2002-10-30 Thread Steinar Bang
Platform: Intel PIII, RedHat 7.2, apache 1.3.20, ajp1.3
  tomcat 4.1.12, BlackDown Java SDK 1.3.1,
  Struts 1.1-b2

Is there a way to pass the scheme used by the client when talking to
the apache server (ie. "http" or "https") through the Coyote AJP 1.3
connector? 

If I use the old AJP 1.3 connector, I can use the
HttpServletRequest.isSecure() function to determine if the client used
an HTTPS connection to the apache server.

With the Coyote AJP 1.3 connector this information is lost.
Ie. HttpServletRequest.isSecure() always returns false, and
HttpServletRequest.getScheme() always returns "http".

The  elelement for Coyote have the attributes secure, and
scheme, which affects the above values of HttpServletRequest.  But
these settings are constants.

Do I need to set up a separate AJP 1.3 connection on a different port
to handle HTTPS requests to apache?  If so, how's that done?

Thanx!


- Steinar



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




Tomcat 4.1.x not allowing symlinks for static content.

2002-10-30 Thread Nick Lombard (VSP)
Good day.

We are experiencing problems with symlinks in an application (context)
directory in that tomcat refuses to follow the link and returns that the
resource cannot be found.

We are running Tomcat 4.1.12, JDK 1.4.1.01 on Linux.

The Release notes states the following.

---
Symlinking static resources:
---

Unix symlinks will not work when used in a web application to link resources
located outside the web application root directory.

This behavior is optional, and the "allowLinking" flag may be used to
disable
the check.  


What we are doing is placing a symlink for common resources accross our
applications in each webapp. This contains stylesheets, images etc. These
sources are served as if they belong to the application ie. through the
symbolic link.

We had no problems with Tomcat 4.0.x but now it seems that symlinks are
disabled by default.

The above entry found in the release notes stating that the "allowLinking"
flag may be used to disable the check is all fine and well if I can only
work out where to set this flag.  No further mention can be found in the
documentation or anywhere on this list (If I didn't miss it). 

Is anyone else experiencing the same problem and could you please reply with
a solution ?

Thank you in advance.
Nick Lombard.

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




OFF-TOPIC: testing

2002-10-30 Thread Felipe Schnack
  Hi all...
  I really want to do regression testing and such. I already created
various tests for classes that deal with String manipulation, etc. But I
was wondering how I would test objects that deal with database data? How
you all do that? I mean, you insert test data in the test case?

-- 

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

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


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




RE: ques: Tomcat Apache 4.0.6 v 4.1.12

2002-10-30 Thread Ralph Einfeldt
4.0 and 4.1 implment the same specs: JSP 1.2, JSDK 2.3

Both specs are backwards compatible with their 
predessor.

Nevertheless some things that are not part of the spec 
have changed between 4.0 and 4.1.

To know what might cause your problems you should be more 
specific what exacly fails with what error messages.

> -Original Message-
> From: Dodd, Andrew [mailto:andrew.dodd@;cgey.com]
> Sent: Wednesday, October 30, 2002 12:17 PM
> To: [EMAIL PROTECTED]
> Subject: ques: Tomcat Apache 4.0.6 v 4.1.12
> 
> 
> The application will run correctly under
>
> Is it true that 4.1.12 will also support web applications written for
> Servlet 2.2 and JSP 1.1 Spec as well as Servlet 2.3 and JSP 1.2 Spec.
> 

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




RE: Tomcat gives servlets thru Apache but only for localhost

2002-10-30 Thread Turner, John

Yes, you need to add a Host container to server.xml for "toucan.pnl.gov".
It would look like this:



And then inside that container you would have a Context container for your
app.  See the docs on the Host and Context containers:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html

Basically, the default server.xml has a Host container for "localhost" and a
Context for "/examples".  You want to add a Host container for
"toucan.pnl.gov" and a Context container for "/yourapp".

After you get the Host container in there for toucan.pnl.gov, you want to
add an ApacheConfig Listener element to it.  This will generate the
appropiate addition to mod_jk.conf, with the appropriate Apache VirtualHost
directives for toucan.pnl.gov.

John

> -Original Message-
> From: Whyatt, Marie V [mailto:marie.whyatt@;pnl.gov]
> Sent: Tuesday, October 29, 2002 4:59 PM
> To: 'Tomcat Users List'
> Subject: Tomcat gives servlets thru Apache but only for localhost
> 
> 
> Apologies if I haven't found this answered in the archives...
> 
> From the same system Apache and Tomcat are running on 
> (toucan), I can see
> Tomcat's HelloWorldExample servlet if I use either of the URLs:
> 
>   http://localhost/examples/servlets/HelloWorldExample or
>   http://toucan/examples/servlets/HelloWorldExample
> 
> But I get a "404 Not Found" if I use the full host URL 
> (toucan.pnl.gov) or
> IP address, or if I try from a browser on another computer.
> 
> I'm guessing I only have Tomcat configured to work in standalone mode
> because I see "localhost" specified in Tomcat's server.xml, in the
> auto-generated mod_jk.conf file, and in 
> jk/workers.properties; and so I'm
> thinking I must add configuration information for 
> non-standalone -- the
> trouble is reading the Tomcat documentation and experimenting with
> server.xml configurations have gotten me nowhere.
> 
> I'm using Apache's httpd.conf with only minimal modifications and I'm
> suspicious I may need to add more to it than the command to 
> Include the
> auto-generated mod_jk.conf file -- perhaps "AddModule 
> libexec/mod_jk.so"?
> Do I also have to define a virtual host for Tomcat to talk to?
> 
> Any guidance is greatly appreciated,
> - Marie
> 
> ([EMAIL PROTECTED])
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


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




Using JAXB in a Servlet (class loader prob?)

2002-10-30 Thread Steve Slatcher
Hi all

I have some code that uses JAXB that works fine in a standalone app with
the jars I expect it to need.  When I put the same code in a webapp I got a
couple of problems initialising the Sevlet (see log file below).

I managed to get rid of one problem (javax.xml.bind.JAXBContext) by putting
a copy of jaxb-api.jar in /common/lib (before it was only in
app/WEB-INF/lib).

The second problem was solved by copying a xerces.jar into my
app/WEB-INF/lib directory (as far as I can tell my standalone app did not
need org.w3c.dom.ls.DocumentLS at all).

Can anone shed more light on this?  Specifically I would be interested in
any ways to avoid using the /common/lib directory.

I'm using Tomcat 4.0.3, JAXB 1.0 beta (currently the latest version), and
the magic Xerces that came to the rescue was 1.4.4.  Despite the name of my
webapp I am NOT intent on spamming!

Cheers

Steve Slatcher

2002-10-30 11:33:14 WebappLoader[/spam]: Deploying class repositories to
work directory C:\jakarta-tomcat-4.0.3\work\localhost\spam
2002-10-30 11:33:14 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/activation.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\activation.jar
2002-10-30 11:33:14 WebappLoader[/spam]: Deploy JAR /WEB-INF/lib/dom.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\dom.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/jax-qname.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\jax-qname.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/jaxb-api.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\jaxb-api.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/jaxb-libs.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\jaxb-libs.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/jaxb-ri.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\jaxb-ri.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/jaxb-xjc.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\jaxb-xjc.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/jaxp-api.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\jaxp-api.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/log4j-1.2.6.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\log4j-1.2.6.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR /WEB-INF/lib/mail.jar
to C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\mail.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR /WEB-INF/lib/sax.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\sax.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/xercesImpl.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\xercesImpl.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Reloading checks are enabled for
this Context
2002-10-30 11:33:15 StandardManager[/spam]: Seeding random number generator
class java.security.SecureRandom
2002-10-30 11:33:15 StandardManager[/spam]: Seeding of random number
generator has been completed
2002-10-30 11:33:15 ContextConfig[/spam]: Added certificates -> request
attribute Valve
2002-10-30 11:33:15 StandardWrapper[/spam:Mailer]: Marking servlet Mailer
as unavailable
2002-10-30 11:33:15 StandardContext[/spam]: Servlet /spam threw load()
exception
javax.servlet.ServletException: Error instantiating servlet class
com.scientia.spam.MailerServlet
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:8
93)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java
:3266)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
9)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.privateGetDeclaredConstructors(Class.java:1

RE: OFF-TOPIC: testing

2002-10-30 Thread Ralph Einfeldt
The short answer is yes.

The longer answer is that we have scripts that sets up
a site and a database with a well defined content (that's
done in less than 2 minutes) from scratch and run our 
testcases against that site and database. 

> -Original Message-
> From: Felipe Schnack [mailto:felipes@;ritterdosreis.br]
> Sent: Wednesday, October 30, 2002 12:33 PM
> To: Tomcat Users List
> Subject: OFF-TOPIC: testing
> 
> I mean, you insert test data in the test case?
> 

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




RE: mod_jk + tomcat on Solaris 8 ( about Turner's HOWTO )

2002-10-30 Thread Turner, John

Actually, now I'm confused.

Apache runs on port 80.

I don't know what you have Tomcat running on port 443 for, that isn't
something you need to do.

- set Apache to run on port 80
- put an Include line in your httpd.conf that includes mod_jk.conf
- set workers.properties to port 8009
- verify in server.xml that there is an AJP13-compatible Connector listening
on 8009
- verify that other Connectors in server.xml are disabled (you don't need
them if you are using Apache)
- as long as you have ApacheConfig Listeners defined in each Host container
in server.xml, you will get appropriate Apache VirtualHost directives in
mod_jk.conf, regardless of their names.  There is no need to define them
separately in httpd.conf

Now, if you want to run SSL with an Apache + Tomcat configuration, configure
Apache for SSL, not Tomcat.  Tomcat only needs SSL configuration if you are
running Tomcat in stand-alone mode.

If you need to add SSL statements to Apache httpd.conf for virtual hosts
that are configured using Listener elements in Tomcat's server.xml, then you
will have to take mod_jk.conf and edit it manually, put those statements in
there, and then include it into httpd.conf.

HTH

John

> -Original Message-
> From: MURAT BALKAS [mailto:murat.balkas@;o2.net.tr]
> Sent: Tuesday, October 29, 2002 6:26 PM
> To: Tomcat Users List
> Subject: RE: mod_jk + tomcat on Solaris 8 ( about Turner's HOWTO )
> 
> 
> 
> My mod_jk.so is at the default location with other modules :
> /usr/apache/libexec/mod_jk.so
> 
> All of my configuration files are attached with comments. If 
> I go over them
> I realised that I'm really confused about
> 
> a) ports ( Should both of them bind to same port? How? )
>   Now, my apache listens on port 80 and my tomcat listens 
> on port 443.
> Is it right? When I start tomcat I start an engine on port 443.
> b) virtualhosts
>   On server.xml and workers.properties I've defined only 
> localhost. But
> on httpd.conf although my ServerName is localhost I've defined another
> VirtualHost. Is it right?
> 
> Please help me. I'm really confused.
> 
> Murat BALKAS
> 
> My server.xml file : ( related lines )
> --
> ...
> ...
> 
>  modJK= "/usr/apache/libexec/mod_jk.so" jkDebug="debug"
> workersConfig
> ="/usr/local/jakarta-tomcat-4.0.4/conf/jk/workers.properties"
> jkLog="/usr/local/jakarta-tomcat-4.0.4/logs/mod_jk.log"/>
> ...
> ...
> 
> 
>  className="org.apache.catalina.connector.http.HttpConnector"
>port="443" minProcessors="5" maxProcessors="75"
>enableLookups="true"
>acceptCount="10" debug="0" scheme="https" 
> secure="true">
>className="org.apache.catalina.net.SSLServerSocketFactory"
>clientAuth="false" 
> keystoreFile="/usr/location/of/keystore"
>keystorePass="mypasswordishere" protocol="TLS"/>
> 
> ...
> ...
> 
> port="8009" minProcessors="5" maxProcessors="75"
>acceptCount="10" debug="0"/>
> ...
> ...
> 
> 
> ...
> ...
> 
> 
>   className="org.apache.ajp.tomcat4.config.ApacheConfig" append
> ="true" forwardAll="false" />
> ...
> ...
> 
>   reloadable="true" crossContext="true"/>
> ...
> ...
> 
> My workers.properties file :
> -
> 
> # BEGIN workers.properties
> #
> # Setup for apache system
> #
> # (optional) make this equal to CATALINA_HOME
> workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
> #
> # (optional) make this equal to JAVA_HOME
> workers.java_home=/usr/j2se
> #
> ps=/
> worker.list=ajp13
> 
> # Definition for Ajp13 worker
> #
> worker.ajp13.port=8009
> 
> # change this line to match apache ServerName and Host name 
> in server.xml
> worker.ajp13.host=localhost
> 
> worker.ajp13.type=ajp13
> #
> # END workers.properties
> 
> My httpd.conf ( related lines ) :
> --
> ...
> ...
> ServerType standalone
> ...
> ...
> # Bind on port 80, leave 443 for tomcat
> Port 80
> ...
> ...
> # Listen only on 80 not 443
> 
> Listen 80
> # Listen 443
> 
> ...
> ...
> # ServerName same as server.xml host directive
> ServerName localhost
> ...
> ...
> # I don't know why a virtualhost listening on 443 
> 
> ...
> ...
> # include mod_jk.conf
> Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf
> ...
> ...
> # another virtualhost. I'm really confused.
> 
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /usr/local/myapprootdir/mydir
> ServerName test.x.net.tr
> 
> 
> My mod_jk.conf :
> 
> 
> ## Auto generated on Tue Oct 29 12:19:47 EET 2002##
> 
> 
>   LoadModule jk_module libexec/mod_jk.so
> 
> 
> JkWorkersFile 
> "/usr/local/jakarta-tomcat-4.0.4/conf/jk/workers.properties"
> JkLogFile "/usr/local/jakarta-tomcat-4.0.4/logs/mod_jk.log"
> 
> JkLogLevel debug
> 
> 
> ServerName localhost
> 
>  localhost:/EasyBridge 
> 
> # Static files
> Alias /EasyBridge 
> "/usr/local/jaka

RE: Using JAXB in a Servlet (class loader prob?)

2002-10-30 Thread Nick Lombard (VSP)
Hi Steve

My half a cent comment.

mailto:steve_slatcher@;scientia.com]
Sent: Wednesday, October 30, 2002 2:54 PM
To: Tomcat Users List
Subject: Using JAXB in a Servlet (class loader prob?)


Hi all

I have some code that uses JAXB that works fine in a standalone app with
the jars I expect it to need.  When I put the same code in a webapp I got a
couple of problems initialising the Sevlet (see log file below).

I managed to get rid of one problem (javax.xml.bind.JAXBContext) by putting
a copy of jaxb-api.jar in /common/lib (before it was only in
app/WEB-INF/lib).

The second problem was solved by copying a xerces.jar into my
app/WEB-INF/lib directory (as far as I can tell my standalone app did not
need org.w3c.dom.ls.DocumentLS at all).

Can anone shed more light on this?  Specifically I would be interested in
any ways to avoid using the /common/lib directory.

I'm using Tomcat 4.0.3, JAXB 1.0 beta (currently the latest version), and
the magic Xerces that came to the rescue was 1.4.4.  Despite the name of my
webapp I am NOT intent on spamming!

Cheers

Steve Slatcher

2002-10-30 11:33:14 WebappLoader[/spam]: Deploying class repositories to
work directory C:\jakarta-tomcat-4.0.3\work\localhost\spam
2002-10-30 11:33:14 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/activation.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\activation.jar
2002-10-30 11:33:14 WebappLoader[/spam]: Deploy JAR /WEB-INF/lib/dom.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\dom.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/jax-qname.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\jax-qname.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/jaxb-api.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\jaxb-api.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/jaxb-libs.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\jaxb-libs.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/jaxb-ri.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\jaxb-ri.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/jaxb-xjc.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\jaxb-xjc.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/jaxp-api.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\jaxp-api.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/log4j-1.2.6.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\log4j-1.2.6.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR /WEB-INF/lib/mail.jar
to C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\mail.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR /WEB-INF/lib/sax.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\sax.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/xercesImpl.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\xercesImpl.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Reloading checks are enabled for
this Context
2002-10-30 11:33:15 StandardManager[/spam]: Seeding random number generator
class java.security.SecureRandom
2002-10-30 11:33:15 StandardManager[/spam]: Seeding of random number
generator has been completed
2002-10-30 11:33:15 ContextConfig[/spam]: Added certificates -> request
attribute Valve
2002-10-30 11:33:15 StandardWrapper[/spam:Mailer]: Marking servlet Mailer
as unavailable
2002-10-30 11:33:15 StandardContext[/spam]: Servlet /spam threw load()
exception
javax.servlet.ServletException: Error instantiating servlet class
com.scientia.spam.MailerServlet
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:8
93)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java
:3266)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
9)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Ca

RE: Connecting to mysql - Server configuration denies access to data source

2002-10-30 Thread Turner, John

Has anybody seen what?  Please be more specific.

John

> -Original Message-
> From: Kevin Passey [mailto:kpassey@;kdpsoftware.co.uk]
> Sent: Wednesday, October 30, 2002 6:50 AM
> To: Tomcat Users List (E-mail)
> Subject: Connecting to mysql - Server configuration denies access to
> data source
> 
> 
> Has anybody seen this.
> 
> I've set the mysql tables correctly.
> 
> Can anybody shed any light on this.
> 
> Thanks
> 
> Kevin Passey
> KDP Software Limited
> Tel: 01273 712830
> Fax: 08700 510103
> mailto:kpassey@;kdpsoftware.co.uk
> http://www.kdpsoftware.co.uk
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




RE: Connecting to mysql - Server configuration denies accessto data source

2002-10-30 Thread Larry Meadors
I got this a long time ago, so if I am wrong, sorry.

Look in the user table in mysql, and you will find that each user is
associated with a host. The user you have in your datasource gets a
hostname added to it (i.e., lmeadors@mylinuxbox instead of just
lmeadors) and that combination is not valid in your mysql user table.

Thanks for the reminder, I have a mysql database to setup today. ;-)

Larry

PS: BTW, John is right - please be more specific in your posts, you will
get much better responses.


>>> [EMAIL PROTECTED] 10/30/02 06:06 AM >>>

Has anybody seen what?  Please be more specific.

John

> -Original Message-
> From: Kevin Passey [mailto:kpassey@;kdpsoftware.co.uk]
> Sent: Wednesday, October 30, 2002 6:50 AM
> To: Tomcat Users List (E-mail)
> Subject: Connecting to mysql - Server configuration denies access to
> data source
> 
> 
> Has anybody seen this.
> 
> I've set the mysql tables correctly.
> 
> Can anybody shed any light on this.
> 
> Thanks
> 
> Kevin Passey
> KDP Software Limited
> Tel: 01273 712830
> Fax: 08700 510103
> mailto:kpassey@;kdpsoftware.co.uk
> http://www.kdpsoftware.co.uk
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:  

For additional commands, e-mail:




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




RE: tomcat speed

2002-10-30 Thread Shapira, Yoav
Hi,

>the server.xml looks fine... will chk it out again slowly...(wud also
>appreciate more suggestion..:))

Also check any of your webapps for things that load on startup, i.e.
listeners, filters, and load-on-startup servlets.  All these init() and
contextInitialized() methods will be called on startup, before the
server is available.  If these methods do work that takes a long time,
it will appear that tomcat is taking a long time to start up.

Mr. Romanescu's suggestion is also on the mark.  Eliminate un-needed
services, connectors, realms, environment entries, loggers, valves,
anything you don't need.

>well, hv a P IV with 256 mb ram.. shud be sufficient i guess!!

Depends what your applications do.  For a vanilla tomcat installation,
that's much more than sufficient.

>but is there any explanation for the message appearing twice or is it
>normal???

Do you clear / rotate the logs between every time you stop and start the
server?

Some versions of tomcat don't output anything to Catalina.out when
shutting down, only when starting up.  So if you start it up, and later
restart it, you will see the two messages as indicated in your message.

If you clear the logs after each run, there should only be one startup
message per  in your server.xml.

Yoav Shapira
Millennium ChemInformatics

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


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


Re: Profiling with tomcat

2002-10-30 Thread Charles Baker

--- Steinar Bang <[EMAIL PROTECTED]> wrote:
> > "Ralph Einfeldt"
> <[EMAIL PROTECTED]>:
> 
> >> From: Steinar Bang [mailto:sb@;dod.no]
> 
> >> Is this program available for free download?  I
> was unable to
> >> determine from the web pages whether it was a
> freely downloadable
> >> program, or whether it was a commercial product.
> 
> > Have a look at 
> >
>
http://www.hp.com/products1/unix/java/hpjmeter/downloads/license_hpjmeter_1-5.html
> 
> I've seen it.
> 
> But it contradicts with the information that's
> displayed during
> download, ie. the 90 day's warranty statement, that
> looks like it's
> meant for a commercial product.
> 
> I kept looking for where they would be asking me for
> my credit card
> number.
> 
{{SNIP}}

I'm late on this thread, so forgive me if this has
already been covered, but what's wrong with the plain,
freely available jmeter?

http://jakarta.apache.org/jmeter/

=
[EMAIL PROTECTED]
http://www.charleshbaker.com/~chb/
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

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




RE: Connecting to mysql - Server configuration denies accessto data source

2002-10-30 Thread Sam Taylor
you might also want to check that you haven't exceeded your max connections
to mysql...

 -Original Message-
From:   Larry Meadors [mailto:Larry.Meadors@;plumcreek.com]
Sent:   Wednesday, October 30, 2002 8:31 AM
To: [EMAIL PROTECTED]
Subject:RE: Connecting to mysql - Server configuration denies accessto data
source

I got this a long time ago, so if I am wrong, sorry.

Look in the user table in mysql, and you will find that each user is
associated with a host. The user you have in your datasource gets a
hostname added to it (i.e., lmeadors@mylinuxbox instead of just
lmeadors) and that combination is not valid in your mysql user table.

Thanks for the reminder, I have a mysql database to setup today. ;-)

Larry

PS: BTW, John is right - please be more specific in your posts, you will
get much better responses.


>>> [EMAIL PROTECTED] 10/30/02 06:06 AM >>>

Has anybody seen what?  Please be more specific.

John

> -Original Message-
> From: Kevin Passey [mailto:kpassey@;kdpsoftware.co.uk]
> Sent: Wednesday, October 30, 2002 6:50 AM
> To: Tomcat Users List (E-mail)
> Subject: Connecting to mysql - Server configuration denies access to
> data source
>
>
> Has anybody seen this.
>
> I've set the mysql tables correctly.
>
> Can anybody shed any light on this.
>
> Thanks
>
> Kevin Passey
> KDP Software Limited
> Tel: 01273 712830
> Fax: 08700 510103
> mailto:kpassey@;kdpsoftware.co.uk
> http://www.kdpsoftware.co.uk
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




Tomcat HTTPS

2002-10-30 Thread Nico De Groote
Hi,

i'm trying to connect to Tomcat via https://localhost:8443/ but i'm always
getting the 'The Page cannot be displayed' message.

I did follow the Tomcat documentation but i specified another keystore with
another password. I did mention these in the Factory attributes keystorePass
and keystoreFile.

Someone any ideas?

Cheers,
Nico




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




RE: Profiling with tomcat

2002-10-30 Thread Ralph Einfeldt
It's a complete different tool.

hpjmeter displays profiling data of a vm.

> -Original Message-
> From: Charles Baker [mailto:rascharles@;yahoo.com]
> Sent: Wednesday, October 30, 2002 2:50 PM
> To: Tomcat Users List
> Subject: Re: Profiling with tomcat 
> 
> I'm late on this thread, so forgive me if this has
> already been covered, but what's wrong with the plain,
> freely available jmeter?
> 
> http://jakarta.apache.org/jmeter/
> 

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




need help connecting Tomcat 4.1.12, Apache 2.0.43 using jk2 (mod_jk2-2.0.43.dll)

2002-10-30 Thread dave m
I've tried to find info under this mailing list's archives and I've looked 
under the jk2 HOW-TOs and under Tomcat's documentation, but I'm still in the 
dark about this.  I am 'EXTREMELY' new (ultra-newbie?) to Apache and to 
Tomcat.  I can find no step-by-step tutorial on how to set the two products 
up under Windows 2000 (specifically the newer versions like Apache 2.0.43 
and Tomcat 4.1.12).  Would someone be willing to help me? (I'll be happy to 
write up my 'process' for the next person who asks this once I am 
successful).

To give you a hint of where I'm at in the installation, I've installed both 
Apache and Tomcat on my Windows 2000 machine (I changed the working 
directory from "C:\Program files\Apache Group" to just "C:\Apache" as 
someone had mentioned space names give Tomcat problems.

I have also downloaded the appropriate .dll file (mod_jk2-2.0.43) which 
matches my version of Apache.

Where do I go from here?.

Thanks

Learning_Tomcat





_
Surf the Web without missing calls! Get MSN Broadband.  
http://resourcecenter.msn.com/access/plans/freeactivation.asp


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



RE: need help connecting Tomcat 4.1.12, Apache 2.0.43 using jk2 (mod_jk2-2.0.43.dll)

2002-10-30 Thread Turner, John

This should be all you need, courtesy of Robert Sowders:

ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Jk2_TC4.1.x_JSDK1.4.x.zip

John


> -Original Message-
> From: dave m [mailto:learning_tomcat@;hotmail.com]
> Sent: Wednesday, October 30, 2002 9:00 AM
> To: [EMAIL PROTECTED]
> Subject: need help connecting Tomcat 4.1.12, Apache 2.0.43 using jk2
> (mod_jk2-2.0.43.dll)
> 
> 
> I've tried to find info under this mailing list's archives 
> and I've looked 
> under the jk2 HOW-TOs and under Tomcat's documentation, but 
> I'm still in the 
> dark about this.  I am 'EXTREMELY' new (ultra-newbie?) to 
> Apache and to 
> Tomcat.  I can find no step-by-step tutorial on how to set 
> the two products 
> up under Windows 2000 (specifically the newer versions like 
> Apache 2.0.43 
> and Tomcat 4.1.12).  Would someone be willing to help me? 
> (I'll be happy to 
> write up my 'process' for the next person who asks this once I am 
> successful).
> 
> To give you a hint of where I'm at in the installation, I've 
> installed both 
> Apache and Tomcat on my Windows 2000 machine (I changed the working 
> directory from "C:\Program files\Apache Group" to just "C:\Apache" as 
> someone had mentioned space names give Tomcat problems.
> 
> I have also downloaded the appropriate .dll file 
> (mod_jk2-2.0.43) which 
> matches my version of Apache.
> 
> Where do I go from here?.
> 
> Thanks
> 
> Learning_Tomcat
> 
> 
> 
> 
> 
> _
> Surf the Web without missing calls! Get MSN Broadband.  
> http://resourcecenter.msn.com/access/plans/freeactivation.asp
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


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




Mod jk logged messages.

2002-10-30 Thread Mehdi . Nejad

Hello all,

Can anyone shed some light on the following error message from mod_jk

Wed Oct 30 13:59:22 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/htmlclient/hcl/common/index.html'
[Wed Oct 30 13:59:22 2002]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match

Im taking the fact that it says "done without a match", as meaning that
there has been an error - do I need to worry ?  Some files that it seems
unable to match can be viewed from a browser, so maybe its nothing, but
then, things are generally not working.

I have the log level set to debug by the way..

Cheers,

Med


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




RE: Tomcat Xerces Issue.

2002-10-30 Thread Cox, Charlie
this was done to enforce the spec. It was added in later and the doc was
probably overlooked. you can open a bug on bugzilla to get this updated
correctly.

http://nagoya.apache.org/bugzilla/

Charlie

> -Original Message-
> From: Saurabh Arora [mailto:SArora@;novell.com]
> Sent: Wednesday, October 30, 2002 6:29 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Tomcat Xerces Issue.
> 
> 
> Just to add to previous posting , i was looking at source 
> code for v4.1.12 release Build
> 
> >>> [EMAIL PROTECTED] 10/30/02 04:54PM >>>
> I have been looking at the webClassLoader Code. I realised 
> that the Classloader doesnot allow the Xerces lib to be 
> loaded from the WEB-INB/lib . 
> 
>  It prevents the same be filtering the org.apache.xerces package.
> 
> It means the documentation that , Application can use 
> specific version of Xerces.jar in the ClassLoader HOWTO is wrong.
> 
>  Why are we forcing users to use only the common\lib \ xerces 
> implementations. 
> 
> 
> Saurabh arora
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: Mod jk logged messages... oh

2002-10-30 Thread Mehdi . Nejad


i think i worked it out.  It just meant that i couldnt find any reason
according to my config, to pass html / gif etc to Tomcat - which is right..

Cheers,

Med





Hello all,

Can anyone shed some light on the following error message from mod_jk

Wed Oct 30 13:59:22 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/htmlclient/hcl/common/index.html'
[Wed Oct 30 13:59:22 2002]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match

Im taking the fact that it says "done without a match", as meaning that
there has been an error - do I need to worry ?  Some files that it seems
unable to match can be viewed from a browser, so maybe its nothing, but
then, things are generally not working.

I have the log level set to debug by the way..

Cheers,

Med


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




Log rotation in Tomcat 4.1.12

2002-10-30 Thread Stefan Wimmer
Hello to everyone, 

I was parsing this mailing list, google and the tomcat documentation and
did not find the answer to my question:

"Can I change the default log rotation from daily to monthly?"

As far as I can see there was such a functionality in TC 3.3 called
'LogSetter' - I could not find that back in TC 4.* ...

Can I use Lifecycle Listeners by any chance to influence the log
rotation?

If anyone can give me an answer I'd *really* appreciate that ;-)

Best regards
Stefan

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




Re: Tomcat Xerces Issue.

2002-10-30 Thread Steve Slatcher
Hi Charlie,

Which bit of which spec are you referring to?  It sounds strange to me that
a webapp is not allowed to use any version of any parser it wants to.

Steve Slatcher

Cox, Charlie wrote:
> this was done to enforce the spec. It was added in later and the doc
> was probably overlooked. you can open a bug on bugzilla to get this
> updated correctly.
>
> http://nagoya.apache.org/bugzilla/
>
> Charlie
>
>> -Original Message-
>> From: Saurabh Arora [mailto:SArora@;novell.com]
>> Sent: Wednesday, October 30, 2002 6:29 AM
>> To: [EMAIL PROTECTED]
>> Subject: Re: Tomcat Xerces Issue.
>>
>>
>> Just to add to previous posting , i was looking at source
>> code for v4.1.12 release Build
>>
> [EMAIL PROTECTED] 10/30/02 04:54PM >>>
>> I have been looking at the webClassLoader Code. I realised
>> that the Classloader doesnot allow the Xerces lib to be
>> loaded from the WEB-INB/lib .
>>
>>  It prevents the same be filtering the org.apache.xerces package.
>>
>> It means the documentation that , Application can use
>> specific version of Xerces.jar in the ClassLoader HOWTO is wrong.
>>
>>  Why are we forcing users to use only the common\lib \ xerces
>> implementations.
>>
>>
>> Saurabh arora
>>
>>
>>
>>
>> --
>> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 


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




Re: Connecting to mysql - Server configuration denies accessto data source

2002-10-30 Thread Jean-Luc BEAUDET
 Well i don't have all the whole pb cause i just set up my brand new 
netscape

It seems yu got in troubles with connection to mysql database. I just 
made it yesterday night to have my Tomcat's manager properly set up...

First make yur database and tables. I can give yu a .sql script.
Second, under sql admin, create a user who'll handle this database:
user: tomcat, password: tompass.
They are many ways to do it, but on i use to is - assuming the db is 
called tomcatusers -

GRANT ALL PRIVILEGES ON tomcatusers.* TO tomcat@localhost IDENTIFIED BY 
'tompass';

If all is OK, yu can then test it with:

shell# mysql -u tomcat -p
password:
bla bla ../..
mysql> connect tomcatusers;
bla bla ../..
mysql>mysql> show tables;
+---+
| Tables_in_tomcatusers |
+---+
| roles |
| user_roles|
| users |
+---+
3 rows in set (0.00 sec)

mysql>

After that, yu have to modify the server.xml according to the Tomcat's doc.


For instance:
 
 
 
 
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/tomcatusers"
connectionName="tomcat" connectionPassword="tompass"
userTable="users" userNameCol="user_name" 
userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />

Hope this help.

JLB :O)

Sam Taylor wrote:

you might also want to check that you haven't exceeded your max connections
to mysql...

-Original Message-
From: 	Larry Meadors [mailto:Larry.Meadors@;plumcreek.com]
Sent:	Wednesday, October 30, 2002 8:31 AM
To:	[EMAIL PROTECTED]
Subject:	RE: Connecting to mysql - Server configuration denies accessto data
source

I got this a long time ago, so if I am wrong, sorry.

Look in the user table in mysql, and you will find that each user is
associated with a host. The user you have in your datasource gets a
hostname added to it (i.e., lmeadors@mylinuxbox instead of just
lmeadors) and that combination is not valid in your mysql user table.

Thanks for the reminder, I have a mysql database to setup today. ;-)

Larry

PS: BTW,
John is right - please be more specific in your posts, you will
get much better responses.



[EMAIL PROTECTED] 10/30/02 06:06 AM >>>



Has anybody seen what?  Please be more specific.

John


-Original Message-
From: Kevin Passey [mailto:kpassey@;kdpsoftware.co.uk]
Sent: Wednesday, October 30, 2002 6:50 AM
To: Tomcat Users List (E-mail)
Subject: Connecting to mysql - Server configuration denies access to
data source


Has anybody seen this.

I've set the mysql tables correctly.

Can anybody shed any light on this.

Thanks

Kevin Passey
KDP Software Limited
Tel: 01273 712830
Fax: 08700 510103
mailto:kpassey@;kdpsoftware.co.uk
http://www.kdpsoftware.co.uk

--
To unsubscribe, e-mail:

For ad
ditional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additio
nal commands, e-mail: 







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




How do I increase performance on Tomcat?

2002-10-30 Thread JStanczak
I'm running Tomcat 4 on a Solaris 8 Sparc server. I've been watching the
traffic increase on my server as I add more and more resources over time.
In the process of this I've increased the maximum memory the JVM uses to
keep Tomcat from running out of memory. Then I had to increase the maximum
simultaneous users for the database connection. The next thing I was
getting was no processors error so I increased the maximum processors and
that took care of that problem. Now I'm at a stopping point. The server
doesn't seem to be working very hard. The CPU activity is low and memory
usage is well below what the maximum is set to. The catalina log doesn't
show anymore errors about no processor. All it shows is when another
processor is started. After all this it's still running slow. I've had the
network part checked and it's doing just fine. My question is how can I fix
this problem. It seems to me like it's not allowing enough connections or
something. For example when you load a page from the software it will just
sit there for a little or a lot and then all of a sudden boom it sends the
whole page. It's like the server won't service enough people a once. Can
someone give me some direction?


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813



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




RE: Session start

2002-10-30 Thread Mauro Daniel Ardolino
OK, but I still have some servlets that have to communicate using
HttpSession setting and getting objects between them.  So if on each call
to different servlets I obtain a new session, then I loose the objects
contained in the session.

So reading your answer I think that the problem is to who belongs the
session id.  Does it belongs to the machine that is browsing? I mean: the
IP address? I don't think so because in multiple text sessions of the same
linux machine, browsing from each the same servlet, I obtain different
sessions.  Does it belongs to the user?  which user?  windows user?  linux
user? other OS users?  No, the same user on different linux sessions, gets
different HttpSession.  So I have to think that depends on the
OS.  E.g. on linux it depends on the linux session.  I'd like to bypass
this behavior opening a session each time a user opens a browser.  I
think I have to rescue a browser window id or something like that from
the HttpServletRequest.

Any ideas?

Thanks,

Mauro



On Wed, 30 Oct 2002, Ralph Einfeldt wrote:

> It's quite simple.
> 
> Whenever a request reaches tomcat that contains no
> session id (url or cookie) or a session id that
> doesn't belongs to a active session, tomcat creates
> a new session.
> 
> To do what you want you have to disable cookies
> in tomcat. This way you will get a new session
> whenever a new window is opened and the url that 
> is used for the window contains no session id.
> 
> Ralph Einfeldt
> Uptime Internet Solution Center GmbH
> Hamburg, Germany
> Hosting, Content Management, Java Consulting
> http://www.uptime-isc.de 
> 
> > -Original Message-
> > From: Mauro Daniel Ardolino [mailto:mauro@;altersoft.com.ar]
> > Sent: Tuesday, October 29, 2002 5:13 PM
> > To: [EMAIL PROTECTED]
> > Subject: Session start
> > 
> > I'm confussed about when does a session starts.
> > 
> > Browsing with netscape on a linux gui, opening 2 browsers, 
> > calling the same servlet, the session is shared.  I want 
> > to start a new  session! I mean every time a user opens a 
> > new browser or a new window of the browser and calls my 
> > servlet, I want to start a new session.
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


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




Re: How do I increase performance on Tomcat?

2002-10-30 Thread kathee
Tomcat Tuning Notes (applies to all versions and a good start)

** Exerpted from:
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html.

Please see this for the complete Tomcat User Guide.

Real World Configuration Tips 

By default the Tomcat distribution comes with a naive configuration
whose main goal is to promote first time user experience and an "out of
the box" operation... This configuration however is not the best way to
deploy Tomcat on real sites. For example, real sites may require some
performance tuning and site-specific settings (additional path elements
for example). This section will try to get you started by directing you
to the first steps that should be taken before publishing a Tomcat based
site. 

Modify and Customize the Batch Files 

As stated in the previous sections, the startup scripts are here for
your convenient. Yet, sometimes the scripts that are needed for
deployment should be modified: 

To set resource limits such as maximum number of descriptors. 
To add new CLASSPATH entries (for example, JDBC drivers). 
To add new PATH/LD_LIBRARY_PATH entries (for example, JDBC drivers
DLLs). 
To modify the JVM command line settings. 
Make sure that you are using a specific JVM (out of the two or three
JVMs installed on your machine). 
To switch user from root to some other user using the "su" UNIX command.
Your pet reason. 

Some of these changes can be done without explicit changes to the basic
scripts; for example, the tomcat script can use an environment variable
named TOMCAT_OPTS to set extra command line parameters to the JVM (such
as memory setting etc.). On UNIX you can also create a file named
".tomcatrc" in your home directory and Tomcat will take environment
information such as PATH, JAVA_HOME, TOMCAT_HOME and CLASSPATH from this
file. On NT however (and also on UNIX when the modifications are for
something such as the JVM command line) you are forced to rewrite some
of the startup script... 

Do not hesitate, just do it.

Modify the Default JVM Settings 

The default JVM settings in the tomcat script are very naïve; everything
is left for defaults. There are a few things that you should consider to
improve your Tomcat performance: 

Modify your JVM memory configuration. Normally the JVM allocates an
initial size for the Java heap and that's it, if you need more then this
amount of memory you will not get it.
Nevertheless, in loaded sites, giving more memory to the JVM improves
Tomcat's performance. You should use command line parameters such as
-Xms/-Xmx/-ms/-mx to set the minimum/maximum size of the Java heap (and
check to see if the performance was improved). 
Modify your JVM threading configuration. The SUN JDK1.2.2 for Linux
comes with support for both, green and native threads. In general native
threads are known to provide improved performance for I/O bound
applications, green threads on the other hand put less stress on the
machine. You should experiment with these two threading models and see
which model is better for your site (in general, native threads are
better). 
Select the best JVM for the task. There are several JVM vendors, for
example on Linux there are today (21/03/2000) two product level JVMs:
the SUN JDK1.2.2 and the IBM JDK1.1.8. If your application does not
require a specific JDK functionality, you should benchmark the two JVMs
and select the better one. In my (Gal Shachor) internal tests I found
the IBM JVM significantly faster than the one created by SUN, you should
check that for yourself and make a calculated decision. 
Modify your Connectors 

The Connectors, as configured in Tomcat's default server.xml contains
two Connectors configured as in the next server.xml fragment: 


The two default Connectors in server.xml















Is a Connector that listens on port 8080 for incoming HTTP requests.
This connector is needed for stand-alone operation. 
Is a Connector that listens on port 8007 for incoming AJPV12 requests.
This connector is needed for web-server integration (out-of-process
servlet integration). 

The AJPV12 Connector is required for Tomcat shutdown. However, the HTTP
Connector may be removed if stand-alone operation is not needed. 

Use a Thread Pool in your Connectors 

Tomcat is a multi-threaded servlet container this means that each
request needs to be executed by some thread. Prior to Tomcat 3.2, the
default was to create a new thread to serve each request that arrives.
This behavior is problematic for loaded sites because: 

Starting and stopping a thread for every request puts a needless burden
on the operating system and the JVM. 
It is hard to limit the resource consumption. If 300 requests arrive
concurrently Tomcat will open 300 threads to serve them and allocate all
the resources needed to serve all the 300 requests at the same time.
This causes Tomcat to allocate much more resources (CPU, Memory

VirtualHosts and tomcat

2002-10-30 Thread MURAT BALKAS
Hi,

  I'm still trying to make tomcat support virtual hosting. I gave up
fighting with connectors and trying to do it with tomcat's 
Container.

Some info :
---

My Engine's defaultHost is : localhost
The docBase of the Host with the name localhost is : mobileservices








Now the question is :

  With the configuration above everything is working. I want to add
another host which one should have a docBase as mobileservices/o2.net. But,
if I add the following lines after the above working Host, I couldn't log
in. I think that the session data is not transfered between Hosts' or
contexts. Am I right? If yes, how can I solve this.

   










  

The login process is as follows :

  If the username, password and company ID is OK, the user is
redirected to a HOME related to the company, e.g. mobileservices/o2.net.
So, if I go to https://first.rt.net.tr and give the right values for
username/password/company ID I'm redirected to mobileservices/o2.net and
everything is OK. But, if I go to https://second.rt.net.tr with docBase as
mobileservices/o2.net and although I give the right values for
username/password/company ID, I get "wrong username or password".

  And, in my log files, I see session values are null for all of
username/password and company ID. The session values get lost somewhere. I
don't know where...

  This is the problem. :)

Murat BALKAS

P.S. : I'm not the developer of the application running on tomcat.


--
Bu  e-posta  sadece  yukarida  isimleri  belirtilen  kisiler  arasinda ozel
haberlesme  amacini  tasimaktadir. Size yanlislikla ulasmissa lutfen mesaji
geri  gonderiniz  ve  sisteminizden  siliniz.  Rt.Net  Internet  Hizmetleri
Pazarlama  ve  Ticaret  A.S.  bu  mesajin icerigi ile ilgili olarak hic bir
hukuksal sorumlulugu kabul etmez.

This  e-mail  communication  is intended for the private use of the persons
named  above.  If  you  received  this message in error, please immediately
notify  the  sender  and  delete  it  from  your  system.  Rt.Net  Internet
Hizmetleri  Pazarlama  ve Ticaret A.S. does not accept legal responsibility
for the contents of this message.
--




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




RE: Session start

2002-10-30 Thread Ralph Einfeldt
There is no strict rule to whom a session id belongs.
It depends on the browser and your site.

If you have cookies disabled it's quite easy, whenever
you open a browser or a window with an url that doesn't 
contain a session a new session is created. If the url 
contains a session id for a valid session that session 
is used. (No matter if it was the same user, the same 
IP the same OS or what ever)

If you have cookies it depends on the browser if
it will use the cookie in a new window (or even in a
new browser). If the cookie is present and the session
is valid tomcat will use it (again anything else 
doesn't matter) otherwise a new sesion will be created.

> -Original Message-
> From: Mauro Daniel Ardolino [mailto:mauro@;altersoft.com.ar]
> Sent: Wednesday, October 30, 2002 3:38 PM
> To: Tomcat Users List
> Subject: RE: Session start
> 
> So reading your answer I think that the problem is to 
> who belongs the session id.  Does it belongs to the 
> machine that is browsing? I mean: the IP address? I 
> don't think so because in multiple text sessions of 
> the same linux machine, browsing from each the same 
> servlet, I obtain different sessions.  Does it belongs 
> to the user?  which user?  windows user?  linux user? 
> other OS users?  No, the same user on different linux 
> sessions, gets different HttpSession.  So I have to 
> think that depends on the OS.  E.g. on linux it depends 
> on the linux session.  I'd like to bypass this behavior 
> opening a session each time a user opens a browser.  I
> think I have to rescue a browser window id or something 
> like that from the HttpServletRequest.
> 

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




Tomcat firewall password

2002-10-30 Thread Lee, Michael
does any body know how to configure tomcat so that it is able to go out through a 
firewall. The firewall at work requires a username and password before a person can 
get on to the internet. I cannot find any documentation on how this can be achieved

Many Thanks in advance

Michael

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




Compilation error with mod_jk / mod_jserv...

2002-10-30 Thread Subha Gowri
> 
> Hi,
>  
> 1. I am having a problem while compiling mod_jk on Solaris 5.8.
>i'm using Tomcat 3.2.4 & JDK 1.2.2.
> 2. The same problem exists when i tried to compile mod_jserv 
> with the same above environment.
>  
> Any alternative way to solve the above pbm?
>  
> Regards,  
> Subha
>  
> 

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




Problems installing certificates from a CA

2002-10-30 Thread Anders Odeskog
I am trying to install and use a certificate from Thawte on our Tomcat 
server (4.1.12)
on Red Hat Linux (version ??)

I user jdk 1.4 (which should have JSSE included).

I follow the instructions in the ssl-howto but I get this error-message:

...SSLHandshakeException: no cipher suites in common

Everything works when I use a self-signed certificate!



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



RE: Compilation error with mod_jk / mod_jserv...

2002-10-30 Thread Turner, John

Nobody can help you unless you post specific information.  What error
message are you getting?  What exactly isn't working?

John


> -Original Message-
> From: Subha Gowri [mailto:subha@;indts.com]
> Sent: Tuesday, October 29, 2002 11:50 PM
> To: '[EMAIL PROTECTED]'
> Subject: Compilation error with mod_jk / mod_jserv...
> 
> 
> > 
> > Hi,
> >  
> > 1. I am having a problem while compiling mod_jk on Solaris 5.8.
> >i'm using Tomcat 3.2.4 & JDK 1.2.2.
> > 2. The same problem exists when i tried to compile mod_jserv 
> > with the same above environment.
> >  
> > Any alternative way to solve the above pbm?
> >  
> > Regards,  
> > Subha
> >  
> > 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




Re: How do I increase performance on Tomcat?

2002-10-30 Thread JStanczak

Here's my server.xml file. I'm using Tomcat 4 in standalone. I guess I'm
not understanding the connection pooling part of what you sent. I thought
the maxProcessors part was for that. I'm still reading through it all, but
the JVM part I've already done.





  
  
  







  












  
  
  
  
  
  
  
  
  
  
  
  













  
  
  
  
  
  
  
  
usersa
password
driverClassName
  org.hsql.jdbcDriver
driverName
  jdbc:HypersonicSQL:database
  
  
  

  mail.smtp.host
  localhost

  

  

  
  
  
  



  
  
  
  

  



Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813


|-+>
| |   kathee   |
| |   <[EMAIL PROTECTED]>  |
| ||
| |   10/30/02 09:45 AM|
| |   Please respond to|
| |   "Tomcat Users|
| |   List"|
| ||
|-+>
  
>--|
  |
  |
  |   To:   Tomcat Users List <[EMAIL PROTECTED]> 
  |
  |   cc:  
  |
  |   Subject:  Re: How do I increase performance on Tomcat?   
  |
  
>--|




Tomcat Tuning Notes (applies to all versions and a good start)

** Exerpted from:
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html.

Please see this for the complete Tomcat User Guide.

Real World Configuration Tips

By default the Tomcat distribution comes with a naive configuration
whose main goal is to promote first time user experience and an "out of
the box" operation... This configuration however is not the best way to
deploy Tomcat on real sites. For example, real sites may require some
performance tuning and site-specific settings (additional path elements
for example). This section will try to get you started by directing you
to the first steps that should be taken before publishing a Tomcat based
site.

Modify and Customize the Batch Files

As stated in the previous sections, the startup scripts are here for
your convenient. Yet, sometimes the scripts that are needed for
deployment should be modified:

To set resource limits such as maximum number of descriptors.
To add new CLASSPATH entries (for example, JDBC drivers).
To add new PATH/LD_LIBRARY_PATH entries (for example, JDBC drivers
DLLs).
To modify the JVM command line settings.
Make sure that you are using a specific JVM (out of the two or three
JVMs installed on your machine).
To switch user from root to some other user using the "su" UNIX command.
Your pet reason.

Some of these changes can be done without explicit changes to the basic
scripts; for example, the tomcat script can use an environment variable
named TOMCAT_OPTS to set extra command line parameters to the JVM (such
as memory setting etc.). On UNIX you can also create a file named
".tomcatrc" in your home directory and Tomcat will take environment
information such as PATH, JAVA_HOME, TOMCAT_HOME and CLASSPATH from this
file. On NT however (and also on UNIX when the modifications are for
something such as the JVM command line) you are forced to rewrite some
of the startup script...

Do not hesitate, just do it.

Modify the Default JVM Settings

The default JVM settings in the tomcat script are very naïve; everything
is left for defaults. There are a few things that you should consider to
improve your Tomcat performance:

Modify your JVM memory configuration. Normally the JVM allocates an
initial size for the Java heap and that's it, if you need more then this
amount of memory you will not get it.
Nevertheless, in loaded sites, giving more memory to the JVM improves
Tomcat's performance. You should use command line parameters such as
-Xms/-Xmx/-ms/-mx to set the minimum/maximum size of the Java heap (and
check to see if the performance was improved).
Modify your JVM threading configuration. The SUN JDK1.2.2 for Linux
comes with support for both, green and native threads.

Re: Compilation error with mod_jk / mod_jserv...

2002-10-30 Thread MURAT BALKAS

There're precompiled versions of mod_jk for
either with mod-ssl
or without mod-ssl.

Get it from :


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

Murat



   

  Subha Gowri  

  <[EMAIL PROTECTED]>To:   
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>   
   cc: 

  10/30/2002 06:49 Subject:  Compilation error with  
mod_jk / mod_jserv... 
  AM   

  Please respond to

  "Tomcat Users

  List"

   

   





>
> Hi,
>
> 1. I am having a problem while compiling mod_jk on Solaris 5.8.
>i'm using Tomcat 3.2.4 & JDK 1.2.2.
> 2. The same problem exists when i tried to compile mod_jserv
> with the same above environment.
>
> Any alternative way to solve the above pbm?
>
> Regards,
> Subha
>
>

--
To unsubscribe, e-mail:   <
mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <
mailto:tomcat-user-help@;jakarta.apache.org>







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




RE: Session start

2002-10-30 Thread Nick Lombard (VSP)
Hi Mauro

At least this one I can answer for you.

You will deffinitely not be able to start a new session for each browser
window opened if you are using session cookies.

The Session cookie specification is slightly different to that of normal
cookies. It shares the same rule that the browser will send the cookie only
to the domain from which it originated. But the session cookie lasts the
lifetime of the browser whereas the normal cookie will be saved. So if a
browser is closed (not just a window of the same browser process) the cookie
will die with it. All the browser windows share the same cookies and if a
session cookie is available for a the domain being accessed the cookie will
be sent along.

I.o.w if your servlet/jsp makes a call to request.getSession(true); the
session ID identified in the request will return the session object stored
at the server identified by the session ID in the request (cookie) if there
is no session id or the session has expired on the server a new session will
be created and a request will be made to the browser to kindly return a
session cookie with the supplied id. If request.getSession(false); is
called, the same process as above occurs but a new session will not be
created.

Thus to understand "who the session id belongs to" the answer is something
like: The session id as a cookie is kept for the lifetime of a browser
process on the client and identified on the server. Different vendor
browsers will all have their own session cookies and thus session ids.

To solve your problem it is correct what Ralph said.
A session cookie cannot be used because the cookie is shared by all browser
windows of the same browser process. The sollution is url rewriting in which
the session id is not sent by a cookie but is sent as a request parameter
and thus if the client opens a new browser window and types in your URL it
will not contain the session id request parameter and thus a new session can
be created on the server. This might not be the case if the client asks for
a link on your application to open in a new window because the parameter
might be in the link.

I hope this makes it slightly clearer.

Nick.
 



-Original Message-
From: Mauro Daniel Ardolino [mailto:mauro@;altersoft.com.ar]
Sent: Wednesday, October 30, 2002 4:38 PM
To: Tomcat Users List
Subject: RE: Session start


OK, but I still have some servlets that have to communicate using
HttpSession setting and getting objects between them.  So if on each call
to different servlets I obtain a new session, then I loose the objects
contained in the session.

So reading your answer I think that the problem is to who belongs the
session id.  Does it belongs to the machine that is browsing? I mean: the
IP address? I don't think so because in multiple text sessions of the same
linux machine, browsing from each the same servlet, I obtain different
sessions.  Does it belongs to the user?  which user?  windows user?  linux
user? other OS users?  No, the same user on different linux sessions, gets
different HttpSession.  So I have to think that depends on the
OS.  E.g. on linux it depends on the linux session.  I'd like to bypass
this behavior opening a session each time a user opens a browser.  I
think I have to rescue a browser window id or something like that from
the HttpServletRequest.

Any ideas?

Thanks,

Mauro



On Wed, 30 Oct 2002, Ralph Einfeldt wrote:

> It's quite simple.
> 
> Whenever a request reaches tomcat that contains no
> session id (url or cookie) or a session id that
> doesn't belongs to a active session, tomcat creates
> a new session.
> 
> To do what you want you have to disable cookies
> in tomcat. This way you will get a new session
> whenever a new window is opened and the url that 
> is used for the window contains no session id.
> 
> Ralph Einfeldt
> Uptime Internet Solution Center GmbH
> Hamburg, Germany
> Hosting, Content Management, Java Consulting
> http://www.uptime-isc.de 
> 
> > -Original Message-
> > From: Mauro Daniel Ardolino [mailto:mauro@;altersoft.com.ar]
> > Sent: Tuesday, October 29, 2002 5:13 PM
> > To: [EMAIL PROTECTED]
> > Subject: Session start
> > 
> > I'm confussed about when does a session starts.
> > 
> > Browsing with netscape on a linux gui, opening 2 browsers, 
> > calling the same servlet, the session is shared.  I want 
> > to start a new  session! I mean every time a user opens a 
> > new browser or a new window of the browser and calls my 
> > servlet, I want to start a new session.
> 
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

> 
> 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


--
To unsubscribe, e-mail:


Dual tomcat 3.3.1 behaviour.

2002-10-30 Thread Carlos J. Ramos
Hello there !

I had been doing some experiments in one of our servers, it is using
apache - mod_jk - tomcat-3.3.1 over a Linux box.

To improve performance I decide to find out what could happened if I
increase the number of tomcat servers, so I have inside the same linux
box...

tomcat-3.3.1(1)
Apache -> mod_jk --<
tomcat-3.3.1(2)

I have been testing this new configuration and find out better
transaction rates...

For instance...

9,21 transactions/second to 11,74 t/s

Each test I done outperform old architecture in order of 20%...

Why? As I think, a dual tomcat configuration must be slower due to
double memory consumption, but figures show me opposite... ¿is this
normal? ¿may I increase the number of java threads, memory... for one
tomcat in order to get the old architecture works as fine as this
"strange" one?




This is some data about my configuration...:

TOMCAT_OPTS="-Xms256m -Xmx512m"



 

   


(The same configuration is used with both architectures).




Thanks in advance.


-- 

Carlos J. Ramos MLS Genasys II Spain, S.A.U.
System AdministratorVentura de la Vega 5
Tel: +34-91-3649100 ext 170 28014 Madrid
Fax: +34-91-3649119Spain
Email: [EMAIL PROTECTED]



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




BUG in jk connector?

2002-10-30 Thread Thomas Heller
Hi there,

i just managed to setup tomcat running an jk ajp13 connector and apache with
mod_jk. now i have a very strange thing on my jsp page

the source says:

[TEST]<%= request.getHeader("Host") %>[/TEST]

when accessing tomcat through the http connector on port 8080 the output is:

[TEST]myhost:8080[/TEST]

when accessing tomcat through the ajp13 connector the output is:

[TEST]15" vspace="6">

uhm? i somehow need the host header and see no reason why this should not
work. i think my setup is correct since everything else is working like
intended.

any ideas?

thanks,
thomas


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




RE: Session start

2002-10-30 Thread Andy Eastham
In my experience, IE 6 creates a new session cookie for each browser
window...

Andy

> -Original Message-
> From: Nick Lombard (VSP) [mailto:nick.lombard@;vcontractor.co.za]
> Sent: 30 October 2002 15:25
> To: Tomcat Users List
> Subject: RE: Session start
>
>
> Hi Mauro
>
> At least this one I can answer for you.
>
> You will deffinitely not be able to start a new session for each browser
> window opened if you are using session cookies.
>
> The Session cookie specification is slightly different to that of normal
> cookies. It shares the same rule that the browser will send the
> cookie only
> to the domain from which it originated. But the session cookie lasts the
> lifetime of the browser whereas the normal cookie will be saved. So if a
> browser is closed (not just a window of the same browser process)
> the cookie
> will die with it. All the browser windows share the same cookies and if a
> session cookie is available for a the domain being accessed the
> cookie will
> be sent along.
>
> I.o.w if your servlet/jsp makes a call to request.getSession(true); the
> session ID identified in the request will return the session object stored
> at the server identified by the session ID in the request
> (cookie) if there
> is no session id or the session has expired on the server a new
> session will
> be created and a request will be made to the browser to kindly return a
> session cookie with the supplied id. If request.getSession(false); is
> called, the same process as above occurs but a new session will not be
> created.
>
> Thus to understand "who the session id belongs to" the answer is something
> like: The session id as a cookie is kept for the lifetime of a browser
> process on the client and identified on the server. Different vendor
> browsers will all have their own session cookies and thus session ids.
>
> To solve your problem it is correct what Ralph said.
> A session cookie cannot be used because the cookie is shared by
> all browser
> windows of the same browser process. The sollution is url
> rewriting in which
> the session id is not sent by a cookie but is sent as a request parameter
> and thus if the client opens a new browser window and types in your URL it
> will not contain the session id request parameter and thus a new
> session can
> be created on the server. This might not be the case if the
> client asks for
> a link on your application to open in a new window because the parameter
> might be in the link.
>
> I hope this makes it slightly clearer.
>
> Nick.
>
>
>
>
> -Original Message-
> From: Mauro Daniel Ardolino [mailto:mauro@;altersoft.com.ar]
> Sent: Wednesday, October 30, 2002 4:38 PM
> To: Tomcat Users List
> Subject: RE: Session start
>
>
> OK, but I still have some servlets that have to communicate using
> HttpSession setting and getting objects between them.  So if on each call
> to different servlets I obtain a new session, then I loose the objects
> contained in the session.
>
> So reading your answer I think that the problem is to who belongs the
> session id.  Does it belongs to the machine that is browsing? I mean: the
> IP address? I don't think so because in multiple text sessions of the same
> linux machine, browsing from each the same servlet, I obtain different
> sessions.  Does it belongs to the user?  which user?  windows user?  linux
> user? other OS users?  No, the same user on different linux sessions, gets
> different HttpSession.  So I have to think that depends on the
> OS.  E.g. on linux it depends on the linux session.  I'd like to bypass
> this behavior opening a session each time a user opens a browser.  I
> think I have to rescue a browser window id or something like that from
> the HttpServletRequest.
>
> Any ideas?
>
> Thanks,
>
> Mauro
>
>
>
> On Wed, 30 Oct 2002, Ralph Einfeldt wrote:
>
> > It's quite simple.
> >
> > Whenever a request reaches tomcat that contains no
> > session id (url or cookie) or a session id that
> > doesn't belongs to a active session, tomcat creates
> > a new session.
> >
> > To do what you want you have to disable cookies
> > in tomcat. This way you will get a new session
> > whenever a new window is opened and the url that
> > is used for the window contains no session id.
> >
> > Ralph Einfeldt
> > Uptime Internet Solution Center GmbH
> > Hamburg, Germany
> > Hosting, Content Management, Java Consulting
> > http://www.uptime-isc.de
> >
> > > -Original Message-
> > > From: Mauro Daniel Ardolino [mailto:mauro@;altersoft.com.ar]
> > > Sent: Tuesday, October 29, 2002 5:13 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Session start
> > >
> > > I'm confussed about when does a session starts.
> > >
> > > Browsing with netscape on a linux gui, opening 2 browsers,
> > > calling the same servlet, the session is shared.  I want
> > > to start a new  session! I mean every time a user opens a
> > > new browser or a new window of the browser and calls my
> > > servlet, I want to start a new session.
> >
> >

RE: Session start

2002-10-30 Thread Nick Lombard (VSP)
Hi Andy

Yes I have also experienced that since IE5 came out if one IE crashes it
does not kill all of the others anymore as it did with IE4 and before. But
It also only works if you launch a new browser and not just say open new
window from the same browser process. So it is dependent on the process and
not just the window of the browser. i.e. if you use a window.open()
javasript, that window will also send trough the session cookie in IE6.


Nick.
But then I saw the light and now I use Linux. ;-)

-Original Message-
From: Andy Eastham [mailto:andy.eastham@;gliant.com]
Sent: Wednesday, October 30, 2002 5:32 PM
To: Tomcat Users List
Subject: RE: Session start


In my experience, IE 6 creates a new session cookie for each browser
window...

Andy

> -Original Message-
> From: Nick Lombard (VSP) [mailto:nick.lombard@;vcontractor.co.za]
> Sent: 30 October 2002 15:25
> To: Tomcat Users List
> Subject: RE: Session start
>
>
> Hi Mauro
>
> At least this one I can answer for you.
>
> You will deffinitely not be able to start a new session for each browser
> window opened if you are using session cookies.
>
> The Session cookie specification is slightly different to that of normal
> cookies. It shares the same rule that the browser will send the
> cookie only
> to the domain from which it originated. But the session cookie lasts the
> lifetime of the browser whereas the normal cookie will be saved. So if a
> browser is closed (not just a window of the same browser process)
> the cookie
> will die with it. All the browser windows share the same cookies and if a
> session cookie is available for a the domain being accessed the
> cookie will
> be sent along.
>
> I.o.w if your servlet/jsp makes a call to request.getSession(true); the
> session ID identified in the request will return the session object stored
> at the server identified by the session ID in the request
> (cookie) if there
> is no session id or the session has expired on the server a new
> session will
> be created and a request will be made to the browser to kindly return a
> session cookie with the supplied id. If request.getSession(false); is
> called, the same process as above occurs but a new session will not be
> created.
>
> Thus to understand "who the session id belongs to" the answer is something
> like: The session id as a cookie is kept for the lifetime of a browser
> process on the client and identified on the server. Different vendor
> browsers will all have their own session cookies and thus session ids.
>
> To solve your problem it is correct what Ralph said.
> A session cookie cannot be used because the cookie is shared by
> all browser
> windows of the same browser process. The sollution is url
> rewriting in which
> the session id is not sent by a cookie but is sent as a request parameter
> and thus if the client opens a new browser window and types in your URL it
> will not contain the session id request parameter and thus a new
> session can
> be created on the server. This might not be the case if the
> client asks for
> a link on your application to open in a new window because the parameter
> might be in the link.
>
> I hope this makes it slightly clearer.
>
> Nick.
>
>
>
>
> -Original Message-
> From: Mauro Daniel Ardolino [mailto:mauro@;altersoft.com.ar]
> Sent: Wednesday, October 30, 2002 4:38 PM
> To: Tomcat Users List
> Subject: RE: Session start
>
>
> OK, but I still have some servlets that have to communicate using
> HttpSession setting and getting objects between them.  So if on each call
> to different servlets I obtain a new session, then I loose the objects
> contained in the session.
>
> So reading your answer I think that the problem is to who belongs the
> session id.  Does it belongs to the machine that is browsing? I mean: the
> IP address? I don't think so because in multiple text sessions of the same
> linux machine, browsing from each the same servlet, I obtain different
> sessions.  Does it belongs to the user?  which user?  windows user?  linux
> user? other OS users?  No, the same user on different linux sessions, gets
> different HttpSession.  So I have to think that depends on the
> OS.  E.g. on linux it depends on the linux session.  I'd like to bypass
> this behavior opening a session each time a user opens a browser.  I
> think I have to rescue a browser window id or something like that from
> the HttpServletRequest.
>
> Any ideas?
>
> Thanks,
>
> Mauro
>
>
>
> On Wed, 30 Oct 2002, Ralph Einfeldt wrote:
>
> > It's quite simple.
> >
> > Whenever a request reaches tomcat that contains no
> > session id (url or cookie) or a session id that
> > doesn't belongs to a active session, tomcat creates
> > a new session.
> >
> > To do what you want you have to disable cookies
> > in tomcat. This way you will get a new session
> > whenever a new window is opened and the url that
> > is used for the window contains no session id.
> >
> > Ralph Einfeldt
> > Uptime Internet Solution Center GmbH
>

RE: BUG in jk connector?

2002-10-30 Thread Nick Lombard (VSP)
Hi Thomas,

You are right that should work if the jsp gets parsed.

You could try request.getServerName() to return the name of the server. 

What happens if you run the tomcat jsp examples snoop example. That should
be the same through the connector and not.

Hope I helped.
Nick.

-Original Message-
From: Thomas Heller [mailto:th.heller@;mx4k.com]
Sent: Wednesday, October 30, 2002 5:31 PM
To: Tomcat Users List
Subject: BUG in jk connector?


Hi there,

i just managed to setup tomcat running an jk ajp13 connector and apache with
mod_jk. now i have a very strange thing on my jsp page

the source says:

[TEST]<%= request.getHeader("Host") %>[/TEST]

when accessing tomcat through the http connector on port 8080 the output is:

[TEST]myhost:8080[/TEST]

when accessing tomcat through the ajp13 connector the output is:

[TEST]15" vspace="6">

uhm? i somehow need the host header and see no reason why this should not
work. i think my setup is correct since everything else is working like
intended.

any ideas?

thanks,
thomas


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Session start

2002-10-30 Thread Jacob Kjome

only under certain circumstances.  If the browser was opened via a ctrl+n 
or via a javascript:window.open() or a target="_blank" then the session 
will definitely be the same as the parent window.  If you re-double-click 
the icon on the desktop to open IE then you start the browser in a new 
memory process.  I think IE5.5 had a setting enabling or disabling starting 
in a new memory process.  I could be wrong on that, though.  I have IE6 
installed on my home machine right now and it doesn't  have that option 
that I can find.  Either way, even with opening in a new memory process, 
I've seen enough weird behavior where IE ends up sharing cookies somehow 
with other browser processes that I never count on that behavior anymore.

Bottom line, close all browsers if you want new in-memory cookieswhich 
session cookies are or use two or more completely separate browsers such as 
IE, Mozilla, or Opera.

Jake

At 03:31 PM 10/30/2002 +, you wrote:
In my experience, IE 6 creates a new session cookie for each browser
window...

Andy

> -Original Message-
> From: Nick Lombard (VSP) [mailto:nick.lombard@;vcontractor.co.za]
> Sent: 30 October 2002 15:25
> To: Tomcat Users List
> Subject: RE: Session start
>
>
> Hi Mauro
>
> At least this one I can answer for you.
>
> You will deffinitely not be able to start a new session for each browser
> window opened if you are using session cookies.
>
> The Session cookie specification is slightly different to that of normal
> cookies. It shares the same rule that the browser will send the
> cookie only
> to the domain from which it originated. But the session cookie lasts the
> lifetime of the browser whereas the normal cookie will be saved. So if a
> browser is closed (not just a window of the same browser process)
> the cookie
> will die with it. All the browser windows share the same cookies and if a
> session cookie is available for a the domain being accessed the
> cookie will
> be sent along.
>
> I.o.w if your servlet/jsp makes a call to request.getSession(true); the
> session ID identified in the request will return the session object stored
> at the server identified by the session ID in the request
> (cookie) if there
> is no session id or the session has expired on the server a new
> session will
> be created and a request will be made to the browser to kindly return a
> session cookie with the supplied id. If request.getSession(false); is
> called, the same process as above occurs but a new session will not be
> created.
>
> Thus to understand "who the session id belongs to" the answer is something
> like: The session id as a cookie is kept for the lifetime of a browser
> process on the client and identified on the server. Different vendor
> browsers will all have their own session cookies and thus session ids.
>
> To solve your problem it is correct what Ralph said.
> A session cookie cannot be used because the cookie is shared by
> all browser
> windows of the same browser process. The sollution is url
> rewriting in which
> the session id is not sent by a cookie but is sent as a request parameter
> and thus if the client opens a new browser window and types in your URL it
> will not contain the session id request parameter and thus a new
> session can
> be created on the server. This might not be the case if the
> client asks for
> a link on your application to open in a new window because the parameter
> might be in the link.
>
> I hope this makes it slightly clearer.
>
> Nick.
>
>
>
>
> -Original Message-
> From: Mauro Daniel Ardolino [mailto:mauro@;altersoft.com.ar]
> Sent: Wednesday, October 30, 2002 4:38 PM
> To: Tomcat Users List
> Subject: RE: Session start
>
>
> OK, but I still have some servlets that have to communicate using
> HttpSession setting and getting objects between them.  So if on each call
> to different servlets I obtain a new session, then I loose the objects
> contained in the session.
>
> So reading your answer I think that the problem is to who belongs the
> session id.  Does it belongs to the machine that is browsing? I mean: the
> IP address? I don't think so because in multiple text sessions of the same
> linux machine, browsing from each the same servlet, I obtain different
> sessions.  Does it belongs to the user?  which user?  windows user?  linux
> user? other OS users?  No, the same user on different linux sessions, gets
> different HttpSession.  So I have to think that depends on the
> OS.  E.g. on linux it depends on the linux session.  I'd like to bypass
> this behavior opening a session each time a user opens a browser.  I
> think I have to rescue a browser window id or something like that from
> the HttpServletRequest.
>
> Any ideas?
>
> Thanks,
>
> Mauro
>
>
>
> On Wed, 30 Oct 2002, Ralph Einfeldt wrote:
>
> > It's quite simple.
> >
> > Whenever a request reaches tomcat that contains no
> > session id (url or cookie) or a session id that
> > doesn't belongs to a active session, tomcat creates
> > a n

RE: OFF-TOPIC: testing

2002-10-30 Thread jon wingfield
Or you could use the mockobjects project (www.mockobjects.com) to write
JUnit testcases which require no physical database connection. You can set
up the sql statements you expect your code to execute and the data you
expect to be returned. Using mock objects you can also simulate database
failure cases without pulling out network cables, killing the database etc
;)
Take a look at the paper
http://www.mockobjects.com/papers/jdbc_testfirst.html

-Original Message-
From: Ralph Einfeldt [mailto:ralph.einfeldt@;uptime-isc.de]
Sent: 30 October 2002 13:00
To: Tomcat Users List
Subject: RE: OFF-TOPIC: testing


The short answer is yes.

The longer answer is that we have scripts that sets up
a site and a database with a well defined content (that's
done in less than 2 minutes) from scratch and run our
testcases against that site and database.

> -Original Message-
> From: Felipe Schnack [mailto:felipes@;ritterdosreis.br]
> Sent: Wednesday, October 30, 2002 12:33 PM
> To: Tomcat Users List
> Subject: OFF-TOPIC: testing
>
> I mean, you insert test data in the test case?
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Dual tomcat 3.3.1 behaviour.

2002-10-30 Thread Ralph Einfeldt
One effect that might explain what you describe is
garbage collection. If you have 2 instances of tomcat
each of them needs less memory than one tomcat handling 
the same amount of traffic. If you have the same max
heap size in both test cases the garbage collection will 
happen less frequently. If you decrease the heapsize 
for the two instance test the gc will be faster.

If this is the reason you can try to play with the 
different gc variants and parameters of the vm.

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

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


Another guess is that with two tomcats you get
around synchronized code block that serialize
request that hit this blocks. (If there is 
something done in this block that isn't 100% 
cpu like IO/Database)

To verify that you would need a good profiler.

If this is the case you can try to reduce the time 
that is spent in such code blocks. (In your own code and
in the tomcat code (Good luck if you try the later)).

Third guess: this behaviour could indicate that
the thread implementation isn't optimal on your 
combination of os and vm.

Not much chances in this case :(

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

> -Original Message-
> From: Carlos J. Ramos [mailto:cjramos@;genasys.com]
> Sent: Wednesday, October 30, 2002 4:30 PM
> To: Tomcat Users List
> Subject: Dual tomcat 3.3.1 behaviour.
> 
> 
> Each test I done outperform old architecture in order of 20%...
> 
> Why? As I think, a dual tomcat configuration must be slower due to
> double memory consumption, but figures show me opposite... ¿is this
> normal? ¿may I increase the number of java threads, memory... for one
> tomcat in order to get the old architecture works as fine as this
> "strange" one?
> 

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




Connecting to mysql - Server configuration denies access to data source

2002-10-30 Thread Kevin Passey
Has anybody seen this.

I've set the mysql tables correctly.

Can anybody shed any light on this.

Thanks

Kevin Passey
KDP Software Limited
Tel: 01273 712830
Fax: 08700 510103
mailto:kpassey@;kdpsoftware.co.uk
http://www.kdpsoftware.co.uk

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




RE: Tomcat 4.1.x not allowing symlinks for static content.

2002-10-30 Thread Nick Lombard (VSP)
Typical me having problems that no one else has experienced ever. I hope
someone still sees this post maybe I should post it on the developer list ?

Thank you for all who read this post.

It is still in an open state and I still haven't found any solution to the
problem.

Nick.

-Original Message-
From: Nick Lombard (VSP) 
Sent: Wednesday, October 30, 2002 2:29 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.x not allowing symlinks for static content.


Good day.

We are experiencing problems with symlinks in an application (context)
directory in that tomcat refuses to follow the link and returns that the
resource cannot be found.

We are running Tomcat 4.1.12, JDK 1.4.1.01 on Linux.

The Release notes states the following.

---
Symlinking static resources:
---

Unix symlinks will not work when used in a web application to link resources
located outside the web application root directory.

This behavior is optional, and the "allowLinking" flag may be used to
disable
the check.  


What we are doing is placing a symlink for common resources accross our
applications in each webapp. This contains stylesheets, images etc. These
sources are served as if they belong to the application ie. through the
symbolic link.

We had no problems with Tomcat 4.0.x but now it seems that symlinks are
disabled by default.

The above entry found in the release notes stating that the "allowLinking"
flag may be used to disable the check is all fine and well if I can only
work out where to set this flag.  No further mention can be found in the
documentation or anywhere on this list (If I didn't miss it). 

Is anyone else experiencing the same problem and could you please reply with
a solution ?

Thank you in advance.
Nick Lombard.

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Warning running startup.bat

2002-10-30 Thread Paul Abrilla

I downloaded & installed j2sdk 1.4.1 and jakarta
tomcat 4.0. I have setup the envinronment variables.
However when I run the
c:\jakarta-tomcat-4.0\bin\startup.bat, i get the popup window:

"c:\j2sdk1.4.1\bin\java.exe is not a valid Win32 application"

Why do I get this message? Any advise will be
appreciated. Thanks in advance.

/Paul
Acknowledge-To: <[EMAIL PROTECTED]>

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




RE: Tomcat 4.1.x not allowing symlinks for static content.

2002-10-30 Thread Turner, John

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

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

John

> -Original Message-
> From: Nick Lombard (VSP) [mailto:nick.lombard@;vcontractor.co.za]
> Sent: Wednesday, October 30, 2002 11:13 AM
> To: Tomcat Users List
> Subject: RE: Tomcat 4.1.x not allowing symlinks for static content.
> 
> 
> Typical me having problems that no one else has experienced 
> ever. I hope
> someone still sees this post maybe I should post it on the 
> developer list ?
> 
> Thank you for all who read this post.
> 
> It is still in an open state and I still haven't found any 
> solution to the
> problem.
> 
> Nick.
> 
> -Original Message-
> From: Nick Lombard (VSP) 
> Sent: Wednesday, October 30, 2002 2:29 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 4.1.x not allowing symlinks for static content.
> 
> 
> Good day.
> 
> We are experiencing problems with symlinks in an application (context)
> directory in that tomcat refuses to follow the link and 
> returns that the
> resource cannot be found.
> 
> We are running Tomcat 4.1.12, JDK 1.4.1.01 on Linux.
> 
> The Release notes states the following.
> 
> ---
> Symlinking static resources:
> ---
> 
> Unix symlinks will not work when used in a web application to 
> link resources
> located outside the web application root directory.
> 
> This behavior is optional, and the "allowLinking" flag may be used to
> disable
> the check.  
> 
> 
> What we are doing is placing a symlink for common resources 
> accross our
> applications in each webapp. This contains stylesheets, 
> images etc. These
> sources are served as if they belong to the application ie. 
> through the
> symbolic link.
> 
> We had no problems with Tomcat 4.0.x but now it seems that 
> symlinks are
> disabled by default.
> 
> The above entry found in the release notes stating that the 
> "allowLinking"
> flag may be used to disable the check is all fine and well if 
> I can only
> work out where to set this flag.  No further mention can be 
> found in the
> documentation or anywhere on this list (If I didn't miss it). 
> 
> Is anyone else experiencing the same problem and could you 
> please reply with
> a solution ?
> 
> Thank you in advance.
> Nick Lombard.
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


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




RE: Warning running startup.bat

2002-10-30 Thread Wagoner, Mark
Sounds like the executable is corrupt.  If you run "java -version" do you
get an error?  You may need to reinstall the JDK.

-Original Message-
From: Paul Abrilla [mailto:APCXU@;CUNYVM.CUNY.EDU]
Sent: Wednesday, October 30, 2002 11:15 AM
To: [EMAIL PROTECTED]
Subject: Warning running startup.bat



I downloaded & installed j2sdk 1.4.1 and jakarta
tomcat 4.0. I have setup the envinronment variables.
However when I run the
c:\jakarta-tomcat-4.0\bin\startup.bat, i get the popup window:

"c:\j2sdk1.4.1\bin\java.exe is not a valid Win32 application"

Why do I get this message? Any advise will be
appreciated. Thanks in advance.

/Paul
Acknowledge-To: <[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: OFF-TOPIC: testing

2002-10-30 Thread Ralph Einfeldt
But keep in mind that it is just an additional option 
not a replacement. Mockobjects can't replace the test 
for a real write/read check to the database.

> -Original Message-
> From: jon wingfield [mailto:jon.wingfield@;mkodo.com]
> Sent: Wednesday, October 30, 2002 4:50 PM
> To: Tomcat Users List
> Subject: RE: OFF-TOPIC: testing
> 
> 
> Or you could use the mockobjects project 
> (www.mockobjects.com) to write
> JUnit testcases which require no physical database 
> connection. You can set up the sql statements you expect
> your code to execute and the data you expect to be 
> returned. Using mock objects you can also simulate database
> failure cases without pulling out network cables, killing the 
> database etc
;)

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




RE: Tomcat 4.1.x not allowing symlinks for static content.

2002-10-30 Thread Shapira, Yoav
Hi,
Other people have run into this.  The allowLinking attribute goes inside
the Context element.  For example, from someone's else's server.xml:

  
  


A mailing list archive search would show you more information.  For
example,
http://marc.theaimsgroup.com/?l=tomcat-user&w=2&r=1&s=allowLinking&q=b

I agree that this should be better documented.  There's also a possibly
relevant bug in the FileDirContext implementation itself.

Finally, please do not follow the algorithm of "post to the user list,
and if I get no answer post to the developer list".  It's not likely to
increase your chance of getting a response, but it may annoy a few
people ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Nick Lombard (VSP) [mailto:nick.lombard@;vcontractor.co.za]
>Sent: Wednesday, October 30, 2002 11:13 AM
>To: Tomcat Users List
>Subject: RE: Tomcat 4.1.x not allowing symlinks for static content.
>
>Typical me having problems that no one else has experienced ever. I
hope
>someone still sees this post maybe I should post it on the developer
list ?
>
>Thank you for all who read this post.
>
>It is still in an open state and I still haven't found any solution to
the
>problem.
>
>Nick.
>
>-Original Message-
>From: Nick Lombard (VSP)
>Sent: Wednesday, October 30, 2002 2:29 PM
>To: [EMAIL PROTECTED]
>Subject: Tomcat 4.1.x not allowing symlinks for static content.
>
>
>Good day.
>
>We are experiencing problems with symlinks in an application (context)
>directory in that tomcat refuses to follow the link and returns that
the
>resource cannot be found.
>
>We are running Tomcat 4.1.12, JDK 1.4.1.01 on Linux.
>
>The Release notes states the following.
>
>---
>Symlinking static resources:
>---
>
>Unix symlinks will not work when used in a web application to link
>resources
>located outside the web application root directory.
>
>This behavior is optional, and the "allowLinking" flag may be used to
>disable
>the check.
>
>
>What we are doing is placing a symlink for common resources accross our
>applications in each webapp. This contains stylesheets, images etc.
These
>sources are served as if they belong to the application ie. through the
>symbolic link.
>
>We had no problems with Tomcat 4.0.x but now it seems that symlinks are
>disabled by default.
>
>The above entry found in the release notes stating that the
"allowLinking"
>flag may be used to disable the check is all fine and well if I can
only
>work out where to set this flag.  No further mention can be found in
the
>documentation or anywhere on this list (If I didn't miss it).
>
>Is anyone else experiencing the same problem and could you please reply
>with
>a solution ?
>
>Thank you in advance.
>Nick Lombard.
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


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


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


RE: Warning running startup.bat

2002-10-30 Thread Paul Abrilla

Thanks for the speedy reply. I did get the same warning message
when I ran "java - version" and then I get the message "access denied".

/Paul

On Wed, 30 Oct 2002 11:18:49 -0500 Wagoner, Mark said:
>Sounds like the executable is corrupt.  If you run "java -version" do you
>get an error?  You may need to reinstall the JDK.
>
>-Original Message-
>From: Paul Abrilla [mailto:APCXU@;CUNYVM.CUNY.EDU]
>Sent: Wednesday, October 30, 2002 11:15 AM
>To: [EMAIL PROTECTED]
>Subject: Warning running startup.bat
>
>
>
>I downloaded & installed j2sdk 1.4.1 and jakarta
>tomcat 4.0. I have setup the envinronment variables.
>However when I run the
>c:\jakarta-tomcat-4.0\bin\startup.bat, i get the popup window:
>
>"c:\j2sdk1.4.1\bin\java.exe is not a valid Win32 application"
>
>Why do I get this message? Any advise will be
>appreciated. Thanks in advance.
>
>/Paul
>Acknowledge-To: <[EMAIL PROTECTED]>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
Acknowledge-To: <[EMAIL PROTECTED]>

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




RE: Warning running startup.bat

2002-10-30 Thread Turner, John

That sounds like permissions to me.  Are execute permissions enabled on
c:\jakarta-tomcat-4.0 or c:\jakarta-tomcat-4.0\bin?

John


> -Original Message-
> From: Paul Abrilla [mailto:APCXU@;CUNYVM.CUNY.EDU]
> Sent: Wednesday, October 30, 2002 11:27 AM
> To: Tomcat Users List
> Subject: RE: Warning running startup.bat
> 
> 
> 
> Thanks for the speedy reply. I did get the same warning message
> when I ran "java - version" and then I get the message 
> "access denied".
> 
> /Paul
> 
> On Wed, 30 Oct 2002 11:18:49 -0500 Wagoner, Mark said:
> >Sounds like the executable is corrupt.  If you run "java 
> -version" do you
> >get an error?  You may need to reinstall the JDK.
> >
> >-Original Message-
> >From: Paul Abrilla [mailto:APCXU@;CUNYVM.CUNY.EDU]
> >Sent: Wednesday, October 30, 2002 11:15 AM
> >To: [EMAIL PROTECTED]
> >Subject: Warning running startup.bat
> >
> >
> >
> >I downloaded & installed j2sdk 1.4.1 and jakarta
> >tomcat 4.0. I have setup the envinronment variables.
> >However when I run the
> >c:\jakarta-tomcat-4.0\bin\startup.bat, i get the popup window:
> >
> >"c:\j2sdk1.4.1\bin\java.exe is not a valid Win32 application"
> >
> >Why do I get this message? Any advise will be
> >appreciated. Thanks in advance.
> >
> >/Paul
> >Acknowledge-To: <[EMAIL PROTECTED]>
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
> >
> >--
> >To unsubscribe, e-mail:   

>For additional commands, e-mail:

>
Acknowledge-To: <[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




[Error] gnu/regexp/REException issue

2002-10-30 Thread François Vallet
Who has ever seen this error
Thanks in advance...
F.

description The server encountered an internal error () that prevented it
from fulfilling this request.
exception 
org.apache.jasper.JasperException: gnu/regexp/REException
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:484)
root cause 
javax.servlet.ServletException: gnu/regexp/REException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:497)
at org.apache.jsp.Connect_jsp._jspService(Connect_jsp.java:318)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase

RE: Warning running startup.bat

2002-10-30 Thread Paul Abrilla

How do I check or enable?


On Wed, 30 Oct 2002 11:32:22 -0500 Turner, John said:
>
>That sounds like permissions to me.  Are execute permissions enabled on
>c:\jakarta-tomcat-4.0 or c:\jakarta-tomcat-4.0\bin?
>
>John
>
>
>> -Original Message-
>> From: Paul Abrilla [mailto:APCXU@;CUNYVM.CUNY.EDU]
>> Sent: Wednesday, October 30, 2002 11:27 AM
>>
>> Thanks for the speedy reply. I did get the same warning message
>> when I ran "java - version" and then I get the message
>> "access denied".
>>
>> /Paul
>>
>> On Wed, 30 Oct 2002 11:18:49 -0500 Wagoner, Mark said:
>> >Sounds like the executable is corrupt.  If you run "java
>> -version" do you
>> >get an error?  You may need to reinstall the JDK.
>> >
>> >-Original Message-
>> >From: Paul Abrilla [mailto:APCXU@;CUNYVM.CUNY.EDU]
>> >Sent: Wednesday, October 30, 2002 11:15 AM
>> >
>> >I downloaded & installed j2sdk 1.4.1 and jakarta
>> >tomcat 4.0. I have setup the envinronment variables.
>> >However when I run the
>> >c:\jakarta-tomcat-4.0\bin\startup.bat, i get the popup window:
>> >
>> >"c:\j2sdk1.4.1\bin\java.exe is not a valid Win32 application"
>> >
>> >Why do I get this message? Any advise will be
>> >appreciated. Thanks in advance.
>> >
>> >/Paul
Acknowledge-To: <[EMAIL PROTECTED]>

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




RE: Warning running startup.bat

2002-10-30 Thread Turner, John

Right-click on the folder, choose properties.  It's in there somewhere, I'm
not a Windows person, so I can't help past that.

John

> -Original Message-
> From: Paul Abrilla [mailto:APCXU@;CUNYVM.CUNY.EDU]
> Sent: Wednesday, October 30, 2002 11:34 AM
> To: Tomcat Users List
> Subject: RE: Warning running startup.bat
> 
> 
> 
> How do I check or enable?
> 
> 
> On Wed, 30 Oct 2002 11:32:22 -0500 Turner, John said:
> >
> >That sounds like permissions to me.  Are execute permissions 
> enabled on
> >c:\jakarta-tomcat-4.0 or c:\jakarta-tomcat-4.0\bin?
> >
> >John
> >
> >
> >> -Original Message-
> >> From: Paul Abrilla [mailto:APCXU@;CUNYVM.CUNY.EDU]
> >> Sent: Wednesday, October 30, 2002 11:27 AM
> >>
> >> Thanks for the speedy reply. I did get the same warning message
> >> when I ran "java - version" and then I get the message
> >> "access denied".
> >>
> >> /Paul
> >>
> >> On Wed, 30 Oct 2002 11:18:49 -0500 Wagoner, Mark said:
> >> >Sounds like the executable is corrupt.  If you run "java
> >> -version" do you
> >> >get an error?  You may need to reinstall the JDK.
> >> >
> >> >-Original Message-
> >> >From: Paul Abrilla [mailto:APCXU@;CUNYVM.CUNY.EDU]
> >> >Sent: Wednesday, October 30, 2002 11:15 AM
> >> >
> >> >I downloaded & installed j2sdk 1.4.1 and jakarta
> >> >tomcat 4.0. I have setup the envinronment variables.
> >> >However when I run the
> >> >c:\jakarta-tomcat-4.0\bin\startup.bat, i get the popup window:
> >> >
> >> >"c:\j2sdk1.4.1\bin\java.exe is not a valid Win32 application"
> >> >
> >> >Why do I get this message? Any advise will be
> >> >appreciated. Thanks in advance.
> >> >
> >> >/Paul
> Acknowledge-To: <[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


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




RE: Warning running startup.bat

2002-10-30 Thread Turner, John

Are you an admin on your machine?  Or just a regular user?

It might be quicker to just download the SDK again and stick it somewhere
different and see if it happens again.

John


> -Original Message-
> From: Paul Abrilla [mailto:APCXU@;CUNYVM.CUNY.EDU]
> Sent: Wednesday, October 30, 2002 11:34 AM
> To: Tomcat Users List
> Subject: RE: Warning running startup.bat
> 
> 
> 
> How do I check or enable?
> 
> 
> On Wed, 30 Oct 2002 11:32:22 -0500 Turner, John said:
> >
> >That sounds like permissions to me.  Are execute permissions 
> enabled on
> >c:\jakarta-tomcat-4.0 or c:\jakarta-tomcat-4.0\bin?
> >
> >John
> >
> >
> >> -Original Message-
> >> From: Paul Abrilla [mailto:APCXU@;CUNYVM.CUNY.EDU]
> >> Sent: Wednesday, October 30, 2002 11:27 AM
> >>
> >> Thanks for the speedy reply. I did get the same warning message
> >> when I ran "java - version" and then I get the message
> >> "access denied".
> >>
> >> /Paul
> >>
> >> On Wed, 30 Oct 2002 11:18:49 -0500 Wagoner, Mark said:
> >> >Sounds like the executable is corrupt.  If you run "java
> >> -version" do you
> >> >get an error?  You may need to reinstall the JDK.
> >> >
> >> >-Original Message-
> >> >From: Paul Abrilla [mailto:APCXU@;CUNYVM.CUNY.EDU]
> >> >Sent: Wednesday, October 30, 2002 11:15 AM
> >> >
> >> >I downloaded & installed j2sdk 1.4.1 and jakarta
> >> >tomcat 4.0. I have setup the envinronment variables.
> >> >However when I run the
> >> >c:\jakarta-tomcat-4.0\bin\startup.bat, i get the popup window:
> >> >
> >> >"c:\j2sdk1.4.1\bin\java.exe is not a valid Win32 application"
> >> >
> >> >Why do I get this message? Any advise will be
> >> >appreciated. Thanks in advance.
> >> >
> >> >/Paul
> Acknowledge-To: <[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


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




RE: Tomcat 4.1.x not allowing symlinks for static content.

2002-10-30 Thread Nick Lombard (VSP)
Thank you all for the assistance.

The static content works now but the include files via directive <%@ page
import="symlink/includefile.jsp"%> 
does not work so I guess we are staying with 4.0 for now.

For some reason I've been searching the mailing list on mikal.org as the
link I got from jakarta.apache.org. It is clear that that list is outdated. 

I have bookmarked http://marc.theaimsgroup.com/?l=tomcat-user and will be
keeping an eye on you guys from there.

Keep up the support.

Thank you again.
Nick.

-Original Message-
From: Shapira, Yoav [mailto:Yoav.Shapira@;mpi.com]
Sent: Wednesday, October 30, 2002 6:23 PM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.x not allowing symlinks for static content.


Hi,
Other people have run into this.  The allowLinking attribute goes inside
the Context element.  For example, from someone's else's server.xml:

  
  


A mailing list archive search would show you more information.  For
example,
http://marc.theaimsgroup.com/?l=tomcat-user&w=2&r=1&s=allowLinking&q=b

I agree that this should be better documented.  There's also a possibly
relevant bug in the FileDirContext implementation itself.

Finally, please do not follow the algorithm of "post to the user list,
and if I get no answer post to the developer list".  It's not likely to
increase your chance of getting a response, but it may annoy a few
people ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Nick Lombard (VSP) [mailto:nick.lombard@;vcontractor.co.za]
>Sent: Wednesday, October 30, 2002 11:13 AM
>To: Tomcat Users List
>Subject: RE: Tomcat 4.1.x not allowing symlinks for static content.
>
>Typical me having problems that no one else has experienced ever. I
hope
>someone still sees this post maybe I should post it on the developer
list ?
>
>Thank you for all who read this post.
>
>It is still in an open state and I still haven't found any solution to
the
>problem.
>
>Nick.
>
>-Original Message-
>From: Nick Lombard (VSP)
>Sent: Wednesday, October 30, 2002 2:29 PM
>To: [EMAIL PROTECTED]
>Subject: Tomcat 4.1.x not allowing symlinks for static content.
>
>
>Good day.
>
>We are experiencing problems with symlinks in an application (context)
>directory in that tomcat refuses to follow the link and returns that
the
>resource cannot be found.
>
>We are running Tomcat 4.1.12, JDK 1.4.1.01 on Linux.
>
>The Release notes states the following.
>
>---
>Symlinking static resources:
>---
>
>Unix symlinks will not work when used in a web application to link
>resources
>located outside the web application root directory.
>
>This behavior is optional, and the "allowLinking" flag may be used to
>disable
>the check.
>
>
>What we are doing is placing a symlink for common resources accross our
>applications in each webapp. This contains stylesheets, images etc.
These
>sources are served as if they belong to the application ie. through the
>symbolic link.
>
>We had no problems with Tomcat 4.0.x but now it seems that symlinks are
>disabled by default.
>
>The above entry found in the release notes stating that the
"allowLinking"
>flag may be used to disable the check is all fine and well if I can
only
>work out where to set this flag.  No further mention can be found in
the
>documentation or anywhere on this list (If I didn't miss it).
>
>Is anyone else experiencing the same problem and could you please reply
>with
>a solution ?
>
>Thank you in advance.
>Nick Lombard.
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


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




RE: DBCP Woes!

2002-10-30 Thread Mike Jackson
I'll second that statement.  Where I use it via straight jdbc, I've never,
and I repeat never, heard about anyone having a negative experience with.
Or even "ok" experiences.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Iain Sanderson [mailto:sande010@;mc.duke.edu]
> Sent: Tuesday, October 29, 2002 4:58 PM
> To: Tomcat Users List
> Subject: RE: DBCP Woes!
>
>
>
> Neal,
>
> I use Poolman and have found it excellent. A testimony to it's usefulness
> is that folk are still recommending it 9 months after its
> developer stopped
> supporting it and issued the final 2.1b release.
>
> You'll find that Poolman's connection code is near identical to that which
> you've shown, so your change to Poolman will hardly require any
> "investment".
>
> Your NamingException is may be related to a JNDI naming resource. Check
> your JNDI.properties file if there is one.
>
> Iain.
>
>
>
>
>
> "neal" <[EMAIL PROTECTED]> on 10/29/2002 08:36:02 PM
>
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
>
> To:"Tomcat Users List" <[EMAIL PROTECTED]>
> cc:
>
> Subject:RE: DBCP Woes!
>
>
> Oh yeah, and this is the source code for creating a connection:
>
> protected Connection getConnection() throws NamingException,
> SQLException, Exception {
> this.CONTEXT  = new InitialContext();
> Connection conn = null;
> if(this.CONTEXT == null ) throw new Exception("Context needed to
> establish conection");
> DataSource ds = (DataSource)CONTEXT.lookup("java:comp/env/jdbc/" +
> this.DATABASE);
>
> if (ds != null) {
> conn = ds.getConnection();
> }else{
> return null;
> }
> return conn;
> }
>
> So it would appear it is blowing up on the line where its attempting to
> create datasource.  I read another Deja post not too long ago
> where someone
> was saying that this error is often caused by not having the right context
> path reference in the code for creating a Datasource.  Someone else said
> that you must define your datasource via the web.xml and then its
> avail for
> reference.  BUT, why was it working before (and why is it still working on
> my laptop) with out the web.xml reference, and with these exact context
> paths?
>
> So confusing.  :(
>
> Neal
>
> -Original Message-
> From: neal [mailto:nealcabage@;yahoo.com]
> Sent: Tuesday, October 29, 2002 5:16 PM
> To: Tomcat Users List
> Subject: RE: DBCP Woes!
>
>
> My setup?  I'm using MySQL 3.23 and the latest version of (don't
> recall the
> number) Connector/J for my driver.  This is of course all sitting inside
> tomcat 4.0.4.  I have manually installed the DBCP, collections
> and whatever
> other support classes I needed for DBCP.
>
> I have configured DBCP via my server.xml file as such (below).  When I was
> recieving the error from (org.hsql) that was because I was also attempting
> to creating a reference to the resource within my web.xml file.  I have
> since removed it and that error has ceased.  The error I am currently
> experiencing (javax.naming.NameNotFoundException: Name jdbc is
> not bound in
> this Context) was happening last night.  *Seemed* to spontaneously got
> away,
> then this morning I loaded a few classes and rebooted and it
> started again.
> I have since removed those classes but the error is persisting.
>
> Its worth noting that I can still obtain connections directly
> through JDBC,
> without the use of DBCP, no problem.
>
> Please let me know if you can think of anything
>
> Thanks!
> Neal
>
>
> 
>
> directory="logs"  prefix="dbcp_" suffix=".log"
> timestamp="true" />
>
> type="javax.sql.DataSource"
> />
>
>  
>factory
>org.apache.commons.dbcp.BasicDataSourceFactory
>  
>  
>maxActive
>100
>  
>  
>maxIdle
>3
>  
>  
>maxWait
>100
>  
>  
>   username
>   x
>  
>  
>   password
>   x
>  
>  
> driverClassName
> com.mysql.jdbc.Driver
>  
>  
>url
>jdbc:mysql:///hotel
>  
> 
>
>
>  
>
> -Original Message-
> From: micael [mailto:caraunltd@;harbornet.com]
> Sent: Tuesday, October 29, 2002 4:06 PM
> To: Tomcat Users List
> Subject: RE: DBCP Woes!
>
>
> I don't know your setup at all, neal, but this is a hypersonic database
> reference.  What is your setup?
>
> At 04:31 PM 10/29/2002 -0800, you wrote:
> >I considered poolman but it doesn't look like its supported or even
> >available from the website to download anymore.  Is this the
> case?  I have
> >heard good things about it.
> >
> >Don't suppose you understand this JDBC conext binding error, do you?
> >
> >Thanks.
> >Neal
> >
> >
> >-Original Message-
> >From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
> >Sent: Tuesday, October 29, 2002 3:25 PM
> >To: Tomcat Users List
> >Subject: RE: DBCP Woes!
> >
> >
> >Poolman wo

RE: DBCP Woes! Ahaa!

2002-10-30 Thread Mike Jackson
If it's the common setup then it's probably 10 connections.  If it's by
webapp
then it ought to be 50 connections.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: neal [mailto:nealcabage@;yahoo.com]
> Sent: Wednesday, October 30, 2002 2:22 AM
> To: Tomcat Users List
> Subject: RE: DBCP Woes! Ahaa!
>
>
> One last question on the topic:
>
> If I configure the conn pooling resources indepdently for 5
> different Hosts,
> when I set the maxActive parameter, will this be the maxActive connections
> *per* Host, or total?  If I set the maxActive to 10 for 5
> websites,have am I
> effectively allocating 50 connections?
>
> Thanks
> Neal
>
>
> -Original Message-
> From: Craig R. McClanahan [mailto:craigmcc@;apache.org]
> Sent: Tuesday, October 29, 2002 10:16 PM
> To: Tomcat Users List
> Subject: RE: DBCP Woes! Ahaa!
>
>
>
>
> On Tue, 29 Oct 2002, neal wrote:
>
> > Date: Tue, 29 Oct 2002 18:48:20 -0800
> > From: neal <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Subject: RE: DBCP Woes! Ahaa!
> >
> > AHAAA!
> >
> > I figured it out ... well ... sort of.
> >
> > My primary content is www.hotel.us.  But, I also configured hotel.us,
> > hotel.us.com, etc to all point to www.hotel.us.  It turns out that the
> times
> > I was getting the JDBC not bound to Context error, were the times I was
> > going to the alternat domains, not www.hotel.us!
> >
> > Ok, so that is the issue!  Pheew!  BUT, here's another question.  Must I
> > configure DBCP in every single one of those other hosts?  I was hoping I
> > could jsut switch crossContext=true on the Context containing
> the correct
> > setup.
>
> The crossContext attribute has nothing at all to do with JNDI resources --
> it only determines whether the ServletContext.getContext() method will
> unconditionally return null or not.  See the documentation (hyperlink
> listed below) for more details.
>
> JNDI resources for each  must be configured individually.  If you
> are using Tomcat 4.1, there is a mechanism to share the physical resources
> themselves (such as a JDBC data source) by defining the resources in the
>  section at the top of server.xml, and then using a
>  element nested inside each  element that links to
> it (analogous to a symbolic link in a filesystem).
>
> > Perhaps for this to work the contexts must all be nested within the
> > same host? But to have different urls resolve the only way I know to do
> it,
> > is via a seperate host node, per domain:
> >
> >   
> >   
> >   
> >
> > Any thoughts?
> >
>
> Are all (or most) of the domain names supposed to resolve to the exact
> same set of webapps?  If so, you're probably best off using the
> "defaulthost"  capability of the  element:
>
> 
> 
> ...
> 
> 
> ...
> 
> 
>
> In this scenario, any request received by this Tomcat instance, for any
> unrecognized host name will be forwarded to the hotel.us domain.  You can
> explicitly list the separate hosts that should not be shared, as
> illustrated with the "other.com" entry above.
>
> For more info about all of the server.xml options, see the docs included
> in the standard Tomcat distribution at:
>
>   http://localhost:8080/tomcat-docs/config/
>
> or online:
>
>   http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/
>   http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/
>
>
> > Thanks everyone for your help
> >
> > Neal
>
> Craig
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




tc3.3.2dev: Exception: getOutputstream() called twice

2002-10-30 Thread Power-Netz \(Schwarz\)

Hi , I get this exception from tc 3.3.2dev:

java.lang.IllegalStateException: getOutputStream() has already been called
at
org.apache.tomcat.facade.HttpServletResponseFacade.getWriter(HttpServletResp
onseFacade.java:199)
at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:166)
at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:158)
at display_11._jspService(display_11.java:148)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:570)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:481)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I
nterceptor.java:176)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:536)

for this code : ( decompiled from work/.../...class )


httpservletresponse.setHeader("Cache-Control", "no-cache");
httpservletresponse.setHeader("Expires", "0");
httpservletresponse.setContentType(s1); // s1 depends on the
type of data outputed ( image/gif or text/plain )
httpservletresponse.setHeader("Content-length",
String.valueOf(abyte0.length));
httpservletresponse.getOutputStream().write(abyte0);
}

After this is no output from the jsp, but jasper added an "\n" output to
jspWriter.

The tricky part:

The exception is shown if output TEXT , the TEXT is not outputed.
The exception is NOT SHOWN if i output IMAGE/GIF , but the GIF is!

In both cases the Exception is thrown and logged in stdout.log!

I worked around that problem by outputing texts with out.write() so it does
no longer care, but i think its
a bug in TC..

cu M.Schwarz


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




RE: ques: Tomcat Apache 4.0.6 v 4.1.12

2002-10-30 Thread Dodd, Andrew
OK a bit more detail,

When using 4.1.12 the region implementation does not work i.e. the JSP page
is not constructed as you would expect with the corresponding header /
footer / navbar / body. There are no error messages in this case it is
simply that the standard composite view 'regiondefinitions' file and
'template' is not correctly including the elements as it should.

rgs

-Original Message-
From: Ralph Einfeldt [mailto:ralph.einfeldt@;uptime-isc.de]
Sent: 30 October 2002 12:44
To: Tomcat Users List
Subject: RE: ques: Tomcat Apache 4.0.6 v 4.1.12


4.0 and 4.1 implment the same specs: JSP 1.2, JSDK 2.3

Both specs are backwards compatible with their 
predessor.

Nevertheless some things that are not part of the spec 
have changed between 4.0 and 4.1.

To know what might cause your problems you should be more 
specific what exacly fails with what error messages.

> -Original Message-
> From: Dodd, Andrew [mailto:andrew.dodd@;cgey.com]
> Sent: Wednesday, October 30, 2002 12:17 PM
> To: [EMAIL PROTECTED]
> Subject: ques: Tomcat Apache 4.0.6 v 4.1.12
> 
> 
> The application will run correctly under
>
> Is it true that 4.1.12 will also support web applications written for
> Servlet 2.2 and JSP 1.1 Spec as well as Servlet 2.3 and JSP 1.2 Spec.
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:




" This message contains information that may be privileged or confidential and 
is the property of the Cap Gemini Ernst & Young Group. It is intended only for 
the person to whom it is addressed. If you are not the intended recipient, you 
are not authorized to read, print, retain, copy, disseminate, distribute, or use 
this message or any part thereof. If you receive this message in error, please 
notify the sender immediately and delete all copies of this message ".



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




Re: Is CLASSPATH ignored ?

2002-10-30 Thread Michael Timpe

There is a way to use the classpath. In the script 
catalina.bat/catalina.sh the variable CLASSPATH is overwritten and all 
previous content is skipped. You can fix this by including the content 
of the CLASSPATH variable. There is also a script called 
setclasspath.sh/setclasspath.bat. You can change this also. I did not 
find a solution if you're using the Tomcat service under Win NT/2000/XP. 
If you need JARS outside the Tomcat installation you have to go this way 
and to start Tomcat using the scripts instead of using the service.

Change the line

set CLASSPATH=...

to (according to your plattform)

set CLASSPATH=%CLASSPATH%;... or
set CLASSPATH=${CLASSPATH};...

Greetings

Michael


Craig R. McClanahan wrote:

On Tue, 29 Oct 2002, Sinclair, Alan  (CORP, GEAccess) wrote:

 

Date: Tue, 29 Oct 2002 13:01:06 -0700
From: "Sinclair, Alan  (CORP, GEAccess)" <[EMAIL PROTECTED]>
Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
To: "Tomcat Users List (E-mail)" <[EMAIL PROTECTED]>
Subject: Is CLASSPATH ignored ?

All,

Does the UNIX Tomcat implementation ignore the CLASSPATH environment
variable ?

   


Yes.

 

For example, in order to make DBCP pooling work, I placed the Oracle JAR
file in $CATALINA_HOME/common/lib  Does this mean that all application JAR
files must be installed in ../common/lib ?

   


http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

 

Thanks
   


Craig


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


 




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




compile error?

2002-10-30 Thread Tumy, Brad
I just installed Tomcat on my server and I am trying to run a test page.  I
created a new jsp file in the directory:
C:\Tomcat\jakarta-tomcat-4.1.12\webapps\ROOT

The only code I put on this page was:
<% new java.util.Date() %>

I got the following error:
***
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 12 in the jsp file: /test.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\Tomcat\jakarta-tomcat-4.1.12\work\Standalone\localhost\_\test_jsp.java:49
: ';' expected
new java.util.Date()
^
1 error
***

If I put the semi-colon into the code like it's indicating, I don't get
anything display.

I would appreciate any help with this.

Brad Tumy

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




tomcat & apache in win32

2002-10-30 Thread Felipe Schnack
  Anyone already used mod_jk to integrate Tomcat 4.1.x and Apache 1.3.x
under Win32?
  I need to do that, where I can find a how-to?
-- 

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

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


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




RE: compile error?

2002-10-30 Thread Bodycombe, Andrew
It should be <%=new java.util.Date();%>

Andy

-Original Message-
From: Tumy, Brad [mailto:TumyB@;Pragmatics.com]
Sent: 30 October 2002 17:37
To: 'Tomcat Users List'
Subject: compile error?


I just installed Tomcat on my server and I am trying to run a test page.  I
created a new jsp file in the directory:
C:\Tomcat\jakarta-tomcat-4.1.12\webapps\ROOT

The only code I put on this page was:
<% new java.util.Date() %>

I got the following error:
***
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 12 in the jsp file: /test.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\Tomcat\jakarta-tomcat-4.1.12\work\Standalone\localhost\_\test_jsp.java:49
: ';' expected
new java.util.Date()
^
1 error
***

If I put the semi-colon into the code like it's indicating, I don't get
anything display.

I would appreciate any help with this.

Brad Tumy

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




(4)Interrupted system call: Error while opening the workers, jk will not work

2002-10-30 Thread Christopher Prince
unending woes trying to get tomcat 4.1.12-LE-jdk14 to apache 1.3.23
conection with jk (jdk1.4.1 and redhat 7.3)

currently

1. installed mod_jk from the RPM
2. added Include /usr/tomcat/conf/auto/mod_jk.conf to the apache httpd.conf
3. edited the workers.properties in the Apache/conf dir
4. added to server.xml
   
  ...

...

and


...
  
...


getting the error
(4)Interrupted system call: Error while opening the workers, jk will not
work

have tried

check permissions on workers.properties
copied working.properties to $TOMCAT_HOME/conf

and generally don't have a lot of ideas about how to fix this

help

chris





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




RE: compile error?

2002-10-30 Thread John Trollinger
If you want to see the date you must do  

<% java.util.Date() date = new java.util.Date(); %>
<%= date %>

> -Original Message-
> From: Tumy, Brad [mailto:TumyB@;Pragmatics.com] 
> Sent: Wednesday, October 30, 2002 12:37 PM
> To: 'Tomcat Users List'
> Subject: compile error?
> 
> 
> I just installed Tomcat on my server and I am trying to run a 
> test page.  I created a new jsp file in the directory: 
> C:\Tomcat\jakarta-tomcat-4.1.12\webapps\ROOT
> 
> The only code I put on this page was:
> <% new java.util.Date() %>
> 
> I got the following error:
> ***
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> An error occurred at line: 12 in the jsp file: /test.jsp
> 
> Generated servlet error:
> [javac] Compiling 1 source file
> 
> C:\Tomcat\jakarta-tomcat-4.1.12\work\Standalone\localhost\_\te
> st_jsp.java:49
> : ';' expected
>   new java.util.Date()
> ^
> 1 error
> ***
> 
> If I put the semi-colon into the code like it's indicating, I 
> don't get anything display.
> 
> I would appreciate any help with this.
> 
> Brad Tumy
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


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




RE: DBCP Woes! Ahaa!

2002-10-30 Thread Craig R. McClanahan


On Wed, 30 Oct 2002, neal wrote:

> Date: Wed, 30 Oct 2002 02:22:12 -0800
> From: neal <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: DBCP Woes! Ahaa!
>
> One last question on the topic:
>
> If I configure the conn pooling resources indepdently for 5 different Hosts,
> when I set the maxActive parameter, will this be the maxActive connections
> *per* Host, or total?

If you put the datasource in  (Tomcat 4.1 only),
and then use  to make it available in individual webapps,
all the configuration parameters are global -- all of the apps share a
single instance of the connection pool, configured according to the
parameters you supply.

If you configure individual  and  definitions
per webapp, nested inside the  element, you are creating an
individual connection pool for that webapp.

If you configure a  and  inside the
 element (I've never actually tried this, but people say it
works), you are essentially creating a template for the default
configuration of each webapp, which ends up with its own connection pool
(just like the second case above).

>  If I set the maxActive to 10 for 5 websites,have am I
> effectively allocating 50 connections?
>

Totally depends on how you've configured it :-).

> Thanks
> Neal

Craig


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




RE: Session start

2002-10-30 Thread Craig R. McClanahan


On Wed, 30 Oct 2002, Andy Eastham wrote:

> Date: Wed, 30 Oct 2002 15:31:34 -
> From: Andy Eastham <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: Session start
>
> In my experience, IE 6 creates a new session cookie for each browser
> window...
>

That turns out to be a preferences option -- Your "Browse in new process"
ends up determining whether cookies (and therefore sessions) are shared
across browser windows or not.

> Andy

Craig


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




compile error update

2002-10-30 Thread Tumy, Brad
sorry to waste your time...I just noticed that I was missing the equals sign
after the <%

obviously a new guy???!?! :)




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




RE: Session start

2002-10-30 Thread Mauro Daniel Ardolino
Now I figure how it works ;)
Thanks to all!

-- Mauro


On Wed, 30 Oct 2002, Nick Lombard (VSP) wrote:

> Hi Mauro
> 
> At least this one I can answer for you.
> 
> You will deffinitely not be able to start a new session for each browser
> window opened if you are using session cookies.
> 
> The Session cookie specification is slightly different to that of normal
> cookies. It shares the same rule that the browser will send the cookie only
> to the domain from which it originated. But the session cookie lasts the
> lifetime of the browser whereas the normal cookie will be saved. So if a
> browser is closed (not just a window of the same browser process) the cookie
> will die with it. All the browser windows share the same cookies and if a
> session cookie is available for a the domain being accessed the cookie will
> be sent along.
> 
> I.o.w if your servlet/jsp makes a call to request.getSession(true); the
> session ID identified in the request will return the session object stored
> at the server identified by the session ID in the request (cookie) if
there
> is no session id or the session has expired on the server a new session will
> be created and a request will be made to the browser to kindly return a
> session cookie with the supplied id. If request.getSession(false); is
> called, the same process as above occurs but a new session will not be
> created.
> 
> Thus to understand "who the session id belongs to" the answer is something
> like: The session id as a cookie is kept for the lifetime of a browser
> process on the client and identified on the server. Different vendor
> browsers will all have their own session cookies and thus session ids.
> 
> To solve your problem it is correct what Ralph said.
> A session cookie cannot be used because the cookie is shared by all browser
> windows of the same browser process. The sollution is url rewriting in which
> the session id is not sent by a cookie but is sent as a request parameter
> and thus if the client opens a new browser window and types in your URL it
> will not contain the session id request parameter and thus a new session can
> be created on the server. This might not be the case if the client asks for
> a link on your application to open in a new window because the parameter
> might be in the link.
> 
> I hope this makes it slightly clearer.
> 
> Nick.
>  
> 
> 
> 
> -Original Message-
> From: Mauro Daniel Ardolino [mailto:mauro@;altersoft.com.ar]
> Sent: Wednesday, October 30, 2002 4:38 PM
> To: Tomcat Users List
> Subject: RE: Session start
> 
> 
> OK, but I still have some servlets that have to communicate using
> HttpSession setting and getting objects between them.  So if on each call
> to different servlets I obtain a new session, then I loose the objects
> contained in the session.
> 
> So reading your answer I think that the problem is to who belongs the
> session id.  Does it belongs to the machine that is browsing? I mean: the
> IP address? I don't think so because in multiple text sessions of the same
> linux machine, browsing from each the same servlet, I obtain different
> sessions.  Does it belongs to the user?  which user?  windows user?  linux
> user? other OS users?  No, the same user on different linux sessions, gets
> different HttpSession.  So I have to think that depends on the
> OS.  E.g. on linux it depends on the linux session.  I'd like to bypass
> this behavior opening a session each time a user opens a browser.  I
> think I have to rescue a browser window id or something like that from
> the HttpServletRequest.
> 
> Any ideas?
> 
> Thanks,
> 
> Mauro
> 
> 
> 
> On Wed, 30 Oct 2002, Ralph Einfeldt wrote:
> 
> > It's quite simple.
> > 
> > Whenever a request reaches tomcat that contains no
> > session id (url or cookie) or a session id that
> > doesn't belongs to a active session, tomcat creates
> > a new session.
> > 
> > To do what you want you have to disable cookies
> > in tomcat. This way you will get a new session
> > whenever a new window is opened and the url that 
> > is used for the window contains no session id.
> > 
> > Ralph Einfeldt
> > Uptime Internet Solution Center GmbH
> > Hamburg, Germany
> > Hosting, Content Management, Java Consulting
> > http://www.uptime-isc.de 
> > 
> > > -Original Message-
> > > From: Mauro Daniel Ardolino [mailto:mauro@;altersoft.com.ar]
> > > Sent: Tuesday, October 29, 2002 5:13 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Session start
> > > 
> > > I'm confussed about when does a session starts.
> > > 
> > > Browsing with netscape on a linux gui, opening 2 browsers, 
> > > calling the same servlet, the session is shared.  I want 
> > > to start a new  session! I mean every time a user opens a 
> > > new browser or a new window of the browser and calls my 
> > > servlet, I want to start a new session.
> > 
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 

jsps whose names begin with the characters admin

2002-10-30 Thread Wilkinson, Robert
Has any one seen a problem when a jsp begins with the letters "admin"? 
It seems as if the session context gets confused. It is as if it does the
following:
- spots the characters "admin" in beginning of the jsp name, for example in
a jsp named "administrative.jsp" 0r "adminstrative_reserve.jsp"
- thinks it is in the "admin" context, then sets a new session context
- because of the new session context it resets all the classes that are
"session" in scope
- realizes that it is not for the admin context and finally transfers
control to "administrative.jsp" - but it has a new session context.

As a result, the session objects that were expected in "administrative.jsp"
are incorrect and the jsp gets errors 

Is it me or is this a bug in the class that genertates the session context?

My only workaround short of renaming a bunch of jsps and their references
was to take out the admin application.

Regards,
ROb

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




Could someone help me with this error, I'm tring to connect Apache and Tomcat

2002-10-30 Thread dave m
[Wed Oct 30 13:05:55 2002] [notice] config.setAttribute() Error setting vm: 
classpath C:\apache\tomcat/bin/tomcat-jni.jar
[Wed Oct 30 13:05:55 2002] [notice] config.setAttribute() Error setting vm: 
classpath C:\apache\tomcat/server/lib/commons-logging.jar
[Wed Oct 30 13:05:55 2002] [notice] Parent: Created child process 420
[Wed Oct 30 13:05:55 2002] [notice] config.setAttribute() Error setting vm: 
classpath C:\apache\tomcat/bin/tomcat-jni.jar
[Wed Oct 30 13:05:55 2002] [notice] config.setAttribute() Error setting vm: 
classpath C:\apache\tomcat/server/lib/commons-logging.jar
[Wed Oct 30 13:05:55 2002] [notice] Child 420: Child process is running
[Wed Oct 30 13:05:55 2002] [notice] vm.init(): Jni lib: C:\program 
files\java\j2re1.4.1_01\bin\client\jvm.dll
[Wed Oct 30 13:05:55 2002] [notice] vm.openJvm2() Option: 
-Dtomcat.home=C:\apache\tomcat
[Wed Oct 30 13:05:55 2002] [notice] vm.openJvm2() Option: 
-Dcatalina.home=C:\apache\tomcat
[Wed Oct 30 13:05:56 2002] [notice] vm.openJvm2() Option: -Xmx128M
[Wed Oct 30 13:05:56 2002] [notice] vm.open2() done
[Wed Oct 30 13:05:56 2002] [notice] jni.validate() class= 
org/apache/jk/apr/TomcatStarter
[Wed Oct 30 13:05:56 2002] [error] Can't find class 
org/apache/jk/apr/TomcatStarter
java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter
[Wed Oct 30 13:05:56 2002] [notice] vm.detach() ok
[Wed Oct 30 13:05:56 2002] [error] workerEnv.initWorkers() init failed for 
worker.jni:onStartup
[Wed Oct 30 13:05:56 2002] [notice] jni.validate() class= 
org/apache/jk/apr/TomcatStarter
[Wed Oct 30 13:05:56 2002] [error] Can't find class 
org/apache/jk/apr/TomcatStarter
java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter
[Wed Oct 30 13:05:56 2002] [notice] vm.detach() ok
[Wed Oct 30 13:05:56 2002] [error] workerEnv.initWorkers() init failed for 
worker.jni:onShutdown
[Wed Oct 30 13:05:56 2002] [notice] workerEnv.init() ok 
C:/Apache/Apache2/conf/workers2.properties
[Wed Oct 30 13:05:56 2002] [notice] mod_jk child init 1 -1
[Wed Oct 30 13:05:56 2002] [notice] Child 420: Acquired the start mutex.
[Wed Oct 30 13:05:56 2002] [notice] Child 420: Starting 250 worker threads.
[Wed Oct 30 13:06:14 2002] [notice] service.init() Can't find child in 
scoreboard 420
[Wed Oct 30 13:06:15 2002] [error] channelSocket.open() connect failed 
localhost:8009 61 Unknown error
[Wed Oct 30 13:06:15 2002] [error] ajp13.connect() failed 
ajp13:localhost:8009
[Wed Oct 30 13:06:15 2002] [error] ajp13.service() failed to connect 
endpoint errno=61 Unknown error
[Wed Oct 30 13:06:15 2002] [error] ajp13.service() Error  forwarding 
ajp13:localhost:8009 1 1
[Wed Oct 30 13:06:15 2002] [notice] ajp13.done() close endpoint 
ajp13:localhost:8009 error_state 1
[Wed Oct 30 13:06:15 2002] [error] lb.service() worker failed 
ajp13:localhost:8009
[Wed Oct 30 13:07:16 2002] [error] lb_worker.service() worker init timeout 
for channel.jni:jni
[Wed Oct 30 13:07:16 2002] [error] lb.service() worker failed ajp13:jni
[Wed Oct 30 13:07:16 2002] [error] lb.service() unrecoverable error...
[Wed Oct 30 13:07:16 2002] [notice] vm.detach() ok
[Wed Oct 30 13:07:16 2002] [error] mod_jk.handler() Error connecting to 
tomcat 12
[Wed Oct 30 13:07:41 2002] [notice] Parent: Received shutdown signal -- 
Shutting down the server.
[Wed Oct 30 13:07:41 2002] [notice] Child 420: Exit event signaled. Child 
process is ending.
[Wed Oct 30 13:07:42 2002] [notice] Child 420: Released the start mutex
[Wed Oct 30 13:07:43 2002] [notice] Child 420: Waiting for 250 worker 
threads to exit.
[Wed Oct 30 13:07:43 2002] [notice] Child 420: All worker threads have 
exited.
[Wed Oct 30 13:07:43 2002] [notice] channel_jni.close() no channel data
[Wed Oct 30 13:07:43 2002] [notice] jni.destroy(), done...worker is not 
hooked for close
[Wed Oct 30 13:07:43 2002] [notice] jni.destroy(), shutting down Tomcat...
[Wed Oct 30 13:07:43 2002] [notice] jni.init() ARG stop
[Wed Oct 30 13:07:43 2002] [notice] jni.destroy() calling main()...
[Wed Oct 30 13:07:46 2002] [notice] Parent: Child process exited 
successfully.



Here is the error log.  Any ideas what might cause this?

thanks


_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



  1   2   >