war

Why no option to import a WAR file into Eclipse?

隐身守侯 提交于 2019-12-01 17:04:10
I have a WAR file for a Java project but when I try to import it into Eclipse, the only option is for archive files such as tar, zip, jar - nothing for war. Is this only an option in certain editions of Eclipse because I have a copy of SpringSource (also Eclipse-base) that allows me to import WAR files? Would it be possible to add this option to my current version without downloading a new edition of Eclipse? Your version of Eclipse is Eclipse IDE for Java Developers . Try download Eclipse IDE for Java EE developers Your version of Eclipse doesn't have the Web tree pane. What version of

Grails quartz plugin is not working when deployed in Tomcat

我是研究僧i 提交于 2019-12-01 16:02:16
I have a web application that was developed using Grails. I'm trying to implement a background process that scans a table in DB for every 5 mins using quartz1.0-RC9 plugin for Grails. Before trying to code the actual logic I'm learning how to use the plugin as I'm new to quartz. So I created a job that prints the message "hai" with the current timestamp for every 5 seconds. class checkJob { static triggers = { simple name:'sampleQuartz', startDelay:10000, repeatInterval: 5000l, repeatCount: -1 // execute job once in 5 seconds } def execute() { println "hai!!!"+new Date()// execute job } } And

I'm getting error 404 while trying to access my spring boot app on Amazon Elastic Bean Stalk

不羁的心 提交于 2019-12-01 14:34:09
问题 I developed a spring boot application and I've put the following entries in src/main/resources/application.properties : spring.mvc.view.prefix: / spring.mvc.view.suffix: .jsp server.port=5000 Now when I start it ( mvn clean spring-boot:run ) locally, I'm getting the output Tomcat started on port(s): 5000 (http) and the app is accessible in the browser under http://localhost:5000/welcome . I created a Java instance in Amazon Elastic Bean Stalk, I've uploaded war , I even opened the port 5000

Including Liberation .ttf fonts in a grails war?

淺唱寂寞╮ 提交于 2019-12-01 13:49:01
How do I package the liberation fonts with my grails war? The fonts may not be available on the servers I'm deploying to, and I need the fonts for my reporting system. How do I include the fonts in the war such that they're on the classpath and available to the JVM? If you're using them for jasper-reports explicitly, then you can just do this. grails-app/conf/jasperreports_extension.properties net.sf.jasperreports.extension.registry.factory.simple.font.families=net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactory net.sf.jasperreports.extension.simple.font.families

How to expand war in Spring Boot's embedded tomcat?

痴心易碎 提交于 2019-12-01 13:43:56
I have a war archive with a web application. I want to start that application within my Spring Boot application. I therefore followed the advice from that question : @Bean public EmbeddedServletContainerFactory servletContainerFactory() { return new TomcatEmbeddedServletContainerFactory() { @Override protected TomcatEmbeddedServletContainer getTomcatEmbeddedServletContainer(Tomcat tomcat) { try { tomcat.addWebapp("blog", "/tmp/roller.war"); } catch (ServletException ex) { throw new IllegalStateException("Failed to add webapp", ex); } return super.getTomcatEmbeddedServletContainer(tomcat); } };

How to Exclude directory and its contents in gradle war

隐身守侯 提交于 2019-12-01 13:16:22
I am using gradle war plugin, I am trying to exclude some directories inside WEB-INF directory while packing a war, but the excludes don't seem to work. This is what I have war { webInf { from 'src/main/config' } exclude('metadata/**') } Any solution on this ? To exclude a folder named metadata contained in WEB-INF use the following code in your build.gradle file: war.rootSpec.exclude("**/WEB-INF/metadata/") or depending on your coding style you could also use: war { rootSpec.exclude("**/WEB-INF/metadata/") } This link on the gradle discussion forum may also be of help Are you looking for

Docker Image of Jersey Web Application

倾然丶 夕夏残阳落幕 提交于 2019-12-01 13:04:42
问题 I'm trying to create a Docker image from my Jersey web application running on a Tomcat server. I'm developing on a Windows 7 machine. I have deployed the web application on a local Tomcat 8.0.14 application server on my development machine and everything works as expected. To create the Docker image I put the following Dockerfile. in the same directory as the my-web-app.war file. FROM tomcat:8.0-jre8 ADD /my-web-app.war /usr/local/tomcat/webapps/ CMD ["catalina.sh", "run"] After that I'm

deleting plugins views (gsp) when building the war

本小妞迷上赌 提交于 2019-12-01 12:57:18
We are using various plugins in our grails application (like logging, spring security core, ui, acl and many others). Now these plugins come with default gsps (in the views folder of each plugin). I want to build a WAR without including the views of any plugin. So when the war is built right now it creates the plugins folder which contains views folder which come by default with the plugin, these views are introducing a lot of vulnerabilities and so I want to exclude the plugins views. I am trying this right now in BuildConfig.groovy like below: grails.project.dependency.resolution = { grails

Including Liberation .ttf fonts in a grails war?

帅比萌擦擦* 提交于 2019-12-01 11:47:45
问题 How do I package the liberation fonts with my grails war? The fonts may not be available on the servers I'm deploying to, and I need the fonts for my reporting system. How do I include the fonts in the war such that they're on the classpath and available to the JVM? 回答1: If you're using them for jasper-reports explicitly, then you can just do this. grails-app/conf/jasperreports_extension.properties net.sf.jasperreports.extension.registry.factory.simple.font.families=net.sf.jasperreports

AutoDeploy a WAR file found in a subfolder of appBase

会有一股神秘感。 提交于 2019-12-01 11:37:05
I have a third party web application which I would like to deploy to a Tomcat 5.0 server via an installer. AutoDeploy is set to true. However, the application consists of more than one WAR file. If I put the WARs under /webapps directly, they work like a charm. However, I would like to expand them under /webapps/myapp/..and here the expanded WAR directory... This way they do not get AutoDeployed. Can somebody suggest what I need to configure for this to work? As this page suggests, you can place two XML files into $CATALINA_HOME/conf/[engine_name]/[host_name] directory (e.g. $CATALINA_HOME