war

can't deploying War file : error in opening zip file

梦想与她 提交于 2019-12-20 06:41:59
问题 I'm working on a web application based in java which is correctly running in local with Jetty but I can't deploy a War version on a linux server with Tomcat. I get in the Catalina.out file : error in opening zip file. I read a lot of topics about this error (permissions, corrupted jar files...) but none helps me. How to find more explanations or details about this error ? Here is the stack trace : 18-Jan-2016 10:39:01.036 INFO [main] org.apache.catalina.startup.Catalina.load Initialization

<security-constraint> <url-pattern> and the * character within web.xml

不羁岁月 提交于 2019-12-20 05:10:26
问题 Useing Spring for Security, I can get the program running using the following code. <intercept-url pattern="/web/admin**/**" access="ROLE_ADMIN" requires-channel="https"/> <intercept-url pattern="/web/**/" access="ROLE_USER,ROLE_ADMIN" requires-channel="https"/> I am trying to do this within a web.xml currently. Using JBOSS to deploy a .war file. Below is what I have, The url-pattern is what is causing me the problems in the first security-constraint. The pages are located at, and named /web

Can not build war from grails project

我的未来我决定 提交于 2019-12-20 04:29:10
问题 I'm building Grails (2.4.4) project and I faced very strange problem: I can 'run-app', I can 'compile' it but I can not 'war' or 'run-war' it. There is a problem with Enum class (AlertType) from src/groovy directory when importing it to domain class (Alert): | Compiling 258 GSP files for package [myProject]. | Error WAR packaging error: startup failed: file:/home/me/workspaces/workspaceGrails/myProject/grails-app/domain/com/example/alert/Alert.groovy: 4: unable to resolve class com.example

Exclude provided jackson version from JBoss 7 EAP

痞子三分冷 提交于 2019-12-20 04:18:11
问题 I am trying to use a newer version of Jackson as JBoss 7 EAP delivers. To solve my issue I have created a jboss-deployment-structure.xml file which is contained in my war deployment. <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2"> <deployment> <exclusions> <!--<module name="com.fasterxml.jackson.core.jackson-core" slot="main" />--> <!--<module name="com.fasterxml.jackson.core.jackson-annotations" slot="main" />--> <module name="com.fasterxml.jackson.core.jackson

How to deploy .war files in Plesk Onyx 17.8 despite no longer supported TomCat?

南楼画角 提交于 2019-12-20 03:39:34
问题 Up to and including version 17.5 Plesk Onyx came with a Tomcat installation, which is no longer supported from version 17.8. Thus no .war files can be deployed and executed anymore. A downgrade recommended by Plesk is not expedient in my eyes, because of the near end of life and security concerns. How can I run Java code on a Plesk-managed server? 回答1: 1. Idea Use a Tomcat Docker container instead and deploy your .war file in a mapped Docker volume. 2. Solution Install the Plesk extension

Seeing contents of war file without extracting

回眸只為那壹抹淺笑 提交于 2019-12-20 01:09:32
问题 I created a simple web application and deployed in Tomcat using the admin console of Tomcat. Now, this war files gets stored in tomcat location under webapps directory. Is there a way to see the contents of this war without extracting? I know we can see the contents of war file by extracting using jar -xvf ; however is there any tool/mechanism by which to see the contents of war files without extracting it? Thanks for your time! 回答1: The t option to the command line jar program will list the

Spring boot war file deploy on Tomcat

自闭症网瘾萝莉.ら 提交于 2019-12-19 21:46:38
问题 I use Spring Boot 1.2.4.RELEASE with gs-rest-service source file. I got: 127.0.0.1 - - [18/Jun/2015:09:59:25 +0300] "GET /gs-rest-service-0.1.0/ HTTP/1.1" 404 1021 There are no other exceptions in Tomcat logs. I have read related questions, but my test doesn't run. Spring Boot War deployed to Tomcat I have read howto-create-a-deployable-war and Packaging executable jar and war files. Maybe I miss something. My source: 1.pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http:/

Why no option to import a WAR file into Eclipse?

。_饼干妹妹 提交于 2019-12-19 18:29: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? 回答1: Your version of Eclipse is Eclipse IDE for Java Developers . Try download

How to Exclude directory and its contents in gradle war

て烟熏妆下的殇ゞ 提交于 2019-12-19 11:38:11
问题 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 ? 回答1: 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("**

Eclipse WAR with 2 projects?

时光毁灭记忆、已成空白 提交于 2019-12-19 08:57:22
问题 I am trying to export a WAR file from Eclipse. I have a "Dynamic Web Project". But I need classes created for two other projects, one a plain Java project, the other another web project. So in the Build Config I told it to add the other projects and on the "Order and Export" page I clicked the boxes to export the second and third projects. In runs fine within Eclipse, apparently finds the files from the other projects with no problem. But when I export, only the files from the first project