jboss

JTDS module under WildFly (JBoss)

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-04 05:52:09
问题 I am busy upgrading from JBoss 7.1.1 to Wildfly 8.0.0.Beta1. I was using the JTDS database driver under JBoss without problems, but it is not working under WildFly. I have creates the /net/sourceforge/jtds/main/ folder structure under modules in my WildFly installation and added the module.xml file, but Wildfly doesn't seem to be picking it up. I have also tried the /modules/system/layers/base/ folder as this is a new one under WildFly, but that doesn't work either and I have downloaded the

FileIO from an stateless session bean

為{幸葍}努か 提交于 2020-01-04 05:35:34
问题 I need to read and write xml files to disk from a stateless session bean running in JBoss. What is the preferred way of doing this? Right now we are accessing the file system using the java.io classes. I found a simple file system RAR example and have got that working but it may be more buggy than just using java.io directly. 回答1: If you check that Programming Restrictions section of the EJB Spec you'll find the following: An enterprise bean must not use the java.io package to attempt to

Maven ear project with ejb and war modules

天大地大妈咪最大 提交于 2020-01-04 04:19:09
问题 im working on a web application with maven and Jboss 7 wich conatins 3 modules ejb ear and war so the war will have the ejb as dependancy and the ejb will be in the same time a module of the ear so when i do this i get the same ejb twice this tree ear ...Mywar ........Myejb ...Myejb is this structure is correct or i should change another the pom.xml for the war : <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:/

Session sharing on WildFly is not working

喜你入骨 提交于 2020-01-04 03:17:08
问题 I just migrated from JBoss EAP to WildFly and I am facing some issues with session sharing. Previously in JBoss EAP, in my web.xml I added the below configuration: <session-config> <cookie-config> <path>/</path> </cookie-config> </session-config> And both the applications were generating the same session id. But in WildFly the problem is, application 1 will write session as for example 123 in the path / , and if I open application 2 it will override the session as say 456 . Now if I refresh

How do I debug a war file on a remote machine?

此生再无相见时 提交于 2020-01-04 01:50:28
问题 If I have a jboss server running on another machine and I scp my war file to that machine, how do I debug the war? what commands would I use? How do I do this in my terminal? 回答1: Run jboss with the debug arguments on the remote machine: -Xdebug -Xrunjdwp:transport=dt_socket,address=54371,server=y,suspend=y address - this will be the port you want to connect on server - signifies it will be the server suspend - will block execution of the application until a debugger connects (specify n if

HTTP 403 forbidden error when Use Keycloak to protect a Tomcat App

随声附和 提交于 2020-01-03 17:57:51
问题 I struggled with this error for a whole day. I check my configuration of Keycloak and APP in tomcat again and again and not found a bug. The picture below shows the testing Scenario: The configuration of APP : 1.Keycloak.json was copied from Keycloak console 2.context.xml also right due to it work fine under "localhost" scenario 3.web.xml : <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns

SSL redirection from Apache to Wildfly

半世苍凉 提交于 2020-01-03 17:07:22
问题 I have two projects running on Wildfly-8 and I have two SSL certificates for each of them and one IP. I figured out that I should have one IP for one SSL certificate. But I needed to use these two SSL for one IP. I couldn't find a way to do it with Wildfly but there was a way to do it with Apache Server. So,I installed Apache Server up to Wildfly. I listen https port(443) on Apache and redirect it to Wildfly's http port(I used 8080). It works without any problem. What I wonder is; 1. Is

WELD-001408 Unsatisfied dependencies

随声附和 提交于 2020-01-03 17:06:18
问题 I have a very famous error, but I can't solve it. I'm trying to run arqullian test for my application. I've done everything according to the official documentation. The long search for solution to the problem given nothing. 16:49:42,713 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."test.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."test.war".WeldService: org.jboss.weld.exceptions

EJB on Wildfly calling remote EJB from another Wildfly

◇◆丶佛笑我妖孽 提交于 2020-01-03 11:46:24
问题 my current problem in general is, that i have two Wildfly 8.2.0Final instances running on my machine. I know, there are similar questions, but none of them really help with my problem. One of them holds a restful application that triggers a stateless session bean SenderBean when it receives a GET. Afterwards, this stateless session bean should invoke a method from a remote stateless session bean PrintBean , which is located on the other wildfly instance. I'll start of by explaining what i

EJB on Wildfly calling remote EJB from another Wildfly

倖福魔咒の 提交于 2020-01-03 11:46:07
问题 my current problem in general is, that i have two Wildfly 8.2.0Final instances running on my machine. I know, there are similar questions, but none of them really help with my problem. One of them holds a restful application that triggers a stateless session bean SenderBean when it receives a GET. Afterwards, this stateless session bean should invoke a method from a remote stateless session bean PrintBean , which is located on the other wildfly instance. I'll start of by explaining what i