war

how to implement unpackWARs tomcat 7

谁说我不能喝 提交于 2019-12-11 19:48:30
问题 Kind of a noob with tomcat 7, how do you implement this setting found here: http://tomcat.apache.org/tomcat-7.0-doc/config/host.html#Common_Attributes Trying to set unpackWARs to true so i dont have to manually unpack a war to deploy it, but have no idea where to do this. 回答1: This setting can be found in server.xml under your Tomcat 7 configuration directory. For example, on Ubuntu, this is /etc/tomcat7/server.xml , and the setting is part of the <Host> element: <Host name="localhost"

War deployment exception

无人久伴 提交于 2019-12-11 18:23:20
问题 I try to deploy a War on tomcat, but am getting exception as SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/DataProvider]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache

Glassfish v4 Transaction Manager not found

你说的曾经没有我的故事 提交于 2019-12-11 18:04:30
问题 I'm getting the following exception thrown when redeploying an application from IntelliJ to Glassfish v4: [2013-09-11T12:55:44.122+0300] [glassfish 4.0] [SEVERE] [] [javax.enterprise.system.core] [[ Exception while deploying the app [gtwcustreporter_war_exploded] : Exception [EclipseLink-23004] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.TransactionException Exception Description: Error obtaining the Transaction Manager Internal Exception:

How to call a Java method while deploying a WAR [duplicate]

一笑奈何 提交于 2019-12-11 17:48:35
问题 This question already has an answer here : Using special auto start servlet to initialize on startup and share application data (1 answer) Closed 4 years ago . How to call a Java method while deploying a WAR 回答1: It's not clear what you mean by "deploy". Is that the moment when the WAR file arrives on the app server? Maybe you gin something up with Ant. Is that when the app starts up? Maybe you can do it with a ServletContextListener. There's no mechanism for doing so built into any Java EE

Error 404 when I try to deploy my war on Jetty on Debian 9

天涯浪子 提交于 2019-12-11 17:31:42
问题 I'm trying to deploy my java web site on a Debian online server. For that, I install Jetty (following this : http://zetcode.com/java/jetty/install/) Jetty seems to be ok on the server because when I enter http://myipaddress:8080. I have the "Welcome to Jetty". Then, I use Filezilla to upload my war on the server. I compile my war with Eclipse and Maven : <groupId>com.example</groupId> <artifactId>test</artifactId> <packaging>war</packaging> <version>1.0-SNAPSHOT</version> <name>test</name> I

Jboss7 : Undertow Spring Boot throwing 404

拈花ヽ惹草 提交于 2019-12-11 16:04:15
问题 I'm developing a Spring boot application. I'm building a war file for JBoss My war is building correctly , I'm using *-war.original as deployment for JBoss the deployment seems fine But when I make call to controller, it's throwing a 404 With embedded sever it's working fine pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven

Cargo maven plugin - start goal ignores configuration, “run” works fine

非 Y 不嫁゛ 提交于 2019-12-11 12:26:29
问题 I want cargo maven plugin to start a Tomcat7 so i put into my pom: <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.2.0</version> <!-- minimal configuration to let adb run (mvn package org.codehaus.cargo:cargo-maven2-plugin:run) in a local tomcat --> <configuration> <containerId>tomcat7x</containerId> <containerUrl>http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.16/bin/apache-tomcat-7.0.16.zip </containerUrl> <configuration>

Error when exporting from JAXWS to WAR in Eclipse

怎甘沉沦 提交于 2019-12-11 10:50:33
问题 I am getting the following error when trying to export a JAXWS as a WAR in Eclipse: org.eclipse.core.commands.ExecutionException: Error exportingC:/Users/rmescalera/Desktop/WS-upshift.war at org.eclipse.jst.j2ee.internal.archive.operations.ComponentExportOperation.execute(ComponentExportOperation.java:150) at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl$1.run(DataModelPausibleOperationImpl.java:385) at org.eclipse.core.internal.resources.Workspace.run

Hit AppDeploymentException when deploy on WebSphere

荒凉一梦 提交于 2019-12-11 09:57:01
问题 I made the war file through eclipse IDE, and when deploy it to WebSphere 6.1, I hit the following error: The EAR file could be corrupt and/or incomplete. Make sure that the application is at a compatible Java 2 Platform, Enterprise Edition (J2EE) Level for WebSphere Application Server. AppDeploymentException: [null] java.lang.ClassCastException: org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl incompatible with org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile I had

Maven - Copy Some Dependency JARs into warSourceDirectory

一个人想着一个人 提交于 2019-12-11 09:22:14
问题 Can any Maven plugins copy one or more dependencies (although not all of them) of a .war project into its warSourceDirectory ( src/main/webapp )? I'm working on a Java web-app that will display an applet. I'd like the war project to pick the latest version of some jars (the applet's dependencies) and stick them in /src/main/webapp/ , to save me having to copy them around the place. I've thought about shading and uber-jar-ing the applet itself, but I'd like to split the jars up to save users