Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exception while initializing VisiBroker in a Servlet

Status
Not open for further replies.

wbi2003

Programmer
Dec 3, 2003
2
0
0
US
Hi all,

I am an amateur using CORBA. I am actually trying to use an integration software to make an servlet talk to my integrtion server. And for this to happen, I need to make my servlet use IIOP. So I am initializing VisiBroker. Below is the code that I am using to achieve this.

void intializeVisi() {
Properties orbProperties = new java.util.Properties();
orbProperties.setProperty("org.omg.CORBA.ORBClass", "com.inprise.vbroker.orb.ORB");
orbProperties.setProperty("org.omg.CORBA.ORBSingletonClass", "com.inprise.vbroker.orb.ORBSingleton");

ORB orb = ORB.init((String[])null, orbProperties);
}

and I get an exception :

Exception in thread "main" java.lang.VerifyError: class org.omg.PortableServer.AdapterActivatorPOA o
verrides final method ☺.☺
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at com.inprise.vbroker.orb.ORB.adapterManager(ORB.java:1101)
at com.inprise.vbroker.ds.DSUser.<init>(DSUser.java:282)
at com.inprise.vbroker.ds.Init.init(Init.java:20)
at com.inprise.vbroker.orb.ORB.installServices(ORB.java:922)
at com.inprise.vbroker.orb.ORB.initialize(ORB.java:831)
at com.inprise.vbroker.orb.ORB.set_parameters(ORB.java:950)
at org.omg.CORBA.ORB.init(ORB.java:337)
at Visi.intializeVisi(Visi.java:11)
at Visi.main(Visi.java:17)

I have my VisiBroker in my classpath. So any insight that you can give on how to clear this error will be helpful.

Thank you
-kms
 
wow, how do you start the server, could you put theer the command line?

Ion Filipski
1c.bmp
 
I am sorry. I didn't understand your reply.

If I write a small java program with just the code that I mentioned above, it gives me the same exception (mentioned above).

Any suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top