将lightadmin整合到野生动物

时间:2015-09-26 10:15:38

标签: wildfly lightadmin

我一直试图用我的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 我无法弄清楚为什么?!?

任何提示??

1 个答案:

答案 0 :(得分:0)

请改用apache孵化器项目 apache batchee 像魅力一样工作 - 只需要一个maven依赖和你正在运行