Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Corba Exception while communicating to WLS from Jboss

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
My application is running on JBoss 4.2.3 and it has to communicate to the Weblogic 10 server. There is a message bridge which is created while the JBoss Server is started with the Weblogic Server.

To do this I have included the wlclient.jar into the ejb jar in my application ear file.

Now after the application ear is deployed I get the following error :

javax.naming.NamingException: Unhandled exception in lookup [Root exception is org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0 completed: No]
at weblogic.corba.j2ee.naming.Utils.wrapNamingException(Utils.java:83)
at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:232)
at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:168)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.jboss.jms.server.bridge.JNDIFactorySupport.createObject(JNDIFactorySupport.java:66)
at org.jboss.jms.server.bridge.JNDIDestinationFactory.createDestination(JNDIDestinationFactory.java:45)
at org.jboss.jms.server.bridge.Bridge.setupJMSObjects(Bridge.java:910)
at org.jboss.jms.server.bridge.Bridge.setupJMSObjectsWithRetry(Bridge.java:1152)
at org.jboss.jms.server.bridge.Bridge.access$1500(Bridge.java:66)
at org.jboss.jms.server.bridge.Bridge$FailureHandler.run(Bridge.java:1507)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0 completed: No
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:897)
at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:99)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:572)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:430)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:326)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
at weblogic.corba.cos.naming._NamingContextAnyStub.resolve_any(_NamingContextAnyStub.java:80)
at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:208)


Can somebody please help ?
[ December 16, 2008: Message edited by: Vikram Saxena ]
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vikram,

Welcome to JavaRanch

Is this the entire exception that you see? If not please post the entire exception stacktrace. And where do you see this exception - on the JBoss server or on the WebLogic server?

P.S: While posting logs or xml content or code, please wrap it in a code block by using the Code button in the message editor window.
 
Vikram Saxena
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jaikiran,

Thanks a lot . Yup i will take care about the code pasting.

Yes, I am getting the exception while starting the JBoss Application server. This is because the bridge configurations have been made on JBoss side.
in the (<app>-bridge-service.xml and jms-ds.xml)

Now, we are using the WLInitialContextFactory to look up the WLS server and I guess that it is internally calling the ORBSocketFactory.

Now since both the servers are running on Java 5, we have straightaway picked the wlclient.jar file form the Weblogic and placed it in the ejb jar root of our application {as placing in the lib directory was throwing ClassCastException}. Now we get this exception only.

Yes after this the deployment of the war file fails as well. But for this exception this is all we get :



After this I could just see a security exception for the one of the application war files :



Hope this helps in analysing
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you running the JBossAS server or the WebLogic server under a Java Security Manager? And please post the contents of those xml files. Does your wlclient.jar contain any java policy files?
 
Vikram Saxena
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The WLS server is an external server. I will need some time to find out about it.
But however, there are no credentials which are required to connect to the queue to create the Message Bridge. So I doubt there would be any security policy required to connect to the WLS.

Regarding the wlclient.jar file, there are no .policy files in the jar. Is their anything else I can check for ?

Thanks for your help
 
Vikram Saxena
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the app-bridge.xml



This is the jms-ds.xml

 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are various levels of security. One of them is the Java Security Manager. Some related articles:

Article 1 -Java Security Manager

Article 2 - Java Security Manager

But however, there are no credentials which are required to connect to the queue



Going by this exception stacktrace:


java.lang.SecurityException: MBeanTrustPermission(register) not implied by protection domain of mbean class: org.apache.tomcat.util.modeler.BaseModelMBean, pd: ProtectionDomain (file:/global/....../....../jboss-4.2.3.GA/server/......ASServer/tmp/deploy/tmp12861jbossweb.jar <no signer certificates>
org.jboss.mx.loading.UnifiedClassLoader3@11ff451{ url=file:/global/...../....../jboss-4.2.3.GA/server/......ASServer/deploy/jboss-web.deployer/ ,addedOrder=6}
<no principals>
java.security.Permissions@133fa14 (
(java.io.FilePermission /...../...../...../jboss-4.2.3.GA/server/......ASServer/tmp/deploy/tmp12861jbossweb.jar read)
(java.io.FilePermission /global/vdckt/papikt/jboss-4.2.3.GA/server/......ASServer/deploy/jboss-web.deployer read)
(java.util.PropertyPermission java.version read)
(java.util.PropertyPermission java.vm.name read)
(java.util.PropertyPermission java.vm.vendor read)
(java.util.PropertyPermission os.name read)
(java.util.PropertyPermission java.vendor.url read)
(java.util.PropertyPermission java.vm.specification.vendor read)
(java.util.PropertyPermission os.version read)
(java.util.PropertyPermission java.specification.vendor read)
(java.util.PropertyPermission java.class.version read)
(java.util.PropertyPermission java.specification.name read)
(java.util.PropertyPermission file.separator read)
(java.util.PropertyPermission os.arch read)
(java.util.PropertyPermission java.vm.version read)
(java.util.PropertyPermission java.vendor read)
(java.util.PropertyPermission java.specification.version read)
(java.util.PropertyPermission java.vm.specification.version read)
(java.util.PropertyPermission java.vm.specification.name read)
(java.util.PropertyPermission path.separator read)
(java.util.PropertyPermission line.separator read)
(java.lang.RuntimePermission stopThread)
(java.net.SocketPermission localhost:1024- listen,resolve)
(java.net.SocketPermission localhost:1024- listen,resolve)
)



i guess its related to Java Security Manager. If i am reading the exception stacktrace correctly, its the JBoss server which seems to be running under a security manager. How do you start JBoss and did you do any changes to the clean downloaded JBoss? Also please post the first few lines on the JBoss console (which includes all the echo statements) during startup.
 
Vikram Saxena
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The first few lines of the server start up are as follows :

 
Vikram Saxena
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jaikiran,
Could it be because of the conflicts of the corba implementation of JBoss and WLS and sun ?
 
Vikram Saxena
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jaikiran,

We have implemented JAAS. This is mainly done for the logging of the GUI applications and at the ejb level for authorization..

Can you give me some pointers ??
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't been able to look much into this issue. But going by a google search, it looks like you are not the only one having this issue.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vikram,
Could you please tell me, what the solution to this problem you reported?

Any help would be really appreciated.

Thanks,
 
Greenhorn
Posts: 1
 
Hold that thought. Tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic