1 Reply Latest reply on Jan 16, 2012 10:03 AM by garytully

    Publish/ Subscribe/ Consume JNDI Error

    rui mesquita Newbie

      Hi everyone!


      I am doing a simple project with a objective of subscription of topics.


      It gave me the following errors:


      Exception in thread "main" javax.ming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial

      *     at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)*

      *     at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)*

      *     at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:344)*

      *     at javax.naming.InitialContext.lookup(InitialContext.java:411)*

      *     at durabelesubscribers.Publish.main(Publish.java:26)*

      Java Result: 1

      BUILD SUCCESSFUL (total time: 0 seconds)



      I believe that is a JNDI error, and i must set the environmental variables and edit the jndi.properties.


      Can anybody help me?




      Edited by: ozi87 on Jan 5, 2012 4:03 PM