Re: Understanding origin of Unexpected exception ... outside the VM

2004-11-17 Thread Chris Kaido
First, thank you for your answers.

I'm running solaris on Sparc hardware.
How could I verify the validity of my RAM without ... changing it :) ?

Chris.


On Tue, 16 Nov 2004 06:49:13 -0600, QM [EMAIL PROTECTED] wrote:
 On Tue, Nov 16, 2004 at 12:54:59PM +0100, Chris Kaido wrote:
 : The application has more than 6Gb of RAM (yes, read six) to run
 : and it crashes irregularly 
 : [snip]
 :
 : Is it in ...
 : - Tomcat 4.1.30 ?
 : - Apache 2.0.49 with mod_jk2
 : - Java VM 1.4.2_04 ?
 : - the JSP pages itself ?
 
 
 The error message indicates the crash occurs during a native (JNI) call
 done by your code.  That rules out the JSPs, Apache, and Tomcat.
 
 Read on:
 
 : An unexpected exception has been detected in native code outside the VM.
 : Unexpected Signal : 11 occurred at PC=0x7EF499A4
 : Function=[Unknown. Nearest: madvise+0xC0]
 : Library=/usr/lib/64/libc.so.1
 
 Let's see... random crashes, singal 11 errors, and in a system library
 that should be fairly stable... This is likely a hardware problem.  You
 don't say whether you're running Solaris Sparc or x86, but sig11 errors
 on the latter are typically indicative of bad RAM.
 
 -QM
 
 --
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: Database Pooling

2004-11-17 Thread Allistair Crossley
application-server-managed database pools are great, they take all the work out 
of writing your own pooling implementation, and are normally better at it too. 
furthermore you get to label the pool in a generic way so that your application 
only needs to acquire the JNDI context and pluck out the datasource (which 
returns connections). the way in which database pools are setup inside the 
application server will be app-server specific, but the major players out there 
(bea, jboss, tomcat) all have the ability to do so. it's a no-brainer for j2ee 
web applications of yuor mid-sized nature I think.

 -Original Message-
 From: Scott Purcell [mailto:[EMAIL PROTECTED]
 Sent: 16 November 2004 21:35
 To: [EMAIL PROTECTED]
 Subject: Database Pooling
 
 
 I am developing a mid-sized application, which will use JSP 
 Model 2 Architecture. Currently I have a class that does 
 Database Pooling, but I am curious about some threads I see 
 time to time.
  
 I have noticed that some developers on this list refer to 
 Tomcats Database Pooling. It looks like there are some hooks 
 into the deployment file. So I guess my question is as 
 follows. does Tomcat offer this type of pooling? and if so, 
 is it good, and is it portable? Links, references would be great.
  
 Thanks,
 Scott
  
 
 
  
 
  
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Strange Problem!: Connection time out while using URLConnection connect method

2004-11-17 Thread vignesh
Hi All,
 
I am facing a very strange problem. When I run tomcat4.1.27 in command prompt, 
I am able to connect and call a servlet deployed in it from another java 
program running on another machine using using URLConnection connect method.
 
But when I run tomcat server from windows services, the client program is not 
able to call the deployed servlet and throws the below exception at the line 
where connect method is invoked.
 
java.net.ConnectException: Connection timed out: connect
 
 
Has anyone else faced this strange problem. The only difference is in the way 
tomcat server has been started. When started in command prompt there are no 
problems in connecting to the server and calling the servlet deployed in it! I 
need to badly get this working when tomcat is started as a windows service.
 
Thanks in Advance.
 
Vignesh.

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



Tomcat crashing

2004-11-17 Thread Barath Kumar
Hi,

I am using Tomcat 4.1.27. Intially tomcat was working well. But after
sometime it was not able to process requests and it gets crashed.
Following is the error in catalina logs:

2004-11-10 09:53:33 Ajp13Processor[8009][3] process: invoke
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at org.apache.ajp.RequestHandler.finish(RequestHandler.java:495)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at 
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196)
at 
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:534)

Any idea of what is causing this.

PS : I have connected Apache and Tomcat server using mod_jk connector
and I forward all the jsp requests from apache to tomcat.

Regards,
Barath Kumar

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



Tomcat 5.5.4 dont see Servlets in my app

2004-11-17 Thread José Luis
Hi all,
I have one web application with some servlets running in Tomcat 4.1.18 
and
now i would like  to run it in tomcat 5.5.4. I have installed tomcat 5.5.4
and runs without problems. Deploy all application including my application.
But when i try to request my servlets, tomcat fail and show an error
exception saying: Class one of my servlets isnt a Servlet.
Can anyone help me?

Thanks to all.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004


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



RE: Tomcat 5.5.4 dont see Servlets in my app

2004-11-17 Thread Allistair Crossley
can you provide more detailed logging/stack trace for this error and which log 
this appears in. Did you modify your web.xml to the new DOCTYPE for Servlet 2.4 
or did you just run your old application as was

Allistair 

 -Original Message-
 From: José Luis [mailto:[EMAIL PROTECTED]
 Sent: 17 November 2004 10:14
 To: Tomcat Group
 Subject: Tomcat 5.5.4 dont see Servlets in my app
 
 
 Hi all,
   I have one web application with some servlets running 
 in Tomcat 4.1.18 and
 now i would like  to run it in tomcat 5.5.4. I have installed 
 tomcat 5.5.4
 and runs without problems. Deploy all application including 
 my application.
 But when i try to request my servlets, tomcat fail and show an error
 exception saying: Class one of my servlets isnt a Servlet.
 Can anyone help me?
 
 Thanks to all.
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



TCP NO DELAY

2004-11-17 Thread Harish Siddaiah
Hello all,
 
I'm using Tomcat 4.1.30 for testing the gateway application. For this testing I 
need server socket to be opened in TCP_NO_DELAY mode. I have set that in 
server.xml eventhough configuration states that by default it is set to true. 
The connector I'm using looks like below in server.xml:
 
!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8091 minProcessors=50 maxProcessors=600
   enableLookups=true redirectPort=8443
   acceptCount=500 debug=0 connectionTimeout=360
   useURIValidationHack=false disableUploadTimeout=true 
tcpNoDelay=true/
 
Please note I'm using different port here for various reasons. But I do not get 
server socket opened with TCP_NO_DELAY. The server socket seems to be:
 
java   2284   harish5u  IPv4 0x7ae5a2840t0   TCP *:8091 
(SO=KEEPALIVE=720,QLEN=0,QLIM=76,REUSEADDR TF=MSS=536)
 
It has keep alive option, Qlen, Qlim etc . But not NODELAY.
 
Does anybody have seen this problem before? Am I doing something wrong here?
 
Thanks for the replies.
 
Harish
 


-
 ALL-NEW Yahoo! Messenger - all new features - even more fun!  

Tomcat 5.X always creates session for every request?

2004-11-17 Thread LAM Kwun Wa Joseph
I have implemented a simple HttpSessionListener dumping every new session
created. I found that my Tomcat (tried on 5.0.2x and 5.5.4) will always
create a new session for every HTTP request, even if the JSP page doesn't
request for session and the HTTP client doesn't use cookie nor post any
session ID (e.g. direct telnet to port 80).

Are there any config params that relate to this? Thanks!

Regards,
Joseph Lam



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



Re: Tomcat 5.5.4 dont see Servlets in my app

2004-11-17 Thread birendar . waldiya

Have you registered the servlet correctly  in web.xml?

Birendar Singh Waldiya
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



José Luis [EMAIL PROTECTED]
11/17/2004 03:44 PM

Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
Tomcat Group [EMAIL PROTECTED]
cc

Subject
Tomcat 5.5.4 dont see Servlets in my app






Hi all,
 I have one web application with some servlets running in
Tomcat 4.1.18 and
now i would like  to run it in tomcat 5.5.4. I have installed tomcat 5.5.4
and runs without problems. Deploy all application including my
application.
But when i try to request my servlets, tomcat fail and show an error
exception saying: Class one of my servlets isnt a Servlet.
Can anyone help me?

Thanks to all.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004


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


ForwardSourceID:NT41CE


DISCLAIMER: The information contained in this message is intended only and 
solely for the addressed individual or entity indicated in this message and for 
the exclusive use of the said addressed individual or entity indicated in this 
message (or responsible for delivery of the message to such person) and may 
contain legally privileged and confidential information belonging to Tata 
Consultancy Services Limited. It must not be printed, read, copied, disclosed, 
forwarded, distributed or used (in whatsoever manner) by any person other than 
the addressee. Unauthorized use, disclosure or copying is strictly prohibited 
and may constitute unlawful act and can possibly attract legal action, civil 
and/or criminal. The contents of this message need not necessarily reflect or 
endorse the views of Tata Consultancy Services limited on any subject matter.
  Any action taken or omitted to be taken based on this message is entirely at 
your risk and neither the originator of this message nor Tata Consultancy 
Services Limited takes any responsibility or liability towards the same. 
Opinions, conclusions and any other information contained in this message that 
do not relate to the official business of Tata Consultancy Services limited 
shall be understood as neither given nor endorsed by Tata Consultancy Services 
Limited or any affiliate of Tata Consultancy Services Limited. If you have 
received this message in error,  you should destroy this message and may please 
notify the sender by e-mail.
 Thank you.

Problem clustering tomcat when a failed server is restarting

2004-11-17 Thread LERBSCHER Jean-Pierre
We have a cluster Tomcat composed of two servers (default configuration of
the cluster is used).

When the first server is stopped, the cluster continues to work fine
(requests are handled by the server that is running).

But when the stopped server is restarting we can see these exceptions.

 

Could you comment this log and explain us what is wrong. Thanks.

 

The server that handle the requests log this exception

Server 02

   10 nov. 2004 17:13:54 org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded

INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://w.x.y.z:41001,w.x.
y.z,41001, alive=35]

10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager
messageReceived

GRAVE: Unable to receive message through TCP channel

java.lang.NullPointerException

at
java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(ObjectOutputSt
ream.java:1898)

at
java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream
.java:1769)

at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:787)

at
org.apache.catalina.cluster.session.SerializablePrincipal.writePrincipal(Ser
ializablePrincipal.java:180)

at
org.apache.catalina.cluster.session.DeltaSession.writeObject(DeltaSession.ja
va:1457)

at
org.apache.catalina.cluster.session.DeltaSession.writeObjectData(DeltaSessio
n.java:930)

at
org.apache.catalina.cluster.session.DeltaManager.doUnload(DeltaManager.java:
539)

at
org.apache.catalina.cluster.session.DeltaManager.messageReceived(DeltaManage
r.java:854)

at
org.apache.catalina.cluster.session.DeltaManager.messageDataReceived(DeltaMa
nager.java:762)

at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(SimpleT
cpCluster.java:576)

at
org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:70)

at
org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplica
tionThread.java:129)

at
org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThrea
d.java:67)

 

In the same time the server restarting logs this information.

server 01

Creating ClusterManager for context /myapp using class
org.apache.catalina.cluster.session.DeltaManager

10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager start

INFO: Starting clustering manager...:/myapp

10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager start

ATTENTION: Manager[/myapp], requesting session state from
org.apache.catalina.cluster.mcast.McastMember[tcp://w.x.y.z:42001,w.x.y.z,42
001, alive=111640]. This operation will timeout if no session state has been
received within 60 seconds

 

 

After a delay, server 01 logs this information.

10 nov. 2004 17:14:54 org.apache.catalina.cluster.session.DeltaManager start

GRAVE: Manager[/myapp], No session state received, timing out.

10 nov. 2004 17:14:54 org.apache.catalina.core.StandardHostDeployer install

INFO: Installation d'une application pour le chemin de contexte  depuis
l'URL file:/opt/tomcat-tst01/webapps/ROOT

...

INFO: Server startup in 62980 ms

 

server 01 handle the application requests, new session is created.

 

 

 

 

 



enormous loggin when starting tomcat

2004-11-17 Thread koen boutsen
Hello

I'm using Tomcat 5.0.28 and I'm trying to deploy a struts application.
This application is rather large and so is my struts-config.xml file.
When tomcat starts or I restart the application, I have to wait more than a 
minute (sometimes 4') before all the log messages are done.

Does anyone have an idea what's the cause of this and how I can resolve it ?

Thanks in advance

Koen
-- 
___
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


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



[OFF TOPIC] RE: enormous loggin when starting tomcat

2004-11-17 Thread Allistair Crossley
Your root logger might be set at debug level, or you have set debug logging on 
struts. Have you got a log4j config going?

 -Original Message-
 From: koen boutsen [mailto:[EMAIL PROTECTED]
 Sent: 17 November 2004 11:03
 To: [EMAIL PROTECTED]
 Subject: enormous loggin when starting tomcat
 
 
 Hello
 
 I'm using Tomcat 5.0.28 and I'm trying to deploy a struts application.
 This application is rather large and so is my struts-config.xml file.
 When tomcat starts or I restart the application, I have to 
 wait more than a minute (sometimes 4') before all the log 
 messages are done.
 
 Does anyone have an idea what's the cause of this and how I 
 can resolve it ?
 
 Thanks in advance
 
 Koen
 -- 
 ___
 Find what you are looking for with the Lycos Yellow Pages
 http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.c
 om/default.asp?SRC=lycos10
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



tc 5.5.3: making exceptions from securit constraints

2004-11-17 Thread Holger Klawitter
Hi there,

I am in the progress of migrating from tomcat 4.1.29 to 5.5.3.

In 4.1.29 I was able to create two security-constraints (one for /*
another one for *.jar) - where the *.jar constraint did not contain any
auth-constraints.

In 5.5.3 the *.jar constraint is being ignored (and the Java Plugin [JDK
1.4.2 / Mozilla 1.7.3] asks again for the password).

Is there a way in 5.5.3 to exempt *.jar files from password protection
without creating sub directories?

-- 
With Kind Regards / Mit freundlichem Gruß
  Holger Klawitter (lists at/ klawitter dot/ de)


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



RE: Tomcat 5.5.4 dont see Servlets in my app

2004-11-17 Thread José Luis
Hi all,
this is the exception

javax.servlet.ServletException: La Clase nucleo.PagoVodafone no es un
Servlet

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

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

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

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:731)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:526)

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

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
java.lang.Thread.run(Unknown Source)

Mail includes my web.xml. When i try to change display-name or description
of web.xml, tomcat shows that Servlet is not available.


-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 17 de noviembre de 2004 11:27
Para: Tomcat Users List
Asunto: Re: Tomcat 5.5.4 dont see Servlets in my app



Have you registered the servlet correctly  in web.xml?

Birendar Singh Waldiya
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



José Luis [EMAIL PROTECTED] 11/17/2004 03:44 PM

Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
Tomcat Group [EMAIL PROTECTED]
cc

Subject
Tomcat 5.5.4 dont see Servlets in my app






Hi all,
 I have one web application with some servlets running in
Tomcat 4.1.18 and
now i would like  to run it in tomcat 5.5.4. I have installed tomcat 5.5.4
and runs without problems. Deploy all application including my application.
But when i try to request my servlets, tomcat fail and show an error
exception saying: Class one of my servlets isnt a Servlet.
Can anyone help me?

Thanks to all.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004


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


ForwardSourceID:NT41CE

DISCLAIMER: The information contained in this message is intended only and
solely for the addressed individual or entity indicated in this message and
for the exclusive use of the said addressed individual or entity indicated
in this message (or responsible for delivery of the message to such person)
and may contain legally privileged and confidential information belonging to
Tata Consultancy Services Limited. It must not be printed, read, copied,
disclosed, forwarded, distributed or used (in whatsoever manner) by any
person other than the addressee. Unauthorized use, disclosure or copying is
strictly prohibited and may constitute unlawful act and can possibly attract
legal action, civil and/or criminal. The contents of this message need not
necessarily reflect or endorse the views of Tata Consultancy Services
limited on any subject matter.
  Any action taken or omitted to be taken based on this message is entirely
at your risk and neither the originator of this message nor Tata Consultancy
Services Limited takes any responsibility or liability towards the same.
Opinions, conclusions and any other information contained in this message
that do not relate to the official business of Tata Consultancy Services
limited shall be understood as neither given nor endorsed by Tata
Consultancy Services Limited or any affiliate of Tata Consultancy Services
Limited. If you have received this message in error,  you should destroy
this message and may please notify the sender by e-mail.  Thank you.
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;


web-app

display-nameHello, World Application/display-name
description
	This is a simple web application with a source code organization
	based on the recommendations of the Application Developer's Guide.
/description

servlet
servlet-nameServletPrueba/servlet-name
servlet-classpackprueba.ServletPrueba/servlet-class
/servlet
	servlet
servlet-namePagoVodafone/servlet-name
servlet-classnucleo.PagoVodafone/servlet-class
/servlet

	servlet
servlet-namePagoVodafoneNavegacion/servlet-name
servlet-classnucleo.PagoVodafoneNavegacion/servlet-class
/servlet

	servlet
servlet-nameServletAction/servlet-name

RE: Tomcat 5.5.4 dont see Servlets in my app

2004-11-17 Thread Allistair Crossley
I think your web.xml is not configured correctly for Tomcat 5. Can you post 
your web.xml?

 -Original Message-
 From: José Luis [mailto:[EMAIL PROTECTED]
 Sent: 17 November 2004 11:12
 To: Tomcat Users List
 Subject: RE: Tomcat 5.5.4 dont see Servlets in my app
 
 
 Hi all,
   this is the exception
 
 javax.servlet.ServletException: La Clase nucleo.PagoVodafone no es un
 Servlet
 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:105
 )
   
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdap
 ter.java:148)
   
 org.apache.coyote.http11.Http11Processor.process(Http11Process
 or.java:825)
 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
 r.processConne
 ction(Http11Protocol.java:731)
 
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolT
 cpEndpoint.jav
 a:526)
 
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(Le
 aderFollowerWo
 rkerThread.java:80)
 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
 ThreadPool.jav
 a:684)
   java.lang.Thread.run(Unknown Source)
 
 Mail includes my web.xml. When i try to change display-name 
 or description
 of web.xml, tomcat shows that Servlet is not available.
 
 
 -Mensaje original-
 De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Enviado el: miércoles, 17 de noviembre de 2004 11:27
 Para: Tomcat Users List
 Asunto: Re: Tomcat 5.5.4 dont see Servlets in my app
 
 
 
 Have you registered the servlet correctly  in web.xml?
 
 Birendar Singh Waldiya
 Tata Consultancy Services Limited
 Mailto: [EMAIL PROTECTED]
 Website: http://www.tcs.com
 
 
 
 José Luis [EMAIL PROTECTED] 11/17/2004 03:44 PM
 
 Please respond to
 Tomcat Users List [EMAIL PROTECTED]
 
 
 To
 Tomcat Group [EMAIL PROTECTED]
 cc
 
 Subject
 Tomcat 5.5.4 dont see Servlets in my app
 
 
 
 
 
 
 Hi all,
  I have one web application with some 
 servlets running in
 Tomcat 4.1.18 and
 now i would like  to run it in tomcat 5.5.4. I have installed 
 tomcat 5.5.4
 and runs without problems. Deploy all application including 
 my application.
 But when i try to request my servlets, tomcat fail and show an error
 exception saying: Class one of my servlets isnt a Servlet.
 Can anyone help me?
 
 Thanks to all.
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 ForwardSourceID:NT41CE
 
 DISCLAIMER: The information contained in this message is 
 intended only and
 solely for the addressed individual or entity indicated in 
 this message and
 for the exclusive use of the said addressed individual or 
 entity indicated
 in this message (or responsible for delivery of the message 
 to such person)
 and may contain legally privileged and confidential 
 information belonging to
 Tata Consultancy Services Limited. It must not be printed, 
 read, copied,
 disclosed, forwarded, distributed or used (in whatsoever 
 manner) by any
 person other than the addressee. Unauthorized use, disclosure 
 or copying is
 strictly prohibited and may constitute unlawful act and can 
 possibly attract
 legal action, civil and/or criminal. The contents of this 
 message need not
 necessarily reflect or endorse the views of Tata Consultancy Services
 limited on any subject matter.
   Any action taken or omitted to be taken based on this 
 message is entirely
 at your risk and neither the originator of this message nor 
 Tata Consultancy
 Services Limited takes any responsibility or liability 
 towards the same.
 Opinions, conclusions and any other information contained in 
 this message
 that do not relate to the official business of Tata 
 Consultancy Services
 limited shall be understood as neither given nor endorsed by Tata
 Consultancy Services Limited or any affiliate of Tata 
 Consultancy Services
 Limited. If you have received this message in error,  you 
 should destroy
 this message and may please notify the sender by e-mail.  Thank you.
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
To unsubscribe, e-mail: [EMAIL 

Re: j_security_check/ Realm question

2004-11-17 Thread Tim Funk
See section SRV.12.3 Programmatic Security of the Servlet spec for the role 
link question.

As for the welcome page - the spec wasn't meant to handle cases like this. 
The container protects resources. Once you try to access a protected resource 
- you mustr authenticate. Then you are passed to the protected resource, not 
to a different page.

-Tim
[EMAIL PROTECTED] wrote:
Hi, 
I have a question for webapplication  developer ,
I have already applied JDBcRealm  but im  confused between the security - 
constraints in the web.xml   and the realm 
because in web.xml also web.xml we declare the security roles and  also in 
database table so if we have say  5-10 differernt kind of users do we need 
to declare them in web.xml and  also to create them in database ??
My second question is after the application authentication type  FORM my 
action is  =j_security_check   how ever in i want to direct the user to 
some  welcome jsp after  succcessful log  where do i need to mention 
that??

your help is appreciated 
thanks 
regards 

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


Re: Tomcat 5.X always creates session for every request?

2004-11-17 Thread Tim Funk
By default JSP's need to be told to *not* ask for a session via
[EMAIL PROTECTED] session='false'%
Otherwise - it sounds like a cookie setting issue that the client isn't 
remembering the sessionid.

-Tim
LAM Kwun Wa Joseph wrote:
I have implemented a simple HttpSessionListener dumping every new session
created. I found that my Tomcat (tried on 5.0.2x and 5.5.4) will always
create a new session for every HTTP request, even if the JSP page doesn't
request for session and the HTTP client doesn't use cookie nor post any
session ID (e.g. direct telnet to port 80).
Are there any config params that relate to this? Thanks!
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


301 Redirect Question

2004-11-17 Thread Lyndon Smith
Hi Allistair

I have a question for the Tomcat User Group.

I hope you don't mind me asking you because the answer should be a simple
yes or no but I can't get an answer anywhere.

I am new to the mailing list and I don't know how to submit a question to
it.

The Question:

Is it possible with Tomcat 4.1.30 running within Apache Web Server to use
301 redirects?

(If so how?)

Regards

Lyndon


- Original Message - 
From: Allistair Crossley [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 11:08 AM
Subject: [OFF TOPIC] RE: enormous loggin when starting tomcat


 Your root logger might be set at debug level, or you have set debug
logging on struts. Have you got a log4j config going?

  -Original Message-
  From: koen boutsen [mailto:[EMAIL PROTECTED]
  Sent: 17 November 2004 11:03
  To: [EMAIL PROTECTED]
  Subject: enormous loggin when starting tomcat
 
 
  Hello
 
  I'm using Tomcat 5.0.28 and I'm trying to deploy a struts application.
  This application is rather large and so is my struts-config.xml file.
  When tomcat starts or I restart the application, I have to
  wait more than a minute (sometimes 4') before all the log
  messages are done.
 
  Does anyone have an idea what's the cause of this and how I
  can resolve it ?
 
  Thanks in advance
 
  Koen
  -- 
  ___
  Find what you are looking for with the Lycos Yellow Pages
  http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.c
  om/default.asp?SRC=lycos10
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT


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



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



Realm and Redeploy

2004-11-17 Thread Chris Chappell
Hi

I am running a webapp under Tomcat using a jdbc realm. If I upload a new war it 
redeploys fine, but loses authentication.
E.g. I cannot log in again until I have restarted Tomcat. After a restart I 
don't have to re-authenticate so it shows Tomcat has reatinmed the login info.
I think that if I have a page which doesn't require authentication then the 
redployment works fine, but am not totally sure on this
 

(Running 5.0.19)


Chris Chappell


Realms and Static pages

2004-11-17 Thread Chris Chappell
Hi 

How can I protect static pages on my Tomcat powered site with username/role + 
password information from my jdbc realm?
I have some help pages under /MyContext/help. I cannot find how to put them 
under /MyContext/WEB-INF/help.
Anybody help? (There's only a few static pages, so it would be overkill to run 
apache as well)

(Running 5.0.19)

Chris Chappell


Re: 301 Redirect Question

2004-11-17 Thread Tim Funk
You need to code them yourself in your servlet/jsp.
response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
response.addHeader(Location, /more/cowbell.jsp);
-Tim
Lyndon Smith wrote:
Hi Allistair
I have a question for the Tomcat User Group.
I hope you don't mind me asking you because the answer should be a simple
yes or no but I can't get an answer anywhere.
I am new to the mailing list and I don't know how to submit a question to
it.
The Question:
Is it possible with Tomcat 4.1.30 running within Apache Web Server to use
301 redirects?
(If so how?)
Regards
Lyndon
- Original Message - 
From: Allistair Crossley [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 11:08 AM
Subject: [OFF TOPIC] RE: enormous loggin when starting tomcat


Your root logger might be set at debug level, or you have set debug
logging on struts. Have you got a log4j config going?
-Original Message-
From: koen boutsen [mailto:[EMAIL PROTECTED]
Sent: 17 November 2004 11:03
To: [EMAIL PROTECTED]
Subject: enormous loggin when starting tomcat
Hello
I'm using Tomcat 5.0.28 and I'm trying to deploy a struts application.
This application is rather large and so is my struts-config.xml file.
When tomcat starts or I restart the application, I have to
wait more than a minute (sometimes 4') before all the log
messages are done.
Does anyone have an idea what's the cause of this and how I
can resolve it ?
Thanks in advance
Koen
--
___
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.c
om/default.asp?SRC=lycos10
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

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


Tomcat startup time delay in Windows 95/98

2004-11-17 Thread Pragyan Padmini Misra
HI,
  I had posted this earlier and again am resending as am still not getting
any solution. Can any one help me out on this. The application which we have
developed has a performance related issue in Windows 95/98. We install the
application and when we click on the aplication icon it internally invokes a
Flash screen displaying the application is loading and internally calls the
startup.bat file in tomcat\bin for the server startup process, which
internally calls the catalina.bat file and so on and so forth. We cannot
startup Tomcat as a service in Win 95/98. The problem basically which we are
facing is the time taken for the load of the application. The load time
takes up about 1 1/2 to 2 minutes. This doesnt seem to be a feasible
solution for the product acceptance. Is there any way we can decrease the
tomcat startup load time? Can we manipulate on the processes so as to reduce
the load time? Or is there any solution for the same?

  Regards
  Pragyan


Re: gc output for tomcat?? where is it

2004-11-17 Thread Andoni
What I find is that when something goes to the console but not to the
stdout.log file it is going to Standard Error. Do you have any way of
checking where the stderr stream is going? Can you write a line into your
file saying:
System.err.println(Find this line.);

and then do a search of the stdout.log file for it. if it's not there then
do a text seach of the Tomcat tree, then the drive! Chances are, when you
find one you'll find the other.

Andoni.


- Original Message - 
From: Pooleery, Manoj [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Tuesday, November 16, 2004 2:55 PM
Subject: RE: gc output for tomcat?? where is it


 No, it doesn't print it in the stdout.log either.

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 15, 2004 4:46 PM
 To: Tomcat Users List
 Subject: RE: gc output for tomcat?? where is it



 Hi,
 Well, the console is trapped to stdout.log when running as a service,
 isn't it?  That's where I'd expect it.  But I don't care enough for JDK
 1.3 to actually test this for you ;)

 Yoav Shapira http://www.yoavshapira.com


 -Original Message-
 From: Pooleery, Manoj [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 15, 2004 4:44 PM
 To: 'Tomcat Users List'
 Subject: RE: gc output for tomcat?? where is it
 
 Can somebody from the developer team answer this question please?
 -Xloggc:
 works only from JDK 1.4 onwards.  With JDK 1.3.1 and Tomcat running as
 a
 service, I was also not able to get any gc logs anywhere.  When it is
 running as a console, with the -verbose:gc flag, it was showing the gc
 output on the console itself, but when changed to start as a service,
 there
 was no trace of it.
 
 Thanks
 -Manoj Pooleery.
 
 -Original Message-
 From: David Boyer [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 15, 2004 3:49 PM
 To: [EMAIL PROTECTED]
 Subject: Re: gc output for tomcat?? where is it
 
 
 try adding  -Xloggc:file
 
 
 
  [EMAIL PROTECTED] 11/15/2004 12:39:45 PM 
 
 I have set the -verbose:gc flag for tomcat. Where does the output go?
 Do I
 need to set the
 log level to Info instead of Error??
 
 
 John McClain
 Senior Software Engineer
 TCS Healthcare
 [EMAIL PROTECTED]
 (530)886-1700x235
 Before you criticize someone, walk a mile in their shoes.
 That way, you'll be a mile from them, and you'll have their shoes.
 
 
 -
 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]




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


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


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



Re: Understanding origin of Unexpected exception ... outside the VM

2004-11-17 Thread QM
On Wed, Nov 17, 2004 at 09:26:32AM +0100, Chris Kaido wrote:
: I'm running solaris on Sparc hardware.
: How could I verify the validity of my RAM without ... changing it :) ?

Ehh, this may be a Google. ;)  I'm pretty sure there are some Solaris
memory test tools out there.

As far as testing the memory itself, there's no way (AFAIK) to exercise
individual chips unless you open the box and shuffle them in/out
yourself.

If you have a Sun support contract, now's the time to put it to use. ;)

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Tomcat startup time delay in Windows 95/98

2004-11-17 Thread Tim Funk
Just created, details are sparse ..
http://wiki.apache.org/jakarta-tomcat/HowTo/FasterStartUp
-Tim
Pragyan Padmini Misra wrote:
HI,
  I had posted this earlier and again am resending as am still not getting
any solution. Can any one help me out on this. The application which we have
developed has a performance related issue in Windows 95/98. We install the
application and when we click on the aplication icon it internally invokes a
Flash screen displaying the application is loading and internally calls the
startup.bat file in tomcat\bin for the server startup process, which
internally calls the catalina.bat file and so on and so forth. We cannot
startup Tomcat as a service in Win 95/98. The problem basically which we are
facing is the time taken for the load of the application. The load time
takes up about 1 1/2 to 2 minutes. This doesnt seem to be a feasible
solution for the product acceptance. Is there any way we can decrease the
tomcat startup load time? Can we manipulate on the processes so as to reduce
the load time? Or is there any solution for the same?
  Regards
  Pragyan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Realms and Static pages

2004-11-17 Thread QM
On Wed, Nov 17, 2004 at 11:34:48AM -, Chris Chappell wrote:
: How can I protect static pages on my Tomcat powered site with username/role +
: password information from my jdbc realm?

Use the standard roles/auth constraints in web.xml.  See the servlet
spec, or some random servlet/JSP articles/books, for details.


: I have some help pages under /MyContext/help. I cannot find how to put them
: under /MyContext/WEB-INF/help.
: Anybody help? (There's only a few static pages, so it would be overkill to run
: apache as well)

Yes: don't put them under WEB-INF unless you want to write code to serve
them yourself. =) By default, files under WEB-INF are *not* available
for standard requests (HTTP/GET, HTTP/POST, etc).  This prevents
would-be miscreants from downloading the app's code and config files.


-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: Tomcat startup time delay in Windows 95/98

2004-11-17 Thread Benson Margulies
Use an actual operating system :) 

-Original Message-
From: Pragyan Padmini Misra [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 17, 2004 6:48 AM
To: 'Tomcat Users List'
Subject: Tomcat startup time delay in Windows 95/98

HI,
  I had posted this earlier and again am resending as am still not
getting any solution. Can any one help me out on this. The application
which we have developed has a performance related issue in Windows
95/98. We install the application and when we click on the aplication
icon it internally invokes a Flash screen displaying the application is
loading and internally calls the startup.bat file in tomcat\bin for the
server startup process, which internally calls the catalina.bat file and
so on and so forth. We cannot startup Tomcat as a service in Win 95/98.
The problem basically which we are facing is the time taken for the load
of the application. The load time takes up about 1 1/2 to 2 minutes.
This doesnt seem to be a feasible solution for the product acceptance.
Is there any way we can decrease the tomcat startup load time? Can we
manipulate on the processes so as to reduce the load time? Or is there
any solution for the same?

  Regards
  Pragyan

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



Re: Tomcat 5.5.4 Stability

2004-11-17 Thread Remy Maucherat
On Tue, 16 Nov 2004 23:17:22 -0500, V D [EMAIL PROTECTED] wrote:
 
 Today, I ran an axis application under both Tomcat 5.028 and 5.5.4.
 Hitting this axis application with 100 simultaneous clients for many
 hits.  5.0.28 seems to hold up very well.  It drops connections once a
 while.  However, 5.5.4 drops many connections.  I wonder if the Tomcat
 team aware of this problem.

No. You need to give reproduceable facts, prefereably with a simple application.

Note that the low level code is extremely similar between 5.0 and 5.5.
I doubt the few code changes could cause something like that.

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



Re: Tomcat 5.5.4 dont see Servlets in my app

2004-11-17 Thread Remy Maucherat
On Wed, 17 Nov 2004 12:11:37 +0100, José Luis
[EMAIL PROTECTED] wrote:
 Hi all,
 this is the exception
 
 javax.servlet.ServletException: La Clase nucleo.PagoVodafone no es un
 Servlet

Be careful to not have anything containing the servlet  JSP classes
in your classpath, or in your webapp WEB-INF/lib folder.

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



RE: Configure Tomcat's Session Cookie Domain?

2004-11-17 Thread Shapira, Yoav

Hi,
It's to adhere to secure HTTP/HTTPS behavior.  This is why we allow for
custom session managers like you've done ;)

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Joe Reger, Jr. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 16, 2004 8:18 PM
To: 'Tomcat Users List'
Subject: RE: Configure Tomcat's Session Cookie Domain?


Thanks.  What I suspected.  Is this to adhere to a spec, or simply
functionality not (yet?) developed for Tomcat?

I've created a workaround session manager that manually sets its own
cookies.  One result being that my scaling strategy can't rely on the
session replication of Tomcat... I'll have to use a firewall with
sticky
sessions.  But enough whining from me... like always, there's a
workaround.

Best,

Joe

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 16, 2004 7:12 PM
To: Tomcat Users List
Subject: Re: Configure Tomcat's Session Cookie Domain?

Nope. Can't do it.

But if you really need it to be more domain generic - there is nothing
stopping you from expiring the JSESSIONID cookie and setting a newer
one at
a more generic level. (But this will probably cause future issues)

-Tim

Joe Reger, Jr. wrote:
 Hi.

 Is there any way to specify the domain of the cookie that Tomcat sets
 to maintain session across requests?

 In java there's javax.servlet.http.Cookie.setDomain(java.lang.String
 pattern) that allows me to set it to something like
.joereger.com...
 which allows a cookie to persist across one.joereger.com,
 two.joereger.com, three.joereger.com and so on.

 Anything like this in Tomcat's configuration?  I've also looked into
 the jsp:useBean tags but haven't found anything that does what I'm
 looking for.


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




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


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



Re: Realms and Static pages

2004-11-17 Thread Chris Chappell
Thanks QM but I' still not sure what to do!

In my web.xml I have for example  (standard stuff!)

servlet
servlet-nameConfig/servlet-name
servlet-classorg.myorg.config.Config/servlet-class
/servlet

with a mapping and security contraint.

I have searched throught the web.xml options below and cannot work out which 
one for static html pages.

Or do you you use servlet like
 
servlet
servlet-nameHelpPage/servlet-name
servlet-class/HelpPage.html/servlet-class
/servlet

with  forward slash to show root context folder. I've serached high and low on 
the net - all the examples (and in the TC examples) don't restrict static pages.
I'm sure its easy when you know how, but  :-)  


!--
(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-
mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welco
me-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-const
raint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*).
--


Chris Chappell

- Original Message - 
From: QM [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 12:02 PM
Subject: Re: Realms and Static pages


 On Wed, Nov 17, 2004 at 11:34:48AM -, Chris Chappell wrote:
 : How can I protect static pages on my Tomcat powered site with username/role 
 +
 : password information from my jdbc realm?
 
 Use the standard roles/auth constraints in web.xml.  See the servlet
 spec, or some random servlet/JSP articles/books, for details.
 
 
 : I have some help pages under /MyContext/help. I cannot find how to put them
 : under /MyContext/WEB-INF/help.
 : Anybody help? (There's only a few static pages, so it would be overkill to 
 run
 : apache as well)
 
 Yes: don't put them under WEB-INF unless you want to write code to serve
 them yourself. =) By default, files under WEB-INF are *not* available
 for standard requests (HTTP/GET, HTTP/POST, etc).  This prevents
 would-be miscreants from downloading the app's code and config files.
 
 
 -QM
 
 -- 
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

RE: Embedded Tomcat deploying WAR with URL of type jar:

2004-11-17 Thread Shapira, Yoav

Hi,
Or the Manager webapp docs, which show example WAR URLs.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 16, 2004 6:34 PM
To: Tomcat Users List
Subject: Re: Embedded Tomcat deploying WAR with URL of type jar:

Hi Joe,

URL warFile = new URL(jar:C:/source/ROOT.war);

Take a look at the syntax for the JarURLConnection class.
http://java.sun.com/j2se/1.4.2/docs/api/java/net/JarURLConnection.html


-Ben Souther
F.W. Davison  Co, Inc.  ;-)


On Tue, 2004-11-16 at 17:59, Joe Reger, Jr. wrote:
 Hi.

 I have a question regarding the embedded version of Tomcat.  I'd like
to
 have a java program start an instance of Tomcat and then deploy a WAR
file
 to it.

 ...
 URL warFile = new URL(jar:C:/source/ROOT.war);
 Deployer deployer = (Deployer)host;
 deployer.install(/ROOT, warFile);
 ...

 I get the following error on the first line above:
 java.net.MalformedURLException: no !/ in spec

 This appears to be a known issue with Java:
 http://archives.java.sun.com/cgi-bin/wa?A2=ind0311L=jini-
usersF=S=P=1044
 6

 But in the Tomcat API doc I see A URL of type jar: that points to
a
WAR
 file, or type file: that points to an unpacked directory structure
 containing the web application to be installed :
 http://jakarta.apache.org/tomcat/tomcat-5.0-
doc/catalina/docs/api/org/apache
 /catalina/Deployer.html#install(java.net.URL,%20java.net.URL)

 Summary: I'd like to use a URL of type jar: but I can't seem to get
it
 working.  Any help appreciated.

 Sorry for the long message.

 Joe Reger





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




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


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



RE: Tomcat crashing

2004-11-17 Thread Shapira, Yoav

Hi,
This exception is first of all not fatal, and secondly usually indicates
a client closed the browser (and therefore the output sink, from
Tomcat's perspective) while Tomcat is still writing output to it.  You
can STFA for more details if you'd like.

IF your Tomcat really is crashing, it's not due to a single error like
this.  It might be your network is messed up, causing many of these
errors.  Or something else is wrong, and this is the more likely case.
Try Tomcat-Standalone first for testing.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Barath Kumar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 4:57 AM
To: [EMAIL PROTECTED]
Subject: Tomcat crashing

Hi,

I am using Tomcat 4.1.27. Intially tomcat was working well. But after
sometime it was not able to process requests and it gets crashed.
Following is the error in catalina logs:

2004-11-10 09:53:33 Ajp13Processor[8009][3] process: invoke
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at
java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at
org.apache.ajp.RequestHandler.finish(RequestHandler.java:495)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:
196)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:534)

Any idea of what is causing this.

PS : I have connected Apache and Tomcat server using mod_jk connector
and I forward all the jsp requests from apache to tomcat.

Regards,
Barath Kumar

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




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


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



Re: Database Pooling

2004-11-17 Thread Andoni
I think what you are looking for is this:

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

This one is for Tomcat 5.x of course but varies little. Follow the links to
find ones for other Tomcats under JDBC DataSources.

Andoni.

- Original Message - 
From: Scott Purcell [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Tuesday, November 16, 2004 9:35 PM
Subject: Database Pooling


I am developing a mid-sized application, which will use JSP Model 2
Architecture. Currently I have a class that does Database Pooling, but I am
curious about some threads I see time to time.

I have noticed that some developers on this list refer to Tomcats Database
Pooling. It looks like there are some hooks into the deployment file. So I
guess my question is as follows. does Tomcat offer this type of pooling? and
if so, is it good, and is it portable? Links, references would be great.

Thanks,
Scott








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



RE: Tomcat startup time delay in Windows 95/98

2004-11-17 Thread Shapira, Yoav

Hi,
I was just about to say that ;)  Pretty much everything works slower on
these operating systems ;)

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Benson Margulies [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 7:32 AM
To: Tomcat Users List
Subject: RE: Tomcat startup time delay in Windows 95/98

Use an actual operating system :)

-Original Message-
From: Pragyan Padmini Misra [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 6:48 AM
To: 'Tomcat Users List'
Subject: Tomcat startup time delay in Windows 95/98

HI,
  I had posted this earlier and again am resending as am still not
getting any solution. Can any one help me out on this. The application
which we have developed has a performance related issue in Windows
95/98. We install the application and when we click on the aplication
icon it internally invokes a Flash screen displaying the application is
loading and internally calls the startup.bat file in tomcat\bin for the
server startup process, which internally calls the catalina.bat file
and
so on and so forth. We cannot startup Tomcat as a service in Win 95/98.
The problem basically which we are facing is the time taken for the
load
of the application. The load time takes up about 1 1/2 to 2 minutes.
This doesnt seem to be a feasible solution for the product acceptance.
Is there any way we can decrease the tomcat startup load time? Can we
manipulate on the processes so as to reduce the load time? Or is there
any solution for the same?

  Regards
  Pragyan

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




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


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



RE: WAR file and context.xml overwriting on deployment

2004-11-17 Thread Shapira, Yoav

Hi,
You could use a different, your own, configuration file.  You would then
have some logic into the file name, e.g. myconfigfile-v1 for WAR v1, and
then when your ship WAR v2, use myconfigfile-v2, so it wouldn't
overwrite the first, etc.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Joe Reger, Jr. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 16, 2004 5:28 PM
To: [EMAIL PROTECTED]
Subject: WAR file and context.xml overwriting on deployment


Hi.

I have a java web app that I package as a WAR file.  People download
it.
They install it on their instance of Tomcat.  They configure
application
settings as variables in context.xml.

The problem is that each time they grab updated code (a new WAR file)
they
overwrite their context.xml file with the default settings.

Is there some more user-friendly way to deal with this configuration
issue?
How do others that provide downloadable WAR files do this?

I understand that this may not be the traditional usage of WAR files
and
Tomcat.  Ideas welcome.

Thanks,

Joe Reger


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




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


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



RE: Tomcat 5.5.4 dont see Servlets in my app

2004-11-17 Thread José Luis
Hi,
perhaps the problem is my application structure. I show us it:

portal + --- JSP --- ...
 |
 |
 + --- WEB-INF --- + --- classes --- + --- nucleo
 |
 + --- javax
 |
 + --- com
 |
 + --- (package i)
 |
 + --- (site i)

- nucleo is the package who have servlets of application.
- javax are the servlet classes.
- com are the the jdb classes of microsoft for db connection.
- (package i) is one of my own utilities classes packed.
- (site i) are clases of one of my sites.

Well, i use WebSphere to compile all and then copy .class in this structure.
could the web sphere compilation be the problem in tomcat 5.5.4?
This method works fine in tomcat 4.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004


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



Re: Understanding origin of Unexpected exception ... outside the VM

2004-11-17 Thread Chris Kaido
Thank you for your answers, I now have a research base :)

thx,

Chris.


On Wed, 17 Nov 2004 05:54:58 -0600, QM [EMAIL PROTECTED] wrote:
 On Wed, Nov 17, 2004 at 09:26:32AM +0100, Chris Kaido wrote:
 : I'm running solaris on Sparc hardware.
 : How could I verify the validity of my RAM without ... changing it :) ?
 
 Ehh, this may be a Google. ;)  I'm pretty sure there are some Solaris
 memory test tools out there.
 
 As far as testing the memory itself, there's no way (AFAIK) to exercise
 individual chips unless you open the box and shuffle them in/out
 yourself.
 
 If you have a Sun support contract, now's the time to put it to use. ;)
 
 
 
 -QM
 
 --
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: Tomcat 5.5.4 dont see Servlets in my app

2004-11-17 Thread Shapira, Yoav

Hi,
Javax.servlet classes under WEB-INF didn't work in 4.x, 5.0, and won't work in 
5.5.  Drop those.  Stick to a standard webapp structure anyways (which yours is 
very close to, except for javax and site I).

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: José Luis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 8:42 AM
To: Tomcat Users List; Remy Maucherat
Subject: RE: Tomcat 5.5.4 dont see Servlets in my app

Hi,
   perhaps the problem is my application structure. I show us it:

portal + --- JSP --- ...
|
|
+ --- WEB-INF --- + --- classes --- + --- nucleo
|
+ --- javax
|
+ --- com
|
+ --- (package i)
|
+ --- (site i)

- nucleo is the package who have servlets of application.
- javax are the servlet classes.
- com are the the jdb classes of microsoft for db connection.
- (package i) is one of my own utilities classes packed.
- (site i) are clases of one of my sites.

Well, i use WebSphere to compile all and then copy .class in this
structure.
could the web sphere compilation be the problem in tomcat 5.5.4?
This method works fine in tomcat 4.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004


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




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


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



RE: Tomcat 5.5.4 dont see Servlets in my app

2004-11-17 Thread Allistair Crossley
José, there is no need to include compiled javax classes in your web 
application's classes. These are provided by the application server (Tomcat) in 
the common/lib location which all code in your web application will see. 
For database connectivity, see how to configure a datasource using Tomcat. In 
that case you would add your 3 M$ database jars into common/lib so Tomcat can 
cofigure. I lose count of the number of posts relating to datasource setup, so 
you will have no trouble.

OR if you insist on managing your own connectivity, your M$ database code 
should be wrapped up in JARs and be located in your web application WEB-INF/lib 
location NOT as separate classes. I would lookup jTDS as an alternative to M$'s 
drivers anyway - far quicker and documented.

Finally, you ought really only see 


/yourwebapp
  + jsp
  + WEB-INF
+ classes
  + com (include servlets in your com packages)
+ lib
  - databaseDriver.jar (e.g jtds or msbase etc..) OR let Tomact do it with 
datasource
  - other libs (NOT servlet javax lib - this is provided by Tomcat)

Good luck.


 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 17 November 2004 14:22
 To: Tomcat Users List
 Subject: RE: Tomcat 5.5.4 dont see Servlets in my app
 
 
 
 Hi,
 Javax.servlet classes under WEB-INF didn't work in 4.x, 5.0, 
 and won't work in 5.5.  Drop those.  Stick to a standard 
 webapp structure anyways (which yours is very close to, 
 except for javax and site I).
 
 Yoav Shapira http://www.yoavshapira.com
  
 
 -Original Message-
 From: José Luis [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 17, 2004 8:42 AM
 To: Tomcat Users List; Remy Maucherat
 Subject: RE: Tomcat 5.5.4 dont see Servlets in my app
 
 Hi,
  perhaps the problem is my application structure. I show us it:
 
 portal + --- JSP --- ...
   |
   |
   + --- WEB-INF --- + --- classes --- + --- nucleo
   |
   + --- javax
   |
   + --- com
   |
   + --- 
 (package i)
   |
   + --- (site i)
 
 - nucleo is the package who have servlets of application.
 - javax are the servlet classes.
 - com are the the jdb classes of microsoft for db connection.
 - (package i) is one of my own utilities classes packed.
 - (site i) are clases of one of my sites.
 
 Well, i use WebSphere to compile all and then copy .class in this
 structure.
 could the web sphere compilation be the problem in tomcat 5.5.4?
 This method works fine in tomcat 4.
 
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



tomcat/apace

2004-11-17 Thread Steven Lister
Just a quick question.  Does apache2 need to be
restarted if connected using mod_jk2 to tomcat5?
I know that I was told that under 4.1 tomcat mod_jk and
tomcat 4 you had to do it in x order, is that still true.
-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


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



tomcat 5.0.28 on iseries os/400 version 5 release 2?

2004-11-17 Thread Roux, Wouter
Hi,

Does anyone know where I can find a script/info/help on how to start tomcat 
5.0.28 on iseries os/400 version 5 release 2.

thanx

wouter


This e-mail and attachments are confidential/legally privileged and any 
unauthorised use, distribution or disclosure thereof, in whatever form, by 
anyone other than the addressee is prohibited. If you have received this e-mail 
in error, please destroy it.  The views and opinions in this e-mail and 
attachments may not necessarily be those of the Directors and management of the 
Medi-Clinic Group of Companies. The aforementioned does not accept any 
liability for any damage, loss or expense arising from this e-mail and / or 
from accessing any attachments.

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



RE: tomcat/apace

2004-11-17 Thread Phillip Qin
Not true in tc5.

-Original Message-
From: Steven Lister [mailto:[EMAIL PROTECTED] 
Sent: November 17, 2004 9:33 AM
To: Tomcat Users List
Subject: tomcat/apace


Just a quick question.  Does apache2 need to be
restarted if connected using mod_jk2 to tomcat5?
I know that I was told that under 4.1 tomcat mod_jk and
tomcat 4 you had to do it in x order, is that still true.
-- 
___
Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm


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


!DSPAM:419b612d314961930315303!


Servlet problem with Tomcat

2004-11-17 Thread Ross Smith
Hi,

I am having an infuriating problem with a servlet in Tomcat 4.1.31:  whenever I
start tomcat, I get the error attached below.  As far as I can see, the problem
seems to lie with mx4j/tools/naming/NamingService not being found, even though
the JAR containing this class is present.  I suspect that my current
development install of tomcat is improperly configured, as the servlet works
fine in the deployment server (Sun One Application Server 7), though I am far
from sure.

Could anyone suggest any possible causes for this error? Or at least point me in
the right direction? I apologise if this is a simple Java/Servlet problem, but
neither my colleagues or I have had any success with this matter.  Any and all
help would be greatly appreciated.

Regards,

Ross Smith



63   [15.11.04 15:56:57,531] [main] ERROR com.jario.server.jmx.JMXManager  -
registerJMXConnector() ReflectionException ex
javax.management.ReflectionException: The MBean class could not be loaded by the
context classloader
at
com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.loadClass(MBeanInstantiatorImpl.java:432)
at
com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.findClass(MBeanInstantiatorImpl.java:72)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(DefaultMBeanServerInterceptor.java:279)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(DefaultMBeanServerInterceptor.java:227)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.createMBean(JmxMBeanServer.java:354)
at
com.jario.server.jmx.JMXManager.registerJMXConnector(JMXManager.java:88)
at com.jario.server.jmx.JMXManager.startJMX(JMXManager.java:67)
at
com.jario.server.connection.ServerContextListener.contextInitialized(ServerContextListener.java:65)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3212)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3554)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:774)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:260)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:741)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:445)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:353)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:671)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Caused by: java.lang.ClassNotFoundException: mx4j/tools/naming/NamingService
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.loadClass(MBeanInstantiatorImpl.java:429)
... 33 more

--
Ross Smith
Software Engineer
the Kelvin Institute
http://www.kelvininstitute.com/



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



RE: tomcat/apace

2004-11-17 Thread Steven Lister
So just as long as apache is started tomcat should find it

- Original Message - 
From: Phillip Qin 
To: 'Tomcat Users List' 
Subject: RE: tomcat/apace 
Date: Wed, 17 Nov 2004 09:37:28 -0500 

 
 Not true in tc5. 
 
 -Original Message- 
 From: Steven Lister [mailto:[EMAIL PROTECTED] 
 Sent: November 17, 2004 9:33 AM 
 To: Tomcat Users List 
 Subject: tomcat/apace 
 
 
 Just a quick question. Does apache2 need to be 
 restarted if connected using mod_jk2 to tomcat5? 
 I know that I was told that under 4.1 tomcat mod_jk and 
 tomcat 4 you had to do it in x order, is that still true. 
 -- 
 ___ 
 Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm 
 
 
 - 
 To unsubscribe, e-mail: [EMAIL PROTECTED] 
 For additional commands, e-mail: [EMAIL PROTECTED] 
 
 
 !DSPAM:419b612d314961930315303! 
 
-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


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



RE: tomcat 5.0.28 on iseries os/400 version 5 release 2?

2004-11-17 Thread Shapira, Yoav

Hi,
Tomcat should work on OS/400 out of the box.  We have a couple of small
tweaks we can make to the startup scripts for unusual cases, such as
when the server uses doesn't own the startup scripts, but for most cases
it should work fine.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Roux, Wouter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 9:36 AM
To: Tomcat Users List
Subject: tomcat 5.0.28 on iseries os/400 version 5 release 2?

Hi,

Does anyone know where I can find a script/info/help on how to start
tomcat
5.0.28 on iseries os/400 version 5 release 2.

thanx

wouter


This e-mail and attachments are confidential/legally privileged and any
unauthorised use, distribution or disclosure thereof, in whatever form,
by
anyone other than the addressee is prohibited. If you have received
this e-
mail in error, please destroy it.  The views and opinions in this
e-mail
and attachments may not necessarily be those of the Directors and
management of the Medi-Clinic Group of Companies. The aforementioned
does
not accept any liability for any damage, loss or expense arising from
this
e-mail and / or from accessing any attachments.

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




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


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



RE: Servlet problem with Tomcat

2004-11-17 Thread Shapira, Yoav

Hi,
The question is where the MX4J jar IS, and where is it EXPECTED to be by
this com.jario library.  If the two are different, that's why you're
getting the error.  Specifically, it looks like com.jario is looking for
MX4J in the context classloader.  In Tomcat, MX4J is on the bootstrap
classloader.  The two are different...

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Ross Smith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 9:32 AM
To: [EMAIL PROTECTED]
Subject: Servlet problem with Tomcat

Hi,

I am having an infuriating problem with a servlet in Tomcat 4.1.31:
whenever I
start tomcat, I get the error attached below.  As far as I can see, the
problem
seems to lie with mx4j/tools/naming/NamingService not being found, even
though
the JAR containing this class is present.  I suspect that my current
development install of tomcat is improperly configured, as the servlet
works
fine in the deployment server (Sun One Application Server 7), though I
am
far
from sure.

Could anyone suggest any possible causes for this error? Or at least
point
me in
the right direction? I apologise if this is a simple Java/Servlet
problem,
but
neither my colleagues or I have had any success with this matter.  Any
and
all
help would be greatly appreciated.

Regards,

Ross Smith



63   [15.11.04 15:56:57,531] [main] ERROR
com.jario.server.jmx.JMXManager
-
registerJMXConnector() ReflectionException ex
javax.management.ReflectionException: The MBean class could not be
loaded
by the
context classloader
at
com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.loadClass(MBeanInstantiat
orIm
pl.java:432)
at
com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.findClass(MBeanInstantiat
orIm
pl.java:72)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(Defau
ltMB
eanServerInterceptor.java:279)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(Defau
ltMB
eanServerInterceptor.java:227)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.createMBean(JmxMBeanServer.java:
354)
at
com.jario.server.jmx.JMXManager.registerJMXConnector(JMXManager.java:88
)
at com.jario.server.jmx.JMXManager.startJMX(JMXManager.java:67)
at
com.jario.server.connection.ServerContextListener.contextInitialized(Se
rver
ContextListener.java:65)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.
java
:3212)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:355
4)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j
ava:
774)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo
yer.
java:260)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:741)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:445)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:353)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:671)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3
11)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
uppo
rt.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
at
org.apache.catalina.core.StandardService.start(StandardService.java:450
)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:463)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
9)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
l.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Caused by: java.lang.ClassNotFoundException:
mx4j/tools/naming/NamingService
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.loadClass(MBeanInstantiat
orIm
pl.java:429)
... 33 more

--
Ross Smith
Software Engineer
the Kelvin Institute
http://www.kelvininstitute.com/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]

Implementing Realm

2004-11-17 Thread Morten Andersen
I've implemented my own simple Realm that should make it possible to store 
user and passwords in one file and user-roles in another plus make it 
possible to change these while tomcat is running.
So basically it should be straight forward to implement it, but I find it 
very difficult to find descent documentation on how to make it work with 
tomcat.

I changed the realm in server.xml:
Realm className=org.mortena.projectManagement.DynamicRealm debug=99/
Added the neccesary jar files to: server\lib
and started tomcat.
I get the error: Can't create mbean instance or something similar.
As I then go to a restricted area on one of the webapps (like: manager) I 
get an empty screen.

Can anyone guide me to an article on how to implement and deploy a Realm...
Thanks
Morten Andersen
Master of applied mathematics and computer science
Associate professor
The Maersk Institute of Production technology at Southern Danish University 
www.mip.sdu.dk
Campusvej 55
DK-5230 Odense M
Denmark
+45 65 50 36 54
+45 61 71 11 03
Jabber id: [EMAIL PROTECTED]

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


Re: Servlet problem with Tomcat

2004-11-17 Thread Sharad Ramadas
Did you try setting the classpath for the JAR file. You need to give
the entire path till the JAR file.

-Sharad

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



RE: Implementing Realm

2004-11-17 Thread Shapira, Yoav

Hi,
The information below applies to Tomcat 5.x, not 4.x.

I changed the realm in server.xml:

Realm className=org.mortena.projectManagement.DynamicRealm
debug=99/

This should be fine.

Added the neccesary jar files to: server\lib

This is OK if your webapp classes don't need to access the Realm itself
(which is the normal case).  If they do, you should put the Realm jar in
common/lib instead.

I get the error: Can't create mbean instance or something similar.

Can you please post the full log with the error message?

As I then go to a restricted area on one of the webapps (like: manager)
I
get an empty screen.

That's because of the startup error about the MBean instance.

Can anyone guide me to an article on how to implement and deploy a
Realm...

You need to implement the org.apache.catalina.Realm interface, as you
probably already figured out.  But you also need to add its MBean
descriptor as documented at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/mbeans-descriptor-howto.
html.  I'll add a link from the Realm How-To to this page.  This latter
step is required because Tomcat uses JMX to manage its realms.

Note that all of Tomcat's built-in Realms support runtime changes to the
data store, be it a file or a database.

Yoav



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


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



Re: Tomcat crashing

2004-11-17 Thread Sharad Ramadas
You can get this error if the database re-starts or shuts down. If you
re-start the tomcat you won't get this error.

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



Suggestion - upgrade scripts.

2004-11-17 Thread Andoni
Hello,

Ever since a recent conversation about the status of the 4.1.xx branch of the 
Tomcat tree I have been wondering about the best route for upgrading the 
servers which I manage. Having browsed the Tocmat website and seen the 
differences between the different versions I have noticed what's missing.

I think there should be some development effort put into scripts for upgrading 
from the previous version of Tomcat. If these scripts could also download from 
the website then the simplest answer to I'm running 4.1.27 and it crashes when 
I ...  would be Then run the upgrade script and call back! I actually hope 
the user list never becomes this rude but you get my gist. At least a lot more 
people would have the option to upgrade if they didn't have to know exactly 
what was involved (i.e. a script could know for them).

Anyone got any free development time?

Just a suggestion.

Andoni.


RE: tomcat/apace

2004-11-17 Thread Phillip Qin
Ypav, correct me if I were wrong - order doesn't matter.

-Original Message-
From: Steven Lister [mailto:[EMAIL PROTECTED] 
Sent: November 17, 2004 9:43 AM
To: Tomcat Users List
Subject: RE: tomcat/apace


So just as long as apache is started tomcat should find it

- Original Message - 
From: Phillip Qin 
To: 'Tomcat Users List' 
Subject: RE: tomcat/apace 
Date: Wed, 17 Nov 2004 09:37:28 -0500 

 
 Not true in tc5.
 
 -Original Message-
 From: Steven Lister [mailto:[EMAIL PROTECTED] 
 Sent: November 17, 2004 9:33 AM 
 To: Tomcat Users List 
 Subject: tomcat/apace 
 
 
 Just a quick question. Does apache2 need to be
 restarted if connected using mod_jk2 to tomcat5? 
 I know that I was told that under 4.1 tomcat mod_jk and 
 tomcat 4 you had to do it in x order, is that still true. 
 -- 
 ___ 
 Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] 
 For additional commands, e-mail: [EMAIL PROTECTED] 
 
 
  
 
-- 
___
Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm


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


!DSPAM:419b63b8315661278313514!


Re: Tomcat 5.5.4, Logging and the death of my friend localhost_log

2004-11-17 Thread Andreas Schildbach
Jacob Kjome wrote:
What I liked about the ServletContext logging was that I could 
dynamically create the file using a simple Logger in the Context 
element of my context configuration file.  This way, all I have to do is 
the deploy the app and the log file is created and rolled for me.
 I'd like to see something like the old functionality come
back, although I'm not holding my breath.
I second that.
There is even one more reason why Tomcat 5.0 logging was better:
With Tomcat 5.0, it was possible to log different web applications to 
different log files by using the swallowOutput attribute of the 
Context element, even if those applications used the same libraries. I 
know that swallowOutput is just a hack to capture the output of badly 
written applications that do their logging via System.out, but hey, it 
also worked for java.util.logging-based applications and it seemed to be 
the only way to distinguish between web applications.

With Tomcat 5.5, I have no idea what application a log entry of, say, 
class org.apache.commons.fileupload.FileUploadBase is belonging to. It 
could be just any of my applications, because they all use Commons 
Fileupload. It is not sufficient to only select by package and class names.

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


Server Component....What IP does the shutdown service listen to?

2004-11-17 Thread Troy Simpson
OS: Sun Solaris 8
Tomcat: 5.5.4
Documentation: 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/server.html

According to the documentation, the server component has attributes for 
className, port, and shutdown, but not bindIPAddress.  What IP address 
is the server listening to for the shutdown command?

If my server.xml file contains this:
Server port=8005 shutdown=SHUTDOWN debug=0.../Server
...is the server waiting for the shutdown command, SHUTDOWN, on 
127.0.0.1:8005?
or
...is the server waiting for the shutdown command, SHUTDOWN, on *:8005 
(All IP addresses assigned to the server)?

I run netstat -a and I get the following for port 8005:
  Local Address Remote Address State
  ---
localhost.8005 *.*0  0 24576  0 LISTEN
I'm not much of a sysadmin, but this suggest that something (tomcat) is 
listening for the shutdown command on 127.0.0.1:8005.
Am I correct?

Thanks,
Troy
--
Troy Simpson
 Applications Analyst/Programmer, OCPDBA, MCSE, SCSA
North Carolina State University Libraries
Campus Box 7111 | Raleigh | North Carolina
ph.919.515.3855 | fax.919.513.3330
E-mail: [EMAIL PROTECTED]

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


RE: Tomcat 5.5.4, Logging and the death of my friend localhost_log

2004-11-17 Thread Allistair Crossley
I think you hit the nail on the head with the problem being people use 
System.out to log.  I suppose it's the lesser of 2 evils .. should Tomcat's 
internal logging setup continue to support bad web application setup, or does 
it try to move forward like 5.5 is doing.

Put simply, if you want per-web application logging, you need per-web 
application log4j configuration. It's very easy to do but I do understand that 
those using System.out will have to spend time refactoring. But they can stay 
on their = 5.0 versions.

It's just 5.5 that moves away from this, so your decision I suppose.

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] Behalf Of Andreas Schildbach
 Sent: 17 November 2004 15:27
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat 5.5.4, Logging and the death of my friend
 localhost_log
 
 
 Jacob Kjome wrote:
 
  What I liked about the ServletContext logging was that I could 
  dynamically create the file using a simple Logger in the 
 Context 
  element of my context configuration file.  This way, all I 
 have to do is 
  the deploy the app and the log file is created and rolled for me.
 
   I'd like to see something like the old functionality come
  back, although I'm not holding my breath.
 
 I second that.
 
 There is even one more reason why Tomcat 5.0 logging was better:
 
 With Tomcat 5.0, it was possible to log different web applications to 
 different log files by using the swallowOutput attribute of the 
 Context element, even if those applications used the same 
 libraries. I 
 know that swallowOutput is just a hack to capture the output of badly 
 written applications that do their logging via System.out, 
 but hey, it 
 also worked for java.util.logging-based applications and it 
 seemed to be 
 the only way to distinguish between web applications.
 
 With Tomcat 5.5, I have no idea what application a log entry of, say, 
 class org.apache.commons.fileupload.FileUploadBase is 
 belonging to. It 
 could be just any of my applications, because they all use Commons 
 Fileupload. It is not sufficient to only select by package 
 and class names.
 
 Regards,
 
 Andreas
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Server Component....What IP does the shutdown service listen to?

2004-11-17 Thread Shapira, Yoav

Hi,
You're correct, it's only listening on the local address, 127.0.0.1, for
security reasons.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Troy Simpson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 10:36 AM
To: Tomcat Users List
Subject: Server ComponentWhat IP does the shutdown service listen
to?

OS: Sun Solaris 8
Tomcat: 5.5.4
Documentation:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/server.html

According to the documentation, the server component has attributes for
className, port, and shutdown, but not bindIPAddress.  What IP address
is the server listening to for the shutdown command?

If my server.xml file contains this:

Server port=8005 shutdown=SHUTDOWN debug=0.../Server

...is the server waiting for the shutdown command, SHUTDOWN, on
127.0.0.1:8005?
or
...is the server waiting for the shutdown command, SHUTDOWN, on *:8005
(All IP addresses assigned to the server)?

I run netstat -a and I get the following for port 8005:
   Local Address Remote Address State
  ---
localhost.8005 *.*0  0 24576  0
LISTEN

I'm not much of a sysadmin, but this suggest that something (tomcat) is
listening for the shutdown command on 127.0.0.1:8005.
Am I correct?

Thanks,
Troy

--
Troy Simpson
  Applications Analyst/Programmer, OCPDBA, MCSE, SCSA
North Carolina State University Libraries
Campus Box 7111 | Raleigh | North Carolina
ph.919.515.3855 | fax.919.513.3330
E-mail: [EMAIL PROTECTED]



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




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


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



RE: Tomcat 5.5.4, Logging and the death of my friend localhost_log

2004-11-17 Thread Shapira, Yoav

Hi,

There is even one more reason why Tomcat 5.0 logging was better:

With Tomcat 5.0, it was possible to log different web applications to
different log files by using the swallowOutput attribute of the
Context element, even if those applications used the same libraries. I

This is still possible with proper logging configuration: the loggers
are different for the webapps, but the appenders can be the same.  As
Jacob said, don't hold your breath waiting for Logger to come back: we
carried our Loggers far too long as it was.

Yoav



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


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



Re: Server Component....What IP does the shutdown service listen to?

2004-11-17 Thread David Smith
To my understanding, you are correct.  It's locked to only listen for a 
shutdown command on the localhost interface 127.0.0.1 for security reasons.

--David
Troy Simpson wrote:
OS: Sun Solaris 8
Tomcat: 5.5.4
Documentation: 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/server.html

According to the documentation, the server component has attributes 
for className, port, and shutdown, but not bindIPAddress.  What IP 
address is the server listening to for the shutdown command?

If my server.xml file contains this:
Server port=8005 shutdown=SHUTDOWN debug=0.../Server
...is the server waiting for the shutdown command, SHUTDOWN, on 
127.0.0.1:8005?
or
...is the server waiting for the shutdown command, SHUTDOWN, on *:8005 
(All IP addresses assigned to the server)?

I run netstat -a and I get the following for port 8005:
  Local Address Remote Address State
  ---
localhost.8005 *.*0  0 24576  0 
LISTEN

I'm not much of a sysadmin, but this suggest that something (tomcat) 
is listening for the shutdown command on 127.0.0.1:8005.
Am I correct?

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


Re: Server Component....What IP does the shutdown service listen to?

2004-11-17 Thread Markus Schönhaber
Troy Simpson wrote:
OS: Sun Solaris 8
Tomcat: 5.5.4
Documentation: 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/server.html

According to the documentation, the server component has attributes for 
className, port, and shutdown, but not bindIPAddress.  What IP address 
is the server listening to for the shutdown command?

If my server.xml file contains this:
Server port=8005 shutdown=SHUTDOWN debug=0.../Server
...is the server waiting for the shutdown command, SHUTDOWN, on 
127.0.0.1:8005?
or
...is the server waiting for the shutdown command, SHUTDOWN, on *:8005 
(All IP addresses assigned to the server)?

I run netstat -a and I get the following for port 8005:
  Local Address Remote Address State
  ---
localhost.8005 *.*0  0 24576  0 LISTEN
I'm not much of a sysadmin, but this suggest that something (tomcat) is 
listening for the shutdown command on 127.0.0.1:8005.
Am I correct?

Yes. As
netstat -an
should have told you (or doesn't Solaris' netstat understand the -n 
switch?).

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


Recursive groups in JNDIRealm

2004-11-17 Thread Roland Carlsson
Hi!

After an hour of searching I can't figure out if Tomcat is able to find
groups in group in a LDAP server?

I found this in the archives but since it is from 4.1.18
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg89601.html


Thanks in advance
Roland Carlsson



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



Bad Expires Code?

2004-11-17 Thread Squashua
I tried looking through the archive using the search provided by the mailing 
list archives, but I couldn’t find anythign relevant, and googling didn't 
get me anywhere (my google-fu is not strong), so I am here as my last 
resort. 

I keep seeing this sort of thing on our server, and I can't find a good 
explanation of how to stop it or fix it. I found one link about 
mod_expires.c, but that didn't really tell me why I'm getting this error and 
how to solve it. 

I recognize restrictions on posting detailed url information, so I have 
replaced sensitive info with somewhat relevant BS, and have trimmed the log 
down to 3 sample entries : 

[Tue Nov 16 14:25:22 2004] [error] [client 83.170.12.18] internal error: bad 
expires code: 
/usr/local/jakarta-tomcat-4.1.30/webapps/mywebapp/js/myjsfile.js, referer: 
http://www.NOTAREALSITE.com/mywebapp/subdir/subdir/strutaction.do?param=valu 
eparam2=value2 

[Tue Nov 16 14:25:25 2004] [error] [client 212.253.46.69] internal error: 
bad expires code: 
/usr/local/jakarta-tomcat-4.1.30/webapps/subdir/aStrutsAction.do, referer: 
http://www.NOTAREALSITE.com/subdir/subdir/subdir/aDifferentStrutsAction.do?p 
aram1=value1 

[Tue Nov 16 14:25:25 2004] [error] [client 64.241.170.177] internal error: 
bad expires code: 
/usr/local/jakarta-tomcat-4.1.30/webapps/subdir/subdir/subdir/aStrutsAction. 
do, referer: 
http://www.NOTAREALSITE.com/subdir/subdir/subdir/theSameStrutsAction.do?para 
m1=value1param2=value2

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


Re: Tomcat 5.5.4, Logging and the death of my friend localhost_log

2004-11-17 Thread Andreas Schildbach
Shapira, Yoav wrote:
There is even one more reason why Tomcat 5.0 logging was better:
With Tomcat 5.0, it was possible to log different web applications to
different log files by using the swallowOutput attribute of the
Context element, even if those applications used the same libraries. I
This is still possible with proper logging configuration: the loggers
are different for the webapps, but the appenders can be the same.
Can anyone give an example of how to configure this for 
java.util.logging, please? (I am not using log4j)

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


RE: tomcat/apace

2004-11-17 Thread Didier McGillis
I did some testing a couple of weeks ago, with apache started and shut down 
two of the four tomcat environments that I have running and I was able to 
access them, so I dont think that order matters as it once did.

Steve, you can test as well even if you have only one environment, of course 
as long as its not the production environment :)

From: Phillip Qin [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: tomcat/apace
Date: Wed, 17 Nov 2004 10:25:05 -0500
Ypav, correct me if I were wrong - order doesn't matter.
-Original Message-
From: Steven Lister [mailto:[EMAIL PROTECTED]
Sent: November 17, 2004 9:43 AM
To: Tomcat Users List
Subject: RE: tomcat/apace
So just as long as apache is started tomcat should find it
- Original Message -
From: Phillip Qin
To: 'Tomcat Users List'
Subject: RE: tomcat/apace
Date: Wed, 17 Nov 2004 09:37:28 -0500

 Not true in tc5.

 -Original Message-
 From: Steven Lister [mailto:[EMAIL PROTECTED]
 Sent: November 17, 2004 9:33 AM
 To: Tomcat Users List
 Subject: tomcat/apace


 Just a quick question. Does apache2 need to be
 restarted if connected using mod_jk2 to tomcat5?
 I know that I was told that under 4.1 tomcat mod_jk and
 tomcat 4 you had to do it in x order, is that still true.
 --
 ___
 Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm


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




--
___
Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
!DSPAM:419b63b8315661278313514!

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


Re: Bad Expires Code?

2004-11-17 Thread Tim Funk
On a quick search, my guess is mod_expires is not configured correctly.
-Tim
Squashua wrote:
I tried looking through the archive using the search provided by the 
mailing list archives, but I couldnt find anythign relevant, and 
googling didn't get me anywhere (my google-fu is not strong), so I am 
here as my last resort.
I keep seeing this sort of thing on our server, and I can't find a good 
explanation of how to stop it or fix it. I found one link about 
mod_expires.c, but that didn't really tell me why I'm getting this error 
and how to solve it.
I recognize restrictions on posting detailed url information, so I have 
replaced sensitive info with somewhat relevant BS, and have trimmed the 
log down to 3 sample entries :
[Tue Nov 16 14:25:22 2004] [error] [client 83.170.12.18] internal error: 
bad expires code: 
/usr/local/jakarta-tomcat-4.1.30/webapps/mywebapp/js/myjsfile.js, 
referer: 
http://www.NOTAREALSITE.com/mywebapp/subdir/subdir/strutaction.do?param=valu 
eparam2=value2
[Tue Nov 16 14:25:25 2004] [error] [client 212.253.46.69] internal 
error: bad expires code: 
/usr/local/jakarta-tomcat-4.1.30/webapps/subdir/aStrutsAction.do, 
referer: 
http://www.NOTAREALSITE.com/subdir/subdir/subdir/aDifferentStrutsAction.do?p 
aram1=value1
[Tue Nov 16 14:25:25 2004] [error] [client 64.241.170.177] internal 
error: bad expires code: 
/usr/local/jakarta-tomcat-4.1.30/webapps/subdir/subdir/subdir/aStrutsAction. 
do, referer: 
http://www.NOTAREALSITE.com/subdir/subdir/subdir/theSameStrutsAction.do?para 
m1=value1param2=value2


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


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

2004-11-17 Thread Ed Sykes
Hi,
does anyone have any other suggestions that I should try?
should i try an earlier version of Tomcat?
thanks,
Ed Sykes
- Original Message - 
From: Allistair Crossley [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 1:28 PM
Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null'


actually that may also be the jdbc connectivity ;) you are sure your 
database listener is operational?

-Original Message- 
From: Ed Sykes [mailto:[EMAIL PROTECTED]
Sent: Mon 15/11/2004 18:04
To: Tomcat Users List
Cc:
Subject: Re: Cannot create JDBC driver of class '' for connect URL 'null'


Hi Allistair,
Thank you very much for helping.
Here's my revised server.xml :
Context docBase=/ROOT reloadable=true
   Resource name=jdbc/myoracle auth=Container
  type=javax.sql.DataSource
driverClassName=oracle.jdbc.driver.OracleDriver
  url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2
  username=jits password=testing maxActive=20 
maxIdle=10
  maxWait=-1/

/Context
it is located inside   the Host  /Host  tag
Unfortunately, Tomcat responds with:
SEVERE:  Catalina.stop:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
etc.
and doesn't start.
Just to make things clear here is the location of the important stuff:
my JDBC files:
C:\jakarta-tomcat-5.5.4\common\lib
my server.xml:
C:\jakarta-tomcat-5.5.4\conf
my web app:
C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF\classes\JITS
the web app web.xml file:
C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF
Thanks,
Ed Sykes

- Original Message -
From: Allistair Crossley [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 12:25 PM
Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null'
your docBase should be /ROOT which should in turn contain WEB-INF/web.xml
and path can be scrapped
Context docBase=/ROOT reloadable=true
ADC
 -Original Message-
 From: Ed Sykes [mailto:[EMAIL PROTECTED]
 Sent: 15 November 2004 17:24
 To: Tomcat Users List
 Subject: Re: Cannot create JDBC driver of class '' for connect URL
 'null'


 Hi Yoav Shapira,

 Thank you for your help.

 I've corrected my server.xml file.  the first line now looks like:
 Context path=ROOT docBase=

 Tomcat starts up properly.

 The Oracle JDBC driver (classes12.jar, classes12dms.jar, and
 nls_charset12.jar)  are in:

 C:\jakarta-tomcat-5.5.4\common\lib


 One thing I am worried about is, during Tomcat startup, the
 log produces:
 INFO: Missing application web.xml, using defaults only
 StandardEngine[Catalina].StandardHost[localhost].StandardContext[ROOT]

 do you think this is related to the problem?
 it is curious because Tomcat can find and serve up the
 Servlet which is
 defined in the web.xml file...

 Thanks
 -Ed Sykes




 - Original Message -
 From: Shapira, Yoav [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, November 15, 2004 11:59 AM
 Subject: RE: Cannot create JDBC driver of class '' for
 connect URL 'null'



 Hi,

 Context path=/ROOT/WEB-INF/classes
 docBase=ROOT/WEB-INF/classes/JITS

 I really doubt you mean these.  The context path attribute is the URL
 path used by browsers to retrieve your web pages, i.e.
 http://yourhost:yourport/path.  It's not a filesystem path.

 The context docBase is the root of your webapp.  It should point to a
 directory which has a WEB-INF subdirectory containing web.xml.
 Therefore, I'm guessting your docBase is just ROOT and your path is
 .  Drop the Web-INF/classes part from both.

Resource name=jdbc/myoracle auth=Container
 
   type=javax.sql.DataSource
 driverClassName=oracle.jdbc.driver.OracleDriver
 
   url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2
 
   username=jits password=mypassword maxActive=20
 maxIdle=10
 
   maxWait=-1/

 This looks reasonable.

 ResourceParams name=jdbc/myoracle

 As Allistair pointed out and the docs explain, this is no
 longer needed
 in Tomcat 5.5, and should be removed.

 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC
 driver
 of class '' for connect URL 'null'

 Where is your JDBC driver file?  In common/lib or WEB-INF/lib?  It
 should be the former if you're using DBCP this way.  The latter would
 work using the primitive DriverManager approach and fail with DBCP.

 Yoav Shapira http://www.yoavshapira.com



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


 

Re: Tomcat 5.5.4, Logging and the death of my friend localhost_log

2004-11-17 Thread Remy Maucherat
On Wed, 17 Nov 2004 15:37:10 -, Allistair Crossley
[EMAIL PROTECTED] wrote:
 Put simply, if you want per-web application logging, you need per-web 
 application log4j configuration. It's very easy to do but I do understand 
 that those using System.out will have to spend time refactoring. But they can 
 stay on their = 5.0 versions.

This is wrong: swallowOutput will log to the Context category name
using commons-logging.

if (context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
filterChain.doFilter(request.getRequest(), 
response.getResponse());
} finally {
String log = SystemLogHandler.stopCapture();
if (log != null  log.length()  0) {
context.getLogger().info(log);
}
}
} else {
filterChain.doFilter
(request.getRequest(), response.getResponse());
}

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



Apache 2.0.52 Tomcat 5.5.4

2004-11-17 Thread Peter O'Reilly
To all,

 I can browse my website, www.123.com, but when I click a button the servlet I 
need to execute doesn't and I get a Apache error.  I know its a connector issue 
because I can browse www.123.com:8080/mydir and get to the site, click the 
button, and the servlet does what it's supposed.

Can someone outline the steps and file I need to configure?  I've read the 
documents and can't get this to work...

Thanks for the help.

Jim

__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp

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



wrong time in Java Applications to my location (new Date())

2004-11-17 Thread Acácio Furtado Costa
Hi  everybody

 

We have a Tom Cat application Server 5.0.19 running in a Windows 
2003 with a Sun JDK 1.4.2.

We are having problems with  time of our Applications . The time is 
correct under SO but we have 3 hours of difference in the applications (+3).

 

Our offset time is Brasilia -3:00 in the Windows 2003 and Regional settings is 
Portuguese, Brazil.

 

The method TO GET SYSTEM TIME is new Date()

 

Any suggestion, How we setup server parameters or application (JVM) parameters 
to solve this problem?

 

Thanks a lot in advance

 

Acacio Furtado Costa
Pesquisa e Tecnologia

GIA - Magnesita S/A
*(0xx31) 3368-1349
*  [EMAIL PROTECTED]

 



Re: Bad Expires Code?

2004-11-17 Thread Squashua
Figured it out.  When setting ExpiresActive, need to set ExpiresDefault as 
well. 

Thanks. 

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


Re: Tomcat 5.X always creates session for every request?

2004-11-17 Thread sven morales
  You may want to check how your browser interprets
the encoded URL. Compare what has been sent to the
browser and what went back towards Tomcat.  I was
assisting another person the other day and we found
out that the cookie is mangled, the ~ was not
urlencoded to %7.. something. I am not saying thats
the cause, just check and see if you can observe such
characteristics.  You can enable RequestDumperValve to
see these.

--- Tim Funk [EMAIL PROTECTED] wrote:

 By default JSP's need to be told to *not* ask for a
 session via
 [EMAIL PROTECTED] session='false'%
 
 Otherwise - it sounds like a cookie setting issue
 that the client isn't 
 remembering the sessionid.
 
 -Tim
 
 LAM Kwun Wa Joseph wrote:
 
  I have implemented a simple HttpSessionListener
 dumping every new session
  created. I found that my Tomcat (tried on 5.0.2x
 and 5.5.4) will always
  create a new session for every HTTP request, even
 if the JSP page doesn't
  request for session and the HTTP client doesn't
 use cookie nor post any
  session ID (e.g. direct telnet to port 80).
  
  Are there any config params that relate to this?
 Thanks!
   
 

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


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

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



Apache Tomcat production deployment: yr opinion reqd

2004-11-17 Thread Vijay

Hello everyone -

We would like to evaluate Apache/Tomcat as a
production-quality deployment for our organization's
retail operations. I would appreciate if someone could
comment / provide expert opinion on the following:

a) Is Apache web server/Tomcat a proven production
option for large-scale deployments (we are looking at
about 1000 users served by a single instance of
Apache/Tomcat3.x on an AS/400 box]. Now, this might
sound silly but we would be extremely happy if someone
can allay our concerns :)

b) I believe the default configuration settings for
Apache/Tomcat are usuallly appropriate for a
medim-sized deployment. Is there any
document/web-site/ list mail archive that can guide me
on how to arrive at optimum configuration settings?
Any information on what  to look out for when
configuring for medium to large deployments would be
of immense help.

c) Are there any performance improvements that I can
expect if i upgrade to Tomcat 4.x? 

Thanks in advance for yr help! 

best regards
vijay

=
---
The human mind is too precious to be wasted or imprisoned.
   - Anonymous
---

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

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



RE: tomcat/apace

2004-11-17 Thread Steven Lister
Thanks for the help and information.

BTW I always try and schedule site downtime from 9am - 12pm .. much better then 
those annoying 3am jobers.  ;)


- Original Message - 
From: Didier McGillis 
To: [EMAIL PROTECTED] 
Subject: RE: tomcat/apace 
Date: Wed, 17 Nov 2004 16:03:18 + 

 
 I did some testing a couple of weeks ago, with apache started and shut down 
 two of the four tomcat environments that I have running and I was able to 
 access them, so I dont think that order matters as it once did. 
 
 Steve, you can test as well even if you have only one environment, of course 
 as long as its not the production environment :) 
 
 From: Phillip Qin 
 Reply-To: Tomcat Users List 
 To: 'Tomcat Users List' 
 Subject: RE: tomcat/apace 
 Date: Wed, 17 Nov 2004 10:25:05 -0500 
  
 Ypav, correct me if I were wrong - order doesn't matter. 
  
 -Original Message- 
 From: Steven Lister [mailto:[EMAIL PROTECTED] 
 Sent: November 17, 2004 9:43 AM 
 To: Tomcat Users List 
 Subject: RE: tomcat/apace 
  
  
 So just as long as apache is started tomcat should find it 
  
 - Original Message - 
 From: Phillip Qin 
 To: 'Tomcat Users List' 
 Subject: RE: tomcat/apace 
 Date: Wed, 17 Nov 2004 09:37:28 -0500 
  
   
   Not true in tc5. 
   
   -Original Message- 
   From: Steven Lister [mailto:[EMAIL PROTECTED] 
   Sent: November 17, 2004 9:33 AM 
   To: Tomcat Users List 
   Subject: tomcat/apace 
   
   
   Just a quick question. Does apache2 need to be 
   restarted if connected using mod_jk2 to tomcat5? 
   I know that I was told that under 4.1 tomcat mod_jk and 
   tomcat 4 you had to do it in x order, is that still true. 
   -- 
   ___ 
   Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm 
   
   
   - 
   To unsubscribe, e-mail: [EMAIL PROTECTED] 
   For additional commands, e-mail: [EMAIL PROTECTED] 
   
   
   
   
 -- 
 ___ 
 Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm 
  
  
 - 
 To unsubscribe, e-mail: [EMAIL PROTECTED] 
 For additional commands, e-mail: [EMAIL PROTECTED] 
  
  
 !DSPAM:419b63b8315661278313514! 
 
 
 
 - 
 To unsubscribe, e-mail: [EMAIL PROTECTED] 
 For additional commands, e-mail: [EMAIL PROTECTED] 
 
 
-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


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



RE: Apache Tomcat production deployment: yr opinion reqd

2004-11-17 Thread Shapira, Yoav

Hi,
It's kind of funny how you spelled our the first four long words in the
subject, but then yr for your ;)

a) Is Apache web server/Tomcat a proven production
option for large-scale deployments (we are looking at
about 1000 users served by a single instance of
Apache/Tomcat3.x on an AS/400 box]. Now, this might
sound silly but we would be extremely happy if someone
can allay our concerns :)

Yes, Apache/Tomcat is a proven production options for deployments much
larger than yours.  There are commercial sites serving millions of hits
per day easily.  However, I believe they use mostly Tomcat 4.x and 5.x.
For Tomcat 3.x, I'm not an expert and don't know.

b) I believe the default configuration settings for
Apache/Tomcat are usuallly appropriate for a
medim-sized deployment.

Whatever you based that belief on, consider it carefully.

document/web-site/ list mail archive that can guide me
on how to arrive at optimum configuration settings?

Search these archives.  Look at the Tomcat and Apache configuration
references.  And most importantly, test your specific app against its
expected load.  No one else can do that work for you, and there are no
magic settings that will just work.

c) Are there any performance improvements that I can
expect if i upgrade to Tomcat 4.x?

Yes.  And even more for 5.x.

Yoav



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


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



Tomcat 5.5 nightly zip files?

2004-11-17 Thread Jonathan Eric Miller
Anyone know if there are nightly zip files for Tomcat 5.5?
Jon
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Apache Tomcat production deployment: yr opinion reqd

2004-11-17 Thread Didier McGillis
Comments below.
From: Vijay [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Apache Tomcat production deployment: yr opinion reqd
Date: Wed, 17 Nov 2004 08:28:37 -0800 (PST)
Hello everyone -
We would like to evaluate Apache/Tomcat as a
production-quality deployment for our organization's
retail operations. I would appreciate if someone could
comment / provide expert opinion on the following:
a) Is Apache web server/Tomcat a proven production
option for large-scale deployments (we are looking at
about 1000 users served by a single instance of
Apache/Tomcat3.x on an AS/400 box]. Now, this might
sound silly but we would be extremely happy if someone
can allay our concerns :)
Alot will depend on the configuration of the as/400 and the code you are 
using.  What is the number of estimated concurrent users?

b) I believe the default configuration settings for
Apache/Tomcat are usuallly appropriate for a
medim-sized deployment. Is there any
document/web-site/ list mail archive that can guide me
on how to arrive at optimum configuration settings?
Any information on what  to look out for when
configuring for medium to large deployments would be
of immense help.
You can google for most tidbits and information, if you have a specific 
question the archives of this list are a good resouce, also there are 
numerous books on the subject, (which there are several lists of them if you 
serach the archive).  I would however offer one caveat settings, 
configurations and JVM/application optimizations are like finger prints, and 
so you can get ideas, but your going to have to see through trial and error 
what works for your specific application/hardware/software.

c) Are there any performance improvements that I can
expect if i upgrade to Tomcat 4.x?

Tons ;)
Thanks in advance for yr help!
best regards
vijay
=
---
The human mind is too precious to be wasted or imprisoned.
   - Anonymous
---
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


RE: Tomcat 5.5 nightly zip files?

2004-11-17 Thread Shapira, Yoav

Hi,
The Jakarta binaries download page even gives you the link at the bottom
;) http://cvs.apache.org/builds/jakarta-tomcat-5/nightly/.

Nightlies are always at your own risk.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 11:38 AM
To: Tomcat User List
Subject: Tomcat 5.5 nightly zip files?

Anyone know if there are nightly zip files for Tomcat 5.5?

Jon


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




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


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



OFF TOPIC String to char type

2004-11-17 Thread phil campaigne
 I am storing a flag in the database as type char, but it is set from a 
web page request object as a string. I need to convert it from type 
String to char in java. I tried String.charAt(0) which seems to convert 
to a char type untill I assign it to a variable of type char:
char processed = processed_string.charAt(0);
when I execute this I get the error message: type undefined.

Any ideas what I am doing wrong?
Thanks in advance,
Phil
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Server Component....What IP does the shutdown service listen to?

2004-11-17 Thread Troy Simpson
mks,
I did not know about the -n switch.  Thanks, that is helpful to know.
Mostly I did not trust myself and just wanted to confirm what I was 
understand because I did not see it explicitly in the docs.

Thanks all,
Troy
Markus Schönhaber wrote:
Troy Simpson wrote:
OS: Sun Solaris 8
Tomcat: 5.5.4
Documentation: 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/server.html

According to the documentation, the server component has attributes 
for className, port, and shutdown, but not bindIPAddress.  What IP 
address is the server listening to for the shutdown command?

If my server.xml file contains this:
Server port=8005 shutdown=SHUTDOWN debug=0.../Server
...is the server waiting for the shutdown command, SHUTDOWN, on 
127.0.0.1:8005?
or
...is the server waiting for the shutdown command, SHUTDOWN, on 
*:8005 (All IP addresses assigned to the server)?

I run netstat -a and I get the following for port 8005:
  Local Address Remote Address State
  ---
localhost.8005 *.*0  0 24576  0 
LISTEN

I'm not much of a sysadmin, but this suggest that something (tomcat) 
is listening for the shutdown command on 127.0.0.1:8005.
Am I correct?

Yes. As
netstat -an
should have told you (or doesn't Solaris' netstat understand the -n 
switch?).

Regards
mks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Troy Simpson
 Applications Analyst/Programmer, OCPDBA, MCSE, SCSA
North Carolina State University Libraries
Campus Box 7111 | Raleigh | North Carolina
ph.919.515.3855 | fax.919.513.3330
E-mail: [EMAIL PROTECTED]

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


Re: Tomcat 5.X always creates session for every request?

2004-11-17 Thread Peter O'Reilly
TEST POST,

SORRY


sven morales [EMAIL PROTECTED] wrote:

  You may want to check how your browser interprets
the encoded URL. Compare what has been sent to the
browser and what went back towards Tomcat.  I was
assisting another person the other day and we found
out that the cookie is mangled, the ~ was not
urlencoded to %7.. something. I am not saying thats
the cause, just check and see if you can observe such
characteristics.  You can enable RequestDumperValve to
see these.

--- Tim Funk [EMAIL PROTECTED] wrote:

 By default JSP's need to be told to *not* ask for a
 session via
 [EMAIL PROTECTED] session='false'%
 
 Otherwise - it sounds like a cookie setting issue
 that the client isn't 
 remembering the sessionid.
 
 -Tim
 
 LAM Kwun Wa Joseph wrote:
 
  I have implemented a simple HttpSessionListener
 dumping every new session
  created. I found that my Tomcat (tried on 5.0.2x
 and 5.5.4) will always
  create a new session for every HTTP request, even
 if the JSP page doesn't
  request for session and the HTTP client doesn't
 use cookie nor post any
  session ID (e.g. direct telnet to port 80).
  
  Are there any config params that relate to this?
 Thanks!
   
 

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


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

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



__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp

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



Re: Problem clustering tomcat when a failed server is restarting

2004-11-17 Thread Filip Hanik - Dev
What version of tomcat?

It fails when it tries to write the principal information to the stream.
Since I don't know what version of tomcat you are using, I can't tell you 
exactly what went wrong.

maybe something in the principal returns null

Filip



- Original Message - 
From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 4:41 AM
Subject: Problem clustering tomcat when a failed server is restarting


We have a cluster Tomcat composed of two servers (default configuration of
the cluster is used).

When the first server is stopped, the cluster continues to work fine
(requests are handled by the server that is running).

But when the stopped server is restarting we can see these exceptions.

 

Could you comment this log and explain us what is wrong. Thanks.

 

The server that handle the requests log this exception

Server 02

   10 nov. 2004 17:13:54 org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded

INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://w.x.y.z:41001,w.x.
y.z,41001, alive=35]

10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager
messageReceived

GRAVE: Unable to receive message through TCP channel

java.lang.NullPointerException

at
java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(ObjectOutputSt
ream.java:1898)

at
java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream
.java:1769)

at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:787)

at
org.apache.catalina.cluster.session.SerializablePrincipal.writePrincipal(Ser
ializablePrincipal.java:180)

at
org.apache.catalina.cluster.session.DeltaSession.writeObject(DeltaSession.ja
va:1457)

at
org.apache.catalina.cluster.session.DeltaSession.writeObjectData(DeltaSessio
n.java:930)

at
org.apache.catalina.cluster.session.DeltaManager.doUnload(DeltaManager.java:
539)

at
org.apache.catalina.cluster.session.DeltaManager.messageReceived(DeltaManage
r.java:854)

at
org.apache.catalina.cluster.session.DeltaManager.messageDataReceived(DeltaMa
nager.java:762)

at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(SimpleT
cpCluster.java:576)

at
org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:70)

at
org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplica
tionThread.java:129)

at
org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThrea
d.java:67)

 

In the same time the server restarting logs this information.

server 01

Creating ClusterManager for context /myapp using class
org.apache.catalina.cluster.session.DeltaManager

10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager start

INFO: Starting clustering manager...:/myapp

10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager start

ATTENTION: Manager[/myapp], requesting session state from
org.apache.catalina.cluster.mcast.McastMember[tcp://w.x.y.z:42001,w.x.y.z,42
001, alive=111640]. This operation will timeout if no session state has been
received within 60 seconds

 

 

After a delay, server 01 logs this information.

10 nov. 2004 17:14:54 org.apache.catalina.cluster.session.DeltaManager start

GRAVE: Manager[/myapp], No session state received, timing out.

10 nov. 2004 17:14:54 org.apache.catalina.core.StandardHostDeployer install

INFO: Installation d'une application pour le chemin de contexte  depuis
l'URL file:/opt/tomcat-tst01/webapps/ROOT

...

INFO: Server startup in 62980 ms

 

server 01 handle the application requests, new session is created.

 

 

 

 

 



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



Re: Tomcat crashing

2004-11-17 Thread Steven J. Owens
On Wed, Nov 17, 2004 at 08:30:14AM -0500, Shapira, Yoav wrote:
 This exception is first of all not fatal, and secondly usually indicates
 a client closed the browser (and therefore the output sink, from
 Tomcat's perspective) while Tomcat is still writing output to it.  You
 can STFA for more details if you'd like.

 On a related note, I've run into some really tricky situations
where client was hitting the tomcat server via a proxy server.  The
client timeout was set shorter than the proxy server timeout, which
resulted in a mysterious situation where both sides had contradictory
errors:

client asks proxy server for page
 proxy server asks tomcat for page
client gives up, doesn't tell proxy server
 proxy server finally gets a response
 proxy server starts to write back to client, notices connection is closed
 proxy server closes connection to tomcat

 The result is a timeout error at the client, and a connection
reset exception in the tomcat log.

-- 
Steven J. Owens
[EMAIL PROTECTED]

I'm going to make broad, sweeping generalizations and strong,
 declarative statements, because otherwise I'll be here all night and
 this document will be four times longer and much less fun to read.
 Take it all with a grain of salt. - http://darksleep.com/notablog


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



Re: Understanding origin of Unexpected exception ... outside the VM

2004-11-17 Thread Steven J. Owens
On Wed, Nov 17, 2004 at 05:54:58AM -0600, QM wrote:
 On Wed, Nov 17, 2004 at 09:26:32AM +0100, Chris Kaido wrote:
 : I'm running solaris on Sparc hardware.
 : How could I verify the validity of my RAM without ... changing it :) ?
 
 Ehh, this may be a Google. ;)  I'm pretty sure there are some Solaris
 memory test tools out there.
 
 As far as testing the memory itself, there's no way (AFAIK) to exercise
 individual chips unless you open the box and shuffle them in/out
 yourself.
 
 If you have a Sun support contract, now's the time to put it to use. ;)

 You might find this mailing list and/or its archives useful:

http://isp-lists.isp-planet.com/isp-solaris/

-- 
Steven J. Owens
[EMAIL PROTECTED]

I'm going to make broad, sweeping generalizations and strong,
 declarative statements, because otherwise I'll be here all night and
 this document will be four times longer and much less fun to read.
 Take it all with a grain of salt. - http://darksleep.com/notablog


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



Re: Tomcat crashing

2004-11-17 Thread Peter O'Reilly
Where are my responses going?

TESTING


Steven J. Owens [EMAIL PROTECTED] wrote:

On Wed, Nov 17, 2004 at 08:30:14AM -0500, Shapira, Yoav wrote:
 This exception is first of all not fatal, and secondly usually indicates
 a client closed the browser (and therefore the output sink, from
 Tomcat's perspective) while Tomcat is still writing output to it.  You
 can STFA for more details if you'd like.

 On a related note, I've run into some really tricky situations
where client was hitting the tomcat server via a proxy server.  The
client timeout was set shorter than the proxy server timeout, which
resulted in a mysterious situation where both sides had contradictory
errors:

client asks proxy server for page
 proxy server asks tomcat for page
client gives up, doesn't tell proxy server
 proxy server finally gets a response
 proxy server starts to write back to client, notices connection is closed
 proxy server closes connection to tomcat

 The result is a timeout error at the client, and a connection
reset exception in the tomcat log.

-- 
Steven J. Owens
[EMAIL PROTECTED]

I'm going to make broad, sweeping generalizations and strong,
 declarative statements, because otherwise I'll be here all night and
 this document will be four times longer and much less fun to read.
 Take it all with a grain of salt. - http://darksleep.com/notablog


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



__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp

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



Q: valve versus filter

2004-11-17 Thread David Boyer
We're using IIS 6 with the JK2 ISAPI filter (Tomcat 5.0.28).

 
I have several filters that I'm using on almost every context in
production: an authentication filter, an access-control filter, and a
compression filter. I'd be interested in implementing these things at a
more global level rather than on a per-context level.
 
Would valves be the way to do this? I recognize that valves come into
the picture at an earlier point in the chain. I'd be interested in
hearing how other people might approach filters that are being applied
on all contexts.
 
Thanks!


RE: valve versus filter

2004-11-17 Thread Shapira, Yoav

Hi,
Valves have the advantage that you can define them (once) for an entire
Host, so they apply to all the applications on the Host.  However, they
are Tomcat-specific, unlike Filters, so their portability is limited.

The Servlet Spec provides for no way to define a Filter for multiple web
apps.  So any way you choose to proceed will be non-Portable.
Therefore, you might as well stick with your current setup.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: David Boyer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 12:49 PM
To: [EMAIL PROTECTED]
Subject: Q: valve versus filter

We're using IIS 6 with the JK2 ISAPI filter (Tomcat 5.0.28).


I have several filters that I'm using on almost every context in
production: an authentication filter, an access-control filter, and a
compression filter. I'd be interested in implementing these things at a
more global level rather than on a per-context level.

Would valves be the way to do this? I recognize that valves come into
the picture at an earlier point in the chain. I'd be interested in
hearing how other people might approach filters that are being applied
on all contexts.

Thanks!



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


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



Re: valve versus filter

2004-11-17 Thread Filip Hanik - Dev
filter = portable standard
valve = tomcat specific
- Original Message - 
From: David Boyer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 11:48 AM
Subject: Q: valve versus filter


We're using IIS 6 with the JK2 ISAPI filter (Tomcat 5.0.28).

 
I have several filters that I'm using on almost every context in
production: an authentication filter, an access-control filter, and a
compression filter. I'd be interested in implementing these things at a
more global level rather than on a per-context level.
 
Would valves be the way to do this? I recognize that valves come into
the picture at an earlier point in the chain. I'd be interested in
hearing how other people might approach filters that are being applied
on all contexts.
 
Thanks!


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



RE: Tomcat 5.5.4 dont see Servlets in my app

2004-11-17 Thread José Luis
Thnx all
i create new web project with web sphere, and use standard directory
structure and now runs fine.

-Mensaje original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 17 de noviembre de 2004 15:22
Para: Tomcat Users List
Asunto: RE: Tomcat 5.5.4 dont see Servlets in my app



Hi,
Javax.servlet classes under WEB-INF didn't work in 4.x, 5.0, and won't work
in 5.5.  Drop those.  Stick to a standard webapp structure anyways (which
yours is very close to, except for javax and site I).

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: José Luis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 8:42 AM
To: Tomcat Users List; Remy Maucherat
Subject: RE: Tomcat 5.5.4 dont see Servlets in my app

Hi,
   perhaps the problem is my application structure. I show us it:

portal + --- JSP --- ...
|
|
+ --- WEB-INF --- + --- classes --- + --- nucleo
|
+ --- javax
|
+ --- com
|
+ --- (package i)
|
+ --- (site i)

- nucleo is the package who have servlets of application.
- javax are the servlet classes.
- com are the the jdb classes of microsoft for db connection.
- (package i) is one of my own utilities classes packed.
- (site i) are clases of one of my sites.

Well, i use WebSphere to compile all and then copy .class in this
structure.
could the web sphere compilation be the problem in tomcat 5.5.4?
This method works fine in tomcat 4.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004


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




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


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004


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



RE : Problem clustering tomcat when a failed server is restarting

2004-11-17 Thread LERBSCHER Jean-Pierre
We are using Tomcat 5.0.27.

-Message d'origine-
De : Filip Hanik - Dev [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 17 novembre 2004 18:27
À : Tomcat Users List
Objet : Re: Problem clustering tomcat when a failed server is restarting

What version of tomcat?

It fails when it tries to write the principal information to the stream.
Since I don't know what version of tomcat you are using, I can't tell you
exactly what went wrong.

maybe something in the principal returns null

Filip



- Original Message - 
From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 4:41 AM
Subject: Problem clustering tomcat when a failed server is restarting


We have a cluster Tomcat composed of two servers (default configuration of
the cluster is used).

When the first server is stopped, the cluster continues to work fine
(requests are handled by the server that is running).

But when the stopped server is restarting we can see these exceptions.

 

Could you comment this log and explain us what is wrong. Thanks.

 

The server that handle the requests log this exception

Server 02

   10 nov. 2004 17:13:54 org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded

INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://w.x.y.z:41001,w.x.
y.z,41001, alive=35]

10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager
messageReceived

GRAVE: Unable to receive message through TCP channel

java.lang.NullPointerException

at
java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(ObjectOutputSt
ream.java:1898)

at
java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream
.java:1769)

at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:787)

at
org.apache.catalina.cluster.session.SerializablePrincipal.writePrincipal(Ser
ializablePrincipal.java:180)

at
org.apache.catalina.cluster.session.DeltaSession.writeObject(DeltaSession.ja
va:1457)

at
org.apache.catalina.cluster.session.DeltaSession.writeObjectData(DeltaSessio
n.java:930)

at
org.apache.catalina.cluster.session.DeltaManager.doUnload(DeltaManager.java:
539)

at
org.apache.catalina.cluster.session.DeltaManager.messageReceived(DeltaManage
r.java:854)

at
org.apache.catalina.cluster.session.DeltaManager.messageDataReceived(DeltaMa
nager.java:762)

at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(SimpleT
cpCluster.java:576)

at
org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:70)

at
org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplica
tionThread.java:129)

at
org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThrea
d.java:67)

 

In the same time the server restarting logs this information.

server 01

Creating ClusterManager for context /myapp using class
org.apache.catalina.cluster.session.DeltaManager

10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager start

INFO: Starting clustering manager...:/myapp

10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager start

ATTENTION: Manager[/myapp], requesting session state from
org.apache.catalina.cluster.mcast.McastMember[tcp://w.x.y.z:42001,w.x.y.z,42
001, alive=111640]. This operation will timeout if no session state has been
received within 60 seconds

 

 

After a delay, server 01 logs this information.

10 nov. 2004 17:14:54 org.apache.catalina.cluster.session.DeltaManager start

GRAVE: Manager[/myapp], No session state received, timing out.

10 nov. 2004 17:14:54 org.apache.catalina.core.StandardHostDeployer install

INFO: Installation d'une application pour le chemin de contexte  depuis
l'URL file:/opt/tomcat-tst01/webapps/ROOT

...

INFO: Server startup in 62980 ms

 

server 01 handle the application requests, new session is created.

 

 

 

 

 



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

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



Re: Tomcat 5.5 nightly zip files?

2004-11-17 Thread Jonathan Eric Miller
Thanks, I saw those, but, I thought they were for 5.0. So, they're for 5.5?
Jon
- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 10:40 AM
Subject: RE: Tomcat 5.5 nightly zip files?


Hi,
The Jakarta binaries download page even gives you the link at the bottom
;) http://cvs.apache.org/builds/jakarta-tomcat-5/nightly/.
Nightlies are always at your own risk.
Yoav Shapira http://www.yoavshapira.com

-Original Message-
From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 11:38 AM
To: Tomcat User List
Subject: Tomcat 5.5 nightly zip files?
Anyone know if there are nightly zip files for Tomcat 5.5?
Jon
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

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


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


RE: Tomcat 5.5 nightly zip files?

2004-11-17 Thread Shapira, Yoav

Hi,
Yeah.  They're built from CVS HEAD (there's very little purpose to
nightlies otherwise) so they're 5.5.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 1:07 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.5 nightly zip files?

Thanks, I saw those, but, I thought they were for 5.0. So, they're for
5.5?

Jon

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 10:40 AM
Subject: RE: Tomcat 5.5 nightly zip files?



 Hi,
 The Jakarta binaries download page even gives you the link at the
bottom
 ;) http://cvs.apache.org/builds/jakarta-tomcat-5/nightly/.

 Nightlies are always at your own risk.

 Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 11:38 AM
To: Tomcat User List
Subject: Tomcat 5.5 nightly zip files?

Anyone know if there are nightly zip files for Tomcat 5.5?

Jon


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




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


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




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




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


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



Re: Problem clustering tomcat when a failed server is restarting

2004-11-17 Thread Filip Hanik - Dev
the GenericPrincipal.getPassword() returns null

that is why you get this error, you can open a bugzilla report so that we can 
track it

Filip
- Original Message -
From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 11:55 AM
Subject: RE : Problem clustering tomcat when a failed server is restarting


We are using Tomcat 5.0.27.

-Message d'origine-
De : Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 17 novembre 2004 18:27
À : Tomcat Users List
Objet : Re: Problem clustering tomcat when a failed server is restarting

What version of tomcat?

It fails when it tries to write the principal information to the stream.
Since I don't know what version of tomcat you are using, I can't tell you
exactly what went wrong.

maybe something in the principal returns null

Filip



- Original Message -
From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 4:41 AM
Subject: Problem clustering tomcat when a failed server is restarting


We have a cluster Tomcat composed of two servers (default configuration of
the cluster is used).

When the first server is stopped, the cluster continues to work fine
(requests are handled by the server that is running).

But when the stopped server is restarting we can see these exceptions.



Could you comment this log and explain us what is wrong. Thanks.



The server that handle the requests log this exception

Server 02

   10 nov. 2004 17:13:54 org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded

INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://w.x.y.z:41001,w.x.
y.z,41001, alive=35]

10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager
messageReceived

GRAVE: Unable to receive message through TCP channel

java.lang.NullPointerException

at
java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(ObjectOutputSt
ream.java:1898)

at
java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream
.java:1769)

at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:787)

at
org.apache.catalina.cluster.session.SerializablePrincipal.writePrincipal(Ser
ializablePrincipal.java:180)

at
org.apache.catalina.cluster.session.DeltaSession.writeObject(DeltaSession.ja
va:1457)

at
org.apache.catalina.cluster.session.DeltaSession.writeObjectData(DeltaSessio
n.java:930)

at
org.apache.catalina.cluster.session.DeltaManager.doUnload(DeltaManager.java:
539)

at
org.apache.catalina.cluster.session.DeltaManager.messageReceived(DeltaManage
r.java:854)

at
org.apache.catalina.cluster.session.DeltaManager.messageDataReceived(DeltaMa
nager.java:762)

at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(SimpleT
cpCluster.java:576)

at
org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:70)

at
org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplica
tionThread.java:129)

at
org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThrea
d.java:67)



In the same time the server restarting logs this information.

server 01

Creating ClusterManager for context /myapp using class
org.apache.catalina.cluster.session.DeltaManager

10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager start

INFO: Starting clustering manager...:/myapp

10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager start

ATTENTION: Manager[/myapp], requesting session state from
org.apache.catalina.cluster.mcast.McastMember[tcp://w.x.y.z:42001,w.x.y.z,42
001, alive=111640]. This operation will timeout if no session state has been
received within 60 seconds





After a delay, server 01 logs this information.

10 nov. 2004 17:14:54 org.apache.catalina.cluster.session.DeltaManager start

GRAVE: Manager[/myapp], No session state received, timing out.

10 nov. 2004 17:14:54 org.apache.catalina.core.StandardHostDeployer install

INFO: Installation d'une application pour le chemin de contexte  depuis
l'URL file:/opt/tomcat-tst01/webapps/ROOT

...

INFO: Server startup in 62980 ms



server 01 handle the application requests, new session is created.













-
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: Tomcat crashing

2004-11-17 Thread Steven J. Owens
 On Wed, Nov 17, 2004 at 08:30:14AM -0500, Shapira, Yoav wrote:
  This exception is first of all not fatal, and secondly usually indicates
  a client closed the browser (and therefore the output sink, from
  Tomcat's perspective) while Tomcat is still writing output to it.  You
  can STFA for more details if you'd like.

Steven J. Owens [EMAIL PROTECTED] wrote:
  On a related note, I've run into some really tricky situations
 where client was hitting the tomcat server via a proxy server.  The
 client timeout was set shorter than the proxy server timeout, which
 resulted in a mysterious situation where both sides had contradictory
 errors: [...]
  The result is a timeout error at the client, and a connection
 reset exception in the tomcat log.

On Wed, Nov 17, 2004 at 12:36:11PM -0500, Peter O'Reilly wrote:
 Where are my responses going?

 Nowhere, it gets discarded.  

 First, it's not _certain_ that what I described above is
happening to your app.  Just a possibility you should bear in mind
while investigating (it took me several days of frutration to figure
out that was what was going on in my case).

 Second, what's happening in general here is that when the client
closes the connection, there's no way for it to proactively notify the
tomcat server about that fact.  All it does is close *its* side (the
client machine's side) of the connection.  Tomcat won't notice that
the connection closed until it tries to send some packets back on it.
At that point, tomcat will see the connection is closed and throw a
connection-reset-by-peer exception.  This exception interrupts the
servlet or jsp code, and the data that *was* going to be sent back to
the client gets discarded.

-- 
Steven J. Owens
[EMAIL PROTECTED]

I'm going to make broad, sweeping generalizations and strong,
 declarative statements, because otherwise I'll be here all night and
 this document will be four times longer and much less fun to read.
 Take it all with a grain of salt. - http://darksleep.com/notablog


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



Re: Tomcat 5.5 nightly zip files?

2004-11-17 Thread Jonathan Eric Miller
Thanks!
Jon
- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 12:07 PM
Subject: RE: Tomcat 5.5 nightly zip files?


Hi,
Yeah.  They're built from CVS HEAD (there's very little purpose to
nightlies otherwise) so they're 5.5.
Yoav Shapira http://www.yoavshapira.com

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


RE : Problem clustering tomcat when a failed server is restarting

2004-11-17 Thread LERBSCHER Jean-Pierre
Could you give me a link to open bugzilla report?
Or more recent versions of Tomcat can they correct this problem ?

-Message d'origine-
De : Filip Hanik - Dev [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 17 novembre 2004 19:10
À : Tomcat Users List
Objet : Re: Problem clustering tomcat when a failed server is restarting

the GenericPrincipal.getPassword() returns null

that is why you get this error, you can open a bugzilla report so that we
can track it

Filip
- Original Message -
From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 11:55 AM
Subject: RE : Problem clustering tomcat when a failed server is restarting


We are using Tomcat 5.0.27.

-Message d'origine-
De : Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 17 novembre 2004 18:27
À : Tomcat Users List
Objet : Re: Problem clustering tomcat when a failed server is restarting

What version of tomcat?

It fails when it tries to write the principal information to the stream.
Since I don't know what version of tomcat you are using, I can't tell you
exactly what went wrong.

maybe something in the principal returns null

Filip



- Original Message -
From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 4:41 AM
Subject: Problem clustering tomcat when a failed server is restarting


We have a cluster Tomcat composed of two servers (default configuration of
the cluster is used).

When the first server is stopped, the cluster continues to work fine
(requests are handled by the server that is running).

But when the stopped server is restarting we can see these exceptions.



Could you comment this log and explain us what is wrong. Thanks.



The server that handle the requests log this exception

Server 02

   10 nov. 2004 17:13:54 org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded

INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://w.x.y.z:41001,w.x.
y.z,41001, alive=35]

10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager
messageReceived

GRAVE: Unable to receive message through TCP channel

java.lang.NullPointerException

at
java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(ObjectOutputSt
ream.java:1898)

at
java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream
.java:1769)

at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:787)

at
org.apache.catalina.cluster.session.SerializablePrincipal.writePrincipal(Ser
ializablePrincipal.java:180)

at
org.apache.catalina.cluster.session.DeltaSession.writeObject(DeltaSession.ja
va:1457)

at
org.apache.catalina.cluster.session.DeltaSession.writeObjectData(DeltaSessio
n.java:930)

at
org.apache.catalina.cluster.session.DeltaManager.doUnload(DeltaManager.java:
539)

at
org.apache.catalina.cluster.session.DeltaManager.messageReceived(DeltaManage
r.java:854)

at
org.apache.catalina.cluster.session.DeltaManager.messageDataReceived(DeltaMa
nager.java:762)

at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(SimpleT
cpCluster.java:576)

at
org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:70)

at
org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplica
tionThread.java:129)

at
org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThrea
d.java:67)



In the same time the server restarting logs this information.

server 01

Creating ClusterManager for context /myapp using class
org.apache.catalina.cluster.session.DeltaManager

10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager start

INFO: Starting clustering manager...:/myapp

10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager start

ATTENTION: Manager[/myapp], requesting session state from
org.apache.catalina.cluster.mcast.McastMember[tcp://w.x.y.z:42001,w.x.y.z,42
001, alive=111640]. This operation will timeout if no session state has been
received within 60 seconds





After a delay, server 01 logs this information.

10 nov. 2004 17:14:54 org.apache.catalina.cluster.session.DeltaManager start

GRAVE: Manager[/myapp], No session state received, timing out.

10 nov. 2004 17:14:54 org.apache.catalina.core.StandardHostDeployer install

INFO: Installation d'une application pour le chemin de contexte  depuis
l'URL file:/opt/tomcat-tst01/webapps/ROOT

...

INFO: Server startup in 62980 ms



server 01 handle the application requests, new session is created.













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

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

Re: Problem clustering tomcat when a failed server is restarting

2004-11-17 Thread Filip Hanik - Dev
http://issues.eu.apache.org/bugzilla/


- Original Message -
From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 12:15 PM
Subject: RE : Problem clustering tomcat when a failed server is restarting


Could you give me a link to open bugzilla report?
Or more recent versions of Tomcat can they correct this problem ?

-Message d'origine-
De : Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 17 novembre 2004 19:10
À : Tomcat Users List
Objet : Re: Problem clustering tomcat when a failed server is restarting

the GenericPrincipal.getPassword() returns null

that is why you get this error, you can open a bugzilla report so that we
can track it

Filip
- Original Message -
From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 11:55 AM
Subject: RE : Problem clustering tomcat when a failed server is restarting


We are using Tomcat 5.0.27.

-Message d'origine-
De : Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 17 novembre 2004 18:27
À : Tomcat Users List
Objet : Re: Problem clustering tomcat when a failed server is restarting

What version of tomcat?

It fails when it tries to write the principal information to the stream.
Since I don't know what version of tomcat you are using, I can't tell you
exactly what went wrong.

maybe something in the principal returns null

Filip



- Original Message -
From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 4:41 AM
Subject: Problem clustering tomcat when a failed server is restarting


We have a cluster Tomcat composed of two servers (default configuration of
the cluster is used).

When the first server is stopped, the cluster continues to work fine
(requests are handled by the server that is running).

But when the stopped server is restarting we can see these exceptions.



Could you comment this log and explain us what is wrong. Thanks.



The server that handle the requests log this exception

Server 02

   10 nov. 2004 17:13:54 org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded

INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://w.x.y.z:41001,w.x.
y.z,41001, alive=35]

10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager
messageReceived

GRAVE: Unable to receive message through TCP channel

java.lang.NullPointerException

at
java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(ObjectOutputSt
ream.java:1898)

at
java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream
.java:1769)

at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:787)

at
org.apache.catalina.cluster.session.SerializablePrincipal.writePrincipal(Ser
ializablePrincipal.java:180)

at
org.apache.catalina.cluster.session.DeltaSession.writeObject(DeltaSession.ja
va:1457)

at
org.apache.catalina.cluster.session.DeltaSession.writeObjectData(DeltaSessio
n.java:930)

at
org.apache.catalina.cluster.session.DeltaManager.doUnload(DeltaManager.java:
539)

at
org.apache.catalina.cluster.session.DeltaManager.messageReceived(DeltaManage
r.java:854)

at
org.apache.catalina.cluster.session.DeltaManager.messageDataReceived(DeltaMa
nager.java:762)

at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(SimpleT
cpCluster.java:576)

at
org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:70)

at
org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplica
tionThread.java:129)

at
org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThrea
d.java:67)



In the same time the server restarting logs this information.

server 01

Creating ClusterManager for context /myapp using class
org.apache.catalina.cluster.session.DeltaManager

10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager start

INFO: Starting clustering manager...:/myapp

10 nov. 2004 17:13:54 org.apache.catalina.cluster.session.DeltaManager start

ATTENTION: Manager[/myapp], requesting session state from
org.apache.catalina.cluster.mcast.McastMember[tcp://w.x.y.z:42001,w.x.y.z,42
001, alive=111640]. This operation will timeout if no session state has been
received within 60 seconds





After a delay, server 01 logs this information.

10 nov. 2004 17:14:54 org.apache.catalina.cluster.session.DeltaManager start

GRAVE: Manager[/myapp], No session state received, timing out.

10 nov. 2004 17:14:54 org.apache.catalina.core.StandardHostDeployer install

INFO: Installation d'une application pour le chemin de contexte  depuis
l'URL file:/opt/tomcat-tst01/webapps/ROOT

...

INFO: Server startup in 62980 ms



server 01 handle the application requests, new session is created.














Virtual Hosting Questions

2004-11-17 Thread Bill Winspur
I need to set up a few virtual hosts for a development project, and 
being new to Tomcat virtual hosts, have a couple of questions:
---
1. In development, the clients and tomcat will be on an intranet. I plan 
to use the hosts files of the client and tomcat boxes to map domain 
names to IP addresses, thereby preempting invocation of DNS, and thus 
exposure of our product-specific domain names to the Internet at-large, 
until the site is deployed publicly.

Question 1: Is this hosts-file approach feasible? Does tomcat care HOW 
domain names
are mapped to IP addresses?
--
The following fragment is extracted from conf/server.xml of the the 
tomcat distribution:

Host name=localhost debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false
   Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
 timestamp=true/
/Host
Question 2: Why is the host named localhost? From the documentation, I 
expected that only URL's of the form http://localhost:8080/... would be 
handled by this virtual host, but it seems to handle any URL's that map 
to the IP and port of the real host that tomcat serves.
---
Question 3: How would one configure a 'local' virtual host, i.e. a host 
visible only on the box that runs tomcat?
---
Thanks,
Bill

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


RE: Virtual Hosting Questions

2004-11-17 Thread Shapira, Yoav

Hi,

1. In development, the clients and tomcat will be on an intranet. I
plan
to use the hosts files of the client and tomcat boxes to map domain
names to IP addresses, thereby preempting invocation of DNS, and thus
exposure of our product-specific domain names to the Internet at-large,
until the site is deployed publicly.

Question 1: Is this hosts-file approach feasible? Does tomcat care HOW
domain names
are mapped to IP addresses?

It's more of a Java networking question that Tomcat question.  I'm not
sure how java's InetAddress class likes hosts files: my guess is they're
ignored.

Question 2: Why is the host named localhost? From the documentation, I

Localhost is just the default name.  You can substitute any string in
there, and have as many Hosts as you want inside the Engine, but the
Host name must be unique within the Engine.

expected that only URL's of the form http://localhost:8080/... would be
handled by this virtual host, but it seems to handle any URL's that map
to the IP and port of the real host that tomcat serves.

The name of the Host in server.xml is used primarily by Tomcat for
internal management.  It doesn't have that much to do with the host name
in the browser's URL.

Question 3: How would one configure a 'local' virtual host, i.e. a host
visible only on the box that runs tomcat?

That's not a Host configuration question.  It's a Connector
configuration issue.  What you would do is define an Engine with a
Connector that only listens on a specific IP address (that of the box
running Tomcat), and define your Host inside that Engine instead of the
default or open Engine.

Yoav



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


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



RE: Virtual Hosting Questions

2004-11-17 Thread Didier McGillis
I did something similar with mine.  I have a server on an intranet.  I have 
my host file setup with names that point to the same ip address.  apache is 
setup with virtual host, each virtual host represents a name (dev1, dev2, 
qa, stage) something like that.  worker2.properties file has those names 
defined seperatly, server.xml has those names in each host area (they are 
setup as seperate tomcat instances).

From: Bill Winspur [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Virtual Hosting Questions
Date: Wed, 17 Nov 2004 11:52:45 -0700
I need to set up a few virtual hosts for a development project, and being 
new to Tomcat virtual hosts, have a couple of questions:
---
1. In development, the clients and tomcat will be on an intranet. I plan to 
use the hosts files of the client and tomcat boxes to map domain names to 
IP addresses, thereby preempting invocation of DNS, and thus exposure of 
our product-specific domain names to the Internet at-large, until the site 
is deployed publicly.

Question 1: Is this hosts-file approach feasible? Does tomcat care HOW 
domain names
are mapped to IP addresses?
--
The following fragment is extracted from conf/server.xml of the the tomcat 
distribution:

Host name=localhost debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false
   Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
 timestamp=true/
/Host
Question 2: Why is the host named localhost? From the documentation, I 
expected that only URL's of the form http://localhost:8080/... would be 
handled by this virtual host, but it seems to handle any URL's that map to 
the IP and port of the real host that tomcat serves.
---
Question 3: How would one configure a 'local' virtual host, i.e. a host 
visible only on the box that runs tomcat?
---
Thanks,
Bill

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

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


RE: Tomcat JRE vs JDK Issue

2004-11-17 Thread George Sexton
One aside, the script (batch file) has an exit statement on the case where
the JDK is not detected. This results in a mysterious window closing which
causes a lot of hair pulling.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Remy Maucherat [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 16, 2004 9:04 AM
 To: Tomcat Users List
 Subject: Re: Tomcat JRE vs JDK Issue
 
 On Tue, 16 Nov 2004 10:46:38 -0500, Hubble, Christopher
 [EMAIL PROTECTED] wrote:
  How does one precompile the JSPs?  Then I should be able to 
 use TC with just
  a JRE, correct?  Once TC is deployed, there should not be 
 any need for
  changes to it, so it's fine to precompile the JSPs.
 
 Some JSP 2.0 features prevent precompilation, so, with Jasper, you
 cannot claim compliance without a Java compiler.
 
 So I can only recommend using TC 5.5 if you want to use a JRE. Note
 that the shell scripts will still complain about not having a JDK, as
 they have options which use JDK features. We have not decided what to
 do about that at the moment, but you can easily edit the script to
 bypass the check.
 
 -- 
 x
 Rémy Maucherat
 Developer  Consultant
 JBoss Group (Europe) SàRL
 x
 
 -
 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]



  1   2   >