war

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 =

How to patch a Java program?

杀马特。学长 韩版系。学妹 提交于 2020-01-14 07:49:29
问题 Recently I applied a fix to a Java desktop application. I did this by changing the code in one of my classes, compiled it and sent the new jar to the production environment. I'm now asked if it is possible to just patch the jar in production by just copying the compiled class that I fixed, or even create a patching program/script that will be able to update just the modified files. Additional info: The patch does not have to be applied in run time. Meaning the patch can be done as a separate

Beginner servlet question: accessing files in a .war, which path? [duplicate]

倾然丶 夕夏残阳落幕 提交于 2020-01-14 04:37:08
问题 This question already has answers here : Recommended way to save uploaded files in a servlet application (2 answers) Closed 3 years ago . When a third-party library I'm using tries to access a file, I'm getting "Error opening ... file ... (No such file or directory)" even though I KNOW the file is in the WAR. I've tried both packaged (.war) and "exploded" (directory) deployment, and the file is definitely there. I've tried setting full permissions on it too. It's on Unix (Ubuntu). File is war

Deploy .war file on a server (Liferay+Tomcat Bundle)

一个人想着一个人 提交于 2020-01-13 13:51:09
问题 I have my new Liferay site ready and trying to test it in a real environment. I just got Tomcat-Liferay bundle installed on my server successfully and copied the .war file into the deploy directory next to tomcat according to instructions from some forums and comments; but after going to the URL, I still see the default Liferay page and my page doesn't get diplayed. What an I doing wrong here? Thanks in advance! 回答1: Deploying a theme or portlet plugin doesnt change the way the portal looks

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

Deploy War File in Microsoft IIS 7

妖精的绣舞 提交于 2020-01-10 10:49:14
问题 I would like to ask how can I deploy a war file to Microsoft IIS 7? Thanks in advance. 回答1: You can't. You need a Java EE Web Container such as Tomcat or JBoss in order to do so. IIS can just act as a front facing proxy for the stuff hosted through the WAR file. What you probably need is a way to connect IIS and Tomcat together so that requests for any dynamic resources such as JSPs and Servlets can be delegated to Tomcat. The following link explains how to do so in detail. http://tomcat

what is the right path to refer a jar file in jpa persistence.xml in a web app?

两盒软妹~` 提交于 2020-01-08 17:15:21
问题 persistence.xml looks like this: <persistence-unit name="testPU" transaction-type="RESOURCE_LOCAL"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <non-jta-data-source>jdbc/test</non-jta-data-source> <jar-file>../../lib/app-services-1.0.jar</jar-file> <exclude-unlisted-classes>false</exclude-unlisted-classes> </persistence-unit> It is a web project, so the deployment unit is a war file. The jar file I tried to refer is in WEB-INF/lib/ folder , persistence.xml is in WEB-INF

what is the right path to refer a jar file in jpa persistence.xml in a web app?

折月煮酒 提交于 2020-01-08 17:15:11
问题 persistence.xml looks like this: <persistence-unit name="testPU" transaction-type="RESOURCE_LOCAL"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <non-jta-data-source>jdbc/test</non-jta-data-source> <jar-file>../../lib/app-services-1.0.jar</jar-file> <exclude-unlisted-classes>false</exclude-unlisted-classes> </persistence-unit> It is a web project, so the deployment unit is a war file. The jar file I tried to refer is in WEB-INF/lib/ folder , persistence.xml is in WEB-INF