Most strict / conservative setting for SimpleTcpCluster - channelSendOptions

2017-07-25 Thread Clemens Eisserer
Hi there,

What is the strictest / most conservative setting for
channelSendOptions when using SimpleTcpCluster for session replication
(synchronous + ack + ??) ?
I have a web-app where each request dependes on the session-state of
the previous one and unfortunatelyI have to deploy in an environment
where a round-robin load-balancer is used.

I had a look at the documentation (the examples online were not that
clear - in the docs it is only mentioned 8 is async, whereas 6 is
later used without any explanation), however to be honest I am not
sure which combination I actually require.

Thank you in advance, Clemens

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Class.forName doesn't find classes located in WEB-INF/lib

2011-06-06 Thread Clemens Eisserer
Hi,

I have a servlet which dynamically loads classes from jar-files
located in WEB-INF/lib/,
however tomcat somehow seems to ignore those jar-files.

in WEB-INF/lib/Notepad.jar there is a class Notepad.class (without any package),
however loading that class yields:

Loading Application Class: Notepad
java.lang.ClassNotFoundException: Notepad
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at net.java.openjdk.cacio.servlet.AppStarter.doGet(Unknown Source)


Any idea what could be the problem here?
Does tomcat use some kind of security manager which is blocking class-loading?

Thank you in advance, Clemens

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Class.forName doesn't find classes located in WEB-INF/lib

2011-06-06 Thread Clemens Eisserer
Hi Martin,

 3)webapp (everything found in WEB-INF/lib and WEB-INF/classes)

 you are using system classloader to loaf WEB-INF/lib jar
 use the webapp classloader

So according to this, the servlet as well as the classes from
WEB-INF/lib are loaded with the same classloader?
What I did in the servlet was basically: this.getClass().forName(Notepad);

I've now changed the code to (where this refers to the Servlet):
ClassLoader loader = this.getClass().getClassLoader();
Class cls = loader.loadClass(className);

However loader in this case is null, any idea what is going on?

Thank you in advance, Clemens




 ClassLoader webinf_loader=AClassInWebINFLib.getClass().getClassLoader();
 boolean initialize=true;
 static Class? clazz= java.lang.Class.forName(YourClassName,
 initialize,
 webinf_loader)


 Martin
 __
 Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
 Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
 Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
 dient lediglich dem Austausch von Informationen und entfaltet keine
 rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
 E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.

 Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
 destinataire prévu, nous te demandons avec bonté que pour satisfaire
 informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
 de ceci est interdite. Ce message sert à l'information seulement et n'aura
 pas n'importe quel effet légalement obligatoire. Étant donné que les email
 peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
 aucune responsabilité pour le contenu fourni.




 Date: Mon, 6 Jun 2011 23:47:25 +0200
 Subject: Class.forName doesn't find classes located in WEB-INF/lib
 From: linuxhi...@gmail.com
 To: users@tomcat.apache.org

 Hi,

 I have a servlet which dynamically loads classes from jar-files
 located in WEB-INF/lib/,
 however tomcat somehow seems to ignore those jar-files.

 in WEB-INF/lib/Notepad.jar there is a class Notepad.class (without any
 package),
 however loading that class yields:

 Loading Application Class: Notepad
 java.lang.ClassNotFoundException: Notepad
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:186)
 at net.java.openjdk.cacio.servlet.AppStarter.doGet(Unknown Source)


 Any idea what could be the problem here?
 Does tomcat use some kind of security manager which is blocking
 class-loading?

 Thank you in advance, Clemens

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Does Tomcat ignore jsessionID URL's when usually cokies are used for session handling?

2009-07-06 Thread Clemens Eisserer
Hi,

I have to integrate an applet into a larger html-based webapp.
The html-based application uses cookies for session management,
however the applet uses url-rewriting (jsessionid=...).

My plan would be to pass the session-id to the applet as an applet-tag
parameter, and simply re-write the applet's request URLs accordingly.
What I wonder is, will Tomcat use the url-sessionid, if no cookie is
submitted and session-handling is set to cookie?

Thanks, Clemens

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Howto enable SSL/https for the tomcat-embedded version?

2009-07-04 Thread Clemens Eisserer
Hello,

To do some development/testing I would like to enable SSL/https for my
embedded tomcat version.
The SSL tutorial suggests to modify server.xml, however this version
of tomcat doesn't seem to have this file - instead all the
configuration seems to be done by the ant build.xml file which is used
to start it.

I guess I would have to add another Connector, which accepts SSL.
For now there'r only the plain non-ssl connector enabled:
   mbean name=${domain}:type=Connector,port=9080
  code=org.apache.catalina.connector.Connector
  modeler=true
  attribute name=port value=9080 /
   /mbean

Any idea howto alther the configuration to enable ssl?

Thank you in advance, Clemens

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat with support for asyn servlets (3.0)?

2008-10-06 Thread Clemens Eisserer
 There is a draft 3.0 spec but no APIs at present. Once there is a draft
 with some APIs I image there will be a Tomcat 7 branch that will remain
 alpha at least until the spec is final.
Thanks :)

lg Clemens

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



Re: Using tomcat to hold many open connections.

2008-10-06 Thread Clemens Eisserer
Jetty has a special api to allow exactly this kind of request efficiently.
The thread is not kept assignd to the sleeping connection, but is re-used.

lg Clemens

2008/10/6 Kees Jan Koster [EMAIL PROTECTED]:
 Dear Uprooter,

 I'm looking for a server that has to hold many (web services) remote
 clients
 for controlling them.
 I want to do things like sending power off command to a bunch of machines
 remotely.

 Building a botnet? :-)

 The clients are usually windows machines behind firewalls  NAT or web
 proxies that only allow HTTP (this is why I thought of webservices)

 The regular request-response fashion that servlet follows  is not suitable
 here since the initiator of the operation is the server.
 What can I do in order to solve this and still use web services?

 If you have the resources, you can just block in the servlet on your server.
 It's pretty expensive since Tomcat uses a thread per request I believe. Java
 threads are expensive (256kB each?), so that adds up quickly. You could
 spend some time tuning your thread stacks, though. Depending on your actual
 number of clients, you should be able to get this to work with a few GB of
 RAM.

 But then, 20K client polling once an hour might be cheaper. You may want to
 find a way to stagger the requests though.

 --
 Kees Jan

 http://java-monitor.com/forum/
 [EMAIL PROTECTED]
 06-51838192

 The secret of success lies in the stability of the goal. -- Benjamin
 Disraeli


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



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



Tomcat with support for asyn servlets (3.0)?

2008-10-05 Thread Clemens Eisserer
Hi,

Is there some version of tomcat which implements support for
suspend/resume servlet functionality currently discussed in the JSR?
I know Jetty6/NIO has a proprietary API for this, but if possible I
would prefer to build it arround the expected standard way.

Thank you in advance, Clemens

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



Re: Differentiate Tomcat 6.x with Tomcat 5.x

2007-09-09 Thread Clemens Eisserer
 Now that was just plain unnecessary.  Sure it was a lazy question, but
 you could always just delete it.
Sorry it was absolutly not my intention to send this mail to the list
 I guess it was just an over-reaction caused by all those
over-spammed forum.java.sun.com forums :-/

lg Clemens

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



Re: Differentiate Tomcat 6.x with Tomcat 5.x

2007-09-06 Thread Clemens Eisserer
Hohoho,

Happy Christmas!
By the way: Read the fucking manual!

lg Clemens

2007/9/3, MOHD SUFIAN BIN ZAKARIAH ZAKARIAH [EMAIL PROTECTED]:
 Hello

   I have something question about Tomcat version. I want to know that Tomcat 
 6.x have difference with Tomcat 5.x and other. Can give explaination about 
 function both of Tomcat.

   Thank you for all cooperation.


 -
 Bosan dengan spam? Mel Yahoo! memiliki perlindungan spam yang terbaik
 http://my.mail.yahoo.com/

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



Re: Tomcat on Plesk

2007-08-07 Thread Clemens Eisserer
as far as I know this is not possible with Plesk.

To be honest I had very ugly experiences with Plesk+Tomcat, I've to
use it but I personally hate it, and it does not work very well.
(Uploaded servlets take ages till they become active, status report
is wrong, non-existent logging in plesk itself, ...).

lg Clemens

2007/8/7, Mark Benussi [EMAIL PROTECTED]:
 I've installed Tomcat on port 9080 (SSL 9443) on a box running Plesk.

 What do I have to do to get requests on the box forwarded from 80 and 443 on
 to Tomcat 9080 and 9443.

 I am normally happy to play but this is a production box and the
 administrators have little knowledge outside of Plesk standard features.


 With regards,

 Mark Benussi, IBT Services

 [EMAIL PROTECTED]
 Tel +44 870 850 1081
 Mob +44 7714 767407
 Fax +44 7092 094490

 HYPERLINK http://www.ibt.com/;


_

 This communication and any attachments contain information which is
 confidential and may also be privileged. It is for the exclusive use of the
 intended recipient(s). If you are not the intended recipient(s) please note
 that any form of disclosure, distribution, copying or use of this
 communication or the information in it or in any attachments is strictly
 prohibited and may be unlawful. If you have received this communication in
 error, please return it with the title Received in error to
 [EMAIL PROTECTED] then delete the email and destroy any copies of it.

 E-mail communications cannot be guaranteed to be secure or error free, as
 information could be intercepted, corrupted, amended, lost, destroyed,
 arrive late or incomplete, or contain viruses. We do not accept liability
 for any such matters or their consequences. Anyone who communicates with us
 by e-mail is taken to accept the risks in doing so.



 HYPERLINK skype:mark_benussi?add

 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 06/08/2007
 16:53



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



Are there frameworks for in-cluster communication?

2007-03-22 Thread Clemens Eisserer

Hello,

I know this question is a bit off-topic, but I can't resist to ask
directly where all the cluster-specialists are ;)

Are there special (best would be open-source) frameworks for
in-cluster communication?
I have to make a large servlet-based solution cluster-ready and it
seems to be really hard because:

- There are shared resources which are accessed the way
if(resource.getState) - resource.setState(). For now these areas
where protected by a synchronized-block locking on a SingleTon. To
solve this problem I would need something lock a distributed locking
framework or something like that.

- Shared data. There is lots of data shared between sessions living in
Singletons too - imagine a global, shared sketchboard where everybody
can draw to. The software uses a clever mechanism which lets request
wait for e.g. 10s and respond event-driven if something changes

For now I solved the locking-problem with simply implementing a
backery-locking-algorythmn reading/writing to a database - however the
overhead is terrible of course.
The only software I found was JGroups, however because it uses
Multicasting its kind of hard to configure (not really suited or
out-of-box readyness). Are there other maybe simpler frameworks which
are also designed to solve the above issues?

Sorry again for generating traffic and thanks a lot for Tomcat6 - the
NIO connectors are wonderful :-)

lg Clemens

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



Re: Are there frameworks for in-cluster communication?

2007-03-22 Thread Clemens Eisserer

Hello,


Terracotta?

http://www.terracotta.org/


Thanks a lot for your answer. Wow teracotta really looks impressive
and very powerful- however its too heavy for my use. It needs servers
and clients started and so on which is problematic because I don't
have any control over the servers :-/

I tinkered a bit arround and the only thing I would really need would
be distributed Lock.acquire/wait/notify, best would be simply a
library which I tell about the available servers and which uses normal
tcp/ip to communicate with all others and detects if a machine goes
down. Does something exist at all?

Thank you in advance, lg Clemens

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



Re: How to run a .exe file from a web application in tomcat

2007-03-22 Thread Clemens Eisserer

By the way using an exe-drawing tool is maybe a bad idea because
this would mean your clients all need to be win32/i386 computers.

I guess something like that should not be too hard to do with an
Java-based drawing tool you could embed as applet and you write the
Http upload/download code.

lg Clemens

2007/3/22, Tim Lucia [EMAIL PROTECTED]:

Tomcat is running on a server, say tomcat.mycompany.com.  The user is
sitting on their computer, say mypc.othercompany.com.  The two speak http to
each other.

Thus, if you want the client (mypc.othercompany.com) to edit a file, you
must send it from the server (tomcat.mycompany.com) to the client, i.e.,
download, edit it locally, and then post it back to the server (i.e.,
upload.)

HTH,
Tim


 -Original Message-
 From: Jitendra Ch [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 22, 2007 11:23 AM
 To: Tomcat Users List
 Subject: RE: How to run a .exe file from a web application in tomcat

 Actually my requirement is like that. The client wants to edit the image
 file so that he can he can do some changes. and also he wants to edit the
 control.xml file for these reasons I thought of calling an .exe for
 Drawing tool, is there any way for that? please help me Date: Thu, 22 Mar
 2007 16:06:24 +0100 From: [EMAIL PROTECTED] To: users@tomcat.apache.org
 Subject: Re: How to run a .exe file from a web application in tomcat 
 Jitendra Ch wrote:  Hi to allI am new member to this group. I am
 having some problems in calling an .exe file for example notepad, from a
 web application using Tomcat.Is it possible to call an .exe file from a
 web application in Tomcat. Why do you want remote clients run separate
 applications on server's  desktop?  --  Mikolaj Rydzewski
 [EMAIL PROTECTED]
 _
 Search from any Web page with powerful protection. Get the FREE Windows
 Live Toolbar Today!
 http://toolbar.live.com/?mkt=en-in



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




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



Howto ensure session consistency in a cluster?

2007-01-28 Thread Clemens Eisserer

Hello,

I've some questions about servlets and session management in a
clustered tomcat installation:

- The servlet I've developed is really sensitive to
session-consistency because it uses some extra encryption (not https),
it supports many other backends (among servlet) where https may not be
available.
This encryption-state exists per-session. Therefor two requests at the
same time with the same session will lead to a failure (but can happen
because the client is multithreaded).
Is there any possibility to tell tomcat that a session may used/opened
only once at a time or is this done automatically?
For now (one server) I simply synchronize on one lock-attribute, which
does not work in a cluter of course.

- Is the bea-apache plugin also capable of parsing out
session-id-rewritten URLs or only session-cookies?
Will this plugin try to route the same session-id to the same cluster
when possible?

- Do all session-attributes have to implement Serializeable?

- How does tomcat now whan a mutable session-attribute has changed and
needs to be sent over network?

- Is there any possibility to do locking over all clusters? We have
some external resources why may only be accessed one at a time, and
e.g. an cluster-aware implementation of ReentrantLock would really
help me.

Thank you in advance, lg Clemens

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



Should I manually buffer my streams I get from the servlet-container?

2006-12-15 Thread Clemens Eisserer

Hello,

I wonder wether I should manually buffer the streams I get from
HttpRequest/HttpResponse by wrapping it in an BufferedStream?
Is does Tomcat (and whats about other servlet containers) take care
about Buffereing?

Furthermore are the streams provided by Tomcat synchronized?

Thank you in advance, lg Clemens

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



Suddenly server only throws ClientAbortException :-/

2006-11-03 Thread Clemens Eisserer

Hello,

One of our users is using Tomcat 4.1.29/java-1.4.2 on w2k3 server, and
he has strange problems with our webservice.
Tomcat suddenly throws at every request a ClientAbortException, like
the following:

ERROR 2006-10-30 07:21:17,736 - ClientAbortException:
java.net.SocketException: Connection reset by peer: socket write error
at 
org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:404)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:353)
at 
org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:432)
at org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:419)
at 
org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.java:108)
at 
com.agosys.unicom.servlet.UnicomServlet.handleRequest(UnicomServlet.java:84)

The problem can only be resolved by restarting the service.

If this is a known problem - I don't care and advice my user to
upgrade, however its kind of hard if I am not sure (those are
production servers at a very large company).
Is this a known problem, is there something I could do to prevent
these failures or whats causing them?

Thank you in advance, lg Clemens

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



Re: Suddenly server only throws ClientAbortException :-/

2006-11-03 Thread Clemens Eisserer

Thanks a lot for the hint Chuck,

I think I know what happened, tomcat ran out of heap so the JVM tried
to agressivly free some space and wasted some minutes. When there was
enough free space to complete the request, the connection already had
timed out.
Its just a thought but seems quite realistic when looking at the logfiles.

I'll see wether it happens again, thanks for your help and your suggestions.

Thanks, lg Clemens

2006/11/3, Caldarale, Charles R [EMAIL PROTECTED]:

 From: Clemens Eisserer [mailto:[EMAIL PROTECTED]
 Subject: Suddenly server only throws ClientAbortException :-/

 Tomcat suddenly throws at every request a ClientAbortException, like
 the following:

 ERROR 2006-10-30 07:21:17,736 - ClientAbortException:
 java.net.SocketException: Connection reset by peer: socket write error
   at

org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:
404)

On the face of it, it looks like the client simply closed its end of the
connection; could also be anything in between the client and server,
such as an IIS or httpd front end, a load balancer, a proxy, firewalls,
etc.  What does netstat show, from both the client and server sides?

If this is repeatable in any kind of predictable fashion, you could
monitor the network traffic with Ethereal or some other tool and see if
any TCP resets are coming across.

 - Chuck


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

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




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



Tomcat and Threads

2006-03-18 Thread Clemens Eisserer
Hello,

I've created a servlet wich creates some threads for doing background
stuff. Till now I never worried about these thread since I was
runnning this servlet only on my own servers.

However now I subscribed to a servlet-hosting service which uses a
shared tomcat enviroment.
How does tomcat handle these threads?
Will they be destroyed by tomcat as soon as I click stop in Tomcat's
application manager or will I have to take care about them?

Thank you in advance, lg Clemens

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