Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR

2005-09-21 Thread jiang ying

well,
after studied MC4j, I've already solved the problem with the code
"String urlForJMX = "service:jmx:rmi:///jndi/rmi://localhost:9004/jmxrmi"; 

MBeanServerConnection jmxServerConnection = 
JMXConnectorFactory.connect( new JMXServiceURL( urlForJMX ), 
null).getMBeanServerConnection();"

A little different from yours, but it works. :)
I've been wasting time finding the solution about mx4j and finally solved 
it by using mc4j.

Thank you. :)



From: "Dirk Weigenand" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: "Tomcat Users List" 
Subject: Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
Date: Wed, 21 Sep 2005 17:58:33 +0200 (MEST)

Hi,

> --- Urspr�ngliche Nachricht ---
> Von: "jiang ying" <[EMAIL PROTECTED]>
> An: tomcat-user@jakarta.apache.org
> Betreff: Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI 

CONNECTOR

> Datum: Wed, 21 Sep 2005 23:38:36 +0800
>
> I did follow the link to SUNs web site and did the exercise. I know how 

to
> use JMX, but I don't know how to get the mbeanserver that the tomcat 

JMX
> support registed. And I've been searching the material about mx4j at 

all

> times :(.

Mmh, using SUNs reference implementation:

MBeanServer mbeanServer = (MBeanServer)MBeanServerFactory.findMBeanServer(
null ).get( 0 );

--
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse f�r Mail, Message, More +++

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



_
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  



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



Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR

2005-09-21 Thread Dirk Weigenand
Hi,

> --- Ursprüngliche Nachricht ---
> Von: "jiang ying" <[EMAIL PROTECTED]>
> An: tomcat-user@jakarta.apache.org
> Betreff: Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
> Datum: Wed, 21 Sep 2005 23:38:36 +0800
> 
> I did follow the link to SUNs web site and did the exercise. I know how to
> use JMX, but I don't know how to get the mbeanserver that the tomcat JMX 
> support registed. And I've been searching the material about mx4j at all 
> times :(. 

Mmh, using SUNs reference implementation:

MBeanServer mbeanServer = (MBeanServer)MBeanServerFactory.findMBeanServer(
null ).get( 0 );

-- 
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++

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



Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR

2005-09-21 Thread jiang ying
I did follow the link to SUNs web site and did the exercise. I know how to 
use JMX, but I don't know how to get the mbeanserver that the tomcat JMX 
support registed. And I've been searching the material about mx4j at all 
times :(. 


From: "Dirk Weigenand" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: "Tomcat Users List" 
Subject: Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
Date: Wed, 21 Sep 2005 16:57:20 +0200 (MEST)

Hi,

>
> Before posting my question, I have studied
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/monitoring.html. It
> explains the way to activate HTTP adaptor.

Well it explains how to activate jmx remote monitoring right at the start 

of

the page. Did you follow the link to SUNs web site? There you'll find a
thorough explanation what all the possible properties and their meaning 

are.


I mean the properties in those boxes in the 'Enabling remote JMX' section,
i.e.:
set CATALINA_OPTS="-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=%my.jmx.port% \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false"

Regards
   Dirk

--
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen f�r GMX Partner: http://www.gmx.net/de/go/partner

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



_
免费下载 MSN Explorer:   http://explorer.msn.com/lccn  



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



Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR

2005-09-21 Thread Dirk Weigenand
Hi,

> 
> Before posting my question, I have studied 
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/monitoring.html. It 
> explains the way to activate HTTP adaptor.

Well it explains how to activate jmx remote monitoring right at the start of
the page. Did you follow the link to SUNs web site? There you'll find a
thorough explanation what all the possible properties and their meaning are.

I mean the properties in those boxes in the 'Enabling remote JMX' section,
i.e.: 
set CATALINA_OPTS="-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=%my.jmx.port% \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false"

Regards
   Dirk

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner

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



Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR

2005-09-21 Thread jiang ying

Thank you.

Before posting my question, I have studied 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/monitoring.html. It 
explains the way to activate HTTP adaptor. I have also browsed the mx4j 
website and found little information.
MC4j(http://mc4j.org/confluence/display/MC4J/Home?) that you suggest really 
do me a lot.

Finally I am able to monitor the tomcat via RMI connector.

Thanks a lot.

cylinder



From: "Dirk Weigenand" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: "Tomcat Users List" 
Subject: Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
Date: Wed, 21 Sep 2005 11:49:58 +0200 (MEST)

Hi,

> --- Urspr�ngliche Nachricht ---
> Von: "jiang ying" <[EMAIL PROTECTED]>
> An: tomcat-user@jakarta.apache.org
> Betreff: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
> Datum: Wed, 21 Sep 2005 16:26:00 +0800
>
> hi, I know the way to access Tomcat JMX support via http adaptor.
> I also know how to monitor an application via JMX by registering an
> mbeanserver.
> But I really confused about accessing Tomcat JMX support via RMI
> connector:
> 1. how to configure Mx4j RMI connector with Tomcat 5.5, since only
> Activating JMX MX4J Http Adaptor could be found in the Tomcat website.
> 2. after configuring RMI connector, how can I access Tomcat JMX support
> programmatically? I am not clear about the mbeanserver that tomcat 

mbeans

> has been registed. How can I make use of the connector, thread pool,
> servlet information that Tomcat has already monitored and controlled.
> Thank you.
> :)
>

Have a look at
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/monitoring.html.

You can then use e.g. MC4J (http://mc4j.org/confluence/display/MC4J/Home?)
for monitoring Tomcat.

Regards
  Dirk

--
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: 

http://www.gmx.net/de/go/dsl


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



_
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  



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



Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR

2005-09-21 Thread andy gordon
Dirk is correct you need to check out the doc in order to understand your 
options. To add a little specificity to your challenge, you need to do at least 
the following to get going: 
 
1) set remote monitoring options when you are starting the JVM. This can be 
accomplished multiple ways. One place is in catalina.bat

1) set remote monitoring port   -Dcom.sun.management.jmxremote.port=
2) turn on remote monitoring-Dcom.sun.management.jmxremote

there are others for SSL and authentication and you have to decide if 
they are needed.

2)  create the RMI connector client in a very small bit of java code as well as 
establish as use the MBeanServerConnection class to access TOMCAT domains and 
MBeans.

 

THis is probably about a 1/2 dozen LOC to gain access and there are examples to 
be found.

 

You can use JConsole (JMX monitoring from SUN)  which is located in the JDK 1.5 
BIN directory to validate configuration tasks without any coding or installing 
any other software. 

 

hope this helps. 

 

- andy  
 

Dirk Weigenand <[EMAIL PROTECTED]> wrote:
Hi,

> --- Ursprüngliche Nachricht ---
> Von: "jiang ying" 
> An: tomcat-user@jakarta.apache.org
> Betreff: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
> Datum: Wed, 21 Sep 2005 16:26:00 +0800
> 
> hi, I know the way to access Tomcat JMX support via http adaptor.
> I also know how to monitor an application via JMX by registering an 
> mbeanserver.
> But I really confused about accessing Tomcat JMX support via RMI
> connector:
> 1. how to configure Mx4j RMI connector with Tomcat 5.5, since only 
> Activating JMX MX4J Http Adaptor could be found in the Tomcat website.
> 2. after configuring RMI connector, how can I access Tomcat JMX support 
> programmatically? I am not clear about the mbeanserver that tomcat mbeans 
> has been registed. How can I make use of the connector, thread pool, 
> servlet information that Tomcat has already monitored and controlled.
> Thank you. 
> :)
> 

Have a look at
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/monitoring.html.

You can then use e.g. MC4J (http://mc4j.org/confluence/display/MC4J/Home?)
for monitoring Tomcat.

Regards
Dirk

-- 
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

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





-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR

2005-09-21 Thread Dirk Weigenand
Hi,

> --- Ursprüngliche Nachricht ---
> Von: "jiang ying" <[EMAIL PROTECTED]>
> An: tomcat-user@jakarta.apache.org
> Betreff: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
> Datum: Wed, 21 Sep 2005 16:26:00 +0800
> 
> hi, I know the way to access Tomcat JMX support via http adaptor.
> I also know how to monitor an application via JMX by registering an 
> mbeanserver.
> But I really confused about accessing Tomcat JMX support via RMI
> connector:
> 1. how to configure Mx4j RMI connector with Tomcat 5.5, since only 
> Activating JMX MX4J Http Adaptor could be found in the Tomcat website.
> 2. after configuring RMI connector, how can I access Tomcat JMX support 
> programmatically? I am not clear about the mbeanserver that tomcat mbeans 
> has been registed. How can I make use of the connector, thread pool, 
> servlet information that Tomcat has already monitored and controlled.
> Thank you. 
> :)
> 

Have a look at
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/monitoring.html.

You can then use e.g. MC4J (http://mc4j.org/confluence/display/MC4J/Home?)
for monitoring Tomcat.

Regards
  Dirk

-- 
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

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



ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR

2005-09-21 Thread jiang ying

hi, I know the way to access Tomcat JMX support via http adaptor.
I also know how to monitor an application via JMX by registering an 
mbeanserver.

But I really confused about accessing Tomcat JMX support via RMI connector:
1. how to configure Mx4j RMI connector with Tomcat 5.5, since only 
Activating JMX MX4J Http Adaptor could be found in the Tomcat website.
2. after configuring RMI connector, how can I access Tomcat JMX support 
programmatically? I am not clear about the mbeanserver that tomcat mbeans 
has been registed. How can I make use of the connector, thread pool, 
servlet information that Tomcat has already monitored and controlled.
Thank you. 
:)


_
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  



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



Netbeans/TOMCAT RMI

2005-08-02 Thread dumbQuestionsAsker _

Hi everybody,
I got an RMI code which is working fine into another servlet container.
I want to port it into TOMCAT.
That's the first time Im doing it, so that's what I did :

-I added : -Djava.rmi.server.codebase=http://127.0.0.1:80/ to my JAVA_OPT 
variables into the catalina.bat file.


-I changed the policy file path to another file than catalina.policy which 
contain :


grant {
 permission java.security.AllPermission "", "";
};

And i launched Tomcat (catalina.bat) using/and without using -security 
option


I got this error :

NotifyUtil::java.security.AccessControlException: access denied 
(java.net.SocketPermission 127.0.0.1:8082 connect,resolve)<really weird


Im using netbeans and after scanning every files the only reference to this 
8082 port is into a web.xml into user.dir/.netbeans/4.1/tomcat557/conf



HTTPMonitorFilter
-

org.netbeans.modules.web.monitor.server.MonitorFilter

-

netbeans.monitor.ide
127.0.0.1:8082


-

HTTPMonitorFilter
/*
REQUEST
FORWARD
INCLUDE
ERROR


can someone help me cause Im really lost.

Thanks in advance

_
MSN Messenger : personnalisez votre messagerie instantanée ! 
http://g.msn.fr/FR1001/866



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



Re: RMI in Tomcat - last try

2005-06-13 Thread Nikola Milutinovic

Woodchuck wrote:


hihi Nikola,

where are you placing your JAR files?  are any in TC/commons/lib or
TC/shared/lib?

try placing everything together, just as a test.  put *all* your
classes and JAR files under TC/commons for example and give it a try...
they should be able to see each other if they are at the same
classloading hierarchy level... this is what i suspect your problem is

http://struts.apache.org/userGuide/configuration.html#config_add
 



Hi Woodchuck.

I forgot to mention that, when I place ALL classes inside 
WEB-INF/classes, including the *_Stub classes, then it works. I guess in 
that case TC's classloader picks up the classes before RMI classloader 
and, since it is teh same CL, it works.


This solution is a patch, as far as I am concerned, since copying all 
those classes to clients classpath (TC's webapp WEB-INF/classes) is 
actually what RMI is supposed to root out. If I cannot have server 
classes in RMI codebase (one place), then I can as well go use RPC or 
pure sockets/serialization.


All of this still makes me believe that somehow RMI classloader should 
be introduced into TC's CL hierarchy. Or maybe install JBoss altogehter?


Nix.



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



Re: RMI in Tomcat - last try

2005-06-13 Thread Woodchuck
hihi Nikola,

where are you placing your JAR files?  are any in TC/commons/lib or
TC/shared/lib?

try placing everything together, just as a test.  put *all* your
classes and JAR files under TC/commons for example and give it a try...
they should be able to see each other if they are at the same
classloading hierarchy level... this is what i suspect your problem is

http://struts.apache.org/userGuide/configuration.html#config_add

hth,
woodchuck


--- Nikola Milutinovic <[EMAIL PROTECTED]> wrote:

> Hi all.
> 
> Me and the team have given up on RMI and went to RPC, but I thought
> I'd 
> make one last educational attempt.
> 
> Is anyone using RMI in TC where TC is acting as a RMI client to a
> remote 
> RMI, general-purpose, server?
> 
> I have seen tons of (rather old) examples of Applet being a RMI
> client 
> and they do not help me one bit.
> 
> To remind the group of my problems, I'll recap. I have a working RMI 
> client and server packages, plus command line test client application
> 
> which uses RMI client lib successfully against the server. When the
> same 
> lib is used in Tomcat from a servlet, it throws ClassCastException.
> 
> Further investigation has shown that the class that Servlet gets from
> 
> RMI subsystem implements the desired interface, to which it is being 
> cast. It also showed that the classloader of the class was RMI 
> ClassLoader, while other classes in the servlet, including servlet 
> itself werefrom TC's ClassLoader. It lead me to believe that *that*
> is 
> the source of the problem. It has occured to me that, since TC web 
> application has several classloaders, bound into a hierarchy, maybe
> RMI 
> classloader should be somehow introduced into it.
> 
> QUESTIONS
> 
> Am I on the right track?
> If yes, how do I bind in RMI ClassLoader into TC's ClassLoader
> hierarchy?
> And, lastly, who should do it - Servlet or RMI client?
> 
> The last question is more a design question, but it could also be a 
> feasibility question, too. Can RMI client detect a classloader it
> should 
> bind into? It could be dome from the Servlet, but I would like to
> have a 
> general purpose Servlet that would be oblivious of underlying 
> implementation.
> 
> I thought that at least JBoss developers would have something to say
> on 
> this question, since, as I recall, JBoss uses or has been using a lot
> of 
> RMI. There was one article or was it JBoss docs, which explained some
> 
> problems of classloading, which were very similar to mine. I don't 
> recall those docs saying anything to solve the problem in TC.
> 
> Nix.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 




__ 
Discover Yahoo! 
Stay in touch with email, IM, photo sharing and more. Check it out! 
http://discover.yahoo.com/stayintouch.html

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



RMI in Tomcat - last try

2005-06-11 Thread Nikola Milutinovic

Hi all.

Me and the team have given up on RMI and went to RPC, but I thought I'd 
make one last educational attempt.


Is anyone using RMI in TC where TC is acting as a RMI client to a remote 
RMI, general-purpose, server?


I have seen tons of (rather old) examples of Applet being a RMI client 
and they do not help me one bit.


To remind the group of my problems, I'll recap. I have a working RMI 
client and server packages, plus command line test client application 
which uses RMI client lib successfully against the server. When the same 
lib is used in Tomcat from a servlet, it throws ClassCastException.


Further investigation has shown that the class that Servlet gets from 
RMI subsystem implements the desired interface, to which it is being 
cast. It also showed that the classloader of the class was RMI 
ClassLoader, while other classes in the servlet, including servlet 
itself werefrom TC's ClassLoader. It lead me to believe that *that* is 
the source of the problem. It has occured to me that, since TC web 
application has several classloaders, bound into a hierarchy, maybe RMI 
classloader should be somehow introduced into it.


QUESTIONS

Am I on the right track?
If yes, how do I bind in RMI ClassLoader into TC's ClassLoader hierarchy?
And, lastly, who should do it - Servlet or RMI client?

The last question is more a design question, but it could also be a 
feasibility question, too. Can RMI client detect a classloader it should 
bind into? It could be dome from the Servlet, but I would like to have a 
general purpose Servlet that would be oblivious of underlying 
implementation.


I thought that at least JBoss developers would have something to say on 
this question, since, as I recall, JBoss uses or has been using a lot of 
RMI. There was one article or was it JBoss docs, which explained some 
problems of classloading, which were very similar to mine. I don't 
recall those docs saying anything to solve the problem in TC.


Nix.

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



RMI classloader issues in TC - second time

2005-06-05 Thread Nikola Milutinovic

Hi all.

I have been mucking around this for some time and have some empirical 
data and a question for the list.


BACKGROUND
---

I'm building a web client for a RMI client/server application. RMI 
server and client are working from command line. Next I built 
JSP/Servlet which uses that RMI client interface to give web GUI to the 
application.


RMI server: "SearchServerStub implements SearchRMI"
RMI Stub: "SearchServerStub_Stub" (I'm running in JDK 1.5.0, thus no 
"*_Skel" class)

RMI client: "SearchClientRMI"

Whenever my Servlet/JSP executes a method of SearchClientRMI, which has 
this in it:


SearchRMI server = (SearchRMI) Naming.lookup( "rmi://localhost/Search" );

I get a ClassCastException: SearchSearverStub_Stub. I have inspected 
this from a debugger (JBuilder) and the class that is returned from 
"Naming.lookup(...)" is SearchServerStub_Stub", which DOES implement 
"SearchRMI".


TRIAL&ERROR
--

Well, fiddling around with the whole setup has given me a situation 
under which this works. If I copy "SearchServerStub_Stub" into 
WEB-INF/classes I do not get the exception.


CONCLUSION
--

I can say with 99% certainty that this is a classloader issue. TC sets 
up a classloader for my web-app which reads from WEB-INF/{classes,lib} - 
that I know. RMI has it's own classloader, as it must - that I also 
know. It looks like the class loaded by one classloader cannot mix with 
a class from another. I believe I have read something like that in one 
JBoss article. In this case my local webapp classloader is first 
queried, I guess, and it loads the requested class from it's classpath. 
In unsuccessful case, the _Stub class was loaded by RMI's classloader 
and thus the difference.


QUESTION
-

Given my situation, what is your recomendation I should do?

I can copy stub classes to the client, but that is awkward and IT IS NOT 
what RMI was intended for. It was intended for transparent and network 
located classloading. If I have to copy RMI stub classes (and, I 
suspect, implementation classes, too) to the client (web application, in 
this case), then I'm better off not using RMI at all. Can someone 
advise? Has anyone been bitten by this?


I think this is mostly intended for the TC developers, not to forget 
JBoss group, too. But, anyone who has insight into this matter is 
welcome. I'm relieved to have a working solution, even if it is a 
patch-quality. I will have to evaluate the applicability of RMI in this 
situation.


It could be that I'm doing something wrong here. Just to note, I'm not 
setting on TC anything RMI specific, like "-Djava.rmi.server.codebase", 
only the security policy (and, boy, does that need being relaxed, I had 
to open connection to TCP ports 1024-65535).


TYIA,
Nix.

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



TC and RMI ClassLoader issue

2005-05-28 Thread Nikola Milutinovic

Hi all.

I'm having problems with ClassLoader. I have a RMI client that calls a 
RMI server. What I keep getting as an error is a ClassCastException. 
This is the code:


   Object obj = Naming.lookup(url);
   search = (SearchRMI) obj;

And the exception is:

java.lang.ClassCastException
   at 
com.qspi.client.search.SearchClientRMI.setHost(SearchClientRMI.java:49)
   at 
com.qspi.client.search.SearchClientRMI.(SearchClientRMI.java:33)
   at 
com.qspi.client.search.SearchClientFactory.getRMIClient(SearchClientFactory.java:87)
   at 
com.qspi.client.search.SearchClientFactory.getSearchClient(SearchClientFactory.java:38)


   at org.apache.jsp.search_jsp._jspService(search_jsp.java:68)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
...

The client code works flawlessly from a JUnit test.

What I have determined is that the object returned by 
"Naming.lookup(...)" is of a RMI ClassLoader. The returned object is a 
stub, which implements the SearchRMI, but if it is a different 
ClassLoader, I guess it cannot cast. I'm not sure why that isn't failing 
in JUint, but it is failing in Tomcat 5.0.x. I'm going to test it on 
some other installations I have, but I'd like a good explanation on 
ClassLoaders, if someone can enlighten me.


How do others do this? Are there any tutorials for RMI in Servlets?

Nix.

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



[Addendum] Re: Tomcat and RMI client - setup (ClasCastException)

2005-05-28 Thread Nikola Milutinovic

Bill Barker wrote:

"Nikola Milutinovic" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
 


- setup catalina.policy
- run it with "-security" option

I'm on Windows XP, how do I enable security mode  for TC?
   



That's the idea.  And, as a bonus, it works the same on Linux, Solaris, 
OS/X, .
 



OK. I've realised that TC should handle security and now it works - on 
5.0.19, imbeded in JBuilder.


Well, I meant ot say it partially works. This is what I have set:

-Djava.security.manager
-Djava.security.policy=.../conf/catalina.policy
-Djava.rmi.server.codebase=http://localhost:8080/MyApp/classes/

All seams to work except, I get a class cast exception when I cast this:

Object obj = Naming.lookup( "//localhost/Search" );
SearchRMI search = (SearchRMI) obj;

The funny thing is, when I inspect the result from the JBuilder, it 
shows that obj is of a class SearchImpl_Stub, which implements SearchRMI 
interface.


I suspect I'm being hit with some RMI classloader issue, so my next 
question is:


Has anyone done this? And what am I doing wrong?

Nix.

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



Re: Tomcat and RMI client - setup

2005-05-27 Thread Bill Barker

"Nikola Milutinovic" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi all.
>
> This might be a simple question. I have a working RMI client and server. I 
> have tested it no problem. Now I would like to make a JSP/Servlet that 
> will act as a RMI client and connect to the RMI server running outside 
> Tomcat JVM.
>
> I keep running into access permission violations. I understand that I need 
> to setup security policy, I had that for RMI. One thing than makes me 
> slightly suspicious, is the fact that when I debug TC/RMI combo, I can see 
> that my RMI client enters into setting up RMISecurityManager:
>
>if (System.getSecurityManager() == null) {
> goes in => System.setSecurityManager( new RMISecurityManager() );
>}
>
> Is that OK? I thought TC would setup security manager.
>

Setting an SM this late could cause wierd problems, depending on what 
permissions it doesn't grant, so it's probably at the least a bad idea.  TC 
only sets up the SM if you start it with '-security'.

> Now, my question is, what about Tomcat? If I want to run this, what do I 
> need to do?
>
> If I get it, I need to:
>
> - setup catalina.policy
> - run it with "-security" option
>
> I'm on Windows XP, how do I enable security mode  for TC?

That's the idea.  And, as a bonus, it works the same on Linux, Solaris, 
OS/X, .

>
> Am I barking up the wrong tree?
>
> Nix. 




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



Tomcat and RMI client - setup

2005-05-27 Thread Nikola Milutinovic

Hi all.

This might be a simple question. I have a working RMI client and server. 
I have tested it no problem. Now I would like to make a JSP/Servlet that 
will act as a RMI client and connect to the RMI server running outside 
Tomcat JVM.


I keep running into access permission violations. I understand that I 
need to setup security policy, I had that for RMI. One thing than makes 
me slightly suspicious, is the fact that when I debug TC/RMI combo, I 
can see that my RMI client enters into setting up RMISecurityManager:


   if (System.getSecurityManager() == null) {
goes in => System.setSecurityManager( new RMISecurityManager() );
   }

Is that OK? I thought TC would setup security manager.

Now, my question is, what about Tomcat? If I want to run this, what do I 
need to do?


If I get it, I need to:

- setup catalina.policy
- run it with "-security" option

I'm on Windows XP, how do I enable security mode  for TC?

Am I barking up the wrong tree?

Nix.

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



JMX remoting by RMI

2004-09-03 Thread Sebastien Brunot
Hi,

 

How do you enable remote access to the JMX Server by RMI in Tomcat 4.1.30 ?
I'd like to access a custom MBean, which i register to the Tomcat JMX Server
in my webapp, via RMI.

 

Thanks for your help,

 

Sebastien



Intercepting RMI over IIOP calls

2004-08-09 Thread Arif Siddiqui
Hi,

I wish to intercept RMI over IIOP calls made from Tomcat and add some
information (in the form of ServiceContext) to them.  What is the best
way to go about doing it.  Does Tomcat support the CORBA standard
org.omg.PortableInterceptor?

Thanks.

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



Intercepting RMI over IIOP calls

2004-08-09 Thread Arif Siddiqui
Hi,

I wish to intercept RMI over IIOP calls made from Tomcat and add some
information (in the form of ServiceContext) to them.  What is the best
way to go about doing it.  Does Tomcat support the CORBA standard
org.omg.PortableInterceptor?

Thanks.

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



Tomcat - RMI Communication problem

2004-07-08 Thread Venkata madana

Hi,

I am running RMI Server and Tomcat separately. When I tried to access RMI Server from 
Tomcat I am getting this error. Tomcat running without security option. How can I Fix 
this problem?

 

 

I tried with Version 4 and 5 both of them have same problem.

 

java.lang.NoClassDefFoundError

   at sun.misc.Unsafe.ensureClassInitialized(Native Method)

   at 
sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:20)

   at 
sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)

   at java.lang.reflect.Field.acquireFieldAccessor(Field.java:779)

   at java.lang.reflect.Field.getFieldAccessor(Field.java:760)

   at java.lang.reflect.Field.getLong(Field.java:398)

   at 
java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1478)

   at java.io.ObjectStreamClass.access$400(ObjectStreamClass.java:47)

   at java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:335)

   at java.security.AccessController.doPrivileged(Native Method)

   at java.io.ObjectStreamClass.(ObjectStreamClass.java:333)

   at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:253)

   at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:453)

   at 
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)

   at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)

   at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)

   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)

   at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)

   at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)

   at java.rmi.Naming.lookup(Naming.java:84)

   at 
com.etechnician.util.RmiUtil.getInterfaceToRemoteObject(RmiUtil.java:56)

   at 
com.snapon.etechnician.web.monitor.action.TaskEngineStatusAction.doPerform(TaskEngineStatusAction.java:52)

   at 
com.snapon.etechnician.web.monitor.action.MonitorAppAction.execute(MonitorAppAction.java:41)

   at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)

   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)

   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

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

   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

   at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)

   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)

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

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

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

   at

Tomcat 4.1.29 RMI White Spaces

2004-07-01 Thread PATTUS Jean-Philippe
Hello the list,
I've got a rmi server and a web application under Tomcat 4.1.29 running on
the same machine.
When i run a sample test rmi client without Tomcat , i acces to my remorte
object with no problem.
Under Tomcat i have a remote exception :
java.rmi.ServerException: RemoteException occurred in server thread; nested
exception is: 
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is: 
java.net.MalformedURLException: no protocol:
Content/WEB-INF/classes/
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:7
01)
at java.lang.Thread.run(Thread.java:534)
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:247)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)

I imagine that someone try to access to my class with File.toUrl and so the
white spaces is not change in %20.
My class is under C:/Projects/.../Web Content/WEB-INF/classes...


If someone can help ...

@+ jp

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



RE: Tomcat4 RMI class loading bermuda triangle

2004-06-23 Thread Cox, Charlie
Try copying your classes to /common/lib (or /common/classes). This way they
are available to tomcat internal classes also.

Is that the full stack trace? The class hierarchy that invokes Class.forName
will help identify which classloader is trying to load your classes. I
suspect one of tomcat's own classes.

Charlie

> -Original Message-
> From: Guillaume Boutard [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 23, 2004 4:43 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat4 RMI class loading bermuda triangle
> 
> Hi every body,
> I'm trying to fix this problem for one week and i'm turning crazy right
now.
> I have this servlet working perfectly, finding every package i put in
> /var/tomcat4/shared/lib except that it doesn't find my RMIServer class
> for casting
> i get a
> [java.lang.ClassNotFoundException] - myRMIServerClass
>org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
Source)
>org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
Source)
>java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>java.lang.Class.forName0(Native Method)
>java.lang.Class.forName(Class.java:141)
> 
> all classes are in the jar with the stub and skeleton (i tried to put
> classes in WEB_INF/classes of my servlet but same problem... so i guess
> this is not the real problem)
> 
> I have set in catalina policy file a:
> grant {
> permission java.security.AllPermission;
> };
> to be sure there's no problem of security. i changed the init.d/tomcat4
> script to add -security to the starting line to be sure that it is
> started the right way
> 
> 
> I used to try the same code with tomcat 3 and i changed to tomcat 4
> because of a rmi jni problem reported on mailing lists (i spent so much
> time on tomcat4 that i can't remember what was the previous one) but i
> can't even get that far with tomcat4
> 
> My version is a rpm 4.2.1 for Red Hat
> 
> Does someone understand what's going on
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat4 RMI class loading bermuda triangle

2004-06-23 Thread Guillaume Boutard
Hi every body,
I'm trying to fix this problem for one week and i'm turning crazy right now.
I have this servlet working perfectly, finding every package i put in 
/var/tomcat4/shared/lib except that it doesn't find my RMIServer class 
for casting
i get a
[java.lang.ClassNotFoundException] - myRMIServerClass
  org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown Source)
  org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown Source)
  java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
  java.lang.Class.forName0(Native Method)
  java.lang.Class.forName(Class.java:141)

all classes are in the jar with the stub and skeleton (i tried to put 
classes in WEB_INF/classes of my servlet but same problem... so i guess 
this is not the real problem)

I have set in catalina policy file a:
grant {
   permission java.security.AllPermission;
};
to be sure there's no problem of security. i changed the init.d/tomcat4 
script to add -security to the starting line to be sure that it is 
started the right way

I used to try the same code with tomcat 3 and i changed to tomcat 4 
because of a rmi jni problem reported on mailing lists (i spent so much 
time on tomcat4 that i can't remember what was the previous one) but i 
can't even get that far with tomcat4

My version is a rpm 4.2.1 for Red Hat
Does someone understand what's going on
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: RMI Problem

2004-05-26 Thread Christoph Mangold

Hi Yoav,

thank you very much for this reference. As pointed out there, the solution
was to unexport the registry itself with:
UnicastRemoteObject.unexportObject(registry, force);

Chris


On Tue, 25 May 2004, Shapira, Yoav wrote:

>
> Hi,
> I think you're doing the right thing.  See also
> http://archives.java.sun.com/cgi-bin/wa?A2=ind0104&L=rmi-users&P=R25414&;
> I=
>
> Yoav Shapira
> Millennium Research Informatics
>
>
> >-Original Message-
> >From: Christoph Mangold [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, May 25, 2004 1:55 PM
> >To: Tomcat Users List
> >Subject: RE: RMI Problem
> >
> >
> >Thanks for your reply.
> >
> >Unfortunately shutting down the registry seems not to work (although I
> >tried hard I could not find a way to do this). Instead, on shutdown
> (i.e.
> >in my ServletContextListener.contextDestroyed()-method), I unexport my
> >remote objects and unbind them in the registry.
> >
> >Does anyone know of a better way to do this?
> >
> >Chris
> >
> >
> >On Tue, 25 May 2004, Shapira, Yoav wrote:
> >
> >>
> >> Hi,
> >> You have to shutdown your RMI registery properly during the webapp's
> >> shutdown (the first part of the reload is a shutdown).  Use a
> >> ServletContextListener's contextDestroyed method for this.
> >>
> >> Yoav Shapira
> >> Millennium Research Informatics
> >>
> >>
> >> >-Original Message-
> >> >From: Christoph Mangold [mailto:[EMAIL PROTECTED]
> >> >Sent: Tuesday, May 25, 2004 3:22 AM
> >> >To: [EMAIL PROTECTED]
> >> >Subject: RMI Problem
> >> >
> >> >
> >> >I am trying to run an rmi registry as part of a servlet context in
> >> tomcat
> >> >5.0.19. When I startup tomcat the first time everything works fine.
> >> >However, if I redeploy my application using tomcat's
> ant-reload-target
> >> I
> >> >get the following exception (server side) when trying to connect
> from
> >> the
> >> >(RMI) client:
> >> >
> >> >Exception dispatching call to [0:0:0, 0] in thread "RMI TCP
> >> >Connection(7)-129.69.216.97" at Wed May 19 15:45:06 CEST 2004:
> >> >java.lang.NullPointerException
> >> >at
> >>
> >org.apache.catalina.loader.WebappClassLoader.getURLs(WebappClassLoader.
> >> java
> >> >:1431)
> >> >at
> >>
> >sun.rmi.server.LoaderHandler.getClassAnnotation(LoaderHandler.java:221)
> >> >at
> >>
> >java.rmi.server.RMIClassLoader$2.getClassAnnotation(RMIClassLoader.java
> >> :650
> >> >)
> >> >at
> >>
> >java.rmi.server.RMIClassLoader.getClassAnnotation(RMIClassLoader.java:3
> >> 80)
> >> >at
> >>
> >sun.rmi.server.MarshalOutputStream.annotateClass(MarshalOutputStream.ja
> >> va:7
> >> >8)
> >> >at
> >>
> >java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:11
> >> 47)
> >> >at
> >>
> >java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1100)
> >> >at
> >>
> >java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:
> >> 1241
> >> >)
> >> >at
> >>
> >java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
> >> >at
> >> >java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
> >> >at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown
> Source)
> >> >at
> >>
> >sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:342)
> >> >at
> >> >sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207)
> >> >at sun.rmi.transport.Transport$1.run(Transport.java:148)
> >> >at java.security.AccessController.doPrivileged(Native
> Method)
> >> >at
> sun.rmi.transport.Transport.serviceCall(Transport.java:144)
> >> >at
> >>
> >sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460
> >> )
> >> >at
> >>
> >sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.j
> >> ava:
> >> >701)
> >> >at java.lang.Thread.run(Thread.java:534)
> >>

RE: RMI Problem

2004-05-25 Thread Shapira, Yoav

Hi,
I think you're doing the right thing.  See also
http://archives.java.sun.com/cgi-bin/wa?A2=ind0104&L=rmi-users&P=R25414&;
I=

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Christoph Mangold [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 25, 2004 1:55 PM
>To: Tomcat Users List
>Subject: RE: RMI Problem
>
>
>Thanks for your reply.
>
>Unfortunately shutting down the registry seems not to work (although I
>tried hard I could not find a way to do this). Instead, on shutdown
(i.e.
>in my ServletContextListener.contextDestroyed()-method), I unexport my
>remote objects and unbind them in the registry.
>
>Does anyone know of a better way to do this?
>
>Chris
>
>
>On Tue, 25 May 2004, Shapira, Yoav wrote:
>
>>
>> Hi,
>> You have to shutdown your RMI registery properly during the webapp's
>> shutdown (the first part of the reload is a shutdown).  Use a
>> ServletContextListener's contextDestroyed method for this.
>>
>> Yoav Shapira
>> Millennium Research Informatics
>>
>>
>> >-----Original Message-
>> >From: Christoph Mangold [mailto:[EMAIL PROTECTED]
>> >Sent: Tuesday, May 25, 2004 3:22 AM
>> >To: [EMAIL PROTECTED]
>> >Subject: RMI Problem
>> >
>> >
>> >I am trying to run an rmi registry as part of a servlet context in
>> tomcat
>> >5.0.19. When I startup tomcat the first time everything works fine.
>> >However, if I redeploy my application using tomcat's
ant-reload-target
>> I
>> >get the following exception (server side) when trying to connect
from
>> the
>> >(RMI) client:
>> >
>> >Exception dispatching call to [0:0:0, 0] in thread "RMI TCP
>> >Connection(7)-129.69.216.97" at Wed May 19 15:45:06 CEST 2004:
>> >java.lang.NullPointerException
>> >at
>>
>org.apache.catalina.loader.WebappClassLoader.getURLs(WebappClassLoader.
>> java
>> >:1431)
>> >at
>>
>sun.rmi.server.LoaderHandler.getClassAnnotation(LoaderHandler.java:221)
>> >at
>>
>java.rmi.server.RMIClassLoader$2.getClassAnnotation(RMIClassLoader.java
>> :650
>> >)
>> >at
>>
>java.rmi.server.RMIClassLoader.getClassAnnotation(RMIClassLoader.java:3
>> 80)
>> >at
>>
>sun.rmi.server.MarshalOutputStream.annotateClass(MarshalOutputStream.ja
>> va:7
>> >8)
>> >at
>>
>java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:11
>> 47)
>> >at
>>
>java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1100)
>> >at
>>
>java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:
>> 1241
>> >)
>> >at
>>
>java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
>> >at
>> >java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
>> >at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown
Source)
>> >at
>>
>sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:342)
>> >    at
>> >sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207)
>> >at sun.rmi.transport.Transport$1.run(Transport.java:148)
>> >at java.security.AccessController.doPrivileged(Native
Method)
>> >at
sun.rmi.transport.Transport.serviceCall(Transport.java:144)
>> >at
>>
>sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460
>> )
>> >at
>>
>sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.j
>> ava:
>> >701)
>> >at java.lang.Thread.run(Thread.java:534)
>> >
>> >Exception dispatching call to [0:0:0, 0] in thread "RMI TCP
>> >Connection(7)-129.69.216.97" at Wed May 19 15:45:06 CEST 2004:
>> >java.rmi.UnmarshalException: error unmarshalling call header; nested
>> >exception is:
>> >java.io.StreamCorruptedException: result already in progress
>> >at
>> >sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:217)
>> >at sun.rmi.transport.Transport$1.run(Transport.java:148)
>> >at java.security.AccessController.doPrivileged(Native
Method)
>> >at
sun.rmi.transport.Transport.serviceCall(Transport.java:144)
>> >at
>>
>sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460
>> )
>> >at
>>

RE: RMI Problem

2004-05-25 Thread Christoph Mangold

Thanks for your reply.

Unfortunately shutting down the registry seems not to work (although I
tried hard I could not find a way to do this). Instead, on shutdown (i.e.
in my ServletContextListener.contextDestroyed()-method), I unexport my
remote objects and unbind them in the registry.

Does anyone know of a better way to do this?

Chris


On Tue, 25 May 2004, Shapira, Yoav wrote:

>
> Hi,
> You have to shutdown your RMI registery properly during the webapp's
> shutdown (the first part of the reload is a shutdown).  Use a
> ServletContextListener's contextDestroyed method for this.
>
> Yoav Shapira
> Millennium Research Informatics
>
>
> >-Original Message-
> >From: Christoph Mangold [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, May 25, 2004 3:22 AM
> >To: [EMAIL PROTECTED]
> >Subject: RMI Problem
> >
> >
> >I am trying to run an rmi registry as part of a servlet context in
> tomcat
> >5.0.19. When I startup tomcat the first time everything works fine.
> >However, if I redeploy my application using tomcat's ant-reload-target
> I
> >get the following exception (server side) when trying to connect from
> the
> >(RMI) client:
> >
> >Exception dispatching call to [0:0:0, 0] in thread "RMI TCP
> >Connection(7)-129.69.216.97" at Wed May 19 15:45:06 CEST 2004:
> >java.lang.NullPointerException
> >at
> >org.apache.catalina.loader.WebappClassLoader.getURLs(WebappClassLoader.
> java
> >:1431)
> >at
> >sun.rmi.server.LoaderHandler.getClassAnnotation(LoaderHandler.java:221)
> >at
> >java.rmi.server.RMIClassLoader$2.getClassAnnotation(RMIClassLoader.java
> :650
> >)
> >at
> >java.rmi.server.RMIClassLoader.getClassAnnotation(RMIClassLoader.java:3
> 80)
> >at
> >sun.rmi.server.MarshalOutputStream.annotateClass(MarshalOutputStream.ja
> va:7
> >8)
> >at
> >java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:11
> 47)
> >at
> >java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1100)
> >at
> >java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:
> 1241
> >)
> >at
> >java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
> >at
> >java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
> >at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
> >at
> >sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:342)
> >at
> >sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207)
> >at sun.rmi.transport.Transport$1.run(Transport.java:148)
> >at java.security.AccessController.doPrivileged(Native Method)
> >at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
> >at
> >sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460
> )
> >at
> >sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.j
> ava:
> >701)
> >at java.lang.Thread.run(Thread.java:534)
> >
> >Exception dispatching call to [0:0:0, 0] in thread "RMI TCP
> >Connection(7)-129.69.216.97" at Wed May 19 15:45:06 CEST 2004:
> >java.rmi.UnmarshalException: error unmarshalling call header; nested
> >exception is:
> >java.io.StreamCorruptedException: result already in progress
> >at
> >sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:217)
> >at sun.rmi.transport.Transport$1.run(Transport.java:148)
> >at java.security.AccessController.doPrivileged(Native Method)
> >at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
> >at
> >sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460
> )
> >at
> >sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.j
> ava:
> >701)
> >at java.lang.Thread.run(Thread.java:534)
> >Caused by: java.io.StreamCorruptedException: result already in progress
> >at
> >sun.rmi.transport.StreamRemoteCall.getResultStream(StreamRemoteCall.jav
> a:16
> >1)
> >at
> >sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:347)
> >at
> >sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207)
> >... 6 more
> >
> >
> >Any idea how I can deal with this?
> >Chris
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED

RE: RMI Problem

2004-05-25 Thread Shapira, Yoav

Hi,
You have to shutdown your RMI registery properly during the webapp's
shutdown (the first part of the reload is a shutdown).  Use a
ServletContextListener's contextDestroyed method for this.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Christoph Mangold [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 25, 2004 3:22 AM
>To: [EMAIL PROTECTED]
>Subject: RMI Problem
>
>
>I am trying to run an rmi registry as part of a servlet context in
tomcat
>5.0.19. When I startup tomcat the first time everything works fine.
>However, if I redeploy my application using tomcat's ant-reload-target
I
>get the following exception (server side) when trying to connect from
the
>(RMI) client:
>
>Exception dispatching call to [0:0:0, 0] in thread "RMI TCP
>Connection(7)-129.69.216.97" at Wed May 19 15:45:06 CEST 2004:
>java.lang.NullPointerException
>at
>org.apache.catalina.loader.WebappClassLoader.getURLs(WebappClassLoader.
java
>:1431)
>at
>sun.rmi.server.LoaderHandler.getClassAnnotation(LoaderHandler.java:221)
>at
>java.rmi.server.RMIClassLoader$2.getClassAnnotation(RMIClassLoader.java
:650
>)
>at
>java.rmi.server.RMIClassLoader.getClassAnnotation(RMIClassLoader.java:3
80)
>at
>sun.rmi.server.MarshalOutputStream.annotateClass(MarshalOutputStream.ja
va:7
>8)
>at
>java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:11
47)
>at
>java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1100)
>at
>java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:
1241
>)
>at
>java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
>at
>java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
>at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
>at
>sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:342)
>at
>sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207)
>at sun.rmi.transport.Transport$1.run(Transport.java:148)
>at java.security.AccessController.doPrivileged(Native Method)
>at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
>at
>sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460
)
>at
>sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.j
ava:
>701)
>at java.lang.Thread.run(Thread.java:534)
>
>Exception dispatching call to [0:0:0, 0] in thread "RMI TCP
>Connection(7)-129.69.216.97" at Wed May 19 15:45:06 CEST 2004:
>java.rmi.UnmarshalException: error unmarshalling call header; nested
>exception is:
>java.io.StreamCorruptedException: result already in progress
>at
>sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:217)
>at sun.rmi.transport.Transport$1.run(Transport.java:148)
>at java.security.AccessController.doPrivileged(Native Method)
>at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
>at
>sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460
)
>at
>sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.j
ava:
>701)
>at java.lang.Thread.run(Thread.java:534)
>Caused by: java.io.StreamCorruptedException: result already in progress
>at
>sun.rmi.transport.StreamRemoteCall.getResultStream(StreamRemoteCall.jav
a:16
>1)
>at
>sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:347)
>at
>sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207)
>... 6 more
>
>
>Any idea how I can deal with this?
>Chris
>
>-
>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]



RMI Problem

2004-05-25 Thread Christoph Mangold

I am trying to run an rmi registry as part of a servlet context in tomcat
5.0.19. When I startup tomcat the first time everything works fine.
However, if I redeploy my application using tomcat's ant-reload-target I
get the following exception (server side) when trying to connect from the
(RMI) client:

Exception dispatching call to [0:0:0, 0] in thread "RMI TCP
Connection(7)-129.69.216.97" at Wed May 19 15:45:06 CEST 2004:
java.lang.NullPointerException
at
org.apache.catalina.loader.WebappClassLoader.getURLs(WebappClassLoader.java:1431)
at
sun.rmi.server.LoaderHandler.getClassAnnotation(LoaderHandler.java:221)
at
java.rmi.server.RMIClassLoader$2.getClassAnnotation(RMIClassLoader.java:650)
at
java.rmi.server.RMIClassLoader.getClassAnnotation(RMIClassLoader.java:380)
at
sun.rmi.server.MarshalOutputStream.annotateClass(MarshalOutputStream.java:78)
at
java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1147)
at
java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1100)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1241)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at
sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:342)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)

Exception dispatching call to [0:0:0, 0] in thread "RMI TCP
Connection(7)-129.69.216.97" at Wed May 19 15:45:06 CEST 2004:
java.rmi.UnmarshalException: error unmarshalling call header; nested
exception is:
java.io.StreamCorruptedException: result already in progress
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:217)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.io.StreamCorruptedException: result already in progress
at
sun.rmi.transport.StreamRemoteCall.getResultStream(StreamRemoteCall.java:161)
at
sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:347)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207)
... 6 more


Any idea how I can deal with this?
Chris

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



Jmx HTTP/RMI Adaptors not found in Tomcat 4.1.29

2004-04-14 Thread Boulay Arnaud
Hello, I have some exceptions on Jmx setting :
 
14/04/2004 19:00:17,437 INFO  app Creating Naming:name=rmiregistry
14/04/2004 19:00:17,437 ERROR app MX4j RMI adapter not loaded: javax.management.
ReflectionException: null nested exception is java.lang.ClassNotFoundException:
mx4j.adaptor.rmi.jrmp.JRMPAdaptor
14/04/2004 19:00:17,453 INFO  app className [com.sun.jdmk.comm.HtmlAdaptorServer
] does not exist
14/04/2004 19:00:17,453 WARN  app No adaptors were loaded but mx.enabled was def
ined.
14/04/2004 19:00:17,468 INFO  app Registering the JMX hierarchy for Log4J
14/04/2004 19:00:17,562 INFO  app Jk running ID=0 time=15/359  config=C:\apache\
jakarta-tomcat-4.1.29\conf\jk2.properties
 
Althougth I copy jmx jars files (v2.0.1) in tomcat common and server libs ...
Thanks for your help.
Regards,
Arnaud


setting codebase for rmi in servlet running in tomcat does not work

2004-04-07 Thread Markus Reis
dear all,

over the last days i have tried to set up an rmi server in a cocoon 
servlet running in tomcat (4.1.27, started via maven goal appserver:start);
all i want/need to do starting my rmi server is:
(1) start the rmiregistry (via 
LocateRegistry.createRegistry();  //therefore the classpath 
should be unset
(2) set the java.rmi.server.codebase property to the specific 
webaccessible tomcat folder where my class files reside
(3) create a (remote) object and bind it under a specific servicename to 
the registry

(2) seems to work (if i use 
System.getProperty("java.rmi.server.codebase") the right value is 
displayed), BUT it does NOT
-> when a rmiClient tries to get the remote object a 
ClassNotFoundException is thrown (due to not finding the stub class of 
the remote object, which results from the obviously wrong codebase 
property)

if i run the same code ((1)-(3)) outside the cocoon servlet (running in 
tomcat) everything works fine (although i use the same running tomcat 
for dynamically downloading the stub files) !

WHAT am i doing wrong ???
does anybody know if properties can not be set if tomcat is running  or 
if im running a cocoon servlet (running in tomcat) ???

i would greatly appreciate your help
thanks
markus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Deploying RMI in Tomcat

2004-03-29 Thread h0004429
Dear all,
I am newbie to RMI and has successfully run the RMI server in the java tutorial
example helloworld. However, when I come to Tomcat, I have problem with it. Is
there any difference and specific procedure I need to do.
I just put my code in the webapps/examples/WEB-INF/myclasses, run the
rmiregistry, and run the implementation.
However, my client applet seem to get nth from calling the remote method.

Yours sincerely,
James


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



Promlem calling RMI server from Tomcat 4.1.29

2004-02-04 Thread Karan
Hello All,

I'm facing a strange problem while trying to make calls to a RMI server from Tomcat 
ver 4.1.29. 
The RMI client runs fine as a standalone program but the put under servlet or invoked 
by a webservice running under Tomcat, it gives the below mentioned error. Also another 
observation is that I can use methods for which I have to pass strings when I have to 
pass objects, I get the error. 

java.rmi.MarshalException: error marshalling arguments; nested exception is: 
 java.net.SocketException: Connection reset by peer: socket write error
 at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)


The RMI server is Redhat Linux and Tomcat under windows XP home.

Any help appreciated.

- Karan


Re: rmi performance under tomcat

2004-01-28 Thread Tim Funk
There was a bugzilla report about this in 4.1.??. It turned out there was a 
lot of calls to something or lack of caching or something else. (Or maybe is 
was a tomcat-dev discussion) In either case - it was many months ago.

I don't know if this got fixed in 4.1 or if the root cause was just exposed. 
Whatever it was, it won't be fixed in 4.0.X

Thats all the details I can remember.

-Tim

Johan Coens wrote:

Hello all,

I have an application which heavily uses rmi. Because the poor performance
under tomcat, i tried some other app servers to compare. I came up with the
following results:
- tomcat 4.0.6
- websphere 5.0
- orion 2.0.2
- jetty 4.2.15
orion 1.2 sec
websphere 1.2 sec
tomcat 8.4 sec
jetty 1.1 sec
All tests ran under the same jdk (1.3.1_06), same machine, same
configuration, default install etc. I know I use old jdk's and old tomcat
version, but I have tried newer tomcat (4.1.28, 5.0) and newer jdk's
(1.4.2), but that only showed slight performance gain.
I used JProbe to find out what the bottleneck would be, it showed that 67%
off all method time goes to java.rmi.server.RemoteRef.invoke and 20% goes to
java.rmi.Registry.Lookup.
Is it a known issue or known configuration issue, is there a way to speed up
this performance? The test machine running is WinXp 1.8Ghz, 512Mb mem.
Cheers,
Johan


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


RE: rmi performance under tomcat

2004-01-28 Thread Shapira, Yoav

Howdy,
Why do you think tomcat has its own RMI implementation?  Was there
anything tomcat-specific that showed up in your profiler?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Johan Coens [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, January 28, 2004 11:24 AM
>To: Tomcat Users List
>Subject: rmi performance under tomcat
>
>Hello all,
>
>I have an application which heavily uses rmi. Because the poor
performance
>under tomcat, i tried some other app servers to compare. I came up with
the
>following results:
>
>- tomcat 4.0.6
>- websphere 5.0
>- orion 2.0.2
>- jetty 4.2.15
>
>orion 1.2 sec
>websphere 1.2 sec
>tomcat 8.4 sec
>jetty 1.1 sec
>
>All tests ran under the same jdk (1.3.1_06), same machine, same
>configuration, default install etc. I know I use old jdk's and old
tomcat
>version, but I have tried newer tomcat (4.1.28, 5.0) and newer jdk's
>(1.4.2), but that only showed slight performance gain.
>
>I used JProbe to find out what the bottleneck would be, it showed that
67%
>off all method time goes to java.rmi.server.RemoteRef.invoke and 20%
goes
>to
>java.rmi.Registry.Lookup.
>
>Is it a known issue or known configuration issue, is there a way to
speed
>up
>this performance? The test machine running is WinXp 1.8Ghz, 512Mb mem.
>
>Cheers,
>Johan
>
>
>
>-
>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]



rmi performance under tomcat

2004-01-28 Thread Johan Coens
Hello all,

I have an application which heavily uses rmi. Because the poor performance
under tomcat, i tried some other app servers to compare. I came up with the
following results:

- tomcat 4.0.6
- websphere 5.0
- orion 2.0.2
- jetty 4.2.15

orion 1.2 sec
websphere 1.2 sec
tomcat 8.4 sec
jetty 1.1 sec

All tests ran under the same jdk (1.3.1_06), same machine, same
configuration, default install etc. I know I use old jdk's and old tomcat
version, but I have tried newer tomcat (4.1.28, 5.0) and newer jdk's
(1.4.2), but that only showed slight performance gain.

I used JProbe to find out what the bottleneck would be, it showed that 67%
off all method time goes to java.rmi.server.RemoteRef.invoke and 20% goes to
java.rmi.Registry.Lookup.

Is it a known issue or known configuration issue, is there a way to speed up
this performance? The test machine running is WinXp 1.8Ghz, 512Mb mem.

Cheers,
Johan



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



Rmi registry and Tomcat

2003-11-14 Thread mourad jaber
Hi,
I'm looking for a solution to make the rmi registry load and unload in 
the same time of a webapp deploy/undeploy...
It work for deploying, but when I try to undeploy my web app, it can't 
finish to undeploy, waiting for registry to die and it never dies
It is the same when I stop Tomcat, rmi registry continue to listen on 
port 1099 and tomcat program never stop.
I unbind all objects, unexport also all of them and it doesn't change 
any thing
Is there somebody with the same pb and solve it ?
What are your solution to use rmi with tomcat ?
Thanks a lot

Mourad

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


RE: How does RMI operation differ when inside Tomcat as opposed to ou tside?

2003-08-01 Thread Jeff Lowery
Is an application launched via Webstart affected by the java policies?
Since webstart applications have to be in signed jars, I tried setting up a
policy for software with that particular signature.  Yet still no luck. 


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



How does RMI operation differ when inside Tomcat as opposed to outside?

2003-07-31 Thread Jeff Lowery
I'm doing a little test program that tests Java Webstart and RMI.  I can
download a webstart client application via Tomcat okay (using an Opera
browser), but when the client launches, it fails to retrieve the "remote"
object through RMI (actually, both are client and server are on localhost).
I'm not getting any error that I can see, but I don't see the remote data,
either. I've tested the RMI stuff outside of Tomcat and it works fine.

I'm pretty green when it comes to web app development, so it wouldn't
surprise me if I'm missing some fundamental clue here. The browser's Java
console isn't telling me a thing, unfortunately.  Are there extra policy
settings I need to make? Do I have to launch the rmiregistry from within the
webserver for it to work properly?  



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



RMI Stubs And Tomcat 4.1.24

2003-07-28 Thread Roberto Bouza

 Hello everyone,

 What I want is just to register (or cache) the RMI objects in an object.

 1.) I have a lot of RMI servers running in differents machines.
 2.) From the web server I need to connect to this servers (hevy load) from
differents users
 3.) So what I need is to cache the RMI objects in Tomcat or an Object in Tomcat
so I can access the objects fast because I don't pay the price of find the Stub
bring it to the webserver or the price to make this connection.

 What I don't know what to do, Is how I can have an object in Tomcat. I mean
like a HashMap so I can access it via JNDI...

 Thanks in advance.

-- 
= Roberto Bouza Fraga   =
===
  Research & Development Engineer
   Ella Fontanals Cisneros Holdings
 Ph: (305)-860-0116 / Fax:(305)-860-9401
===
   e-Mail:[EMAIL PROTECTED]

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



running rmi...

2003-07-17 Thread Aditya Gujarathi
i am using struts framework for my jsp pages..
one of my action class is supposed to create an object of rmi client,
and call a remote method..
the rmi client and server are well tested, compiled and stub is also
generated..
all these files are apprpriately placed on the server and client
machines along with the policy file..

but when i run the jsp, i get an error saying access denied..
could you plz tell me the detail steps as to how to specify the policy
file, and where to specify it on the client machine, and any other
settings like server.codebase setting etc...

Thanks,
Aditya


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



RE: RMI on Tomcat

2003-07-09 Thread Sanjay
I have it set in a simple directory called tomcat.
Thanks
Sanjay
--- "Bodycombe, Andrew" <[EMAIL PROTECTED]>
wrote:
> You may problems using RMI if tomcat is installed in
> a directory containing
> whitespace. (e.g. C:\Program Files\Apache
> Group\...). 
> 
> -Original Message-
> From: Sanjay [mailto:[EMAIL PROTECTED] 
> Sent: 09 July 2003 14:02
> To: Tomcat Users List
> Subject: Re: RMI on Tomcat
> 
> 
> Anybody has any ideas on this,
> Thanks again,
> Sanjay
> --- Sanjay <[EMAIL PROTECTED]> wrote:
> > I am trying to set a RMI-IIOP server on Tomcat.
> > Getting some issues. 
> > MY RMI Server works fine if I start it standalone-
> > without Tomcat. I think have been able to set
> > security
> > codebase etc correctly.
> > 
> > Environment : Tomcat 4.1, Win NT4, JDK1.4.1
> > I have issues when I start the RMIServer in
> Tomcat.
> > I can start tomcat in the secured mode and start
> my
> > RMI server successfully but then I run into two
> > different kinds of problems:
> > 
> > 1. If I run the client from the same m/c as Tomcat
> > then I can do the lookup and also do the
> > PortableRemoteObject.narrow(). But a client on a
> > difffrent m/c (in the same LAN) can not execute
> the
> > narrow() - gives classcast Exception.
> > 
> > 2. I can not execute a method on the server (even
> > when
> > I get the narrow() to succeeed). Gives error:
> > java.rmi.NoSuchObjectException: CORBA
> > OBJECT_NOT_EXIST
> > 1398079692 No
> > 
> > Has anyone done this. Any ideas suggestions would
> be
> > welcome
> > Thanks
> > Sanjay
> 
> 
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.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]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: RMI on Tomcat

2003-07-09 Thread Bodycombe, Andrew
You may problems using RMI if tomcat is installed in a directory containing
whitespace. (e.g. C:\Program Files\Apache Group\...). 

-Original Message-
From: Sanjay [mailto:[EMAIL PROTECTED] 
Sent: 09 July 2003 14:02
To: Tomcat Users List
Subject: Re: RMI on Tomcat


Anybody has any ideas on this,
Thanks again,
Sanjay
--- Sanjay <[EMAIL PROTECTED]> wrote:
> I am trying to set a RMI-IIOP server on Tomcat.
> Getting some issues. 
> MY RMI Server works fine if I start it standalone-
> without Tomcat. I think have been able to set
> security
> codebase etc correctly.
> 
> Environment : Tomcat 4.1, Win NT4, JDK1.4.1
> I have issues when I start the RMIServer in Tomcat.
> I can start tomcat in the secured mode and start my
> RMI server successfully but then I run into two
> different kinds of problems:
> 
> 1. If I run the client from the same m/c as Tomcat
> then I can do the lookup and also do the
> PortableRemoteObject.narrow(). But a client on a
> difffrent m/c (in the same LAN) can not execute the
> narrow() - gives classcast Exception.
> 
> 2. I can not execute a method on the server (even
> when
> I get the narrow() to succeeed). Gives error:
> java.rmi.NoSuchObjectException: CORBA
> OBJECT_NOT_EXIST
> 1398079692 No
> 
> Has anyone done this. Any ideas suggestions would be
> welcome
> Thanks
> Sanjay


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.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: RMI on Tomcat

2003-07-09 Thread Sanjay
Anybody has any ideas on this,
Thanks again,
Sanjay
--- Sanjay <[EMAIL PROTECTED]> wrote:
> I am trying to set a RMI-IIOP server on Tomcat.
> Getting some issues. 
> MY RMI Server works fine if I start it standalone-
> without Tomcat. I think have been able to set
> security
> codebase etc correctly.
> 
> Environment : Tomcat 4.1, Win NT4, JDK1.4.1
> I have issues when I start the RMIServer in Tomcat.
> I can start tomcat in the secured mode and start my
> RMI server successfully but then I run into two
> different kinds of problems:
> 
> 1. If I run the client from the same m/c as Tomcat
> then I can do the lookup and also do the
> PortableRemoteObject.narrow(). But a client on a
> difffrent m/c (in the same LAN) can not execute the
> narrow() - gives classcast Exception.
> 
> 2. I can not execute a method on the server (even
> when
> I get the narrow() to succeeed). Gives error:
> java.rmi.NoSuchObjectException: CORBA
> OBJECT_NOT_EXIST
> 1398079692 No
> 
> Has anyone done this. Any ideas suggestions would be
> welcome
> Thanks
> Sanjay


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RMI-IIOP on Tomcat

2003-07-08 Thread Sanjay
I am trying to set a RMI-IIOP server on Tomcat.
Getting some issues. 
MY RMI Server works fine if I start it standalone-
without Tomcat. I think have been able to set security
codebase etc correctly.

Environment : Tomcat 4.1, Win NT4, JDK1.4.1
I have issues when I start the RMIServer in Tomcat.
I can start tomcat in the secured mode and start my
RMI server successfully but then I run into two
different kinds of problems:

1. If I run the client from the same m/c as Tomcat
then I can do the lookup and also do the
PortableRemoteObject.narrow(). But a client on a
difffrent m/c (in the same LAN) can not execute the
narrow() - gives classcast Exception.

2. I can not execute a method on the server (even when
I get the narrow() to succeeed). Gives error:
java.rmi.NoSuchObjectException: CORBA OBJECT_NOT_EXIST
1398079692 No

Has anyone done this. Any ideas suggestions would be
welcome
Thanks
Sanjay




__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Tomcat RMI and Eclipse

2003-04-03 Thread Marc Chamberlin
Well as promised, am reporting back. Christian was right and installing Tomcat into a 
directory with no spaces embedded in the path
names fixes the RMI problem. I noted in bugzilla that this problem has already been 
reported, (Bug #4543) and was resolved with the
solution that it is not going to be fixed. The basis for this decision appears to be 
that the problem with creating the URL is deep
within the JDK itself, and not within Tomcat's code.

Unless Sun is willing to commit to a quick resolution and provide a fix soon in the 
JDK, I would like to vote against this decision.
(I was unable to do so in the Bugzilla data base, as it appears to have a bug also and 
will not allow me to gain access or change my
password.) This could be fixed by changing the default installation directory for 
Tomcat such that no embedded spaces are allowed in
the installation path. Otherwise, this will render the development of RMI code within 
servlets to be extremely difficult for
new/other developers. I feel that RMI is an important technology, should be supported 
by Tomcat, and not be handicapped by such
obstacles.

 Marc



- Original Message -
From: "Marc Chamberlin" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2003 10:40 PM
Subject: Re: Tomcat RMI and Eclipse


> OH Hey! Bingo! I bet you are right Christian!! That makes sense... I will reinstall 
> Tomcat tomorrow and let you/group know...
> Thanks!!!  Marc...
>
>
> - Original Message -
> From: "Christian Traber" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, April 02, 2003 10:26 PM
> Subject: Re: Tomcat RMI and Eclipse
>
>
> > Hi,
> >
> > I had the same problem:-(
> > Group/Tomcat is part of the installation directory of tomcat (C:\Apache
> > Group\Tomcat 4.1)
> > If you install tomcat in a directory without spaces is the
> > directory-names, it should works!
> >
> > I have this problem since tomcat4.0. Where and how can we report this
> > problem?
> >
> > Regards,
> > Christian
> >
> > Marc Chamberlin wrote:
> >
> > >However, when I run the Tomcat server standalone, when the servlet makes this 
> > >particular RMI call, to this method passing and
> returning the complex Java object, I get the following exception:
> > >
> > >java.rmi.ServerException: RemoteException occurred in server thread; nested 
> > >exception is:
> > >
> > >java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
> > >
> > >java.net.MalformedURLException: no protocol: Group/Tomcat
> > >
> > >
> > >
> > >
> >
> >
> > -
> > 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 RMI and Eclipse

2003-04-02 Thread Marc Chamberlin
OH Hey! Bingo! I bet you are right Christian!! That makes sense... I will reinstall 
Tomcat tomorrow and let you/group know...
Thanks!!!  Marc...


- Original Message -
From: "Christian Traber" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2003 10:26 PM
Subject: Re: Tomcat RMI and Eclipse


> Hi,
>
> I had the same problem:-(
> Group/Tomcat is part of the installation directory of tomcat (C:\Apache
> Group\Tomcat 4.1)
> If you install tomcat in a directory without spaces is the
> directory-names, it should works!
>
> I have this problem since tomcat4.0. Where and how can we report this
> problem?
>
> Regards,
> Christian
>
> Marc Chamberlin wrote:
>
> >However, when I run the Tomcat server standalone, when the servlet makes this 
> >particular RMI call, to this method passing and
returning the complex Java object, I get the following exception:
> >
> >java.rmi.ServerException: RemoteException occurred in server thread; nested 
> >exception is:
> >
> >java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
> >
> >java.net.MalformedURLException: no protocol: Group/Tomcat
> >
> >
> >
> >
>
>
> -
> 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 RMI and Eclipse

2003-04-02 Thread Christian Traber
Hi,

I had the same problem:-(
Group/Tomcat is part of the installation directory of tomcat (C:\Apache 
Group\Tomcat 4.1)
If you install tomcat in a directory without spaces is the 
directory-names, it should works!

I have this problem since tomcat4.0. Where and how can we report this 
problem?

Regards,
Christian
Marc Chamberlin wrote:

However, when I run the Tomcat server standalone, when the servlet makes this particular RMI call, to this method passing and returning the complex Java object, I get the following exception:

java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 

java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 

java.net.MalformedURLException: no protocol: Group/Tomcat

 



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


Re: Tomcat RMI and Eclipse

2003-04-02 Thread Marc Chamberlin
Thanks Jean for replying.. No, this complex object just contains a lot of ints, 
doubles, strings, 2 vectors,  and associated
accessor methods.  I tracked down what was being stored in the two vectors that this 
object has, and one just contains strings, the
other contains a set of another complex object, (defined in the same package) but this 
second object is also serializable and only
contains strings, booleans, and ints. So there are no references to an "Eclipse" 
object or any other non-seralizeable objects or
unknown objects. All these class definitions are contained within the jar file that is 
registered to the codebase for the RMI
server. Also all these class definitions are stored within jar files that are placed 
within the WEB-INF/lib directory of the servlet
context of the Tomcat server.

It was a good thought though :-) but I am still perplexed!  Marc



- Original Message -
From: "Jean-Francois Arcand" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2003 7:53 PM
Subject: Re: Tomcat RMI and Eclipse


> Well, are you sure your complex object doesn't have any reference to an
> Eclipse object? I guess that's the problem. Since the missing object is
> not on the Tomcat classpath, then it is normal you receive that error.
>
> -- Jeanfrancois
>
> Marc Chamberlin wrote:
>
> >Thanks Chris for your thoughts... Hmmm there is no string "Group/Tomcat" anywhere 
> >in my code, so maybe it is somewhere within the
> >Tomcat code?? I don't have the Tomcat source code, but guess I could download it 
> >:-( and take a look see if no one else has more
> >info or a better idea
> >
> >Marc
> >
> >
> >- Original Message -
> >From: "Chris Gokey" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Wednesday, April 02, 2003 6:31 PM
> >Subject: Re: Tomcat RMI and Eclipse
> >
> >
> >
> >
> >>Sometimes it helps to recreate the exception...
> >>
> >>URL url = new URL("Group/Tomcat");
> >>will result in:
> >>java.net.MalformedURLException: no protocol: Group/Tomcat
> >>
> >>My guess is that since you are getting an java.rmi.ServerException, the
> >>exception is being generated on the server after the RMI connection
> >>takes place.
> >>
> >>So, it seems to me you need to find that string "Group/Tomcat" (e.g.,
> >>grep for it) and find out where that is being placed into a URL.
> >>
> >>I have no idea why this would happen with Tomcat and not in eclipse
> >>though.
> >>
> >>Chris
> >>
> >>
> >>
> >>On Wed, 2003-04-02 at 20:41, Marc Chamberlin wrote:
> >>
> >>
> >>>Hi, I have a puzzler and hope someone on this group might be able to give me a 
> >>>few pointers as to where to look for a
> >>>
> >>>
> >solution  I am running the Tomcat 4.1.18 server on a Win2000 machine and am 
> >developing a servlet which will act as an RMI
client
> >and makes remote calls to another machine. For the most part this RMI link is 
> >working, especially for remote method calls which
pass
> >and/or return simple Java objects such as ints or strings. However, I have one 
> >method which I call that passes and returns a more
> >complex object (which has been declared as serializable) and it is with this method 
> >that I am having a problem/puzzler.
> >
> >
> >>>For development purposes, I am using the Eclipse IDE with the Tomcat plugin. When 
> >>>I run the Tomcat server from within the
> >>>
> >>>
> >Eclipse IDE, and test out my servlet, everything works fine including all RMI 
> >calls, and in particular the call to this remote
> >method to which I am passing and returning a more complex Java object!
> >
> >
> >>>However, when I run the Tomcat server standalone, when the servlet makes this 
> >>>particular RMI call, to this method passing and
> >>>
> >>>
> >returning the complex Java object, I get the following exception:
> >
> >
> >>>java.rmi.ServerException: RemoteException occurred in server thread; nested 
> >>>exception is:
> >>>
> >>>java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
> >>>
> >>>java.net.MalformedURLException: no protocol: Group/Tomcat
> >>>
> >>>
> >>>
> >>>Note, t

Re: Tomcat RMI and Eclipse

2003-04-02 Thread Jean-Francois Arcand
Well, are you sure your complex object doesn't have any reference to an 
Eclipse object? I guess that's the problem. Since the missing object is 
not on the Tomcat classpath, then it is normal you receive that error.

-- Jeanfrancois

Marc Chamberlin wrote:

Thanks Chris for your thoughts... Hmmm there is no string "Group/Tomcat" anywhere in 
my code, so maybe it is somewhere within the
Tomcat code?? I don't have the Tomcat source code, but guess I could download it :-( 
and take a look see if no one else has more
info or a better idea
   Marc

- Original Message -
From: "Chris Gokey" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2003 6:31 PM
Subject: Re: Tomcat RMI and Eclipse
 

Sometimes it helps to recreate the exception...

URL url = new URL("Group/Tomcat");
will result in:
java.net.MalformedURLException: no protocol: Group/Tomcat
My guess is that since you are getting an java.rmi.ServerException, the
exception is being generated on the server after the RMI connection
takes place.
So, it seems to me you need to find that string "Group/Tomcat" (e.g.,
grep for it) and find out where that is being placed into a URL.
I have no idea why this would happen with Tomcat and not in eclipse
though.
Chris



On Wed, 2003-04-02 at 20:41, Marc Chamberlin wrote:
   

Hi, I have a puzzler and hope someone on this group might be able to give me a few pointers as to where to look for a
 

solution  I am running the Tomcat 4.1.18 server on a Win2000 machine and am developing a servlet which will act as an RMI client
and makes remote calls to another machine. For the most part this RMI link is working, especially for remote method calls which pass
and/or return simple Java objects such as ints or strings. However, I have one method which I call that passes and returns a more
complex object (which has been declared as serializable) and it is with this method that I am having a problem/puzzler.
 

For development purposes, I am using the Eclipse IDE with the Tomcat plugin. When I run the Tomcat server from within the
 

Eclipse IDE, and test out my servlet, everything works fine including all RMI calls, and in particular the call to this remote
method to which I am passing and returning a more complex Java object!
 

However, when I run the Tomcat server standalone, when the servlet makes this particular RMI call, to this method passing and
 

returning the complex Java object, I get the following exception:
 

java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:

java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:

java.net.MalformedURLException: no protocol: Group/Tomcat



Note, the servlet has made a number of RMI calls to the remote object, successfully, prior to making this particular call. Why
 

this particular call works when Tomcat is running within the Eclipse IDE and fails when Tomcat is running standalone has got me
puzzled! It does not matter whether I turn debugging on or off for the Tomcat server either. I thought maybe there  could be some
kind of race condition but these calls all occur within the main servlet thread, so I don't understand how that could be the case.
Nor can I come up with anything that might be timing related I have also checked all supporting Jar files and made sure they
were the same...  Any ideas on what else might be different between the Eclipse IDE and the Tomcat standalone environment?
 

Any thoughts appreciated   Marc



-
Do you think the software industry will ever make software
that is as easy and reliable for a user to use
as the automobile industry makes a car easy and reliable
for a user to drive?

A man said unto the universe -  "Sir, I exist!"
"However," replied the universe  "I do not see where that creates in me a sense of an obligation."
 - Stephen Crane
 

--
Christopher D. Gokey, SSAI, NASA/GCMD
18 Martin Road, Shelburne Falls, MA  01370
Phone: Voice (413) 625-8129 / FAX 208-248-9055
[EMAIL PROTECTED]
AOL: chrisgokey


-
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 RMI and Eclipse

2003-04-02 Thread Marc Chamberlin
Thanks Chris for your thoughts... Hmmm there is no string "Group/Tomcat" anywhere in 
my code, so maybe it is somewhere within the
Tomcat code?? I don't have the Tomcat source code, but guess I could download it :-( 
and take a look see if no one else has more
info or a better idea

Marc


- Original Message -
From: "Chris Gokey" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2003 6:31 PM
Subject: Re: Tomcat RMI and Eclipse


> Sometimes it helps to recreate the exception...
>
> URL url = new URL("Group/Tomcat");
> will result in:
> java.net.MalformedURLException: no protocol: Group/Tomcat
>
> My guess is that since you are getting an java.rmi.ServerException, the
> exception is being generated on the server after the RMI connection
> takes place.
>
> So, it seems to me you need to find that string "Group/Tomcat" (e.g.,
> grep for it) and find out where that is being placed into a URL.
>
> I have no idea why this would happen with Tomcat and not in eclipse
> though.
>
> Chris
>
>
>
> On Wed, 2003-04-02 at 20:41, Marc Chamberlin wrote:
> > Hi, I have a puzzler and hope someone on this group might be able to give me a few 
> > pointers as to where to look for a
solution  I am running the Tomcat 4.1.18 server on a Win2000 machine and am 
developing a servlet which will act as an RMI client
and makes remote calls to another machine. For the most part this RMI link is working, 
especially for remote method calls which pass
and/or return simple Java objects such as ints or strings. However, I have one method 
which I call that passes and returns a more
complex object (which has been declared as serializable) and it is with this method 
that I am having a problem/puzzler.
> >
> > For development purposes, I am using the Eclipse IDE with the Tomcat plugin. When 
> > I run the Tomcat server from within the
Eclipse IDE, and test out my servlet, everything works fine including all RMI calls, 
and in particular the call to this remote
method to which I am passing and returning a more complex Java object!
> >
> > However, when I run the Tomcat server standalone, when the servlet makes this 
> > particular RMI call, to this method passing and
returning the complex Java object, I get the following exception:
> >
> > java.rmi.ServerException: RemoteException occurred in server thread; nested 
> > exception is:
> >
> > java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
> >
> > java.net.MalformedURLException: no protocol: Group/Tomcat
> >
> >
> >
> > Note, the servlet has made a number of RMI calls to the remote object, 
> > successfully, prior to making this particular call. Why
this particular call works when Tomcat is running within the Eclipse IDE and fails 
when Tomcat is running standalone has got me
puzzled! It does not matter whether I turn debugging on or off for the Tomcat server 
either. I thought maybe there  could be some
kind of race condition but these calls all occur within the main servlet thread, so I 
don't understand how that could be the case.
Nor can I come up with anything that might be timing related I have also checked 
all supporting Jar files and made sure they
were the same...  Any ideas on what else might be different between the Eclipse IDE 
and the Tomcat standalone environment?
> >
> > Any thoughts appreciated   Marc
> >
> >
> >
> > -
> > Do you think the software industry will ever make software
> > that is as easy and reliable for a user to use
> > as the automobile industry makes a car easy and reliable
> >  for a user to drive?
> > 
> > A man said unto the universe -  "Sir, I exist!"
> > "However," replied the universe  "I do not see where that creates in me a sense of 
> > an obligation."
> >   - Stephen Crane
> --
> Christopher D. Gokey, SSAI, NASA/GCMD
> 18 Martin Road, Shelburne Falls, MA  01370
> Phone: Voice (413) 625-8129 / FAX 208-248-9055
> [EMAIL PROTECTED]
> AOL: chrisgokey
>
>
>
> -
> 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 RMI and Eclipse

2003-04-02 Thread Chris Gokey
Sometimes it helps to recreate the exception... 

URL url = new URL("Group/Tomcat");
will result in:
java.net.MalformedURLException: no protocol: Group/Tomcat

My guess is that since you are getting an java.rmi.ServerException, the
exception is being generated on the server after the RMI connection
takes place.

So, it seems to me you need to find that string "Group/Tomcat" (e.g.,
grep for it) and find out where that is being placed into a URL.  

I have no idea why this would happen with Tomcat and not in eclipse
though. 

Chris



On Wed, 2003-04-02 at 20:41, Marc Chamberlin wrote:
> Hi, I have a puzzler and hope someone on this group might be able to give me a few 
> pointers as to where to look for a solution  I am running the Tomcat 4.1.18 
> server on a Win2000 machine and am developing a servlet which will act as an RMI 
> client and makes remote calls to another machine. For the most part this RMI link is 
> working, especially for remote method calls which pass and/or return simple Java 
> objects such as ints or strings. However, I have one method which I call that passes 
> and returns a more complex object (which has been declared as serializable) and it 
> is with this method that I am having a problem/puzzler. 
> 
> For development purposes, I am using the Eclipse IDE with the Tomcat plugin. When I 
> run the Tomcat server from within the Eclipse IDE, and test out my servlet, 
> everything works fine including all RMI calls, and in particular the call to this 
> remote method to which I am passing and returning a more complex Java object!
> 
> However, when I run the Tomcat server standalone, when the servlet makes this 
> particular RMI call, to this method passing and returning the complex Java object, I 
> get the following exception:
> 
> java.rmi.ServerException: RemoteException occurred in server thread; nested 
> exception is: 
> 
> java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
> 
> java.net.MalformedURLException: no protocol: Group/Tomcat
> 
> 
> 
> Note, the servlet has made a number of RMI calls to the remote object, successfully, 
> prior to making this particular call. Why this particular call works when Tomcat is 
> running within the Eclipse IDE and fails when Tomcat is running standalone has got 
> me puzzled! It does not matter whether I turn debugging on or off for the Tomcat 
> server either. I thought maybe there  could be some kind of race condition but these 
> calls all occur within the main servlet thread, so I don't understand how that could 
> be the case. Nor can I come up with anything that might be timing related I have 
> also checked all supporting Jar files and made sure they were the same...  Any ideas 
> on what else might be different between the Eclipse IDE and the Tomcat standalone 
> environment?
> 
> Any thoughts appreciated   Marc
> 
> 
> 
> -
> Do you think the software industry will ever make software
> that is as easy and reliable for a user to use 
> as the automobile industry makes a car easy and reliable
>  for a user to drive?
> 
> A man said unto the universe -  "Sir, I exist!"
> "However," replied the universe  "I do not see where that creates in me a sense of 
> an obligation."
>   - Stephen Crane
-- 
Christopher D. Gokey, SSAI, NASA/GCMD
18 Martin Road, Shelburne Falls, MA  01370
Phone: Voice (413) 625-8129 / FAX 208-248-9055
[EMAIL PROTECTED]
AOL: chrisgokey



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



Tomcat RMI and Eclipse

2003-04-02 Thread Marc Chamberlin
Hi, I have a puzzler and hope someone on this group might be able to give me a few 
pointers as to where to look for a solution  I am running the Tomcat 4.1.18 server 
on a Win2000 machine and am developing a servlet which will act as an RMI client and 
makes remote calls to another machine. For the most part this RMI link is working, 
especially for remote method calls which pass and/or return simple Java objects such 
as ints or strings. However, I have one method which I call that passes and returns a 
more complex object (which has been declared as serializable) and it is with this 
method that I am having a problem/puzzler. 

For development purposes, I am using the Eclipse IDE with the Tomcat plugin. When I 
run the Tomcat server from within the Eclipse IDE, and test out my servlet, everything 
works fine including all RMI calls, and in particular the call to this remote method 
to which I am passing and returning a more complex Java object!

However, when I run the Tomcat server standalone, when the servlet makes this 
particular RMI call, to this method passing and returning the complex Java object, I 
get the following exception:

java.rmi.ServerException: RemoteException occurred in server thread; nested exception 
is: 

java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 

java.net.MalformedURLException: no protocol: Group/Tomcat



Note, the servlet has made a number of RMI calls to the remote object, successfully, 
prior to making this particular call. Why this particular call works when Tomcat is 
running within the Eclipse IDE and fails when Tomcat is running standalone has got me 
puzzled! It does not matter whether I turn debugging on or off for the Tomcat server 
either. I thought maybe there  could be some kind of race condition but these calls 
all occur within the main servlet thread, so I don't understand how that could be the 
case. Nor can I come up with anything that might be timing related I have also 
checked all supporting Jar files and made sure they were the same...  Any ideas on 
what else might be different between the Eclipse IDE and the Tomcat standalone 
environment?

Any thoughts appreciated   Marc



-
Do you think the software industry will ever make software
that is as easy and reliable for a user to use 
as the automobile industry makes a car easy and reliable
 for a user to drive?

A man said unto the universe -  "Sir, I exist!"
"However," replied the universe  "I do not see where that creates in me a sense of an 
obligation."
  - Stephen Crane

Tomcat/RMI and Spaces in Filenames

2003-02-28 Thread Bodycombe, Andrew
I am having a problem with Tomcat 4.1.18 running on Windows NT 4, and JDK
1.4

I have a servlet accessing a remote server via RMI, and the RMI calls fail
with an UnmarshallException, 
but only when the tomcat install directory contains spaces. e.g. C:\Program
Files\Apache Group\Tomcat 4.1\,
the default install directory.

I enclose the stack trace:

java.rmi.ServerException: RemoteException occurred in server thread; nested
exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.net.MalformedURLException: no protocol: Files/Apache
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception
is:
java.net.MalformedURLException: no protocol: Files/Apache
java.net.MalformedURLException: no protocol: Files/Apache
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:240)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
Source)
at
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProx
y.java:128)
at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73
)
at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
at
org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy0.create(Unknown Source)
at
uk.co.siemenscomms.eng.j2ee.model.GazetteerManager.getStreet(GazetteerManage
r.java:103)
at
uk.co.siemenscomms.eng.j2ee.action.MoreDetailsAction.perform(MoreDetailsActi
on.java:90)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
va:1786)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
at java.lang.Thread.run(Thread.java:479)


In this case, the servlet is accessing an EJB on a remote machine when the
exception occurs,
but the same happens when accessing an RMI server on the same machine, in a
different VM.

Note the "

RE: RMI Performance problem

2003-01-31 Thread Jay Lee
Just drop a comment.
Between 4 ms to 80ms, netword traffic could be effect too.  You might
consider run the script a couple more times to check if there is a
difference.



-Original Message-
From: Arachtingi, Mike [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 2:07 PM
To: [EMAIL PROTECTED]
Subject: RMI Performance problem


Has anyone noticed a performance problem, using RMI from within a web
app?  
I developed a test program that looks up a remote object, and sends it
99 messages (i.e., invokes one of the remote methods.)  When I run this
as a stand-alone program, my results show an average invocation time of
about 3 - 4ms.  When I run the same program as a web app (tomcat 4.0.1,
or 4.0.4) I'm seeing averages around 80 ms.
 
JProbe confirms that cpu time is primarily spent in
sun.rmi.server.UnicastRef.invoke( )   
 
I don't have the sun.rmi source right now (I've looked on Sun One, but
can't find it --  anyone know the URL?), so I don't have any idea what's
the hang up.
 
Anyone have insight into this?   I saw a similar thread msg77001 "RMI
Class Annotation",  in which a fellow sees 800 ms per invocation for his
test, but he was talking about JBoss, and huge classpaths.  Or, am I
having the same problem?  (I don't know anything about
RMIClassLoader.getClassAnnotation(), which he says delivers 35K bytes
from server to client in his situation.)
 
Thanks,
 
Mike Arachtingi 



RE: RMI Performance problem

2003-01-31 Thread Julius Davies
Hello, Mike Arachtingi,

>When I run this
>as a stand-alone program, my results show an average invocation time of
>about 3 - 4ms.  When I run the same program as a web app (tomcat 4.0.1,
>or 4.0.4) I'm seeing averages around 80 ms.

80ms doesn't sound too slow to me!  But you've made a very interesting observation.  I 
don't have much experience with RMI, and I've never looked at Tomcat's source code.  
But this is a mailing list, so I don't see why these facts should stop me from writing 
a response!  ;-)

In your Test program, I would try starting up a second "do nothing" thread before you 
run your RMI test.  All it would do in its run() method is this:

while ( true )
{
   synchronized( this )
   {
   wait( 10 );
   }
}

With that running, how much slower is your RMI test?

Tomcat is somehow always listening on 1 or more ports for incoming requests...  (that 
code is probably not in Tomcat, but in the JDK Socket stuff...)  Those have got to eat 
up a few resources.  Now, I don't imagine my "do nothing" thread is an accurate 
simulation of a web server waiting for incoming requests, but it must be better than 
nothing!

yours,

Julius Davies, Programmer, CUCBC
Email: [EMAIL PROTECTED], Ph: 604.730.6385


ps to Derek:  any thoughts?


> -Original Message-
> From: Arachtingi, Mike [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 31, 2003 2:07 PM
> To: [EMAIL PROTECTED]
> Subject: RMI Performance problem
> 
> 
> Has anyone noticed a performance problem, using RMI from within a web
> app?  
> I developed a test program that looks up a remote object, and sends it
> 99 messages (i.e., invokes one of the remote methods.)  When 
> I run this
> as a stand-alone program, my results show an average 
> invocation time of
> about 3 - 4ms.  When I run the same program as a web app 
> (tomcat 4.0.1,
> or 4.0.4) I'm seeing averages around 80 ms.
>  
> JProbe confirms that cpu time is primarily spent in
> sun.rmi.server.UnicastRef.invoke( )   
>  
> I don't have the sun.rmi source right now (I've looked on Sun One, but
> can't find it --  anyone know the URL?), so I don't have any 
> idea what's
> the hang up.
>  
> Anyone have insight into this?   I saw a similar thread msg77001 "RMI
> Class Annotation",  in which a fellow sees 800 ms per 
> invocation for his
> test, but he was talking about JBoss, and huge classpaths.  Or, am I
> having the same problem?  (I don't know anything about
> RMIClassLoader.getClassAnnotation(), which he says delivers 35K bytes
> from server to client in his situation.)
>  
> Thanks,
>  
> Mike Arachtingi 
> 

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




RE: RMI Performance problem

2003-01-31 Thread Filip Hanik
sorry didn't read the full email.
Performance degrading when inside of an webapp, shouldn't be doing that, unless the 
classloader is doing something funky when demarshalling your request.

what you could do is to play around putting your RMI classes in different classpaths, 
like common/lib instead of WEB-INF/lib and see if that yields a difference

Filip

-Original Message-
From: Filip Hanik 
Sent: Friday, January 31, 2003 2:16 PM
To: Tomcat Users List
Subject: RE: RMI Performance problem


RMI has never been fast. It uses java serialization to marshall requests.
hence it is slow. The more complicated objects you send over the request, the slower 
it gets.

Filip

-Original Message-
From: Arachtingi, Mike [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 2:07 PM
To: [EMAIL PROTECTED]
Subject: RMI Performance problem


Has anyone noticed a performance problem, using RMI from within a web
app?  
I developed a test program that looks up a remote object, and sends it
99 messages (i.e., invokes one of the remote methods.)  When I run this
as a stand-alone program, my results show an average invocation time of
about 3 - 4ms.  When I run the same program as a web app (tomcat 4.0.1,
or 4.0.4) I'm seeing averages around 80 ms.
 
JProbe confirms that cpu time is primarily spent in
sun.rmi.server.UnicastRef.invoke( )   
 
I don't have the sun.rmi source right now (I've looked on Sun One, but
can't find it --  anyone know the URL?), so I don't have any idea what's
the hang up.
 
Anyone have insight into this?   I saw a similar thread msg77001 "RMI
Class Annotation",  in which a fellow sees 800 ms per invocation for his
test, but he was talking about JBoss, and huge classpaths.  Or, am I
having the same problem?  (I don't know anything about
RMIClassLoader.getClassAnnotation(), which he says delivers 35K bytes
from server to client in his situation.)
 
Thanks,
 
Mike Arachtingi 

-
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: RMI Performance problem

2003-01-31 Thread Filip Hanik
RMI has never been fast. It uses java serialization to marshall requests.
hence it is slow. The more complicated objects you send over the request, the slower 
it gets.

Filip

-Original Message-
From: Arachtingi, Mike [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 2:07 PM
To: [EMAIL PROTECTED]
Subject: RMI Performance problem


Has anyone noticed a performance problem, using RMI from within a web
app?  
I developed a test program that looks up a remote object, and sends it
99 messages (i.e., invokes one of the remote methods.)  When I run this
as a stand-alone program, my results show an average invocation time of
about 3 - 4ms.  When I run the same program as a web app (tomcat 4.0.1,
or 4.0.4) I'm seeing averages around 80 ms.
 
JProbe confirms that cpu time is primarily spent in
sun.rmi.server.UnicastRef.invoke( )   
 
I don't have the sun.rmi source right now (I've looked on Sun One, but
can't find it --  anyone know the URL?), so I don't have any idea what's
the hang up.
 
Anyone have insight into this?   I saw a similar thread msg77001 "RMI
Class Annotation",  in which a fellow sees 800 ms per invocation for his
test, but he was talking about JBoss, and huge classpaths.  Or, am I
having the same problem?  (I don't know anything about
RMIClassLoader.getClassAnnotation(), which he says delivers 35K bytes
from server to client in his situation.)
 
Thanks,
 
Mike Arachtingi 

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




RMI Performance problem

2003-01-31 Thread Arachtingi, Mike
Has anyone noticed a performance problem, using RMI from within a web
app?  
I developed a test program that looks up a remote object, and sends it
99 messages (i.e., invokes one of the remote methods.)  When I run this
as a stand-alone program, my results show an average invocation time of
about 3 - 4ms.  When I run the same program as a web app (tomcat 4.0.1,
or 4.0.4) I'm seeing averages around 80 ms.
 
JProbe confirms that cpu time is primarily spent in
sun.rmi.server.UnicastRef.invoke( )   
 
I don't have the sun.rmi source right now (I've looked on Sun One, but
can't find it --  anyone know the URL?), so I don't have any idea what's
the hang up.
 
Anyone have insight into this?   I saw a similar thread msg77001 "RMI
Class Annotation",  in which a fellow sees 800 ms per invocation for his
test, but he was talking about JBoss, and huge classpaths.  Or, am I
having the same problem?  (I don't know anything about
RMIClassLoader.getClassAnnotation(), which he says delivers 35K bytes
from server to client in his situation.)
 
Thanks,
 
Mike Arachtingi 



Wanted: Documentation on HTTP/RMI Tunnelling

2003-01-28 Thread Richard Heintze

Can someone give the the URL where it explicitly says that Tomcat supports Java 
RMI/HTTP tunneling (with callbacks) on Port 80?

Thanks,

 Siegfried



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


RMI Problem with Tomcat

2003-01-27 Thread Ashwin Desai
My servlet connects to a rmi server which is running on the same
machine as Tomcat 4.1. 

But, I get a queer exception "NotBoundException" at Naming.lookup. I
printed out the list of servers bound in the registry using
Naming.list and I can see my rmi server listed. So, I am just puzzled
as to why the servlet is not able to connect. A standalone program
can however connect to the server. 

I am not using tomcat with the -security flag turned on. 

I would appreciate any help in this matter.

Thanks
Ashwin.

=
Ashwin Desai.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: Problems with RMI and Axis in Tomcat??

2003-01-15 Thread Anecito, Anthony (HQP)
Hi All,

I am a newbe to Tomcat & Axis but learned a lot over the past couple of
evenings. I did solve the problem! I learned the following:

1. Do not trust the error messages coming back to the Axis Client. They are
filtered such that the root cause may not be displayed.
2. Launch Tomcat in a separate console window instead of as a service under
Win/NT so you can see the entire trace of exceptions. This is what helped me
A LOT.
3. If using rmi from inside a Axis service be very careful since the
demarshaling of objects at the client will fail with malformed URL because
of the space in the folder name "Tomcat 4.1".
4. RMI failures inside a Axis service will cause Tomcat to crash and you
will not know it because you get the same socket disconnect error regardless
of the true problem.
5. Always make sure the RMI classes for both client and server are the same
package structure otherwise the registry will not send the classes to the
client or server. In Tomcat the Axis service will throw the exception in the
cmd window.

Hopefully I will not lose more time now that I have a working methodology
for troubleshooting these interesting problems.

Hope this message helps others.

-Tony

Hi All,

Has anyone tried using rmi calls inside of a Axis service on Tomcat? Using
Tomcat 4.1.12 on Windows NT. I get errors about access permissions at
127.0.0.1:1099 showing up in the stdout log file in the common/logs
directory. I have set permissions on my dev machine for tomcat in
catalina.policy to allow for all permissions. Am I the first to try rmi
calls (client-side) inside a Axis service??

Many Thanks




Problems with RMI and Axis in Tomcat??

2003-01-13 Thread Anecito, Anthony (HQP)
Hi All,

Has anyone tried using rmi calls inside of a Axis service on Tomcat? Using
Tomcat 4.1.12 on Windows NT. I get errors about access permissions at
127.0.0.1:1099 showing up in the stdout log file in the common/logs
directory. I have set permissions on my dev machine for tomcat in
catalina.policy to allow for all permissions. Am I the first to try rmi
calls (client-side) inside a Axis service??

Many Thanks




Wanted: docs on Applet-Servlet RMI on Port 80

2002-12-31 Thread Richard Heintze

I've been studying chapt 10 of 2nd Edition of Jason Hunters' Java Servlet Programming. 

Much to my dismay, I cannot find where the second edition says Applet-Servlet RMI 
works on Port 80. I'm sure the first edition talked about using port 80 with RMI 
callbacks.

Can someone point me to the Tomcat documentation that says how to implement RMI on 
port 80 with Applet/Servlet communication? I cannot find it!



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Re: i have problem about rmi with tomcat4.1.12-LE-jdk14

2002-12-26 Thread Jared Walker
Looks to me like you're using this on a windows machine. The space in
the file name is giving RMI a hard time. Move your tomcat installation
to a location that doesn't have a space (i.e. C:\tomcat). This should
fix your problem.

later,
-Jared

On Wed, 2002-12-25 at 21:35, Kosit Krepanich wrote:
> Hi. i have problem.
> 
> Why i use RMI in servlet code and run in tomcat4.1.12-LE-jdk14.
> 
> it can get object but when it use that object its error :
> 
>   java.rmi.UnmarshalException: error unmarshalling arguments; nested
> exception is: java.net.MalformedURLException: no protocol: Files/Apache
> 
> please help me. how to use RMI With Tomcat please...
> 
> thank you.
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



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




i have problem about rmi with tomcat4.1.12-LE-jdk14

2002-12-26 Thread Kosit Krepanich
Hi. i have problem.

Why i use RMI in servlet code and run in tomcat4.1.12-LE-jdk14.

it can get object but when it use that object its error :

  java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is: java.net.MalformedURLException: no protocol: Files/Apache

please help me. how to use RMI With Tomcat please...

thank you.

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




RE: RMI Class Annotation

2002-12-10 Thread Greg Trasuk

Interesting problem.  You're right that the java.server.rmi.codebase
property is ignored in Tomcat.  The property is only used by the
RMIClassloader when a class's loader has "no obvious codebase property".  If
the classloader extends from URLClassLoader, as Tomcat's WebAppClassloader
does, then the value of getURLs() is used for the annotation.  In the case
of Tomcat, that annotation will include everything in WEB-INF/lib,
common/lib, etc.  For RMI purposes, it's entirely useless anyway, since it
doesn't contain a url to your publicly accessible classes for RMI download.
There's a way to add a real codebase (check in the tomcat-dev archives), but
you can't get rid of the stuff that's already there.  I've thought about
writing a modified WebAppClasslLoader to support RMI better, but I don't
want the support headaches!

Workaround:  Check which classes you're sending down the pipe (they're
probably arguments to an RMI method call).  Could you have the instances
created on the RMI server and sent to you?  They would then have the
server's codebase annotation rather than yours.  This should also work with
a factory object that gets sent to you by the RMI server, so long as the
classes are not available in the local classpath.  Repeat -- The classes
used as arguments in your RMI method calls should not be available in your
local WEB-INF/lib directory (although they'll have to implement interfaces
that are available locally).  I suppose you could also create a
URLClassLoader pointing to your codebase and use it to create your
instances, but it seems like a lot of work, plus you still have the need to
implement locally-available interfaces.

Hope this helps,

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca

>-Original Message-
>From: David Esposito [mailto:[EMAIL PROTECTED]]
>Sent: December 09, 2002 10:18
>To: [EMAIL PROTECTED]
>Subject: RMI Class Annotation
>
>
>Hello all,
>
>My problem is this: I am running Tomcat 4.1 as an embedded
>service in JBOSS
>3.0.4 ... One of my servlets makes an RMI call to an RMI
>server running on a
>different box. The problem is that the classpath that JBOSS
>creates (and
>Tomcat inherits, i believe) is so large that it actually has
>an impact on
>the performance of the RMI method invocation. That is, the
>value returned by
>RMIClassLoader.getClassAnnotation() is over 35kilobytes!!
>
>Here's just a brief snippet:
>
>file:/C:/jboss-3.0.4-tomcat/tomcat-4.1.x/work/MainEngine/localh
>ost/testjms/W
>EB-INF/classes/
>file:/C:/jboss-3.0.4-tomcat/tomcat-4.1.x/work/MainEngine/localh
>ost/testjms/W
>EB-INF/lib/jbossall-client.jar
>file:/C:/jboss-3.0.4-tomcat/tomcat-4.1.x/work/MainEngine/localh
>ost/testjms/W
>EB-INF/lib/log4j.jar
>file:/C:/jboss-3.0.4-tomcat/server/default/tmp/deploy/tomcat-4.
1.x/common/li
>b/naming-common.jar/81.naming-common.jar
>file:/C:/jboss-3.0.4-tomcat/server/default/tmp/deploy/server/de
>fault/lib/jnp
>server.jar/17.jnpserver.jar
>file:/C:/jboss-3.0.4-tomcat/server/default/tmp/deploy/tomcat-4.
1.x/server/li
b/tomcat-jk.jar/85.tomcat-jk.jar
file:/C:/jboss-3.0.4-tomcat/server/default/tmp/deploy/server/default/lib/cou
nter-plugin.jar/38.counter-plugin.jar
file:/C:/jboss-3.0.4-tomcat/tomcat-4.1.x/server/classes/
file:/C:/jboss-3.0.4-tomcat/server/default/tmp/deploy/server/default/deploy/
jca-service.xml/45.jca-service.xml
file:/C:/jboss-3.0.4-tomcat/server/default/tmp/deploy/tomcat-4.1.x/server/li
b/commons-modeler.jar/86.commons-modeler.jar
file:/C:/jboss-3.0.4-tomcat/server/default/tmp/deploy/server/default/lib/jbo
ssmx.jar/2.jbossmx.jar
file:/C:/jboss-3.0.4-tomcat/server/default/tmp/deploy/server/default/lib/jbo
ss-j2ee.jar/16.jboss-j2ee.jar
file:/C:/jboss-3.0.4-tomcat/server/default/tmp/deploy/server/default/lib/mai
l-plugin.jar/20.mail-plugin.jar

This turns a 20ms RMI method invocation (when invoked from a standalone java
application) into a 800ms RMI method invocation (when invoked from the
servlet) because of all of the upstream bandwidth that is required ...
Needless to say, this is a problem ...

Does anyone have any input? I read a few messages that were posted about
this problem and someone commented that Tomcat is not behaving correctly;
that is, it's using the webapp's classloader's classpath instead of the RMI
codebase's classpath ... It seems to me that the RMIClassLoader should only
be concerned with classpaths set in the java.rmi.server.codebase?

Thanks in advance,
Dave


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


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




RMI Class Annotation

2002-12-09 Thread David Esposito
Hello all,

My problem is this: I am running Tomcat 4.1 as an embedded service in JBOSS
3.0.4 ... One of my servlets makes an RMI call to an RMI server running on a
different box. The problem is that the classpath that JBOSS creates (and
Tomcat inherits, i believe) is so large that it actually has an impact on
the performance of the RMI method invocation. That is, the value returned by
RMIClassLoader.getClassAnnotation() is over 35kilobytes!!

Here's just a brief snippet:

file:/C:/jboss-3.0.4-tomcat/tomcat-4.1.x/work/MainEngine/localhost/testjms/W
EB-INF/classes/
file:/C:/jboss-3.0.4-tomcat/tomcat-4.1.x/work/MainEngine/localhost/testjms/W
EB-INF/lib/jbossall-client.jar
file:/C:/jboss-3.0.4-tomcat/tomcat-4.1.x/work/MainEngine/localhost/testjms/W
EB-INF/lib/log4j.jar
file:/C:/jboss-3.0.4-tomcat/server/default/tmp/deploy/tomcat-4.1.x/common/li
b/naming-common.jar/81.naming-common.jar
file:/C:/jboss-3.0.4-tomcat/server/default/tmp/deploy/server/default/lib/jnp
server.jar/17.jnpserver.jar
file:/C:/jboss-3.0.4-tomcat/server/default/tmp/deploy/tomcat-4.1.x/server/li
b/tomcat-jk.jar/85.tomcat-jk.jar
file:/C:/jboss-3.0.4-tomcat/server/default/tmp/deploy/server/default/lib/cou
nter-plugin.jar/38.counter-plugin.jar
file:/C:/jboss-3.0.4-tomcat/tomcat-4.1.x/server/classes/
file:/C:/jboss-3.0.4-tomcat/server/default/tmp/deploy/server/default/deploy/
jca-service.xml/45.jca-service.xml
file:/C:/jboss-3.0.4-tomcat/server/default/tmp/deploy/tomcat-4.1.x/server/li
b/commons-modeler.jar/86.commons-modeler.jar
file:/C:/jboss-3.0.4-tomcat/server/default/tmp/deploy/server/default/lib/jbo
ssmx.jar/2.jbossmx.jar
file:/C:/jboss-3.0.4-tomcat/server/default/tmp/deploy/server/default/lib/jbo
ss-j2ee.jar/16.jboss-j2ee.jar
file:/C:/jboss-3.0.4-tomcat/server/default/tmp/deploy/server/default/lib/mai
l-plugin.jar/20.mail-plugin.jar

This turns a 20ms RMI method invocation (when invoked from a standalone java
application) into a 800ms RMI method invocation (when invoked from the
servlet) because of all of the upstream bandwidth that is required ...
Needless to say, this is a problem ...

Does anyone have any input? I read a few messages that were posted about
this problem and someone commented that Tomcat is not behaving correctly;
that is, it's using the webapp's classloader's classpath instead of the RMI
codebase's classpath ... It seems to me that the RMIClassLoader should only
be concerned with classpaths set in the java.rmi.server.codebase?

Thanks in advance,
Dave


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




RE: RMI and Tomcat

2002-11-27 Thread Greg Trasuk

You don't want your remote application's classes to be resident in the
access webapp.  I'd suggest we go back to the original problem and try to
solve that; take the application classes out of examples/WEB-IF/classes.
(Aside-- While you're at it, it's worth taking an hour or two to download
Ant, look at the Application Developer docs and sample build.xml included in
the Tomcat distribution, and set up your own webapp to get out of /examples.
It's not that hard, and it makes development much smoother!)

The original problem looks like the RMIClassLoader can't find the code for
MyAppStarter.  Are you passing or returning an instance of MyAppStarter as
an argument in the RMI call to the server app, or is the server object an
instance of MyAppStarter?  In either case, do you have the codebase property
set on the RMI server JVM?  The system property java.rmi.server.codebase
needs to refer to a set of URLs from which classes used in the RMI call can
be downloaded.  By extension, you need to have those classes available on
some sort of a server, typically ftp or http.  Tomcat'll do it!

If the codebase is set properly and the download files are available, a
webapp in Tomcat can execute RMI calls on a remote object.  There's one
not-so-small detail left, though; the class loader (RMIClassLoader) that
wants to load the remote bytecode will refuse to work if there's no security
manager, so you need to run Tomcat with the security manager enabled, which
will also require setting up the security.properties file to allow whatever
permissions your application needs.  See the Security Manager HOWTO in the
Tomcat docs.  In your case, you didn't get RMIClassLoader's exception, so I
suspect the codebase problem.

Note that it's a little awkward to set the codebase on a webapp, so it's
difficult (i.e. possible, but not elegant and not portable) to export remote
objects from a webapp.  I'd say this isn't a Tomcat limitation, so much as a
case of the servlet spec not being written with RMI in mind.  If you need to
support callbacks from the remote application, you need to employ a proxy
strategy.  You might want to look at jini.org for more information on the
proxy concept.

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca

>-Original Message-
>From: news [mailto:[EMAIL PROTECTED]]On Behalf Of Bill Barker
>Sent: November 27, 2002 00:47
>To: [EMAIL PROTECTED]
>Subject: Re: RMI and Tomcat
>
>
>This is starting to look like a classic case of bad design.
>But to get your
>app working, try adding servlet.jar to the CLASSPATH of rmiregistry.
>
>"Sarah L. Moore" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Well, I just moved the application classes over to the
>> examples/WEB-INF/classes directory and re-ran my servlet.  I get a
>slightly
>> different message:
>>
>> java.rmi.ServerError: Error occurred in server thread;
>nested exception
>is:
>> java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
>>
>>  From the output of my application, it looks as though the
>application
>> begins to run, but it is the servlet that is throwing the
>above exception
>> upon the call to the RMI application.  I did a search for
>servlet.jar, and
>> it looks as though it is where it should be in the Tomcat directory
>> structure (i.e. catalina_home/common/lib).  Any other
>advice?  I'm at a
>> total loss.
>>
>> Thanks again!
>>
>> Sarah
>>
>> At 11:30 AM 11/27/2002 +0800, you wrote:
>> >Sorry, did not correctly see which class it was complaining
>about. Try
>and
>> >move MyApplicationStarter to the said directories.
>> >
>> >Sarah L. Moore wrote:
>> >
>> >>Thanks for your reply.  My servlet class is in
>> >>examples/WEB-INF/classes.  If I comment out the RMI step,
>the servlet
>> >>runs fine, so I'm left to think that the servlet location,
>etc. are OK,
>> >>but something relating to RMI is the culprit.
>> >>
>> >>At 11:01 AM 11/27/2002 +0800, you wrote:
>> >>
>> >>>" Cannot allocate servlet instance for path
>/examples/servlet/MyServlet
>> >>>" means that it can't find the requested servlet for that
>web app which
>> >>>implies that your servlet class isn't where it should be.
>Servlets &
>> >>>classes go in /examples/WEB-INF/classes or
>> >>>/examples/WEB-INF/lib for jar packages.
>> >>>
>> &g

RE: Apache Tomcat 4.1 and RMI

2002-11-27 Thread Shapira, Yoav
Howdy,

>have a servlet which serves up a page that contains an applet. Tomcat
>4.1 is my application server and I have it installed on my machine

Terminology caution: usually "application server" refers to a J2EE (or
.Not) server.  Most people prefer to call tomcat a servlet/JSP
container.

A full-fledged application server would probably have a full, native,
administrabale RMI component.

>method in the applet's "init()" method. I gather that I have not set up
>my Java plug-in/Tomcat security policy files correctly. I tried adding
>this to the catalina.plicy file, but with no luck:
>
>grant codeBase= "file:${catalina.home}/webapps/salerio/-" {
>permission java.net.SocketPermission "localhost:1099",
>"accept,connect,listen";
>};

You're on the right track.  It's the applet throwing the exception, and
the applet that needs the permission.  Grant the above to the applet by
modifying the .policy file on the client as well.  Yes, that means every
PC that runs your applet needs to have the .policy file adjusted -- the
applet security model is very restrictive.  One reason I stay away from
applets ;)

Yoav Shapira
Millennium ChemInformatics

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




Re: RMI and Tomcat

2002-11-26 Thread Bill Barker
This is starting to look like a classic case of bad design.  But to get your
app working, try adding servlet.jar to the CLASSPATH of rmiregistry.

"Sarah L. Moore" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Well, I just moved the application classes over to the
> examples/WEB-INF/classes directory and re-ran my servlet.  I get a
slightly
> different message:
>
> java.rmi.ServerError: Error occurred in server thread; nested exception
is:
> java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
>
>  From the output of my application, it looks as though the application
> begins to run, but it is the servlet that is throwing the above exception
> upon the call to the RMI application.  I did a search for servlet.jar, and
> it looks as though it is where it should be in the Tomcat directory
> structure (i.e. catalina_home/common/lib).  Any other advice?  I'm at a
> total loss.
>
> Thanks again!
>
> Sarah
>
> At 11:30 AM 11/27/2002 +0800, you wrote:
> >Sorry, did not correctly see which class it was complaining about. Try
and
> >move MyApplicationStarter to the said directories.
> >
> >Sarah L. Moore wrote:
> >
> >>Thanks for your reply.  My servlet class is in
> >>examples/WEB-INF/classes.  If I comment out the RMI step, the servlet
> >>runs fine, so I'm left to think that the servlet location, etc. are OK,
> >>but something relating to RMI is the culprit.
> >>
> >>At 11:01 AM 11/27/2002 +0800, you wrote:
> >>
> >>>" Cannot allocate servlet instance for path /examples/servlet/MyServlet
> >>>" means that it can't find the requested servlet for that web app which
> >>>implies that your servlet class isn't where it should be. Servlets &
> >>>classes go in /examples/WEB-INF/classes or
> >>>/examples/WEB-INF/lib for jar packages.
> >>>
> >>>Sarah L. Moore wrote:
> >>>
> >>>>Hello all.
> >>>>
> >>>>I am new to Tomcat, and am having a problem with RMI.  I have a Java
> >>>>application that basically just sits on my server waiting for a data
> >>>>vector to be passed to it from my servlet. However, when I run the
> >>>>servlet and try to have it pass the data to the application through
RMI, I get:
> >>>>
> >>>>javax.servlet.ServletException: Cannot allocate servlet instance for
> >>>>path /examples/servlet/MyServlet
> >>>>java.lang.NoClassDefFoundError: MyApplicationStarter
> >>>>
> >>>>The application resides in a directory on the root of the c drive
(i.e.
> >>>>c:\MyApplication), and the servlet I am working with is in
> >>>>catalina_home/webapps/examples.  Could it be that my problem is due to
> >>>>the fact that Tomcat can't locate the classes that are in the
> >>>>c:\MyApplication directory?  How can I remidy that problem, if that
is,
> >>>>in fact, the problem.
> >>>>
> >>>>I am running Tomcat 4 with jdk 1.3.1 on Win2K.
> >>>>
> >>>>Please let me know if you need any more information. Any help would be
> >>>>appreciated.
> >>>>
> >>>>Thanks!
> >>>>
> >>>>Sarah
> >>>>
> >>>>--
> >>>>To unsubscribe, e-mail:
> >>>><mailto:[EMAIL PROTECTED]>
> >>>>For additional commands, e-mail:
> >>>><mailto:[EMAIL PROTECTED]>
> >>>
> >>>
> >>>
> >>>--
> >>>To unsubscribe, e-mail:
> >>><mailto:[EMAIL PROTECTED]>
> >>>For additional commands, e-mail:
> >>><mailto:[EMAIL PROTECTED]>
> >>
> >>
> >>
> >>--
> >>To unsubscribe, e-mail:
> >><mailto:[EMAIL PROTECTED]>
> >>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> >>
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>





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




Re: RMI and Tomcat

2002-11-26 Thread Sarah L. Moore
Well, I just moved the application classes over to the 
examples/WEB-INF/classes directory and re-ran my servlet.  I get a slightly 
different message:

java.rmi.ServerError: Error occurred in server thread; nested exception is: 
java.lang.NoClassDefFoundError: javax/servlet/ServletRequest

From the output of my application, it looks as though the application 
begins to run, but it is the servlet that is throwing the above exception 
upon the call to the RMI application.  I did a search for servlet.jar, and 
it looks as though it is where it should be in the Tomcat directory 
structure (i.e. catalina_home/common/lib).  Any other advice?  I'm at a 
total loss.

Thanks again!

Sarah

At 11:30 AM 11/27/2002 +0800, you wrote:
Sorry, did not correctly see which class it was complaining about. Try and 
move MyApplicationStarter to the said directories.

Sarah L. Moore wrote:

Thanks for your reply.  My servlet class is in 
examples/WEB-INF/classes.  If I comment out the RMI step, the servlet 
runs fine, so I'm left to think that the servlet location, etc. are OK, 
but something relating to RMI is the culprit.

At 11:01 AM 11/27/2002 +0800, you wrote:

" Cannot allocate servlet instance for path /examples/servlet/MyServlet 
" means that it can't find the requested servlet for that web app which 
implies that your servlet class isn't where it should be. Servlets & 
classes go in /examples/WEB-INF/classes or
/examples/WEB-INF/lib for jar packages.

Sarah L. Moore wrote:

Hello all.

I am new to Tomcat, and am having a problem with RMI.  I have a Java 
application that basically just sits on my server waiting for a data 
vector to be passed to it from my servlet. However, when I run the 
servlet and try to have it pass the data to the application through RMI, I get:

javax.servlet.ServletException: Cannot allocate servlet instance for 
path /examples/servlet/MyServlet
java.lang.NoClassDefFoundError: MyApplicationStarter

The application resides in a directory on the root of the c drive (i.e. 
c:\MyApplication), and the servlet I am working with is in 
catalina_home/webapps/examples.  Could it be that my problem is due to 
the fact that Tomcat can't locate the classes that are in the 
c:\MyApplication directory?  How can I remidy that problem, if that is, 
in fact, the problem.

I am running Tomcat 4 with jdk 1.3.1 on Win2K.

Please let me know if you need any more information. Any help would be 
appreciated.

Thanks!

Sarah

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



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



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





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



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




Apache Tomcat 4.1 and RMI

2002-11-26 Thread Ben Deany

Hi everyone,

I am using WebSphere to develop an enterprise application. To this end I
have a servlet which serves up a page that contains an applet. Tomcat
4.1 is my application server and I have it installed on my machine
successfully (my OS is Windows XP). The servlet's init() method creates
an RMI registry on port 1099 that holds an instance of an engine that I
want to make calls to. That works fine.

However, when the applet is downloaded and starts executing I get a
SocketPermissions exception "connection refused" (which I can see in my
plug-in console). This is caused by a call to the "Naming.lookup()"
method in the applet's "init()" method. I gather that I have not set up
my Java plug-in/Tomcat security policy files correctly. I tried adding
this to the catalina.plicy file, but with no luck:

grant codeBase= "file:${catalina.home}/webapps/salerio/-" {
permission java.net.SocketPermission "localhost:1099",
"accept,connect,listen";
};

Actually, this is my first post, but I just had an e-mail through from
this list about Tomcat and RMI. Is this a popular subject? If so, is
there any documentation that could help me address this issue?

Thanks in advance,

Kind regards,
Ben Deany
Software Developer - Lasata Pty Ltd




Re: RMI and Tomcat

2002-11-26 Thread Kwok Peng Tuck
Sorry, did not correctly see which class it was complaining about. Try 
and move MyApplicationStarter to the said directories.

Sarah L. Moore wrote:

Thanks for your reply.  My servlet class is in 
examples/WEB-INF/classes.  If I comment out the RMI step, the servlet 
runs fine, so I'm left to think that the servlet location, etc. are 
OK, but something relating to RMI is the culprit.

At 11:01 AM 11/27/2002 +0800, you wrote:

" Cannot allocate servlet instance for path 
/examples/servlet/MyServlet " means that it can't find the requested 
servlet for that web app which implies that your servlet class isn't 
where it should be. Servlets & classes go in 
/examples/WEB-INF/classes or
/examples/WEB-INF/lib for jar packages.

Sarah L. Moore wrote:

Hello all.

I am new to Tomcat, and am having a problem with RMI.  I have a Java 
application that basically just sits on my server waiting for a data 
vector to be passed to it from my servlet. However, when I run the 
servlet and try to have it pass the data to the application through 
RMI, I get:

javax.servlet.ServletException: Cannot allocate servlet instance for 
path /examples/servlet/MyServlet
java.lang.NoClassDefFoundError: MyApplicationStarter

The application resides in a directory on the root of the c drive 
(i.e. c:\MyApplication), and the servlet I am working with is in 
catalina_home/webapps/examples.  Could it be that my problem is due 
to the fact that Tomcat can't locate the classes that are in the 
c:\MyApplication directory?  How can I remidy that problem, if that 
is, in fact, the problem.

I am running Tomcat 4 with jdk 1.3.1 on Win2K.

Please let me know if you need any more information. Any help would 
be appreciated.

Thanks!

Sarah

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




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



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





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




Re: RMI and Tomcat

2002-11-26 Thread Sarah L. Moore
Thanks for your reply.  My servlet class is in 
examples/WEB-INF/classes.  If I comment out the RMI step, the servlet runs 
fine, so I'm left to think that the servlet location, etc. are OK, but 
something relating to RMI is the culprit.

At 11:01 AM 11/27/2002 +0800, you wrote:
" Cannot allocate servlet instance for path /examples/servlet/MyServlet " 
means that it can't find the requested servlet for that web app which 
implies that your servlet class isn't where it should be. Servlets & 
classes go in /examples/WEB-INF/classes or
/examples/WEB-INF/lib for jar packages.

Sarah L. Moore wrote:

Hello all.

I am new to Tomcat, and am having a problem with RMI.  I have a Java 
application that basically just sits on my server waiting for a data 
vector to be passed to it from my servlet. However, when I run the 
servlet and try to have it pass the data to the application through RMI, I get:

javax.servlet.ServletException: Cannot allocate servlet instance for path 
/examples/servlet/MyServlet
java.lang.NoClassDefFoundError: MyApplicationStarter

The application resides in a directory on the root of the c drive (i.e. 
c:\MyApplication), and the servlet I am working with is in 
catalina_home/webapps/examples.  Could it be that my problem is due to 
the fact that Tomcat can't locate the classes that are in the 
c:\MyApplication directory?  How can I remidy that problem, if that is, 
in fact, the problem.

I am running Tomcat 4 with jdk 1.3.1 on Win2K.

Please let me know if you need any more information. Any help would be 
appreciated.

Thanks!

Sarah

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




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



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




Re: RMI and Tomcat

2002-11-26 Thread Kwok Peng Tuck
" Cannot allocate servlet instance for path /examples/servlet/MyServlet 
" means that it can't find the requested servlet for that web app which 
implies that your servlet class isn't where it should be. Servlets & 
classes go in /examples/WEB-INF/classes or
/examples/WEB-INF/lib for jar packages.

Sarah L. Moore wrote:

Hello all.

I am new to Tomcat, and am having a problem with RMI.  I have a Java 
application that basically just sits on my server waiting for a data 
vector to be passed to it from my servlet. However, when I run the 
servlet and try to have it pass the data to the application through 
RMI, I get:

javax.servlet.ServletException: Cannot allocate servlet instance for 
path /examples/servlet/MyServlet
java.lang.NoClassDefFoundError: MyApplicationStarter

The application resides in a directory on the root of the c drive 
(i.e. c:\MyApplication), and the servlet I am working with is in 
catalina_home/webapps/examples.  Could it be that my problem is due to 
the fact that Tomcat can't locate the classes that are in the 
c:\MyApplication directory?  How can I remidy that problem, if that 
is, in fact, the problem.

I am running Tomcat 4 with jdk 1.3.1 on Win2K.

Please let me know if you need any more information. Any help would be 
appreciated.

Thanks!

Sarah

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





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




RMI and Tomcat

2002-11-26 Thread Sarah L. Moore
Hello all.

I am new to Tomcat, and am having a problem with RMI.  I have a Java 
application that basically just sits on my server waiting for a data vector 
to be passed to it from my servlet. However, when I run the servlet and try 
to have it pass the data to the application through RMI, I get:

javax.servlet.ServletException: Cannot allocate servlet instance for path 
/examples/servlet/MyServlet
java.lang.NoClassDefFoundError: MyApplicationStarter

The application resides in a directory on the root of the c drive (i.e. 
c:\MyApplication), and the servlet I am working with is in 
catalina_home/webapps/examples.  Could it be that my problem is due to the 
fact that Tomcat can't locate the classes that are in the c:\MyApplication 
directory?  How can I remidy that problem, if that is, in fact, the problem.

I am running Tomcat 4 with jdk 1.3.1 on Win2K.

Please let me know if you need any more information. Any help would be 
appreciated.

Thanks!

Sarah 


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



Re: problems with tomcat as rmi client

2002-11-25 Thread Bill Barker
I've never tried this, but probably you either want to set
"java.rmi.server.codebase" in the CATALINA_OPTS, or make certain that your
stub-classes all live within WEB-INF/lib.

"Vishal Zinjuvadia" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I am trying to use a Tomcat webapp as a RMI client.
> For the test purposes, my RMI server
> resides on the same machine. When I use a Tomcat
> webapp as a client, I consistently get a
> ClassCastException, while if I use a plain java class
> for the client, it works flawlessly.
>
> Following is my client code used in the servlet and
> the plain java class.
>
> System.setProperty("java.rmi.server.codebase",
> "file:/path/to/stubfile/");
> try {
>//(line: 141)
>TestInterface testIf =
> (TestInterface)Naming.lookup("//localhost/Test");
>result = testIf.testMethod();
> } catch (Exception e) {
>servlet.log(e.getMessage());
>e.printStackTrace();
> }
>
> I am using:
> JDK-1.4
> tomcat-4.1.12
>
> From the stack it looks like the stub file is located,
> but it cannot relate it with the interface file. It
> looks like the interface file and the stub files are
> loaded with different class loaders and cannot be
> associated.
>
> java.lang.ClassCastException: Test_Stub
> at
> com.vishal.eg.TestAction.perform(TestAction.java:141)
> at
>
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
va:1786)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter
Chain.java:98)
> at
>
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain
.java:176)
> at java.security.AccessController.doPrivileged(Native
> Method)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:172)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
> at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
> at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:380)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
> at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
> at java.lang.Thread.run(Thread.java:536)
>
> Thanks in advance,
> Vishal
>
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com





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




problems with tomcat as rmi client

2002-11-25 Thread Vishal Zinjuvadia
Hi,

I am trying to use a Tomcat webapp as a RMI client.
For the test purposes, my RMI server
resides on the same machine. When I use a Tomcat
webapp as a client, I consistently get a
ClassCastException, while if I use a plain java class
for the client, it works flawlessly.

Following is my client code used in the servlet and
the plain java class.

System.setProperty("java.rmi.server.codebase",
"file:/path/to/stubfile/");
try {
   //(line: 141)
   TestInterface testIf =
(TestInterface)Naming.lookup("//localhost/Test");
   result = testIf.testMethod();
} catch (Exception e) {
   servlet.log(e.getMessage());
   e.printStackTrace();
}

I am using:
JDK-1.4
tomcat-4.1.12

>From the stack it looks like the stub file is located,
but it cannot relate it with the interface file. It
looks like the interface file and the stub files are
loaded with different class loaders and cannot be
associated.

java.lang.ClassCastException: Test_Stub
at
com.vishal.eg.TestAction.perform(TestAction.java:141)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at java.security.AccessController.doPrivileged(Native
Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)

Thanks in advance,
Vishal

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




ClassCastException when using Tomcat as RMI client

2002-11-22 Thread Vishal Zinjuvadia
Hi,

I am trying to use a Tomcat webapp as a RMI client.
For the test purposes, my RMI server
resides on the same machine. When I use a Tomcat
webapp as a client, I consistently get a
ClassCastException, while if I use a plain java class
for the client, it works flawlessly.

Following is my client code used in the servlet and
the plain java class.

System.setProperty("java.rmi.server.codebase",
"file:/path/to/stubfile/");
try {
   //(line: 141)
   TestInterface testIf = (TestInterface)
Naming.lookup("//localhost/Test");
   result = testIf.testMethod();
} catch (Exception e) {
   servlet.log(e.getMessage());
   e.printStackTrace();
}

I am using:
JDK-1.4
tomcat-4.1.12

>From the stack it looks like the stub file is located,
but it cannot relate it
with the interface file.

java.lang.ClassCastException: Test_Stub
at
com.blah.blah.TestAction.perform(TestAction.java:141)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at java.security.AccessController.doPrivileged(Native
Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)

Thanks in advance,
Vishal

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Anyone using HTTP-tunnel over RMI out there ?

2002-10-18 Thread achana
Anyone willing to take on this challenge ?
Trade info to make it work (or work better) ?
Must use Apache and Tomcat, make and model of backend database not
critical, but Oracle is preferred.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: RMI and TC4.x (Really classloader stuff)

2002-08-19 Thread David Oxley

Thanks for your comments Greg. Now at least I know what's going on. I'm
going to attach these comments to the bug log.

Thanks.
Dave.

> -Original Message-
> From: Greg Trasuk [mailto:[EMAIL PROTECTED]]
> Sent: 10 August 2002 04:54
> To: 'Tomcat Users List'
> Subject: RE: RMI and TC4.x (Really classloader stuff)
> 
> Hi David:
> 
>   I'm in the same boat trying to use RMI and/or Jini from Tomcat.
> This isn't
> a complete answer to your question, as I'm still investigating the issue,
> but I'm posting what I know so far in the hope that it might help in your
> own solution, and also generate discussion that will guide my exploration.
> When all is said and done, if there's interest, I can post a "Catalina-RMI
> HOWTO" sort of document.
> 
>   Although I didn't try to run the test case that you attached to your
> bug
> report, I did take a look at it, and I think I know what's going on.
> Here's
> what I know so far (most of which you probably know already, but I'm
> summarizing for other folks on the list):
> 
>   When you pass an instance of some Serializable class as an argument
> to an
> RMI call (e.g. passing a command object, as in your test case), the RMI
> subsystem will serialize the object with an additional annotation
> indicating
> the locations from which the class's bytecode can be downloaded.  When you
> pass an exported object (e.g. a server object or an object that will
> receive
> callbacks from remote objects), the RMI subsystem creates and serializes a
> proxy object (otherwise known as the RMI stub object) in place of the
> actual
> object.  In either case, the remote RMI subsystem has to load the class
> that
> is called out in the serialized instance.  It does this by calling the
> RMIClassLoader.
> 
>   The RMIClassLoader object first tries to find the class locally
> (i.e. in
> the default classloader).  If it can't find it locally, it searches in the
> list of locations contained in the annotation mentioned above.  If the
> required class is available locally, no further headaches are caused,
> which
> may be why some people have had no problems using RMI under Tomcat - they
> probably had the serialized classes and/or proxy classes in the standard
> classpath/classloader setup.
> 
>   And there we find our problem.  (At this point you might want to
> have a
> look at the JSP snippet below) The annotation is determined by
> RMIClassLoader. According to the "RMI and Object Serialization FAQ" in the
> JDK1.31 API docs,
> 
>   "If the _Stub class was loaded by an RMIClassLoader, then RMI already
> knows which codebase to use for its annotation. If the _Stub class was
> loaded from the CLASSPATH, then there is no obvious codebase, and RMI
> consults the java.rmi.server.codebase system property to find the
> codebase.
> If the system property is not set, then the stub is marshalled with a null
> codebase, which means that it cannot be used unless the client has a
> matching copy of the _Stub classfile in the client's CLASSPATH. "
> 
>   If we're running a standalone application (and I believe also in
> Tomcat
> 3.x), we're using the system class loader, which has "no obvious
> codebase",
> so the java.rmi.server.codebase property gets used.  But what's the class
> loader used in Tomcat 4.x?  I looked at the source code for Tomcat 4.0.1
> (happens to be what I have on hand), and o.a.c.loader.WebAppClassLoader
> extends from o.a.c.loader.StandardClassLoader, which extends from
> java.net.URLClassLoader, which has a method called getURLs().  The
> WebAppClassLoader.getURLs() method returns a list of all the repositories
> it
> will search when trying to load a class on behalf of the web app.  This
> list
> calls out all the jar's in WEB-INF/lib, common/lib, etc.
> 
>   Having not seen the source for RMIClassLoader, I suspect that the
> getClassAnnotation(..) method checks to see if the classloader for the
> supplied class is a URLClassLoader, and if so, uses the results of the
> getURLs() method call as "an obvious codebase".  This suspicion is
> supported
> by the last part of the JSP, where I create a classloader that extends
> from
> URLClassLoader but overrides getURLs() to return a phony url.  The phony
> url
> shows up as the class's annotation.
> 
>   So the exact error you quoted in the bug report shows something
> about a
> "protocol missing" MalformedURL exception, which is caused by the fact
> that
> the urls to the repositories contain spaces, since the RMI annotation is
> supposed to be a &

RE: RMI and TC4.x (Really classloader stuff)

2002-08-12 Thread Cox, Charlie

I am not familiar with RMI, but I have looked at the classloaders.

The classloader overview is defined in the classloader document. 
There are two instances of StandardClassLoader that are used by webapps,
'shared' and 'common'. Then each webapp has its own WebappClassLoader
instance.

If the WebappClassLoader can not find a class then it delegates to the
'shared' instance of StandardClassLoader, which then can delegate to the
'common' instance.

Are you by chance passing a Hashtable,Vector,etc that contain instances of
your classes? If so you may want to see this thread from last week which
also had a problem serializing objects(although not with RMI):
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg61929.html

For (2) below:
This is difficult because classes loaded by the WebappClassLoader will not
know about the classes that you load. This is why you get
ClassNotfoundExceptions. It may help to set the current classloader as the
parent for your new classloader, so that class requests can be delegated.

For (3) below:
This is what the WebappClassLoader already does. The webapp specific things
are in the /WEB-INF/lib, which you said was returned by getUrls().

I looked at the bug listed previously. does the stack trace change when you
have no spaces in the tomcat path?

Charlie


> -Original Message-
> From: Greg Trasuk [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 11:54 PM
> To: 'Tomcat Users List'
> Subject: RE: RMI and TC4.x (Really classloader stuff)
> 
> 
> Hi David:
> 
>   I'm in the same boat trying to use RMI and/or Jini from 
> Tomcat.  This isn't
> a complete answer to your question, as I'm still 
> investigating the issue,
> but I'm posting what I know so far in the hope that it might 
> help in your
> own solution, and also generate discussion that will guide my 
> exploration.
> When all is said and done, if there's interest, I can post a 
> "Catalina-RMI
> HOWTO" sort of document.
> 
>   Although I didn't try to run the test case that you 
> attached to your bug
> report, I did take a look at it, and I think I know what's 
> going on.  Here's
> what I know so far (most of which you probably know already, but I'm
> summarizing for other folks on the list):
> 
>   When you pass an instance of some Serializable class as 
> an argument to an
> RMI call (e.g. passing a command object, as in your test 
> case), the RMI
> subsystem will serialize the object with an additional 
> annotation indicating
> the locations from which the class's bytecode can be 
> downloaded.  When you
> pass an exported object (e.g. a server object or an object 
> that will receive
> callbacks from remote objects), the RMI subsystem creates and 
> serializes a
> proxy object (otherwise known as the RMI stub object) in 
> place of the actual
> object.  In either case, the remote RMI subsystem has to load 
> the class that
> is called out in the serialized instance.  It does this by calling the
> RMIClassLoader.
> 
>   The RMIClassLoader object first tries to find the class 
> locally (i.e. in
> the default classloader).  If it can't find it locally, it 
> searches in the
> list of locations contained in the annotation mentioned above.  If the
> required class is available locally, no further headaches are 
> caused, which
> may be why some people have had no problems using RMI under 
> Tomcat - they
> probably had the serialized classes and/or proxy classes in 
> the standard
> classpath/classloader setup.
> 
>   And there we find our problem.  (At this point you 
> might want to have a
> look at the JSP snippet below) The annotation is determined by
> RMIClassLoader. According to the "RMI and Object 
> Serialization FAQ" in the
> JDK1.31 API docs,
> 
>   "If the _Stub class was loaded by an RMIClassLoader, then 
> RMI already
> knows which codebase to use for its annotation. If the _Stub class was
> loaded from the CLASSPATH, then there is no obvious codebase, and RMI
> consults the java.rmi.server.codebase system property to find 
> the codebase.
> If the system property is not set, then the stub is 
> marshalled with a null
> codebase, which means that it cannot be used unless the client has a
> matching copy of the _Stub classfile in the client's CLASSPATH. "
> 
>   If we're running a standalone application (and I 
> believe also in Tomcat
> 3.x), we're using the system class loader, which has "no 
> obvious codebase",
> so the java.rmi.server.codebase property gets used.  But 
> what's the class
> loader used in Tomcat 4.x?  I looked at the s

RE: RMI and TC4.x (Really classloader stuff)

2002-08-09 Thread Greg Trasuk

Hi David:

I'm in the same boat trying to use RMI and/or Jini from Tomcat.  This isn't
a complete answer to your question, as I'm still investigating the issue,
but I'm posting what I know so far in the hope that it might help in your
own solution, and also generate discussion that will guide my exploration.
When all is said and done, if there's interest, I can post a "Catalina-RMI
HOWTO" sort of document.

Although I didn't try to run the test case that you attached to your bug
report, I did take a look at it, and I think I know what's going on.  Here's
what I know so far (most of which you probably know already, but I'm
summarizing for other folks on the list):

When you pass an instance of some Serializable class as an argument to an
RMI call (e.g. passing a command object, as in your test case), the RMI
subsystem will serialize the object with an additional annotation indicating
the locations from which the class's bytecode can be downloaded.  When you
pass an exported object (e.g. a server object or an object that will receive
callbacks from remote objects), the RMI subsystem creates and serializes a
proxy object (otherwise known as the RMI stub object) in place of the actual
object.  In either case, the remote RMI subsystem has to load the class that
is called out in the serialized instance.  It does this by calling the
RMIClassLoader.

The RMIClassLoader object first tries to find the class locally (i.e. in
the default classloader).  If it can't find it locally, it searches in the
list of locations contained in the annotation mentioned above.  If the
required class is available locally, no further headaches are caused, which
may be why some people have had no problems using RMI under Tomcat - they
probably had the serialized classes and/or proxy classes in the standard
classpath/classloader setup.

And there we find our problem.  (At this point you might want to have a
look at the JSP snippet below) The annotation is determined by
RMIClassLoader. According to the "RMI and Object Serialization FAQ" in the
JDK1.31 API docs,

  "If the _Stub class was loaded by an RMIClassLoader, then RMI already
knows which codebase to use for its annotation. If the _Stub class was
loaded from the CLASSPATH, then there is no obvious codebase, and RMI
consults the java.rmi.server.codebase system property to find the codebase.
If the system property is not set, then the stub is marshalled with a null
codebase, which means that it cannot be used unless the client has a
matching copy of the _Stub classfile in the client's CLASSPATH. "

If we're running a standalone application (and I believe also in Tomcat
3.x), we're using the system class loader, which has "no obvious codebase",
so the java.rmi.server.codebase property gets used.  But what's the class
loader used in Tomcat 4.x?  I looked at the source code for Tomcat 4.0.1
(happens to be what I have on hand), and o.a.c.loader.WebAppClassLoader
extends from o.a.c.loader.StandardClassLoader, which extends from
java.net.URLClassLoader, which has a method called getURLs().  The
WebAppClassLoader.getURLs() method returns a list of all the repositories it
will search when trying to load a class on behalf of the web app.  This list
calls out all the jar's in WEB-INF/lib, common/lib, etc.

Having not seen the source for RMIClassLoader, I suspect that the
getClassAnnotation(..) method checks to see if the classloader for the
supplied class is a URLClassLoader, and if so, uses the results of the
getURLs() method call as "an obvious codebase".  This suspicion is supported
by the last part of the JSP, where I create a classloader that extends from
URLClassLoader but overrides getURLs() to return a phony url.  The phony url
shows up as the class's annotation.

So the exact error you quoted in the bug report shows something about a
"protocol missing" MalformedURL exception, which is caused by the fact that
the urls to the repositories contain spaces, since the RMI annotation is
supposed to be a "space-separated list of URL's".  Thus the annotation
doesn't get parsed properly.   This may be a bug in Catalina's class loader
(i.e. should the returned urls have the spaces encoded to '%20'?) or
possibly in the way RMIClassLoader uses the results of getURLs().  But it's
not the problem.

The problem is how to get our codebase into the annotation.  Clearly the
java.rmi.server.codebase property is not used, since the class loader has a
codebase.  But setting a system property doesn't feel right to me anyway,
since in a webapp scenario, we're in a shared JVM, and we shouldn't be
allowed to set system properties that will affect other webapps.  (Aside- we
similarly can't follow the normal practise of setting our o

RE: RMI and TC4.x

2002-07-23 Thread David Oxley

It does actually connect to the RMI server, but it can't download classes
from the web server. It looks like java.rmi.codebase = TC local path rather
than http://server/webapp which iks what the code sets it to.

Dave

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
> Sent: 22 July 2002 18:25
> To: Tomcat Users List
> Subject: RE: RMI and TC4.x
> 
> Howdy,
> We use RMI extensively on long-running tomcat servers (4.0.1 and 4.0.4).
> Never had any problems with it.  We even have a portion of the night
> when we do very frequent (more than 1/sec) serialization and
> deserialization of relatively large, complex (but serializable) objects
> between a number of servers.
> 
> We also use JDK 1.4.0 (also tested on 1.3.1), on Solaris.  I looked at
> your bugzilla bug report, and it looked like a fairly simple
> MalformedURLException.  I wonder if this bug is related to a difference
> between tc 3.x and 4.x in the way they handle spaces in JNDI/RMI server
> URLs.  Did you try using tomcat 4.x to connect to an RMI server that
> doesn't have a space in its URL?
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: David Oxley [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, July 22, 2002 12:59 PM
> >To: 'Tomcat Users List'
> >Subject: RMI and TC4.x
> >
> >Has anyone got RMI working from within TC4.x. I had no problems under
> >TC3.x,
> >but just can't get it working under TC4.x.
> >
> >I have had a bug report outstanding for quite some time on this, but I
> was
> >hoping that someone on the user list may have already got this working.
> >
> >http://issues.apache.org/bugzilla/show_bug.cgi?id=7082
> ><http://issues.apache.org/bugzilla/show_bug.cgi?id=7082>
> >
> >
> >
> >Cheers.
> >
> >Dave.
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:tomcat-user-
> [EMAIL PROTECTED]>

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




RE: RMI and TC4.x

2002-07-22 Thread Shapira, Yoav

Howdy,
We use RMI extensively on long-running tomcat servers (4.0.1 and 4.0.4).
Never had any problems with it.  We even have a portion of the night
when we do very frequent (more than 1/sec) serialization and
deserialization of relatively large, complex (but serializable) objects
between a number of servers.

We also use JDK 1.4.0 (also tested on 1.3.1), on Solaris.  I looked at
your bugzilla bug report, and it looked like a fairly simple
MalformedURLException.  I wonder if this bug is related to a difference
between tc 3.x and 4.x in the way they handle spaces in JNDI/RMI server
URLs.  Did you try using tomcat 4.x to connect to an RMI server that
doesn't have a space in its URL?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: David Oxley [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 22, 2002 12:59 PM
>To: 'Tomcat Users List'
>Subject: RMI and TC4.x
>
>Has anyone got RMI working from within TC4.x. I had no problems under
>TC3.x,
>but just can't get it working under TC4.x.
>
>I have had a bug report outstanding for quite some time on this, but I
was
>hoping that someone on the user list may have already got this working.
>
>http://issues.apache.org/bugzilla/show_bug.cgi?id=7082
><http://issues.apache.org/bugzilla/show_bug.cgi?id=7082>
>
>
>
>Cheers.
>
>Dave.


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




RMI and TC4.x

2002-07-22 Thread David Oxley

Has anyone got RMI working from within TC4.x. I had no problems under TC3.x,
but just can't get it working under TC4.x.

I have had a bug report outstanding for quite some time on this, but I was
hoping that someone on the user list may have already got this working.

http://issues.apache.org/bugzilla/show_bug.cgi?id=7082
<http://issues.apache.org/bugzilla/show_bug.cgi?id=7082> 

 

Cheers.

Dave.




Re: HELP! - Modifying Catalina.bat for RMI

2002-07-17 Thread Simon Oldeboershuis

Hi James,

I am using tomcat together with JOnAS EJB-Server, therefore
I needed RMI as well.

I changed one line to set the correct JNDI properties:

set
JAVA_OPTS=-Djava.naming.factory.initial=com.sun.jndi.rmi.registry.RegistryContextFactory
-Djava.naming.provider.url=rmi://localhost:1099
-Djava.naming.factory.url.pkgs=org.objectweb.jonas.naming 

so long!

Simon


James Milks schrieb:
> 
> Hi all,
> I searched the archives on this one, but couldn't find any answers, sorry if
> it is basic.
> 
> I rebuilt my laptop and decided to upgrade from TOMCAT 3 to TOMCAT 4 (on
> Win2k pro with JDK 1.4). I managed to get everything working except RMI. I
> suspect that I simply need to add a configuration option to catalina.bat in
> the %_EXECJAVA% sections near the end of the file (which is what I did in
> tomcat.bat with TOMCAT 3) like this:
> 
> -Djava.rmi.server.codebase="";
> 
> However, when I do this in catalina.bat, TOMCAT won't start (I'm using
> startup.bat, not the "Start TOMCAT" link from the start menu...more on that
> below). I've tried moving the code snip around thinking that the order might
> matter, but have had no luck.
> 
> Help!
> 
> Also, I tried to add the same parameter to the link on the startmenu (which
> calls bootstrap.jar) but ran into a length issue for the target as I need to
> set the security policy in the same way. Can I shorten this link by using
> environment variables? I tried that with no luck either!
> 
> Any help appreciated.
> 
> James Milks
> Noncubicle Corporation / LostHockey.com
> http://www.noncubicle.com
> http://www.losthockey.com
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
Simon Oldeboershuis
Entwicklung

outermedia 
Internet Kommunikation 
Greifswalderstr. 207 
10405 Berlin 
Fon: 030- 4435 0943
Fax: 030- 4435 0949 
[EMAIL PROTECTED] 
www.outermedia.de

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




HELP! - Modifying Catalina.bat for RMI

2002-07-17 Thread James Milks

Hi all,
I searched the archives on this one, but couldn't find any answers, sorry if
it is basic.

I rebuilt my laptop and decided to upgrade from TOMCAT 3 to TOMCAT 4 (on
Win2k pro with JDK 1.4). I managed to get everything working except RMI. I
suspect that I simply need to add a configuration option to catalina.bat in
the %_EXECJAVA% sections near the end of the file (which is what I did in
tomcat.bat with TOMCAT 3) like this:

-Djava.rmi.server.codebase="";

However, when I do this in catalina.bat, TOMCAT won't start (I'm using
startup.bat, not the "Start TOMCAT" link from the start menu...more on that
below). I've tried moving the code snip around thinking that the order might
matter, but have had no luck.

Help!

Also, I tried to add the same parameter to the link on the startmenu (which
calls bootstrap.jar) but ran into a length issue for the target as I need to
set the security policy in the same way. Can I shorten this link by using
environment variables? I tried that with no luck either!

Any help appreciated.


James Milks
Noncubicle Corporation / LostHockey.com
http://www.noncubicle.com
http://www.losthockey.com


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




RE: serious issues with tomcat and rmi

2002-06-07 Thread Greg Trasuk

Srini:

Could you post the full stack trace that contains the ClassNotFound
exception?  Is it contained within an RMIServerException, with some message
like "Can't unmarshall "? Also, where are the access control exceptions
showing up?  Log files, or does Tomcat return a '404' message?

Cheers,

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca

> -Original Message-
> From: java guru [mailto:[EMAIL PROTECTED]]
> Sent: June 07, 2002 15:18
> To: [EMAIL PROTECTED]
> Subject: serious issues with tomcat and rmi
>
>
> I am encountering serious issues with tomcat and rmi..
> I am getting all sorts of problems ranging from
>
> 1. version 4.0.3 cannot load classes from rmi
> codebase.. reading the codebase but returning
> classnotfound exceptions..
>
> 2. version 4.0.4 webappclass loader dying with 'Life
> cycle error' and access control exceptions on
> web-inf/lib even when used with all.policy with most
> liberal security settings..
>
> 3. And all these different class loaders and
> exceptions look very confusing and impossible to make
> it work.
>
> Hope someone would throw some light..
>
> Thanks
> srini
>
>
>
> =
> Thanks and have great day
> srini
>
> __
> __
> Everything you always wanted to know about cars and bikes,now
>  at: http://in.autos.yahoo.com
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


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




serious issues with tomcat and rmi

2002-06-07 Thread java guru

I am encountering serious issues with tomcat and rmi..
I am getting all sorts of problems ranging from 

1. version 4.0.3 cannot load classes from rmi
codebase.. reading the codebase but returning
classnotfound exceptions..

2. version 4.0.4 webappclass loader dying with 'Life
cycle error' and access control exceptions on
web-inf/lib even when used with all.policy with most
liberal security settings..

3. And all these different class loaders and
exceptions look very confusing and impossible to make
it work.

Hope someone would throw some light..

Thanks
srini



=
Thanks and have great day
srini


Everything you always wanted to know about cars and bikes,now
 at: http://in.autos.yahoo.com

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




tomcat 4 having trouble with loading rmi classes from codebase

2002-06-07 Thread java guru

Hi.,
   i am trying to use servlet with tomcat 4.0.3 that
tries to load classes from rmi codebase defined by
http protocol.

   catalina.out log is reporting classnot found
exception while other stand alone clients are working
fine.

   Read somewhere about Jar handler problems in tomcat
but that was as of tomcat 3.0 version.

Any help is appreciated..

Thanks
srini

=
Thanks and have great day
srini


Everything you always wanted to know about cars and bikes,now
 at: http://in.autos.yahoo.com

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




RE: tomcat 4.0.3 servlet having problem loading class via rmi ?

2002-06-07 Thread Shapira, Yoav

Howdy,
1st thing that comes to mind from looking at the stack trace, not having
tried  tomcat->JINI connectivity: is that file
(com.sun.jini.reggie.RegistrarProxy) in your runtime classpath?  It
should be in the /WEB-INF/lib or /WEB-INF/classes (or one of the common
lib/classes directories).  Usually ClassNotFoundExceptions are fairly
straightforward...

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: java guru [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, June 06, 2002 5:21 PM
>To: [EMAIL PROTECTED]
>Subject: tomcat 4.0.3 servlet having problem loading class via rmi ?
>
>Hi.,
>  I am trying to access a JINI service thru my
>servlet.. inspite of following Security Manager,
>Policy file and setting codebase etc, tomcat 4.0.3
>repeatedly give following excption.
>
>The JINI service itself is working fine and other
>standalone clients can access it.
>
>Read somewhere that the protocol handler of tomcat had
>problem but that was two years back..
>
>Any insight to this would be of great help.
>
>Thanks
>srini
>
>
>***
>java.lang.ClassNotFoundException:
>com.sun.jini.reggie.RegistrarProxy
>at
>java.net.URLClassLoader$1.run(URLClassLoader.java:198)
>at
>java.security.AccessController.doPrivileged(Native
>Method)
>at
>java.net.URLClassLoader.findClass(URLClassLoader.java:186)
>at
>java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>at
>java.lang.ClassLoader.loadClass(ClassLoader.java:262)
>at
>java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
>at java.lang.Class.forName0(Native Method)
>at java.lang.Class.forName(Class.java:207)
>at
>sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:427)
>at
>sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:159)
>at
>java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:629)
>at
>java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
>at
>sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:
200)
>at
>java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1503)
>at
>java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
>at
>java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:161
6)
>at
>java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
>at
>java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
>at
>java.rmi.MarshalledObject.get(MarshalledObject.java:135)
>at
>net.jini.discovery.IncomingUnicastResponse.(IncomingUnicastRespon
se.j
>ava:78)
>at
>net.jini.discovery.LookupDiscovery$UnicastDiscoverer.run(LookupDiscover
y.ja
>va:322)
>
>=
>Thanks and have great day
>srini
>
>___
_
>Everything you always wanted to know about cars and bikes,now
> at: http://in.autos.yahoo.com
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:tomcat-user-
>[EMAIL PROTECTED]>


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




tomcat 4.0.3 servlet having problem loading class via rmi ?

2002-06-06 Thread java guru

Hi.,
  I am trying to access a JINI service thru my
servlet.. inspite of following Security Manager,
Policy file and setting codebase etc, tomcat 4.0.3
repeatedly give following excption.

The JINI service itself is working fine and other
standalone clients can access it.

Read somewhere that the protocol handler of tomcat had
problem but that was two years back.. 

Any insight to this would be of great help.

Thanks
srini


***
java.lang.ClassNotFoundException:
com.sun.jini.reggie.RegistrarProxy
at
java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at
java.security.AccessController.doPrivileged(Native
Method)
at
java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:207)
at
sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:427)
at
sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:159)
at
java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:629)
at
java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
at
sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:200)
at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1503)
at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1616)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
at
java.rmi.MarshalledObject.get(MarshalledObject.java:135)
at
net.jini.discovery.IncomingUnicastResponse.(IncomingUnicastResponse.java:78)
at 
net.jini.discovery.LookupDiscovery$UnicastDiscoverer.run(LookupDiscovery.java:322)

=
Thanks and have great day
srini


Everything you always wanted to know about cars and bikes,now
 at: http://in.autos.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




newbee: rmi callback from a servlet

2002-05-02 Thread tony yau

since I'am not sure what is causing my particular problem I'am not sure that
this is the right group to ask this question, so please to bear with me.

I've got an RMI server and Tomcat 4.0 running separately on the same
machine. I' am trying to implement a RMI callback from within a Servlet but
I'm keep getting these errors:

 <<<
 ...
 Getting client data via rmi:
 looking up at : rmi://localhost:1099/MyRmiServer
 found remote object

 !Exception: RemoteException occurred in server thread; nested exception is:
 java.rmi.UnmarshalException: error unmarshalling arguments; nested
 exception is:
 java.net.MalformedURLException: no protocol: Files/Apache
 java.rmi.ServerException: RemoteException occurred in server thread; nested
 exception is:
 java.rmi.UnmarshalException: error unmarshalling arguments; nested
 exception is:
 java.net.MalformedURLException: no protocol: Files/Apache
 java.rmi.UnmarshalException: error unmarshalling arguments; nested
 exception is:

 java.net.MalformedURLException: no protocol: Files/Apache
 java.net.MalformedURLException: no protocol: Files/Apache
 at
 sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown
 Source)
 at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
 at sun.rmi.server.UnicastRef.invoke(Unknown Source)

 at RmiServer_Stub.register(Unknown Source)
 at RmiClient.connectServer(RmiClient.java:130)
 at RmiClient.doGet(RmiClient.java:75)
 ...
 >>>

here the code and the exception is the at remote.register() call where the
'remote' is the ref to the remote RMI server.

 public void connectServer()
 {
  try
  {
   remote = (IRadar1007Remote)Naming.lookup(bindName);
System.out.println("found remote object");

   UnicastRemoteObject.exportObject( this );
remote.register( this );
System.out.println("register this client with the server");
  }
 ...

 I can run an RMI client outside of Tomcat with the above code with no
problems at all, but once inside a servlet the callbacks just won't work?
Have I missed something somewhere? Is there some setting in Tomcat to allow
RMI callbacks, etc?

Any hints or pointers will be very much appreciated

 Thanks in advance



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: RMI Server in Tomcat problems

2002-04-12 Thread Lance Smith

High Weber,
try
System.setSecurityManager(new RMISecurityManager("fully qualified name of
you're security file"));
Lance

-Original Message-
From: Jürgen Weber [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 7:33 AM
To: [EMAIL PROTECTED]
Subject: RMI Server in Tomcat problems


Hi

I tried to set up an RMI server in tomcat 4.03

First problem is, there seems to be no possibility to have something in
tomcat like weblogics startup classes, i.e. classes that are called at
server startup.

So I had to trigger a servlet by hand that does the initialisation and
registry of the RMI server.

Tomcat and RMI client both on my NT machine worked.

On different machines the client gets the exception below.
Running the RMI Server in a stand-alone VM outside of tomcat
works.

First I had the following,

if (null == System.getSecurityManager())
System.setSecurityManager(new RMISecurityManager());

but it would not be called as tomcat already has a SecurityManager. So I
left the if - part but still no
change.

So I wonder, if it is possible to have an RMI Server in Tomcat at all?


I started with catalina start -security.

catalina.policy is only

grant {
permission java.security.AllPermission;
};



   [java] java.rmi.ConnectException: Connection refused to host: localhost;
nested exception is:
   [java] java.net.ConnectException: Connection refused: connect
   [java] at
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
   [java] at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
   [java] at
sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
   [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
   [java] at webservice.rmiserver.RMIServerImpl_Stub.register(Unknown
Source)
   [java] at
.webservice.rmiclient.RMIClientImpl.main(RMIClientImpl.java:110)
   [java] Caused by: java.net.ConnectException: Connection refused: connect
   [java] at java.net.PlainSocketImpl.socketConnect(Native Method)
   [java] at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
   [java] at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
   [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
   [java] at java.net.Socket.connect(Socket.java:425)
   [java] at java.net.Socket.connect(Socket.java:375)
   [java] at java.net.Socket.(Socket.java:290)
   [java] at java.net.Socket.(Socket.java:118)
   [java] at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketF
actory.java:22)
   [java] at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketF
actory.java:122)
   [java] at
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)
   [java] ... 5 more
   [java] Java Result: 1

_
Downloaden Sie MSN Explorer kostenlos unter http://explorer.msn.de/intl.asp.


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RMI Server in Tomcat problems

2002-04-12 Thread Jürgen Weber

Hi

I tried to set up an RMI server in tomcat 4.03

First problem is, there seems to be no possibility to have something in 
tomcat like weblogics startup classes, i.e. classes that are called at 
server startup.

So I had to trigger a servlet by hand that does the initialisation and 
registry of the RMI server.

Tomcat and RMI client both on my NT machine worked.

On different machines the client gets the exception below.
Running the RMI Server in a stand-alone VM outside of tomcat
works.

First I had the following,

if (null == System.getSecurityManager())
System.setSecurityManager(new RMISecurityManager());

but it would not be called as tomcat already has a SecurityManager. So I 
left the if - part but still no
change.

So I wonder, if it is possible to have an RMI Server in Tomcat at all?


I started with catalina start -security.

catalina.policy is only

grant {
permission java.security.AllPermission;
};



   [java] java.rmi.ConnectException: Connection refused to host: localhost; 
nested exception is:
   [java] java.net.ConnectException: Connection refused: connect
   [java] at 
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
   [java] at 
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
   [java] at 
sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
   [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
   [java] at webservice.rmiserver.RMIServerImpl_Stub.register(Unknown 
Source)
   [java] at 
.webservice.rmiclient.RMIClientImpl.main(RMIClientImpl.java:110)
   [java] Caused by: java.net.ConnectException: Connection refused: connect
   [java] at java.net.PlainSocketImpl.socketConnect(Native Method)
   [java] at 
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
   [java] at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
   [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
   [java] at java.net.Socket.connect(Socket.java:425)
   [java] at java.net.Socket.connect(Socket.java:375)
   [java] at java.net.Socket.(Socket.java:290)
   [java] at java.net.Socket.(Socket.java:118)
   [java] at 
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
   [java] at 
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:122)
   [java] at 
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)
   [java] ... 5 more
   [java] Java Result: 1

_
Downloaden Sie MSN Explorer kostenlos unter http://explorer.msn.de/intl.asp.


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Starting and binding a remote object to an RMI registry under Tomcat 4.0.1

2002-02-19 Thread Mann, Nick

Hi
I'm having trouble starting and binding a remote object to an RMI registry
under Tomcat 4.0.1. when the CATALINA_HOME variable
is pointing to an install directory with a space in it, like "Program Files"

The code is in a servlet eg

createRegistry();

    Naming.bind("rmi://localhost:5098/arb", new TestRemote());

And gives a remote exception like..

java.rmi.ServerException: RemoteException occurred in server thread; nested
exception is: 
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is: 
java.net.MalformedURLException: no protocol:
Files/Cognos/baltic/tomcat4.0.1/webapps/../../webapps/p2pd/WEB-INF/classes/
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception
is: 
java.net.MalformedURLException: no protocol:
Files/Cognos/baltic/tomcat4.0.1/webapps/../../webapps/p2pd/WEB-INF/classes/
java.net.MalformedURLException: no protocol:
Files/Cognos/baltic/tomcat4.0.1/webapps/../../webapps/p2pd/WEB-INF/classes/
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:245)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:354)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at java.rmi.Naming.bind(Naming.java:111)
at
noticecast.services.NCRepositoryServer.bindNameWithRMIRepositoy(NCRepository
Server.java:405)
at
noticecast.services.NCRepositoryServer.initServices(NCRepositoryServer.java:
503)
at
noticecast.services.NCRepositoryServer.startRepository(NCRepositoryServer.ja
va:209)
at
noticecast.commandservices.pogo.NCHandler.prepare_impl(NCHandler.java:55)
at com.cognos.pogo.BasicHandler.prepare(BasicHandler.java:87)
at com.cognos.pogo.PogoEngine.addService(PogoEngine.java:69)
at
com.cognos.pogo.config.Dom4JConfigurator.configure(Dom4JConfigurator.java:43
)
at
com.cognos.pogo.config.XMLConfigurator.configure(XMLConfigurator.java:45)
at com.cognos.pogo.transport.PogoServlet.init(PogoServlet.java:66)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3267)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Feb 19, 1922 12:36:59 PM Failed to create registry

You can see that the "file:/E/Program" has been lopped off the begining (by
the classloader??) So effectively the stub / skel for the remote object
which is present, is not found.

When I have tomcat running under a directory like "Programs" the Remote
object is bound to the registry no problem. Any idea of a workaround??

cheers

Nick Mann
c/o Cognos

p.s.
this doesnt happen if I try a Naming.lookup( as long as the registry is
started and bound to in another jvm.

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 3:42 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat as a service...




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 19, 2002 11:24 AM
> To: Tomcat Users List
> Subject: RE: Tomcat as a service...
> 
> 
> 
> 
> 
> BTW... Someone should fix it so that it works under ANY 
> installed path!!!
> 
> 

I don't know what tool the Jakarta guys use to build the installer,
but I know that for a project I worked on last year we had the same
restriction because the install builder (InstallAnywhere) wouldn't allow us
to escape the strings properly.

Randy

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do

Re: RMI remote Method which returns File object.

2002-02-06 Thread Tom Drake

Sucharitha:

A File object represents a files name (and location).
It does not represent or store the contents of a file.
Therefore, using RMI to pass a File object around doesn't
make much sense. It is likely that a File object
that points to a valid file on the client is completely
invalid on the server. Worse yet, it is valid, but points
to a different copy of the file.

If you need to transfer a file from one side of an RMI
connection to another, you'll need to read the file into
a buffer of some sort and pass that across your RMI
interface.

This explains why your client program only works when
you run it on the same computer as your server.

Tom

- Original Message -
From: "Sucharitha Panthika" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 06, 2002 5:16 PM
Subject: RMI remote Method which returns File object.


Hey

I have a qution using RMI to return files . If I have a a remote method
public File getFile();
method in a Server and I implemented this method to return one file from
my local drive C:\.  When the remote Client from different system calls
this method should it return the my File
to that Client or not.  i have give allpermission in the policy files.

I have similar example. When I run the Client from a different system I
don't get the File
object instead when I run the Client from myy system in another window
without the required classes in the classpath I get the File.

Can Any one let me know what could be the problem? I am attaching the
Server, ServerImpl, Client and policy files for review if required.


Sucharitha



-Original Message-
From: Gearoid Coughlan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 3:32 PM
To: 'Tomcat Users List'
Subject: tomcat 4.0 + apache 1.3.12 + mod_jk


Hi

I am getting the following error reported in mod_jk.log when
executing servlets
--
[Wed Feb 06 23:14:56 2002]  [jk_connect.c (143)]: jk_open_socket,
connect()
failed errno = 146
[Wed Feb 06 23:14:56 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 146
[Wed Feb 06 23:14:56 2002]  [jk_ajp13_worker.c (635)]: Error connecting
to
the Tomcat process.
[Wed Feb 06 23:14:56 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 2
---

Im running apache version 1.3.12
with tomcat 4.0.x

when I run tomcat 3.0 everything is fine.
BTW im running this on a Sparc Solaris SunOS 8

Any ideas..

thanks
gearoid



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>








| --
| To unsubscribe:   <mailto:[EMAIL PROTECTED]>
| For additional commands: <mailto:[EMAIL PROTECTED]>
| Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RMI remote Method which returns File object.

2002-02-06 Thread Sucharitha Panthika

Hey

I have a qution using RMI to return files . If I have a a remote method 
public File getFile();  
method in a Server and I implemented this method to return one file from
my local drive C:\.  When the remote Client from different system calls
this method should it return the my File 
to that Client or not.  i have give allpermission in the policy files.

I have similar example. When I run the Client from a different system I
don't get the File
object instead when I run the Client from myy system in another window
without the required classes in the classpath I get the File.  

Can Any one let me know what could be the problem? I am attaching the
Server, ServerImpl, Client and policy files for review if required.


Sucharitha



-Original Message-
From: Gearoid Coughlan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 3:32 PM
To: 'Tomcat Users List'
Subject: tomcat 4.0 + apache 1.3.12 + mod_jk


Hi

I am getting the following error reported in mod_jk.log when
executing servlets
--
[Wed Feb 06 23:14:56 2002]  [jk_connect.c (143)]: jk_open_socket,
connect() 
failed errno = 146
[Wed Feb 06 23:14:56 2002]  [jk_ajp13_worker.c (196)]: In 
jk_endpoint_t::connect_to_tomcat, failed errno = 146
[Wed Feb 06 23:14:56 2002]  [jk_ajp13_worker.c (635)]: Error connecting
to 
the Tomcat process.
[Wed Feb 06 23:14:56 2002]  [jk_ajp13_worker.c (848)]: In 
jk_endpoint_t::service, send_request failed in send loop 2
---

Im running apache version 1.3.12
with tomcat 4.0.x

when I run tomcat 3.0 everything is fine.
BTW im running this on a Sparc Solaris SunOS 8

Any ideas..

thanks
gearoid



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




TransportObjectImpl.java
Description: TransportObjectImpl.java


TransportObject.java
Description: TransportObject.java


TransportClient.java
Description: TransportClient.java


transport.policy
Description: transport.policy

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


  1   2   >