1. Use the "Quote" feature around your configuration
2. Take a look at the example datasource conf. in the docs directory
3. Post appropriate parts of a stack trace; just saying you get "a huge stacktrace of errors" doesn't really convey much.
If use like this it won't work according to jboss docs u need to use like 'java:/securanceDatasource'
If u r not intrested to change class files of ur application, u need to modify the method 'public Name parse(String name)' of 'org.jnp.interfaces.NamingParser.class' located in 'jnpserver.jar'
Modify the method just like this
public Name parse(String name)
if (name.equals("java:comp/env/jdbc/securanceDatasource")) name="java:/securanceDatasource";
return new CompoundName(name, syntax);
It may work for ur application, but to generalize play around it.