wildfly

How can I implement Picketlink Authenticator in the war layer

笑着哭i 提交于 2019-12-11 07:59:34
问题 As the title say, I created a class in the war layer that is annotated with @Picketlink. Note that I have an ear deployment structure (ejb, war). The custom authenticator: @PicketLink public class PicketlinkAuthenticator extends BaseAuthenticator { } If I put that class in the ejb layer, the authentication is ok but when I put it to the war layer it seems like it's not found by the project as it's throwing: 20:49:46,027 INFO [org.picketlink.common] (default task-10) Using logger

Java 7/8 request parameters size limit

余生颓废 提交于 2019-12-11 07:33:30
问题 I've upgraded recently my application. My application uses the Java web API, with servlets and jsp's. I made in the new release the switch from Java 7 to Java 8. My server uses now the Wildfly10 platform, which uses Java 8. Previous it was Jboss 7, which uses Java 7. In the previous version of my application, my app crashed when I was adding +- 300 attributes at a specific page, which made my request url long. But in my new version, it's not a problem anymore, without making changes at the

Wildfly ContextService concurrent securityIdentity is null

余生长醉 提交于 2019-12-11 07:05:21
问题 I am trying to send an object over a queue. The object is wrapped in the createContextualProxy of the ContextService. But if I am unwrap the object, the securityIdentity is null. The object is a correct Proxy. Sender: @Resource(name = "DefaultContextService") private ContextService cs; public void sendMessage() { ObjectMessage objectMessage = context.createObjectMessage(); objectMessage.setObject((Serializable) cs.createContextualProxy(<ObjectToSend>, Runnable.class)); context.createProducer(

“Unexpected invocation state 0” error in Wildfly

大憨熊 提交于 2019-12-11 06:15:42
问题 I created a small example that demonstrates the error. A stateful bean holds a list as its state and injects a stateless bean: @Stateful @RequestScoped public class StatefulBean { @Inject StatelessBean slsb; @Getter // public list getter private List<String> list = new ArrayList<>(); public List<String> sfAdd() { slsb.slAdd(); System.out.println(list); list.add("Z"); return list; } } The stateless bean manipulates the state of the stateful bean by injection: @Stateless public class

File upload doesn't work with PrimeFaces 4.0, JSF Mojarra 2.2.3 and Wildfly Beta 1

时光怂恿深爱的人放手 提交于 2019-12-11 06:01:22
问题 I have a web application running on: Wildfly Beta 1 JSF Mojarra 2.2.3 (from Wildfly) Primefaces 4.0 rewrite-servlet-2.0.7.Final / rewrite-config-prettyfaces-2.0.7.Final commons-io-2.4 / commons-fileupload-1.3 And I have problem with file upload component (advanced and simple mode doesn't work, never print inside upload() ). Same is even run without rewrite-servlet-2.0.7.Final/rewrite-config-prettyfaces-2.0.7.Final libs. My upload.xhtml file: <h:form prependId="false" id="formLateralUpload"

Deploy error of spring application on WildFly 8.0.0.Beta 1

爷,独闯天下 提交于 2019-12-11 05:47:34
问题 I am developing a simple web application and deploying on tomcat 7. Everything works fine on tomcat 7. However, when I try to deploy the same war that works on tomcat 7 on WildFly 8.0.0.Beta1, I am facing some errors. First of all, this is what I am using on my application: Maven 3.0.5 (building war with maven-war-plugin); Spring 3.2.4.RELEASE; Spring Security 3.1.4.RELEASE; MyFaces 2.1.12; Primefaces 4.0 Hibernate 4.2.5.Final (JPA 2); Oracle JDBC 11.2.0.2 (Thin Driver); I'm also using

How to connect Intellij to a remote wildfly server

元气小坏坏 提交于 2019-12-11 05:29:07
问题 I have a clean wildfly 8.1 installation on a remote server. Note that this remote server is a virtual box server created with vagrant. Now i want to connect IntelliJ using a remote JBoss server. First i have created a dummy user, with username/password: jboss/jboss [root@localhost bin]# ./add-user.sh What type of user do you wish to add? a) Management User (mgmt-users.properties) b) Application User (application-users.properties) (a): a Enter the details of the new user to add. Using realm

Arquillian: Got 302 (Found)

房东的猫 提交于 2019-12-11 04:58:42
问题 I am trying to test a Service in my web app with JUnit and Arquillian but when I launch the test, console show the following error: java.lang.IllegalStateException: Error launching test at http://127.0.0.1:8080/avisoLegalTest/ArquillianServletRunner?outputMode=serializedObject&className=es.dia.altatienda.service.AvisoLegalServiceTest&methodName=findActivo&cmd=event. Got 302 (Found) My Code: JUnit test: @RunWith(Arquillian.class) @SpringWebConfiguration public class AvisoLegalServiceTest {

Wildfly mysql instead of h2

北战南征 提交于 2019-12-11 04:52:24
问题 We are running a porject in Eclipse and use Wildfly as webserver. We have configurated wildfly and created a new mysql datasource that works. We have created a database and a new Connection in Eclipse to the database and created entities using the url provided by Wildfly. So Everything is good this far. The problem we have now is that when we run the application and try to persist an entity we get an error saying "Caused by: org.h2.jdbc.JdbcSQLException: Table "USER" not found; SQL statement.

Receiving MQTT message with Wildlfy 11 embedded Apache Artemis

☆樱花仙子☆ 提交于 2019-12-11 04:29:13
问题 I would like to receive MQTT messages in Wildfly 11 with the embedded Apache Artemis. Current state: I added the MQTT protocol support to the Wildfly embedded Apache Artemis (added the "missing" folder and artemis-mqtt-protocol-.jar and enabled the protocol in the module.xml) I am using the full standalone configuration and added acceptor for MTQQ: <subsystem xmlns="urn:jboss:domain:messaging-activemq:2.0"> <server name="default"> <remote-acceptor name="mqtt-acceptor" socket-binding="mqtt">