ear

Persistence Unit Service starting multille times

a 夏天 提交于 2019-12-12 04:59:07
问题 I am having EAR project which contains 1 EJB 3.0 Project and 2 WAR Project. I have defined persistence.xml in my EJB project. However when the application starts it starts persistence unit service 3 times. As per log on startup I can see Starting Persistence Unit Service 'xyz-ear.ear/xyz-ejb-1_0_0-SNAPSHOT.jar#xyzUnit' Starting Persistence Unit Service 'xyz-ear.ear/xyz-war-1_0_0-SNAPSHOT.war#xyzUnit' Starting Persistence Unit Service 'xyz-ear.ear/xyz-service-war-1_0_0-SNAPSHOT.war#xyzUnit'

MyBatis CDI class loader issue in case of EAR

为君一笑 提交于 2019-12-12 04:31:27
问题 I have an EAR which at the moment contains only one WAR. My issue is if the mybatis-....jar files locate under web-module.war\WEB-INF\lib then everything works fine. BUT if I create a skinny war with maven and the two mybatis related jars locate under EAR/lib I get a " There are no SqlSessionFactory producers properly configured. " error. I seems that it is a classpath related issue. I am planning to add more WAR into my EAR and I would like to avoid the situation to put these two jars into

Context root path not working in Jboss 7 ear

我是研究僧i 提交于 2019-12-12 04:19:15
问题 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.abc</groupId> <artifactId>MyProjectEar</artifactId><version>0.0.1-SNAPSHOT</version> </parent> <properties> <build.plugin.maven.ear.version>2.10.1</build.plugin.maven.ear.version> </properties> <artifactId>MyProjectEarModule<

Does the Maven Assembly Plugin (maven-assembly-plugin) support the EAR format?

烂漫一生 提交于 2019-12-12 02:57:10
问题 Does the maven-assembly-plugin support EAR as a valid format? The documentation seems to indicate you can configure it any way you want: zip tar.gz tar.bz2 jar dir war and any other format that the ArchiveManager has been configured for http://maven.apache.org/plugins/maven-assembly-plugin/ 回答1: Yes, it does. Just specify in your assembly descriptor: <formats> <format>ear</format> </formats> 回答2: It can but you should use the maven-ear-plugin instead, cause it know better about ejbs etc. of

Application specific logging in WildFly 9.0.1 FINAL (SL4J + Logback)

可紊 提交于 2019-12-12 02:49:56
问题 I followed some articles and tried to come with the solution by following some similar SO questions but still can't make this work - my logfile is not being created anywhere I searched for it. My goal is to have working logging bundled within the application, not use vendor specific logging. My current situation is following: I have created jboss-deployment-structure.xml inside MyEAR/META-INF directory with following content: <?xml version="1.0" encoding="UTF-8"?> <jboss-deployment-structure>

Access ejb from web module (RESTful services) in ear application

风流意气都作罢 提交于 2019-12-12 01:26:53
问题 I have an ear application that consists of an ejb.jar and a web application (war). The ejb.jar contains all my EJBs (beans and interfaces) and my war contains REST web services. I want to access the EJBs from the war module, is that possible? Injecting the EJBs doesn't work, I get null pointer exception. I know that this has been asked many times but I can't seem to get this working... I am using Glassfish v2.1.1 (I know I should upgrade, but right now it is difficult...) Here is the code

How to change context-root for enterprise application (.ear) in weblogic

点点圈 提交于 2019-12-12 01:22:48
问题 We have third party web based enterprise application, which is deployed on weblogic server and can be accessible using http://hostname:port/myApp But, due to some reason, we wanted to change context-root for this application, so that it must be ONLY accessible using http://hostname:port/newApp So, to achieve this, we tried changing application.xml <?xml version = '1.0' encoding = 'utf-8'?> <application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema

Load external properties files into EJB 3 app running on WebLogic 11

柔情痞子 提交于 2019-12-11 23:33:06
问题 Am researching the best way to load external properties files from and EJB 3 app whose EAR file is deployed to WebLogic. Was thinking about using an init servlet but I read somewhere that it would be too slow (e.g. my message handler might receive a message from my JMS queue before the init servlet runs). Suppose I have multiple property files or one file here: ~/opt/conf/ So far, I feel that the best possible solution is by using a Web Logic application lifecycle event where the code to read

How to add more jax-rs components to the application?

梦想与她 提交于 2019-12-11 20:40:56
问题 I want to add a @Provider ContainerRequestFilter to my web project which is already defined in another project on which my current project has dependency on. So, all the providers of that project are available to this project. Both wars are packaged as ear and deployed to wildfly. But since, context-roots are different for both the web projects (or both are different web applications), the @Provider is only working for the jax-rs resources in the first project. So, I want to manually add the

deployment of an ejb maven project from eclipse

喜夏-厌秋 提交于 2019-12-11 19:51:43
问题 I'm facing a weird problem and was not able to find somebody out there having the same behaviour creating a maven ear-ejb project in eclipse. I have a parent pom that looks like this: <modules> <module>ear</module> <module>ejb</module> </modules> <build> <plugins> <plugin> <artifactId>maven-eclipse-plugin</artifactId> <configuration> <wtpversion>2.0</wtpversion> </configuration> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1