wildfly

How to use a database as your database source in JPA

99封情书 提交于 2019-12-02 14:41:30
问题 I'm new in developing apps in JBoss so I followed their tutorials specially in making the Ticket Monster. For now, I've created an Event JPA Entity and in the run, it shows that I can save an event. But when I restart my computer, it seems the event I've saved is lost, so research about it and found some info about in-memory database. My problem is how do I tell/configure my project not to use in-memory database but to use the typical database so every time I restarted my computer the data

Proper way to set or update JBPM6 Process Variables

蓝咒 提交于 2019-12-02 14:31:03
问题 I am trying to set the process variable but getting below error java.lang.IllegalStateException: Process instance 10[SampleBusinessProcess] is disconnected. at org.jbpm.process.instance.impl.ProcessInstanceImpl.getProcess(ProcessInstanceImpl.java:100) at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.setVariable(WorkflowProcessInstanceImpl.java:343) Here is my code - ProcessInstance processInstance = runtimeEngine.getKieSession().getProcessInstance(processInstanceId); (

Wildfly 9.0.1.Final: EAR deployment failed

南笙酒味 提交于 2019-12-02 12:45:42
I am trying to deploy my struts based web application on Wildfly 9.0.1.Final. I am deploying as an .ear file that contains .war/.jar(EJB) files. But it gives me an error during deployment. Error Stacktrace: Failed to define class AuditMDB in Module "deployment.webapp.ear.EJB.jar:main" from Service Module Loader: java.lang.LinkageError: Failed to link AuditMDB (Module "deployment.webapp.ear.EJB.jar:main" from Service Module Loader) at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:437) at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:269) at

Proper way to set or update JBPM6 Process Variables

被刻印的时光 ゝ 提交于 2019-12-02 12:02:10
I am trying to set the process variable but getting below error java.lang.IllegalStateException: Process instance 10[SampleBusinessProcess] is disconnected. at org.jbpm.process.instance.impl.ProcessInstanceImpl.getProcess(ProcessInstanceImpl.java:100) at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.setVariable(WorkflowProcessInstanceImpl.java:343) Here is my code - ProcessInstance processInstance = runtimeEngine.getKieSession().getProcessInstance(processInstanceId); ((WorkflowProcessInstanceImpl) processInstance).setVariable("myvariable", "myvalue"); Please help me with the best

How can I tell the CDI container to “activate” a bean?

倖福魔咒の 提交于 2019-12-02 11:48:09
问题 Suppose I have some class with injections: class MyBean { @Inject Helper helper; // all sorts of data } and this class was created in a way the CDI container is not aware of it like reflection, serialization or new . In this case the helper is null because the CDI did not initialize it for us. Is there a way to tell CDI to "activate" the bean or at least its injection? e.g., as if it was created with Instance<MyBean>#get ? Right now I have a hack where I do the following: class SomeClass {

Wildfly share session between EARs?

一世执手 提交于 2019-12-02 11:31:38
问题 I have 2 WAR applications in 2 independent EARs that I want to deploy in a single instance of Wildfly 10/JBoss 7 EAP. How can I share sessions/authentication between the 2 wars? Ex: EAR1: - WAR1 - EJB - libs EAR2: - WAR2 - libs To be clear, I would like the user to login and authenticate via WAR1, and have that session object available when he accesses WAR2 so that he does not need to log back into the system. How can I accomplish this? I cannot find documentation relating to what

How to use a database as your database source in JPA

邮差的信 提交于 2019-12-02 10:37:18
I'm new in developing apps in JBoss so I followed their tutorials specially in making the Ticket Monster. For now, I've created an Event JPA Entity and in the run, it shows that I can save an event. But when I restart my computer, it seems the event I've saved is lost, so research about it and found some info about in-memory database. My problem is how do I tell/configure my project not to use in-memory database but to use the typical database so every time I restarted my computer the data was in the database. I would like to use PostgreSQL for my database. My current datasource profile that

Jackson issue in Spring.MVC on WildFly server

泪湿孤枕 提交于 2019-12-02 10:05:03
I found the question http://stackoverflow.com/questions/38129930/jackson-partial-working-cannot-return-listobject-or-collectionobject for which I was interested in finding out the answer for solving: 11:28:26,333 ERROR [io.undertow.request] (default task-11) UT005023: Exception handling request to /Spring4MVCAngularJSExample/user/: org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectWriter.forType(Lcom/fasterxml/jackson/databind/JavaType;)Lcom/fasterxml/jackson/databind/ObjectWriter;

EJB remote client migration from JBoss AS 7.1 to Wildfly 8.1

半城伤御伤魂 提交于 2019-12-02 08:43:20
问题 We developed a training application which contains a standalone java clients communicating with EJBs. The working setup included a JBoss AS 7.1 on Windows 7 and an application user created via /bin/add-user.bat. The client was coded like that: Properties jndiProps = new Properties(); jndiProps.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory"); jndiProps.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming"); jndiProps.put("jboss.naming.client

f:websocket in JSF 2.3

眉间皱痕 提交于 2019-12-02 08:38:30
问题 I trying to get BalusC's JSF 2.3+ example (How can server push asynchronous changes to a HTML page created by JSF?) working using JBoss WildFly 12.0.0.Final I have added the JBoss JSF JAR: jboss-jsf-api_2.3_spec-2.3.3.SP1.jar However when I try and display my XHTML page which has: <h:form> <f:websocket channel="push"> <f:ajax event="updateNotifications" render=":panelGridSelect" /> </f:websocket> </h:form> I get: javax.faces.view.facelets.TagException: /enterProduct.xhtml @61,45 Tag Library