ear

How to change a file inside an archive (.ear) file without extracting entire file

萝らか妹 提交于 2020-01-16 04:09:05
问题 I have an .ear file (an archive file like tar / zip) that has a file inside that i want to change. For example myfile.ear contains 1.txt and i want to change 1.txt to 2.txt and possibly also change some of the content inside 1.txt (like sed does) I really want to avoid having to extract myfile.ear , change the file and compress it again. Does anyone know a way to achieve this in linux ? And if it's not possible, I would also like to know why Thanks. 回答1: EAR files are just JAR files which are

Gradle ear update application.xml with current WAR filename

痴心易碎 提交于 2020-01-14 15:55:39
问题 I have a java EAR project that contains some WAR web-app. I'm using gradle to build the EAR file. uberApp | \---> WarA | | | ...<src and config> | \---> WarB | | | ...<src and config> | \--> config/META-INF/application.xml This is the uberApp build.gradle: apply plugin: 'ear' dependencies { deploy project(path: ':WarA/trunk', configuration: 'archives') deploy project(path: ':WarB/trunk', configuration: 'archives') } ear { appDirName 'config' } This is the WAR build.gradle: war { baseName =

Gradle ear update application.xml with current WAR filename

半城伤御伤魂 提交于 2020-01-14 15:54:48
问题 I have a java EAR project that contains some WAR web-app. I'm using gradle to build the EAR file. uberApp | \---> WarA | | | ...<src and config> | \---> WarB | | | ...<src and config> | \--> config/META-INF/application.xml This is the uberApp build.gradle: apply plugin: 'ear' dependencies { deploy project(path: ':WarA/trunk', configuration: 'archives') deploy project(path: ':WarB/trunk', configuration: 'archives') } ear { appDirName 'config' } This is the WAR build.gradle: war { baseName =

Gradle ear update application.xml with current WAR filename

烂漫一生 提交于 2020-01-14 15:54:45
问题 I have a java EAR project that contains some WAR web-app. I'm using gradle to build the EAR file. uberApp | \---> WarA | | | ...<src and config> | \---> WarB | | | ...<src and config> | \--> config/META-INF/application.xml This is the uberApp build.gradle: apply plugin: 'ear' dependencies { deploy project(path: ':WarA/trunk', configuration: 'archives') deploy project(path: ':WarB/trunk', configuration: 'archives') } ear { appDirName 'config' } This is the WAR build.gradle: war { baseName =

Eclipse validation error deploying EAR to WebLogic: cvc-complex-type.2.4c: Expected element 'module@http://java.sun.com/xml/ns/javaee'

試著忘記壹切 提交于 2020-01-13 16:30:33
问题 Out of the box, it is not possible to deploy an EAR to Oracle WebLogic using Eclipse. Environment details: Eclipse version: Indigo (includes Oracle Enterprise Pack for Eclipse 12.1.1.0.0) Weblogic version: 10.3.5 (11gR1) Oracle guide: http://www.oracle.com/technetwork/articles/javaee/marx-oepe-spring-095718.html The error I receive when trying to start the server is: java.lang.Exception: Exception received from deployment driver. See Error Log view for more detail. at oracle.eclipse.tools

Eclipse validation error deploying EAR to WebLogic: cvc-complex-type.2.4c: Expected element 'module@http://java.sun.com/xml/ns/javaee'

与世无争的帅哥 提交于 2020-01-13 16:30:17
问题 Out of the box, it is not possible to deploy an EAR to Oracle WebLogic using Eclipse. Environment details: Eclipse version: Indigo (includes Oracle Enterprise Pack for Eclipse 12.1.1.0.0) Weblogic version: 10.3.5 (11gR1) Oracle guide: http://www.oracle.com/technetwork/articles/javaee/marx-oepe-spring-095718.html The error I receive when trying to start the server is: java.lang.Exception: Exception received from deployment driver. See Error Log view for more detail. at oracle.eclipse.tools

Is it possible to observe a CDI Event inside a WAR when packaged as EAR

为君一笑 提交于 2020-01-12 07:47:10
问题 I have an Enterprise Application Archive ( EAR ) containing multiple backend modules ( EJB ) as well as some web modules ( WAR ). The Event gets fired inside one of the backend modules: @Inject private Event<MyEvent> myEvent; ... public void fireEvent() { myEvent.fire(new MyEvent()); } ... It can be observed in any of the other backend modules with code like this: public void listener(@Observes MyEvent myEvent) { .. } But I can't retrieve the event inside the WARs. Is this because of

Maven EAR module and EJB dependencies tests

删除回忆录丶 提交于 2020-01-11 02:26:06
问题 We are building our EAR & EJB projects with maven. It will build all the EJB projects and then they are used as the dependency for EAR, so they are packed into the EAR file eventually. The problem is that each EJB project has junit tests that check the EJB. For now these tests are not very useful because they try to connect to application server (jboss) and execute methods from EJB interface. Is there any way I can build the EJBs, build and deploy the EAR and then run all the tests from all

Entity unknown in EAR with persistence unit in another jar

痴心易碎 提交于 2020-01-06 15:53:06
问题 I'have an EAR with a WAR module, some EJB modules and some JARS, for instance: EAR - moduleEjb.jar - moduleWeb.war -lib - entity.jar - resource.jar I want to use persistence units from the resource.jar so the ejb modules are independent from the environment (i must remember only PU name, i can change the jndi for the datasource in resource.jar without change moduleEjb.jar), but the entities are not found. The entity is in entity.jar: @Entity @Table(name = "ttracciatikettle", indexes = {...})

create an EAR with maven assembly plugin [closed]

拈花ヽ惹草 提交于 2020-01-05 03:03:25
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . I try to create an EAR with the maven assembly plugin but I got an error message instead of EAR file... [ERROR] Failed to execute goal org.apache.maven