非常に単純なプロジェクトを Eclipse SDK にエクスポートする際に問題があります。Eclipse は、私の「コア」クラスの *.jar ファイルをコンパイルしません。
私の単純なプロジェクトの構造:
│ .classpath
│ .project
│
├───.settings
│ .jsdtscope
│ org.eclipse.jdt.core.prefs
│ org.eclipse.jst.jsp.core.prefs
│ org.eclipse.wst.common.component
│ org.eclipse.wst.common.project.facet.core.xml
│ org.eclipse.wst.css.core.prefs
│ org.eclipse.wst.html.core.prefs
│ org.eclipse.wst.jsdt.ui.superType.container
│ org.eclipse.wst.jsdt.ui.superType.name
│ org.eclipse.wst.ws.service.policy.prefs
│ org.eclipse.wst.xsl.core.prefs
│
├───build
├───src
│ └───my_package
│ core.java
│
└───WebContent
│ index.jsp
│
├───META-INF
│ MANIFEST.MF
│
└───WEB-INF
│ web.xml
│
├───classes
│ └───my_package
│ core.class
│
└───lib
Eclipse からプロジェクトを実行している場合、既に動作していますが、WebContent をホスティングにアップロードするとエラーが発生します。
web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>MyProject</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>