我已经安装了wildfly 8.1,因为我已经配置了一个使用EclipseLink的项目,我试图配置wildfly来使用它.
但是,我总是一样的错误:
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
Caused by: javax.persistence.PersistenceException: JBAS011466: PersistenceProvider '
org.eclipse.persistence.jpa.PersistenceProvider
' not found
at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.lookupProvider(PersistenceUnitServiceHandler.java:990)
at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.addPuService(PersistenceUnitServiceHandler.java:258)
at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.handleWarDeployment(PersistenceUnitServiceHandler.java:191)
at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.deploy(PersistenceUnitServiceHandler.java:126)
at org.jboss.as.jpa.processor.PersistenceBeginInstallProcessor.deploy(PersistenceBeginInstallProcessor.java:52)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
... 5 more
Run Code Online (Sandbox Code Playgroud)
我虽然遵循了官方文档的说明,但没有改变!我已将eclipseLink的jar添加到"modules\system\layers\base\org\eclipse\persistence\main"和module.xml:
<module xmlns="urn:jboss:module:1.3" name="org.eclipse.persistence">
<resources>
<resource-root path="jipijapa-eclipselink-1.0.1.Final.jar"/>
<resource-root path="eclipselink.jar"/>
</resources>
<dependencies>
<module name="asm.asm"/>
<module name="javax.api"/>
<module name="javax.annotation.api"/>
<module name="javax.enterprise.api"/>
<module name="javax.persistence.api"/>
<module name="javax.transaction.api"/>
<module name="javax.validation.api"/>
<module name="javax.xml.bind.api"/>
<module name="org.antlr"/>
<module name="org.apache.commons.collections"/> …Run Code Online (Sandbox Code Playgroud) 我使用带有EclipseLink的wildfly,我想跟踪SQL语句.我根据文档配置了EclipseLink ,除SQL日志外,所有工作都正常.我在persistence.xml中添加了这些属性:
<properties>
<property name="eclipselink.logging.level.sql" value="FINE" />
<property name="eclipselink.logging.parameters" value="true" />
<property name="eclipselink.debug" value="OFF" />
<property name="eclipselink.weaving" value="static" />
<property name="eclipselink.logging.logger" value="DefaultLogger" />
</properties>
Run Code Online (Sandbox Code Playgroud)
但没有SQL日志.我究竟做错了什么?
我尝试将 JDBC 日志激活到 Wildfly:
我在子系统“urn:jboss:domain:logging:2.0”中添加了我的standalone.xml:
<logger category="jboss.jdbc.spy">
<level name="TRACE"/>
</logger>
Run Code Online (Sandbox Code Playgroud)
并在我的数据源语句中: spy="true"
但是,我没有 SQL 日志!我忘记了什么吗?有任何想法吗 ?
编辑:显然,问题出在 arquillian 上,因为当我启动服务器时它似乎可以工作,但当服务器由 arquillian 启动时就不行了。有任何想法吗 ?
我想在推送操作上刷新属性的值,但我不知道如何从函数访问属性!
export class Datas {
prop1 = "my val";
}
var connection = new WebSocket('ws://localhost:8787', 'json');
connection.onmessage = function (e) {
// prop1 of Datas = e.data;
};
Run Code Online (Sandbox Code Playgroud)
有任何想法吗 ?
编辑:页面加载后,我想在接收推送消息时刷新数据.
编辑2:测试代码
data.js:
export class Data {
static information = '';
}
Run Code Online (Sandbox Code Playgroud)
viewModel.js
import {bindable} from 'aurelia-framework';
import { Data } from 'data';
export class ViewModel {
constructor() {
this.informaton = Data.information;
}
logState(){
console.log("state of Data.information : " + Data.information);
console.log("state of this.information : " + this.information);
} …Run Code Online (Sandbox Code Playgroud) 我想知道是否可以将重复的父索引传递给重复的转换器?
我试过这个:
<div repeat.for="row of router.navigation | myFilter:1:$parent.$index">
Run Code Online (Sandbox Code Playgroud)
但它不起作用!
有什么想法吗?任何解决方法?
java ×3
aurelia ×2
eclipselink ×2
javascript ×2
wildfly ×2
wildfly-8 ×2
ecmascript-6 ×1
html5 ×1
jdbc ×1
jpa ×1
jpa-2.0 ×1