Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
231 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
jsf/numberguess/src/main/webapp-gae/WEB-INF/appengine-web.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0"> | ||
<application>webbeans-numberguess</application> | ||
<version>1</version> | ||
|
||
<!-- Configure java.util.logging --> | ||
<system-properties> | ||
<property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/> | ||
</system-properties> | ||
|
||
<sessions-enabled>true</sessions-enabled> | ||
|
||
</appengine-web-app> |
11 changes: 11 additions & 0 deletions
11
jsf/numberguess/src/main/webapp-gae/WEB-INF/faces-config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<faces-config version="1.2" | ||
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-facesconfig_1_2.xsd"> | ||
|
||
<application> | ||
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler> | ||
</application> | ||
|
||
</faces-config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" | ||
"http://jetty.mortbay.org/configure.dtd"> | ||
<Configure id="webAppCtx" class="org.mortbay.jetty.webapp.WebAppContext"> | ||
<New id="appManager" class="org.mortbay.jetty.plus.naming.Resource"> | ||
<Arg><Ref id="webAppCtx"/></Arg> | ||
<Arg>app/Manager</Arg> | ||
<Arg> | ||
<New class="javax.naming.Reference"> | ||
<Arg>javax.inject.manager.Manager</Arg> | ||
<Arg>org.jboss.webbeans.resources.ManagerObjectFactory</Arg> | ||
<Arg/> | ||
</New> | ||
</Arg> | ||
</New> | ||
</Configure> |
28 changes: 28 additions & 0 deletions
28
jsf/numberguess/src/main/webapp-gae/WEB-INF/logging.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# A default java.util.logging configuration. | ||
# (All App Engine logging is through java.util.logging by default). | ||
# | ||
# To use this configuration, copy it into your application's WEB-INF | ||
# folder and add the following to your appengine-web.xml: | ||
# | ||
# <system-properties> | ||
# <property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/> | ||
# </system-properties> | ||
# | ||
|
||
# Set the default logging level for all loggers to WARNING | ||
.level = DEBUG | ||
|
||
# Set the default logging level for ORM, specifically, to WARNING | ||
DataNucleus.JDO.level=WARNING | ||
DataNucleus.Persistence.level=WARNING | ||
DataNucleus.Cache.level=WARNING | ||
DataNucleus.MetaData.level=WARNING | ||
DataNucleus.General.level=WARNING | ||
DataNucleus.Utility.level=WARNING | ||
DataNucleus.Transaction.level=WARNING | ||
DataNucleus.Datastore.level=WARNING | ||
DataNucleus.ClassLoading.level=WARNING | ||
DataNucleus.Plugin.level=WARNING | ||
DataNucleus.ValueGeneration.level=WARNING | ||
DataNucleus.Enhancer.level=WARNING | ||
DataNucleus.SchemaTool.level=WARNING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<web-app 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" | ||
version="2.5"> | ||
|
||
<display-name>Web Beans Numberguess example</display-name> | ||
|
||
<context-param> | ||
<param-name>javax.faces.DEFAULT_SUFFIX</param-name> | ||
<param-value>.xhtml</param-value> | ||
</context-param> | ||
|
||
<!-- GAE doesn't work with the Mojarra default startup --> | ||
<context-param> | ||
<param-name>com.sun.faces.enableMultiThreadedStartup</param-name> | ||
<param-value>false</param-value> | ||
</context-param> | ||
|
||
<!-- Specify the expression factory manually, JSF can't find it from JSP in GAE --> | ||
<context-param> | ||
<param-name>com.sun.faces.expressionFactory</param-name> | ||
<param-value>com.sun.el.ExpressionFactoryImpl</param-value> | ||
</context-param> | ||
|
||
<listener> | ||
<listener-class>org.jboss.webbeans.environment.servlet.Listener</listener-class> | ||
</listener> | ||
|
||
<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>*.jsf</url-pattern> | ||
</servlet-mapping> | ||
|
||
<session-config> | ||
<session-timeout>10</session-timeout> | ||
</session-config> | ||
|
||
<resource-env-ref> | ||
<description>Object factory for the CDI Bean Manager</description> | ||
<resource-env-ref-name>BeanManager</resource-env-ref-name> | ||
<resource-env-ref-type>javax.enterprise.inject.spi.BeanManager</resource-env-ref-type> | ||
</resource-env-ref> | ||
|
||
</web-app> |