• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Binding of Remote Objects using servlets on Weblogic Server8.1

Rajkumar Chandrasekaran
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am using weblogic 8.1 for app. development. I have 4 startup classes which binds the objects so that they can be invoked remotely. these classes are given in the startup class tag in the config.xml file. I have to remove these startup classes because of our folder structure problems. If i call the same class using a servlet and the servlet is configured as a startup servlet i am getting the following exception

Completed Loading Serialized Catalog: Mon Nov 22 12:16:22 GMT+05:30 2004
ReferenceDataServerImpl.main: an exception occurred:
weblogic.rmi.ConnectIOException: An unexpected exception occurred
at weblogic.rmi.Naming.toWeblogicRmiException(Naming.java:244)
at weblogic.rmi.Naming.rebindInternal(Naming.java:176)
at weblogic.rmi.Naming.rebind(Naming.java:162)
at com.bellatlantic.eo.service.common.referencedata.ReferenceDataServer

Folloing are excerpts from my code

public static void main(String args[]) {

try {
ReferenceDataServerImpl rd = new ReferenceDataServerImpl();
Naming.rebind("ReferenceDataServer", rd);
Debug.out("ReferenceDataServerImpl created and bound in the registry " +
"to the name ReferenceDataServer");

The servlet which invokes the above method is as follows:-

public class Startup extends HttpServlet {

public Startup()
String args[]={};

Please let me know your suggestions and comments and also let me know if i am wrong somewhere
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic