问题标签 [wildfly-10]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - REST POST 在 wildflyv10 中返回状态 405
我将我的服务定义为:
我的激活器:
XML文件映射定义为:
我的客户是:
当我向 URL 发送请求时,http://localhost:8080/xx/services/fileservice/path
我得到response.getStatus()
405。
我在这里做错了什么?
ssl - 密钥库无法在 Wildfly 中使用 CA 证书
所以我买了一个证书,我得到了一个证书、一个密钥和一个有两个开头的中间体,我不知道这是否重要,或者应该作为单独的中间体添加。
我像这样添加了证书和中间件。
到目前为止我没有遇到问题,它在我的 wildfly/standalone/configuration/ 文件夹中创建了一个 mykeystore.keystore 文件。我什至可以在 mykeystore.keystore 中列出我的条目。
然后将以下内容添加到我的standalone.xml 中。
我收到以下错误:
我使用自己生成的证书进行了相同的配置,并且可以正常工作。我不知道为什么我不能做这样的工作。
eclipse - Eclipse 在 Jboss Wildfly 上部署爆炸的 JAR 导致访问 TLD 文件时出错
[问题更新:见下文]
我有一个引用另一个 Maven 项目(门户框架)的 Maven 网络项目(门户网站)。Web 服务器是 Wilfly 10.0.0,IDE 是 Eclipse MARS,带有用于连接器的 Jboss 工具。
框架项目在 src\main\resourcesMETA-INF\taglib.tld 上包含一个 TLD 文件。我在我的 JSP 上使用的:
问题是,在我的 JSP 上使用标记库会导致访问被拒绝错误:
现在,在将主项目部署到 wildlfy 时,依赖的 JAR 会在以下位置展开:
我注意到 JAR 项目似乎在 eclipse、connector 和 wildfly 之间的处理方式不同,如下所示:
我的项目中有大量依赖包(Spring、hibernate 等),但只有这两个显示为“J2EE 实用程序 JAR”。这与部署时爆炸的 JAR 有关吗?
我还尝试在 wildfly 连接器上启用“部署为压缩存档”选项,但它并没有真正起作用(部署后 spring 根本没有启动)。
在搜索了这个问题之后,我对可能导致此问题的原因感到非常困惑:它是日食吗?M2E?POM 的?野蝇?Eclipse 方面?我尝试了这些晦涩的部署选项属性的多种组合,尝试删除“实用程序方面”,甚至运行 maven eclipse:eclipse 但老实说,我完全迷失了,因为我不知道在哪里搜索问题。
我该如何排序?
这是我的POM。简化:
“父 POM” - 对于所有项目:
门户框架 POM (JAR)
Portal-WEB POM (The WAR) 注意:这个项目对不同的模块使用 maven 覆盖,但是因为模块被正确地添加到最终的 WAR 中,所以效果很好。只是 JAR 会爆炸
更新:我注意到使用 wildfly maven 插件并运行 mvn wildfly:deploy 一切正常(实用程序 JAR 被部署为存档),所以问题一定出在 eclipse 中,它正在爆炸实用程序 JAR。
ajax - 在 JSF 2.2 中使用 Ajax Poll 时抛出 View Expired Exception
我正在使用 Primefaces Poll 进行这样的连续 ajax 调用。
polll.xhtml:
爪哇:
服务器日志:
我不明白为什么即使在 web.xml 会话超时设置为 30 分钟,它仍会不断抛出此异常。我正在使用 WildFly10 服务器。任何人都可以帮忙吗?
java - 会话工厂构建休眠5中的java.lang.NullPointerException
我正在尝试在休眠 5 中创建一个会话工厂对象。它在创建会话工厂对象时抛出空指针异常。这是错误
这是我的代码
我的 REST 服务
我的 hibernate.cfg.xml
我的 pom.xml
人.hbm.xml
实体人
wildfly-10 - Arquillian-Jboss Wildfly 持久性单元错误
我是 arquillian 和 wildfly 的新手,问题是我正在尝试在 arquillian 上运行一个EAR
包含一个jar
andwar
并使用 wildfly
我有这个错误"WFLYJPA0038: Failed to add persistence unit service for SimbaPersistance"
..
Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.persistenceunit."0-snecma-simbav2-ear-module.ear#SimbaPersistance".__FIRST_PHASE__ is already registered
我已经persistence.xml
使用 arquillian 将文件添加到耳朵并设置了standalone-full 和jboss-resources-ds
xmls
提前感谢大家的帮助
java - 错误 - 找不到元素“bean”的声明 - wildfly
我是开发新手,我刚刚说过要使用 eclipse mars、java 8、spring 4.2.5、wildfly 10.0.0 和使用 maven 构建一个 spring 项目。
当我在部署文件夹中部署war文件时,出现错误(cvc-elt.1.a:找不到元素'beans'的声明)。
对于类似的问题,我找到了添加 bean 的答案,检查 xsi:schemaLocation 的大写L,删除版本,我也检查了,但没有任何效果`
`
我附上了 Spring-Servlet.xml 和 pom.xml
Spring-Servlet.xml
pom.xml
提前致谢。
更新
添加bean后,我遇到了编译问题
在此行找到多个注释:- cvc-elt.1:找不到元素“beans:beans”的声明。- schema_reference.4:未能读取架构文档' http://www.springframework.org/schema/beans/spring-beans-4.2.xsd ',因为 1) 找不到该文档;2) 文件无法读取;3) 文档的根元素不是 .
jms - Stadlaone-完整的 Wildfly 设置
我正在尝试运行在 jboss EAP 上运行的应用程序,在 jboss Wildfly 上,但我遇到了standalone-full.xml 的问题,因为 Wildfly 上不提供 hornetq 等一些服务是否有可能从野蝇?
有什么帮助吗?
web-services - Service could not find resource (Wildfly 10.0, JAX-RS)
I am learning REST services and face the problem: RestEasy cannot find my resources, even though I've tried various ways to demonstrate them.
Exception:
where RestfullService is the name of my project, /service - applicationPath, hello - resource. None of the errors (404 etc.) are shown on this pages.
My web.xml (by the way, I've met controversial approaches regarding the content of web.xml while using web app server 3.0. According to official manuals, it is not required, but lots of people argue for it. What is the best practice?)
My pom.xml (Although I've added all dependencies manually, the problem wasn't eliminated)
ServiceInitialisation.java (both options with and without the body of this class didn't help):
And finally services:
I would be gratefull for any comments, since all the available solutions in the web were already been unsuccessfully tried. Thanks in advanced
Update: Due to the fact that only a few manuals were succesfully deployed on my machine, I suppose I choose incorrect setting during the process of creation of the project. I create the project for REST in this way: create Dynamic web project -> convert it to Maven -> add dependencies etc. -> trying to deploy
Screenshot of them: The image is here
Update2 Moreover, I've noticed that every time I start WildFly I meet the same error. I have tried to create a few project with various dependencies, but the result is the same. How to deal with it?
server - 如何使用 Wildfly 配置文件中的变量?
我正在standalone-full.xml
为所有服务器环境设置一个通用文件,因此需要为数据库 URL(等)设置变量,而不是对它们进行硬编码。
配置文件中的一个这样的部分可能如下所示:
但是,在使用此配置文件启动服务器时,它只会为所有此类部分抛出“无法解析表达式”错误。
我尝试将变量放入/etc/environment
,以及using的.jbossclirc
文件中,但无济于事。/bin
set DB_USERNAME=mydbusername
正如你所看到的,我在这里有点摸不着头脑,因为我找不到任何有关如何执行此操作的适当文档。我什至不确定这是否真的可能。任何帮助是极大的赞赏。