war

Deploy a Grails 2.1.1 application to Tomcat as an exploded war?

此生再无相见时 提交于 2019-12-06 04:47:20
问题 I'm trying to deploy a Grails app on OpenShift, and I'm trying to avoid pushing a 50MB file across the web for every change. I created a project at ~/dev/apps/grails/test to test it Based on this answer on SO, I added grails.war.exploded=true to grails-app/conf/BuildConfig.groovy , which caused this folder to be created: /home/sas/.grails/2.1.1/projects/test/stage how can I tell it to create the exploded war at ~/dev/apps/grails/test/target/test-0.1 ? copying the folder like this: cp -r /home

How do I deploy spring-boot WAR to Tomcat?

末鹿安然 提交于 2019-12-06 04:28:26
I have spent a good number of hours on this before posting... I have a spring-boot application that runs nicely as a JAR, but when I try to convert it to a WAR I cant deploy it. I have tried looking for the rules for it to decide whether it Tomcat is embedded or external. The WAR looks correct with WEB-INF/lib and WEB-INF/lib-provided with no obviously misplaced jars. My Application class extends SpringBootServletInitializer. When debugging, this class sets the application context class to AnnotationConfigEmbeddedWebApplicationContext.class... is this correct? Should I expect to see Embedded

Spring-boot jersey maven failed to run war file

假装没事ソ 提交于 2019-12-06 03:25:40
We are creating a spring-boot jersey application. Now we want to create executable war file. The problem is the application runs fine when I run it with mvn spring-boot:run But when I try to package it to war and run it with java -jar ABD.war its giving the following error Caused by: java.io.FileNotFoundException: /Users/ABC/ABD-0.0.1-SNAPSHOT.war!/WEB-INF/classes (No such file or directory) Caused by: org.glassfish.jersey.server.internal.scanning.ResourceFinderException: Here are the part of pom.xml I'm using , <packaging>war</packaging> . . . <properties> <project.build.sourceEncoding>UTF-8<

Where is the war file built in Intellij IDEA, located?

白昼怎懂夜的黑 提交于 2019-12-05 22:20:13
问题 I'm using IntelliJ IDEA and I'm building and deploying the web-application project every time I'm running it. All of this happens magically within IntelliJ IDEA. However, now I'm supposed to manually deploy it on a test server's wildfly, so I need an artifact file (WAR or EAR) to drop in the standalone/deployments directory on the test server's running WildFly10. I can't for the life of me find where IntelliJ Idea exports the WAR / EAR artifacts so I could copy paste it to the said directory

gradle custom war task webAppDirName

让人想犯罪 __ 提交于 2019-12-05 20:56:31
I have a few gradle war tasks in my build file, and I would like to change the webAppDirName per war task. I tried this: task myWarTask(type: War) { ext.webAppDirName = 'src/anotherfolder/webapp' // also tried just webAppDirName version "" destinationDir = file("$buildDir/libs") baseName = 'myWarName' classpath = configurations.myWarConfiguration } But this is still pulling in the contents of src/main/webapp instead of src/anotherfolder/webapp Can I configure the webAppDirName on a per war file basis like this? There is just one webAppDirName property per project, and the War plugin

Are JSPs generally shipped as .jsp files , pre-compiled Java files or pre-compiled class files?

烈酒焚心 提交于 2019-12-05 20:52:13
Is there a 'standard' practice for packaging JSPs when preparing WAR for Production Env? Are they included as ".jsp" files? Or are they included as pre-compiled Java files, or pre-compiled class files? The Servelts/JSP spec says nothing about precompiling JSPs making this feature specific to container implementation . You can pre-compile for a specific container, say for Tomcat or for WebLogic and you will surely find Ant tasks to do so. Generally, when you package your app you know your target. If it's more than one container (say you package a downloadable product) then your only option is

Unable to deploy .war application to GlassFish 3.1.2

笑着哭i 提交于 2019-12-05 20:02:51
I have a .war application module, that can be successfully deployed without any exotic changes and server tuning. However, i was unable to deploy this app to GF 3.1.2: server throws following exception: java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.NoSuchFieldError: theInstance What i am doing wrong? Has anyone suggest me something? Is there any additional settings that i should perform to deploy .war module successfully? Thanks a lot in advance. UPD More precise log

Web app won't join Infinispan cluster

末鹿安然 提交于 2019-12-05 19:31:16
I've been playing around with Infinispan lately, having had no previous experience with Infinispan. I've come across an interesting problem and I wondered if anyone might be able to shed some light on it. I have a standalone Java application (GridGrabber.jar) that bundles the Infinispan jars and has a class to add/remove and list items from the grid. Within the application I create the CacheManager as follows: DefaultCacheManager m = new DefaultCacheManager("cluster.xml"); The application runs on the command line with java -jar GridGrabber.jar and works fine, and when I start two instances at

How to configure npm to use maven folder structure and war deployment

眉间皱痕 提交于 2019-12-05 18:14:56
I began my first pure front end project. I want to deploy it the java/maven. So i set up a normal war project: │ package.json │ pom.xml │ tsconfig.json │ typings.json │ │ ├───src │ └───main │ ├───resources │ └───webapp │ │ index.html │ │ │ ├───app │ │ app.component.ts │ │ main.ts │ │ │ ├───css │ │ styles.css │ │ │ └───WEB-INF │ web.xml │ My problem is how to set the path to index.html/the source relative to package. json? Since this is an angular/typescript project there is also some typescript specific stuff. but my hope is to set the "source" path once and for all in package json?! I am also

Maven in multimodule web project: how to put sibling modules output to WEB-INF/classes and not into WEB-INF/lib as JARs?

依然范特西╮ 提交于 2019-12-05 16:19:28
I have a multi-module Maven project. By default when I build a web module, all sibling modules of type JAR it depends on are copied to WEB-INF/lib folder. I want output of sibling modules to be placed in WEB-INF/classes folder without packaging to JAR. More general question may be: how to keep sibling modules' configuration files out of JARs so that they can be edited after deployment easily? You could use an overlay , although that requires that the sibling be of type war rather than jar. There's also using the dependency plugin to unpack the jar, but it will only unpack the version in your