我刚从netbeans 8.2升级到Apache Netbeans 11,以便启动我的第一个webapp。我想使用adminfaces,但是卡住了。
我首先使用了admin-starter项目,并从github中克隆了它。在netbeans IDE中,我总是收到错误页500。之后,我从头开始尝试:新建项目,带有Maven的Java,Web应用程序 这为我的Tomcat9.0服务器提供了一个不错的demoPage。现在,我尝试了所有不同类型的事情-没起作用。
How to Install Adminlte template on netbeans
基本上这就是我想要的,但这在Netbeans 11上不再起作用。
我们非常感谢您的帮助。
答案 0 :(得分:0)
首先,我回到原始的github项目。不用说,问题与Java 11和一些折旧的函数有关。 因此,对于想要在Netbeans 11和Java 11(OpenJDK)和Tomcat 9.0中使用adminfaces的人:
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>
<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>
这让我花了一个星期的时间为我工作。