Changeset 5674 for DASISH


Ignore:
Timestamp:
09/24/14 12:53:33 (10 years ago)
Author:
olhsha@mpi.nl
Message:

schemalocation is migrated to <server>/SCHEMA/DASISH-schema.xsd. This parameter should be set once in context.xml during the first deployment. The schema itself is taken while building time from the dependencies and unpacked using maven-plugin to /webapp/SCHEMA

Location:
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/pom.xml

    r5661 r5674  
    308308                </executions>
    309309            </plugin>
     310       <!-- unpacking the schema form annotator-achema project -->     
     311            <plugin>
     312                <groupId>org.apache.maven.plugins</groupId>
     313                <artifactId>maven-dependency-plugin</artifactId>
     314                <version>2.9</version>
     315                <executions>
     316                    <execution>
     317                        <id>unpack</id>
     318                        <phase>package</phase>
     319                        <goals>
     320                            <goal>unpack</goal>
     321                        </goals>
     322                        <configuration>
     323                            <artifactItems>
     324                                <artifactItem>
     325                                    <groupId>eu.dasish.annotation</groupId>
     326                                    <artifactId>annotator-schema</artifactId>
     327                                    <version>1.0-SNAPSHOT</version>
     328                                    <type>jar</type>
     329                                    <overWrite>true</overWrite>
     330                                    <outputDirectory>${basedir}/src/main/webapp/SCHEMA</outputDirectory>
     331                                    <destFileName>annotator-schema-dynamic-copy.jar</destFileName>
     332                                    <includes>**/*.xsd</includes>
     333                                    <excludes>**/*.class, **/*.xml</excludes>
     334                                </artifactItem>
     335                            </artifactItems>
     336                        </configuration>
     337                    </execution>
     338                </executions>
     339            </plugin>
     340           
    310341            <plugin>
    311342                <!--                                             
  • DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/webapp/WEB-INF/web-basic.xml

    r5385 r5674  
    3333        <param-name>contextConfigLocation</param-name>
    3434        <param-value>classpath*:spring-config/**/*.xml</param-value>
    35     </context-param>
    36     <context-param>
    37         <param-name>eu.dasish.annotation.backend.schemaLocation</param-name>
    38         <param-value>http://lux17.mpi.nl/schemacat/schemas/s15/files/dwan.xsd</param-value>
    3935    </context-param>
    4036    <context-param>
  • DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/webapp/WEB-INF/web-shibboleth.xml

    r5385 r5674  
    3232        <param-name>contextConfigLocation</param-name>
    3333        <param-value>classpath*:spring-config/**/*.xml</param-value>
    34     </context-param>
    35     <context-param>
    36         <param-name>eu.dasish.annotation.backend.schemaLocation</param-name>
    37         <param-value>http://lux17.mpi.nl/schemacat/schemas/s15/files/dwan.xsd</param-value>
    3834    </context-param>
    3935    <context-param>
  • DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/webapp/WEB-INF/web.xml

    r5393 r5674  
    2929        <param-name>contextConfigLocation</param-name>
    3030        <param-value>classpath*:spring-config/**/*.xml</param-value>
    31     </context-param>
    32     <context-param>
    33         <param-name>eu.dasish.annotation.backend.schemaLocation</param-name>
    34         <param-value>http://lux17.mpi.nl/schemacat/schemas/s16/files/DASISH-schema.xsd</param-value>   
    3531    </context-param>
    3632    <context-param>
  • DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/webapp/index.jsp

    r5661 r5674  
    2525        <br>
    2626        <h3>Services for which you do not need to be logged-in</h3>
    27         <br>
    28         <a href="registerNonShibbolethPrincipal.html"> Register a non-shibboleth user</a> <br>
     27       
     28        <br>
     29        <%
     30        String schemaLocation = application.getInitParameter("eu.dasish.annotation.backend.schemaLocation");
     31        System.out.println(schemaLocation);
     32        %>
     33        <a href=<%=application.getInitParameter("eu.dasish.annotation.backend.schemaLocation")%> > Get DASISH schema</a> <br>
    2934        <br>
    3035        <a href="registerShibbolethPrincipal.html"> Register a shibboleth user</a> <br>
    31 <!--        <br>
    32         <a href="registerShibbolethAlsoAsNonShibboleth.html"> Register an existing  shibboleth user as a non-shibboleth as well.</a> <br>
    33         <br>-->
    3436        <br>
    3537        <a href="api/authentication/login"> login  </a> <br>
Note: See TracChangeset for help on using the changeset viewer.