我一直试图用我的wildfly 8.1设置运行lightadmin。 我有一个野生动物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 我无法弄清楚为什么?!?
任何提示??