FAQ Database Discussion Community


JBoss EAP 6.3 / AS 7 Clustered SSO with unsecured pages

java-ee,jboss7.x,single-sign-on,infinispan
I am trying to get Clustered SSO working in JBoss EAP 6.3.2 (equivalent to JBoss AS 7.4.x), I have session replication working fine, however SSO (user principal replication) is not working in all cases. It works properly when I use servlets that are secured inside a <security-contraint> that has an...

Where are unpacked the files from a war with Wildfly

jboss7.x,wildfly
Usig Jboss or Wildfly, I can drop a myapp.war WAR file in the deployments/ folder, or unzip it and create a myapp.war/ directory (notice the weird .war extension for a directory). With the later, I can edit my html and jsp files, and the server will respond accordingly. But where...

Persistent Axis2 Service Files

jboss7.x,axis2,jboss-eap-6
I deployed an instance on Axis2 within my JBoss EAP 6.2 server. However, the only way I can add my service files are through the online admin console. This is a problem because when I add them through the console they are added to a random folder within standalone/tmp/vfs. So...

How to see the CLI generated by Wildfly web interface

jboss7.x,wildfly
Using Wildfly, I want to use the CLI to execute common tasks with a script. Usually, I use the web interface and I know how it works. Let's say I want to create a datasource with the web interface. Is there a way to look at a generated CLI, so...

JBoss 7.2.0 Final creating server.log file in unexpected places

jboss7.x,centos6
I am trying to set up JBoss 7.2.0 Final on CentOS 6.5 to handle 4 different deployments of our software. I'm not sure if I have set things up correctly or not, but everything seems to work except that server.log is not ending up where I think I am telling...

JBoss Wildfly - Authentication of Web App against LDAP

authentication,ldap,jboss7.x,jsf-2.2,wildfly
I have a security domain defined in jboss-web.xml as below <jboss-web> <security-domain>java:/jaas/my_ldap_security_domain</security-domain> <disable-audit>true</disable-audit> </jboss-web> I also have defined inside my standalone.xml <subsystem xmlns="urn:jboss:domain:security:1.2"> <security-domains> <security-domain name="my_ldap_security_domain" cache-type="default"> <authentication> <login-module code="LdapExtended" flag="sufficient"> <module-option...

Wildfly server:Partial Content and Range Requests

http,jboss,jboss7.x,wildfly,wildfly-8
Is there a way for wildfly server support http range header? We are requesting file for server with http get and http header "Range: bytes 200-400" The files that served from apache tomcat server responds http status code 206 and partial file content but wildfly server responds same request with...

JBoss 7: ClassCastException: MyCustomTag cannot be cast to javax.servlet.jsp.tagext.Tag

jsp,servlets,jboss,jboss7.x,jsp-tags
Getting below exception on deploying web application that contains custom tag in JBoss server: java.lang.ClassCastException: com.test.taglib.MyCustomTag cannot be cast to javax.servlet.jsp.tagext.Tag at org.apache.jasper.runtime.PerThreadTagHandlerPool.get(PerThreadTagHandlerPool.java:96) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4] at org.apache.jsp.WEB_002dINF.jsp.testAppData_jsp._jspx_meth_fx_005fsystemDate_005f0(testAppData_jsp.java:725) at...

Spring Hibernate “You cannot commit during a managed transaction!”

java,spring,hibernate,transactions,jboss7.x
After upgrading my application from JSF 1.2 to JSF 2.1 I have the following Spring Hibernate exception when trying to login: DEBUG,[interceptor.ExceptionInterceptor][],org.springframework.transaction.TransactionSystemException: Could not commit Hibernate transaction; nested exception is org.hibernate.TransactionException: commit failed at org.springframework.orm.hibernate4.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:472) at...

MSC00001: Failed to start service jboss.network.public

java,jboss,jboss7.x
Hi friends I am new in managing Jboss Appserver I am using Red Hat Enterprise Linux Server release 5.8 (Tikanga) and my JAVA version is java version "1.7.0_75" Java(TM) SE Runtime Environment (build 1.7.0_75-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.75-b04, mixed mode) and have JBoss Version jboss-as-7.1.1.Final this and...

Show a message, when an application is deploying to JBoss

jsf,primefaces,jboss,jboss7.x
How can I show a message to alert users, when I deploy an application over JBoss AS 7.1.1? Technologies that I am using: Shiro 1.2.3 Mojarra 2.1.7 PrimeFaces 5.1 JDK 1.7 JBoss 7.1.1 ...

jboss AS VS wildfly8

jboss7.x,wildfly-8
can anyone please give me the main difference between JBOSS AS 7 and Wildfly8 i'm going to start a very important project and i have to choose between JBoss AS 7 and Wildfly 8 ( for this project i'm going to use GWT , JPA/Hibernate and JBPM 6 )

EJB - EJBTransactionRolledbackException argument type mismatch - overloaded method

ejb,jboss7.x,ejb-3.0,illegalstateexception,wildfly-8
I really need some help! By invoking an EJB that has method overloading, I'm having the following exception: javax.ejb.EJBTransactionRolledbackException: argument type mismatch Interestingly, this happens randomly and only in this overloaded method. See the structure below: // superclass public abstract class GenericService<T> { public void update(T object) throws Exception {...

Why does my Jboss server begin transactions for everything and anything?

transactions,jboss7.x,jta
I was wrestling with the problem of making sure a transaction is committed before other commands are executed. I didn't get an answer, but BalusC expressed his incredulity that my... "JSF managed bean is transactional..? This is not the default behavior. What annotations do you all have on your JSF...

How to get JBoss 7.1.3 to use my $JAVA_HOME environment varaible?

jboss,environment-variables,jboss7.x,java-home
I'm using Mac 10.9.5 with JBoss 7.1.3.Final. I am launching JBoss through the termianl (bash shell), like so Daves-MacBook-Pro:core davea$ cd $JBOSS_HOME/bin Daves-MacBook-Pro:bin davea$ sudo sh standalone.sh Within the shell, I can see that $JAVA_HOME is defined ... Daves-MacBook-Pro:bin davea$ echo $JAVA_HOME /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home However, JBoss is not picking up this...

Jar maven dependency disappears from my WEB-INF/lib

java,spring,maven,deployment,jboss7.x
I'm working on this maven web (java) application (lwl-module), and deploying it to JBoss 7 via eclipse. When I expanded web application's node under JBoss 7, it had 2 jar files under it, just like the one above it (bhr-module): But after I made changes to one of these jar...

Set system properties in standalone-full.xml in wildfly 8.2

jboss,jboss7.x,wildfly,wildfly-8
I have added system-properties tag in standalone-full.xml but its not working in standalone mode. But if I add the same tag in domain.xml its working for domain mode. <?xml version='1.0' encoding='UTF-8'?> <server xmlns="urn:jboss:domain:2.2"> <extensions> .... </extensions> <system-properties> <property name="java.util.Arrays.useLegacyMergeSort" value="true"/> </system-properties> </server> In this article https://docs.jboss.org/author/display/WFLY8/General+configuration+concepts Its written...

Configuring MongoDB datasource in JBoss 7

java,mongodb,jboss7.x
Does anyone know how I can configure a MongoDB datasource in JBoss AS 7? I'm guessing I can set up the Mongo driver as a module in JBoss in the same way as I have done previously with a MySQL driver, then add a dependency to this in the manifest...

How to set external folders in classpath through command line while starting wildfly server

jboss,classpath,jboss7.x,wildfly,wildfly-8
I want to set external folders in classpath through command line while starting wildfly server. Unable to set it through -p standalone.sh -p path of folder ...

Is it mandatory to integrate RESTEasy with Spring on JBOSS AS?

java,spring,rest,jboss7.x,resteasy
I am trying to expose a simple web resource on JBOSS AS using Spring. Is it mandatory to configure RESTEasy with Spring in order to the server to serve the requests correctly? I have already deployed my war file without no configuration in the web.xml and I don't know if...

EntityManager not injected in Stateless Session Bean

java-ee,ejb,jboss7.x,entitymanager
I have been looking through a lot of similar questions which did not reflect my exact problem. If i overlooked that someone already had this problem solved, please let me know. I am currently migrating an old EJB 2.1 application on JBoss 3.x to EJB 3.x on JBoss 7.x. Due...

How to enforce JBoss AS 7.0.1 SSL connector Protocol to use TLS 1.2 only

windows,ssl,jboss7.x
JBoss AS 7.0.1 SSL connector Protocol to use TLS 1.2 only and disable SSL v2, V3 and TLS v1, V1.1.

Exclude class path reference from MANIFEST.MF file

java,maven,jboss7.x,maven-3
I was getting some WARNings while trying to deploy the EARs in JBoss 7.1.1. 15:41:32,028 WARN [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry lib/commons-fileupload-1.0.jar in "/C:/myEar.ear/myWar.war" does not point to a valid jar for a Class-Path reference. The issue is clearly explained in this SO thread. I tried removing...

AWS Java SDK on JBoss AS7 - module.xml entries

maven,amazon-web-services,jboss,jboss7.x,java-ee-6
I am having problems using the new AmazonAWS SDK in a JBoss AS 7.1 (EE6) project I am just using the S3 library, so in accordance with the new release (1.9.7) I am only using the s3, core, kms jars -aws-java-sdk-core-1.9.17.jar -aws-java-sdk-s3-1.9.17.jar -aws-java-sdk-kms-1.9.17.jar So I have created 3 separate module.xml...

Remove Default HTML response for status codes 403, 404, 500 in Restful services depoyed in JBoss EAP 6.2 Resteasy

jboss7.x,resteasy,jboss-eap-6
I have a Restful service running in Jboss EAP 6.2 + RestEasy 2.3.7 and I am returning 501, 404 error codes using below snippet in my code : For 404, throw new WebApplicationException(Status.NOT_FOUND); For 500, throw new WebApplicationException(); When I am testing my service for these changes it sends back...

404 Error while deploying simple web-app in JBoss AS 6 and JBoss AS 7?

rest,jboss,ejb,jboss7.x,java-ee-6
I followed this blog for injecting EJB in REST layer. Here is the code that I tried deploying in JBOSS AS 6 and 7 using Eclipse: REST: package com.example.rest; import javax.ejb.EJB; import javax.ejb.Stateless; import javax.ws.rs.GET; import javax.ws.rs.Path; @Stateless @Path("current") public class ServiceFacade { @EJB ServiceImpl service; @GET public String getDate(){...

jboos 7 - standalone.xml gets overwritten at start

jboss,jboss7.x
By default, in the standalone.xml file in jBoss 7.2 there is: ${jboss.bind.address.management:127.0.0.1}" Obviously this works perfectly when you are developing in local. But when I try to deploy it in a non-local server, I change it to: ${jboss.bind.address.management:0.0.0.0}" The first time works perfectly as well, but when you see again...

CDI error: Ambiguous dependencies trying to inject EntityManager

jboss7.x,cdi,entitymanager,jboss-weld
I'm facing a strange error while trying to deploy my EJB 3.1 application in a JBoss 7.1.1 application server: WELD-001409 Ambiguous dependencies for type [EntityManager] with qualifiers [@Default] at injection point [[parameter 1] of [constructor] @Inject public br.com.sigga.siot.dao.masterdata.impl.ProfileDAOImpl(EntityManager)]. Possible dependencies [[Resource Producer Field [EntityManager] with qualifiers [@Any @Default] declared as...

what is the difference between jndi binding of module and app in Java ee 6/7?

jboss,jboss7.x,jndi,jboss6.x,java-ee-7
We migrated from Jboss EAP 5 to EAP 6 in our development environment. I now see the following in my JBOSS logs. I am trying to understand how this binding happens. I have read JBOSS docs on JNDI namespace binding. Still I am not totally clear how it works. Here...

How to obtain JBoss Server Group Name programatically when deployed to a domain

java-ee,jboss7.x,wildfly,jboss-eap-6
How can I obtain the jboss eap 6.x / wildfly server group name programmatically from within a java enterprise application deployed to a domain? Some of the other jboss values such as node name can be obtained via system property values but server-group-name does not appear to be exposed this...

WildFly could not fork new process for connection

java,postgresql,persistence,jboss7.x,openshift
I'm running simple OpenShift instance with WildFly app and PostgreSQL and constantly getting Caused by: org.postgresql.util.PSQLException: Connection rejected: could not fork new process for connection: Resource temporarily unavailable which I'm observing in my server.log How can I fix this? app trying to connect Postgre and get out of threads my...

JMS Message Persistence in Wildfly 8.0 server

java,jboss7.x,message,wildfly,persistent-storage
How can i achieve message Persistence in the case of JMS in Wildfly server or Jboss 7.1.1 final? Can i persist the messsgaes in database using any Wildfly provided services? Any help would be appreciated, I am working on JBoss 5 to Wildlfy Migration where i have this requirement....

Arquillian Test POST_MODULE: Failed to process phase POST_MODULE of deployment <>.jar

java-ee,jpa,jboss7.x,dao,jboss-arquillian
I have created few test from my EJBs in Arquillian. 2 tests passed so far. Unfortunately 3rd test fails with weird information which I have trouble to track. 13:16:51,206 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."test4.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."test4.jar".POST_MODULE: Failed to process phase POST_MODULE...

Sync jboss modules and jbossdatahome between devs

java,maven,jboss,jboss7.x,jboss-arquillian
We're using local jboss 7 instances (maven jboss plugin) with custom modules for local development. Each dev can work on multiple projects. For each project, each dev needs to have the proper jboss modules and jbossdatahome folder. Each dev needs the same path to these folders, as they are hard...

Liferay 6.1.2 CE not displaying images after migration to other server

liferay,jboss7.x,liferay-6
We have moved a Liferay Portal Community Edition 6.1.2 CE installation from one server to another "as it is", by copying the war files and all directories. Everything works fine, just the images (located in "document_library") are not displayed in the browser. On both servers, the old one and the...

what should be jboss.bind.address should be when running jboss instance?

jboss,jboss7.x,jboss6.x
One of our web projects is configured to run on JBoss EAP 6. In our development machine, I set jboss.bind.address=192.168.XX.X (This is the IP of the machine I run JBOSS) jboss.bind.address.management=192.168.XX.X what should I have for my local development box. I tried the following: 127.0.0.1 192.168.YY.YY (This is the ip...

JBoss connection to MQ from standalone.xml

java,jboss7.x
I am trying to connect to Websphere MQ from a JBoss EAP 6.3 instance. I can get the connection working but it requires me to code the hostname into the bean. Something I'd rather not do. I have some config in the standalone.xml but I don't think those settings are...

Load Balancer with Healt Check for JBoss 7.1 or Apache

java,apache,jboss7.x,load-balancing,high-availability
I need to set up a high availability solution for 2 servers JBoss 7.1 or Apache, I read the documentation and I find mod_cluster and ajp but they don't have health check. Need to assemble a solution with 2 servers JBoss and 2 load balancers. Which solution for Load Balancer...

picketlink-sts ws-trust mustunderstand header

soap,cxf,jboss7.x,ws-trust,picketlink
Is there a way to configure picketLink-sts to accept soap requests with mustUnderstand headers? I'm using: https://github.com/picketlink2/picketlink-quickstarts/tree/master/ws-trust/picketlink-sts The request I send is: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="urn:picketlink:identity-federation:sts" xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/v1.4/cd/ws-trust.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">...

Does JBoss 7.x Support J2EE 5.0 and EJB 2.0?

java,java-ee,jboss,jboss7.x,ejb-2.x
I have an application build on J2EE EJB 2.0 deployed on JBoss 5.1.0. I want to migrate that application to JBoss 7. Does JBoss 7.x Support J2EE 5.0 and EJB 2.0? If Yes, then how to Migrate Jboss 5.1.0 to JBoss 7.x?

how to deploy war compiled in java 1.8 in jboss 7

java,jboss7.x
I have upgraded my web application which was earlier in java 1.7 to java 1.8. However when I try to deploy its war in jboss 7 , I get following exception. [jbossweb-7.0.13.Final.jar:] at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:] at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) at...

EJB 3.1 timer executes on startup even if the scheduled time is different

jboss7.x,ejb-3.1,wildfly-8
I have created a scheduler using EJB 3.1 timee and schedulerd to execute at 22:30pm on week days. The annotation is given below: @Schedule(minute="30", hour="22", dayOfWeek="5–1") But I found that this scheduler executed immediately after starting the wildfly application server even if it is not the scheduled time. Thanks!...

Error while deploying ear in JBoss AS7

java,jboss,jboss7.x
I am migrating EJB application from OC4j to JBoss AS7, I am able to deploy ear on JBoss, however i am getting one New missing/unsatisfied dependencies error in console, console log is mentioned below: 17:30:38,055 INFO [org.jboss.as.ejb3] (MSC service thread 1-3) JBAS014211: No jndi bindings will be created for EJB...