Re: Tomcat 5.5 Memory (not in catalina.sh anymore).

2005-07-10 Thread Christoph Kutzinski

Hi,

the Tomcat FAQ describes how to adjust the memory settings.


Christoph

Dave Morrow wrote:
Hi all.  


I recently updated to Tomcat 5.5

All is well, with one exception.  In prior releases (4.1) I could edit the 
catalina.sh script to adjust the memory settings.  Where would I do this in 5.5?

David A. Morrow
Technical Systems Lead
Autodata Solutions Company
[EMAIL PROTECTED]
http://www.autodata.net
Tel: (519) 951-6079
Fax: (519) 451-6615 


< Freedom is just another word for nothing left to lose- Janis Joplin >

This message has originated from Autodata Solutions. The attached material is the 
Confidential and Proprietary Information of Autodata Solutions. This email and any 
files transmitted with it are confidential and intended solely for the use of the 
individual or entity to whom they are addressed. If you have received this email in 
error please delete this message and notify the Autodata system administrator at 
[EMAIL PROTECTED] 





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



Re: NPE on cluster start

2005-07-10 Thread Peter Johnson

Hi Sivaram,

I had something similar but it nolonger works in 5.0.30-beta ... it 
seems to need to be in a format like below. This at least tries to start 
even if it NPEs.



serviceclass="org.apache.catalina.cluster.mcast.McastService"

mcastAddr="239.192.42.4"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"
tcpThreadCount="6"
tcpListenAddress="auto"
tcpListenPort="4001"
tcpSelectorTimeout="100"
printToScreen="false"
expireSessionsOnShutdown="false"/>

   

PJ

Sivaram Kumar wrote:


Hi peter,
 for you information this is my cluster code.it working fine for me.



   

   

   

   




- Original Message -
From: "Peter Johnson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Monday, July 11, 2005 3:02 PM
Subject: NPE on cluster start


 


Hi All,

I am getting an NPE on cluster start with 5.0.30-beta  any ideas?

ERROR main org.apache.catalina.cluster.tcp.SimpleTcpCluster - Unable to
start cluster.
java.lang.NullPointerException
   at

   


org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:160)
 


   at

   


org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:114)
 


   at

   


org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java
:406)
 


   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1073)
   at
org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
   at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
   at
org.apache.catalina.core.StandardService.start(StandardService.java:480)
   at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at

   


sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 


   at

   


sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 


   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
ERROR main org.apache.catalina.startup.Catalina - Catalina.start:
LifecycleException:  java.lang.NullPointerException
   at

   


org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java
:433)
 


   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1073)
   at
org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
   at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
   at
org.apache.catalina.core.StandardService.start(StandardService.java:480)
   at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at

   


sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 


   at

   


sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 


   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)


Thanks in advance,
PJ

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

   




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

 



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



Re: NPE on cluster start

2005-07-10 Thread Sivaram Kumar
Hi peter,
  for you information this is my cluster code.it working fine for me.














- Original Message -
From: "Peter Johnson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Monday, July 11, 2005 3:02 PM
Subject: NPE on cluster start


> Hi All,
>
> I am getting an NPE on cluster start with 5.0.30-beta  any ideas?
>
> ERROR main org.apache.catalina.cluster.tcp.SimpleTcpCluster - Unable to
> start cluster.
>  java.lang.NullPointerException
> at
>
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:160)
> at
>
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:114)
> at
>
org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java
:406)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1073)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:480)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
> ERROR main org.apache.catalina.startup.Catalina - Catalina.start:
>  LifecycleException:  java.lang.NullPointerException
> at
>
org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java
:433)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1073)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:480)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
>
>
> Thanks in advance,
> PJ
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



NPE on cluster start

2005-07-10 Thread Peter Johnson

Hi All,

I am getting an NPE on cluster start with 5.0.30-beta  any ideas?

ERROR main org.apache.catalina.cluster.tcp.SimpleTcpCluster - Unable to 
start cluster.

java.lang.NullPointerException
   at 
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:160)
   at 
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:114)
   at 
org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java:406)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1073)
   at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:480)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)

   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
ERROR main org.apache.catalina.startup.Catalina - Catalina.start:
LifecycleException:  java.lang.NullPointerException
   at 
org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java:433)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1073)
   at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:480)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)

   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)


Thanks in advance,
PJ

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



RE: add to classpath

2005-07-10 Thread Stuart
David,
Can the DB hold my hibernate.cfg.xml, castor.properties, log4j.properties?
Even if there was a way to put these in the database I'm afraid its more
trouble than it worth.

Thanks for the suggestions but I'll just stick with my script change.
Stuart

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 11, 2005 12:57 AM
To: Tomcat Users List
Subject: Re: add to classpath

Then I would highly recommend a persistent backend like a Db instead of 
playing with the classpath.  Just my opinion.

--David

Stuart wrote:

>Guru,
>I need to do this so that I can deliver the application following my
>company's standard format.  The tomcat application is just a small part of
>what is being delivered and we like to put all configuration information in
>a standard place for all apps. [please don't ask for any more explanation
>that this just accept the fact that I need to do it] *8-)
>
>BTW: I have just gone ahead and modified the Catalina.sh (I would rather
>have some other way but at least it works...).
>
>Thanks,
>Stuart
>
>-Original Message-
>From: Gurumoorthy [mailto:[EMAIL PROTECTED] 
>Sent: Saturday, July 09, 2005 10:29 PM
>To: Tomcat Users List
>Subject: Re: add to classpath
>
>why are you doing this ? just copy the jars to the lib directory inside 
>WEB-INF .. and restart the app ...
>or if this spans into multiple application then ... put them in the 
>tomcat/common/bin directory ...
>
>Regards
>guru
>- Original Message - 
>From: "Stuart" <[EMAIL PROTECTED]>
>To: "'Tomcat Users List'" 
>Sent: Saturday, July 09, 2005 8:19 AM
>Subject: add to classpath
>
>
>  
>
>>Hi,
>>Please scratch that last question.  I still do not know what the problem 
>>is
>>but I think I will just go with modifying Catalina.sh.  Actually all I 
>>need
>>to do is add to the tomcat classpath so that my web applications can find
>>things in different locations.
>>
>>Is there are better way than hacking the .sh file (jakarta-tomcat-5.0.28)?
>>
>>Thanks,
>>
>>Stuart
>>
>>
>>
>>-Original Message-
>>From: Stuart [mailto:[EMAIL PROTECTED]
>>Sent: Saturday, July 09, 2005 1:42 PM
>>To: 'Tomcat Users List'
>>Subject: Problem using org.apache.catalina.startup.Bootstrap
>>
>>
>>Hi,
>>
>>I am trying to start Tomcat using my own script and am getting the 
>>following
>>error (Please help!):
>>
>>/cygdrive/c/j2sdk1.4.2_07/bin/java -classpath
>>.\;c:\data\stuart\npshome\var\prop
>>
>>
>>
>erties\lsms;c:\jakarta-tomcat-5.0.28\bin\bootstrap.jar;c:\j2sdk1.4.2_07\lib
\
>  
>
>>tool
>>s.jar -Dcatalina.base=c:\data\stuart\npshome\var\lsmsweb
>>-Dcatalina.home=c:\jakarta-tomcat-5.0.28 -Djava.io.tmpdir=
>>
>>
>>
>-Djava.endorsed.dirs=c:\jakarta-tomcat-5.0.28\bin;c:\jakarta-tomcat-5.0.28\
c
>  
>
>>ommon\lib org.apache.catalina.startup.Bootstrap start
>>
>>
>>Bootstrap: Class loader creation threw exception
>>java.lang.ExceptionInInitializerError  at
>>
>>
>>
>org.apache.catalina.startup.ClassLoaderFactory.(ClassLoaderFactory.
j
>  
>
>>ava:63)  at
>>org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java
>>:103)at
>>org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196)
>>   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402)
>>Caused by: org.apache.commons.logging.LogConfigurationException:
>>org.apache.comm
>>ons.logging.LogConfigurationException: java.lang.NullPointerException
>>(Caused by
>>java.lang.NullPointerException) (Caused by
>>org.apache.commons.logging.LogConfig
>>urationException: java.lang.NullPointerException (Caused by
>>java.lang.NullPointerException))at
>>org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
>>Impl.java:543)at
>>org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
>>Impl.java:235)
>>
>>Regards,
>>Stuart
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>


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


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



Tomcat 5.5 Memory (not in catalina.sh anymore).

2005-07-10 Thread Dave Morrow
Hi all.  

I recently updated to Tomcat 5.5

All is well, with one exception.  In prior releases (4.1) I could edit the 
catalina.sh script to adjust the memory settings.  Where would I do this in 5.5?

David A. Morrow
Technical Systems Lead
Autodata Solutions Company
[EMAIL PROTECTED]
http://www.autodata.net
Tel: (519) 951-6079
Fax: (519) 451-6615 

< Freedom is just another word for nothing left to lose- Janis Joplin >

This message has originated from Autodata Solutions. The attached material is 
the Confidential and Proprietary Information of Autodata Solutions. This email 
and any files transmitted with it are confidential and intended solely for the 
use of the individual or entity to whom they are addressed. If you have 
received this email in error please delete this message and notify the Autodata 
system administrator at [EMAIL PROTECTED] 



Jk's shared memory file - fixed? bug?

2005-07-10 Thread Paul George Constantine
Ok, here's what happened. I'm running Apace 2.0 on Fedora Core 4, connecting
to Tomcat 5.0.28 with Jk 1.2.10. In my /etc/httpd/conf/httpd.conf, I had:

#Jk stuff
LoadModule  jk_module /usr/lib/httpd/modules/mod_jk.so
JkWorkersFile   /etc/httpd/conf/workers.properties
JkLogFile   /var/log/httpd/mod_jk.log
JkLogLevel  info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkMount /jsp-examples/* ajp13w
JkMount /JSPWiki/* ajp13w
JkShmFile   /etc/httpd/logs/jk-runtime-status

In /etc/httpd/conf/workers.properties, I had:

worker.list=wlb,jkstatus,ajp13w

worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w

worker.jkstatus.type=status

In /usr/share/tomcat5/conf/server.xml, I had





Everything was working fine until the file /etc/httpd/logs/jk-runtime-status
reached the default JkShmSize limit of 64k. Once that happened, everything
died. I started getting errors in mod_jk.log like:

[error] init_jk::mod_jk.c (2347): Initializing
shm:/etc/httpd/logs/jk-runtime-status errno=13

errno=13 is typically a permission denied error, but my permissions were set
appropriately. I tried deleting the contents of
/etc/httpd/logs/jk-runtime-status to get below the size limit, but that
didn't help anything. I tried creating a new file /etc/httpd/logs/jk.shm
and pointing my config file there, but no success. I didn't get things
working again until I recompiled my mod_jk.so and reinstalled it. I checked
out the code in jk_shm.c that was giving me an error:

jk_shmem.hdr = (jk_shm_header_t *)calloc(1, jk_shmem.size);
if (!jk_shmem.hdr) {
JK_TRACE_EXIT(l);
return -1;
}

So, devs, why was this breaking? I've now set JkShmSize to 10M. But will it
break again once jk.shm reaches 10M?

Anybody out there?

-Paul


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



dir for variables Servlet_classes and Servlet_lib for Lawson

2005-07-10 Thread johnny . page
I am trying to detemine the actual values for variable for tomcat dir 
which are Servlet_classes and Servlet_lib for the lawson application. 

IMPORTANT LEGAL NOTICE:  This notice, including any attachment, contains 
information that may be confidential or privileged and is intended solely for 
the entity or individual to whom it is addressed.  If you are not the intended 
recipient, please notify the sender at once.  You should delete this message 
and are hereby notified that any disclosure, copying or distribution of this 
message is strictly prohibited.  Nothing in this email, including any 
attachment, is intended to be a legally binding signature.

Excellence Above All...   Visit our Web Site @http://www.jewishhospital.org/

permission denied error on jk.shm

2005-07-10 Thread Paul George Constantine
In my httpd.conf, I set

JkShmFile   /etc/httpd/logs/jk.shm
JkShmSize   10M

but when I start Apache, I get an error in my mod_jk.log that says

init_jk::mod_jk.c (2347): Initializing shm:/etc/httpd/logs/jk.shm errno=13
jk_child_init::mod_jk.c (2313): Attachning shm:/etc/httpd/logs/jk.shm
errno=13

These are 'permission denied' errors but I don't know what permissions to
set to allow mod_jk to write to them!!!

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



RE: Controlling Tomcat Service From Ant

2005-07-10 Thread Richard Mixon (qwest)
Yes, if your service  name is "tomcat" you can do something similar to
the following:

  

   

  

   

Check out the Ant "exec" task documentation.

 - Richard

-Original Message-
From: Jason W. Solinsky [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 10, 2005 10:26 AM
To: tomcat-user@jakarta.apache.org
Subject: Controlling Tomcat Service From Ant

Is there anyway to effectively start or stop the Tomcat 5.5 windows
service from within Ant?

I tried

  

  

but it produces an error message (although it works) and I don't know
what the corresponding command would be to restart the service. Is there
some standard way to accomplish this?

Thanks,

JWS

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




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



JkShmFile???

2005-07-10 Thread Paul George Constantine
With the Jk connector version 1.2.10, you must include a directive in the
Apache httpd.conf

JkShmFile /path/to/smfile

Does anyone know what file I'm supposed to point to? I randomly pointed it
to a log file (because I had no idea what I was doing), but once the log
file reached the default JkShmSize of 64k, everything died.

Thanks,
Paul

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



Re: Welcome File

2005-07-10 Thread Behrang Saeedzadeh

Hi


Question: Does it return a page if you request the index.jsf page  
directly?


Yes. It renders the index.jsp JSF page successfuly on the screen.

- Behrang

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



Controlling Tomcat Service From Ant

2005-07-10 Thread Jason W. Solinsky
Is there anyway to effectively start or stop the Tomcat 5.5 windows 
service from within Ant?


I tried

 
   
 

but it produces an error message (although it works) and I don't know 
what the corresponding command would be to restart the service. Is there 
some standard way to accomplish this?


Thanks,

JWS

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



Re: Fedora core 2, 3 Tmact 5. running Problems

2005-07-10 Thread Massoud Kohan
Thanks for your replay.
That command helped me to find out, the command should i use is:
. catalina.sh start
Now Tomcat is working.
Thanks,

Massoud


> 
> Thanks.
> Massoud
> 
>


Re: add to classpath

2005-07-10 Thread David Smith
Then I would highly recommend a persistent backend like a Db instead of 
playing with the classpath.  Just my opinion.


--David

Stuart wrote:


Guru,
I need to do this so that I can deliver the application following my
company's standard format.  The tomcat application is just a small part of
what is being delivered and we like to put all configuration information in
a standard place for all apps. [please don't ask for any more explanation
that this just accept the fact that I need to do it] *8-)

BTW: I have just gone ahead and modified the Catalina.sh (I would rather
have some other way but at least it works...).

Thanks,
Stuart

-Original Message-
From: Gurumoorthy [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 09, 2005 10:29 PM

To: Tomcat Users List
Subject: Re: add to classpath

why are you doing this ? just copy the jars to the lib directory inside 
WEB-INF .. and restart the app ...
or if this spans into multiple application then ... put them in the 
tomcat/common/bin directory ...


Regards
guru
- Original Message - 
From: "Stuart" <[EMAIL PROTECTED]>

To: "'Tomcat Users List'" 
Sent: Saturday, July 09, 2005 8:19 AM
Subject: add to classpath


 


Hi,
Please scratch that last question.  I still do not know what the problem 
is
but I think I will just go with modifying Catalina.sh.  Actually all I 
need

to do is add to the tomcat classpath so that my web applications can find
things in different locations.

Is there are better way than hacking the .sh file (jakarta-tomcat-5.0.28)?

Thanks,

Stuart



-Original Message-
From: Stuart [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 09, 2005 1:42 PM
To: 'Tomcat Users List'
Subject: Problem using org.apache.catalina.startup.Bootstrap


Hi,

I am trying to start Tomcat using my own script and am getting the 
following

error (Please help!):

/cygdrive/c/j2sdk1.4.2_07/bin/java -classpath
.\;c:\data\stuart\npshome\var\prop

   


erties\lsms;c:\jakarta-tomcat-5.0.28\bin\bootstrap.jar;c:\j2sdk1.4.2_07\lib\
 


tool
s.jar -Dcatalina.base=c:\data\stuart\npshome\var\lsmsweb
-Dcatalina.home=c:\jakarta-tomcat-5.0.28 -Djava.io.tmpdir=

   


-Djava.endorsed.dirs=c:\jakarta-tomcat-5.0.28\bin;c:\jakarta-tomcat-5.0.28\c
 


ommon\lib org.apache.catalina.startup.Bootstrap start


Bootstrap: Class loader creation threw exception
java.lang.ExceptionInInitializerError  at

   


org.apache.catalina.startup.ClassLoaderFactory.(ClassLoaderFactory.j
 


ava:63)  at
org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java
:103)at
org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402)
Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.comm
ons.logging.LogConfigurationException: java.lang.NullPointerException
(Caused by
java.lang.NullPointerException) (Caused by
org.apache.commons.logging.LogConfig
urationException: java.lang.NullPointerException (Caused by
java.lang.NullPointerException))at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
Impl.java:543)at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:235)

Regards,
Stuart


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


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

   




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


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

 




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



Re: Welcome File

2005-07-10 Thread David Smith

Question: Does it return a page if you request the index.jsf page directly?

--David

Behrang Saeedzadeh wrote:


Hi

Thanks for the reply.


I think the servlet mappipng should be ,


Faces Servlet
/JSF01
 



I think this is not true. I remember when I was using Struts, my  
ActionServlet's
mapping was something like *.do or /do/* and putting index.do in the  
welcome file list

was working (I'm not sure, I've to check it once again...)

Thanks,




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



Re: Fedora core 2, 3 Tmact 5. running Problems

2005-07-10 Thread Gurumoorthy

try ./catalina run and what is the error ..

Regards
Guru
- Original Message - 
From: "Massoud Kohan" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, July 10, 2005 3:22 PM
Subject: Fedora core 2, 3 Tmact 5. running Problems


Hi,
I have Fedora core 3 kernel 2.6.11-1.35_FC3 which I could not run the Tomcat
I Upgrade it from Fedora Core 2.
I install j2sdk1.4.2_08 and jakarta-tomcat-5.0.28 in usr/local directory
with root privilege.
and used these commands:
export JAVA_HOME="/usr/local/ j2sdk1.4.2_08"
and
export CATALINA_HOME="/usr/local/jakarta-tomcat-5.0.28"
to set up the PATH.
When I open a Termainal and go to the /usr/local/jakarta-tomcat-5.0.28/bin
directory and use this command . startup.sh
the Terminal will close . There in not any error int catalina.out.
Please help me to run the Tomcat.

Thanks.
Massoud


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



Fedora core 2, 3 Tmact 5. running Problems

2005-07-10 Thread Massoud Kohan
Hi,
I have Fedora core 3 kernel 2.6.11-1.35_FC3 which I could not run the Tomcat 
I Upgrade it from Fedora Core 2.
I install j2sdk1.4.2_08 and jakarta-tomcat-5.0.28 in usr/local directory 
with root privilege.
and used these commands:
export JAVA_HOME="/usr/local/ j2sdk1.4.2_08"
and
export CATALINA_HOME="/usr/local/jakarta-tomcat-5.0.28"
to set up the PATH.
When I open a Termainal and go to the /usr/local/jakarta-tomcat-5.0.28/bin 
directory and use this command . startup.sh 
the Terminal will close . There in not any error int catalina.out.
Please help me to run the Tomcat.

Thanks.
Massoud


Decompressing a gzip compressed request body

2005-07-10 Thread Adi Gati
Hi all,

 

I am using Tomcat4.
Does anyone know how to enable decompression of a GZIP request body?

 

I fail to open a GZIPInputStream on the request.getInputStream().

Is there a Filter I can use?

How can I use it?

 

Thanks,

  Adi.

 



A question about non-physical welcome files

2005-07-10 Thread Behrang Saeedzadeh

Hi

As long as I can remember, once I read that in pre 2.4 Servlet  
specifications
it was impossible to use a non-physical partial URI in the welcome file  
list, and
then in 2.4 it was specified that one can add a non-physical partial URI  
in the

welcome file list.

Right now I was reading through the Servlet sepcs 2.2 to 2.4 and I can't  
see
anything related to this change. Version 2.2 is very ambigous and I can't  
find any

difference between 2.3 and 2.4 in this regard.

Could someone explain if he or she knows about this?

Best Regards,
--
Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa

Using Opera's revolutionary e-mail client

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



Problem with PNG files and

2005-07-10 Thread Dean Searle
Hello Everyone,

Hope everyone is having a great weekend. I'm new at posting to the group
but have been watching the serv list for a few years now. I usually can
find my answers by googling or searching the archive, but I think I
might have run upon something that I have not been able to find yet.

I have a welcome page that has 4 .png images on it. I know that IE 5.5
and higher have an issue with displaying .png files if they have
transparency enabled, the transparency turns grey. To make IE work
correctly there is a JavaScript you can run in your web page and it
makes it work. How ever, when I turned on ,my
images would show up for a split second then they would disappear. The
spots where they should be would not even work as a link like they are
setup to be. If you use Firefox it works fine. It works fine being
served up on a windows XP pc with tomcat 5.0.30 and java version
1.5.0_02. I'm using FreeBSD Release 4.10-p2 and tomcat 5.0.30 and have
used java 1.5.0-p1 and java 1.4.2-p7

I also noticed in the tomcat log file that during startup there were
some error with my servlet that I am using, but have no errors when used
in windows. Page two of the PDF starts the error message.

All the code and errors can be found at this link
http://computingoasis.com/apache/errorlog.pdf

If there is anything more that you require I would be more than happy to
post what you need.

Thank you for your help in advance,


Dean Searle



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



Re: Welcome File

2005-07-10 Thread Behrang Saeedzadeh

Hi

Thanks for the reply.


I think the servlet mappipng should be ,


Faces Servlet
/JSF01
 



I think this is not true. I remember when I was using Struts, my  
ActionServlet's
mapping was something like *.do or /do/* and putting index.do in the  
welcome file list

was working (I'm not sure, I've to check it once again...)

Thanks,
--
Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa

Using Opera's revolutionary e-mail client

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



Re: Welcome File

2005-07-10 Thread tomcat

Behrang Saeedzadeh wrote:


Hi

I've a simple JSF application. As long as I can remember, it was 
possible  to specify
a logical URI instead of as a physical file in the welcome file list 
in  the 2.4 spec.


I have specified the index.jsf page to be the welcome page, but I'm  
presented with
the directory listing when I visit the homepage of my Web app, namely  
http://localhost:8084/JSF01/


The web.xml file is:


http://java.sun.com/xml/ns/j2ee";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee  
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";

 version="2.4">
 
javax.faces.CONFIG_FILES
/WEB-INF/faces-config.xml


javax.faces.STATE_SAVING_METHOD
server


org.apache.myfaces.ALLOW_JAVASCRIPT
true


org.apache.myfaces.DETECT_JAVASCRIPT
false


org.apache.myfaces.PRETTY_HTML
true


org.apache.myfaces.AUTO_SCROLL
true



org.apache.myfaces.webapp.StartupServletContextListener 



 
Faces Servlet

javax.faces.webapp.FacesServlet

1
 
 
Faces Servlet
*.jsf
 
 
index.jsf



Any ideas?

Thanks in advance,


Hi,

I think the servlet mappipng should be ,

   
   Faces Servlet
   /JSF01


Hope this helps.

Martin H.


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



Re: How to query Tomcat for the number of peers in the cluster without using the JMX

2005-07-10 Thread Peter Rossbach

HEy,

you can access you local Mbeans Server and write your own HTML interface 
to show cluster state.

Look inside Manager or Admin app for example.

Peter

Edmon Begoli schrieb:

Since I may not be allowed to enable JMX on the production, but we would 
still like to query 
host Tomcat for the number of peers in the cluster can someone please share 
how can this be accomplished
using the Tomcat API, and what jars, if any, I would need to have in the lib 
directory of my web application.


 






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



Re: session replication problem: ClassCastException

2005-07-10 Thread Peter Rossbach

Hmm,

First your are sure that your wars inside the installation art identical?
You stacktraces are strange.
   The cast inside writeSession use only tomcat classes!
   Have you change the authorisation and use your own principal 
implementation ?


For more help I think do the following steps
a)   update to tomcat 5.5.9
b)   install the cluster fix ( The Bug Database 
http://issues.apache.org/bugzilla/show_bug.cgi?id=34389)
c)   change your Cluster Config from SimpleTcpReplicationManager to 
DeltaManager

d)   Use fastasyncqueue mode.


Peter

Christian Schuhegger schrieb:


hello,

we have since two weeks a problem with session replication.

we use jakarta-tomcat-5.5.4.tar.gz with the compatibility package for 
jdk1.4 on a redhat advanced server.


we are sure that session replication was still working roughly two 
weeks ago, but the only thing we remember that we changed during that 
time was the layout of the configuration files, e.g. instead of having 
the server.xml file directly in the conf directory we created a link 
to this file which resides now in another directory. we did this for 
several parts of our tomcat configuration. otherwise we are quite sure 
we did not change anything else.


we did not change our web application during that time and in addition 
we have taken extensive measures to make sure that all objects that 
are put into the session are serializable.


the problem we have looks like this on the tomcat which tries to 
serialize the session:


-- snip start --
SCHWERWIEGEND: Failed to serialize the session!
java.lang.ClassCastException
at 
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.writeSession(SimpleTcpReplicationManager.java:326) 

at 
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.requestCompleted(SimpleTcpReplicationManager.java:292) 

at 
org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:188) 

at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 

at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) 

at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 

at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) 

at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:731) 

at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526) 

at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) 

at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) 


at java.lang.Thread.run(Thread.java:534)
-- snip end --

and like this on the other end:
-- snip start --
SCHWERWIEGEND: Failed to deserialize the session!
java.lang.NullPointerException
at 
java.io.ByteArrayInputStream.(ByteArrayInputStream.java:89)
at 
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.readSession(SimpleTcpReplicationManager.java:352) 

at 
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageReceived(SimpleTcpReplicationManager.java:551) 

at 
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageDataReceived(SimpleTcpReplicationManager.java:590) 

at 
org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(SimpleTcpCluster.java:548) 

at 
org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:69)
at 
org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:126) 

at 
org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:64) 


-- snip end --

the one thing which is VERY strange to me is that normally with a 
ClassCastException you get the type info of which class it tries to 
cast, but here we only get "java.lang.ClassCastException"?


we tried to search google for people having similar problems, but we 
were not able to find any references to such a problem. perhaps 
somebody on this list is able to help us with this issue?






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



Welcome File

2005-07-10 Thread Behrang Saeedzadeh

Hi

I've a simple JSF application. As long as I can remember, it was possible  
to specify
a logical URI instead of as a physical file in the welcome file list in  
the 2.4 spec.


I have specified the index.jsf page to be the welcome page, but I'm  
presented with
the directory listing when I visit the homepage of my Web app, namely  
http://localhost:8084/JSF01/


The web.xml file is:


http://java.sun.com/xml/ns/j2ee";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
	 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee  
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";

 version="2.4">
 
javax.faces.CONFIG_FILES
/WEB-INF/faces-config.xml


javax.faces.STATE_SAVING_METHOD
server


org.apache.myfaces.ALLOW_JAVASCRIPT
true


org.apache.myfaces.DETECT_JAVASCRIPT
false


org.apache.myfaces.PRETTY_HTML
true


org.apache.myfaces.AUTO_SCROLL
true



org.apache.myfaces.webapp.StartupServletContextListener

 
Faces Servlet
javax.faces.webapp.FacesServlet
1
 
 
Faces Servlet
*.jsf
 
 
index.jsf



Any ideas?

Thanks in advance,
--
Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa

Using Opera's revolutionary e-mail client

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