My Servlet can't load the Session class at all, running on the
development server or the actual backend.

Is this by design?

Here's the minimal code to demonstrate the problem; it fails both
locally and on the server, albeit with different ClassLoader
implementations:

package example;

public class JavaMailBug extends javax.servlet.http.HttpServlet {
        public void init() {
                try {
                        Class c = Class.forName("javax.mail.Session");
                        System.err.println("Loaded Session");
                } catch (ClassNotFoundException e) {
                        System.err.println("Did not load Session; ClassLoader = 
" +
JavaMailBug.class.getClassLoader());
                }
        }
}

<appengine-web-app xmlns="http://appengine.google.com/ns/1.0";>
  <application>JavaMailBug</application>
  <version>1.3.0</version>
</appengine-web-app>

<web-app>
        <servlet>
                <servlet-name>default</servlet-name>
                <servlet-class>example.JavaMailBug</servlet-class>
                <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
                <servlet-name>default</servlet-name>
                <url-pattern>/</url-pattern>
        </servlet-mapping>
</web-app>

-- David P. Caldwell
http://www.inonit.com/
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


Reply via email to