Get an English name

2007-06-29 Thread 吴熊敏
Hi,all

I'd like to get an english name(a young and sunshine name).
I'm male.
Can anyone help me?
Any advice will be appreciated!


吴熊敏 [EMAIL PROTECTED]


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



Re: Get an English name

2007-06-29 Thread 吴熊敏
I like the name of one of my friends.His english name is 'KEN'

I think it's very good.

On Fri, 29 Jun 2007 14:19:58 +0800
吴熊敏 [EMAIL PROTECTED] wrote:

 Hi,all
 
   I'd like to get an english name(a young and sunshine name).
   I'm male.
   Can anyone help me?
   Any advice will be appreciated!
 
 
 吴熊敏 [EMAIL PROTECTED]
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


吴熊敏 [EMAIL PROTECTED]


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



HTML error pages

2007-06-29 Thread Ingo Siebert

Hi,

i'm using Tomcat 5.5 and run a JAX-WebService application.

In general, if an error occurs at my application i will send back an 
SOAP-fault. So far so fine.


But my problem is now, that sometimes occurs an JVM/Tomcat exception 
(i.e. out of heap-space) and in this case, Tomcat sends back a HTML page 
(text/html, 404...).


The WS-client is showing an unexpected content type exception (not nice).
But my main problem is that i never see the html error page/message. 
Tomcat didn't print it in any console or log file. Is it possible to 
configure Tomcat in a way that it prints the (html) exception into a log 
file?


Cheers,

Ingo

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



How to Invalidate(or not to svae sesion when tomcat gets shut down)

2007-06-29 Thread rajuchn

Hi

When tomcat gets shutdown/Restarted,it is stroing and reloading the sessions
as and when it 

gets restarted.Because of which,user is able to access the application from
the same window, 

which was opened beofre the Tomcat restarted.

I request you to convey me how to invalidate the sessions when tomcat gets
shutdown.( any 

settings in tomcat ?)

Regards
Nagaraju
-- 
View this message in context: 
http://www.nabble.com/How-to-Invalidate%28or-not-to-svae-sesion-when-tomcat-gets-shut-down%29-tf3998529.html#a11355935
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Re[2]: Get an English name

2007-06-29 Thread Li

Please watch your mouth. This group is used to discuss topics regarding
tomcat.

On 6/29/07, 吴熊敏 [EMAIL PROTECTED] wrote:


it's none of your bisiness!!!

you son of a bitch!!


On Fri, 29 Jun 2007 15:10:53 +0800
Li [EMAIL PROTECTED] wrote:

 hi, it's out of topic. Please use your private email ...

 On 6/29/07, 吴熊敏 [EMAIL PROTECTED] wrote:
 
  I like the name of one of my friends.His english name is 'KEN'
 
  I think it's very good.
 
  On Fri, 29 Jun 2007 14:19:58 +0800
  吴熊敏 [EMAIL PROTECTED] wrote:
 
   Hi,all
  
 I'd like to get an english name(a young and sunshine name).
 I'm male.
 Can anyone help me?
 Any advice will be appreciated!
  
   
   吴熊敏 [EMAIL PROTECTED]
  
  
  
-
   To start a new topic, e-mail: users@tomcat.apache.org
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
  
  吴熊敏 [EMAIL PROTECTED]
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Small win by playing smart
 Big win by playing honest


吴熊敏 [EMAIL PROTECTED]





--
Small win by playing smart
Big win by playing honest


Re: Get an English name

2007-06-29 Thread Li

hi, it's out of topic. Please use your private email ...

On 6/29/07, 吴熊敏 [EMAIL PROTECTED] wrote:


I like the name of one of my friends.His english name is 'KEN'

I think it's very good.

On Fri, 29 Jun 2007 14:19:58 +0800
吴熊敏 [EMAIL PROTECTED] wrote:

 Hi,all

   I'd like to get an english name(a young and sunshine name).
   I'm male.
   Can anyone help me?
   Any advice will be appreciated!

 
 吴熊敏 [EMAIL PROTECTED]


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


吴熊敏 [EMAIL PROTECTED]


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





--
Small win by playing smart
Big win by playing honest


Re: Re[2]: Get an English name

2007-06-29 Thread Agarlita Dan

agree with Li


On Jun 29, 2007, at 10:21 AM, Li wrote:

Please watch your mouth. This group is used to discuss topics  
regarding

tomcat.

On 6/29/07, 吴熊敏 [EMAIL PROTECTED] wrote:


it's none of your bisiness!!!

you son of a bitch!!


On Fri, 29 Jun 2007 15:10:53 +0800
Li [EMAIL PROTECTED] wrote:

 hi, it's out of topic. Please use your private email ...

 On 6/29/07, 吴熊敏 [EMAIL PROTECTED] wrote:
 
  I like the name of one of my friends.His english name is 'KEN'
 
  I think it's very good.
 
  On Fri, 29 Jun 2007 14:19:58 +0800
  吴熊敏 [EMAIL PROTECTED] wrote:
 
   Hi,all
  
 I'd like to get an english name(a young and sunshine  
name).

 I'm male.
 Can anyone help me?
 Any advice will be appreciated!
  
   
   吴熊敏 [EMAIL PROTECTED]
  
  
  
-
   To start a new topic, e-mail: users@tomcat.apache.org
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
  
  吴熊敏 [EMAIL PROTECTED]
 
 
   
-

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


 --
 Small win by playing smart
 Big win by playing honest


吴熊敏 [EMAIL PROTECTED]





--
Small win by playing smart
Big win by playing honest



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



Re: Tomcat 6 classloader leak in Commons Pool

2007-06-29 Thread Diego Rodríguez Martín
Sorry, you are right, it is in 
org.apache.tomcat.util.modeler.BaseModelMBean, and resource attribute it 
is retaining is an org.apache.commons.dbcp.BasicDataSource


   Diego

Caldarale, Charles R escribió:
From: Diego Rodríguez Martín [mailto:[EMAIL PROTECTED] 
Subject: Re: Tomcat 6 classloader leak in Commons Pool


I have found that the offending class causing the leak is 
org.apache.tomcat.util.modeler.ManagedBean. It keeps two

attributes referencing my dbcp pool, called resource and
resourceType.



Are you sure about that class name?  It looks like the fields you've mentioned 
are actually in:
org.apache.tomcat.util.modeler.BaseModelMBean

The resourceType field is a String, so that isn't actually a reference to your 
DBCP pool, but resource is just an Object, so that's probably the real culprit. 
 There does not appear to be any way to clear the resource field in a 
BaseModelMBean, and I don't yet know where references to the BaseModelMBean are 
maintained.

What exactly does the resource field reference?  A connection, the DBCP 
factory, or ???

 - Chuck


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

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


  


--
-
Diego Rodríguez Martín ([EMAIL PROTECTED])
ALTIRIA TIC - Servicios SMS - Desarrollo Web
Tel. +34 913311198 - Fax +34 913310087 - Móvil +34 610299750
www.altiria.com
-



Re: Tomcat 6 classloader leak in Commons Pool

2007-06-29 Thread Diego Rodríguez Martín

Hi,

   I have tried what you suggested but it doesn't release the context 
properly. The method in Registry is unregisterComponent (unregister 
doesn't exist)


ObjectName on = new 
ObjectName(Catalina:type=DataSource,path=/myapp,host=localhost,class=org.apache.commons.dbcp.BasicDataSource,name=jdbc/MyPool);

(Registry.getRegistry(null, null)).unregisterComponent(on);

   I have tried with other parameters in ObjectName, but it doesn't 
complain even if the parameters are wrong so, how can I know they are right?



   Bill, How do I open a BZ issue?

   Thank you very much for your help

   Diego

Bill Barker escribió:
Diego Rodríguez Martín [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
  

Hi,

   I have been making some more tests about this issue, using old 
dbcp/pool factory to get rid of the memory leaks of tomcat embedded 
libraries commons-pool/commons-dbcp


   When using my own factory for dbcp and commons pool (the old versions), 
I clear the resources used invoking datasource.close() in my servlet 
destroy method. With a memory profiler, I have found that the offending 
class causing the leak is org.apache.tomcat.util.modeler.ManagedBean. It 
keeps two attributes referencing my dbcp pool, called resource and 
resourceType.


   Is there a way I can access from my servlet this class 
(org.apache.tomcat.util.modeler.ManagedBean) in order to clean the 
references?
   Is there any other action to be taken to free a resource than calling 
datasource.close() that I am missing?

   Is my fault freeing the resource or its Tomcat fault?




It is probably Tomcat's fault, since it looks like Tomcat doesn't unregister 
the DataSource elements from JMX when the context is stopped.  You should 
probably open a BZ issue for this (it doesn't look like the fix is too hard, 
NamingContextListener just needs to handle a stop event).


To work around it, you just need to unregister the MBean, so something like:
   ObjectName on = new 
ObjectName(Catalina:type=DataSource,path=/myapp,host=localhost,class=my.full.class.name,name=resourceName);

   Registry.getRegistry(null, null).unregister(on);

should work.

  

   Thank you very much in advance for your help

  Diego


Diego Rodríguez Martín escribió:


Hi,

   I have found what you said about the factory. It is ported to 6.0. I 
have tried to use the old commons-dbcp library, copying 
commons-pool-1.2.jar and commons-dbcp-1.2.2.jar in tomcat lib directory 
and defining the attribute 
factory=org.apache.commons.dbcp.BasicDataSourceFactory in the resource 
in my context.xml.


   It works, but I still have a memory leak. Tomcat is retaining my new 
commons-dbcp classes, and I think it is related to this classes:


org.apache.tomcat.util.modeler.BaseModelMBean,
com.sun.jmx.mbeanserver.NamedObject,
com.sun.jmx.mbeanserver.RepositorySupport.
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor
com.sun.jmx.mbeanserver.JmxMBeanServer,

This part of Tomcat is completely unkown to me, Do you have any clue?

Many thanks for your help


   Diego
David Smith escribió:
  
In older versions of tomcat (5.0.x) there is a factory attribute 
defining the pool to use.  It's unclear from the limited look I did 
whether that was carried forward to 5.5 and 6.0.


--David

Diego Rodríguez Martín wrote:


Hi,

   Is there any way to fix this leak downgrading the version of commons 
pool. I have a production enviroment where we have a lot of 
deploy/undeploy and with this leak we have to stop/start Tomcat very 
often. Is there a possibility of replacing tomcat-dbcp.jar with the 
older individual jars? It will work or you have used new 
functionalities of these packages?


   Thanks

   Diego


Rémy Maucherat escribió:
  

On 6/8/07, Diego Rodríguez Martín [EMAIL PROTECTED] wrote:


It affects version 1.3 of commons pool. In tomcat 6, commons pool is
embbeded in /tomcat-dbcp.jar/, and the docs don't say with version of
commons is inside.
  

It's that version. A new commons-pool version will be integrated when
it's available.

Rémy

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




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




--
-
Diego Rodríguez Martín ([EMAIL PROTECTED])
ALTIRIA TIC - Servicios SMS - Desarrollo Web
Tel. +34 913311198 - Fax +34 913310087 - Móvil +34 610299750
www.altiria.com
-


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, 

Using Tomcat 5.5.23 with jdk 1.6.0_1

2007-06-29 Thread Christopher Hartung

Hi there,

we are using Tomcat 5.5.23 with jdk 1.6.0_1. But sometimes we get errors 
like this:


#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x002a958a666a, pid=8528, tid=1082333536
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0-b105 mixed mode)
# Problematic frame:
# V  [libjvm.so+0x22066a]
#
# An error report file with more information is saved as hs_err_pid8528.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

After this the hole instance crashed

Our system is CentOS 5, 64 -Bit, jdk 1.6.0_1 64 -Bit

The Application is written for JDK 1.6.0_1

do you know some problems like this?

thx for your answers

so long
chris


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



Re: What is Tomcat 6 status?

2007-06-29 Thread Johnny Kewl

I just take a very pragmatic view.
TC6 besides implementing new specs which I believe are targeted more at 
application servers than anything else, involved a major structural revamp.
Although I havnt found any problems with it, I treat it as new, and prefer 
to run production stuff on 5.5.23.


As for not getting support... this mailing list is absolutely fantastic, I 
dont think they not going to help you if you running 5.5. its not 
microsoft ;)
Also all the more reason to run one version back, because if you not on the 
bleeding edge, you sure to find the info with just a google.


Then there are other practical things, cant talk for Eclipse, but Netbeans 
6, that supports TC6, is just not ready, its as quirky as hell, even on 
GlassFish. So if you want stability there, stick to the TC5.5.X for a while 
longer.


As for not including every concievable library and framework, thank goodness 
or else it would be huge. TC supports a huge array of frameworks. Many 
people dont use tags, some like Struts, others prefer a pure MVC model... 
etc etc.
There is no real lock in, TC is so easy to install and test on, having 
both TC6 and TC5.5.23 on your test system is no big deal, and moving test 
code between them, very easy.


Its not a stupid question, I just think you looking in the wrong place... 
when you consider the framework you want to use with TC, then choose very 
carefully... thats where the lock in happens.
Personally I think a framework like VWP and JSF is a nightmare to work with, 
others will love it, maybe you like Struts, maybe Spring, maybe Geronimo and 
TC, may JBoss  TC, maybe JSTL, maybe JSF... thats where you need to do your 
homework.


To answer you JSTL question, and its probably where all the confusion is 
coming from, when you make your JSP, typically an application like NB, gives 
you a template, and you are seeing your first framework advertised, ie SUN 
is saying JSTL is cool, why dont you use it, but you still need to set it 
up, so you need to add something like this to web.xml


jsp-config
taglib
   taglib-urihttp://java.sun.com/jstl/core/taglib-uri
   taglib-location/WEB-INF/c.tld/taglib-location
/taglib
/jsp-config

and include the JSTL.jar, the Standard.jar, and the c.tld from the JSTL tag 
framework why they dont make it actually work, beats me because the libs 
are actually all in Netbeans already, but its better to download the whole 
thing anyway, because there are tags for everything you can think of.

TC is not doing that... your DEV tool is.
TC supports ANY tags... that is just SUN's advert.

Now you could just delete that stuff and use java tags like
%
  String myString= SomeStuff;
  //Wrtie a normal java loop, get some some stuff from a bean etc etc.
%

. TC is the container the framework you want is up to you.

No matter what you do... TC is brilliant, but frameworks, well they come and 
go...


- Original Message - 
From: Michael Jouravlev [EMAIL PROTECTED]

To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, June 29, 2007 1:56 AM
Subject: What is Tomcat 6 status?



Tomcat 6 status is not quite clear from Tomcat website. I want to use
the latest possible release because we need to lock on; upgrading
later down the road would incur administrative complications.

Tomcat 6 docs page says that Apache Tomcat version 6.0 implements the
Servlet 2.5 and JavaServer Pages 2.1 specifications, how complete
this implementation is? Should I assume that because build 6.0.13 is
not explicitly marked as alpha or beta, it is a stable build?

Which version page does not really clear things up, even more,
Tomcat 5 seems like the best choice since it is stable and relatively
up-to-date. Entries for Tomcat 4 and Tomcat 3 recommend to upgrade to
Tomcat 5, but not to Tomcat 6.

To summarize, I would prefer a most recent yet relatively stable
version. From administrative point of view, it is much simpler to
upgrade to a next point version than to a next major release, so I
would rather start using v. 6 if it is stable enough. Any advice? I
searched Tomcat mailing list for Tomcat 6 status and did not find
anything specific.

Also, do I have to download JSTL implementation libs separately? Saw
these libs in webapp samples folder. Any reason why these are not
included as standard libs? I understand that JSTL is just a spec, but
servlets and JSPs are specs as well. The whole point in Tomcat that it
_implements_ SRV and JSP specs. Why JSTL is not implemented by
default?

Also, what is up with JSF support? tomcat/lib directory does not
provide even interface libs for JSF. Not that I am going to use JSF, I
just wanted to find out what the status is. RELEASE-NOTES in the
download zip file do not help much.

Thanks,
   Michael.

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






Re: Using Tomcat 5.5.23 with jdk 1.6.0_1

2007-06-29 Thread Li

Defaultly tomcat 5.5 only support up to JDK5. If you wanna run your
application which was written by JDK 6, you can use Tomcat 6 + JDK 6.

If you really wanna use Tomcat 5.5 with JDK 6 in Linux, you may have to
check if you need copy the tools.jar from JDK6 to tomcat common/lib. It
should work.

Regards

Li

On 6/29/07, Christopher Hartung [EMAIL PROTECTED] wrote:


Hi there,

we are using Tomcat 5.5.23 with jdk 1.6.0_1. But sometimes we get errors
like this:

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x002a958a666a, pid=8528, tid=1082333536
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0-b105 mixed mode)
# Problematic frame:
# V  [libjvm.so+0x22066a]
#
# An error report file with more information is saved as
hs_err_pid8528.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

After this the hole instance crashed

Our system is CentOS 5, 64 -Bit, jdk 1.6.0_1 64 -Bit

The Application is written for JDK 1.6.0_1

do you know some problems like this?

thx for your answers

so long
chris


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





--
Small win by playing smart
Big win by playing honest


Re: Re[2]: Get an English name

2007-06-29 Thread [ G ]

Agree with Li.
It is very annoying.
This is not the first time he/she use the mailing list as 'chatroom'

On 6/29/07, Agarlita Dan [EMAIL PROTECTED] wrote:

agree with Li


On Jun 29, 2007, at 10:21 AM, Li wrote:

 Please watch your mouth. This group is used to discuss topics
 regarding
 tomcat.

 On 6/29/07, 吴熊敏 [EMAIL PROTECTED] wrote:

 it's none of your bisiness!!!

 you son of a bitch!!


 On Fri, 29 Jun 2007 15:10:53 +0800
 Li [EMAIL PROTECTED] wrote:

  hi, it's out of topic. Please use your private email ...
 
  On 6/29/07, 吴熊敏 [EMAIL PROTECTED] wrote:
  
   I like the name of one of my friends.His english name is 'KEN'
  
   I think it's very good.
  
   On Fri, 29 Jun 2007 14:19:58 +0800
   吴熊敏 [EMAIL PROTECTED] wrote:
  
Hi,all
   
  I'd like to get an english name(a young and sunshine
 name).
  I'm male.
  Can anyone help me?
  Any advice will be appreciated!
   

吴熊敏 [EMAIL PROTECTED]
   
   
   
 -
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
   
   吴熊敏 [EMAIL PROTECTED]
  
  
  
 -
   To start a new topic, e-mail: users@tomcat.apache.org
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Small win by playing smart
  Big win by playing honest

 
 吴熊敏 [EMAIL PROTECTED]




 --
 Small win by playing smart
 Big win by playing honest


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




Deploying war files to path not the same as the war file name.

2007-06-29 Thread ben short

Hi,

We use maven to build our war files. The war file names are as
follows... appname-1.0.war. Currently I rename the file to ROOT.war
then deploy it via the tomcat manager app.

Is it possible to leave the war file name alone but deploy it as the
ROOT webapp?

Regards

Ben Short

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



Tomcat adding files

2007-06-29 Thread coder5436uk

I have an install of tomcat and I wish to add a default header and footer to
each page, any one know how to do this ?

I am running files which come out with simple text, I want to include them
all in a site template without having to change the code in each page.

 
eg.
 
simple page
 
%= hello %

  
will out put the java variable hello on a blank page, I want to simulate
the code
  

%@ include file=header.html %

%= hello %

%@ include file=header.html %

without having to put the JSP include in every page
I would appreciate some help on how to do this within the tomcat config
-- 
View this message in context: 
http://www.nabble.com/Tomcat-adding-files-tf3999518.html#a11358998
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: unzip a jar file from a war file to tomcat/webapp

2007-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Paul,

Paul Hammes wrote:
 I have to unzip the jar at the time of deployment because of the size
 of the war file. the jar file contains 20mb of images. So I can safe
 several mb to transfer to the server where the application will run.

What types of images? Most decent image formats are not very
compressible, so 20MB of images just gives you 20MB of extra data in
your WAR file.

Don't forget that that WAR itself is compressed.

- -chris

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

iD8DBQFGhPqs9CaO5/Lv0PARAlATAJ0R0AsHTMkIlsGa/Rx7G9+8Wbh1IACglmtF
u+UuEUuq2va7RyRAMQywO9E=
=hWyt
-END PGP SIGNATURE-

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



Re: Using Tomcat 5.5.23 with jdk 1.6.0_1

2007-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Li,

Li wrote:
 Defaultly tomcat 5.5 only support up to JDK5. If you wanna run your
 application which was written by JDK 6, you can use Tomcat 6 + JDK 6.

Still, Tomcat shouldn't segfault the VM due to a version incompatibility.

My guess is that he's got bad hardware.

- -chris

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

iD8DBQFGhPuH9CaO5/Lv0PARAp1QAJ43g8n0LO8FUk0YYCe2K06aM9ddSwCgsbIC
V9ibnqzQR66o1UCBVv/Mq3Y=
=d9F3
-END PGP SIGNATURE-

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



RE: Using Tomcat 5.5.23 with jdk 1.6.0_1

2007-06-29 Thread Caldarale, Charles R
 From: Li [mailto:[EMAIL PROTECTED] 
 Subject: Re: Using Tomcat 5.5.23 with jdk 1.6.0_1
 
 Defaultly tomcat 5.5 only support up to JDK5. If you wanna run your
 application which was written by JDK 6, you can use Tomcat 6 + JDK 6.

Not true.  JDK 6 is fully upward compatible with JDK 5. 

 If you really wanna use Tomcat 5.5 with JDK 6 in Linux, you 
 may have to check if you need copy the tools.jar from JDK6
 to tomcat common/lib.

Also not true, and a very bad idea.  Neither Tomcat 5.5 nor Tomcat 6
require tools.jar; both versions will happily run on just a JRE.

The JVM crash is, by definition, caused by faulty hardware, the OS, or a
flaw in the JVM; pure Java programs cannot crash the JVM (although
native code can).  In the past, the -server mode of the JVM has been
less stable than -client; if the hardware checks out, you might try
running in -client mode to see if the problem disappears.

 - Chuck


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

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



Re: tomcat crashes

2007-06-29 Thread Filip Hanik - Dev Lists
looks like it is a VM thread that is crashing, not a tomcat thread.what 
are your command line options to the JVM?

could be a GC bug,

Filip

daniel steel wrote:

all,
   i am not sure if this a bug or OS problem or our  install problem (this is 
the first ever crash). at one of our new  installs at a customer site, the 
moment tomcat is started, it crashes  with JVM exception. this has happened 
with tomcat5 + jdk 1.4. and  with  tomcat6 and jdk 1.5.  Tomcat ( 
6.0.10/6.0.13) doesn't  crash if running in console mode but crashes if running 
as service.
  
  thanks

  dan
  
  [jvm log]

  #
  # An unexpected error has been detected by HotSpot Virtual Machine:
  #
  #  EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x6d7a439b, pid=2536, 
tid=2316
  #
  # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode)
  # Problematic frame:
  # V  [jvm.dll+0x6439b]
  #
  
  ---  T H R E A D  ---
  
  Current thread (0x00a86208):  VMThread [id=2316]
  
  siginfo: ExceptionCode=0xc005, reading address 0x0400
  
  Registers:

  EAX=0x0400, EBX=0x04571204, ECX=0x009afc70, EDX=0x045711fc
  ESP=0x009afa40, EBP=0x009afa6c, ESI=0x045711fc, EDI=0x009afc70
  EIP=0x6d7a439b, EFLAGS=0x00010287
  
  Top of Stack: (sp=0x009afa40)

  0x009afa40:   045711fc 077552c0 6d7ba46b 045711fc
  0x009afa50:   6d7ba43a 045711fc 04571208 045711c8
  0x009afa60:   0455ee00 07754f08 077552c4 009afa88
  0x009afa70:   6d83a8c4 045711c8 009afaac 6d8787b4
  0x009afa80:   00a863e8 6d8787b4 009afabc 6d83a7c9
  0x009afa90:   0455ee00 00018b02 0455ee00 045c1a08
  0x009afaa0:   009afaac 0455ee00 00a863e8 6d8787a0
  0x009afab0:   00a85900 02fb 009afc70 009afae8 
  
  Instructions: (pc=0x6d7a439b)

  0x6d7a438b:   24 08 57 8b f9 8b 06 85 c0 74 2f 3b 47 1c 73 2a
  0x6d7a439b:   8b 08 83 e1 03 80 f9 03 75 06 8b 00 24 fc eb 0a 
  
  
  Stack: [0x0097,0x009b),  sp=0x009afa40,  free space=254k

  Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native 
code)
  V  [jvm.dll+0x6439b]
  V  [jvm.dll+0xfa8c4]
  V  [jvm.dll+0xfa7c9]
  V  [jvm.dll+0xfa6c7]
  V  [jvm.dll+0x4110d]
  V  [jvm.dll+0x405ee]
  V  [jvm.dll+0x404bc]
  V  [jvm.dll+0x41066]
  V  [jvm.dll+0x73f3b]
  V  [jvm.dll+0x64d13]
  V  [jvm.dll+0x6f8ba]
  V  [jvm.dll+0x51d3e]
  V  [jvm.dll+0x6fa5c]
  V  [jvm.dll+0x12a230]
  V  [jvm.dll+0x129cfe]
  V  [jvm.dll+0x129ea7]
  V  [jvm.dll+0x129c0c]
  C  [MSVCRT.dll+0x2b530]
  C  [kernel32.dll+0x24829]
  
  VM_Operation (0x0b35f5c8): generation collection for allocation, mode: safepoint, requested by thread 0x0b05b158
  
  
  ---  P R O C E S S  ---
  
  Java Threads: ( = current thread )

0x0b3d1310 JavaThread Keep-Alive-Timer daemon [_thread_blocked, id=2188]
0x0b0b8288 JavaThread TP-Monitor daemon [_thread_blocked, id=3884]
0x0b3aa808 JavaThread TP-Processor4 daemon [_thread_in_native, id=2224]
0x0b3ce178 JavaThread TP-Processor3 daemon [_thread_blocked, id=1156]
0x0b0c1b58 JavaThread TP-Processor2 daemon [_thread_blocked, id=2148]
0x0b0c1938 JavaThread TP-Processor1 daemon [_thread_blocked, id=3848]
0x0b3a3510 JavaThread http-8080-Monitor [_thread_blocked, id=2260]
0x0b3a2710 JavaThread http-8080-Processor25 daemon [_thread_in_native, 
id=2384]
0x0b3a1a50 JavaThread http-8080-Processor24 daemon [_thread_blocked, 
id=1008]
0x0b46db58 JavaThread http-8080-Processor23 daemon [_thread_blocked, 
id=2988]
0x0b46ce98 JavaThread http-8080-Processor22 daemon [_thread_blocked, 
id=2672]
0x0b46c1d8 JavaThread http-8080-Processor21 daemon [_thread_blocked, 
id=3304]
0x0b46b518 JavaThread http-8080-Processor20 daemon [_thread_blocked, 
id=4036]
0x0b46a858 JavaThread http-8080-Processor19 daemon [_thread_blocked, 
id=336]
0x0b469b98 JavaThread http-8080-Processor18 daemon [_thread_blocked, 
id=4000]
0x0b468ed8 JavaThread http-8080-Processor17 daemon [_thread_blocked, 
id=3076]
0x0b468218 JavaThread http-8080-Processor16 daemon [_thread_blocked, 
id=1024]
0x0b467558 JavaThread http-8080-Processor15 daemon [_thread_blocked, 
id=3804]
0x0b24e5d8 JavaThread http-8080-Processor14 daemon [_thread_blocked, 
id=3768]
0x0b24d930 JavaThread http-8080-Processor13 daemon [_thread_blocked, 
id=2228]
0x0b24ccd8 JavaThread http-8080-Processor12 daemon [_thread_blocked, 
id=1652]
0x0b24c0e0 JavaThread http-8080-Processor11 daemon [_thread_blocked, 
id=3868]
0x0b24b4e8 JavaThread http-8080-Processor10 daemon [_thread_blocked, 
id=2996]
0x0b24a8f0 JavaThread http-8080-Processor9 daemon [_thread_blocked, 
id=2944]
0x0b249cf8 JavaThread http-8080-Processor8 daemon [_thread_blocked, 
id=2952]
0x0b249140 JavaThread http-8080-Processor7 daemon [_thread_blocked, 
id=4056]
0x0b3bf538 JavaThread http-8080-Processor6 daemon [_thread_blocked, 
id=4060]
0x0b3be9d8 JavaThread http-8080-Processor5 daemon [_thread_blocked, 
id=2464]
0x0b065c10 JavaThread http-8080-Processor4 daemon 

Re: Using Tomcat 5.5.23 with jdk 1.6.0_1

2007-06-29 Thread Filip Hanik - Dev Lists
if you have the whole dump we can look into it deeper, my guess is that 
its a JVM bug or a combo of JVM/OS


Filip

Christopher Hartung wrote:

Hi there,

we are using Tomcat 5.5.23 with jdk 1.6.0_1. But sometimes we get 
errors like this:


#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x002a958a666a, pid=8528, tid=1082333536
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0-b105 mixed mode)
# Problematic frame:
# V  [libjvm.so+0x22066a]
#
# An error report file with more information is saved as 
hs_err_pid8528.log

#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

After this the hole instance crashed

Our system is CentOS 5, 64 -Bit, jdk 1.6.0_1 64 -Bit

The Application is written for JDK 1.6.0_1

do you know some problems like this?

thx for your answers

so long
chris


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






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



Re: Update Tomcat 5 - 6 .. JDBC driver problem

2007-06-29 Thread gregory hans
i using tomcat6 right now and i put my jdbc in my lib directory and that's 
okay. can you post your error to me so i can figure what's going on. 

David Smith [EMAIL PROTECTED] wrote:  In tomcat 6, the new common/lib is 
simply lib as I understand it. Could 
you post your config? The error you originally posted typically 
indicates a misconfiguration as opposed to not being able to find the 
driver class.

--David

Rene Guenther wrote:
 Alas, still the same error.

 So you think, that I get this error because tomcat isnt able to find 
 the .jar file with the MySQL driver? Maybe something changed between 
 Tomcat 5 and 6 related to ?

 Regards
 René

 On Thu, 28 Jun 2007 18:37:21 +0800
 Allen åshy;™ wrote:
 Put your jars into: *apache-tomcat-6.x.x/lib* will be just fine.


 2007/6/28, Rene Guenther :

 Thanks for your reply. Unfortunately I am still getting
 the same error with tomcat 6.0.13

 Regards
 René

 On Thu, 28 Jun 2007 02:34:10 -0700 (PDT)
 gregory hans wrote:
  try to put your jdbc in your web application
 (WEB-INF/LIB/). stop the service first, put the jdbc then
 start again...
 
  Rene Guenther wrote:
 Hello,
 
  I am getting the following exception with tomcat 6.0.13:
 
  Cannot create JDBC driver of class '' for connect URL
  'null'
 
  This exception I dont get with tomcat 5.5.23
 
  I put the mysql jdbc driver (version 5.x) into
  apache-tomcat-x.x.x/common/lib
 
  Anyone knows what the problem could be?
 
  (OS: Linux Debian, Java Version 1.5)
 
  Regards
  René
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
 
  -
  Don't pick lemons.
  See all the new 2007 cars at Yahoo! Autos.


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




 -- 
 Sincerely yours åshy;™


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



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



 
-
TV dinner still cooling?
Check out Tonight's Picks on Yahoo! TV.

Re: Update Tomcat 5 - 6 .. JDBC driver problem

2007-06-29 Thread Martin Gainty

MySQL Connector/J doc says

The JDBC URL format for MySQL Connector/J is as follows,
with items in square brackets ([, ]) being optional:
jdbc:mysql://[host][,failoverhost...][:port]/[database] »
[?propertyName1][=propertyValue1][propertyName2][=propertyValue2]...

  If the hostname is not specified, it defaults to 127.0.0.1.
  If the port is not specified, it defaults to 3306, the default port 
number for MySQL servers.

jdbc:mysql://[host:port],[host:port].../[database] »
[?propertyName1][=propertyValue1][propertyName2][=propertyValue2]...

  If the database is not specified, the connection will be made with
  no default database.

M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: gregory hans [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, June 29, 2007 9:37 AM
Subject: Re: Update Tomcat 5 - 6 .. JDBC driver problem


i using tomcat6 right now and i put my jdbc in my lib directory and that's 
okay. can you post your error to me so i can figure what's going on.


David Smith [EMAIL PROTECTED] wrote:  In tomcat 6, the new common/lib is 
simply lib as I understand it. Could

you post your config? The error you originally posted typically
indicates a misconfiguration as opposed to not being able to find the
driver class.

--David

Rene Guenther wrote:

Alas, still the same error.

So you think, that I get this error because tomcat isnt able to find
the .jar file with the MySQL driver? Maybe something changed between
Tomcat 5 and 6 related to ?

Regards
René

On Thu, 28 Jun 2007 18:37:21 +0800
Allen åshy;T wrote:

Put your jars into: *apache-tomcat-6.x.x/lib* will be just fine.


2007/6/28, Rene Guenther :


Thanks for your reply. Unfortunately I am still getting
the same error with tomcat 6.0.13

Regards
René

On Thu, 28 Jun 2007 02:34:10 -0700 (PDT)
gregory hans wrote:
 try to put your jdbc in your web application
(WEB-INF/LIB/). stop the service first, put the jdbc then
start again...

 Rene Guenther wrote:
Hello,

 I am getting the following exception with tomcat 6.0.13:

 Cannot create JDBC driver of class '' for connect URL
 'null'

 This exception I dont get with tomcat 5.5.23

 I put the mysql jdbc driver (version 5.x) into
 apache-tomcat-x.x.x/common/lib

 Anyone knows what the problem could be?

 (OS: Linux Debian, Java Version 1.5)

 Regards
 René


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




 -
 Don't pick lemons.
 See all the new 2007 cars at Yahoo! Autos.


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





--
Sincerely yours åshy;T



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




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




-
TV dinner still cooling?
Check out Tonight's Picks on Yahoo! TV. 



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



An unrecoverable stack overflow has occurred.

2007-06-29 Thread Tim Miller

I get the following error periodically which causes my Tomcat service to
stop.  There do not seem to be any exceptions listed in my log files, only
the An unrecoverable stack overflow has occurred. error listed in the
jakarta_service_mmdd.log file.

I am running tomcat5.5.23 on a windows 2000 machine as a service.  I used
the service.bat file included with the tomcat downloads to create this
service.
 
I have tried a few things that i dug up while researching this error. 
The first time it happened, i increase the values for --JvmMs 128 --JvmMx
256 to --JvmMs 256 --JvmMx 512.  It didnt take right away, but the next day,
after one crash, the error stopped.
 
The next time it happened, i found that there may be an issue with Tomcat
5.5 15+ where JSP files are cached - the solution, which worked immediately
was to add this to the options
-Djava.io.tmpdir=%CATALINA_BASE%\temp;-Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true
 
The third time, I found that there were a lot of bug fixes since the version
i was using to the current ( 5.5.20 - 5.5.23 ).  after installing 23, it
was fine.
 
This time, i was asked to increase the session timeout, so i updated the
web.xml files and restarted the service - it started failing immediately
afterward.

I haven't the slightest idea what could be going on.  I have  tried using
JProfiler and modifying code in an attempt to reduce memory usage, but i
don't think that had any effect.

I don't have any problems when running/testing the application locally
through Eclipse.. This only occurs on the 'prod' server.

Please help, my users are not pleased.
Thanks
Tim Miller. 
 

-- 
View this message in context: 
http://www.nabble.com/An-unrecoverable-stack-overflow-has-occurred.-tf442.html#a11360789
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: RE: unzip a jar file from a war file to tomcat/webapp

2007-06-29 Thread gregory hans
what kind of format the images?is jpg?why you have to compress the image file, 
the size is rather the same before compressed. 

Paul Hammes [EMAIL PROTECTED] wrote:  I have to unzip the jar at the time of 
deployment because of the size of the war file. the jar file contains 20mb of 
images. So I can safe several mb to transfer to the server where the 
application will run.

Of course I will unzip it to a special webapp's directory.

 Original-Nachricht 
Datum: Thu, 28 Jun 2007 18:56:00 -0500
Von: Caldarale, Charles R 
An: Tomcat Users List 
Betreff: RE: unzip a jar file from a war file to tomcat/webapp

  From: Paul Hammes [mailto:[EMAIL PROTECTED]
  Subject: unzip a jar file from a war file to tomcat/webapp
  
  i have to unzip a jar, contained in a war file. This jar file 
  is contained in the web-inf/lib directory.
 
 Why don't you unzip it as part of building the .war, rather than waiting
 until run time? It would seem to be a whole lot easier.
 
  There are several images in this jar and i want to unzip it
  to tomcat/webapp directory so the browser can access the
  images directly.
 
 I hope you mean unzip it into the specific app's directory under the
 $TOMCAT_HOME/webapps, rather than directly into webapps.
 
 - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

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



   
-
Choose the right car based on your needs.  Check out Yahoo! Autos new Car 
Finder tool.

Re: tomcat crashes

2007-06-29 Thread daniel steel
filip,
   JVm has the default options that is shipped out with tomcat  distribution. 
the crash happens in the initial testing even before we  apply our custom 
production changes.
  
  thanks
  bharat

Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:  looks like it is a VM 
thread that is crashing, not a tomcat thread.what 
are your command line options to the JVM?
could be a GC bug,

Filip

daniel steel wrote:
 all,
  i am not sure if this a bug or OS problem or our install problem (this  is 
 the first ever crash). at one of our new installs at a customer  site, the 
 moment tomcat is started, it crashes with JVM exception. this  has happened 
 with tomcat5 + jdk 1.4. and with tomcat6 and jdk 1.5.  Tomcat ( 
 6.0.10/6.0.13) doesn't crash if running in console mode but  crashes if 
 running as service.
   
   thanks
   dan
   
   [jvm log]
   #
   # An unexpected error has been detected by HotSpot Virtual Machine:
   #
   #  EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x6d7a439b, pid=2536, 
 tid=2316
   #
   # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode)
   # Problematic frame:
   # V  [jvm.dll+0x6439b]
   #
   
   ---  T H R E A D  ---
   
   Current thread (0x00a86208):  VMThread [id=2316]
   
   siginfo: ExceptionCode=0xc005, reading address 0x0400
   
   Registers:
   EAX=0x0400, EBX=0x04571204, ECX=0x009afc70, EDX=0x045711fc
   ESP=0x009afa40, EBP=0x009afa6c, ESI=0x045711fc, EDI=0x009afc70
   EIP=0x6d7a439b, EFLAGS=0x00010287
   
   Top of Stack: (sp=0x009afa40)
   0x009afa40:   045711fc 077552c0 6d7ba46b 045711fc
   0x009afa50:   6d7ba43a 045711fc 04571208 045711c8
   0x009afa60:   0455ee00 07754f08 077552c4 009afa88
   0x009afa70:   6d83a8c4 045711c8 009afaac 6d8787b4
   0x009afa80:   00a863e8 6d8787b4 009afabc 6d83a7c9
   0x009afa90:   0455ee00 00018b02 0455ee00 045c1a08
   0x009afaa0:   009afaac 0455ee00 00a863e8 6d8787a0
   0x009afab0:   00a85900 02fb 009afc70 009afae8 
   
   Instructions: (pc=0x6d7a439b)
   0x6d7a438b:   24 08 57 8b f9 8b 06 85 c0 74 2f 3b 47 1c 73 2a
   0x6d7a439b:   8b 08 83 e1 03 80 f9 03 75 06 8b 00 24 fc eb 0a 
   
   
   Stack: [0x0097,0x009b),  sp=0x009afa40,  free space=254k
   Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native 
 code)
   V  [jvm.dll+0x6439b]
   V  [jvm.dll+0xfa8c4]
   V  [jvm.dll+0xfa7c9]
   V  [jvm.dll+0xfa6c7]
   V  [jvm.dll+0x4110d]
   V  [jvm.dll+0x405ee]
   V  [jvm.dll+0x404bc]
   V  [jvm.dll+0x41066]
   V  [jvm.dll+0x73f3b]
   V  [jvm.dll+0x64d13]
   V  [jvm.dll+0x6f8ba]
   V  [jvm.dll+0x51d3e]
   V  [jvm.dll+0x6fa5c]
   V  [jvm.dll+0x12a230]
   V  [jvm.dll+0x129cfe]
   V  [jvm.dll+0x129ea7]
   V  [jvm.dll+0x129c0c]
   C  [MSVCRT.dll+0x2b530]
   C  [kernel32.dll+0x24829]
   
   VM_Operation (0x0b35f5c8): generation collection for allocation, mode: 
 safepoint, requested by thread 0x0b05b158
   
   
   ---  P R O C E S S  ---
   
   Java Threads: ( = current thread )
 0x0b3d1310 JavaThread Keep-Alive-Timer daemon [_thread_blocked, id=2188]
 0x0b0b8288 JavaThread TP-Monitor daemon [_thread_blocked, id=3884]
 0x0b3aa808 JavaThread TP-Processor4 daemon [_thread_in_native, id=2224]
 0x0b3ce178 JavaThread TP-Processor3 daemon [_thread_blocked, id=1156]
 0x0b0c1b58 JavaThread TP-Processor2 daemon [_thread_blocked, id=2148]
 0x0b0c1938 JavaThread TP-Processor1 daemon [_thread_blocked, id=3848]
 0x0b3a3510 JavaThread http-8080-Monitor [_thread_blocked, id=2260]
 0x0b3a2710 JavaThread http-8080-Processor25 daemon [_thread_in_native, 
 id=2384]
 0x0b3a1a50 JavaThread http-8080-Processor24 daemon [_thread_blocked, 
 id=1008]
 0x0b46db58 JavaThread http-8080-Processor23 daemon [_thread_blocked, 
 id=2988]
 0x0b46ce98 JavaThread http-8080-Processor22 daemon [_thread_blocked, 
 id=2672]
 0x0b46c1d8 JavaThread http-8080-Processor21 daemon [_thread_blocked, 
 id=3304]
 0x0b46b518 JavaThread http-8080-Processor20 daemon [_thread_blocked, 
 id=4036]
 0x0b46a858 JavaThread http-8080-Processor19 daemon [_thread_blocked, 
 id=336]
 0x0b469b98 JavaThread http-8080-Processor18 daemon [_thread_blocked, 
 id=4000]
 0x0b468ed8 JavaThread http-8080-Processor17 daemon [_thread_blocked, 
 id=3076]
 0x0b468218 JavaThread http-8080-Processor16 daemon [_thread_blocked, 
 id=1024]
 0x0b467558 JavaThread http-8080-Processor15 daemon [_thread_blocked, 
 id=3804]
 0x0b24e5d8 JavaThread http-8080-Processor14 daemon [_thread_blocked, 
 id=3768]
 0x0b24d930 JavaThread http-8080-Processor13 daemon [_thread_blocked, 
 id=2228]
 0x0b24ccd8 JavaThread http-8080-Processor12 daemon [_thread_blocked, 
 id=1652]
 0x0b24c0e0 JavaThread http-8080-Processor11 daemon [_thread_blocked, 
 id=3868]
 0x0b24b4e8 JavaThread http-8080-Processor10 daemon [_thread_blocked, 
 id=2996]
 0x0b24a8f0 JavaThread http-8080-Processor9 daemon [_thread_blocked, 
 id=2944]
 0x0b249cf8 JavaThread 

Re: Get an English name

2007-06-29 Thread David Smith
1. Lighten up. The delete key works wonders if you haven't found it by now.

2. Li posted a private email to him to a public forum with bad language.
Private emails require a private response. That's just bad nettiquite on
Li's part.

3. I agree this is very off topic and should have least been marked as
such with [OT] in the subject.

--David


[ G ] wrote:
 Agree with Li.
 It is very annoying.
 This is not the first time he/she use the mailing list as 'chatroom'

 On 6/29/07, Agarlita Dan [EMAIL PROTECTED] wrote:
 agree with Li


 On Jun 29, 2007, at 10:21 AM, Li wrote:

  Please watch your mouth. This group is used to discuss topics
  regarding
  tomcat.
 
  On 6/29/07, 吴熊敏 [EMAIL PROTECTED] wrote:
 
  it's none of your bisiness!!!
 
  you son of a bitch!!
 
 
  On Fri, 29 Jun 2007 15:10:53 +0800
  Li [EMAIL PROTECTED] wrote:
 
   hi, it's out of topic. Please use your private email ...
  
   On 6/29/07, 吴熊敏 [EMAIL PROTECTED] wrote:
   
I like the name of one of my friends.His english name is 'KEN'
   
I think it's very good.
   
On Fri, 29 Jun 2007 14:19:58 +0800
吴熊敏 [EMAIL PROTECTED] wrote:
   
 Hi,all

 I'd like to get an english name(a young and sunshine
  name).
 I'm male.
 Can anyone help me?
 Any advice will be appreciated!

 
 吴熊敏 [EMAIL PROTECTED]



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

吴熊敏 [EMAIL PROTECTED]
   
   
   
  -
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
   --
   Small win by playing smart
   Big win by playing honest
 
  
  吴熊敏 [EMAIL PROTECTED]
 
 
 
 
  --
  Small win by playing smart
  Big win by playing honest


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




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



Trouble with java.util.Timer in Tomcat 5.5

2007-06-29 Thread David kerber
I have an app running in Tomcat 5.5.12, with jre  1.5.0_12 (explicitly 
specified in the service configuration), on windows 2000 server.


I have one class that is initialized by a servletContextListener, in the 
contextInitialized event.  This class uses java.util.Timer and 
java.util.TimerTask to check every few minutes for new files on an ftp 
site, and if it finds any, it downloads and processes them.  This all 
works fine for anywhere from 2 or 3 days to a week or so, then the timer 
just stops firing, and indicated by a sudden lack of entries in the log 
file (I log every time the timer fires to help track down this problem).


Over the last couple of weeks, I've found some things that can cause 
this, but I believe I've fixed them, but my timer still stops firing 
after a few days.  The things I've already fixed were updating the jre 
to 1.5.12, because of problems with automatic time correction on the 
server, and I found that unhandled exceptions in the timer task can also 
cause this, so early last week I modified my code to trap all exceptions 
before they can trickle up to the timer, and log them, and I don't see 
any exceptions being logged.


It doesn't seem to be related to the number of executions, because the 
latest time it stopped on me, it had fired around 1200 times, and the 
time before that was around 4500 times.  It can also be any time of day, 
and sometimes the server is busy and other times it hasn't had a 
connection for several hours.


Any other suggestions as to what I should look for to find this? 


Thanks!
D



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



RE: Trouble with java.util.Timer in Tomcat 5.5

2007-06-29 Thread Propes, Barry L
wouldn't be a memory leak issue would it?

-Original Message-
From: David kerber [mailto:[EMAIL PROTECTED]
Sent: Friday, June 29, 2007 9:41 AM
To: Tomcat Users List
Subject: Trouble with java.util.Timer in Tomcat 5.5


I have an app running in Tomcat 5.5.12, with jre  1.5.0_12 (explicitly 
specified in the service configuration), on windows 2000 server.

I have one class that is initialized by a servletContextListener, in the 
contextInitialized event.  This class uses java.util.Timer and 
java.util.TimerTask to check every few minutes for new files on an ftp 
site, and if it finds any, it downloads and processes them.  This all 
works fine for anywhere from 2 or 3 days to a week or so, then the timer 
just stops firing, and indicated by a sudden lack of entries in the log 
file (I log every time the timer fires to help track down this problem).

Over the last couple of weeks, I've found some things that can cause 
this, but I believe I've fixed them, but my timer still stops firing 
after a few days.  The things I've already fixed were updating the jre 
to 1.5.12, because of problems with automatic time correction on the 
server, and I found that unhandled exceptions in the timer task can also 
cause this, so early last week I modified my code to trap all exceptions 
before they can trickle up to the timer, and log them, and I don't see 
any exceptions being logged.

It doesn't seem to be related to the number of executions, because the 
latest time it stopped on me, it had fired around 1200 times, and the 
time before that was around 4500 times.  It can also be any time of day, 
and sometimes the server is busy and other times it hasn't had a 
connection for several hours.

Any other suggestions as to what I should look for to find this? 

Thanks!
D



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


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



Re: An unrecoverable stack overflow has occurred.

2007-06-29 Thread Martin Gainty

Tim--
what happens when you double the JAVA_OPTS ThreadStackSize
from
-XX:ThreadStackSize=512
to
-XX:ThreadStackSize=1024
http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp

Anyone else?
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: Tim Miller [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Friday, June 29, 2007 10:09 AM
Subject: An unrecoverable stack overflow has occurred.




I get the following error periodically which causes my Tomcat service to
stop.  There do not seem to be any exceptions listed in my log files, only
the An unrecoverable stack overflow has occurred. error listed in the
jakarta_service_mmdd.log file.

I am running tomcat5.5.23 on a windows 2000 machine as a service.  I used
the service.bat file included with the tomcat downloads to create this
service.

I have tried a few things that i dug up while researching this error.
The first time it happened, i increase the values for --JvmMs 128 --JvmMx
256 to --JvmMs 256 --JvmMx 512.  It didnt take right away, but the next 
day,

after one crash, the error stopped.

The next time it happened, i found that there may be an issue with Tomcat
5.5 15+ where JSP files are cached - the solution, which worked 
immediately

was to add this to the options
-Djava.io.tmpdir=%CATALINA_BASE%\temp;-Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true

The third time, I found that there were a lot of bug fixes since the 
version

i was using to the current ( 5.5.20 - 5.5.23 ).  after installing 23, it
was fine.

This time, i was asked to increase the session timeout, so i updated the
web.xml files and restarted the service - it started failing immediately
afterward.

I haven't the slightest idea what could be going on.  I have  tried using
JProfiler and modifying code in an attempt to reduce memory usage, but i
don't think that had any effect.

I don't have any problems when running/testing the application locally
through Eclipse.. This only occurs on the 'prod' server.

Please help, my users are not pleased.
Thanks
Tim Miller.


--
View this message in context: 
http://www.nabble.com/An-unrecoverable-stack-overflow-has-occurred.-tf442.html#a11360789

Sent from the Tomcat - User mailing list archive at Nabble.com.


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





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



Re: Update Tomcat 5 - 6 .. JDBC driver problem

2007-06-29 Thread David Smith
That's good info, but only barely related to the question at hand and 
they said they had it working in tomcat 5.5.23 -- just failing in tomcat 
6.  Given it works in one version of tomcat and not another, I highly 
doubt the mysql jdbc url is at fault.  The OP needs to post portions of 
their configuration (context.xml, web.xml, server.xml) before any 
further diagnosis can be done.


--David

Martin Gainty wrote:

MySQL Connector/J doc says

The JDBC URL format for MySQL Connector/J is as follows,
with items in square brackets ([, ]) being optional:
jdbc:mysql://[host][,failoverhost...][:port]/[database] »
[?propertyName1][=propertyValue1][propertyName2][=propertyValue2]...

  If the hostname is not specified, it defaults to 127.0.0.1.
  If the port is not specified, it defaults to 3306, the default port 
number for MySQL servers.

jdbc:mysql://[host:port],[host:port].../[database] »
[?propertyName1][=propertyValue1][propertyName2][=propertyValue2]...

  If the database is not specified, the connection will be made with
  no default database.

M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please 
notify

the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - From: gregory hans [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, June 29, 2007 9:37 AM
Subject: Re: Update Tomcat 5 - 6 .. JDBC driver problem


i using tomcat6 right now and i put my jdbc in my lib directory and 
that's okay. can you post your error to me so i can figure what's 
going on.


David Smith [EMAIL PROTECTED] wrote:  In tomcat 6, the new 
common/lib is simply lib as I understand it. Could

you post your config? The error you originally posted typically
indicates a misconfiguration as opposed to not being able to find the
driver class.

--David

Rene Guenther wrote:

Alas, still the same error.

So you think, that I get this error because tomcat isnt able to find
the .jar file with the MySQL driver? Maybe something changed between
Tomcat 5 and 6 related to ?

Regards
René

On Thu, 28 Jun 2007 18:37:21 +0800
Allen åshy;T wrote:

Put your jars into: *apache-tomcat-6.x.x/lib* will be just fine.


2007/6/28, Rene Guenther :


Thanks for your reply. Unfortunately I am still getting
the same error with tomcat 6.0.13

Regards
René

On Thu, 28 Jun 2007 02:34:10 -0700 (PDT)
gregory hans wrote:
 try to put your jdbc in your web application
(WEB-INF/LIB/). stop the service first, put the jdbc then
start again...

 Rene Guenther wrote:
Hello,

 I am getting the following exception with tomcat 6.0.13:

 Cannot create JDBC driver of class '' for connect URL
 'null'

 This exception I dont get with tomcat 5.5.23

 I put the mysql jdbc driver (version 5.x) into
 apache-tomcat-x.x.x/common/lib

 Anyone knows what the problem could be?

 (OS: Linux Debian, Java Version 1.5)

 Regards
 René


 
-

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




 -
 Don't pick lemons.
 See all the new 2007 cars at Yahoo! Autos.


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





--
Sincerely yours åshy;T



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




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




-
TV dinner still cooling?
Check out Tonight's Picks on Yahoo! TV. 



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




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



Out of Office AutoReply: An unrecoverable stack overflow has occurred.

2007-06-29 Thread Rene de Vries


Re: An unrecoverable stack overflow has occurred.

2007-06-29 Thread Tim Miller


I gave that a shot, it didn't seem to matter.  after a couple of minutes of
normal flow through the app, it crashed again.

I did find the following info that i wasn't previously aware of.  Every time
it crashes, this file is produced in the system32 dir : 
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_STACK_OVERFLOW (0xc0fd) at pc=0x080ad956, pid=1800,
tid=1876
#
# Java VM: Java HotSpot(TM) Server VM (1.4.2_13-b06 mixed mode)
# Problematic frame:
# V  [jvm.dll+0xad956]
#

---  T H R E A D  ---

Current thread (0x00655068):  JavaThread CompilerThread0 daemon
[_thread_in_native, id=1876]

siginfo: ExceptionCode=0xc0fd, ExceptionInformation=0x0001
0x545c0ffc 

Registers:
EAX=0x55f14810, EBX=0x55f14810, ECX=0x545ff534, EDX=0x0001
ESP=0x545c1000, EBP=0x0002, ESI=0x, EDI=0x545ff494
EIP=0x080ad956, EFLAGS=0x00010202

Top of Stack: (sp=0x545c1000)
0x545c1000:   55f14810 545ff534 080ada7a 545ff494
0x545c1010:   55f14810 545ff494  0037
0x545c1020:   55ff98cc 545ff534 080ada7a 545ff494
0x545c1030:   55f14810 545ff494  0001
0x545c1040:   55ff988c 545ff534 080ada7a 545ff494
0x545c1050:   55ff98cc 545ff494  0002
0x545c1060:   55ff985c 545ff534 080ada7a 545ff494
0x545c1070:   55ff988c 545ff494  0001 

Instructions: (pc=0x080ad956)
0x080ad946:   5e 83 c4 0c c2 04 00 90 90 90 51 53 8b 5c 24 10
0x080ad956:   55 8b e9 8b 4b 1c 56 57 8b 7c 24 18 8b d1 89 6c 


Stack: [0x545c,0x5460),  sp=0x545c1000,  free space=4k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native
code)
V  [jvm.dll+0xad956]


I am researching this at the moment, does it ring any bells with you?
Thanks,
Tim.


mgainty wrote:
 
 Tim--
 what happens when you double the JAVA_OPTS ThreadStackSize
 from
 -XX:ThreadStackSize=512
 to
 -XX:ThreadStackSize=1024
 http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp
 
 Anyone else?
 M--
 This email message and any files transmitted with it contain confidential
 information intended only for the person(s) to whom this email message is
 addressed.  If you have received this email message in error, please
 notify
 the sender immediately by telephone or email and destroy the original
 message without making a copy.  Thank you.
 
 - Original Message - 
 From: Tim Miller [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Friday, June 29, 2007 10:09 AM
 Subject: An unrecoverable stack overflow has occurred.
 
 

 I get the following error periodically which causes my Tomcat service to
 stop.  There do not seem to be any exceptions listed in my log files,
 only
 the An unrecoverable stack overflow has occurred. error listed in the
 jakarta_service_mmdd.log file.

 I am running tomcat5.5.23 on a windows 2000 machine as a service.  I used
 the service.bat file included with the tomcat downloads to create this
 service.

 I have tried a few things that i dug up while researching this error.
 The first time it happened, i increase the values for --JvmMs 128 --JvmMx
 256 to --JvmMs 256 --JvmMx 512.  It didnt take right away, but the next 
 day,
 after one crash, the error stopped.

 The next time it happened, i found that there may be an issue with Tomcat
 5.5 15+ where JSP files are cached - the solution, which worked 
 immediately
 was to add this to the options
 -Djava.io.tmpdir=%CATALINA_BASE%\temp;-Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true

 The third time, I found that there were a lot of bug fixes since the 
 version
 i was using to the current ( 5.5.20 - 5.5.23 ).  after installing 23, it
 was fine.

 This time, i was asked to increase the session timeout, so i updated the
 web.xml files and restarted the service - it started failing immediately
 afterward.

 I haven't the slightest idea what could be going on.  I have  tried using
 JProfiler and modifying code in an attempt to reduce memory usage, but i
 don't think that had any effect.

 I don't have any problems when running/testing the application locally
 through Eclipse.. This only occurs on the 'prod' server.

 Please help, my users are not pleased.
 Thanks
 Tim Miller.


 -- 
 View this message in context: 
 http://www.nabble.com/An-unrecoverable-stack-overflow-has-occurred.-tf442.html#a11360789
 Sent from the Tomcat - User mailing list archive at Nabble.com.


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

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

-- 
View this message in context: 
http://www.nabble.com/An-unrecoverable-stack-overflow-has-occurred.-tf442.html#a11361995
Sent from the 

RE: Trouble with java.util.Timer in Tomcat 5.5

2007-06-29 Thread Propes, Barry L
just a thought. You know the intricacies of that app much better than I.

I don't know what other apps or systems it touches or interacts with, but you 
might check to see if they have scheduled services or jobs that could interfere.

-Original Message-
From: David kerber [mailto:[EMAIL PROTECTED]
Sent: Friday, June 29, 2007 10:00 AM
To: Tomcat Users List
Subject: Re: Trouble with java.util.Timer in Tomcat 5.5


I've considered that, and I can't absolutely rule it out, but I was 
careful writing my code, the code is pretyy simple, and I don't see any 
indication of a memory leak in my system memory usage as time goes by.  
If there is one, it's pretty subtle.  I guess I could start gc logging 
just to be sure...

Thanks!
D

Propes, Barry L wrote:
 wouldn't be a memory leak issue would it?

 -Original Message-
 From: David kerber [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 29, 2007 9:41 AM
 To: Tomcat Users List
 Subject: Trouble with java.util.Timer in Tomcat 5.5


 I have an app running in Tomcat 5.5.12, with jre  1.5.0_12 (explicitly 
 specified in the service configuration), on windows 2000 server.

 I have one class that is initialized by a servletContextListener, in the 
 contextInitialized event.  This class uses java.util.Timer and 
 java.util.TimerTask to check every few minutes for new files on an ftp 
 site, and if it finds any, it downloads and processes them.  This all 
 works fine for anywhere from 2 or 3 days to a week or so, then the timer 
 just stops firing, and indicated by a sudden lack of entries in the log 
 file (I log every time the timer fires to help track down this problem).

 Over the last couple of weeks, I've found some things that can cause 
 this, but I believe I've fixed them, but my timer still stops firing 
 after a few days.  The things I've already fixed were updating the jre 
 to 1.5.12, because of problems with automatic time correction on the 
 server, and I found that unhandled exceptions in the timer task can also 
 cause this, so early last week I modified my code to trap all exceptions 
 before they can trickle up to the timer, and log them, and I don't see 
 any exceptions being logged.

 It doesn't seem to be related to the number of executions, because the 
 latest time it stopped on me, it had fired around 1200 times, and the 
 time before that was around 4500 times.  It can also be any time of day, 
 and sometimes the server is busy and other times it hasn't had a 
 connection for several hours.

 Any other suggestions as to what I should look for to find this? 

 Thanks!
 D
   



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


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



Re: Trouble with java.util.Timer in Tomcat 5.5

2007-06-29 Thread David kerber
I've considered that, and I can't absolutely rule it out, but I was 
careful writing my code, the code is pretyy simple, and I don't see any 
indication of a memory leak in my system memory usage as time goes by.  
If there is one, it's pretty subtle.  I guess I could start gc logging 
just to be sure...


Thanks!
D

Propes, Barry L wrote:

wouldn't be a memory leak issue would it?

-Original Message-
From: David kerber [mailto:[EMAIL PROTECTED]
Sent: Friday, June 29, 2007 9:41 AM
To: Tomcat Users List
Subject: Trouble with java.util.Timer in Tomcat 5.5


I have an app running in Tomcat 5.5.12, with jre  1.5.0_12 (explicitly 
specified in the service configuration), on windows 2000 server.


I have one class that is initialized by a servletContextListener, in the 
contextInitialized event.  This class uses java.util.Timer and 
java.util.TimerTask to check every few minutes for new files on an ftp 
site, and if it finds any, it downloads and processes them.  This all 
works fine for anywhere from 2 or 3 days to a week or so, then the timer 
just stops firing, and indicated by a sudden lack of entries in the log 
file (I log every time the timer fires to help track down this problem).


Over the last couple of weeks, I've found some things that can cause 
this, but I believe I've fixed them, but my timer still stops firing 
after a few days.  The things I've already fixed were updating the jre 
to 1.5.12, because of problems with automatic time correction on the 
server, and I found that unhandled exceptions in the timer task can also 
cause this, so early last week I modified my code to trap all exceptions 
before they can trickle up to the timer, and log them, and I don't see 
any exceptions being logged.


It doesn't seem to be related to the number of executions, because the 
latest time it stopped on me, it had fired around 1200 times, and the 
time before that was around 4500 times.  It can also be any time of day, 
and sometimes the server is busy and other times it hasn't had a 
connection for several hours.


Any other suggestions as to what I should look for to find this? 


Thanks!
D
  




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



How do I set maxage on the JSESSIONID cookie?

2007-06-29 Thread Jesse Barnum
I would like to have a session ID cookie that has a max age of 48  
hours, so that if a user comes back to my site after closing their  
browser, they will still have the same session on the server. How can  
I configure Tomcat to set the max age of the session ID cookie to  
anything other than -1?


--Jesse Barnum, President, 360Works
http://www.360works.com
(770) 234-9293



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



RE: Null

2007-06-29 Thread Propes, Barry L
are you initializing variables for each column in the DB, or likely not if 
you're using that array approach?


-Original Message-
From: PTS [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 27, 2007 9:33 PM
To: Tomcat Users List
Subject: Re: Null


In several of the fields of the database the information is not entered 
until a later time and thus the field is null. If you look at actual data 
the value is null. When returned the data either is null or is not 
compatible with the data needed back. I am using the data in several areas. 
If I am expecting a String and it is null, then I want an empty string to be 
displayed. If I am expecting a number then I want a 0 if it is null. If the 
data returned is not of the type expected then I catch the exception and 
return the equivalent of no information for that data type.

As for the String[], I am pulling back an entire row from the database and 
then picking a single element from the array. In essence it allows me to 
treat the result set as a two dimensional array.

The concept that I was trying to convey to the OP was to do a try catch and 
return the desired default value of the proper type.

Doug

- Original Message - 
From: domenico di leo [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, June 27, 2007 7:08 AM
Subject: Re: Null


 If I have understand your problem is : you receive a lot of null value
 afther a query but you don't except them.
 The problem could be in your if statement .

 ((String[])queryResults.elementAt(r))[c]).equalsIgnoreCase(null))

 you compare a String vector with a String because you have upacsted to
 String[]  the return value of queryResult.
 I think you should do something like this:

 String[] queryResult = new String[10]
 /* Suppose that the queryResult method yelds a vector fill with 10 String

 queryResult = new ((String[])queryResults.elementAt(r))[c])

 afther

 for (int i=0; i= queryResult.lenght(); i++){
 if queryResult[i].equalsIgnoreCase(null))
return null; // Why do you use  ?
  return queryResult[i];
 }

 Cheers

 On 25/06/07, Propes, Barry L [EMAIL PROTECTED] wrote:
 yeah, this seems like a good solution, too.

 -Original Message-
 From: PTS [mailto:[EMAIL PROTECTED]
 Sent: Saturday, June 23, 2007 12:29 PM
 To: Tomcat Users List
 Subject: Re: Null


 I had to deal with a lot of null values coming back from a database. I 
 may
 have been reinventing the wheel but I wrote a little DBUtil class that I
 used to sanitize the returned data. I wrote a get for each type of data 
 and
 did a try catch. If the data came back not null I simply returned it, if 
 it
 came back null it threw an exception and I returned back a default value 
 in
 the catch clause.

 For text:

/** returns the row and column equivalent from the DBResults or empty
 string if null or out of bounds*/
   public String getDataP(int r, int c){
try{
 if 
 String[])queryResults.elementAt(r))[c]).equalsIgnoreCase(null))
  return ;
return(((String[])queryResults.elementAt(r))[c]);
   }catch(Exception e){return ;}
   }

 For numbers:

/** returns the row and column equivalent from the DBResults or string 
 0
 if null or out of bounds*/
   public String getDataN(int r, int c){
try{
 if 
 String[])queryResults.elementAt(r))[c]).equalsIgnoreCase(null))
  return 0;
return(((String[])queryResults.elementAt(r))[c]);
   }catch(Exception e){return 0;}
   }


 For time:

 /** returns the row and column equivalent from the DBResults or 
 string
 00:00:00 if null or out of bounds*/
   public String getDataT(int r, int c){
try{
 if 
 String[])queryResults.elementAt(r))[c]).equalsIgnoreCase(null))
  return 00:00:00;
return(((String[])queryResults.elementAt(r))[c]);
   }catch(Exception e){return 00:00:00;}
   }


 Doug

 - Original Message -
 From: Propes, Barry L  [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Friday, June 22, 2007 1:11 PM
 Subject: RE: Null


 that doesn't sound rightare you sure you're pulling back a value from 
 a
 column that's a string?

 -Original Message-
 From: Mohammed Zabin [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 21, 2007 6:02 AM
 To: Tomcat Users List
 Subject: Re: Null


 I tried it the other way, if( rs.getString(field) == null ) but the
 compiler plames that null can't be compared to string

 On 6/21/07, Tim Funk [EMAIL PROTECTED] wrote:
 
 
  if (null == rs.getString(col_foo)) {
 out.println(tdnbsp;/td);
  } else {
 // Evil since this doesn't escape the xml - for edutainment only
 out.println(td + rs.getString(col_foo) + /td);
  }
 
  -Tim
 
  Mohammed Zabin wrote:
   Hi All
  
   Anyone knows how to deal with null values in JDBC ResultSet??
  
   I am trying to render a table in jsp page that read its value from 
   the
   database, sometimes, the database returns null values, and so, the 
   whole
   table couldn't be rendered. Is there 

Re: An unrecoverable stack overflow has occurred.

2007-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tim,

Tim Miller wrote:
 I gave that a shot, it didn't seem to matter.  after a couple of minutes of
 normal flow through the app, it crashed again.

Wow, you're talking about a REAL crash:

 #
 # An unexpected error has been detected by HotSpot Virtual Machine:
 #
 #  EXCEPTION_STACK_OVERFLOW (0xc0fd) at pc=0x080ad956, pid=1800,
 tid=1876

I thought you meant that you got a StackOverflowException, which usually
means that your code exhibits runaway recursion. In this case (a JVM
crash), something worse is happening.

Is it possible to try a newer version of the JVM? Perhaps one of the 1.5
series? I recently switched from 1.4.2 to 1.5 without any growing pains
(but I have a relatively simple webapp, so YMMV). It's worth checking
out because you might have found some obscure bug in the VM... which
probably will never be fixed (you're 2 versions out of date according to
Sun).

- -chris

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

iD8DBQFGhSz19CaO5/Lv0PARAhtuAJwMjgdmCHXYirjrrZrTMk3muQhyYgCdFZAv
1rB48PepZ2elryE5sQgrHAQ=
=e/50
-END PGP SIGNATURE-

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



Old Chestnut (http - https) causing some confusion

2007-06-29 Thread Lyallex

Hi

Java 1.5.0_10
Tomcat 5.5.17

I've just spent the past couple of hours reading past postings to this list
at marc.info

The subject I'm interested in is the efficient use of ssl/https.
I have managed to get the 'redirection' to https working with the following
entry in web.xml (amongst other config type things)

 security-constraint
  ...
   user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
 /security-constraint

The problem, as I'm sure you've guessed by now is that once an account is
logged in
I want the client to be able to browse the site via http, not https.

I know this issue has been around since at least 2004 (this is as far back
as I went)

The Tomcat Docs at http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.htmlstate

quote

... Also, while the SSL protocol was designed to be as efficient as
securely possible,
encryption/decryption is a computationally expensive process from a
performance standpoint.
It is not strictly necessary to run an entire web application over SSL, and
indeed a developer
can pick and choose which pages require a secure connection and which do
not...

/quote

Marvelous... thing is I've seen various solutions suggested from fronting
Tomcat with Apache httpd and
using something called modRedirect to writing some sort of filter. Have the
experts come to some sort of conclusion
as to the best way to 'pick and choose which pages require a secure
connection...'  given the various security issues that seem to be of concern
etc.

Many thanks for reading this, I'm sure you're all bored to tears by this
subject now.

Rgds
Duncan


java.net.BindException: Address already in use

2007-06-29 Thread Bruno Vilardo

Hello All,

Linux 2.6.9-55.ELsmp
tomcat.version=5.5.9
java version = 1.5

We have an application that uses Tomcat and Java (Sorry I am newbie to this
topic).

This morning our Tomcat server stopped and When we try to startup, it says
it is started but I can not connect to the Tomcat Admin Page nor the Manager
page.
I tried to stop it again, but then when I check the process, using ps
-ef|grep tomcat the process still there.

I found some messages that perhaps is causing this issue. Please see below:

java.net.BindException: Address already in use
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
   at java.net.ServerSocket.bind(ServerSocket.java:319)
   at java.net.ServerSocket.init(ServerSocket.java:185)
   at org.apache.catalina.core.StandardServer.await(StandardServer.java
:346)
   at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Jun 29, 2007 12:35:52 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Jun 29, 2007 12:35:52 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8443
Jun 29, 2007 12:35:53 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jun 29, 2007 12:35:57 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jun 29, 2007 12:35:57 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jun 29, 2007 12:35:57 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jun 29, 2007 12:35:57 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jun 29, 2007 12:35:57 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jun 29, 2007 12:35:57 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jun 29, 2007 12:35:57 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jun 29, 2007 12:36:28 PM org.apache.catalina.connector.MapperListenerdestroy
WARNING: Error unregistering MBeanServerDelegate
java.lang.NullPointerException
   at org.apache.catalina.connector.MapperListener.destroy(
MapperListener.java:161)
   at org.apache.catalina.connector.Connector.stop(Connector.java:1044)
   at org.apache.catalina.core.StandardService.stop(
StandardService.java:521)
   at org.apache.catalina.core.StandardServer.stop(StandardServer.java
:717)
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:586)
   at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(
Catalina.java:629)
Jun 29, 2007 12:36:28 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jun 29, 2007 12:36:28 PM org.apache.catalina.connector.Connector stop
SEVERE: Coyote connector has not been started

Does anybody knows how can I solve this issue in order to startup our Tomcat
WebServer again??

TIA,

Bruno


Re: What is Tomcat 6 status?

2007-06-29 Thread Michael Jouravlev

On 6/29/07, Johnny Kewl [EMAIL PROTECTED] wrote:

As for not including every concievable library and framework, thank goodness
or else it would be huge. TC supports a huge array of frameworks. Many
people dont use tags, some like Struts, others prefer a pure MVC model...
etc etc.


Struts is not part of JSP 2.1 spec, but JSTL is. Therefore I don't
understand why Tomcat 6 implements some JSP 2.1 features like standard
JSP actions, and does not implement JSTL, which is PART OF JSP SPEC.
It is not a biggie to add two jars to app lib directory, I am just
curious why Tomcat 6 continues the strange practice of Tomcat 5, which
also does not implement JSTL despite the fact that JSTL is part of
JSP2.0 spec too. Tomcat is a reference implementation of SRV/JSP spec,
while jstl.jar and standard.jar contain reference implementation of
JSTL. Why these jars are not bundled with Tomcat is beyond me.

In regards to JSF, I am dropping my question because I just realized
that JSF is not part of JSP spec, these specs are just... um...
aligned.

Thanks everybody for clearing things out with Tomcat 6 stability, I
guess I will chose it for our new development and deployment. We still
use Tomcat 4 for deployment.

Michael.

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



Re: How do I set maxage on the JSESSIONID cookie?

2007-06-29 Thread Jesse Barnum
Well, you can set the max age on a cookie to something  0, which  
means that it will persist for that amount of time, even if the  
user's browser window is closed. I'm just trying to figure out if  
there is a way to tell Tomcat to set that property on the cookies  
that it creates to store the session ID's. I don't think that there  
is anything special about a 'session cookie' versus a 'regular cookie'


--Jesse Barnum, President, 360Works
http://www.360works.com
(770) 234-9293


On Jun 29, 2007, at 1:16 PM, Len Popp wrote:


Doesn't the session cookie disappear when the user closes the browser?
In browsers that I've used anyway, session cookies are not stored on
disk like regular cookies, so the session is lost when the browser is
closed.
--
Len


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



RE: how to pop up a window requested by server

2007-06-29 Thread Asensio, Rodrigo
A very simple solution to implement a 'push' concept with your UI 100% 
html/ajax is having a hidden applet to use as client and send messages to the 
current page or another hidden iframe who refresh the main chat program. Is 
what Charles is saying but with the UI done in html

Regards
Rodrigo Asensio
www.rodrigoasensio.com

-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 28, 2007 3:14 PM
To: Tomcat Users List
Subject: Re: how to pop up a window requested by server

There is no way with HTTP protocol to push datas to client. To push, you will 
need other protocol, and then an awfull heavy applet. On the other hand, you 
could, simply, run aside on the server an IRC service and use one of the 
existing IRC applets that exist opensource...

Dave a écrit :
 Thanks for ideas. But the poll is consuming resource even when no messages. 
 Is there a way for server to push something to client?

   Thanks!
   

 David Delbecq [EMAIL PROTECTED] wrote:
   If you use Ajax4Jsf, you can use a4j:poll to have a part of your 
 page refreshed every x milliseconds using javascript. In this part you 
 could put your code to popup something on B if there are new messages.
 En l'instant pr‰[is du 28/06/07 14:36, Dave s'exprimait en ces termes:
   
 We have a JSF application running on JBoss/Tomcat, and have a requirement 
 for users to send short instant messages. When user A sees user B online and 
 wants to talk with him/her:

 1. A clicks a button, pop up a window to chat with B 2. On B's 
 machine, pop up a chat window.

 How to implement the second? We think about using Applet, are there other 
 ways ?
 Thanks for any idea on how to implement this for JSF application.

 Dave




 -
 Boardwalk for $500? In 2007? Ha! 
 Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! 
 Games.

 


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




 -
 Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
 and lay it on us.
   

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


This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law.  If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system.  If you
have any questions about this e-mail please notify the sender
immediately.

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



Re: Tomcat adding files

2007-06-29 Thread Tim Funk

Look at projects such as tiles.

An alternative is to use jsp preludes. Which allow you to add stuff to 
the beginning or end of all jsp pages.


For example: put this in web.xml:
jsp-config
  jsp-property-group
url-pattern*.jsp/url-pattern
include-prelude/WEB-INF/prelude1.jspf/include-prelude
  /jsp-property-group
/jsp-config


-Tim

coder5436uk wrote:

I have an install of tomcat and I wish to add a default header and footer to
each page, any one know how to do this ?

I am running files which come out with simple text, I want to include them
all in a site template without having to change the code in each page.

 
eg.
 
simple page
 
%= hello %


  
will out put the java variable hello on a blank page, I want to simulate

the code
  


%@ include file=header.html %

%= hello %

%@ include file=header.html %

without having to put the JSP include in every page
I would appreciate some help on how to do this within the tomcat config



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



Re: Old Chestnut (http - https) causing some confusion

2007-06-29 Thread Tim Funk
What you'll really want is to ditch the transport guarantee clause in 
web.xml and create a filter which will be smart enough to force/unforce 
you from SSL.


For example:
doFilter(...)  {
  boolean isSSLRequired = magicYesNo(request);
  if (isSSLRequired  !request.isSecure()) {
 doSomeRedirectToSSL(...);
 return;
  } else if (!isSSLRequired  request.isSecure()) {
 doSomeRedirectToNotSSL(...);
 return;
  }
  filter.doChain(...);
}

-Tim

Lyallex wrote:

Hi

Java 1.5.0_10
Tomcat 5.5.17

I've just spent the past couple of hours reading past postings to this list
at marc.info

The subject I'm interested in is the efficient use of ssl/https.
I have managed to get the 'redirection' to https working with the following
entry in web.xml (amongst other config type things)

 security-constraint
  ...
   user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
 /security-constraint

The problem, as I'm sure you've guessed by now is that once an account is
logged in
I want the client to be able to browse the site via http, not https.

I know this issue has been around since at least 2004 (this is as far back
as I went)

The Tomcat Docs at 
http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.htmlstate


quote

... Also, while the SSL protocol was designed to be as efficient as
securely possible,
encryption/decryption is a computationally expensive process from a
performance standpoint.
It is not strictly necessary to run an entire web application over SSL, and
indeed a developer
can pick and choose which pages require a secure connection and which do
not...

/quote


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



Re: How do I set maxage on the JSESSIONID cookie?

2007-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

Jesse Barnum wrote:
 Well, you can set the max age on a cookie to something  0, which means
 that it will persist for that amount of time, even if the user's browser
 window is closed. I'm just trying to figure out if there is a way to
 tell Tomcat to set that property on the cookies that it creates to store
 the session ID's.

You may have to do it manually (that is, grab the Cookie object from the
response and force the maxage).

On the other hand, the user's session is going to time out within that
48 hours, so what's the point of maintaining the JSESSIONID cookie past
the browser-session?

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

iD8DBQFGhUcu9CaO5/Lv0PARAjzeAJ9PAkO2n4InRn9s9KaoCTlZ6gogowCgipM2
VibFQ3g7DvtU4ajdOcsOa94=
=Jdtn
-END PGP SIGNATURE-

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



Re: Old Chestnut (http - https) causing some confusion

2007-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tim,

Tim Funk wrote:
 What you'll really want is to ditch the transport guarantee clause in
 web.xml and create a filter which will be smart enough to force/unforce
 you from SSL.

Why do this when the security-constraint already allows you to protect
only certain URL patterns? It seems to me that maintaining less code in
your application is a good thing.

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

iD8DBQFGhUa89CaO5/Lv0PARAjw5AJ0fHGpgedo24rGajP2FxckHE0BXLgCgpWGf
RX8dEwP4l+a/4xVemr5+ULg=
=qWWc
-END PGP SIGNATURE-

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



RE: What is Tomcat 6 status?

2007-06-29 Thread Caldarale, Charles R
 From: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
 Subject: Re: What is Tomcat 6 status?
 
 I don't believe that's true. The JSP spec defines Tag 
 Libraries, and an Expression Language (EL) that's used
 by the JSTL -- but I don't see a definition of the JSTL
 features in either JSP 2.0 or 2.1...

Correct.  From Sun's JSTL page:

The JSTL 1.2 Maintenace [sic] Release aligns with the Unified
Expression Language (EL) that is being delivered as part of the
JavaServer Pages (JSP) 2.1 specification.

As you said, it's the EL that's part of JSP 2.1, not JSTL.

I can think of several reasons why Tomcat doesn't include JSTL
libraries:

1) Different implementations may produce slightly different results;
Tomcat should not lock developers into a specific one.

2) Different webapps may require different versions of JSTL.

3) Apache may not have a redistribution license for non-Jakarta
implementations (e.g., the Sun ones that are part of Java EE and JWSDP).

Finally, a note from the Jakarta Taglibs web page:

Versions 1.0 and 1.1 of the JSTL specification are implemented here.
Version 1.2 is not and there are currently no plans for JSTL 1.2 to be
implemented at Jakarta - instead we advise you to investigate the
implementation available from the Glassfish project under the Common
Development and Distribution License (CDDL).

 - Chuck


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

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



Re: java.net.BindException: Address already in use

2007-06-29 Thread Tim Funk

1) You kill tomcat. kill -9
2) Then figure out why tomcat is still running (kill -3 to create a 
stack trace)


In reality - you want to get the stacktrace before you run the kill -9

-Tim

Bruno Vilardo wrote:

Hello All,

Linux 2.6.9-55.ELsmp
tomcat.version=5.5.9
java version = 1.5

We have an application that uses Tomcat and Java (Sorry I am newbie to this
topic).

This morning our Tomcat server stopped and When we try to startup, it says
it is started but I can not connect to the Tomcat Admin Page nor the 
Manager

page.
I tried to stop it again, but then when I check the process, using ps
-ef|grep tomcat the process still there.

I found some messages that perhaps is causing this issue. Please see below:

java.net.BindException: Address already in use
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
   at java.net.ServerSocket.bind(ServerSocket.java:319)
   at java.net.ServerSocket.init(ServerSocket.java:185)
   at org.apache.catalina.core.StandardServer.await(StandardServer.java
:346)
   at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)



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



Re: What is Tomcat 6 status?

2007-06-29 Thread Hassan Schroeder

On 6/29/07, Michael Jouravlev [EMAIL PROTECTED] wrote:


Struts is not part of JSP 2.1 spec, but JSTL is. Therefore I don't
understand why Tomcat 6 implements some JSP 2.1 features like standard
JSP actions, and does not implement JSTL, which is PART OF JSP SPEC.


I don't believe that's true. The JSP spec defines Tag Libraries, and an
Expression Language (EL) that's used by the JSTL -- but I don't see a
definition of the JSTL features in either JSP 2.0 or 2.1...

But I'm sure someone will correct me if I'm wrong :-)

--
Hassan Schroeder  [EMAIL PROTECTED]

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



Re: Old Chestnut (http - https) causing some confusion

2007-06-29 Thread Tim Funk
security-constraint only works to say I want pages to be encrypted. 
Not the latter.


The typical complaint is a developer wishes to encrypt the login process 
and nothing else. security-constraint only guarantees that your pages 
are secure - but does nothing to get you away from ssl.


Of course - the second your session cookie gets transmitted in the clear 
- your session can be hijacked - but its all a matter of tradeoffs. In 
most cases protecting the password is enough. The people who are nuts 
for security cringe at the above.


There have been a few arguments about this in the archives. Before 
anyone else jumps in with the opinion - please first rehash the good 
times in the archives. ;)


-Tim

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tim,

Tim Funk wrote:

What you'll really want is to ditch the transport guarantee clause in
web.xml and create a filter which will be smart enough to force/unforce
you from SSL.


Why do this when the security-constraint already allows you to protect
only certain URL patterns? It seems to me that maintaining less code in
your application is a good thing.
 



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



Re: 2 webapps using shared jar (ClassLoader problem)

2007-06-29 Thread Kevin Wilhelm

Nobody any idea on this? :(


- Original Message - 
From: Kevin Wilhelm [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Thursday, June 28, 2007 2:34 PM
Subject: 2 webapps using shared jar (ClassLoader problem)


I deployed a shared jar file on Tomcat that is to be used by two Spring 
webapps. The problem is the Exception I receive when trying to access the 
shared library by the second webapp. The first one already set some 
properties within the shared class instances.


The Exception:

java.lang.IllegalArgumentException: interface 
org.hibernate.jdbc.ConnectionWrapper is not visible from class loader

  java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
  java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)

org.hibernate.jdbc.BorrowedConnectionProxy.generateProxy(BorrowedConnectionProxy.java:67)

org.hibernate.jdbc.ConnectionManager.borrowConnection(ConnectionManager.java:163)
  org.hibernate.jdbc.JDBCContext.borrowConnection(JDBCContext.java:111)
  org.hibernate.impl.SessionImpl.connection(SessionImpl.java:359)

org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:456)

org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:349)

org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:259)

org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:102)

org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)

org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:203)
  $Proxy2.create(Unknown Source)
  test.TestController.handleRequest(TestController.java:39)

org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)

org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:839)

org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:774)

org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:460)

org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:415)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

The interface from Hibernate is in the hibernate3.jar file of the first 
webapp.


I tried to do something that seemed to be a workaround. Something to do 
with the ClassLoaders not being able to see each others classes?! I 
extended Spring's ContextListeners and replaced the original ones for 
startup (for both webapps):


public class MySpringContextListener extends 
org.springContextLoaderListener {


@Override
public void contextInitialized(ServletContextEvent evt) {
ClassLoader contextLoader = 
Thread.currentThread().getContextClassLoader();

Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
super.contextInitialized(evt);
Thread.currentThread().setContextClassLoader(contextLoader);
}

@Override
public void contextDestroyed(ServletContextEvent evt) {

ClassLoader contextLoader = 
Thread.currentThread().getContextClassLoader();

Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
super.contextDestroyed(evt);
evt.getServletContext().removeAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
Thread.currentThread().setContextClassLoader(contextLoader);
}
}

But the exception remains

Can you help me, please?

--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

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



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



RE: Null

2007-06-29 Thread gb1071nx
Sigh. 

 -Original Message-
 From: domenico di leo [mailto:[EMAIL PROTECTED] 
 Sent: Friday, June 29, 2007 1:10 PM
 To: Tomcat Users List
 Subject: Re: Null
 
 Obviovusily you don't compare two string in this way!
 
  if (null == rs.getString(col_foo))
 
 The right manner is:
 
  if (rs.getString(col_foo).equals(null)){
 ..
 }
 
 Your problem is Java not database
 

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



RE: 2 webapps using shared jar (ClassLoader problem)

2007-06-29 Thread Caldarale, Charles R
 From: Kevin Wilhelm [mailto:[EMAIL PROTECTED] 
 Subject: Re: 2 webapps using shared jar (ClassLoader problem)
 
 Nobody any idea on this? :(

You already figured out the problem:  classes from different webapps
cannot access each other - no ifs, ands, or buts.  Anything that is to
be accessed from more than one webapp must be put in a common location.
See:
http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html
or
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

(You didn't bother to tell us the version of Tomcat that you're using.)

 - Chuck


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

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



Re: java.net.BindException: Address already in use

2007-06-29 Thread Bruno Vilardo

Hello Everyone!!!

Thanks for the response TIM..

I guess we found what was going on..

THere was another person working with Tomcat and he was restarting Tomcat at
the same time I was shutdown it.

So after I called this person, we were able to startup Tomcat Successfully.

Thanks everyone.

Bruno


On 6/29/07, Tim Funk [EMAIL PROTECTED] wrote:


1) You kill tomcat. kill -9
2) Then figure out why tomcat is still running (kill -3 to create a
stack trace)

In reality - you want to get the stacktrace before you run the kill -9

-Tim

Bruno Vilardo wrote:
 Hello All,

 Linux 2.6.9-55.ELsmp
 tomcat.version=5.5.9
 java version = 1.5

 We have an application that uses Tomcat and Java (Sorry I am newbie to
this
 topic).

 This morning our Tomcat server stopped and When we try to startup, it
says
 it is started but I can not connect to the Tomcat Admin Page nor the
 Manager
 page.
 I tried to stop it again, but then when I check the process, using ps
 -ef|grep tomcat the process still there.

 I found some messages that perhaps is causing this issue. Please see
below:

 java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.init(ServerSocket.java:185)
at org.apache.catalina.core.StandardServer.await(
StandardServer.java
 :346)
at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java
:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)


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





--
Bruno Vilardo
MFG/Pro Admin  Database Specialist
QAD Brazil
Office - 55 11 3529-2700
Mobile - 55 11 -8869
[EMAIL PROTECTED]


Re: Null

2007-06-29 Thread domenico di leo

Obviovusily you don't compare two string in this way!

if (null == rs.getString(col_foo))

The right manner is:

if (rs.getString(col_foo).equals(null)){
..
}

Your problem is Java not database




On 29/06/07, Propes, Barry L [EMAIL PROTECTED] wrote:

are you initializing variables for each column in the DB, or likely not if 
you're using that array approach?


-Original Message-
From: PTS [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 27, 2007 9:33 PM
To: Tomcat Users List
Subject: Re: Null


In several of the fields of the database the information is not entered
until a later time and thus the field is null. If you look at actual data
the value is null. When returned the data either is null or is not
compatible with the data needed back. I am using the data in several areas.
If I am expecting a String and it is null, then I want an empty string to be
displayed. If I am expecting a number then I want a 0 if it is null. If the
data returned is not of the type expected then I catch the exception and
return the equivalent of no information for that data type.

As for the String[], I am pulling back an entire row from the database and
then picking a single element from the array. In essence it allows me to
treat the result set as a two dimensional array.

The concept that I was trying to convey to the OP was to do a try catch and
return the desired default value of the proper type.

Doug

- Original Message -
From: domenico di leo [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, June 27, 2007 7:08 AM
Subject: Re: Null


 If I have understand your problem is : you receive a lot of null value
 afther a query but you don't except them.
 The problem could be in your if statement .

 ((String[])queryResults.elementAt(r))[c]).equalsIgnoreCase(null))

 you compare a String vector with a String because you have upacsted to
 String[]  the return value of queryResult.
 I think you should do something like this:

 String[] queryResult = new String[10]
 /* Suppose that the queryResult method yelds a vector fill with 10 String

 queryResult = new ((String[])queryResults.elementAt(r))[c])

 afther

 for (int i=0; i= queryResult.lenght(); i++){
 if queryResult[i].equalsIgnoreCase(null))
return null; // Why do you use  ?
  return queryResult[i];
 }

 Cheers

 On 25/06/07, Propes, Barry L [EMAIL PROTECTED] wrote:
 yeah, this seems like a good solution, too.

 -Original Message-
 From: PTS [mailto:[EMAIL PROTECTED]
 Sent: Saturday, June 23, 2007 12:29 PM
 To: Tomcat Users List
 Subject: Re: Null


 I had to deal with a lot of null values coming back from a database. I
 may
 have been reinventing the wheel but I wrote a little DBUtil class that I
 used to sanitize the returned data. I wrote a get for each type of data
 and
 did a try catch. If the data came back not null I simply returned it, if
 it
 came back null it threw an exception and I returned back a default value
 in
 the catch clause.

 For text:

/** returns the row and column equivalent from the DBResults or empty
 string if null or out of bounds*/
   public String getDataP(int r, int c){
try{
 if
 String[])queryResults.elementAt(r))[c]).equalsIgnoreCase(null))
  return ;
return(((String[])queryResults.elementAt(r))[c]);
   }catch(Exception e){return ;}
   }

 For numbers:

/** returns the row and column equivalent from the DBResults or string
 0
 if null or out of bounds*/
   public String getDataN(int r, int c){
try{
 if
 String[])queryResults.elementAt(r))[c]).equalsIgnoreCase(null))
  return 0;
return(((String[])queryResults.elementAt(r))[c]);
   }catch(Exception e){return 0;}
   }


 For time:

 /** returns the row and column equivalent from the DBResults or
 string
 00:00:00 if null or out of bounds*/
   public String getDataT(int r, int c){
try{
 if
 String[])queryResults.elementAt(r))[c]).equalsIgnoreCase(null))
  return 00:00:00;
return(((String[])queryResults.elementAt(r))[c]);
   }catch(Exception e){return 00:00:00;}
   }


 Doug

 - Original Message -
 From: Propes, Barry L  [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Friday, June 22, 2007 1:11 PM
 Subject: RE: Null


 that doesn't sound rightare you sure you're pulling back a value from
 a
 column that's a string?

 -Original Message-
 From: Mohammed Zabin [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 21, 2007 6:02 AM
 To: Tomcat Users List
 Subject: Re: Null


 I tried it the other way, if( rs.getString(field) == null ) but the
 compiler plames that null can't be compared to string

 On 6/21/07, Tim Funk [EMAIL PROTECTED] wrote:
 
 
  if (null == rs.getString(col_foo)) {
 out.println(tdnbsp;/td);
  } else {
 // Evil since this doesn't escape the xml - for edutainment only
 out.println(td + rs.getString(col_foo) + /td);
  }
 
  -Tim
 
  Mohammed Zabin wrote:
   Hi All
  
   Anyone knows how to deal with 

RE: Null

2007-06-29 Thread Gary Evesson
It's a classic! You should submit the conversation to
http://worsethanfailure.com/.

Gary Evesson
Decentrix Inc

-Original Message-
From: gb1071nx [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 29, 2007 12:13 PM
To: Tomcat Users List
Subject: RE: Null

Sigh. 

 -Original Message-
 From: domenico di leo [mailto:[EMAIL PROTECTED] 
 Sent: Friday, June 29, 2007 1:10 PM
 To: Tomcat Users List
 Subject: Re: Null
 
 Obviovusily you don't compare two string in this way!
 
  if (null == rs.getString(col_foo))
 
 The right manner is:
 
  if (rs.getString(col_foo).equals(null)){
 ..
 }
 
 Your problem is Java not database
 

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



smime.p7s
Description: S/MIME cryptographic signature


Re: How do I set maxage on the JSESSIONID cookie?

2007-06-29 Thread Eric Berry

You will probably have to write a valve for this. I had to write one
to set the session cookie's domain so that it's a site wide domain.

I posted the code to this mailing list a while back. If you do a
search you should be able to find it, if not let me know I'll see if I
can get a hold of it.

Eric

On 6/29/07, Christopher Schultz [EMAIL PROTECTED] wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

Jesse Barnum wrote:
 Well, you can set the max age on a cookie to something  0, which means
 that it will persist for that amount of time, even if the user's browser
 window is closed. I'm just trying to figure out if there is a way to
 tell Tomcat to set that property on the cookies that it creates to store
 the session ID's.

You may have to do it manually (that is, grab the Cookie object from the
response and force the maxage).

On the other hand, the user's session is going to time out within that
48 hours, so what's the point of maintaining the JSESSIONID cookie past
the browser-session?

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

iD8DBQFGhUcu9CaO5/Lv0PARAjzeAJ9PAkO2n4InRn9s9KaoCTlZ6gogowCgipM2
VibFQ3g7DvtU4ajdOcsOa94=
=Jdtn
-END PGP SIGNATURE-

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





--
Learn from the past. Live in the present. Plan for the future.

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



Re: Old Chestnut (http - https) causing some confusion

2007-06-29 Thread Tim Funk

It doesn't hurt

-Tim

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tim,

Tim Funk wrote:

security-constraint only works to say I want pages to be encrypted.
Not the latter.


Oh, of course. I hadn't really thought of that ;)


The typical complaint is a developer wishes to encrypt the login process
and nothing else. security-constraint only guarantees that your pages
are secure - but does nothing to get you away from ssl.


Would you say it's worth it to use a security-constraint +
CONFIDENTIAL for those pages that are important to be secure (as a
sanity check)?



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



Re: Old Chestnut (http - https) causing some confusion

2007-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tim,

Tim Funk wrote:
 security-constraint only works to say I want pages to be encrypted.
 Not the latter.

Oh, of course. I hadn't really thought of that ;)

 The typical complaint is a developer wishes to encrypt the login process
 and nothing else. security-constraint only guarantees that your pages
 are secure - but does nothing to get you away from ssl.

Would you say it's worth it to use a security-constraint +
CONFIDENTIAL for those pages that are important to be secure (as a
sanity check)?

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

iD8DBQFGhVQY9CaO5/Lv0PARAtzDAKCBQEVY3aiyMDbIfQlAfLJ1lSD1ngCfRb59
BxjwCTpQDESIf4cxKXlJ5CE=
=oq6f
-END PGP SIGNATURE-

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



RE: Update Tomcat 5 - 6 .. JDBC driver problem

2007-06-29 Thread Leonardo Augusto
Hi,

Tomcat 5.5.x, 6.0.13 !

Resource name=jdbc/Name auth=Container type=javax.sql.DataSource 
factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory username=XXX 
password=XXX driverClassName=com.mysql.jdbc.Driver 
url=jdbc:mysql://domain.com:3306/BASE?autoReconnect=true maxActive=10 
maxIdle=10 maxWait=5000 removeAbandoned=true removeAbandonedTimeout=30 
logAbandoned=true /

Tomcat 4.x, 5.x

 Resource name=jdbc/Name auth=Container 
type=javax.sql.DataSource/
 ResourceParams name=jdbc/Name
parameter
 namefactory/name
 
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
 namemaxActive/name
 value10/value
 /parameter
 parameter
 namemaxIdle/name
 value10/value
 /parameter
 parameter
 namemaxWait/name
 value5000/value
 /parameter
 parameter
 nameremoveAbandoned/name
 valuetrue/value
 /parameter
 parameter
 nameremoveAbandonedTimeout/name
 value30/value
 /parameter
 parameter
 nameusername/name
 valueXX/value
 /parameter
 parameter
 namepassword/name
 valueXXX/value
 /parameter
 parameter
 namedriverClassName/name
 valuecom.mysql.jdbc.Driver/value
 /parameter
 parameter
 nameurl/name
 
valuejdbc:mysql://domain1:3306/BASE?autoReconnect=true/value
 /parameter
 /ResourceParams
 /Context

See you!

-Original Message-
From: daniel steel [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 29 de junho de 2007 14:55
To: Tomcat Users List
Subject: Re: Update Tomcat 5 - 6 .. JDBC driver problem

if we configure the url / db access as JNDI resource in the context  files, 
then the implementation has changed betwen tomcat 5 and tomcat6.  not sure 
about tomcat 5.5..
  
  in tomcat6, it is
  
  
Context ...
  ...
  Resource name=jdbc/EmployeeDB auth=Container
type=javax.sql.DataSource username=dbusername 
password=dbpassword
driverClassName=org.hsql.jdbcDriver 
url=jdbc:HypersonicSQL:database
maxActive=8 maxIdle=4/
  ...
/Context

in tomcat 5,
 


Context ...
  ...
  Resource name=jdbc/EmployeeDB auth=Container
type=javax.sql.DataSource/
  ResourceParams name=jdbc/EmployeeDB
parameter
  nameusername/name
  valuedbusername/value
/parameter
parameter
  namepassword/name
  valuedbpassword/value
/parameter
parameter
  namedriverClassName/name
  valueorg.hsql.jdbcDriver/value
/parameter
parameter
  nameurl/name
  valuejdbc:HypersonicSQL:database/value
/parameter
parameter
  namemaxActive/name
  value8/value
/parameter
parameter
  namemaxIdle/name
  value4/value
/parameter
  /ResourceParams
  ...
/Context

thanks
dan



David Smith [EMAIL PROTECTED] wrote:  That's good info, but only barely 
related to the question at hand and they said they had it working in tomcat 
5.5.23 -- just failing in tomcat 6.  Given it works in one version of tomcat 
and not another, I highly doubt the mysql jdbc url is at fault.  The OP needs 
to post portions of their configuration (context.xml, web.xml, server.xml) 
before any further diagnosis can be done.

--David

Martin Gainty wrote:
 MySQL Connector/J doc says

 The JDBC URL format for MySQL Connector/J is as follows, with items 
 in square brackets ([, ]) being optional:
 jdbc:mysql://[host][,failoverhost...][:port]/[database] » 
 [?propertyName1][=propertyValue1][propertyName2][=propertyValue2]...

   If the hostname is not specified, it defaults to 127.0.0.1.
   If the port is not specified, it defaults to 3306, the default port 
 number for MySQL servers.
 jdbc:mysql://[host:port],[host:port].../[database] » 
 [?propertyName1][=propertyValue1][propertyName2][=propertyValue2]...

   If the database is not specified, the connection will be made with
   no default database.

 M--
 This email message and any files transmitted with it 

Strange problem with virtual host

2007-06-29 Thread Toby Hobson
Hi guys,

I'm experiencing some really strange behaviour with a new virtual host that I 
have created. Here's a little bit of background:

I have two virtual hosts within my Engine: www.esuri-apartment.com and 
www.falconsoftware.co.uk. I also have the default localhost host. Everything 
works well. Now I have tried to add a third virtual host: www.blotterpad.com 
but it doesn't work - all requests to www.blotterpad.com just produce the 
ROOT.war in the www.falconsoftware.co.uk host.

Any help would be greatly appreciated :-)

Toby

--

I've
 listed some config files and logs below:




[EMAIL PROTECTED]/usr/share/tomcat5]$ cat conf/server.xml

Server port=8005 shutdown=SHUTDOWN

Listener className=org.apache.catalina.core.AprLifecycleListener /
Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener /
Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener 
/
Listener

className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener /

GlobalNamingResources

Environment name=simpleValue type=java.lang.Integer
value=30 /

Resource name=UserDatabase
 auth=Container
type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved
factory=org.apache.catalina.users.MemoryUserDatabaseFactory
pathname=conf/tomcat-users.xml /

/GlobalNamingResources

Service name=Catalina

Connector port=80 maxHttpHeaderSize=8192 maxThreads=150
minSpareThreads=25 maxSpareThreads=75 enableLookups=false
redirectPort=8443 acceptCount=100 connectionTimeout=2
   
 disableUploadTimeout=true useBodyEncodingForURI=true /

Connector port=8009 enableLookups=false redirectPort=8443
protocol=AJP/1.3 /

Engine name=Catalina defaultHost=localhost

Realm
className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase /

Host name=localhost appBase=webapps/localhost
unpackWARs=true autoDeploy=true xmlValidation=false
   
 xmlNamespaceAware=false

Host name=www.esuri-apartment.com
appBase=webapps/esuri unpackWARs=true autoDeploy=true 
/


appbase=webapps/falcon unpackWARs=true 
autoDeploy=true /


   
 appbase=webapps/blotterpad unpackWARs=true 
autoDeploy=true /

/Host
/Engine

/Service

/Server

--

[EMAIL PROTECTED]/usr/share/tomcat5]$ ls -l webapps

drwxr-xr-x 3 tomcat tomcat   4096 Jun 12 13:13 esuri
drwxr-xr-x 2 tomcat tomcat   4096 Jun 29 15:13 falcon
drwxr-xr-x 6 tomcat tomcat   4096 Jun 29 15:32 localhost
drwxr-xr-x 6 tomcat tomcat   4096 Jun 29 15:45 blotterpad



[EMAIL PROTECTED]/usr/share/tomcat5]$ ls -R -l conf/Catalina

conf/Catalina/www.esuri-apartment.com:
-rw-r--r-- 1 tomcat tomcat   73 Jun 12 13:12 ROOT.xml

conf/Catalina/www.falconsoftware.co.uk:
-rw-r--r-- 1 tomcat tomcat 1113 Jun 12 12:53 jira.xml
-rw-r--r-- 1 tomcat tomcat   74 Jun 20 13:39 ROOT.xml

conf/Catalina/www.blotterpad.com

-rw-r--r-- 1 tomcat tomcat   74 Jun 20 13:45 ROOT.xml

--



[EMAIL PROTECTED]/usr/share/tomcat5]$ cat 
conf/Catalina/www.blotterpad.com/ROOT.xml

Context path= docBase=/home/tomcat/blotterpad.war debug=0

/Context

--




[EMAIL PROTECTED]/usr/share/tomcat5]$ cat logs/tomcat.log

ERROR main org.apache.catalina.session.PersistentManagerBase - No Store 
configured, persistence disabled
ERROR main org.apache.catalina.core.StandardContext - Error starting static 
Resources
javax.management.MalformedObjectNameException: Invalid character ':' in value 
part of property
at javax.management.ObjectName.construct(ObjectName.java:529)
at javax.management.ObjectName.init(ObjectName.java:1304)
at 
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3865)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4024)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at 
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at 

Re: Strange problem with virtual host

2007-06-29 Thread Hassan Schroeder

On 6/29/07, Toby Hobson [EMAIL PROTECTED] wrote:

Hi guys,

I'm experiencing some really strange behaviour with a new virtual host that I 
have created. Here's a little bit of background:


If the following is an actual copy/paste of your server.xml, you really
need a better (XML-aware!) editor :-)

  Host name=localhost appBase=webapps/localhost
  unpackWARs=true autoDeploy=true xmlValidation=false

   xmlNamespaceAware=false

  Host name=www.esuri-apartment.com
  appBase=webapps/esuri unpackWARs=true
autoDeploy=true /


  appbase=webapps/falcon unpackWARs=true
autoDeploy=true /



   appbase=webapps/blotterpad unpackWARs=true
autoDeploy=true /

  /Host

Tell me it doesn't really look like that...

--
Hassan Schroeder  [EMAIL PROTECTED]

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



Re: Strange problem with virtual host

2007-06-29 Thread Toby Hobson
Haha - well it was opened in vim (over an SSH terminal), then I removed all the 
comments - I'll admit it's not the prettiest xml :-)

- Original Message 
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org; Toby Hobson [EMAIL PROTECTED]
Sent: Friday, 29 June, 2007 8:51:15 PM
Subject: Re: Strange problem with virtual host

On 6/29/07, Toby Hobson [EMAIL PROTECTED] wrote:
 Hi guys,

 I'm experiencing some really strange behaviour with a new virtual host that I 
 have created. Here's a little bit of background:

If the following is an actual copy/paste of your server.xml, you really
need a better (XML-aware!) editor :-)

   Host name=localhost appBase=webapps/localhost
   unpackWARs=true autoDeploy=true xmlValidation=false

xmlNamespaceAware=false

   Host name=www.esuri-apartment.com
   appBase=webapps/esuri unpackWARs=true
autoDeploy=true /


   appbase=webapps/falcon unpackWARs=true
autoDeploy=true /



appbase=webapps/blotterpad unpackWARs=true
autoDeploy=true /

   /Host

Tell me it doesn't really look like that...

-- 
Hassan Schroeder  [EMAIL PROTECTED]






RE: Strange problem with virtual host

2007-06-29 Thread Caldarale, Charles R
 From: Toby Hobson [mailto:[EMAIL PROTECTED] 
 Subject: Re: Strange problem with virtual host
 
 Haha - well it was opened in vim (over an SSH terminal), then 
 I removed all the comments - I'll admit it's not the prettiest xml :-)

It's not just not pretty - it's completely erroneous.  As published, it
appears that Host elements are nested, some elements are terminated
but not begun, etc.  Please send the real .xml file.

 - Chuck


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

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



Re: Strange problem with virtual host

2007-06-29 Thread Toby Hobson
Sorry, that's the last time i'll try cut and paste in vim

Here's the actual file:

!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN

  !-- Comment these entries out to disable JMX MBeans support used for the 
   administration web application --
  Listener className=org.apache.catalina.core.AprLifecycleListener /
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener 
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second Connector
 entry.  SSL support requires the following steps (see the SSL Config
 HOWTO in the Tomcat 5 documentation bundle for more detailed
 instructions):
 * If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or
   later, and put the JAR files into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
   with a password value of changeit for both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector port=80 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true 
useBodyEncodingForURI=true /
!-- Note : To disable connection timeouts, set connectionTimeout value
 to 0 --

!-- Note : To use gzip compression you could set the following properties :

   compression=on 
   compressionMinSize=2048 
   noCompressionUserAgents=gozilla, traviata 
   compressableMimeType=text/html,text/xml
--

!-- Define a SSL HTTP/1.1 Connector on port 8443 --
!--
Connector port=8443 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true
   clientAuth=false sslProtocol=TLS /
--

!-- Define an AJP 1.3 Connector on port 8009 --
Connector port=8009 
   enableLookups=false redirectPort=8443 protocol=AJP/1.3 /

!-- Define a Proxied HTTP/1.1 Connector on port 8082 --
!-- See proxy documentation for more information about using this. --
!--
Connector port=8082 
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false acceptCount=100 connectionTimeout=2
   proxyPort=80 

RE: Strange problem with virtual host

2007-06-29 Thread Caldarale, Charles R
 From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
 Subject: RE: Strange problem with virtual host
 
  From: Toby Hobson [mailto:[EMAIL PROTECTED] 
  Subject: Re: Strange problem with virtual host
  
  Here's the actual file:
 
 The one sent in the most recent message has only two Host elements,
 yet your original message described problems when you were adding a
 fourth.  Will the real server.xml please stand up?

Sorry, make that adding a third.

 - Chuck


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

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



Re: Strange problem with virtual host

2007-06-29 Thread Toby Hobson
Third time lucky ...

!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN

  !-- Comment these entries out to disable JMX MBeans support used for the 
   administration web application --
  Listener className=org.apache.catalina.core.AprLifecycleListener /
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener 
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second Connector
 entry.  SSL support requires the following steps (see the SSL Config
 HOWTO in the Tomcat 5 documentation bundle for more detailed
 instructions):
 * If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or
   later, and put the JAR files into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
   with a password value of changeit for both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector port=80 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true 
useBodyEncodingForURI=true /
!-- Note : To disable connection timeouts, set connectionTimeout value
 to 0 --

!-- Note : To use gzip compression you could set the following properties :

   compression=on 
   compressionMinSize=2048 
   noCompressionUserAgents=gozilla, traviata 
   compressableMimeType=text/html,text/xml
--

!-- Define a SSL HTTP/1.1 Connector on port 8443 --
!--
Connector port=8443 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true
   clientAuth=false sslProtocol=TLS /
--

!-- Define an AJP 1.3 Connector on port 8009 --
Connector port=8009 
   enableLookups=false redirectPort=8443 protocol=AJP/1.3 /

!-- Define a Proxied HTTP/1.1 Connector on port 8082 --
!-- See proxy documentation for more information about using this. --
!--
Connector port=8082 
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false acceptCount=100 connectionTimeout=2
   proxyPort=80 disableUploadTimeout=true /
--

!-- An Engine represents the entry point 

Re: Strange problem with virtual host

2007-06-29 Thread Toby Hobson
I've just realised that the last two host elements have appbase attributes, not 
appBase 

Sorry :-(

by the way, is there a DTD or schema for server.xml?

- Original Message 
From: Toby Hobson [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, 29 June, 2007 10:28:25 PM
Subject: Re: Strange problem with virtual host

There's something strange going on here - every time i send the file it's 
getting screwed up

I'll try attaching it instead

Toby

- Original Message 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, 29 June, 2007 10:19:46 PM
Subject: RE: Strange problem with virtual host

 From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
 Subject: RE: Strange problem with virtual host
 
  From: Toby Hobson [mailto:[EMAIL PROTECTED] 
  Subject: Re: Strange problem with virtual host
 
 
  Here's the actual file:
 
 The one sent in the most recent message has only two Host elements,
 yet your original message described problems when you were adding a
 fourth.  Will the real server.xml please stand up?

Sorry, make that adding a third.

 - Chuck


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

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











RE: Strange problem with virtual host

2007-06-29 Thread Caldarale, Charles R
 From: Toby Hobson [mailto:[EMAIL PROTECTED] 
 Subject: Re: Strange problem with virtual host
 
 I've just realised that the last two host elements have 
 appbase attributes, not appBase 

That will do it.  By the way, you also have a mixture of line
terminators; the original used just line feeds, the added text is using
carriage return, line feed sequences.  Shouldn't really matter.

 by the way, is there a DTD or schema for server.xml?

Not that I'm aware of.

 - Chuck


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

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



Re: How do I set maxage on the JSESSIONID cookie?

2007-06-29 Thread Jesse Barnum
Eric, I found your code, so I'll try to modify it for my needs. I've  
never written a valve before, so wish me luck!


Chris, this is an internal application which will not be accessed by  
more than 7 people, so the server session timeout will be 48 hours.  
The idea is for the application to be accessible only to these  
certain people while minimizing the need for logins.


--Jesse Barnum, President, 360Works
http://www.360works.com
(770) 234-9293


On Jun 29, 2007, at 2:50 PM, Eric Berry wrote:


You will probably have to write a valve for this. I had to write one
to set the session cookie's domain so that it's a site wide domain.

I posted the code to this mailing list a while back. If you do a
search you should be able to find it, if not let me know I'll see if I
can get a hold of it.

Eric

On 6/29/07, Christopher Schultz [EMAIL PROTECTED] wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

Jesse Barnum wrote:
 Well, you can set the max age on a cookie to something  0,  
which means
 that it will persist for that amount of time, even if the user's  
browser
 window is closed. I'm just trying to figure out if there is a  
way to
 tell Tomcat to set that property on the cookies that it creates  
to store

 the session ID's.

You may have to do it manually (that is, grab the Cookie object  
from the

response and force the maxage).

On the other hand, the user's session is going to time out within  
that
48 hours, so what's the point of maintaining the JSESSIONID cookie  
past

the browser-session?

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

iD8DBQFGhUcu9CaO5/Lv0PARAjzeAJ9PAkO2n4InRn9s9KaoCTlZ6gogowCgipM2
VibFQ3g7DvtU4ajdOcsOa94=
=Jdtn
-END PGP SIGNATURE-

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





--
Learn from the past. Live in the present. Plan for the future.

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




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



Failure to file Listener

2007-06-29 Thread russ_2007

I have a web application.  The application uses a Portlet and Java Server
Faces.  The web.xml looks like this

?xml version=1.0 encoding=UTF-8?
web-app xmlns=http://java.sun.com/xml/ns/j2ee; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 version=2.4 
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee  
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
context-param
 param-namejavax.faces.CONFIG_FILES/param-name
 param-value/WEB-INF/faces-config.xml/param-value
/context-param
filter
   filter-nameMyFacesExtensionsFilter/filter-name
  
filter-classorg.apache.myfaces.component.html.util.ExtensionsFilter/filter-class
   init-param
  param-namemaxFileSize/param-name
  param-value20m/param-value
   /init-param
/filter
listener
  
listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
/listener
servlet
   servlet-nameFaces Servlet/servlet-name
   servlet-classjavax.faces.webapp.FacesServlet/servlet-class
   load-on-startup0/load-on-startup
/servlet
servlet
  servlet-nameTestPortlet/servlet-name
  servlet-classorg.apache.pluto.core.PortletServlet/servlet-class
  init-param
param-nameportlet-name/param-name
param-valueTestPortlet/param-value
  /init-param
  load-on-startup1/load-on-startup
/servlet
filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
  url-pattern*.faces/url-pattern
/filter-mapping
servlet-mapping
  servlet-nameFaces Servlet/servlet-name
  url-pattern*.faces/url-pattern
/servlet-mapping
servlet-mapping
  servlet-nameTestPortlet/servlet-name
  url-pattern/PlutoInvoker/TestPortlet/url-pattern
/servlet-mapping
welcome-file-list
   welcome-fileindex.jsp/welcome-file
/welcome-file-list
/web-app

  

When I check the web application (TestPortlet) using Tomcat Manager,  I see
the web application is not started.  When I start the application is fails. 
The error message is displayed in the window:

FAIL - Application at context path /TestPortlet could not be started


When I check the cmd window I used to start the server, I see the following
error:

Jun 29, 2007 4:43:51 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 29, 2007 4:43:51 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/TestPortlet] startup failed due to previous errors

My first thought was Tomcat lacked the jar files for myfaces so I added them
to to the server's library.  This did not fix the error.  

Can someone lead me in the correct direction?  I think I have the web.xml
created properly.  


Thank you for taking the time to read my post.


Russ

-- 
View this message in context: 
http://www.nabble.com/Failure-to-file-Listener-tf4002360.html#a11368032
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



setting up and configuring Apache TomCat6.0.13 to be used for .JSP developement

2007-06-29 Thread Josh Fern

I am trying to set up Apache Tomcat6.0.13 for jsp development.  I have
followed all instructions I can find for installation.

I installed java jdk1.6.0_01.

I set the port for Tomcat to 80,
the JavaHome environment variable to C:\Program Files\Java\jdk1.6.0_01
and the ClassPath to *CLASSPATH=.;C:\Program Files\Apache Software
Foundation\Tomcat 6.0lib\servlet-api.jar;C:\Program Files\Apache Software
Foundation\Tomcat 6.0\lib\jsp-api.jar

I startup the Tomcat server.  I can access http://localhost and it takes me
to the tomcat site.  If I run http://localhost/hello.html It displays the
expected site.  If I run http://localhost/hello.jsp I get the following HTTP
Status 500 exception:

*

org.apache.jasper.JasperException: File
/WEB-INF/jsp2/jsp2-example-taglib.tld not found

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)

org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java:160)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426)
org.apache.jasper.compiler.Parser.parse(Parser.java:133)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

I have tried other .jsp files and they do not work either.
I am not sure if I need to change some of the configuration settings, or
something else.

Any help would be very appreciated.

Thanks


[SOLVED] Re: How do I set maxage on the JSESSIONID cookie?

2007-06-29 Thread Jesse Barnum
Eric, that worked - your code was very helpful, thanks. I wound up  
doing it as a Filter instead of a Valve, so that it would not be tied  
to Tomcat.


Here is the code in case anybody else would find it useful:

--Jesse Barnum, President, 360Works
http://www.360works.com
(770) 234-9293



package com.prosc.servlet;

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.IOException;

/**
* This class will set the cookie maxAge to match the session timeout  
value. That way, a user who closes their browser and
* re-enters the site will still have the same session if it has not  
timed out on the server.

*/
public class SessionCookieExtender implements Filter {
private static final String JSESSIONID = JSESSIONID;

public void init( FilterConfig config ) throws ServletException {}

	public void doFilter( ServletRequest _request, ServletResponse  
_response, FilterChain chain ) throws IOException, ServletException {

if( _response instanceof HttpServletResponse ) {
HttpServletRequest httpRequest = 
(HttpServletRequest)_request;
HttpServletResponse httpResponse = 
(HttpServletResponse)_response;

HttpSession session = httpRequest.getSession();
if( session != null  session.getId() != null ) {
Cookie sessionCookie = new Cookie( JSESSIONID, 
session.getId() );
int sessionTimeoutSeconds = 
session.getMaxInactiveInterval();
sessionCookie.setMaxAge( sessionTimeoutSeconds 
);
sessionCookie.setPath( 
httpRequest.getContextPath() );
httpResponse.addCookie( sessionCookie ); //FIX! This doesn't  
actually get rid of the other cookie, but it seems to work OK

}
}
chain.doFilter( _request, _response );
}

public void destroy() {}
}



On Jun 29, 2007, at 2:50 PM, Eric Berry wrote:


You will probably have to write a valve for this. I had to write one
to set the session cookie's domain so that it's a site wide domain.

I posted the code to this mailing list a while back. If you do a
search you should be able to find it, if not let me know I'll see if I
can get a hold of it.

Eric

On 6/29/07, Christopher Schultz [EMAIL PROTECTED] wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

Jesse Barnum wrote:
 Well, you can set the max age on a cookie to something  0,  
which means
 that it will persist for that amount of time, even if the user's  
browser
 window is closed. I'm just trying to figure out if there is a  
way to
 tell Tomcat to set that property on the cookies that it creates  
to store

 the session ID's.

You may have to do it manually (that is, grab the Cookie object  
from the

response and force the maxage).

On the other hand, the user's session is going to time out within  
that
48 hours, so what's the point of maintaining the JSESSIONID cookie  
past

the browser-session?

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

iD8DBQFGhUcu9CaO5/Lv0PARAjzeAJ9PAkO2n4InRn9s9KaoCTlZ6gogowCgipM2
VibFQ3g7DvtU4ajdOcsOa94=
=Jdtn
-END PGP SIGNATURE-

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





--
Learn from the past. Live in the present. Plan for the future.

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




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



order of web app initialization.

2007-06-29 Thread suchitha koneru

Hello Tomcat users ,
 Iam using Tomcat 5.520 . I have three web application contexts
Context A, B and C. I  have a requirement because of which Context A should
start Before B and C. All the web applications contexts are  placed as WARS
under Tomcat/webapps.
How can we indicate the order in which Tomcat should start the web apps ? is
there any configuration file for specifying the order of context
initialization. What is teh default order which tomcat uses to start the web
apps ?
Please let me know.
thanks,
Suchitha.


Re: [SOLVED] Re: How do I set maxage on the JSESSIONID cookie?

2007-06-29 Thread Martin Gainty

Curious as to why you're writing a Filter
Are you modifying Request Headers or the Request itself?
Thx,
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: Jesse Barnum [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, June 29, 2007 7:05 PM
Subject: [SOLVED] Re: How do I set maxage on the JSESSIONID cookie?


Eric, that worked - your code was very helpful, thanks. I wound up  
doing it as a Filter instead of a Valve, so that it would not be tied  
to Tomcat.


Here is the code in case anybody else would find it useful:

--Jesse Barnum, President, 360Works
http://www.360works.com
(770) 234-9293



package com.prosc.servlet;

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.IOException;

/**
* This class will set the cookie maxAge to match the session timeout  
value. That way, a user who closes their browser and
* re-enters the site will still have the same session if it has not  
timed out on the server.

*/
public class SessionCookieExtender implements Filter {
private static final String JSESSIONID = JSESSIONID;

public void init( FilterConfig config ) throws ServletException {}

public void doFilter( ServletRequest _request, ServletResponse  
_response, FilterChain chain ) throws IOException, ServletException {

if( _response instanceof HttpServletResponse ) {
HttpServletRequest httpRequest = (HttpServletRequest)_request;
HttpServletResponse httpResponse = (HttpServletResponse)_response;

HttpSession session = httpRequest.getSession();
if( session != null  session.getId() != null ) {
Cookie sessionCookie = new Cookie( JSESSIONID, session.getId() );
int sessionTimeoutSeconds = session.getMaxInactiveInterval();
sessionCookie.setMaxAge( sessionTimeoutSeconds );
sessionCookie.setPath( httpRequest.getContextPath() );
httpResponse.addCookie( sessionCookie ); //FIX! This doesn't  
actually get rid of the other cookie, but it seems to work OK

}
}
chain.doFilter( _request, _response );
}

public void destroy() {}
}



On Jun 29, 2007, at 2:50 PM, Eric Berry wrote:


You will probably have to write a valve for this. I had to write one
to set the session cookie's domain so that it's a site wide domain.

I posted the code to this mailing list a while back. If you do a
search you should be able to find it, if not let me know I'll see if I
can get a hold of it.

Eric

On 6/29/07, Christopher Schultz [EMAIL PROTECTED] wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

Jesse Barnum wrote:
 Well, you can set the max age on a cookie to something  0,  
which means
 that it will persist for that amount of time, even if the user's  
browser
 window is closed. I'm just trying to figure out if there is a  
way to
 tell Tomcat to set that property on the cookies that it creates  
to store

 the session ID's.

You may have to do it manually (that is, grab the Cookie object  
from the

response and force the maxage).

On the other hand, the user's session is going to time out within  
that
48 hours, so what's the point of maintaining the JSESSIONID cookie  
past

the browser-session?

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

iD8DBQFGhUcu9CaO5/Lv0PARAjzeAJ9PAkO2n4InRn9s9KaoCTlZ6gogowCgipM2
VibFQ3g7DvtU4ajdOcsOa94=
=Jdtn
-END PGP SIGNATURE-

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





--
Learn from the past. Live in the present. Plan for the future.

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




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




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



Re: Using Tomcat 5.5.23 with jdk 1.6.0_1

2007-06-29 Thread Li

Hi Caldarale,

Thanks for your comments. I had the same compatibility problem on Fedora, by
copying the tool.jar - although it is not a good idea- it worked out.
Anyway, thanks for your comments.

Regards

Li

On 6/29/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:


 From: Li [mailto:[EMAIL PROTECTED]
 Subject: Re: Using Tomcat 5.5.23 with jdk 1.6.0_1

 Defaultly tomcat 5.5 only support up to JDK5. If you wanna run your
 application which was written by JDK 6, you can use Tomcat 6 + JDK 6.

Not true.  JDK 6 is fully upward compatible with JDK 5.

 If you really wanna use Tomcat 5.5 with JDK 6 in Linux, you
 may have to check if you need copy the tools.jar from JDK6
 to tomcat common/lib.

Also not true, and a very bad idea.  Neither Tomcat 5.5 nor Tomcat 6
require tools.jar; both versions will happily run on just a JRE.

The JVM crash is, by definition, caused by faulty hardware, the OS, or a
flaw in the JVM; pure Java programs cannot crash the JVM (although
native code can).  In the past, the -server mode of the JVM has been
less stable than -client; if the hardware checks out, you might try
running in -client mode to see if the problem disappears.

- Chuck


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

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





--
Small win by playing smart
Big win by playing honest


Re: Using Tomcat 5.5.23 with jdk 1.6.0_1

2007-06-29 Thread Martin Gainty

FYI: surname follows the familiar so if my name was 'Cat Dog' you would say
Hi Cat (familiar)
or
Hello Mr Dog (formal)

Glad to hear that worked for you..

'Cat Dog'
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: Li [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, June 29, 2007 8:46 PM
Subject: Re: Using Tomcat 5.5.23 with jdk 1.6.0_1



Hi Caldarale,

Thanks for your comments. I had the same compatibility problem on Fedora, 
by

copying the tool.jar - although it is not a good idea- it worked out.
Anyway, thanks for your comments.

Regards

Li

On 6/29/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:


 From: Li [mailto:[EMAIL PROTECTED]
 Subject: Re: Using Tomcat 5.5.23 with jdk 1.6.0_1

 Defaultly tomcat 5.5 only support up to JDK5. If you wanna run your
 application which was written by JDK 6, you can use Tomcat 6 + JDK 6.

Not true.  JDK 6 is fully upward compatible with JDK 5.

 If you really wanna use Tomcat 5.5 with JDK 6 in Linux, you
 may have to check if you need copy the tools.jar from JDK6
 to tomcat common/lib.

Also not true, and a very bad idea.  Neither Tomcat 5.5 nor Tomcat 6
require tools.jar; both versions will happily run on just a JRE.

The JVM crash is, by definition, caused by faulty hardware, the OS, or a
flaw in the JVM; pure Java programs cannot crash the JVM (although
native code can).  In the past, the -server mode of the JVM has been
less stable than -client; if the hardware checks out, you might try
running in -client mode to see if the problem disappears.

- Chuck


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

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





--
Small win by playing smart
Big win by playing honest




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



Re: Failure to file Listener

2007-06-29 Thread russ_2007

For the good of the group:  

The issue was the fact the jar files for myfaces were not loaded on the
server.



russ_2007 wrote:
 
 I have a web application.  The application uses a Portlet and Java Server
 Faces.  The web.xml looks like this
 
 ?xml version=1.0 encoding=UTF-8?
 web-app xmlns=http://java.sun.com/xml/ns/j2ee; 
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
  version=2.4 
  xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee  
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 context-param
  param-namejavax.faces.CONFIG_FILES/param-name
  param-value/WEB-INF/faces-config.xml/param-value
 /context-param
 filter
filter-nameMyFacesExtensionsFilter/filter-name
   
 filter-classorg.apache.myfaces.component.html.util.ExtensionsFilter/filter-class
init-param
   param-namemaxFileSize/param-name
   param-value20m/param-value
/init-param
 /filter
 listener
   
 listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
 /listener
 servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup0/load-on-startup
 /servlet
 servlet
   servlet-nameTestPortlet/servlet-name
   servlet-classorg.apache.pluto.core.PortletServlet/servlet-class
   init-param
 param-nameportlet-name/param-name
 param-valueTestPortlet/param-value
   /init-param
   load-on-startup1/load-on-startup
 /servlet
 filter-mapping
   filter-nameMyFacesExtensionsFilter/filter-name
   url-pattern*.faces/url-pattern
 /filter-mapping
 servlet-mapping
   servlet-nameFaces Servlet/servlet-name
   url-pattern*.faces/url-pattern
 /servlet-mapping
 servlet-mapping
   servlet-nameTestPortlet/servlet-name
   url-pattern/PlutoInvoker/TestPortlet/url-pattern
 /servlet-mapping
 welcome-file-list
welcome-fileindex.jsp/welcome-file
 /welcome-file-list
 /web-app
 
   
 
 When I check the web application (TestPortlet) using Tomcat Manager,  I
 see the web application is not started.  When I start the application is
 fails.  The error message is displayed in the window:
 
 FAIL - Application at context path /TestPortlet could not be started
 
 
 When I check the cmd window I used to start the server, I see the
 following error:
 
 Jun 29, 2007 4:43:51 PM org.apache.catalina.core.StandardContext start
 SEVERE: Error listenerStart
 Jun 29, 2007 4:43:51 PM org.apache.catalina.core.StandardContext start
 SEVERE: Context [/TestPortlet] startup failed due to previous errors
 
 My first thought was Tomcat lacked the jar files for myfaces so I added
 them to to the server's library.  This did not fix the error.  
 
 Can someone lead me in the correct direction?  I think I have the web.xml
 created properly.  
 
 
 Thank you for taking the time to read my post.
 
 
 Russ
 
 

-- 
View this message in context: 
http://www.nabble.com/Failure-to-file-Listener-tf4002360.html#a11369981
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: order of web app initialization.

2007-06-29 Thread David Smith
There is no guarantee of any order in initializing contexts.  You would 
better spend your time designing webapps B and C to deal with the 
possibility webapp A isn't running.  Or at least design them to deal 
with the possibility that they may start out of order.


This has also been answered on the list before and always with the 
answer given above.


--David


suchitha koneru wrote:

Hello Tomcat users ,
 Iam using Tomcat 5.520 . I have three web application contexts
Context A, B and C. I  have a requirement because of which Context A 
should
start Before B and C. All the web applications contexts are  placed as 
WARS

under Tomcat/webapps.
How can we indicate the order in which Tomcat should start the web 
apps ? is

there any configuration file for specifying the order of context
initialization. What is teh default order which tomcat uses to start 
the web

apps ?
Please let me know.
thanks,
Suchitha.




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



CGIServlet

2007-06-29 Thread Robert J. Carr

I'd like to use some basic CGI in my webapp but I don't want to rely
on server admins to set it up per the directions of the how to (found
at http://tomcat.apache.org/tomcat-5.5-doc/cgi-howto.html).  When I
follow those directions, everything works fine, however I'd like to
put the CGIServlet definition into my own webapp.

To do this, I simply put the servlet definitions into my own web.xml,
and then put the servlets-cgi.jar into my own lib.  When doing this, I
get a ClassNotFound exception on CGIServlet.

At first I was pretty stumped by this, because I was sure the classes
were there to be found, but after digging a bit deeper, I think it was
just a bad exception.  I'm guessing the reason I'm getting the error
is because CGIServlet.jar imports two other classes:

import org.apache.catalina.Globals;
import org.apache.catalina.util.IOTools;

Those classes are located in catalina.jar and catalina-optional.jar,
respectively, which are both in servert/lib, which aren't visible to
webapps.

I can try putting those two jars into my webapp, but it is likely to
cascade and those jars need jars, etc.  So, my question is, what would
be the best approach for getting the CGISerlet into my own webapp
without having to set it up at a global level?  Or maybe I'm wrong in
my ClassNotFound diagnosis?  Thanks!

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



WebdavServlet

2007-06-29 Thread Robert J. Carr

I'd like to add the webdav servlet to my own web application.  I can
do this and it works, but it treats the root of my webapp as the root
of the dav share.  I would like to have my webapp do more than webdav,
so I was hoping I could specify that only a portion of my webapp is
visible to dav.  I initially (naively) though setting up a simple
servlet mapping would fix it, similar to this:

servlet-mapping
 servlet-namewebdav/servlet-name
 url-pattern/dav/*/url-pattern
/servlet-mapping

But then realized this has nothing to do with the share point.  So
then I thought it would be set as an init-param, but looking at the
docs there is no such parameter, but the top of WebdavServlet.java
says this:

* Check out http://issues.apache.org/bugzilla/show_bug.cgi?id=40160
for a Filter
* that allows you to map this servlet anywhere inside a web
application, not just
* the /* URL pattern.

So this sounds like what I'm after.  I look at the issue and the guys
initial report seems exactly like my situation.  After that, another
guy posts a solution using a filter, and although I'm far from a
filter expert, this doesn't seem like a solution at all.  The code has
typos in it, so that makes me even more suspicious that it wasn't
tested.

So I'm hoping someone can provide a solution for me, or if the filter
*does* work, explain how/why, because what I've seen just seems to
cover request made for specific microsoft resources.

Thanks!

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