war

Tomcat failing to deploy .war

放肆的年华 提交于 2019-11-27 17:24:51
问题 I'm trying to follow this tutorial on creating a simple REST web service, however I get to deploying it on tomcat and it throws an exception: FAIL - Application at context path /restful could not be started FAIL - Encountered exception org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/restful]] I've looked around for a solution and found this question and this one and they make me think that it's a servlet

Executable war file that starts jetty without maven

依然范特西╮ 提交于 2019-11-27 16:39:55
I'm trying to make an "executable" war file ( java -jar myWarFile.war ) that will start up a Jetty webserver that hosts the webapp contained in the WAR file I executed. I found a page that described how to make what I'm looking for: However, following that advice along with how I think I'm supposed to make an executable jar (war) isn't working. I have an Ant task creating a WAR file with a manifest that looks like: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.1 Created-By: 1.5.0_18-b02 (Sun Microsystems Inc.) Main-Class: Start The contents of the WAR file look like: > Start.class > jsp >

Spring-Boot Logging configuration when deployed as .war

二次信任 提交于 2019-11-27 16:01:38
问题 I have a simple spring-boot application being packaged as .war file capable of being deployed to an external Tomcat container. I have a logback.xml (below) in the classpath (/WEB-INF/classes), however, when deployed to Tomcat the log is not written to the file. <?xml version="1.0" encoding="UTF-8"?> <configuration> <include resource="org/springframework/boot/logging/logback/base.xml"/> <logger name="org.springframework.web" level="DEBUG"/> </configuration> 回答1: I've been struggling with what

Skinny WAR, libraries in EAR: “struts-tags not found” error

一曲冷凌霜 提交于 2019-11-27 15:24:09
In a Java EE project, I moved all the libraries from the WAR/WEB-INF/lib to the EAR/lib . Opening a JSP, now I get this error: Struts has detected an unhandled exception: Messages: File "/struts-tags" not found File: org/apache/jasper/compiler/DefaultErrorHandler.java Line number: 51 Stacktraces org.apache.jasper.JasperException: File "/struts-tags" not found ........... ........... How to resolve this problem ? Andrea Ligios Moving the libraries from the WAR to the EAR may be very useful, e.g. if you have more than one WAR* inside one EAR, to avoid redundancy of libraries. * Note: With

Server is not connected when trying to deploy with intellij

你离开我真会死。 提交于 2019-11-27 14:33:49
问题 I am trying to build, deploy and debug my webapp inside intellij. I have setup my tomcat using this answer and I was able to get the server running. The issue is that my webapp is not being deployed, though it is defined in the deployment tab. I am getting the following error: server is not connected. Deploy is not available If I copy the war and start the server everything works Ok. With ports 8080 and 8000. What am I doing wrong? Just in case it is somehow related, the project is build with

JBoss5: Cannot deploy due to java.util.zip.ZipException: error in opening zip file

旧城冷巷雨未停 提交于 2019-11-27 13:44:11
I have a web client and a EJB project, which I created with Eclipse 3.4. When I want to deploy it on Jboss 5.0.1, I receive the error below. I searched a lot but I wasn't able to find a solution to this. 18:21:21,899 INFO [ServerImpl] Starting JBoss (Microcontainer)... 18:21:21,900 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221) 18:21:21,900 INFO [ServerImpl] Bootstrap URL: null 18:21:21,900 INFO [ServerImpl] Home Dir: /Applications/jboss-5.0.1.GA 18:21:21,900 INFO [ServerImpl] Home URL: file:/Applications/jboss-5.0.1.GA/ 18:21:21,901

create a .war file from gwt-project

别说谁变了你拦得住时间么 提交于 2019-11-27 13:34:04
问题 How do I create a .war-file from my gwt-project in eclipse? 回答1: I always use Ant build file, so the project gets compiled and packaged as a war with one click. Add an xml-file to your project with the following content: <project name="test" basedir="." default="default"> <property name="src.dir" value="src" /> <property name="build.dir" value="war" /> <path id="compile.classpath"> <fileset dir="${build.dir}/WEB-INF/lib"> <include name="**/*.jar" /> <include name="**/*.xml" /> </fileset> <

How to unpackage and repackage a WAR file

删除回忆录丶 提交于 2019-11-27 11:40:22
I have a WAR file. I would like to open it, edit an XML file, remove some jars and then re-package it. I used WINRAR to open the WAR file and I removed some Jars and did an 'Add to Archive' in WinRar and created a WAR. When I deployed the WAR in jboss folder, I got an exception. 16:05:14,316 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."myapplication.war". STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."myapplication.war".STRUCTURE: Failed to process phase STRUCTURE of deployment

Deploy Spring Boot to Tomcat

限于喜欢 提交于 2019-11-27 11:08:12
So I am new to Spring - so I thought I would try Spring Boot I am using a Maven to build - I set up a view requests, when I run it as "App" looks like it starts tomcat up itself and i have a service at default 8080 port, so when I call localhost:8080/service it's all good. However when i try to package it up as a WAR to deploy to a server it doesn't work So i thought i would go back to basics and deploy it onto my tomcat server locally and see what happens So first off nothing happened - 404 - did a bit of googling at found out i need to include a web entry point like this - here's my main

In maven - how to rename the output .war file based on the name of the profile in use

青春壹個敷衍的年華 提交于 2019-11-27 10:46:54
问题 I have three profiles in my pom.xml for our application... dev (for use on a developer's) qa (for use on our internal qa server) prod (production). When we run our maven build all three profiles ouput a war file with the same name. I would like to output $profilename-somearbitraryname.war Any ideas? 回答1: You've answered yourself correctly: <profiles> <profile> <id>dev</id> <properties> <rp.build.warname>dev</rp.build.warname> </properties> </profile> <profile> <id>qa</id> <properties> <rp