wildfly

Resteasy 3 @Context HttpServletRequest always null

六月ゝ 毕业季﹏ 提交于 2021-02-18 19:48:20
问题 We were using Resteasy 2 but we are upgrading to Resteasy 3 and the HttpServletRequest injection is always null . Our modified security interceptor/filter that looks like: @Provider @ServerInterceptor @Precedence("SECURITY") public class SecurityInterceptor implements ContainerRequestFilter, ContainerResponseFilter { @Context private HttpServletRequest servletRequest; @Override public void filter(ContainerRequestContext requestContext) throws IOException { // Need access to "servletRequest"

Resteasy 3 @Context HttpServletRequest always null

佐手、 提交于 2021-02-18 19:45:33
问题 We were using Resteasy 2 but we are upgrading to Resteasy 3 and the HttpServletRequest injection is always null . Our modified security interceptor/filter that looks like: @Provider @ServerInterceptor @Precedence("SECURITY") public class SecurityInterceptor implements ContainerRequestFilter, ContainerResponseFilter { @Context private HttpServletRequest servletRequest; @Override public void filter(ContainerRequestContext requestContext) throws IOException { // Need access to "servletRequest"

Resteasy 3 @Context HttpServletRequest always null

心已入冬 提交于 2021-02-18 19:45:22
问题 We were using Resteasy 2 but we are upgrading to Resteasy 3 and the HttpServletRequest injection is always null . Our modified security interceptor/filter that looks like: @Provider @ServerInterceptor @Precedence("SECURITY") public class SecurityInterceptor implements ContainerRequestFilter, ContainerResponseFilter { @Context private HttpServletRequest servletRequest; @Override public void filter(ContainerRequestContext requestContext) throws IOException { // Need access to "servletRequest"

Wildfly 20 fails to run “out-of-the-box” on Ubuntu 20

∥☆過路亽.° 提交于 2021-02-11 17:39:16
问题 Immediately after installing Wildfly 20 on a fresh Ubuntu 20 system my 1st attempt to run Wildfly crashes with a "Could not create server data directory: /opt/wildfly-20.0.1.Final/standalone/data" error. Here is the full dump: ========================================================================= JBoss Bootstrap Environment JBOSS_HOME: /opt/wildfly-20.0.1.Final JAVA: java JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true

Wildfly 20 fails to run “out-of-the-box” on Ubuntu 20

醉酒当歌 提交于 2021-02-11 17:39:15
问题 Immediately after installing Wildfly 20 on a fresh Ubuntu 20 system my 1st attempt to run Wildfly crashes with a "Could not create server data directory: /opt/wildfly-20.0.1.Final/standalone/data" error. Here is the full dump: ========================================================================= JBoss Bootstrap Environment JBOSS_HOME: /opt/wildfly-20.0.1.Final JAVA: java JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true

KIE Drool Workbench: Unable to get to workbench UI due to “Forbidden” screen

人盡茶涼 提交于 2021-02-11 14:31:01
问题 I have been trying follow the links and details available to set up a KIE Drools workbench for Drools like https://www.intertech.com/simple-setup-of-drools-kie-workbench-and-kie-server-in-one-wildfly-instance/. From what I could analyze and read up KIE Drools Workbench will let me configure a rule engine through a front end and that Guvnor used to handle this aspect prior to workbench. These configured rules can be blended into my Spring Boot application to drive my loan application

ARJUNA012140: Adding multiple last resources is disallowed

非 Y 不嫁゛ 提交于 2021-02-10 14:35:14
问题 I have 2 data source and in a method, I need to write and read from the 2 databases. The database is PostgreSQL and my EAR app runs on wildfly-16. I can't use 2 database connection in the same method Ok, I know that because the system can't manage a transaction across the different database. So I splitted the methods in my ejb : @TransactionAttribute(TransactionAttributeType.NEVER) public Response mainMethod(String parameter) { method1(); method2() } @TransactionAttribute

ARJUNA012140: Adding multiple last resources is disallowed

懵懂的女人 提交于 2021-02-10 14:34:08
问题 I have 2 data source and in a method, I need to write and read from the 2 databases. The database is PostgreSQL and my EAR app runs on wildfly-16. I can't use 2 database connection in the same method Ok, I know that because the system can't manage a transaction across the different database. So I splitted the methods in my ejb : @TransactionAttribute(TransactionAttributeType.NEVER) public Response mainMethod(String parameter) { method1(); method2() } @TransactionAttribute

javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted

不羁的心 提交于 2021-02-08 07:57:43
问题 Mail service configuration in standalone-full-ha.xml . <subsystem xmlns="urn:jboss:domain:mail:2.0"> <mail-session name="default" jndi-name="java:jboss/mail/Default" from="sender@gmail.com"> <smtp-server outbound-socket-binding-ref="mail-smtp" ssl="true" username="User" password="password"/> </mail-session> </subsystem> The mail Session in turn references an SMTP host bound at localhost at port 465. <outbound-socket-binding name="mail-smtp"> <remote-destination host="smtp.gmail.com" port="465

javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted

穿精又带淫゛_ 提交于 2021-02-08 07:57:25
问题 Mail service configuration in standalone-full-ha.xml . <subsystem xmlns="urn:jboss:domain:mail:2.0"> <mail-session name="default" jndi-name="java:jboss/mail/Default" from="sender@gmail.com"> <smtp-server outbound-socket-binding-ref="mail-smtp" ssl="true" username="User" password="password"/> </mail-session> </subsystem> The mail Session in turn references an SMTP host bound at localhost at port 465. <outbound-socket-binding name="mail-smtp"> <remote-destination host="smtp.gmail.com" port="465