aipoをglassfishで使う

以下のweb.xmlの2箇所を書き換える。(glassfish3.1.2系で動作確認。)

\aipo\war\src\main\webapp\WEB-INF\web.xml

 

23行目付近

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">

<web-app>

<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
 version="3.1">

 

69行目付近

<servlet-mapping>
  <servlet-name>
    aipo
  </servlet-name>
  <url-pattern>
    /portal/*
  </url-pattern>
  <servlet-name>
    aipo
  </servlet-name>
  <url-pattern>
    /ical/*
  </url-pattern>
</servlet-mapping>

<servlet-mapping>
  <servlet-name>aipo</servlet-name>
  <url-pattern>/portal/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
  <servlet-name>aipo</servlet-name>
  <url-pattern>/ical/*</url-pattern>
</servlet-mapping>