jboss7.x

How do you generate module dependencies in MANIFEST.MF for JBoss AS 7 with maven?

痴心易碎 提交于 2019-12-31 08:08:16
问题 In JBoss AS 7, a Web application that depends on libraries contained in the AS, must declare those dependencies in META-INF/MANIFEST.MF like this: Dependencies: <package-name> Example: Dependencies: org.slf4j (This is comparable to Import-Package: for OSGi.) Further information can be found in the articles about migration from older versions, class loading and implicit module dependencies for deployments The project is built with Maven. All dependencies included in the AS are declared with

Two DNS Names for two Web apps in jboss 7.1.1

倖福魔咒の 提交于 2019-12-31 05:42:09
问题 I have a problem. I have two web apps deployed as wars. Let's call them app1.war and app2.war. I would like app1.war to be accessed at the URL www.website.com and I would like app2.war to be accessible as www.anotherweb.com. I have my domain name ready. I am able to run the application as www.website.com/app1, www.website.com/app2. So Now i need to run using www.website.com and www.anotherweb.com I am running JBoss7.1.1. Thanks for any insights. 回答1: You need to put Apache Http server between

Object is not getting persisted using JPA/JTA/JBOSS/CDI

老子叫甜甜 提交于 2019-12-31 04:07:07
问题 Please help me to understand why object is not getting persisted with following code. It throws javax.persistence.TransactionRequiredException: JBAS011469: Transaction is required to perform this operation (either use a transaction or extended persistence context) public class OrganizationRepositoryImpl implements OrganizationRepository { @PersistenceContext(unitName="usermanagement",type=PersistenceContextType.TRANSACTION) private EntityManager em; public void save(Organization organization)

How to disable scanning @WebService annotations in JBoss AS 7?

和自甴很熟 提交于 2019-12-30 11:16:13
问题 I have web services developed using Spring+ApacheCXF and I need tod eploy them on JBoss AS7. They are being deployed by CXFServlet properly. But JBoss AS7 also deploying them by scanning @WebService annotations(as expected without Spring Injection). How to disable scanning @WebService annotations in JBoss AS 7? PS: I am deploying as a .war file. PS PS: My current cxf webservices are being deployed properly. But JBoss AS7 also trying to scan @WebService classes and deploying them also(without

javax.persistence.PersistenceException: Invalid persistence.xml

╄→尐↘猪︶ㄣ 提交于 2019-12-30 11:04:42
问题 I'm working on project with Servlet,JPA,EJB and JBoss in eclipse. As you can see in the title of my topic I have an error on my persistence.xml file but I don't know which: <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> <persistence-unit name="TrainingAppEJB-PU"> <provider>org.hibernate.ejb

javax.persistence.PersistenceException: Invalid persistence.xml

白昼怎懂夜的黑 提交于 2019-12-30 11:03:58
问题 I'm working on project with Servlet,JPA,EJB and JBoss in eclipse. As you can see in the title of my topic I have an error on my persistence.xml file but I don't know which: <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> <persistence-unit name="TrainingAppEJB-PU"> <provider>org.hibernate.ejb

Path setting for DLL's in JBOSS 7.1.1

[亡魂溺海] 提交于 2019-12-30 05:10:09
问题 We have some DLL's which are related to Java,VB . In Joss 4.X , We used to place in bin directory under Application Server. We migrated to JBOSS 7.1.1 and when I removed from bin directory and placed them in libraries folder under C:\jboss-as-7.1.1.Final\modules\com\correction\main\libraries . I am getting this exception java.lang.UnsatisfiedLinkError: no xxxJavaWrapper in java.library.path java.library.path = C:\Program Files\Java\jdk1.6.0_24\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32

Generate an xml file with all dependencies with maven

拈花ヽ惹草 提交于 2019-12-30 00:37:16
问题 I need to generate module.xml file for JBoss7 for a maven project which has a lot of jar-dependencies. What is the easiest way to do it? The file looks like: <module xmlns="urn:jboss:module:1.0" name="ats.platform"> <resources> <resource-root path="dom4j-1.6.1.jar"/> <resource-root path="jdom-1.0.jar"/> ... </resources> </module> so that the <resource-root> element should be created for each project jar-dependency. Or maybe I doing something wrong? What's correct way to create a JBoss7 module

Jboss AS 7.1.1 ejb 3 : EJB pool error

≡放荡痞女 提交于 2019-12-29 09:09:06
问题 We have an application running on Jboss AS 7.1.1 and uses EJB 3. We are intermittently seeing the following errors javax.ejb.EJBException: JBAS014516: Failed to acquire a permit within 5 MINUTES at org.jboss.as.ejb3.pool.strictmax.StrictMaxPool.get(StrictMaxPool.java:109) at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:47) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) at org.jboss.as.ejb3.remote

Code coverage of JBoss AS 7 testsuite, using JaCoCo - no data in jacoco.exec files

梦想与她 提交于 2019-12-29 08:16:16
问题 I'm trying to get coverage of JBoss AS 7. Here's my branch: https://github.com/OndraZizka/jboss-as/tree/TS-jacoco When I run mvn clean install -rf testsuite -DallTests -Dcoverage -fae I get (almost) empty jacoco.exec files - just some metadata (size is few bytes). The JVM arg line used is: -javaagent:${jbossas.ts.dir}/target/jacoco-jars/agent/jacocoagent.jar=destfile=${basedir}/target/jacoco.exec,includes=${jboss.home}/modules/**/*,excludes=${basedir}/target/classes/**/*,append=true,output