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]


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 not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you