jboss7.x

Migration issues to JBoss AS 7.1

社会主义新天地 提交于 2019-12-24 08:03:14
问题 I am migrating application from JBoss AS 4.X to JBoss AS 7.1. I am facing the following problem I have a userdefined xml which has some configuration related stuff like paths, initial load setting etc which I used to place in Application Server/bin in JBoss AS 4.X. It was working fine. Now i placed the same file in jboss-as-7.1.1.Final\bin but it is not working and loading on start up of server. Where do I need to keep such XML's in 7.1 Server? And do I need to explicitly mention in jboss

Log4J not really excluded in JBoss EAP6/AS7

无人久伴 提交于 2019-12-24 06:55:11
问题 In jboss-deployment-structure.xml from application war file, I have exclude log4j modules or so <?xml version="1.0" encoding="UTF-8"?> <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0"> <deployment> <dependencies> <module name="oracle" /> </dependencies> <exclusions> <module name="org.apache.log4j" /> <module name="org.apache.commons.logging" /> <module name="org.jboss.logging" /> <module name="org.jboss.logging.jul-to-slf4j-stub" /> <module name="org.jboss.logmanager" />

Jesey Client on JBoss 7.1.1 throw java.net.SocketException: Protocol family unavailable for IPv6 address

折月煮酒 提交于 2019-12-24 03:13:10
问题 I'm trying to connect using Jersey Client to a REST service. When I'm using IPv4 address everything works fine. When I'm trying to replace the server address with its IPv6 the following exception is thrown: com.sun.jersey.api.client.ClientHandlerException: java.net.SocketException: Protocol family unavailable at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:128) at com.sun.jersey.api.client.Client.handle(Client.java:551) at com.sun

Rest back-end, Angular.js front-end lots of questions

非 Y 不嫁゛ 提交于 2019-12-24 02:56:10
问题 Okey, so time to build an webapplication using Jboss, restEasy as backend and i wanted to go for some MVC front-end framework like Angular.js. Never done this before so here is a million questions: Should i be using security roles in java or have my own security authentication and declare my own roles? J_security_check is wierd, it only prompts you to log in if you try to access a forbidden resource. Then it reroutes you to the login page. How can i use this with Angular? seems to me this can

JBoss 7 project libraries as a module

泄露秘密 提交于 2019-12-24 02:23:21
问题 My project's war, after adding some maven dependencies, increased in size to 32MB! I need to reduce that size. Gooogling around I found that using modules could be the way. What's the best practice? Adding each library as a new module? Creating a module with "all libraries" ? I don't even know if that's possible. So, I have, for example: <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports</artifactId> <version>5.0.0</version> </dependency> I want to add " provided "

How to use JPA to query encrypted data?

筅森魡賤 提交于 2019-12-24 01:19:34
问题 I am supposed to come up with a plan to encrypt our existing personal information and be able to retrieve it and show it back to user through application if required. This is not PCI information nor password, so it requires a two way journey that is encrypt and decrypt both (and for the moment to keep things simple no tokenization, no public private key encryption either), as well as query the information through JPA if required. Here is what I have: application engine JBOSS 7, database

JBoss AS 7 Restful Webservices not auto deploying

我与影子孤独终老i 提交于 2019-12-24 00:49:06
问题 I'm trying to use the built in Restful WebServices with JBoss AS 7. My web.xml is.. <?xml version="1.0" encoding="UTF-8"?> <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/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> </web-app> My application class is... package com.robert; import javax.ws.rs.ApplicationPath; import javax.ws.rs.core.Application; import java.util

Assign a pool to a specific stateless bean in JBoss EAP 6.1

ぃ、小莉子 提交于 2019-12-24 00:22:58
问题 I can see how one can control the size of the global pool for all the stateless session beans. However, I would like to be able to have a new pool that only applies to one type of stateless bean. This way, all my stateless beans but one would be pooled from the usual slsb-strict-max-pool , and one bean would have its own pool. Is it possible to do that in JBoss EAP 6.1? 回答1: Use @org.jboss.ejb3.annotation.Pool(value="myPoolName") annotation on the EJB referencing your custom pool as defined

java.lang.ClassCastException:Jboss resteasy logging

谁都会走 提交于 2019-12-23 21:19:37
问题 I am using Jboss7.0.1 Final to deploy my web application, But I don't want to use default Resteasy jar provided by Jboss so I made the changes in jboss-deployment-structure.xml <jboss-deployment-structure> <deployment> <!-- Exclusions allow you to prevent the server from automatically adding some dependencies --> <dependencies> <module name="javaee.api"> <imports> <exclude path="org/apache/xml/security/**" /> </imports> </module> <module name="com.mrf.portal.configuration" /> <module name=

Resteasy client in Jboss AS 7.1 throws java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl

一笑奈何 提交于 2019-12-23 20:09:37
问题 I have a RestEasyClient which initialize as follows and uses the Jboss AS 7.1 resteasy module @PostConstruct public void initializeClient() { log.info("In initializeClient"); HttpClient httpClient = new DefaultHttpClient(); ClientExecutor executor = new ApacheHttpClient4Executor(httpClient); ResteasyProviderFactory.getInstance().registerProvider( ServiceExecutionInterceptor.class); clientService = ProxyFactory.create(MyProjectClientService.class, getWebserviceURL(), executor); } This throws