Your Internet Explorer version is not compatible with our shopping cart system. Please use version 9 or higher to avoid problems with your order(s). Close
i am new in myeclipse,before i only used WSAD.
when connected to a DB2 datasource,i used
context.lookup(“java:comp/env/jdbc/njscsc”),
but it failed,the error message is
“java.lang.RuntimeException: No data source”
then i changed to context.lookup(“java:jdbc/njscsc”),it was running.
why?
Hard to say, what application server are you using? Are you connecting to this data source from your running web application? You sure that using jdbc/njscsc wouldn’t have worked with your old setup? (I don’t know much about JNDI, but I wonder if /comp/env is implied and can be ommitted?)