Hi I am searching for some documentation about tomcat embedded. I am trying to convert a very simple setup (configuration below) to java code, not using any xml file.
Any link, hint, etc. would be helpful.
Could someone give me a hint?
Regards,
Steffen
=== server.xml ==========================================================
<Server port="8005" shutdown="SHUTDOWN">
<Service name="applicationService">
<Executor name="applicationExecutor" namePrefix="application-exec-"
maxThreads="150" minSpareThreads="4" />
<Connector executor="applicationExecutor" port="80" protocol="HTTP/1.1"
connectionTimeout="20000" />
<Connector executor="applicationExecutor" port="443" protocol="HTTP/1.1"
SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="file.p12" keystorePass="password"
keystoreType="PKCS12" URIEncoding="UTF-8" />
<Engine name="applicationEngine" defaultHost="applicationHost">
<Host name="applicationHost" appBase="webapps" unpackWARs="false"
autoDeploy="false" xmlValidation="false" xmlNamespaceAware="false">
<Context path="" reloadable="false" docBase="/opt/application" />
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs"
prefix="access-" suffix=".txt" pattern="combined"
resolveHosts="false" fileDateFormat="yyyy-MM-dd"/>
</Host>
</Engine>
</Service>
</Server>
=== context.xml =========================================================
<Context>
</Context>
=== web.xml =============================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<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">
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<mime-mapping>
<extension>ext</extension>
<mime-type>x-application/ext</mime-type>
</mime-mapping>
</web-app>
smime.p7s
Description: S/MIME cryptographic signature
