コピペワールド

hirooka.pro

Tomcat

SEVERE: Allocate exception for servlet

投稿日:

謎メモ.

pom.xml に

    <dependency>
    	<groupId>javax</groupId>
    	<artifactId>javaee-web-api</artifactId>
    	<version>7.0</version>
    </dependency>

jsp にアクセス

SEVERE: Allocate exception for servlet ...

web.xml を

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.1" 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">  
<display-name>Archetype Created Web Application</display-name>
  
...

  <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    <init-param>
      <param-name>compilerSourceVM</param-name>
      <param-value>1.7</param-value>
    </init-param>
    <init-param>
      <param-name>compilerTargetVM</param-name>
      <param-value>1.7</param-value>
     </init-param> 
  </servlet>

...

Allocate exception が消える.

しかし,その後,web.xml を元に戻しても Allocate exception は再発せず.わからない.

-Tomcat

Copyright© hirooka.pro , 2018 All Rights Reserved.