war

gradle providedCompile for gwt-user/dev causes other jars to disappear from WAR

旧时模样 提交于 2020-01-24 18:40:11
问题 I assemble WAR for GWT application through gradle. When GWT is included like dependencies { compile "com.google.gwt:gwt-user:2.5.1" compile "com.google.gwt:gwt-dev:2.5.1" ... } then I have gwt-user.jar and gwt-dev.jar in resulting WAR file. They are not really needed and are big. If I delete these jars from WAR - application works well. But when I try to assemble WAR without these jars inside using dependencies { providedCompile "com.google.gwt:gwt-user:2.5.1" providedCompile "com.google.gwt

Run a Java class from Spring startup

强颜欢笑 提交于 2020-01-24 14:07:10
问题 I am using Java8 and Spring4.3.1. I have a Java/Spring application hosting RESTfult services accessed by browser and mobile app clients. Second, I have written a Chat Server that listens for events ( socket.io ) from the clients. This Chat Server is running from the classes main method. The Chat Server class has a main method that I want to run, and allow to listen for events when my Spring application starts. Is this possible? If I run the main myself, it works, but I want it to start up

GlassFish WAR file deployment to a non-default port

依然范特西╮ 提交于 2020-01-24 01:08:41
问题 I am attempting to deploy a war file (Oracle's APEX Listener) to a GlassFish 3.1.2.2 server deployed on an RHEL server (I am also seeing the same issues on an Ubuntu server at home). I used the following command to create the domain: $GLASSFISH_HOME/bin/asadmin create-domain --portbase 8100 myDomain [I am also creating multiple domains on the same GlassFish server (one GF instance with multiple domains) using values of 8200, 8300, and 8400 for the portbase value and using different domain

Web app won't join Infinispan cluster

萝らか妹 提交于 2020-01-23 10:36:26
问题 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

Missing dependencies in war. Gradle build project

ぃ、小莉子 提交于 2020-01-17 12:02:14
问题 I've a war project build by gradle. And I've a string in gradle.build file: compile 'log4j:log4j:1.2.17' But thereis no any log4j.jar in resulting WEB-INF/lib directory in myproject.war file. But all other libs defined in "compile" configuration are there. Why so strange behaviour, is it a bug or some kind of feature? And how to include it in my webarchive? Eclipse shows log4j.jar in "web app libraries" part of the project. I'm using gradle v. 2.3 from Eclipse and console. 回答1: have you

Missing dependencies in war. Gradle build project

橙三吉。 提交于 2020-01-17 12:00:48
问题 I've a war project build by gradle. And I've a string in gradle.build file: compile 'log4j:log4j:1.2.17' But thereis no any log4j.jar in resulting WEB-INF/lib directory in myproject.war file. But all other libs defined in "compile" configuration are there. Why so strange behaviour, is it a bug or some kind of feature? And how to include it in my webarchive? Eclipse shows log4j.jar in "web app libraries" part of the project. I'm using gradle v. 2.3 from Eclipse and console. 回答1: have you

How to deploy war file to Glassfish?

本秂侑毒 提交于 2020-01-17 05:07:09
问题 I've developed a RESTful web service in netbeans and it made a .war file for me. now i want to deploy it to my host using glassfish . there are lots of tutorials on the net about deploying war file to glass fish(for example) but they all describe how to deploy to local machine(localhost), but as i mentioned i want to deploy to my website host. how to do that? 回答1: You should be able to do that using the admin console. This is an old documentation link, but it is still valid: http://docs

converting existing web project using maven

前提是你 提交于 2020-01-17 02:20:47
问题 I have been trying to convert a web project that produces a war file to maven. my existing project structure is as follows - MyWebProject | -- WEB-INF/src - contains a bunch of packages like com.myweb.client, com.myweb.server etc -- WEB-INF/test - contains 1 package com.myweb.tests -- web-scripts - contains bunch of scripts (just a folder; not on classpath) -- misc-files1 - contains misc files sets 1 -- misc-files2 - similar to above presently a war file is being created using ant script with

maven-shade-plugin : make a jar whereas we are in war Project?

◇◆丶佛笑我妖孽 提交于 2020-01-15 12:24:05
问题 Question is in the title. I sucess to first to do a jar (project packaging jar)....then i move it before id do mvn clean to keep it elsewhere. Or i'm a in a war project so i have to rename project packaging to war then i have to do a mvn clean install I got my war. I then import the first jar to use from my war. Is there a clearer way do that with maven shade plugin to generate both war and jar. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId>

maven-shade-plugin : make a jar whereas we are in war Project?

▼魔方 西西 提交于 2020-01-15 12:22:08
问题 Question is in the title. I sucess to first to do a jar (project packaging jar)....then i move it before id do mvn clean to keep it elsewhere. Or i'm a in a war project so i have to rename project packaging to war then i have to do a mvn clean install I got my war. I then import the first jar to use from my war. Is there a clearer way do that with maven shade plugin to generate both war and jar. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId>