Namingcontextfactory which jar




















Thanks, Ananth. You will need more than that, which is why I suggested using JBoss Tattletale. Otherwise you will have to track down one missing class error after the other. But hey, I did the same before Tattletale, so it is doable.

Are you sure you are getting the exact same CNFE? Hi, Yes, I'm getting the same exception, when looking up and creating InitialContext. I used tattletale and saw the results. The depends section shows the following classes in addition to other classes that it depends on. I'm pasting only the relevant; javax. Context, javax. InitialContext, javax.

NameNotFoundException, javax. NamingException javax. NamingContextFactory is present in jnp-client. Still didn't work. I saw that jnpserver. I tried adding Class-Path to that after removing the class path for jnp-client. Here is an excerpt from build.

Let's try one more thing. In addition, add the -verbose:class JVM argument. Similar problem, however, I'm using portlets, running things inside the same JVM and everything runs inside the same app, however, in some places my app uses. I am stumped. Based on the output you sent me, it should work.

NamingContextFactory is in the class path, so there should be no problem in finding and loading that class. It is almost as if, suddenly, another class loader was invoked, one which did not know about the classpath.

All I can suggest is to try it from the command line to eliminate Eclipse messing something up , and to also try a simpler program that only looks up the EJB in jndi you should be able to get by with a much shorter classpath and thus be able to more easily run it manually from the command line.

Home Content Places Search Cancel. Error: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled.

Please turn JavaScript back on and reload this page. Improve this answer. Qwertovsky Qwertovsky 12 12 silver badges 13 13 bronze badges. I've done described in 1st your approach. But it's still not working. I guess why. I looked throught jboss-client.

InitialContextFactory" in it. I found only "org. There are not your classes in my file. If you use maven, try add dependensy org. Look for in this example github. I'd looked throught this example before you gave me. It is described jboss. But I suppose, you didn't get what I'd said. There is used this construction: jndiProperties. Where does JVM or smth else get it form?

I suspect, it is taken from jboss-client. If it is true, I see it. But going throught this dir, I can't find it in my jbosss-clinet. Yes, I see org. InitialContextFactory in jboss-client. Ok, I found it too. But listen, tell me, how can I use RemoteCalculator in my program?

Shell I inject something? They are assembled into pom-file. I understand it. But how can I execute pom-project? I may only deploy it. Add a comment. Try this code package test; import javax.



0コメント

  • 1000 / 1000