ear

Add resources or property to Websphere's classpath

北战南征 提交于 2019-12-11 10:50:31
问题 I've a problem and a solution. But I don't like my solution, could someone provide an elegant way of solving this? This is for running web application inside IDE. I've an EAR project and I'm using RAD7.5. My EAR project looks like EAR_Project Deployment Descriptor Module Jar1 Jar2 War Meta-Inf application.xml My question is, Jar1 and Jar2 has its own libraries and properties files. As of now, I copy all libraries and properties of Jar1&Jar2 into War/Web-Inf and it works fine. Is there a

Websphere : deployment logs location?

穿精又带淫゛_ 提交于 2019-12-11 08:53:35
问题 I am a newbie to websphere. I am trying to deploy an EAR while i get the following exception: DeploymentDescriptorLoadException: META-INF/ejb-jar.xml When I searched about this error, the answers I got was to check the deployment log file to find the root cause of this error. I am not sure where the deployment logs would be. Checking under DefaultDepMgr (the default deployer) did not yield any logs. Can someone point me to the correct location of logs which would help me find the root cause

Spring: how to close a shared context

こ雲淡風輕ζ 提交于 2019-12-11 03:58:35
问题 This question describes a nice way to have a shared Spring ApplicationContext as a parent to the ApplicationContexts several WAR within an EAR. (See also ContextLoader.loadParentContext.) This works fine but for the fact that ApplicationContext.close() is never called on this parent context when the server is shut down. This leads in our case to the server never shutting down, since the parent ApplicationContext contains a ThreadPool and starts ehcache, which also starts a couple of (non

Glassfish error while deploying ear web application with multiple EJB references

余生长醉 提交于 2019-12-11 03:34:27
问题 Continuation of Glassfish error while deploying ear web application Im trying to solve this error when i deploy the EAR project with a glassfish server. It's already solved for one of the class and now i get the same error in another. I can't apply the same solution because in this new class there are multiple @EJB calls(i don't really know if that's the issue anyway). The error: Exception while deploying the app [ociumfinal-ear] : Cannot resolve reference [Local ejb-ref name=net.ocium

What I have to do to guarantee that ccc.jar is loaded before aaa.jar?

五迷三道 提交于 2019-12-11 01:37:21
问题 Does somebody know in which order of precedence are the jars loaded? Having several jars in WEB-INF/lib (in a war inside an ear in WAS 6.1 ). Let's say aaa.jar , bbb.jar , ccc.jar . I have two different versions of a class paq1.paq2.paq3.MyClass inside aaa.jar and ccc.jar The one inside ccc.jar is the correct one; the one in the aaa.jar is the wrong. It seems that the wrong version is localized before the correct one. Does somebody know what I have to do to guarantee that ccc.jar is loaded

How to proceed with ear build in maven2?

不想你离开。 提交于 2019-12-11 01:27:56
问题 I very new to maven2. Till yesterday i was successful in building war from maven2. My next target is to build ear file for a war file including few of jar files as well. Can you please help with that. I would be greatly thankful. Regards Gnash-85 回答1: The official documentation of the Maven EAR plugin and in particular the section about EAR Modules, the examples and the Usage page should be the reference. But you might find Because I always forget how to use maven-ear-plugin an easier

Using GlassFish <class-loader delegate=“false” /> in WAR of EAR causes ClassNotFoundExceptions on JARs in WAR

雨燕双飞 提交于 2019-12-10 22:56:10
问题 The problem: I'm doing maintenance/enhancement work on a project using an old (2.0.3) version of Mojarra, and recently hit a bug. Updating Mojarra corrects the problem. Unfortunately, updating Mojarra on the production Glassfish server isn't an option; a whole bunch of applications in production are on that server, and there is no possible way our QA department would be able to check all of them for regression errors. The proposed solution: Deploy Mojarra with just this application, I've

Deployment of multiple, depended CDI jars in one EAR

耗尽温柔 提交于 2019-12-10 20:05:14
问题 i have a question about how to deploy multiple jars which contains CDi implementations together with a webapp. This is my Jar Structure -------- ---------- ------------ | WAR | <-- | API Jar | <-- | Data Jar | -------- ---------- ------------ ^ | -------------- | Common Jar | And many more implementations -------------- The WAR itself is the webapp which uses classes which are defines in the API Jar. The API jar only contains Interfaces, Annotations, non-logic classes, Qualifiers etc... The

Gradle: Include jar dependencies into ear/libs

给你一囗甜甜゛ 提交于 2019-12-10 17:37:01
问题 I'm using Gradle to create an ear, but I'm having a hard time figuring out how to properly include dependencies in the lib folder. I know that I can use earlib project (group:name:version) to include jars there. And that also those jars' compile dependencies are going to be added in the ear's lib folder. My problem is that I also have jars that are listed in the ear's build.gradle as deploy project (':jar-name') How can I add their dependencies in the lib folder? The only way I found is to

Spring Boot EAR Packaging

China☆狼群 提交于 2019-12-10 15:24:40
问题 Similar to this SO I'm trying to package several WAR modules into a single ear . I have been able to get each running individually as WARs and packaged as an EAR. My current issue is in dealing with a shared context . Essentially trying to separate RESTful API from WS but sharing the underlying service context . Thus far the closest thing I can find close to this is Spring IO Blog; I'm hoping someone can point me in the direction of something a little more up-to-date as I'm having no luck.