war

simple way to create patch on deployed grails application

让人想犯罪 __ 提交于 2019-12-05 15:44:55
i have a deployed grails apps on tomcat6 in my client server machine, but the application is still need many fix, so every bug founded or missing feature on client machine, i creating a patch and delivering to client via ftp on .tar.gz file that will replace on deployed folder. i can't send a fully .war files because the apps is big (~80M), so sending a changes .class files is the only option i have. but the process to creating a patch is too time consuming , especially on rebuild the project , cleaning up the target folder and start to compile all files on project. after that i search the

how to ask maven war plugin to copy particular jar file into warfile/web-inf/lib

对着背影说爱祢 提交于 2019-12-05 14:47:52
I have a simple.jar file that stay in c:/JAR. When i used maven war plugin to create a war file, it will copy all the dependencies into lib folder. How can i ask maven to copy simple.jar into lib folder as well. I believe this will work for you. I'm not 100% sure the C:\\JAR is correct though. You might have to fiddle with this syntax. <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.0.2</version> <configuration> <webResources> <resource> <directory>C:\\JAR</directory> <targetPath>WEB-INF/lib</targetPath> </resource> <

What is the gradle way to filter a subset of files in src/main/webapp?

China☆狼群 提交于 2019-12-05 14:33:44
问题 I'm doing a maven conversion to gradle and want to see the opinions on the best way to perform the following. I currently have multiple files under src/main/webapp. Some need filtered one way and some need filtered in another. Notionally under src/main/webapp I have a directory foo containing html and binaries and under webapp many other files including html. I want to filter just the foo/*.html files. In my notional build.gradle I can either do: war { eachFile { if(shouldFilter(it)) { it

Generating WAR and EAR artifacts inside the same Gradle project

那年仲夏 提交于 2019-12-05 12:14:03
Suppose that I have a Gradle web project with a standard web project layout src/main/webapp . Project myproject-web , build.gradle : apply plugin: 'java' apply plugin: 'eclipse-wtp' apply plugin: 'war' I know that I can wrap the resulting .war file generated by myproject-web inside an .ear if I define a secondary project (say, myproject-ear ) which applies the ear plugin and references myproject-web as a dependency: Project myproject-ear , build.gradle : deploy project(':myproject-web') I know it's a bit pointless to create an .ear file with only one .war inside (but that's how I'm required to

Header parse error after upgrade to Jetty 9.3

荒凉一梦 提交于 2019-12-05 09:57:50
I'm having an issue when I change my jetty distro from 9.2 to 9.3. Under 9.2 my app works flawlessly however when running the same war file and connecting from the same client I get the following error messages when running under 9.3: 015-08-30 14:55:32.174:WARN:oejh.HttpParser:qtp1100439041-12: Illegal character 0x20 in state=HEADER_IN_NAME for buffer HeapByteBuffer@26dab36[p=62,l=654,c=8192,r=592]={POST /api/v1/time...0.1:8080\r\nKey <<<Info Header: ...erica/Toronto"}>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00

springboot get error when server starting in linux

雨燕双飞 提交于 2019-12-05 06:39:31
First, there are two Linux servers. I want to build a redundant web server on two servers. I installed jre1.8.0 on two servers equally. And I installed the same spring boot war file on two servers equally. By the way .... Server 1 normally goes up and works normally. Error on server # 2 .... I've copied war and tomcat on server # 1 to server # 2. I still get an error on server # 2. The duplication structure is almost the same as all the settings ... jre path I checked .. 1.8.0 I checked and ..... ha ...... what is the problem? I can not figure out why the error is only on server 2, because it

Glassfish Server Error when deploy .war: Error occurred during deployment: Exception while preparing the app : Invalid resource

守給你的承諾、 提交于 2019-12-05 05:53:53
I am using the following: NetBeans IDE 7.3 (Build 201306052037) Java: 1.7.0_17; Java HotSpot(TM) 64-Bit Server VM 23.7-b01 NetBeans integrated GlassFish Server Open Source Edition 3.1.2.2 (build 5) I created an RESTful Webservice with NetBeans, deployed it under NetBeans and it worked fine. So I copied the generated .war file to another machine which uses: Oracle GlassFish Server 3.1.2.2 java version "1.7.0_21" Java HotSpot(TM) Client VM (build 23.21-b01, mixed mode) When I want to deploy the .war file, I receive this error: remote failure: Error occurred during deployment: Exception while

基于Java的打包jar、war、ear包的作用与区别详解

走远了吗. 提交于 2019-12-05 05:19:11
一、pom.xml maven还生成了一个重要的文件pom.xml,maven就是通过这个文件来来管理整个project,可以理解位类似于eclipse的.project文件。默认生成的pom.xml文件的内容如下: <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/maven-v4_0_0.xsd"> <!-- 这个XML文件所使用的POM格式的版本 --> <modelVersion>4.0.0</modelVersion> <!-- 代表组织和整个项目的唯一标志 --> <groupId>com.msc</groupId> <!-- 这个project最后所生成的文档(jar、war)的名字 --> <artifactId>first</artifactId> <!-- 这个项目的打包的类型 --> <packaging>war</packaging> <!-- 项目的版本 --> <version>0.0.1-SNAPSHOT</version> <!--

Deploy to weblogic using maven and jenkins

十年热恋 提交于 2019-12-05 04:13:52
We are using Jenkins in our project for build and deployment on dev environments. I have sucessfullly created a war file using maven in jenkins and now I have to create another job to deploy that war file into the weblogic server. However, I am not aware of the required steps for configuring this job in jenkins. Will it be a matter of just invoking a maven deploy command? Can some one please tell me what will be the required steps to deploy a war file into weblogic 10.3.5 using jenkins? edit : The approach we are following is after creating the war file we are cheking the war file created into

Deploying .ear file to tomcat

半城伤御伤魂 提交于 2019-12-05 03:28:10
I have an .ear file which contains multiple war files. I am moving the app to tomcat. Once I have packaged all of the individual war files contained in the .ear for tomcat compatability how will the war files be deployed ? Do I just need to deploy all of the individual war files to tomcat and it should "just work" or is it not as simple as this ? To be more specific what is the tomcat equivalent "glue" that websphere provides to package all the wars in one ear? Tomcat doesn't support the full EE stack, it's a servlet container only. You'll have to deploy the WARs separately. 来源: https:/