Assuming your Spring application configuration is right it seems that the JNDI resource java:comp/env/jdbc/ww2b/DataSource
is not correctly configured on the server.
You should configure JNDI resource on GlassFish as described in the Administrator Guide.