Advertisement
smiche

Untitled

Mar 24th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.86 KB | None | 0 0
  1. /// WEB-INF/web.xml
  2. <?xml version="1.0" encoding="UTF-8"?>
  3. <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.     xmlns="http://xmlns.jcp.org/xml/ns/javaee"
  5.     xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
  6.     version="3.1">
  7.     <display-name>FestivalResources</display-name>
  8.     <welcome-file-list>
  9.         <welcome-file>index.html</welcome-file>
  10.     </welcome-file-list>
  11.  
  12.     <!-- JAX-RS Rest Service -->
  13.     <servlet>
  14.         <description>JAX-RS Tools Generated - Do not modify</description>
  15.         <servlet-name>JAX-RS Servlet</servlet-name>
  16.         <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
  17.         <init-param>
  18.             <param-name>javax.ws.rs.Application</param-name>
  19.             <param-value>fi.observis.festival.cron.CronMasterApplication</param-value>
  20.         </init-param>
  21.         <load-on-startup>1</load-on-startup>
  22.     </servlet>
  23.    
  24.     <servlet-mapping>
  25.         <servlet-name>JAX-RS Servlet</servlet-name>
  26.         <url-pattern>/*</url-pattern>
  27.     </servlet-mapping>
  28.  
  29. </web-app>
  30.  
  31.  
  32. /// conf/server.xml for tomcat
  33.  
  34. ...
  35.  <Engine defaultHost="localhost" name="Catalina">
  36.  
  37.       <!--For clustering, please take a look at documentation at:
  38.          /docs/cluster-howto.html  (simple how to)
  39.          /docs/config/cluster.html (reference documentation) -->
  40.       <!--
  41.      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
  42.      -->
  43.  
  44.       <!-- Use the LockOutRealm to prevent attempts to guess user passwords
  45.           via a brute-force attack -->
  46.       <Realm className="org.apache.catalina.realm.LockOutRealm">
  47.         <!-- This Realm uses the UserDatabase configured in the global JNDI
  48.             resources under the key "UserDatabase".  Any edits
  49.             that are performed against this UserDatabase are immediately
  50.             available for use by the Realm.  -->
  51.         <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
  52.       </Realm>
  53.  
  54.       <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">
  55.  
  56.         <!-- SingleSignOn valve, share authentication between web applications
  57.             Documentation at: /docs/config/valve.html -->
  58.         <!--
  59.        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
  60.        -->
  61.  
  62.         <!-- Access log processes all example.
  63.             Documentation at: /docs/config/valve.html
  64.             Note: The pattern used is equivalent to using pattern="common" -->
  65.         <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t &quot;%r&quot; %s %b" prefix="localhost_access_log" suffix=".txt"/>
  66.  
  67.        <Context docBase="FestivalResources" path="/FestivalResources" reloadable="true" source="org.eclipse.jst.jee.server:FestivalResources"/> <!-- this line points to it I guess? --></Host>
  68.     </Engine>
  69. ....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement