The Artima Developer Community
Sponsored Link

Web Services Forum
Problem related to RMI and EJB

2 replies on 1 page. Most recent reply: Oct 9, 2003 7:29 AM by Leonardo Maciel

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
sivashankar

Posts: 2
Nickname: shankar
Registered: May, 2002

Problem related to RMI and EJB Posted: May 28, 2002 8:38 AM
Reply to this message Reply
Advertisement
Hello,
I am writing EJB client part in a RMI server. Exception is thrown when when i run the RMI server.
In RMI server program i am initializing the EJB Initial context. The exact exception is thrown at the following statement.

->>InitialContext context=new InitialContext(env);
I am using Weblogic 6.1 on solaris.
Every thing is set properly.
I did not face any problem when i run the EJB client from normal application.
Same classpath i have used for RMI.
But the following exception is thrown...

weblogic.common.internal.VersioningError: No WebLogic packages defined in CLASSP
ATH
at weblogic.common.internal.VersionInfo.<init>(VersionInfo.java:38)
at weblogic.common.internal.VersionInfo.initialize(VersionInfo.java:76)
at weblogic.kernel.Kernel.initialize(Kernel.java:103)
at weblogic.kernel.Kernel.ensureInitialized(Kernel.java:82)
at weblogic.jndi.WLInitialContextFactoryDelegate.<init>(WLInitialContext
Fac toryDelegate.java:161)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
extFactor y.java:119)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
65)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246
)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.<init>(InitialContext.java:198)
at MethodInvokerImpl.<init>(MethodInvokerImpl.java:28)
at MethodInvokerImpl.main(MethodInvokerImpl.java:49)
Exception in thread "main" java.lang.InternalError: error initializing kernel
at weblogic.kernel.Kernel.ensureInitialized(Kernel.java:85)
at weblogic.jndi.WLInitialContextFactoryDelegate.<init>(WLInitialContext
Fac toryDelegate.java:161)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
extFactor y.java:119)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
65)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246
)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.<init>(InitialContext.java:198)
at MethodInvokerImpl.<init>(MethodInvokerImpl.java:28)
at MethodInvokerImpl.main(MethodInvokerImpl.java:49)



Please.. if anybody worked on RMI & EJB can resolve the problem..
If so, please send a mail to shiva_gvr@yahoo.co.in

Thanks
Shiva


Jos? Luis Rodr?guez

Posts: 1
Nickname: joseluis
Registered: Aug, 2002

Re: Problem related to RMI and EJB Posted: Aug 7, 2002 12:45 PM
Reply to this message Reply
Have you solved this problem already? because I'm having a similar situation in Java WebStart when trying to use JNDI services from Weblogic 6.1

Thanks in advance.

JL

Leonardo Maciel

Posts: 1
Nickname: leonardo
Registered: Oct, 2003

Re: Problem related to RMI and EJB Posted: Oct 9, 2003 7:29 AM
Reply to this message Reply
I got the same error

===========================================================
weblogic.common.i nternal.VersioningError: No WebLogic packages defined in CLASSP
ATH
at weblogic.common.internal.VersionInfo.<init>(VersionInfo.java:41)
...
==== =======================================================

I solved it by copying the lines below from weblogic.jar manifest.mf to my client.jar manifest.mf file

-----------------------------------------------------------
Implementatio n-Vendor: BEA Systems
Implementation-Title: WebLogic Server 6.1 SP3 06/19/2002 22:25:39 #190835
Implementation-Version: 6.1.3.0
-----------------------------------------------------------

I hope it helps.
Leo

Flat View: This topic has 2 replies on 1 page
Topic: Help on starting with web based application development Previous Topic   Next Topic Topic: transactional web service problem

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use