好吧,首先我回到了最初的 github 项目。不用说这个问题与 java 11 和一些折旧的功能有关。所以对于想要在 Netbeans 11 和 Java 11 (OpenJDK) 和 Tomcat 9.0 中使用 adminfaces 的人来说:
- 从 github 下载 admin-starter-tomcat-master.zip
- 在 Netbeans 中导入。将目录重命名为 admin-starter-tomcat。
- 在 pom.xml 中添加 javax.annotation V1.3.2 的依赖项
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>
- 在 pom.xml 中添加 javax.xml.bind.JAXBContext 的依赖项
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>2.3.0.1</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.1</version>
</dependency>
在我浪费了一周的时间后,这对我有用。