jboss-eap-6

Log4j doesn't log anything under JBoss 6 EAP

て烟熏妆下的殇ゞ 提交于 2019-12-17 18:44:40
问题 I saw several questions on the topic, but since they are rather related to errors I don't think this is a duplicate. My problem is that I can't get any logging out of a .war I'm deploying on JBoss 6 EAP, there are no errors logged also however. There is also a file named as my .war created under the /log folder in JBoss, but it is also empty. The .war deploys fine and works. Since I'm using Spring I can't even see it initializing it's contexts. Logging works perfectly under Tomcat 7 with the

WAR in EAR - jboss-deployment-structure.xml ignored

只愿长相守 提交于 2019-12-13 14:00:35
问题 My EAR consists out of an common-jar, an EJB-jar and a WAR. The WAR uses a spring context, so it is dependend on the spring-namespace description files in the META-INF direcotry. My WAR/jboss-deployment-structure.xml contains <module name="org.springfw"> <imports> <include path="META-INF**" /> <include path="org**" /> </imports> </module> If i deploy the EAR and the WAR seperatly, the application works perfectly. By deploying the same WAR inside of the EAR it fails with a

Jersey REST web service with Hibernate causes NoSuchMethodError on JBoss EAP 6.4

。_饼干妹妹 提交于 2019-12-13 07:39:51
问题 I'm trying to create a very simple Jersey REST webservice project with Hibernate 5. The problem is that when I debloy the WAR-file to JBoss EAP 6.4, I'm getting following exception: "The exception contained within MappableContainerException could not be mapped to a response, re-throwing to the HTTP container: java.lang.NoSuchMethodError: org.hibernate.internal.CoreMessageLogger.debugf(Ljava/lang/String;I)V" When running the project as a Java Application on Eclipse, Hibernate works perfectly.

Serialize the whole class as a String field instead of a JSON Object

寵の児 提交于 2019-12-12 18:43:26
问题 I have an object that uses a class instance as a wrapper for the String type. How would I serialize my class into a JSON object using JAX-RS and Java EE 6 by using only the toString() method without creating a JSON object for the class and each fields? Class to be serialized: public class Text { private String content; protected Text( String content ) { this.content = content; } public static Text from( String content ) { return new Text( "The text content"); } // This is a method that is

How can I disable javax.validation.api in JBoss 6.4

天涯浪子 提交于 2019-12-12 13:34:52
问题 Similar questions: How to use bean validation 1.1 in JBoss EAP 6.4.0? How to change bean-validation version on jboss EAP 6.3? Can you use bean validation 1.1 (JSR 349) in JBoss EAP 6.4.4? There seems to be some uncertainty if we can use Bean Validation 1.1 in JBoss 6.x. My current jboss-deployment-structure.xml: <?xml version="1.0" encoding="UTF-8"?> <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0"> <deployment> <dependencies> <!-- list of modules taken from https:/

Servlet filter not applying to container managed login page

社会主义新天地 提交于 2019-12-12 12:56:07
问题 I'm using a Filter to insert anti-clickjacking headers in all my pages - this works correctly, except on the JBoss EAP 6.3 container managed login page, which is one of the more important pages to have it. The filter is not called at all with the login page, which is served off of http://localhost/Application/ . Filter mappings I've tried include <filter> <filter-name>InsertXFrameOptions</filter-name> <filter-class>com.filter.InsertXFrameOptionsFilter</filter-class> </filter> <filter-mapping>

Remote SOAP web service keeps breaking connection

家住魔仙堡 提交于 2019-12-12 10:29:29
问题 Short Description I'm using JBoss SwitchYard to connect to secured remote SOAP web service. For some reason after the request is sent; remote web service is stopping any further communication; so I'm not receiving a response. Question I need an idea or solution what could be a problem here. Error Caused by: java.net.SocketException: SocketException invoking https://**********.asmx: Unexpected end of file from server Description and notes Remote web service is using self-signed certificate; I

Grails 3.1.6 Deploy to JBoss is 404

核能气质少年 提交于 2019-12-12 01:12:55
问题 When I deploy a helloWorld app to JBoss EAP 6.4.0.GA it deploys with warnings and no errors, shows deployed in JBoss web admin console, but the application context returns 404. I have some warnings but no errors in JBoss log file. Process: Grails 3.1.6 JVM 1.8.0_77 Build on Windows 7 Enterprise Deploying to JBoss EAP 6.4.0.GA running on CentOS Linux release 7.1.1503 grails create-app helloWorld grails create-domain-class Person Edit Person.groovy... add String name grails henerate-all *

org.springframework.ws and Xalan problem on Jboss EAP 6.x

可紊 提交于 2019-12-11 17:28:36
问题 Hello I'm facing problem with Jboss EAP 6.x after update org.springframework.ws - spring-xml In my project I have use Xalan in version 2.7.2 , now I want to update org.springframework.ws - spring-xml from version 2.4.0 to 2.4.4 and upload wars of my app on Jboss EAP 6.x While deployment I got error: Caused by: java.lang.IllegalArgumentException: Not supported: http://javax.xml.XMLConstants/property/accessExternalDTD at org.apache.xalan.processor.TransformerFactoryImpl.setAttribute

How to disable capture of std-out in JBoss?

☆樱花仙子☆ 提交于 2019-12-11 14:43:46
问题 Using JBoss EAP 6.4 (AS 7.x I guess). By default, JBoss' logging service is capturing all application output to stdout (and presumably stderr) and wrapping it in its own log4j-based logs. When running locally I want to totally disable this (annoying) feature 1 , but the references I've found on the Interwebs all either don't work or are for older versions of JBoss. I've tried excluding every possible logging framework in the jboss-deployment-structure configuration, passing -Dorg.jboss