ear

Exploded deployment fails on JBoss 5

I have a web application which deploys fine as an ear file. But when I try to deploy it in exploded form it fails like this: 17:13:17,305 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=app.ear/#app-persistence state=Create java.lang.RuntimeException: could not find relative path: lib/persisten...

replace rebuilded module JAR in the EAR (Maven2 project)

Hello. During the development time I'm iteratively rebuilding some modules of my project. Rebuilding resulting ear-project gets a huge amount of time. If there is a way allowing to rebuild only jar file of changed module and then replace this jar in resulting EAR then it could reduce build time and accelerate development process. So qu...

How to access application.xml file of an EAR deployed to IBM WebSphere 6.1

I am deploying an EAR file to the IBM WebSpehre server 6.1 - I want to be able to access the EAR application name which is stored in the deployment file under 'display-name'. Looking through stack overflow posts on related subjects, I've been able to gather that this is possible via the Java MBean API - or IBM's WAS API - Problem is I c...

Init log4j in Weblogic, outside of ear

I can't imagine that my question is so specific to my case, but I did not see any similar questions asked here so far. I would like to be able to specify a log4g.properties file outside of my .ear packaging so that it is easier to alter the logging levels without repackaging the ear. Actually, the most pressing motivation for doing it l...

How to migrate WebSphere app with no WAR/EAR file.

Hi, I am to migrate a Websphere machine (including the applications which run on it) to a new machine. They wanted a clean install of the OS and WebSphere, so I did that. I also took a full file backup of all of the applications they had on the old server. The problem is that to re-install them on the new server, the WebSphere dialog...

How to programmatically check if an application has deployed in JBoss5?

I am writing a small app to automate deployments. Basically, it checks an ftp server periodically for a new .ear file. Compares the checksum of the remote ftp file against what is currently deployed. If there is a new ftp file, then it gets picked up and deployed... I then have a check to see if the app has deployed successfully. At...

ClassCastException when call local ejb3 from different classloader on Websphere 7

Hello, I have two ears, ear1 contains an ejb project and client, containing the interfaces (local). Ear2 contains a war that needs to call the ejb3 service. When I call the ejb service I am getting a classcastexception, I think because there are two classloaders involved here. Is there a clean way to achieve this? I'm working in RAD75 ...

how to I have two .war files within one .ear file?

I use jboss 4.0.2 and i want to have two .war files within one .ear file . ...

Removing version number from file name with Maven

I have a project with 5 modules in maven. Right now, when I do a "mvn clean install", it generates an ear containing the two jars, one war and one sar from the other modules. All the file names contain the version, e.g., projectx-ear-2.0.0.ear, projectx-client-2.0.0.jar, etc. I need to rename one of the jars and the final ear to omit t...

Repackage several WARs into one EAR

Greetings, I'm working on a project that have several webapps (WARs) built with Maven and deployed in a JEE. These WARs share several common business JARS (like one containing domain objects which are loaded from hibernate) and other framework JARs like Spring and Hibernate. They use Spring MVC, and the Application Context loads Hiber...

Deploy multiple instances of an EAR (representing versions) to Glassfish

I basically want to be able to deploy multiple versions of the same EAR file to the same server (Glassfish instance?) , and have a unique path to each version separating them. From my reading on this it appears that multiple EARs deploy to the root of the web server namespace so that they can coexist if they do not have colliding contex...

Add jar to EAR in Eclipse

I have several projects in an EAR in Eclipse. These projects themselves have dependency jar's on the build path marked as "do not export, do not contribute to others". Now in Eclipse I add jar's to the EAR via the EAR properties "Java EE Module Dependencies". I browse to the jar (add jar) and click ok. The jar is added to the list. Whe...

Can I make a WAR depend on a JNDI entry in JBoss 5.1?

Hi. As part of an upgrade from JBoss 4.0.4 to 5.1, I am trying to get a WAR to deploy after an EAR is successfully deployed. JBoss 5.x does not support PrefixDeploymentSorter like 4.x did, which means that I have to use <depends> in the WAR's jboss-web.xml. It seems I cannot depend on the EAR itself, so I pick the last deployed EJB in...

can you load multiple jsf wars in one classloader?

i have 3 war files with JSF installed, 3 faces config, when i make them all load into one class loader that is part of the EAR, it fails on initialization errors. like below. seems like JSF does not like to load multiple times in one classloader, has anyone tried this? to load a EAR with 3 JSF wars? java.lang.NullPointerException at...

How do I build a J2EE EAR file in RAD using Maven?

Using Rational Application Developer to create a J2EE application, I create a project for my EAR and a project for my WAR - following the usual project structure created by RAD. So, how do I create a Maven build file that builds the EAR with the WAR inside, etc - ready to deploy. Build needs to work when kicked-off from Hudson. ...

Automatically deploy mbean to Glassfish from ear

I have an ear file that contains an mBean. Is there someway that when I deploy the ear that I can get Glassfish to recognize the mBean and deploy it as well? ...

Get EAR name in the oc4j

Hi, How can I get the EAR name in the oc4j at runtime? Thanks a lot!! ...

How do I build a WAS 6.1 specific EAR without RSA/RAD?

Are there some IBM ant tasks that support this? ...

How do you ensure a Utility Projects library dependency gets packaged in the final EAR in Eclipse Galileo?

I have a 'Utilty Project', and an 'EAR Project' that includes that 'Utility Project'. All the classes from the 'Utility Project' end up being packaged as a JAR and placed within the 'lib' directory of the exported EAR, for example: EAR.ear META-INF MANIFEST.MF lib utility.jar (which expands to): META-INF ...

how to access method from one ear to another ear on same app server

Hi, i have deployed two EARs on one server. i want to access one method in one java class in EAR to another java class in second EAR. what are different ways to achieve this. which one is best way to do. Thanks ...