Changeset 35247 for gs3-extensions


Ignore:
Timestamp:
2021-08-04T10:58:39+12:00 (3 years ago)
Author:
davidb
Message:

Use correct web 3.0 deployment descriptors
Add log4j web APIs and setup for servlets

Location:
gs3-extensions/atea-nlp-tools/trunk/src/koreromaori-proxy
Files:
3 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/atea-nlp-tools/trunk/src/koreromaori-proxy/build.xml

    r35240 r35247  
     1<?xml version="1.0" encoding="UTF-8"?>
     2
    13<project name="gs3-koreromaori-ext" default="usage" basedir=".">
    24    <loadproperties prefix="gs3." srcFile="${basedir}/../../../build.properties" />
     
    5759        <echo message="Creating ${guild.home}/gs3-koreromaori.war" />
    5860
    59         <!-- <copy file="${basedir}/config.properties" todir="${build.classes}" />
    60         <echo message="Copied configuration file" /> -->
    61         <copy file="${basedir}/log4j2.xml" todir="${build.classes}" />
    62        
     61        <!-- <copy file="${basedir}/log4j2.xml" todir="${build.classes}" /> -->
     62           
    6363        <war destfile="${build.home}/gs3-koreromaori.war" webxml="${web.dir}/WEB-INF/web.xml">
    6464            <fileset dir="${web.dir}/webContent" includes="**" />
     
    7070           
    7171            <classes dir="${build.classes}" />
     72
     73            <webinf dir="${web.dir}/WEB-INF" />
    7274        </war>
    7375    </target>
  • gs3-extensions/atea-nlp-tools/trunk/src/koreromaori-proxy/src/main/java/org/atea/nlptools/koreromaoriinterface/TranscriptionServlet.java

    r35242 r35247  
    6363       
    6464        this.transcriptionService = new ReoTuhituhiApiService(jsonSerialiser, apiEndpoint, apiKey);
     65
     66        logger.info("Initialised!");
    6567    }
    6668
  • gs3-extensions/atea-nlp-tools/trunk/src/koreromaori-proxy/src/main/webapp/WEB-INF/web.xml

    r35239 r35247  
    1 <?xml version="1.0" encoding="ISO-8859-1"?>
     1<?xml version="1.0" encoding="UTF-8"?>
    22
    3 <!DOCTYPE web-app
    4     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    5     "http://java.sun.com/dtd/web-app_2_3.dtd">
     3<web-app xmlns="http://java.sun.com/xml/ns/javaee"
     4         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     5         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
     6                             http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
     7         version="3.0">
    68
    7 <web-app>
    89    <!-- General description of your web application -->
    9 
    10     <display-name>Korero Maori TTS ASR API Interface</display-name>
     10    <display-name>Korero Maori TTS ASR API Proxy</display-name>
    1111    <description>
    12         A servlet that hosts a web interface to the speech-to-text ASR API of https://koreromaori.io/
     12        A servlet that hosts a proxy for the speech-to-text ASR API of https://koreromaori.io/
    1313    </description>
    1414
     
    2929         parameters, including zero.
    3030    -->
    31 
    32     <context-param>
    33       <param-name>webmaster</param-name>
    34       <param-value>[email protected]</param-value>
    35       <description>
    36         The EMAIL address of the administrator to whom questions
    37         and comments about this application should be addressed.
    38       </description>
    39     </context-param>
    4031
    4132    <!-- Servlet definitions for the servlets that make up
     
    6556
    6657    <servlet>
    67       <servlet-name>transcribe</servlet-name>
    68       <description>
    69         This servlet provides a proxy for https://koreromaori.io 's reo Maori speech-to-text ASR API.
    70       </description>
     58      <servlet-name>koreroMaoriTranscribe</servlet-name>
    7159      <servlet-class>org.atea.nlptools.koreromaoriinterface.TranscriptionServlet</servlet-class>
    7260      <load-on-startup>0</load-on-startup>
     
    9280
    9381    <servlet-mapping>
    94       <servlet-name>transcribe</servlet-name>
     82      <servlet-name>koreroMaoriTranscribe</servlet-name>
    9583      <url-pattern>/transcribe</url-pattern>
    9684    </servlet-mapping>
Note: See TracChangeset for help on using the changeset viewer.