Changing default index.jsp

2006-09-26 Thread Roger Mori-Tuesta

Dear Partners:

I'd like to change the default index.jsp/index.html page with
my   /tomcat-5-15-home/webapps/obc/myindex.jsp.
Please advice.

Thank you.

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



connection pooling in Linux using Tomcat 5.0.x and MYSQL

2006-09-26 Thread prakash shanmugam

hai all,

can u do one help ...
i need details about how to configure Connection Pooling in
Tomcat with MySQL in Linux platform...
i have done in windows platform..its working well..
i followed the same concepts in linux server also..
but it is not working... can u u hepl me in this regard..
it will be very much helpful for me if u do this..

with regards
prakash


RE: tomcat nstallation issue on AIX

2006-09-26 Thread Abhishek.X.Jha
sorry for missing information 
jakarta-tomcat-4.1.31 is installed on AIX 5.3

-Original Message-
From: Jha, Abhishek X (Card Services) 
Sent: Tuesday, September 26, 2006 3:43 AM
To: users@tomcat.apache.org
Subject: tomcat nstallation issue on AIX


Hi all,
I have installed jakarta-tomcat-4.1.31

when i start the tomcat, it doesnt give any error, but when i try to access it 
from some browser in windows machine (eg: http://dvdb2.wil.fusa.com:8080) , its 
says page cannot be displayed.
and when i type the shutdown.sh, i get the following error

[EMAIL PROTECTED]/Converted_1/ControlTier/jakarta-tomcat-4.1.31/bin#sh 
shutdown.sh
Using CATALINA_BASE:   /Converted_1/ControlTier/jakarta-tomcat-4.1.31
Using CATALINA_HOME:   /Converted_1/ControlTier/jakarta-tomcat-4.1.31
Using CATALINA_TMPDIR: /Converted_1/ControlTier/jakarta-tomcat-4.1.31/temp
Using JAVA_HOME:   /usr/java14
java.util.zip.ZipException: invalid END header (bad central directory offset) 
/Converted_1/ControlTier/jakarta-tomcat-4.1.31/common/endorsed/xercesImpl.jar
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.init(ZipFile.java:140)
at java.util.jar.JarFile.init(JarFile.java:160)
at java.util.jar.JarFile.init(JarFile.java:98)
at 
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1035)
at 
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.java:153)
at 
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:155)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:93)
Bootstrap: Class loader creation threw exception
java.lang.IllegalArgumentException: addRepositoryInternal: 
java.util.zip.ZipException: invalid END header (bad central directory offset) 
/Converted_1/ControlTier/jakarta-tomcat-4.1.31/common/endorsed/xercesImpl.jar
at 
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1063)
at 
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.java:153)
at 
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:155)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:93)
[EMAIL PROTECTED]/Converted_1/ControlTier/jakarta-tomcat-4.1.31/bin#

can anyone help me out... its required very urgrntly.


Thanks in Advance,
Abhishek




**
This transmission may contain information that is privileged, confidential, 
legally privileged, and/or exempt from disclosure under applicable law. If you 
are not the intended recipient, you are hereby notified that any disclosure, 
copying, distribution, or use of the information contained herein (including 
any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and 
any attachments are believed to be free of any virus or other defect that might 
affect any computer system into which it is received and opened, it is the 
responsibility of the recipient to ensure that it is virus free and no 
responsibility is accepted by JPMorgan Chase  Co., its subsidiaries and 
affiliates, as applicable, for any loss or damage arising in any way from its 
use. If you received this transmission in error, please immediately contact the 
sender and destroy the material in its entirety, whether in electronic or hard 
copy format. Thank you.
**


-
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: connection pooling in Linux using Tomcat 5.0.x and MYSQL

2006-09-26 Thread Li

depends on what pool you use ...

If use JNDI DS, you have to create a resource section in your server.xml:


engin ...
host ...
context ...
Resource
 name=...
 auth=Container
 type=javax.sql.DataSource
 username=...
 password=...
 driverClassName=...
 url=...
 maxActive=...
 maxIdle=...
 maxWait=...
 ... /
/context
/host
/engine
...

if you use other data source like hibernate's ... see their manual

good luck


On 9/26/06, prakash shanmugam [EMAIL PROTECTED] wrote:


hai all,

can u do one help ...
i need details about how to configure Connection Pooling in
Tomcat with MySQL in Linux platform...
i have done in windows platform..its working well..
i followed the same concepts in linux server also..
but it is not working... can u u hepl me in this regard..
it will be very much helpful for me if u do this..

with regards
prakash





--
When we invent time, we invent death.


Re: connection pooling in Linux using Tomcat 5.0.x and MYSQL

2006-09-26 Thread prakash shanmugam

hai Li,
 ur  gussing is correct, i am using JNDI DS, here by i had pasted the code
which is appended in the *server.xml. *

*server.xml*

Context className=org.apache.catalina.core.StandardContext
cachingAllowed=true charsetMapperClass=
org.apache.catalina.util.CharsetMapper cookies=true crossContext=false
debug=0 displayName=Project Tracking System docBase=opts7
mapperClass=org.apache.catalina.core.StandardContextMapper path=/opts7
privileged=false reloadable=true swallowOutput=false useNaming=true
wrapperClass=org.apache.catalina.core.StandardWrapper

 Resource name=mine scope=Shareable type=javax.sql.DataSource
/
 ResourceParams name=mine
   parameter
 namemaxWait/name
 value5000/value
   /parameter
   parameter
 namemaxActive/name
 value200/value
   /parameter
   parameter
 namepassword/name
 value/value
   /parameter
   parameter
 nameurl/name
 valuejdbc:mysql://100.100.100.6:3306/opts/value
   /parameter
   parameter
 namedriverClassName/name
 valuecom.mysql.jdbc.Driver/value
   /parameter
   parameter
 namemaxIdle/name
 value10/value
   /parameter
   parameter
 nameusername/name
 valuedav/value
   /parameter
 /ResourceParams
   /Context


 /Host

   /Engine
*web.xml*

resource-ref
 description DB Connection Pooling/description
 res-ref-namemine/res-ref-name
 res-type javax.sql.DataSource/res-type
 res-auth Container/res-auth
 /resource-ref

The above pasted code is working fine in windows, but our server in linux.
we cont able to communicate to the database. please, check where i had went
wrong...

bye
with regrds
prakash

On 9/26/06, Li [EMAIL PROTECTED] wrote:


depends on what pool you use ...

If use JNDI DS, you have to create a resource section in your server.xml:


engin ...
host ...
context ...
Resource
 name=...
 auth=Container
 type=javax.sql.DataSource
 username=...
 password=...
 driverClassName=...
 url=...
 maxActive=...
 maxIdle=...
 maxWait=...
 ... /
/context
/host
/engine
...

if you use other data source like hibernate's ... see their manual

good luck


On 9/26/06, prakash shanmugam [EMAIL PROTECTED] wrote:

 hai all,

 can u do one help ...
 i need details about how to configure Connection Pooling in
 Tomcat with MySQL in Linux platform...
 i have done in windows platform..its working well..
 i followed the same concepts in linux server also..
 but it is not working... can u u hepl me in this regard..
 it will be very much helpful for me if u do this..

 with regards
 prakash




--
When we invent time, we invent death.




Re: Tomcat 5.5 Clustering Problem

2006-09-26 Thread Peter Rossbach

Strange!


mcastClusterDomain is set a McastService constructor

   public McastService() {
properties.setProperty(mcastClusterDomain, catalina);
}

Please don't use a real loadbalancer like apache with mod_jk instead the
crazy redirect thing at

http://www.onjava.com/pub/a/onjava/2004/04/14/clustering.html)


Which version of tomcat 5.5 you use? Please, use Tomcat  5.5.17 or  
better coming 5.5.20.


regards,
peter



I'm trying to perform a simple cluster setup with Tomcat 5.5 and been
running into some problems.

Here's the link to the tutorial that I'm trying to follow:
http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html.

Below is an excerpt of the stack trace, I'm using the balancer  
application

from tomcat.

2006-09-25 22:11:43,718 (WebPortalLogger.java:44)  - 923014548 : 1
2006-09-25 22:11:43,718 (WebPortalLogger.java :44)  - Requested server
instance did not match..
2006-09-25 22:11:43,734 (WebPortalLogger.java:44)  - getServerInstance 
() : 1
2006-09-25 22:11:43,734 (WebPortalLogger.java:44)  -  
getMaxServerInstances()

: 3

2006-09-25 22:11:43,734 (WebPortalLogger.java:44)  - 1876138717 : 2
2006-09-25 22:11:43,734 (WebPortalLogger.java:44)  - Requested server
instance did not match..
2006-09-25 22:11:43,734 (WebPortalLogger.java:44)  - getServerInstance 
() : 2


2006-09-25 22:11:43,734 (WebPortalLogger.java:44)  -  
getMaxServerInstances()

: 3

2006-09-25 22:11:43,734 (WebPortalLogger.java:44)  - 747657098 : 3
2006-09-25 22:11:43,734 (WebPortalLogger.java:44)  - Requested server
instance did not match..
2006-09-25 22:11:43,734 (WebPortalLogger.java:44)  - getServerInstance 
() : 3
2006-09-25 22:11:43,734 (WebPortalLogger.java:44)  -  
getMaxServerInstances()

: 3

2006-09-25 22:11:43,734 (WebPortalLogger.java:44)  - 388758323 : 3
2006-09-25 22:11:43,734 (WebPortalLogger.java:44)  - Requested server
instance match..
java.lang.IllegalArgumentException: Required property  
mcastClusterDomain

is missing.
   at org.apache.catalina.cluster.mcast.McastService.hasProperty (
McastService.java:252)
   at org.apache.catalina.cluster.mcast.McastService.setProperties(
McastService.java:140)
   at common.utilities.ServerUtil.isServerAlive(ServerUtil.java:36)
   at
org.apache.webapp.balancer.rules.BaseLoadBalancingRule.isServerAlive (
BaseLoadBalancingRule.java:89)
   at org.apache.webapp.balancer.rules.RandomRedirectRule.matches(
RandomRedirectRule.java:41)
   at org.apache.webapp.balancer.RuleChain.evaluate 
(RuleChain.java:100)

   at org.apache.webapp.balancer.BalancerFilter.doFilter(
BalancerFilter.java:118)
   at  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(

ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java :178)
   at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
   at  
org.apache.catalina.cluster.session.JvmRouteBinderValve.invoke(

JvmRouteBinderValve.java:208)
   at org.apache.catalina.cluster.tcp.ReplicationValve.invoke (
ReplicationValve.java:346)
   at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:869)
   at
org.apache.coyote.http11.Http11BaseProtocol 
$Http11ConnectionHandler.processConnection(

Http11BaseProtocol.java:664)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
   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:595)
2006-09-25 22:11:43,734 (WebPortalLogger.java:44)  - Time taken to check
connection: 0 ms.
**  THE SERVER IS NOT AVAILABLE  **
2006-09-25 22:11:43,734 (WebPortalLogger.java:44)  -  
RandomRedirectRule --

isAlive : false


Below is my server.xml configuration for Tomcat 5.5: (only the
receiver.tcpListenPort was modified for the other instances.)

  Server port=8011
  shutdown=SHUTDOWN 
   GlobalNamingResources
   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  

RE: How set a default context

2006-09-26 Thread Ivan Balashov

But that means the context of application will change, as opposed to making
it default. I'm not sure if this change is harmful to the application, but
if it uses e.g. context name for some reason it might be failing.

-Ivan

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 1:38 AM
To: Tomcat Users List
Subject: RE: How set a default context

 From: Gabriel França Campolina [mailto:[EMAIL PROTECTED] 
 Subject: How set a default context
 
 but I need set the default context (http://localhost:8080)
 that call the /portal context

Delete the existing webapps/ROOT directory, and rename your portal app to
ROOT in the webapps directory.  It can be either ROOT.war or the ROOT
subdirectory.

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


smime.p7s
Description: S/MIME cryptographic signature


Tomcat, MyFaces and JSP 2.1

2006-09-26 Thread Döring Markus
Hello,
I'm currently developing an web-application with JSP 2.0, MyFaces 1.1.4, 
Trinidad M1
All this is running on JBoss 4.0.3 SP1 and Tomcat 5.5

I have to include some functions included in JSP 2.1 and searched the web for 
it, but didn't find much information.
Is it possible to use MyFaces and JSP 2.1 together?
Is there any tutorial how to setup tomcat with JSP 2.1?
Only found the GlassFish implementation yet, are there other JSP 2.1 
implementations available? If not can I use only the JSP 2.1 implementation of 
GlassFish without changing the other parts of the JEE implementation?

Any help is welcome.

Greetings Markus

-
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 set a default context

2006-09-26 Thread Mark Thomas
Ivan Balashov wrote:
 But that means the context of application will change, as opposed to making
 it default. I'm not sure if this change is harmful to the application, but
 if it uses e.g. context name for some reason it might be failing.
 
 -Ivan

If this is the case then you have a badly written application. In the
short term you can try putting a simple ROOT app that just redirects
to your app .

Mark

-
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: Dev Environment Setup can't find WEB-INF/lib

2006-09-26 Thread Mark Thomas
Barclay Curtis wrote:
 I have the latest version, Apache Tomcat 5.5.17, and have set it up to
 use /home/myUser/myWebapps/ as the webapps dir.

How did you do this?

Mark

-
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: Dev Environment Setup can't find WEB-INF/lib

2006-09-26 Thread Barclay Curtis

In my server.xml as below.
So I should be able to see the site on testsite.mydomain.co.uk:4001. It 
renders part of the page but has the NoClassDefFoundError: 
org/apache/xpath/XPathException in the error log.


Server port=8005 shutdown=SHUTDOWN

GlobalNamingResources
Resource name=jdbc/DbConn
 auth=Container
 type=javax.sql.DataSource
 driverClassName=com.mysql.jdbc.Driver
 factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
 url=jdbc:mysql://localhost/myDB
 username=myUsername
 password=myPword
 maxActive=20
 maxIdle=10
 maxWait=-1 /
 /GlobalNamingResources

 Service name=Tomcat-Standalone
   Connector port=4001 maxHttpHeaderSize=8192
  maxThreads=150 minSpareThreads=25 maxSpareThreads=75
  enableLookups=false acceptCount=100
  connectionTimeout=2 disableUploadTimeout=true
   defaultHost=testsite.mydomain.co.uk /
   Engine name=Standalone defaultHost=testsite.mydomain.co.uk 
debug=0

Host name=testsite.mydomain.co.uk
appBase=/home/myUser/myWebapps/ unpackWARs=false
autoDeploy=true
  Context path= docBase=testsite/web/ debug=0 /Context
/Host
   /Engine
 /Service
/Server


Thanks
Barclay

Mark Thomas wrote:

Barclay Curtis wrote:
  

I have the latest version, Apache Tomcat 5.5.17, and have set it up to
use /home/myUser/myWebapps/ as the webapps dir.



How did you do this?

Mark

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


  


--
Barclay Curtis
Chief Software Architect

Nexus Media Communications Ltd
Media House, Azalea Drive, Swanley, Kent BR8 8HY
_
+44 (0) 1322 611460
www.nexusmedia.co.uk

This message (and any [associated] attached files) is intended only for the use 
of the individual or
entity to which it is addressed and may contain information that is 
confidential, subject to copyright or constitutes a trade secret. If you are 
not the intended recipient you are hereby notified that any dissemination, 
copying or distribution of this message, or files associated with this message, 
or the use of any information contained either in the email or in the 
attachment is strictly prohibited. If you have received this message in error, 
please notify us immediately by replying to the message and deleting it, and 
any attachment, from your computer. Messages sent to and from us may be 
monitored by us.

Internet communications cannot be guaranteed to be secure or error-free as 
information could be intercepted, corrupted, lost, destroyed, arrive late or 
incomplete, or contain viruses. Therefore, we do not accept responsibility of 
any kind or nature for any errors or omissions that are present in this 
message, or any attachment, that have arisen as a result of e-mail 
transmission.  Neither will be responsible for any viruses or other file that 
is capable of altering, corrupting or otherwise changing files or computer 
software on your computer system. Any views or opinions presented are solely 
those of the author and do not necessarily represent those of the company Nexus 
Media Communications.

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



Re: connection pooling in Linux using Tomcat 5.0.x and MYSQL

2006-09-26 Thread David Smith
This is well documented on the tomcat site.  What you've included below 
works on tomcat 5.0, but not 5.5.  See the online docs:


Tomcat 5.5 --
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html

Tomcat 5.0 --
http://tomcat.apache.org/tomcat-5.0-doc/jndi-datasource-examples-howto.html


What version of tomcat are you working with?

--David

prakash shanmugam wrote:


hai Li,
 ur  gussing is correct, i am using JNDI DS, here by i had pasted the 
code

which is appended in the *server.xml. *

*server.xml*

Context className=org.apache.catalina.core.StandardContext
cachingAllowed=true charsetMapperClass=
org.apache.catalina.util.CharsetMapper cookies=true 
crossContext=false

debug=0 displayName=Project Tracking System docBase=opts7
mapperClass=org.apache.catalina.core.StandardContextMapper 
path=/opts7
privileged=false reloadable=true swallowOutput=false 
useNaming=true

wrapperClass=org.apache.catalina.core.StandardWrapper

 Resource name=mine scope=Shareable 
type=javax.sql.DataSource

/
 ResourceParams name=mine
   parameter
 namemaxWait/name
 value5000/value
   /parameter
   parameter
 namemaxActive/name
 value200/value
   /parameter
   parameter
 namepassword/name
 value/value
   /parameter
   parameter
 nameurl/name
 valuejdbc:mysql://100.100.100.6:3306/opts/value
   /parameter
   parameter
 namedriverClassName/name
 valuecom.mysql.jdbc.Driver/value
   /parameter
   parameter
 namemaxIdle/name
 value10/value
   /parameter
   parameter
 nameusername/name
 valuedav/value
   /parameter
 /ResourceParams
   /Context


 /Host

   /Engine
*web.xml*

resource-ref
 description DB Connection Pooling/description
 res-ref-namemine/res-ref-name
 res-type javax.sql.DataSource/res-type
 res-auth Container/res-auth
 /resource-ref

The above pasted code is working fine in windows, but our server in 
linux.
we cont able to communicate to the database. please, check where i had 
went

wrong...

bye
with regrds
prakash

On 9/26/06, Li [EMAIL PROTECTED] wrote:



depends on what pool you use ...

If use JNDI DS, you have to create a resource section in your 
server.xml:



engin ...
host ...
context ...
Resource
 name=...
 auth=Container
 type=javax.sql.DataSource
 username=...
 password=...
 driverClassName=...
 url=...
 maxActive=...
 maxIdle=...
 maxWait=...
 ... /
/context
/host
/engine
...

if you use other data source like hibernate's ... see their manual

good luck


On 9/26/06, prakash shanmugam [EMAIL PROTECTED] wrote:

 hai all,

 can u do one help ...
 i need details about how to configure Connection Pooling in
 Tomcat with MySQL in Linux platform...
 i have done in windows platform..its working well..
 i followed the same concepts in linux server also..
 but it is not working... can u u hepl me in this regard..
 it will be very much helpful for me if u do this..

 with regards
 prakash




--
When we invent time, we invent death.







-
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: Is there a way to change browser URL using response?

2006-09-26 Thread David Smith
Not that I know of.  The browser URL address is the one requested.  
Changing it requires the browser to fetch a new page.


--David

Dave wrote:

During a HTTP request-response cycle, is there a way to change Browser URL using response?  Redirect can that. But it cause performance/network traffic issue. 
  
 For JSF page navigation(non-redirect case), page has been changed but browser still shows the old URL. Sometimes it makes more sense to show the new page URL.
  
 Does HTTP 1.x specify a way to manipulate browser URL using a normal response?
  
 Thanks!



-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.
 




-
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: HTTP 304

2006-09-26 Thread Mark Thomas
Paul Wallace wrote:
 If however the client and server have no knowledge of these assets,
 would it not request a fresh copy from the server and return HTTP 200
 for example?

1. Check to see if the file is in your client's cache.
2. Tomcat does nothing with these tags. Your client may ignore them too.
3. Since this is a JSP, try setting the relevant headers rather than
using meta tags.

HTH,

Mark


-
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 nstallation issue on AIX

2006-09-26 Thread Mark Thomas
[EMAIL PROTECTED] wrote:
 sorry for missing information 
 jakarta-tomcat-4.1.31 is installed on AIX 5.3

Did you use a GNU compatible version of TAR as per the read me?

Mark

-
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: Dev Environment Setup can't find WEB-INF/lib

2006-09-26 Thread Barclay Curtis

Hi,
Does anybody have any other ideas on what the problem could be?
I've been trying to figure it out for days now.
My brain is starting to short circuit!!

Any suggestions appreciated.

Thanks
Barclay


Barclay Curtis wrote:

Thanks David,

1. Yup, tomcat has permission to read the folder and xalan.jar
2. xalan.jar is in the WEB-INF/lib folder.
3. I think the exception is thrown by a JSP 
page,ChooseContinentFromXML_jsp . I've put the stack trace below.


What else could be affecting it?


ERROR 2006-09-25 14:14:08,930 
org.apache.catalina.core.ApplicationDispatcher 
[http-4001-Processor25]: Servlet.service() for servlet jsp threw 
exception

java.lang.NoClassDefFoundError: org/apache/xpath/XPathException
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
   at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

   at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
   at 
org.apache.taglibs.standard.tag.common.xml.ForEachTag.prepare(ForEachTag.java:49) 

   at 
javax.servlet.jsp.jstl.core.LoopTagSupport.doStartTag(LoopTagSupport.java:227) 

   at 
org.apache.jsp.tiles.selects.ChooseContinentFromXML_jsp._jspx_meth_x_forEach_0(ChooseContinentFromXML_jsp.java:265) 

   at 
org.apache.jsp.tiles.selects.ChooseContinentFromXML_jsp._jspService(ChooseContinentFromXML_jsp.java:189) 

   at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) 

   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
   at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) 

   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 

   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) 

   at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574) 

   at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499) 

   at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) 

   at 
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:614) 

   at 
org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:99)

   at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:135)
   at 
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:760)
   at 
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:892) 

   at 
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
   at 
org.apache.jsp.layouts.mapLayout_jsp._jspx_meth_tiles_insert_1(mapLayout_jsp.java:554) 

   at 
org.apache.jsp.layouts.mapLayout_jsp._jspService(mapLayout_jsp.java:156)
   at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) 

   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
   at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) 

   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 

   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) 

   at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574) 

   at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499) 

   at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) 

   at 
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:614) 

   at 
org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:99)

   at 

Re: Tomcat, MyFaces and JSP 2.1

2006-09-26 Thread Mark Thomas
Döring Markus wrote:
 Is it possible to use MyFaces and JSP 2.1 together?

No idea. Ask the MyFaces folks. Don't see why not though...

 Is there any tutorial how to setup tomcat with JSP 2.1?

Use Tomcat 6.x (still in development). First release expected around
the time the final spec is released. For now you need to build from
source.

 Only found the GlassFish implementation yet, are there other JSP 2.1 
 implementations available? If not can I use only the JSP 2.1 implementation 
 of GlassFish without changing the other parts of the JEE implementation?

Maybe. Haven't tried it or even looked into it.

Mark

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



logging status code

2006-09-26 Thread Edward Quick

Hi,

In Apache, you can specify directives %s of %s in the logformat to get the 
original status code, and the actual status code returned for an http 
request. I use this for my error page which returns back a code 200, but 
also gives me a log with the real return code.


Now I am trying to set up my error page up in Tomcat, but using the Access 
Log Valve, you can only log the returned status code which is always a 200. 
This seems to be true of Tomcat 4.1, 5.0 and 5.5, although I'm using 4.1.31


Is there any way in Tomcat for me to get the original status code?

Thanks,

Ed.



-
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: Precompiled JSPs after Tomcat restart

2006-09-26 Thread Tracy Nelson
I'm not sure how long Tomcat will cache the JSP, I would assume that
it's dependent on how you've got your site configured (how much heap
space you have allocated), how many servlets/JSPs you have and what kind
of usage patterns you see.  I would guess that Tomcat will unload
servlets if memory gets tight, starting with the least-recently-accessed
first.  Remember, though, that only one instance of the servlet is ever
loaded, so even if your servlet is getting hundreds of hits a minute,
your memory usage shouldn't climb that fast.

You might be able to preload all your JSPs by using the
load-on-startup tag.  Something like:

servlet
servlet-nameMyServlet/servlet-name
jsp-file/jsp/MyPage.jsp/jsp-file
load-on-startup1/load-on-startup
/servlet

Failing that, you might want to check out the Jakarta mini-browser, or a
text-based browser like Lynx.  It should be possible to script either
one of these to visit all your pages.  If you're worried about
interactions, or if security is an issue (e.g., you can't access pages
unless you log in), you might want to add a parameter like
?preload=true to the URL, and have your JSPs or servlets Do The Right
Thing when they see it.  That's starting to get a little involved,
though...

---
Tracy Nelson / Nelnet Business Solutions
402 / 617-9449

| -Original Message-
| From: Frank Niedermann [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, 26 September, 2006 00:50
| To: users@tomcat.apache.org
| Subject: RE: Precompiled JSPs after Tomcat restart
| 
| 
| Tracy,
| 
| thanks for clarification.
| 
| How long will Tomcat cache a loaded JSP?
| 
| And is there a way to tell Tomcat or the classloader to load every
| single JSP after startup?
| 
| Do you have an example of such a script? (ATM I have no idea how
| to do this)
| 
| Thanks,
|   Frank
| 
| Do you
| 
| Tracy Nelson-2 wrote:
| 
|  What you're seeing is normal servlet/JSP processing.  After you
restart
|  Tomcat, the classloader has to load the servlet/JSP.  Once it has
done
|  this, the servlet/JSP is cached so it doesn't need to be reloaded.
The
|  JSP files shouldn't be compiled again unless they change.  The
server
|  should check the last-modified time on the JSP when it receives a
|  request, and compare that to the creation time of the compiled
class,
|  and recompile if necessary.
| 
|  If you can (depending on how complex your application is), you might
|  want to create a small script to access every page in your
application,
|  then run that as the last step in your Tomcat startup script.  It
|  doesn't matter if the page is accessed correctly (i.e., passed any
|  parameters it needs), it'll still be loaded and cached.
| 
|  ---
|  Tracy Nelson / Nelnet Business Solutions
|  402 / 617-9449
| 
|  | -Original Message-
|  | From: Frank Niedermann [mailto:[EMAIL PROTECTED]
|  | Sent: Monday, 25 September, 2006 04:48
|  | To: users@tomcat.apache.org
|  | Subject: Re: Precompiled JSPs after Tomcat restart
|  |
|  |
|  | I've found the .java and .class files in a new sample application.
|  |
|  | I still don't understand if the compiled class files are used
after
|  | Tomcat restart or if the JSP files will get compiled again.
|  |
|  | I'm asking because my application (Matrix from MatrixOne) is
|  | very slow after restarting Tomcat. After visiting (and compiling?)
|  | every JSP page it gets faster until next Tomcat restart.
|  |
|  | Can anybody clarify or help me out with hints to documentation?
|  |
|  | Thanks.
|  |
|  |
|  | Michael Zoller wrote:
|  |  Frank Niedermann wrote:
|  |  Hello,
|  | 
|  |  is it right that Tomcat stores all compiled JSP sites in
|  |  Tomcat5\work\Catalina\localhost\application\org\apache\jsp?
|  | 
|  |  yes.
|  |  After a restart of Tomcat I still see all the .class files
|  |  in above mentioned directory, does that mean that these files
|  |  do not have to be compiled again at first access to them?
|  | 
|  |  Educated guess: The servlets/jsp still have to be executed. Once
|  they
|  |  are loaded into memory they will execute faster because caching
|  |  mechanisms (harddisk and OS) apply.
|  | 
|  | 
|  |  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]
|  | 
|  | 
|  |
|  |
|  |
-
|  | 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/Precompiled-JSPs-
|  | after-Tomcat-restart-tf2303735.html#a6483314
|  | Sent from the Tomcat - User mailing list archive at Nabble.com.
|  |
|  |
|  |
-
|  | To start a new topic, 

webapps directory permissions question

2006-09-26 Thread jason
I have apache-tomcat-5.5.17 installed on a solaris 10 box. When my users 
create their applications, they end up in 
/var/local/user/apache-tomcat-5.5.17/webapps
with drwxr-r-x  permissions on the directory under webapps.
what I want, it for it to show up as drwxrwr-x  (group writable).
In the startup script for tomcat, I tried setting the umask to
0002, but now when directories get created, they show up like
drwxr-sr-x

so whats the proper way to accomplish this?

regards,
Jason



-
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, MyFaces and JSP 2.1

2006-09-26 Thread Tracy Nelson
| From: Döring Markus [mailto:[EMAIL PROTECTED]
| Subject: Tomcat, MyFaces and JSP 2.1
| 
| If not can I use only the JSP 2.1
| implementation of GlassFish without changing the other parts of the JEE
| implementation?

You mean just use GlassFish as the web container, and continue to use JBoss as 
your JEE container?  I wouldn't think so, unless you're going to create 
separate WAR files for the web interface and the rest of the application.  
Hmmm, and how would you tell GF to invoke EJBs on JBoss -- I don't think JEE 
containers are designed to be able to do that (why call another EJB container 
when *you're* an EJB container?).

OTOH, if you mean can you swap GlassFish for JBoss, it shouldn't be that hard, 
depending on what sort of JBoss-specific coding you have (maybe config 
parameters in your DD).  Harder of course if you're depending on JBoss-specific 
facilities (e.g., hot re-deploy).  But if you're sticking pretty closely to the 
JEE spec, then you should be able to just drop your WAR file and run with it.

-
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: New session PER REQUEST

2006-09-26 Thread Hassan Schroeder

On 9/25/06, Maurice Yarrow [EMAIL PROTECTED] wrote:


So, (apropos of the issues I saw with my setup) were there
multiple hosts, one or more of which required both http and https
access ?


This particular installation had no https requirements. If that's not a
complete deal-breaker, I could probably whip up a sanitized sample
config -- let me know.

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



Tomcat vs Apache virtual host declarations

2006-09-26 Thread Gormley, Josh
Hello,

 

I'm a little confused about how Apache and Tomcat handle virtual hosts.
I have a server which hosts 3 subdomains, each of which is a Tomcat
webapp.  With my current setup, if I go to 

http://rtv.mydomain.com http://rtv.mydomain.com/ 

I can see my app running.  But if I undeploy the app (using either an
ant script or the tomcat manager - I've tried both) and then deploy an
updated war file, I cannot see any of the changes at that url unless I
restart Tomcat.  At first I thought this was a garbage collection issue,
but now I'm not so sure because if I go to this url:

http://10.2.1.100:8080/rtv

I can see the changes to the app right away without having to restart
tomcat.

 

So, my webapp is being cached somewhere and I'm not sure where.  I have
listed my Apache VirtualHost and Tomcat server.xml Host settings below,
is there something in there that I'm missing?

 

Thanks in advance,

Josh Gormley

 

 

VirtualHost declaration in httpd:

 

VirtualHost *:80

ServerName rtv.myhost.com

ServerAlias www.rtv. myhost.com

DocumentRoot /usr/local/tomcat/webapps/rtv

DirectoryIndex index.jsp index.html

ErrorLog logs/rtv. myhost.com-errorlog

CustomLog logs/rtv. myhost.com-accesslog common

 

Directory /usr/local/tomcat/webapps/rtv

Options +FollowSymLinks

Order allow,deny

Allow from all

/Directory

 

#DENY ACCESS TO WEB-INF and META-INF

Location /WEB-INF/*

AllowOverride None

deny from all

/Location

 

Location /META-INF/*

AllowOverride None

deny from all

/Location

 

#ROUTE ALL JSP AND SERVLETS TO THE mod_jk WORKER

#These extensions are already specified in the
/etc/httpd/conf.d/jk.conf file

JkMount /*.do router

JkMount /*.jsp router

/VirtualHost

 

 

Host declaration in server.xml:

 

-
file:///C:\Documents%20and%20Settings\jgormley\Application%20Data\SSH\t
emp\server.xml##  Host name=rtv.myhost.com
appBase=/usr/local/tomcat/webapps/rtv unpackWARs=true
autoDeploy=true xmlValidation=false xmlNamespaceAware=false

Context path= docBase= debug= / 

Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=rtv.myhost.com_log / 

 /Host

 



hi, where can I find the DispatchAction.class file?

2006-09-26 Thread Peng Li

Hi
I found the DispatchAction.java in the struts cource package, but there is
no class file. Anyone could hlep me?

Looking forward to heraing from you


Cheers
Lee


RE: How set a default context

2006-09-26 Thread Ivan Balashov

I think it should be configurable from somewhere. Moving directories or
writing some custom apps for this IMHo is not quite right.

-Ivan

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 11:54 AM
To: Tomcat Users List
Subject: Re: How set a default context

Ivan Balashov wrote:
 But that means the context of application will change, as opposed to
making
 it default. I'm not sure if this change is harmful to the application, but
 if it uses e.g. context name for some reason it might be failing.
 
 -Ivan

If this is the case then you have a badly written application. In the
short term you can try putting a simple ROOT app that just redirects
to your app .

Mark

-
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


Tomcat As A Service

2006-09-26 Thread Douglas Ferguson
I have a few questions about tomcat as an NT service.

 

1)   I found this page,
http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html.
It talks about how to set all the settings, but is there a way to view
the settings?

2)   When JVM is set to auto what does it use? JAVA_HOME? 

3)   How can I tell what JVM the service is using?




RE: How set a default context

2006-09-26 Thread Angelov, Rossen
I know two ways to define a default context in Tomcat:

- a Context that has an empty PATH attribute will become the default web
application for the virtual host. This definitely works on Tomcat 5.5
- DefaultContext element in the Host is the other way to define a
default context, but this may work only on Tomcat 5.0

Ross

-Original Message-
From: Ivan Balashov [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 26, 2006 1:08 PM
To: 'Tomcat Users List'
Subject: RE: How set a default context



I think it should be configurable from somewhere. Moving directories or
writing some custom apps for this IMHo is not quite right.

-Ivan

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 11:54 AM
To: Tomcat Users List
Subject: Re: How set a default context

Ivan Balashov wrote:
 But that means the context of application will change, as opposed to
making
 it default. I'm not sure if this change is harmful to the application,
but
 if it uses e.g. context name for some reason it might be failing.
 
 -Ivan

If this is the case then you have a badly written application. In the
short term you can try putting a simple ROOT app that just redirects
to your app .

Mark

-
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 communication is intended solely for the addressee and is confidential 
and not for third party unauthorized distribution

-
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 set a default context

2006-09-26 Thread Caldarale, Charles R
 From: Angelov, Rossen [mailto:[EMAIL PROTECTED] 
 Subject: RE: How set a default context
 
 - a Context that has an empty PATH attribute will become the 
 default web application for the virtual host. This definitely
 works on Tomcat 5.5

Definitely not true.  Read the doc:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

which states:

Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended
to place Context elements directly in the server.xml file.  Instead,
put them in the META-INF/context.xml directory of your WAR file or the
conf directory as described above.

and

The value of this field [path] must not be set except when statically
defining a Context in server.xml, as it will be infered [sic] from the
filenames used for either the .xml context file or the docBase.

 - DefaultContext element in the Host is the other way to define a
 default context, but this may work only on Tomcat 5.0

The DefaultContext element only specified the set of attributes common
to all contexts; it did not specify what the default application was.
DefaultContext was replaced by the conf/context.xml file quite some time
ago.

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



java heap size

2006-09-26 Thread antarix

Hi there!!!

  Suddenly I have this error log in apache tomcat and my system make denial
of service...

java.lang.OutOfMemoryError: Java heap space

 I´ve searching for a solution (change parameters, etc), but at the moment
I  can´t find a  how to or something like that give me first why or what
produce this error or a clear answer.

 Tnxs and greetings!!


RE: How set a default context

2006-09-26 Thread Angelov, Rossen
What I wrote was extracted from the same doc, the URL you pasted in your 
response.

You may define as many Context elements as you wish. Each such Context MUST 
have a unique context path, which is defined by the path attribute. In 
addition, you MUST define a Context with a context path equal to a zero-length 
string. This Context becomes the default  web application for this virtual 
host, and is used to process all requests that do not match any other Context's 
context path.



-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 26, 2006 2:15 PM
To: Tomcat Users List
Subject: RE: How set a default context


 From: Angelov, Rossen [mailto:[EMAIL PROTECTED] 
 Subject: RE: How set a default context
 
 - a Context that has an empty PATH attribute will become the 
 default web application for the virtual host. This definitely
 works on Tomcat 5.5

Definitely not true.  Read the doc:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

which states:

Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended
to place Context elements directly in the server.xml file.  Instead,
put them in the META-INF/context.xml directory of your WAR file or the
conf directory as described above.

and

The value of this field [path] must not be set except when statically
defining a Context in server.xml, as it will be infered [sic] from the
filenames used for either the .xml context file or the docBase.

 - DefaultContext element in the Host is the other way to define a
 default context, but this may work only on Tomcat 5.0

The DefaultContext element only specified the set of attributes common
to all contexts; it did not specify what the default application was.
DefaultContext was replaced by the conf/context.xml file quite some time
ago.

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


This communication is intended solely for the addressee and is confidential 
and not for third party unauthorized distribution

-
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 heap size

2006-09-26 Thread Caldarale, Charles R
 From: antarix [mailto:[EMAIL PROTECTED] 
 Subject: java heap size
 
 I´ve searching for a solution (change parameters, etc),
 but at the moment I  can´t find a  how to or something
 like that give me first why or what produce this error
 or a clear answer.

Tried looking at the FAQ?
http://tomcat.apache.org/faq/memory.html

 - 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 set a default context

2006-09-26 Thread Caldarale, Charles R
 From: Angelov, Rossen [mailto:[EMAIL PROTECTED] 
 Subject: RE: How set a default context
 
 What I wrote was extracted from the same doc, the URL you 
 pasted in your response.

Yes, but you didn't continue to read the rest of the page, which states
how to do it properly in 5.5.

 - 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 heap size

2006-09-26 Thread John
By default Java 1.5 defines the maximum heap size to physical system memory 
divided by 4.
You can change this on the java command line by using:  java -xmx512m
Sets maximum heap size (the largest the heap can grow to - where objects 
reside), to 512 meg.

John 

-Original Message-
From: antarix [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 12:28 PM
To: users@tomcat.apache.org
Subject: java heap size

Hi there!!!

   Suddenly I have this error log in apache tomcat and my system make denial of 
service...

java.lang.OutOfMemoryError: Java heap space

  I´ve searching for a solution (change parameters, etc), but at the moment I  
can´t find a  how to or something like that give me first why or what produce 
this error or a clear answer.

  Tnxs and greetings!!

-
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 heap size

2006-09-26 Thread Caldarale, Charles R
 From: John [mailto:[EMAIL PROTECTED] 
 Subject: RE: java heap size
 
 By default Java 1.5 defines the maximum heap size to physical 
 system memory divided by 4.

??? Not sure where you dug that one up, but it's certainly not true for
the Sun JVM.  The default is 64m for 32-bit environments, 128m for
64-bit.

 You can change this on the java command line by using:  java -xmx512m

That will get you an error, since command line parameters are case
sensitive - needs to be -Xmx512m (upper case X).

The HotSpot heap size specifications are more complex than just a simple
maximum.  Best to read up on it at the Sun web site, assuming that's the
JVM 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 heap size

2006-09-26 Thread Caldarale, Charles R
 From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
 Subject: RE: java heap size
 
 The default is 64m for 32-bit environments, 128m for 64-bit.

Sorry, the 64-bit Sun JVM default is really 83m, not 128m.

 - 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: hi, where can I find the DispatchAction.class file?

2006-09-26 Thread Wendy Smoak

On 9/26/06, Peng Li [EMAIL PROTECTED] wrote:


I found the DispatchAction.java in the struts cource package, but there is
no class file. Anyone could hlep me?


The Struts user list would be a better place to ask.  You can find
subscription information here:  http://struts.apache.org/mail.html

(If you're talking about Struts 1.3.5, DispatchAction is in the
struts-extras jar file.)

--
Wendy

-
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 heap size

2006-09-26 Thread John
Your figures are indeed how it used to be pre-1.5

http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html#0.0.0.%20Total%2
0Heap%7Coutline

John 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 12:51 PM
To: Tomcat Users List
Subject: RE: java heap size

 From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
 Subject: RE: java heap size
 
 The default is 64m for 32-bit environments, 128m for 64-bit.

Sorry, the 64-bit Sun JVM default is really 83m, not 128m.

 - Chuck


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

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



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



RE: java heap size

2006-09-26 Thread Caldarale, Charles R
 From: John [mailto:[EMAIL PROTECTED] 
 Subject: RE: java heap size
 
 Your figures are indeed how it used to be pre-1.5

I've just dug through the 1.5 code and found that the use of 1/4 of the
total physical memory is dependant on several other factors, such as the
category of machine and whether or not parallel GC is enabled.  If
running on a server class machine, then parallel GC is enabled if not
explicitly disabled or implicitly disabled by specifying other options
such as -Xrun.  A server class machine is currently defined to be one
with at least two physical 64-bit CPUs (or 32-bit CPUs with -server set)
and 2 GB of memory.  If those conditions (along with some other esoteric
ones) are not met, the defaults are as they were in 1.4.

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



Diff behaviors for relative-path resource mapping in TC4 and TC5

2006-09-26 Thread Xiao Xiao
Hi, 
 Saying i have the following web-app structure:
 WEB-INF/web.xml
html/logo.gif
 html/welcome.html
 logo.gif
in the web.xml, html/welcome.html is defined as one of the welcome-file, which includes an image defined as src="" My question is which logo will be shown when i try to access web-app? Seems TC4 (
4.1.31) and TC5(5.1.12) handle this differently. 
 In TC5, the request is mapped to html/welcome.html, but the context is still at the root-level, so the logo.gif at root level is returned; while in TC4, it will redirect to html/welcome.html, with the context changes to html as well -- so html/logo.gif is returned. For me, it seems TC5 makes more senses, but anyone can help me confirm this? (as is it a TC4 bug? achange in the spec? etc?)

 Thanks. 
xiaoxiao

p.s. attached is the sample context-test, with logo.gif points to apache logo, and html/logo.gif points to tomcat logo. 
 
 
 


context-test.war
Description: Zip compressed data
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: connection pooling in Linux using Tomcat 5.0.x and MYSQL

2006-09-26 Thread prakash shanmugam

hai david,
 thank for sending those help files.now we are using tomcat 5.0.x.
our database is mysql and the Driver is com.sql.jdbc.Driver.

when i am calling the jsp pages in my project its working fine,if i am
trying to communicate with database errorpage  is thrown.
**
i had tried to create new *jndi* name through tomcat admin page.but the
changes are not reflecting in the usr/j-tomcat5.0/config/server.xml

instead linux is creating a new xml file named as server.xml(plus date and
time of creation) inthe same directory  Even in that  xml file also i cont
see the jndi name and other changes, which i had done through admin page.

i want to know how to configure the jndi name in the server.xml file

since i am new to linux with tomcat i cont proceed with things, please guide
me in the right direction

bye
with regards
prakash s


On 9/26/06, David Smith [EMAIL PROTECTED] wrote:


This is well documented on the tomcat site.  What you've included below
works on tomcat 5.0, but not 5.5.  See the online docs:

Tomcat 5.5 --

http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html

Tomcat 5.0 --

http://tomcat.apache.org/tomcat-5.0-doc/jndi-datasource-examples-howto.html


What version of tomcat are you working with?

--David

prakash shanmugam wrote:

 hai Li,
  ur  gussing is correct, i am using JNDI DS, here by i had pasted the
 code
 which is appended in the *server.xml. *

 *server.xml*

 Context className=org.apache.catalina.core.StandardContext
 cachingAllowed=true charsetMapperClass=
 org.apache.catalina.util.CharsetMapper cookies=true
 crossContext=false
 debug=0 displayName=Project Tracking System docBase=opts7
 mapperClass=org.apache.catalina.core.StandardContextMapper
 path=/opts7
 privileged=false reloadable=true swallowOutput=false
 useNaming=true
 wrapperClass=org.apache.catalina.core.StandardWrapper

  Resource name=mine scope=Shareable
 type=javax.sql.DataSource
 /
  ResourceParams name=mine
parameter
  namemaxWait/name
  value5000/value
/parameter
parameter
  namemaxActive/name
  value200/value
/parameter
parameter
  namepassword/name
  value/value
/parameter
parameter
  nameurl/name
  valuejdbc:mysql://100.100.100.6:3306/opts/value
/parameter
parameter
  namedriverClassName/name
  valuecom.mysql.jdbc.Driver/value
/parameter
parameter
  namemaxIdle/name
  value10/value
/parameter
parameter
  nameusername/name
  valuedav/value
/parameter
  /ResourceParams
/Context


  /Host

/Engine
 *web.xml*

 resource-ref
  description DB Connection Pooling/description
  res-ref-namemine/res-ref-name
  res-type javax.sql.DataSource/res-type
  res-auth Container/res-auth
  /resource-ref

 The above pasted code is working fine in windows, but our server in
 linux.
 we cont able to communicate to the database. please, check where i had
 went
 wrong...

 bye
 with regrds
 prakash

 On 9/26/06, Li [EMAIL PROTECTED] wrote:


 depends on what pool you use ...

 If use JNDI DS, you have to create a resource section in your
 server.xml:

 
 engin ...
 host ...
 context ...
 Resource
  name=...
  auth=Container
  type=javax.sql.DataSource
  username=...
  password=...
  driverClassName=...
  url=...
  maxActive=...
  maxIdle=...
  maxWait=...
  ... /
 /context
 /host
 /engine
 ...

 if you use other data source like hibernate's ... see their manual

 good luck


 On 9/26/06, prakash shanmugam [EMAIL PROTECTED] wrote:
 
  hai all,
 
  can u do one help ...
  i need details about how to configure Connection Pooling in
  Tomcat with MySQL in Linux platform...
  i have done in windows platform..its working well..
  i followed the same concepts in linux server also..
  but it is not working... can u u hepl me in this regard..
  it will be very much helpful for me if u do this..
 
  with regards
  prakash
 
 


 --
 When we invent time, we invent death.





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





--
Thanks and Regards
S.Prakash