0 Replies Latest reply on Sep 15, 2014 1:43 AM by Anas Alsobeh

    javax.naming.NameNotFoundException: jboss/datasources/ExampleDS -- service jboss.naming.context.java.jboss.exported.jboss.datasources.ExampleDS

    Anas Alsobeh Newbie

      I used the EAP 6.3.0 to run my application on remote server, but I have this error when trying to lookup for mssql jndi

      DataSource das1= (DataSource) context.lookup("java:jboss/datasources/ExampleDS");

       

      this is the error

       

      I couldn't understand this error and why

       

      javax.naming.NameNotFoundException: jboss/datasources/ExampleDS -- service jboss.naming.context.java.jboss.exported.jboss.datasources.ExampleDS

        at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:103)

        at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:197)

        at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:174)

        at org.jboss.naming.remote.protocol.v1.Protocol$1.handleServerMessage(Protocol.java:127)

        at org.jboss.naming.remote.protocol.v1.RemoteNamingServerV1$MessageReciever$1.run(RemoteNamingServerV1.java:73)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

        at java.lang.Thread.run(Thread.java:745)