I tried JSF 2.0 on App engine I got this error
[java] java.lang.NoClassDefFoundError: javax.naming.InitialContext is
a restricted class. Please see the Google App Engine developer's
guide for more details.
[java] at
com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:
51)
[java] at
com.sun.faces.config.WebConfiguration.processJndiEntries(WebConfiguration.java:
578)
[java] at
com.sun.faces.config.WebConfiguration.<init>(WebConfiguration.java:
114)
[java] at
com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:
174)
[java] at
com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:
161)
My Web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<!-- ***** GAE 1.3.0 appears to handle server-side state saving.
***** -->
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<!-- GAE Bug 1506 JSP 2.1 API but 2.0 Implementation -->
<context-param>
<param-name>com.sun.faces.expressionFactory</param-name>
<param-value>com.sun.el.ExpressionFactoryImpl</param-value>
</context-param>
<context-param>
<description>
Set this flag to true if you want the JavaServer Faces
Reference Implementation to validate the XML in your
faces-config.xml resources against the DTD. Default
value is false.
</description>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
<!-- ***** Accommodate Single-Threaded Requirement of Google
AppEngine -->
<context-param>
<description>
When enabled, the runtime initialization and default
ResourceHandler
implementation will use threads to perform their functions. Set
this
value to false if threads aren't desired (as in the case of
running
within the Google Application Engine).
Note that when this option is disabled, the ResourceHandler will
not
pick up new versions of resources when ProjectStage is
development.
</description>
<param-name>com.sun.faces.enableThreading</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.enableJNDI</param-name>
<param-value>false</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.