我一直在尝试让 lightadmin 使用我的 wildfly 8.1 设置运行。我有一个 Wildfly 8.1 运行着我想在 UI 中显示的实体。在尝试集成 lightadmin 之前,我在 wildfly 中没有 UI/Web。
我使用 maven,在其中添加了以下部分(如http://lightadmin.org/getting-started/所示)
<dependency>
<groupId>org.lightadmin</groupId>
<artifactId>lightadmin</artifactId>
<version>1.2.0.RC1</version>
</dependency>
和
<repository>
<id>lightadmin-nexus-releases</id>
<url>http://lightadmin.org/nexus/content/repositories/releases</url>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</releases>
</repository>
我的(新)web.xml(在我的 persistence.xml 中)
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<context-param>
<param-name>light:administration:base-url</param-name>
<param-value>/admin</param-value>
</context-param>
<context-param>
<param-name>light:administration:security</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>light:administration:base-package</param-name>
<param-value>dk.test.business.batchjobs</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:/META-INF/persistence.xml</param-value>
</context-param>
我想在 ui 中显示的实体
package dk.test.entities.batchjobs;
import javax.persistence.*;
import java.sql.Timestamp;
@Entity
@Table(name = "JOB_EXECUTION")
public class JobExecution {
....
}
我的 AdministrationConfiguration 类
package dk.test.business.batchjobs;
import dk.test.entities.batchjobs.JobExecution;
class JobAdministration extends AdministrationConfiguration {
....
}
我的(第一个)问题是我无法扩展 AdministrationConfiguration 并且我不知道为什么?!?
有什么提示吗??