Re: Does Tomcat work on dual processor systems?

2005-09-08 Thread Atanu Neogi
So, essentially, your web application is creating server socket instances 
and listening on them outside the context of Tomcat, right? That is, from 
your servlet code you are doing something like (new 
java.net.ServerSocket()).accept() ? Why do you call the ports are random? 
Is it because your servlet is exporting and registering 
UnicastRemoteObjects, i.e., also acting as an RMI server?

If so, then any issue you are seeing has got nothing to do with Tomcat or 
processor details but your network configuration? Is yours a multi-home 
server?








Asha Nallana [EMAIL PROTECTED] 
09/08/2005 05:13 PM
Please respond to
Tomcat Users List tomcat-user@jakarta.apache.org


To
Tomcat Users List tomcat-user@jakarta.apache.org
cc

Subject
Re: Does Tomcat work on dual processor systems?






My problem is that the server sockets that are supposed to be created by 
our servlet and wait for client connections are not being created. We 
have a RedHat7.3 linux system.  When I do a netstat -a | grep by socket 
connections only some of them show up.  Obviously, the client 
connections for the server sockets that were not created fail with the 
error message connection refused.

Asha

Leon Rosenberg wrote:

We have tomcat (5.0.x) on both intel xeon and amd two-processor systems, 
it
works (under linux / jdk 1.4). 
Maybe you should provide more details, but it doesn't sounds like a
multiprocessor problem.

Regards
Leon

 

-Ursprüngliche Nachricht-
Von: Asha Nallana [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 8. September 2005 23:00
An: tomcat-user@jakarta.apache.org
Betreff: Does Tomcat work on dual processor systems?

I am having problem with Tomcat running on a dual processor 
system? Has anyone tried this?
Does it work?

The server sockets from my application are not being created 
or accepting connections. I don't know the exact cause. But 
the symptom is that all client connections are not being 
refused with the cause Connection Refused.  The creation of 
these server sockets is random. 
It works 50% of the time. I have tried changing the start up 
sequence of Tomcat, Apache and my software but still no luck.

Thanks.

--
Asha Nallana
Director - Austin R  D
Interact Incorporated
9390 Research Blvd. Kaleido II, Suite 100 Austin, TX 78759
(512)502-9969 x 113
[EMAIL PROTECTED]


 




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



 


-- 
Asha Nallana
Director - Austin R  D
Interact Incorporated
9390 Research Blvd. Kaleido II, Suite 100
Austin, TX 78759
(512)502-9969 x 113
[EMAIL PROTECTED]




Re: Does Tomcat work on dual processor systems?

2005-09-08 Thread Atanu Neogi
Ask yourself these questions:
a. Does the web-applications under Tomcat receive all HTTP(S) requests 
properly? Or are there any issue even for Tomcat's own sockets in 8080 and 
8443 (or whatever ports you have configured to) ports?

b. If yes (which I think is the case and which verifies that there is 
nothing wrong with your Tomcat server), can you write a simple Java-based 
application/service/process that uses your server socket creation code 
that is present within the web-application and let it run?  (If no then 
the Tomcat server itself having problems opening up or listening to 
sockets and you will need network analysis tools to find out what is 
happening on those well-known ports.)

c. Now do you observe the same problem? (I think you will)

d. Which ports are you using to listen to for your server sockets? If your 
server has multiple NICs are you making sure that the sockets are being 
created on the IP you want to?

e. Do you have any firewalls or network monitoring applications etc. 
blocking or controlling those  ports? 







Asha Nallana [EMAIL PROTECTED] 
09/08/2005 05:53 PM
Please respond to
Tomcat Users List tomcat-user@jakarta.apache.org


To
Tomcat Users List tomcat-user@jakarta.apache.org
cc

Subject
Re: Does Tomcat work on dual processor systems?






Yes, my web application is creating 4 server socket instances. Out of 
these 4 , some of them get created and some don't. The ones created each 
time differ and so the word random. My application does not use RMI. The 
server sockets are used to pass data (serialized ofcourse) between the 
client and our web server. Our webapplication displays real-time data of 
our servers.

Atanu Neogi wrote:

So, essentially, your web application is creating server socket instances 

and listening on them outside the context of Tomcat, right? That is, from 

your servlet code you are doing something like (new 
java.net.ServerSocket()).accept() ? Why do you call the ports are random? 

Is it because your servlet is exporting and registering 
UnicastRemoteObjects, i.e., also acting as an RMI server?

If so, then any issue you are seeing has got nothing to do with Tomcat or 

processor details but your network configuration? Is yours a multi-home 
server?








Asha Nallana [EMAIL PROTECTED] 
09/08/2005 05:13 PM
Please respond to
Tomcat Users List tomcat-user@jakarta.apache.org


To
Tomcat Users List tomcat-user@jakarta.apache.org
cc

Subject
Re: Does Tomcat work on dual processor systems?






My problem is that the server sockets that are supposed to be created by 
our servlet and wait for client connections are not being created. We 
have a RedHat7.3 linux system.  When I do a netstat -a | grep by socket 
connections only some of them show up.  Obviously, the client 
connections for the server sockets that were not created fail with the 
error message connection refused.

Asha

Leon Rosenberg wrote:

 

We have tomcat (5.0.x) on both intel xeon and amd two-processor systems, 

 

it
 

works (under linux / jdk 1.4). 
Maybe you should provide more details, but it doesn't sounds like a
multiprocessor problem.

Regards
Leon



 

-Ursprüngliche Nachricht-
Von: Asha Nallana [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 8. September 2005 23:00
An: tomcat-user@jakarta.apache.org
Betreff: Does Tomcat work on dual processor systems?

I am having problem with Tomcat running on a dual processor 
system? Has anyone tried this?
Does it work?

The server sockets from my application are not being created 
or accepting connections. I don't know the exact cause. But 
the symptom is that all client connections are not being 
refused with the cause Connection Refused.  The creation of 
these server sockets is random. 
It works 50% of the time. I have tried changing the start up 
sequence of Tomcat, Apache and my software but still no luck.

Thanks.

--
Asha Nallana
Director - Austin R  D
Interact Incorporated
9390 Research Blvd. Kaleido II, Suite 100 Austin, TX 78759
(512)502-9969 x 113
[EMAIL PROTECTED]




 


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





 


 


-- 
Asha Nallana
Director - Austin R  D
Interact Incorporated
9390 Research Blvd. Kaleido II, Suite 100
Austin, TX 78759
(512)502-9969 x 113
[EMAIL PROTECTED]




Re: CORRECTION: Can a servlet receive a response to its own request?

2005-05-18 Thread Atanu Neogi
Make your servlet act like a java HTTPS client using the java.net.URL, 
java.net.HttpURLConnection and javax.net.ssl.HttpsURLConnection classes. 
Read from the response input stream (using java.io. classes) returned by 
the connection. You will need to write your own hostname verifier and have 
the target server certificate chain validated in your java certificate 
store. 






Michael Mehrle [EMAIL PROTECTED] 
05/18/2005 12:01 PM
Please respond to
Tomcat Users List tomcat-user@jakarta.apache.org


To
Tomcat Users List tomcat-user@jakarta.apache.org
cc

Subject
CORRECTION: Can a servlet receive a response to its own request?






Simple question, but it's driving me nuts. I really don't want to get into 

the whole web service business - all I need is for a servlet to be the 
recipient of its own request. Or - in other words - can a servlet act like 
a 
web browser - just without the GUI?

Use case:

- Servlet issues https request to an outside server (via 
getServletContext().getRequestDispatcher(https://www.someoutsideserver/) )
- Outside server processes request and responds with POST response (also 
via 
https).
- Servlet [somehow] is able to be the recipient of the response.
- Servlet parses the response and stores data to the database.

Notes:

- The servlet is not the default servlet on that tomcat instance.
- Everything happens via https and I expect the outside server will listen 

on 443 and tomcat on 8443

ANY suggestions would be very helpful - this seems to be a tricky one.

TIA,

Michael


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




RE: No such list! s (AM I THE ONLY ONE GETTING THIS SPAM)?

2005-05-17 Thread Atanu Neogi
We have all been getting it for last couple of days. I added a spam filter 
on the sender domain. 



Guy Katz [EMAIL PROTECTED] 
05/17/2005 01:46 AM
Please respond to
Tomcat Users List tomcat-user@jakarta.apache.org


To
Tomcat Users List tomcat-user@jakarta.apache.org
cc

Subject
RE: No such list! s  (AM I THE ONLY ONE GETTING THIS SPAM)?






am i the only one getting this annoying spam from the tomcat lisy?

-Original Message-
From: s [mailto:[EMAIL PROTECTED]
Sent: Monday, May 16, 2005 10:32 PM
To: tomcat-user@jakarta.apache.org
Subject: No such list! s


Valid Lists


New Atlanta List Server
---

There is no list by that name on this server. Available lists are:

   bluedragon-interest
   servletexec-interest
   jturbo-interest





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




In-memory session replication without Clustering

2005-05-13 Thread Atanu Neogi
Hi,
   a.What is the best way to share a HttpSession between web 
applications running on a single Tomcat instance ? That Tomcat instance is 
not a cluster node and clustering has not been enabled.

  b. What is the best way to share other java Object information (without 
using common persistence storage ) in memory between web applications? Are 
the add-on cache modules like JBoss cache etc. only solution?

Regards.

Re: In-memory session replication without Clustering

2005-05-13 Thread Atanu Neogi
Will,
I am perfectly aware of everything you said. I have been working 
with Tomcat for last few years. I should have clarified that before.

I can do lot of these things using clusters and in-memory session 
replications. I was looking for some plug-in modules for Tomcat (and not 
external solutions like JBoss cache and Tangosol) to quickly implement 
cache sharing between web applications in a single Tomcat instance. I have 
one of my own based on persistent storage but that is not really 
efficient. 

Thanks anyway. 

Regards.




Will Hartung [EMAIL PROTECTED] 
05/13/2005 02:27 PM
Please respond to
Tomcat Users List tomcat-user@jakarta.apache.org


To
Tomcat Users List tomcat-user@jakarta.apache.org
cc

Subject
Re: In-memory session replication without Clustering






 From: Atanu Neogi [EMAIL PROTECTED]
 Sent: Friday, May 13, 2005 10:38 AM

 Hi,
a.What is the best way to share a HttpSession between web
 applications running on a single Tomcat instance ? That Tomcat instance 
is
 not a cluster node and clustering has not been enabled.

   b. What is the best way to share other java Object information 
(without
 using common persistence storage ) in memory between web applications? 
Are
 the add-on cache modules like JBoss cache etc. only solution?

The problem is that the webapps have their own distinct classloader
hierarchies, so that's one thing that makes sharing objects across webapps
difficult. Recall that an objects Class is based not just on the actual
Class it uses, but the Classloader for the class as well. Thus if you have
the an object of ClassX that's loaded by the classloader for WebappA, and
another object of ClassX loaded by WebappB, and in WebappA you try:

ClassX myObject = (ClassX)getObjectFromWebappB();

That will fail with a class cast exception, because WebappA.ClassX !=
WebappB.ClassX.

Using a clustering style caching solution helps remedy this by 
serializing
the objects, which breaks a lot of those dependencies, but is obviously
expensive.

One thing you can do, however, is move any classes that you want to share
across webapps out into the common/lib or common/classes directories. 
Those
classes are all shared across webapps, so they can safely be used back and
forth between them, since they share the Common classloader.

As for sharing HttpSessions, I don't think you can do that directly, as 
each
webapp will have their own unique session. You'll need to have some other
means to identify the user outside of the sessionid (like, say, their 
login
name if they authenticate, or an arbitrary domain level cookie that you
create on the fly if it doesn't exist yet).

Then you use that credential to access shared information stored in a 
Cache
that's loaded from the Common classloader.

Regards,

Will Hartung
([EMAIL PROTECTED])


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




RE: Interface to admin manager web application

2005-04-29 Thread Atanu Neogi
Thanks, but that of course is obvious and I have mentioned the same.

I was looking for the definition of the URIs for direct HTTP and/or JMX 
query calls, i.e., a client interface to the admin and manager web 
applications. Most of it I could reconstruct by reading the URLs submitted 
from the default browser GUIs for these applications but was wondering if 
there exists a reliable document listing them. 




Raghupathy,Gurumoorthy [EMAIL PROTECTED] 
04/29/2005 04:11 AM
Please respond to
Tomcat Users List tomcat-user@jakarta.apache.org


To
'Tomcat Users List' tomcat-user@jakarta.apache.org
cc

Subject
RE: Interface to admin  manager web application






Well you can use a httpurlConnection ? In your java code to do the work 

Regards
Guru

-Original Message-
From: Atanu Neogi [mailto:[EMAIL PROTECTED] 
Sent: 29 April 2005 00:42
To: Tomcat Users List
Subject: Interface to admin  manager web application


Hi,
 I need to write a non-browser GUI application to do the same set of 
actions currently performed by the HTML interface of the Tomcat manager 
and admin web applications. I looked at whatever documentation is 
currently avialable for JMX proxy servlet. Before I delve into the Tomcat 
source code to figure out the calls myself, I would request if anyone has 

a. a comprehensive list of JMX query commands to do all the actions that 
can be done via admin or manager 

 and/or

b. the list of corresponding HTTP GET or POST interfaces (the ones used by 

the browser GUI for admin or manager) 

to kindly forward me the same.

Thanks a lot for your help. Regards.

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




Interface to admin manager web application

2005-04-28 Thread Atanu Neogi
Hi,
 I need to write a non-browser GUI application to do the same set of 
actions currently performed by the HTML interface of the Tomcat manager 
and admin web applications. I looked at whatever documentation is 
currently avialable for JMX proxy servlet. Before I delve into the Tomcat 
source code to figure out the calls myself, I would request if anyone has 

a. a comprehensive list of JMX query commands to do all the actions that 
can be done via admin or manager 

 and/or

b. the list of corresponding HTTP GET or POST interfaces (the ones used by 
the browser GUI for admin or manager) 

to kindly forward me the same.

Thanks a lot for your help. Regards.