wildfly

Wildfly - logging into one file

自闭症网瘾萝莉.ら 提交于 2019-12-12 04:11:33
问题 It seems my wildfly server produces separate log file for each day: like server.log.2017-06-30 server.log.2017-07-06 . Is it possible to make it logging into one (always same) file? 回答1: By default WildFly is configured to use a periodic-rotating-file-handler which rotates every day. If you don't want log rotation you can use a file-handler instead. The following CLI commands will make the change to using a file-handler . batch /subsystem=logging/root-logger=ROOT:remove-handler(name=FILE)

wildfly 10 final: Error invoking timeout for timer

荒凉一梦 提交于 2019-12-12 03:48:37
问题 i have @Stateless public class TimerMonitoraggioDatabase { @Schedule(hour="5", minute="10", dayOfWeek="Mon-Fri", dayOfMonth="*", month="*", year="*", info="MyTimer", persistent=false) private void scheduledTimeout(final Timer t) { but if the activity exceeds 10 minutes, i have this error (first problem): 2017-03-20 05:20:51,097 WARN [com.arjuna.ats.arjuna] (EJB default - 1) ARJUNA012077: Abort called on already aborted atomic action 0:ffff0a93a0e9:-c2465a:58cbcab4:37e3 2017-03-20 05:20:51,099

ReslutSet closed error in wilfdlfy + hibernate stack

烂漫一生 提交于 2019-12-12 03:32:51
问题 I got a Hibernate project running in Wildfly jboss. When I run a highload test it throws this error randomly: 2017-04-11 19:58:49,758 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (default task-42) IJ031050: The result set is closed 2017-04-11 19:58:49,758 ERROR [com.omnia.pie.ws.TransactionDataControllerImpl] (default task-42) Transaction save failed: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not insert: [com.transaction.hibernate

How to disable Timer service in Wildfly 10?

佐手、 提交于 2019-12-12 03:29:53
问题 In my Java EE application I have a @Singleton with several @Schedule d methods. When I deploy the app on Wildfly, the Timer service starts executing these methods, which is correct. Since during development I test my app on a secondary server, I'd like to disable the Timer service on that instance of Wildfly, to prevent the execution of those methods. Problem is… I can't find any setting to do this. How can I disable the Timer service in Wildfly 10? 回答1: Try to remove block timer-service in

Java: Universally accessing resource files regardless of application server

守給你的承諾、 提交于 2019-12-12 03:22:56
问题 I'm looking for the 'best practice' way to access resource files (for example a bunch of .xml files) as well as the folder structure in which they reside, regardless of the application server used. Right now I'm using Wildfly 8 server and I access all src/main/resources/xxxx by getting the application real path then using Paths.get(resourcePath) as well as Files.walk(Paths.get(folderPath)) if I want to access a folder's files. However, I faced a problem when I tried to deploy to Weblogic 12c,

Edit standalone.xml while running WildFly 8.2

情到浓时终转凉″ 提交于 2019-12-12 03:22:08
问题 I have a WildFly running and an application that allow to edit database connection (ds.xml), that connection use security domain. When WildFly stopped it's work! When WildFly is running , I can write standalone.xml and save it but automatically the standalone.xml reverts to its previous state. Have a way to a external app to edit the standalone.xml with WildFly running? 回答1: WildFly will rewrite the configuration if there are changes to the management model. It's advised not to directly

Wildfly doesn't recognize jboss deployment structure file

杀马特。学长 韩版系。学妹 提交于 2019-12-12 03:09:37
问题 I'm trying to configure Wildfly to use per deployment logging and jackson as provider for json on resteasy but looks like the AS doesn't recognize the file "jboss-deployment-structure.xml". I wanna log the hibernate sql, i already put " <property name="hibernate.show_sql" value="true"/> " in persistence.xml. And for Jackson, i use the following method: @GET @Path("/resumodia") @Produces(MediaType.APPLICATION_JSON) @Consumes("*/*") @GZIP public Response resumoHorariosDoDia() { try { final

InvalidBytecodeException in WildFly 8

天涯浪子 提交于 2019-12-12 03:06:28
问题 I have a working project setup with some beans and a WildFly 8.2.0. I just added the following class: public class CatalogFilter implements Serializable { private static final long serialVersionUID = 3028220029652090421L; private final String catalogName; private Boolean active; public CatalogFilter(String catalogName) { this.catalogName = catalogName; } public String getCatalogName() { return this.catalogName; } public Boolean getActive() { return this.active; } public void setActive(Boolean

NullPointerException when inject enterprise bean into JAX-RS 2.0 REST service

陌路散爱 提交于 2019-12-12 02:51:16
问题 I am trying to inject and EJB 3.1 in one of my RESTful services. I've followed the post: Inject an EJB into JAX-RS (RESTful service) and tried all options except building an injection provider. The current solution that I am trying uses a combination of @RequestScoped and @Inject , but my injected bean variable is still null . I have a beans.xml in the /WEB-INF folder. How can I inject an EJB into my REST service class? UserService @Local @Path("user/v1") @Produces(MediaType.APPLICATION_JSON)

Application specific logging in WildFly 9.0.1 FINAL (SL4J + Logback)

可紊 提交于 2019-12-12 02:49:56
问题 I followed some articles and tried to come with the solution by following some similar SO questions but still can't make this work - my logfile is not being created anywhere I searched for it. My goal is to have working logging bundled within the application, not use vendor specific logging. My current situation is following: I have created jboss-deployment-structure.xml inside MyEAR/META-INF directory with following content: <?xml version="1.0" encoding="UTF-8"?> <jboss-deployment-structure>