The java: namespace is accessible only for components running within the save JVM as the server. In your case, the client is running in its own JVM (it's a standalone client) and hence will not be able to access the datasource.
so what can i do?
i started jboss from within eclipse. same error.
can i change the name from java:/DefaultDS to DefaultDS?
thank you. now it works.
so i use this configuration for development.
and disable it in productin environment.