directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r702618 - in /directory/sandbox/felixk/embed-apacheds-archetype: ./ src/ src/main/ src/main/resources/ src/main/resources/META-INF/ src/main/resources/META-INF/maven/ src/main/resources/archetype-resources/ src/main/resources/archetype-reso...
Date Tue, 07 Oct 2008 20:34:30 GMT
Author: felixk
Date: Tue Oct  7 13:34:29 2008
New Revision: 702618

URL: http://svn.apache.org/viewvc?rev=702618&view=rev
Log:
Initial. For testing: checkout, mvn install, goto an emtpy directory and run mvn archetype:generate
-DarchetypeCatalog=local, choose the embed archetype and set packing to 'war'.

Added:
    directory/sandbox/felixk/embed-apacheds-archetype/
    directory/sandbox/felixk/embed-apacheds-archetype/pom.xml   (with props)
    directory/sandbox/felixk/embed-apacheds-archetype/src/
    directory/sandbox/felixk/embed-apacheds-archetype/src/main/
    directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/
    directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/META-INF/
    directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/META-INF/maven/
    directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
  (with props)
    directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/META-INF/maven/archetype.xml
  (with props)
    directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/
    directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/pom.xml
  (with props)
    directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/
    directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/
    directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/java/
    directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/java/RootDseServlet.java
  (with props)
    directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/java/StartStopListener.java
  (with props)
    directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/resources/
    directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/resources/log4j.properties
  (with props)
    directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/webapp/
    directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/
    directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
  (with props)

Added: directory/sandbox/felixk/embed-apacheds-archetype/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/embed-apacheds-archetype/pom.xml?rev=702618&view=auto
==============================================================================
--- directory/sandbox/felixk/embed-apacheds-archetype/pom.xml (added)
+++ directory/sandbox/felixk/embed-apacheds-archetype/pom.xml Tue Oct  7 13:34:29 2008
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?><project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.directory</groupId>
+  <artifactId>embed-apacheds-archetype</artifactId>
+  <packaging>maven-archetype</packaging>
+  <name>Archetype to embed ApacheDS as a Web Application</name>
+  <version>1.0-SNAPSHOT</version>
+  <build>
+    <extensions>
+      <extension>
+        <groupId>org.apache.maven.archetype</groupId>
+        <artifactId>archetype-packaging</artifactId>
+        <version>2.0-alpha-3</version>
+      </extension>
+    </extensions>
+    <plugins>
+      <plugin>
+        <artifactId>maven-archetype-plugin</artifactId>
+        <version>2.0-alpha-3</version>
+        <extensions>true</extensions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
\ No newline at end of file

Propchange: directory/sandbox/felixk/embed-apacheds-archetype/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml?rev=702618&view=auto
==============================================================================
--- directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
(added)
+++ directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
Tue Oct  7 13:34:29 2008
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?><archetype-descriptor name="embedded-apacheds">
+  <fileSets>
+    <fileSet filtered="true" packaged="true" encoding="UTF-8">
+      <directory>src/main/java</directory>
+      <includes>
+        <include>**/*.java</include>
+      </includes>
+    </fileSet>
+    <fileSet filtered="true" encoding="UTF-8">
+      <directory>src/main/webapp</directory>
+      <includes>
+        <include>**/*.xml</include>
+      </includes>
+    </fileSet>
+    <fileSet filtered="true" encoding="UTF-8">
+      <directory>src/main/resources</directory>
+      <includes>
+        <include>**/*.properties</include>
+      </includes>
+    </fileSet>
+  </fileSets>
+</archetype-descriptor>
\ No newline at end of file

Propchange: directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/META-INF/maven/archetype.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/META-INF/maven/archetype.xml?rev=702618&view=auto
==============================================================================
--- directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/META-INF/maven/archetype.xml
(added)
+++ directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/META-INF/maven/archetype.xml
Tue Oct  7 13:34:29 2008
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?><archetype>
+  <id>embedded-apacheds</id>
+  <sources>
+    <source>src/main/java/RootDseServlet.java</source>
+    <source>src/main/java/StartStopListener.java</source>
+  </sources>
+  <resources>
+    <resource>src/main/webapp/WEB-INF/web.xml</resource>
+    <resource>src/main/resources/log4j.properties</resource>
+  </resources>
+</archetype>
\ No newline at end of file

Propchange: directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/META-INF/maven/archetype.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/pom.xml?rev=702618&view=auto
==============================================================================
--- directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/pom.xml
(added)
+++ directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/pom.xml
Tue Oct  7 13:34:29 2008
@@ -0,0 +1,216 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>${groupId}</groupId>
+  <artifactId>${artifactId}</artifactId>
+  <packaging>war</packaging>
+  <version>${version}</version>
+  <name>Embedded ApacheDS as a Web Application</name>
+  <url>http://maven.apache.org</url>
+  
+  <build>
+    <finalName>${artifactId}</finalName>
+    <plugins>
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <groupId>org.apache.maven.plugins</groupId>
+        <configuration>
+          <source>1.5</source>
+          <target>1.5</target>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  
+  <dependencies>
+
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-bootstrap-extract</artifactId>
+      <version>1.5.4</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-bootstrap-partition</artifactId>
+      <version>1.5.4</version>
+      <scope>test</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-core</artifactId>
+      <version>1.5.4</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-core-avl</artifactId>
+      <version>1.5.4</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-core-cursor</artifactId>
+      <version>1.5.4</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-core-entry</artifactId>
+      <version>1.5.4</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-core-jndi</artifactId>
+      <version>1.5.4</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-core-shared</artifactId>
+      <version>1.5.4</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-jdbm</artifactId>
+      <version>1.5.4</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-jdbm-store</artifactId>
+      <version>1.5.4</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-protocol-ldap</artifactId>
+      <version>1.5.4</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-protocol-shared</artifactId>
+      <version>1.5.4</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-schema-bootstrap</artifactId>
+      <version>1.5.4</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-schema-registries</artifactId>
+      <version>1.5.4</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-utils</artifactId>
+      <version>1.5.4</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-xdbm-base</artifactId>
+      <version>1.5.4</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-xdbm-search</artifactId>
+      <version>1.5.4</version>
+    </dependency>
+
+    <dependency>
+      <groupId>commons-collections</groupId>
+      <artifactId>commons-collections</artifactId>
+      <version>3.2.1</version>
+    </dependency>
+
+    <dependency>
+      <groupId>commons-lang</groupId>
+      <artifactId>commons-lang</artifactId>
+      <version>2.4</version>
+    </dependency>
+
+    <dependency>
+      <groupId>log4j</groupId>
+      <artifactId>log4j</artifactId>
+      <version>1.2.14</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.mina</groupId>
+      <artifactId>mina-core</artifactId>
+      <version>1.1.7</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.mina</groupId>
+      <artifactId>mina-filter-ssl</artifactId>
+      <version>1.1.7</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.shared</groupId>
+      <artifactId>shared-asn1</artifactId>
+      <version>0.9.12</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.shared</groupId>
+      <artifactId>shared-asn1-codec</artifactId>
+      <version>0.9.12</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.shared</groupId>
+      <artifactId>shared-bouncycastle-reduced</artifactId>
+      <version>0.9.12</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.shared</groupId>
+      <artifactId>shared-ldap</artifactId>
+      <version>0.9.12</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.shared</groupId>
+      <artifactId>shared-ldap-constants</artifactId>
+      <version>0.9.12</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-api</artifactId>
+      <version>1.5.2</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+      <version>1.5.2</version>
+    </dependency>
+
+    <dependency>
+      <groupId>antlr</groupId>
+      <artifactId>antlr</artifactId>
+      <version>2.7.7</version>
+    </dependency>
+    
+    <dependency>
+      <artifactId>servlet-api</artifactId>
+      <groupId>javax.servlet</groupId>
+      <version>2.5</version>
+      <scope>provided</scope>
+    </dependency>
+
+  </dependencies>
+</project>

Propchange: directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/java/RootDseServlet.java
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/java/RootDseServlet.java?rev=702618&view=auto
==============================================================================
--- directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/java/RootDseServlet.java
(added)
+++ directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/java/RootDseServlet.java
Tue Oct  7 13:34:29 2008
@@ -0,0 +1,112 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package ${package};
+
+import java.io.PrintWriter;
+import java.util.Hashtable;
+
+import javax.naming.Context;
+import javax.naming.NamingEnumeration;
+import javax.naming.directory.Attribute;
+import javax.naming.directory.Attributes;
+import javax.naming.directory.DirContext;
+import javax.naming.directory.InitialDirContext;
+import javax.naming.directory.SearchControls;
+import javax.naming.directory.SearchResult;
+import javax.servlet.ServletContext;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.directory.server.core.DirectoryService;
+import org.apache.directory.server.core.jndi.CoreContextFactory;
+
+/**
+ * A servlet which displays the Root DSE of the embedded server.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory
+ *         Project</a>
+ */
+public class RootDseServlet extends HttpServlet {
+
+    private static final long serialVersionUID = 1L;
+
+    protected void doGet(HttpServletRequest req, HttpServletResponse resp)
+            throws ServletException {
+
+        try {
+            resp.setContentType("text/plain");
+            PrintWriter out = resp.getWriter();
+
+            out.println("*** ApacheDS RootDSE ***\n");
+
+            DirContext ctx = new InitialDirContext(this.createEnv());
+
+            SearchControls ctls = new SearchControls();
+            ctls.setReturningAttributes(new String[] { "*", "+" });
+            ctls.setSearchScope(SearchControls.OBJECT_SCOPE);
+
+            NamingEnumeration<SearchResult> result = ctx.search("",
+                    "(objectClass=*)", ctls);
+            if (result.hasMore()) {
+                SearchResult entry = result.next();
+                Attributes as = entry.getAttributes();
+
+                NamingEnumeration<String> ids = as.getIDs();
+                while (ids.hasMore()) {
+                    String id = ids.next();
+                    Attribute attr = as.get(id);
+                    for (int i = 0; i < attr.size(); ++i) {
+                        out.println(id + ": " + attr.get(i));
+                    }
+                }
+            }
+            ctx.close();
+
+            out.flush();
+        } catch (Exception e) {
+            throw new ServletException(e);
+        }
+    }
+
+    /**
+     * Creates an environment configuration for JNDI access.
+     */
+    protected Hashtable<Object, Object> createEnv() {
+
+        // Fetch directory servive from servlet context
+        ServletContext servletContext = this.getServletContext();
+        DirectoryService directoryService = (DirectoryService) servletContext
+                .getAttribute(DirectoryService.JNDI_KEY);
+
+        Hashtable<Object, Object> env = new Hashtable<Object, Object>();
+        env.put(DirectoryService.JNDI_KEY, directoryService);
+        env.put(Context.PROVIDER_URL, "");
+        env.put(Context.INITIAL_CONTEXT_FACTORY, CoreContextFactory.class
+                .getName());
+
+        env.put(Context.SECURITY_PRINCIPAL, "uid=admin,ou=system");
+        env.put(Context.SECURITY_CREDENTIALS, "secret");
+        env.put(Context.SECURITY_AUTHENTICATION, "simple");
+
+        return env;
+    }
+}
\ No newline at end of file

Propchange: directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/java/RootDseServlet.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/java/StartStopListener.java
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/java/StartStopListener.java?rev=702618&view=auto
==============================================================================
--- directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/java/StartStopListener.java
(added)
+++ directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/java/StartStopListener.java
Tue Oct  7 13:34:29 2008
@@ -0,0 +1,92 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package ${package};
+
+import java.io.File;
+
+import javax.servlet.ServletContext;
+import javax.servlet.ServletContextEvent;
+import javax.servlet.ServletContextListener;
+
+import org.apache.directory.server.core.DefaultDirectoryService;
+import org.apache.directory.server.core.DirectoryService;
+import org.apache.directory.server.ldap.LdapService;
+import org.apache.directory.server.protocol.shared.SocketAcceptor;
+
+/**
+ * A Servlet context listener to start and stop ApacheDS.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory
+ *         Project</a>
+ */
+public class StartStopListener implements ServletContextListener {
+
+    private DirectoryService directoryService;
+
+    private SocketAcceptor socketAcceptor;
+    private LdapService ldapService;
+
+    /**
+     * Startup ApacheDS embedded.
+     */
+    public void contextInitialized(ServletContextEvent evt) {
+
+        try {
+            directoryService = new DefaultDirectoryService();
+            directoryService.setShutdownHookEnabled(true);
+
+            socketAcceptor = new SocketAcceptor(null);
+            ldapService = new LdapService();
+            ldapService.setSocketAcceptor(socketAcceptor);
+            ldapService.setDirectoryService(directoryService);
+
+            // Set LDAP port to 10389
+            ldapService.setIpPort(10389);
+
+            // Determine an appropriate working directory
+            ServletContext servletContext = evt.getServletContext();
+            File workingDir = (File) servletContext
+                    .getAttribute("javax.servlet.context.tempdir");
+            directoryService.setWorkingDirectory(workingDir);
+
+            directoryService.startup();
+            ldapService.start();
+
+            // Store directoryService in context to provide it to servlets etc.
+            servletContext.setAttribute(DirectoryService.JNDI_KEY,
+                    directoryService);
+
+        } catch (Exception e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    /**
+     * Shutdown ApacheDS embedded.
+     */
+    public void contextDestroyed(ServletContextEvent evt) {
+        try {
+            ldapService.stop();
+            directoryService.shutdown();
+        } catch (Exception e) {
+            throw new RuntimeException(e);
+        }
+    }
+}
\ No newline at end of file

Propchange: directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/java/StartStopListener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/resources/log4j.properties
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/resources/log4j.properties?rev=702618&view=auto
==============================================================================
    (empty)

Propchange: directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/resources/log4j.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml?rev=702618&view=auto
==============================================================================
--- directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
(added)
+++ directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
Tue Oct  7 13:34:29 2008
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+"http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+  <display-name>ApacheDS embedded in a WebApp</display-name>
+  <description>
+    A simple yet portable way to run ApacheDS within a servlet
+    container
+  </description>
+
+  <listener>
+    <listener-class>
+      ${package}.StartStopListener
+    </listener-class>
+  </listener>
+
+  <servlet>
+    <servlet-name>RootDseServlet</servlet-name>
+    <servlet-class>
+      ${package}.RootDseServlet
+    </servlet-class>
+  </servlet>
+
+   <servlet-mapping>
+     <servlet-name>RootDseServlet</servlet-name>
+     <url-pattern>/RootDse</url-pattern>
+   </servlet-mapping>
+</web-app>
+

Propchange: directory/sandbox/felixk/embed-apacheds-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message