Guest User

Untitled

a guest
Nov 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. private Context initContext(){
  2. Context initContext = null;
  3. try{
  4. initContext = new InitialContext();
  5. }catch(NamingException nex)
  6. {
  7. System.err.println("Impossível de receber contexto: " + nex);
  8. System.exit(-1);
  9. }
  10. return initContext;
  11. }
  12.  
  13. javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory]
  14. C:UsersGabrielAppDataLocalNetBeansCache8.2executor-snippetsrun.xml:53: Java returned: -1
Add Comment
Please, Sign In to add comment