war

Displaying version and date of build in the xhtml page

被刻印的时光 ゝ 提交于 2019-12-04 13:18:24
问题 I want to display the build version and build date on the footer of a JSF application. The pages are XHTML. I'm looking for ways to get the information from pom.xml or other artifacts. I found the following that uses maven-replace plugin. http://www.vineetmanohar.com/2010/09/how-to-display-maven-project-version-in-your-webapp/ Are there any other techniques you use? I'm looking for something like this with JSF - Displaying the build date 回答1: One approach that will work: use Maven filtering

Eclipse: Have multiple Dynamic web projects contribute to a single war file?

余生长醉 提交于 2019-12-04 06:48:20
I am in a situation where I basically want to be able to have a web project in Eclipse where the WebContents folder is merged from multiple projects instead of only a single dynamic web project. If I have "a.jsp" in project A, and "b.jsp" in project B, I would like to end up with a single web application in the web container where "a.jsp" and "b.jsp" sit next to each other in the same folder. It would be perfect if all files, not just the jsp-files, could be merged like this. This is to be able to have a core version of our application but being able to handle customer specific changes easily.

Fix maven JSTL 1.2.1 dependency so maven-war-plugin doesn't package JARs that offend Tomcat 7

被刻印的时光 ゝ 提交于 2019-12-04 03:54:46
问题 My setup: jdk 7, Tomcat 7.0.29, ,Eclipse Juno (with m2e[Maven 3.0.4 embedded], m2eclipse-wtp) I have a Dynamic Web Project with this JSTL dependency: <dependency> <groupId>org.glassfish.web</groupId> <artifactId>javax.servlet.jsp.jstl</artifactId> <version>1.2.1</version> </dependency> When I mvn package and deploy on Tomcat, I get these non-fatal messages in the log that don't stop my app from deploying: validateJarFile(...\WEB-INF\lib\jsp-api-2.1.jar) - jar not loaded. See Servlet Spec 2.3,

Running a web application (WAR) with embedded jetty server

给你一囗甜甜゛ 提交于 2019-12-04 03:53:04
I have made a very basic web application that has only one html page. I exported it as a war. Now I created an embedded jetty server. public class SimplestServer { public static void main(String[] args) throws Exception{ Server server = new Server(8000); WebAppContext webapp = new WebAppContext(); webapp.setContextPath("/"); webapp.setWar("C:\\Users\\User\\Desktop\\jetty\\JettyWar.war"); server.setHandler(webapp); server.start(); server.join(); } } I created a jar for this embedded server. But when I try to run my web application through the embedded server,I get the following error. C:\Users

Can I make a WAR depend on a JNDI entry in JBoss 5.1?

≯℡__Kan透↙ 提交于 2019-12-04 03:44:09
问题 As part of an upgrade from JBoss 4.0.4 to 5.1, I am trying to get a WAR to deploy after an EAR is successfully deployed. JBoss 5.x does not support PrefixDeploymentSorter like 4.x did, which means that I have to use <depends> in the WAR's jboss-web.xml. It seems I cannot depend on the EAR itself, so I pick the last deployed EJB instead. This EJB provides a JNDI entry that the WAR needs. Here's the EJB as it deploys when the WAR is absent from the deploy directory: 2010-03-25 10:47:30,348 INFO

Share Java classes between war files in Tomcat?

南笙酒味 提交于 2019-12-04 03:38:10
问题 I am using Tomcat 7 as a servlet container and I have two war files (two projects in Eclipse). The problem is, that I want to share classes between both deployed war files. But this is not possible with Tomcat / Servlet specifications as far as I know. Both deployed web applications seems to be are isolated from each other. So I read, I am a newbie, from JBoss as an application server in which I can deploy ear files (so I can put multiple war files into it) and then I can share classes

Grails quartz plugin is not working when deployed in Tomcat

六月ゝ 毕业季﹏ 提交于 2019-12-04 03:03:42
问题 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:

Spring boot war doesn´t work on Jboss 7.1

折月煮酒 提交于 2019-12-04 02:15:17
问题 I´m trying to deploy a Spring boot application on Jboss. I follow this tutorial for convert my jar in to a war file. But when i try to run the application on Jboss it´s give me this error: 17:02:31,462 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ldap-service-1.0-SNAPSHOT]] (MSC service thread 1-2) Exception starting filter applicationContextIdFilter: java.lang.InstantiationException: org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration

Java Play 2 - Deployment

心不动则不痛 提交于 2019-12-03 21:58:51
Updated 08.18.2012 I am using Play 2.0.2 and I want to deploy my app to Amazon Webservices. I think the easiest way to do this is via Elasticbeanstalk. I used Play2war to package my app https://github.com/dlecan/play2-war-plugin/ I was able to package it with play war According to the usage guide of play2war, I renamed my file to ROOT.war because i used Linux 32bit Tomcat7. I also used the servlet 3.0 as described in the tutorial on play2war. (tomcat 7 -> servlet 3.0). The file size is 31mb. Every time I use Elasticbeanstalk, I get the same log. 2012-08-18 00:25 GMT+0200 WARN Environment

Deploying a WAR in Tomcat / Eclipse

不打扰是莪最后的温柔 提交于 2019-12-03 17:45:58
问题 I use Tomcat 6.0 and Eclipse 3.0 under Linux and I try to deploy a WAR in Tomcat. The problem is that the server is managed by Eclipse and I have some Eclipse project deployed. I tried to modify the server.xml file then launch Tomcat via Eclipse but it doesn't work: Could not load the Tomcat server configuration at /Servers/Tomcat v6.0 Server at localhost-config. The configuration may be corrupt or incomplete. I tried to extract the war in the webapps directory but the webapp is still