wildfly

Concurrent Timeout exception on starting Jboss Wildfly 9.02 server

守給你的承諾、 提交于 2019-11-30 09:44:41
I am new to jboss server. When I am trying to deploy .war file on server the following exception gets print on console: 6:38:04,388 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0348: Timeout after [300] seconds waiting for service container stability. Operation will roll back. Step that first updated the service container was 'add' at address '[ ("core-service" => "management"), ("management-interface" => "http-interface") ]' 16:38:05,642 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) WFLYJCA0019: Stopped Driver service with driver

How to inject EntityManager in CDI (weld)?

南楼画角 提交于 2019-11-30 08:49:02
In my project , I use JSF+JPA+CDI+WildFly 8.2 in the persistence layer. I have a BasicDao , like this: public class BasicDao<M, K> { private org.jboss.logging.Logger logger = org.jboss.logging.Logger .getLogger("BasicDao"); @Inject @Primary protected EntityManager em; Class<M> mclass; public EntityManager getEm() { return em; } public void setEm(EntityManager em) { this.em = em; } @Transactional(value=TxType.NOT_SUPPORTED) public M find(K id){ return em.find(mclass, id); } @Transactional(value=TxType.REQUIRED) public void insert(M inst){ this.em.persist(inst); } @SuppressWarnings("unchecked")

Wrong hibernate dialect for MSSQL 2014

拟墨画扇 提交于 2019-11-30 05:03:00
问题 I have a problem with inserting entities, that use sequences, to a MSSQL 2014 database. I use hibernate that is shipped with Wildfly 10 CR4 (but in CR1 and CR2 I got the same issue). Here is a general info on the webapp run environment: Wildfly 10 (CR4) Java 8 u 51 Windows 7 Proffesional 64bit MSSQL Server 2014 MSSQL driver: sqljdbc42.jar is deployed on the application server My persistence.xml file looks like this: <persistence-unit name="mb_managed_pu" transaction-type="JTA"> <provider>org

Wildfly-Swarm and connection to external activemq via resource adapter: WFLYCTL0412

时间秒杀一切 提交于 2019-11-30 04:55:12
问题 So I've already spent considerable time on this, but now have come to a point where I'm completely at my wits end... The requirement: I'm trying to connect a wildfly 10.1.0 based message driven bean to an external activemq 5.15.0 server (the 'old' activemq, not artemis mq!). For this I'm deploying the resource adapter and tweaking the configuration. In standard deployment of wildfly this works ok. I'm using the following script to setup the container: # Disable the artemis messaging

Eclipse Kepler and JBoss Wildfly hot deployment

泄露秘密 提交于 2019-11-30 04:46:42
I am trying to use eclipse kepler for Java EE 7.I already installed JBoss Tools and added JBoss Wildfly successfully as a server. However my changes are not automatically deployed. Is there anyway the app can be deployed automatically just as when using glassfish? Using Eclipse, click twice on your WildFly Server to edit the following properties: Publishing : choose "Automatically publish after a build event". I like to change the publishing interval to 1 second too. Application Reload Behavior : check the "Customize application reload ..." checkbox and edit the regex pattern to \.jar$|\.class

JPA 2.1 Entity Graph returns duplicated results

£可爱£侵袭症+ 提交于 2019-11-30 04:37:41
问题 I started using the new entity graph feature in JPA 2.1 to specify the Lazy collections that must be loaded. Consider following classes: @Entity @NamedQueries({ @NamedQuery(name="findWithFilterAttr","select a from A a where a.filterAttribute like :filter") }) @NamedEntityGraphs({ @NamedEntityGraph(name = "graph.childs", attributeNodes = @NamedAttributeNode("childs"))}) public class A{ @Id private long id; @OneToMany(mappedBy="parent") private List<B> childs; private String filterAttribute; }

Setting up maximum of connections for web

岁酱吖の 提交于 2019-11-30 02:44:48
In JBoss7 we've restricted number of web connections by using this <connector name="https" scheme="https" protocol="HTTP/1.1" socket-binding="https" secure="true" max-connections="3000"> for urn:jboss:domain:web:1.0 subsystem which is replaced by urn:jboss:domain:undertow:1.2 in the wildfly. How to setup max-connections in wildfly? I went through the documentation and didn't find matching attribute. Thanks Try add under filters definition <filters> <connection-limit name="limit-connections" max-concurrent-requests="3000" queue-size="100"/> </filters> and then under host or location add

JBOSS/WILDFLY 笔记

心已入冬 提交于 2019-11-30 01:20:53
#1.IP无法访问处理 interfaces 下新增 <interface name="global"> <any-address/> </interface> <socket-binding-group name="standard-sockets" default-interface="global" port-offset="${jboss.socket.binding.port-offset:0}"> 开启JBoss7/wildfly的access_log功能 对于一个网站来说,访问日志,即access_log,对网站来说是一项很重要的功能。利用它,我们可以统计出很多有用的信息,从而给网站的运维带来方便,所以基本上每个网站都会开启这件功能。 在默认的情况下,JBoss7.1是没有开启access_log的,如果要开启这项功能,就需要修改$JBOSS_HOME\standalone\configuration\standalone.xml这个文件,相关的修改内容如下所示: <subsystem xmlns="urn:jboss:domain:web:1.0"default-virtual-server="default-host"> <connector name="http"scheme="http" protocol="HTTP/1.1" socket-binding=

Web socket disconnecting on OpenShift (with WildFly 8.2.1)

六月ゝ 毕业季﹏ 提交于 2019-11-29 15:33:53
I am using OpenShift and WildFly 8.2.1 final to implement the new HTML5 websocket. I used this tutorial to set this project up. Whenever I open my MyTest.html, this is what the JavaScript logs: JS: Server Connected... JS: Server Disconnected... The server connects and then immediately disconnects. Why? What am I doing wrong? Is there something that I am missing? Here is mode code --> serverendpoint.java package testing; import javax.websocket.OnClose; import javax.websocket.OnError; import javax.websocket.OnMessage; import javax.websocket.OnOpen; import javax.websocket.server.ServerEndpoint;

How can I serve static resources from outside a war on WildFly

感情迁移 提交于 2019-11-29 10:06:07
I may be wrong, but to my understanding, the following must be possible in WildFly: It must be possible to put a link into my JSF views (i. e. the xhtml files) to a resource (pdf, image, other xhtml file) that is already on the WildFly server. I can do the same thing in php and an apache server. Where would I need to put those resources and how can I access them from my views? E. g. put a link in the view to a pdf file that opens the pdf file in a new tab. Thanks a lot for tips and hints!! EDIT standalone.xml <server name="default-server"> <http-listener name="default" socket-binding="http"