JNDI name weblogic.management.server is not available in WebLogic 12.2.1.3 - weblogic12c

In one of our java code we are performing a look up in WebLogic 12.2.1.3 version.
ctx.lookup("weblogic.management.server");
Apparently we received an exception NamingNotFoundException due to the JNDI name is not available in WebLogic 12.2.1.3 version , where as it is available in 12.1.3.
We also tried using foreign JNDI name feature but it doesn't resolve the problem.
Could you please provide us any suggestions or alternatives on this?

The MBean interface has been removed on WebLogic 12.2.1, then, this jndi context is no longer available. You should review your code and use another way to get your connection to the jmx server.

Related

How to solve SplitsrcTargetPreparation exception in Oracle weblogic server?

I am trying to run a simple Restful web service example on oracle weblogic server . but i am getting this issue while run the project on server. Publishing to Oracle Weblogic server at localhost has encountered a problem.Runtime exception occurred in publish task 'SplitsrcTargetPreparation'.
Have a look on screen sort.What i have to do ?
None of the other answers solved my problem, but I finally found a solution. I'm not claiming that this is the best or only way of resolving this issue, but it worked for me. Hope it helps others.
Open the Properties of your WebLogic server instance in Eclipse. Select Publishing. Set the publishing mode to "Publish as an exploded archive". You will no longer get a split source error.
Check the following.
Maven version – If you have imported as a maven project then make
sure that maven version is compatible to the java version you are
using.
Makes sure that you are using the java from the Middleware
which is comes bundled with weblogic.
New domain – Corrupt domain
may also cause this. Create a new domain

How to configure mongodb via jndi in Jboss 4/5/6 versions?

How can i configure mongodb via jndi in JBOSS versions 4/5/6??
for example we can configure JNDI related propeties in Context.xml of tomcat i would like to know where can it be done in JBOSS. I am new to JBoss.
Sorry for the bad english.
Thanks in advance

Can't lookup OSGI services through JNDI

I'm working with JBossAS7.
My application has some OSGI modules and big non-OSGI part.
I tried lookup osgi services in non-osgi subsystem through JNDI but they are not present in JNDI context.
I found similar problem at JBOSS 7 - Osgi Bundles not present in JNDI TREE but I dont found any solution there. If JBoss team didn't implement this functionality yet, how can I resolve this problem now?
I tried adding my service to JNDI context manually but got an exception because JNDI context is read only(according to https://issues.jboss.org/browse/AS7-421)
It's not fully integrated yet (monitor JBOSGI-81 to check the status), however I think you can make this work by taking the Apache Aries JNDI OSGi bundles and deploying them in JBoss AS7.
To do this, deploy and start
The Aries JNDI bundle
The Aries Proxy bundle
The Aries Util bundle
The JNDI bundle will complain that it can't set some statics with the NamingManager, but you can ignore that as AS7 JNDI takes care of that.
With the bundles above installed you should be able to do
osgi:service/org.foo.SomeInterface
and
osgi:servicelist
type lookups... E.g. you could try the following to look up the Start Level Service which is registered by the framework:
osgi:service/org.osgi.service.startlevel.StartLevel
I just tried it with AS7 7.1.2 and it works for me...
One thing to note, if the entity you're looking up implements an interface defined in another AS7/MSC module or OSGi bundle, you need to ensure that the consumer has visibility to it if you want to be able to cast to this interface. In the OSGi world you can just import the package, but in an AS7 module (e.g. a war file) you can achieve this by adding a Dependencies manifest header.

Jboss 6 eclipse remote debugging fails for remote session bean injected via JNDI lookup

I am using JNDI lookups to inject a remote EJB3 session bean inside my spring 3 controller. Since my web module will run in tomcat and the business layer app in a remote Jboss 6, this configuration was decided. For the development I still use only jboss and my web and ear both are deployed in the same jobss instance (jboss 6). Everything works well for me, but when I tried to debug, all the beans injected returns null, so when in debug view, a null pointer exception is thrown when the remote ejb session bean is invoked. Everything works fine in the run mode (non-debug).
I am using eclipse(Helios) and trying remote debugging
I have the jndi.properties file in my jboss/deploy with these settings
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
any help on this issue...
thanks...
Since remote debugging did not work for me, I used the jboss plugin for eclipse to make the debug process work.

JNDI lookup JBoss Application Server 7

How can I access remote EJB in Jboss AS 7? When I deploy application on Jboss AS 7 , I can see portable jndi names but unable to access using same name.
Will be implemented in JBoss AS 7.1: https://issues.jboss.org/browse/AS7-1338
Make sure your ejb module has the same class loader with the module which needs the access of EJB.
and then, use these code
InitialContext ic = new InitialContext();
ic.lookup(*the jndi name you see*);
Doesn't this work if you start as -server-config standalone-preview.xml ?
Since this turns on the rest of the JavaEE6 (not certified though). I'm talking about the Jboss 7.0.2 (Everything).
Good luck!
I solved with latest release of JBoss 7.1