diff options
author | Greg Wilkins | 2014-08-27 06:34:24 +0000 |
---|---|---|
committer | Greg Wilkins | 2014-08-27 06:38:49 +0000 |
commit | 4c8e2a6635d6a13a783a567aa890237a88a62e56 (patch) | |
tree | 642ef716062d947d43b69d85b8d7bfdc5f08b405 /jetty-quickstart/src/test/resources | |
parent | 8ce96cdd2ea5af38300b8147457e84c3eee2f48d (diff) | |
download | org.eclipse.jetty.project-4c8e2a6635d6a13a783a567aa890237a88a62e56.tar.gz org.eclipse.jetty.project-4c8e2a6635d6a13a783a567aa890237a88a62e56.tar.xz org.eclipse.jetty.project-4c8e2a6635d6a13a783a567aa890237a88a62e56.zip |
442642 Quickstart generates valid XML
Fixed issues with XmlParser and WebDescriptor that were stopping validation.
Diffstat (limited to 'jetty-quickstart/src/test/resources')
-rw-r--r-- | jetty-quickstart/src/test/resources/realm.properties | 21 | ||||
-rw-r--r-- | jetty-quickstart/src/test/resources/test-jndi.xml | 60 | ||||
-rw-r--r-- | jetty-quickstart/src/test/resources/test-spec.xml | 39 | ||||
-rw-r--r-- | jetty-quickstart/src/test/resources/test.xml | 45 |
4 files changed, 0 insertions, 165 deletions
diff --git a/jetty-quickstart/src/test/resources/realm.properties b/jetty-quickstart/src/test/resources/realm.properties deleted file mode 100644 index 9d88b852b7..0000000000 --- a/jetty-quickstart/src/test/resources/realm.properties +++ /dev/null @@ -1,21 +0,0 @@ -# -# This file defines users passwords and roles for a HashUserRealm -# -# The format is -# <username>: <password>[,<rolename> ...] -# -# Passwords may be clear text, obfuscated or checksummed. The class -# org.eclipse.util.Password should be used to generate obfuscated -# passwords or password checksums -# -# If DIGEST Authentication is used, the password must be in a recoverable -# format, either plain text or OBF:. -# -jetty: MD5:164c88b302622e17050af52c89945d44,user -admin: CRYPT:adpexzg3FUZAk,server-administrator,content-administrator,admin,user -other: OBF:1xmk1w261u9r1w1c1xmq,user -plain: plain,user -user: password,user - -# This entry is for digest auth. The credential is a MD5 hash of username:realmname:password -digest: MD5:6e120743ad67abfbc385bc2bb754e297,user diff --git a/jetty-quickstart/src/test/resources/test-jndi.xml b/jetty-quickstart/src/test/resources/test-jndi.xml deleted file mode 100644 index 14c0934845..0000000000 --- a/jetty-quickstart/src/test/resources/test-jndi.xml +++ /dev/null @@ -1,60 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd"> - -<!-- =============================================================== --> -<!-- Configure the test-jndi webapp --> -<!-- =============================================================== --> -<Configure id='wac' class="org.eclipse.jetty.webapp.WebAppContext"> - - <New id="tx" class="org.eclipse.jetty.plus.jndi.Transaction"> - <Arg> - <New class="com.acme.MockUserTransaction"/> - </Arg> - </New> - - <!-- Define an env entry with Server scope for java:comp/env --> - <New id="woggle" class="org.eclipse.jetty.plus.jndi.EnvEntry"> - <Arg><Property name='server'/></Arg> - <Arg>woggle</Arg> - <Arg type="java.lang.Integer">4000</Arg> - <Arg type="boolean">false</Arg> - </New> - - <!-- Define an env entry with webapp scope for java:comp/env --> - <New id="wiggle" class="org.eclipse.jetty.plus.jndi.EnvEntry"> - <Arg><Ref refid='wac'/></Arg> - <Arg>wiggle</Arg> - <Arg type="java.lang.Double">100</Arg> - <Arg type="boolean">true</Arg> - </New> - - <!-- Mail Session setup --> - <New id="xxxmail" class="org.eclipse.jetty.plus.jndi.Resource"> - <Arg><Ref refid='wac'/></Arg> - <Arg>mail/Session</Arg> - <Arg> - <New class="org.eclipse.jetty.jndi.factories.MailSessionReference"> - <Set name="user">CHANGE-ME</Set> - <Set name="password">CHANGE-ME</Set> - <Set name="properties"> - <New class="java.util.Properties"> - <Put name="mail.smtp.auth">false</Put> <!-- change to true if you want to authenticate --> - <Put name="mail.smtp.host">CHANGE-ME</Put> - <Put name="mail.from">CHANGE-ME</Put> - <Put name="mail.debug">false</Put> - </New> - </Set> - </New> - </Arg> - </New> - - <!-- A mock DataSource --> - <New id="mydatasource" class="org.eclipse.jetty.plus.jndi.Resource"> - <Arg><Ref refid='wac'/></Arg> - <Arg>jdbc/mydatasource</Arg> - <Arg> - <New class="com.acme.MockDataSource"/> - </Arg> - </New> - -</Configure> diff --git a/jetty-quickstart/src/test/resources/test-spec.xml b/jetty-quickstart/src/test/resources/test-spec.xml deleted file mode 100644 index 99fc577205..0000000000 --- a/jetty-quickstart/src/test/resources/test-spec.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd"> - -<Configure id='wac' class="org.eclipse.jetty.webapp.WebAppContext"> - - <New id="tx" class="org.eclipse.jetty.plus.jndi.Transaction"> - <Arg> - <New class="com.acme.MockUserTransaction"/> - </Arg> - </New> - - <Get name="securityHandler"> - <Set name="loginService"> - <New class="org.eclipse.jetty.security.HashLoginService"> - <Set name="name">Test Realm</Set> - <Set name="config"><SystemProperty name="jetty.home" default="."/>/test-spec-realm.properties</Set> - </New> - </Set> - </Get> - - - <New id="maxAmount" class="org.eclipse.jetty.plus.jndi.EnvEntry"> - <Arg><Ref refid='wac'/></Arg> - <Arg>maxAmount</Arg> - <Arg type="java.lang.Double">100</Arg> - <Arg type="boolean">true</Arg> - </New> - - - <New id="mydatasource" class="org.eclipse.jetty.plus.jndi.Resource"> - <Arg><Ref refid='wac'/></Arg> - <Arg>jdbc/mydatasource</Arg> - <Arg> - <New class="com.acme.MockDataSource"> - </New> - </Arg> - </New> - -</Configure> diff --git a/jetty-quickstart/src/test/resources/test.xml b/jetty-quickstart/src/test/resources/test.xml deleted file mode 100644 index bbdf08a23a..0000000000 --- a/jetty-quickstart/src/test/resources/test.xml +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="ISO-8859-1"?> -<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd"> - -<!-- ================================================================== -Configure and deploy the test web application in $(jetty.home)/webapps/test - -Note. If this file did not exist or used a context path other that /test -then the default configuration of jetty.xml would discover the test -webapplication with a WebAppDeployer. By specifying a context in this -directory, additional configuration may be specified and hot deployments -detected. -===================================================================== --> - -<Configure class="org.eclipse.jetty.webapp.WebAppContext"> - - <Set name="contextPath">/test</Set> - - <Get name="securityHandler"> - <Set name="loginService"> - <New class="org.eclipse.jetty.security.HashLoginService"> - <Set name="name">Test Realm</Set> - <Set name="config"><SystemProperty name="jetty.home" default="."/>/test-standard-realm.properties</Set> - </New> - </Set> - <Set name="authenticator"> - <New class="org.eclipse.jetty.security.authentication.FormAuthenticator"> - <Set name="alwaysSaveUri">true</Set> - </New> - </Set> - <Set name="checkWelcomeFiles">true</Set> - </Get> - - <!-- Non standard error page mapping --> - <!-- - <Get name="errorHandler"> - <Call name="addErrorPage"> - <Arg type="int">500</Arg> - <Arg type="int">599</Arg> - <Arg type="String">/dump/errorCodeRangeMapping</Arg> - </Call> - </Get> - --> - - -</Configure> |