• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Binding of Remote Objects using servlets on Weblogic Server8.1

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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[]={};
ReferenceDataServerImpl.main(args);


Please let me know your suggestions and comments and also let me know if i am wrong somewhere
 
today's feeble attempt to support the empire
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic