war

Grails rendering plugin does not render images when deployed

£可爱£侵袭症+ 提交于 2019-12-23 18:53:07
问题 I am generating a pdf using grails rendering plugin. When in development, I include images using tag with src to an image on server. It works fine, but not anymore when the app is deployed. The images just disappear. I am redering through a template, so when i call this template to in gsp, it is ok (ie i see the html version of the pdf with the images), bu when called in my controller using renderPdf, no images. Again only in deployed app (war), not in development. Any hints? EDIT: Under

Jar dependency - Application server classpath vs adding it to the application war itself

眉间皱痕 提交于 2019-12-23 18:08:49
问题 We have an installation of Weblogic 10.3.6. An application running on it needs the following jar com.oracle.ws.http_client_1.3.0.0.jar The above jar is located in the server bundle Oracle\Middleware\modules\com.oracle.ws.http_client_1.3.0.0.jar What's the right approach? Should this jar (appears to be a system library written by Oracle, not found on mvnrepository site) be added to the server classpath or should I add it to the application archive (war)?? Thanks. Update: Also the above jar

unwanted tar,zip,jar disributions in gradle build

白昼怎懂夜的黑 提交于 2019-12-23 15:38:38
问题 I am doing gradle build, which includes a number of projects. When i run gradle build command its generating unwanted bundles like tar,zip. So what should i do to exclude these tasks am using war plugin to generate war ( apply plugin: 'war' ). am also using following plugins apply plugin: 'spring-boot' apply plugin: 'org.asciidoctor.gradle.asciidoctor' apply plugin: 'war' am also using plugin asciidoctor UPDATE I have used distTar.enabled = false distZip.enabled = false To solve this, but

How To Deploy Web Application To cPanel with .war file?

一曲冷凌霜 提交于 2019-12-23 12:22:35
问题 I have made my web application and I would like to put it in internet. I have heard that a user can deploy a web application in cPanel by using .war file. I have been searching about this, any kind of tutorial or any information on how to do it. But there's none that actually tells you how to do it, you will find only tutorials on how to deploy on Tomcat or Glassfish. Am I missing some point here? How I can put my web application to internet once its packed as .war file? If I want to deploy

Executables in a war file

这一生的挚爱 提交于 2019-12-23 09:47:34
问题 We'd like to ship some helper scripts (shell scripts) as part of an application war. Unfortunately it appears like our build system (maven) discard the permissions on all files and the scripts end up without the executable bit set. Is it even possible to do that? Does the .war format support executable files? If yes: how could tell maven to keep the permissions/fix them somewhere in the process? 回答1: The problem is more likely that these bits are not supported in the underlying zip-format.

JavaMail not sending Subject or From under jetty:run-war

自古美人都是妖i 提交于 2019-12-23 07:27:37
问题 Has anyone seen JavaMail not sending proper MimeMessages to an SMTP server, depending on how the JVM in started? At the end of the day, I can't send JavaMail SMTP messages with Subject: or From: fields, and it appears other headers are missing, only when running the app as a war. The web project is built with Maven and I'm testing sending JavaMail using a browser and a simple mail.jsp to debug and see different behavior when launching the app with: 1) mvn jetty:run (mail sends fine, with

deploy java war file to IBM web sphere portal

筅森魡賤 提交于 2019-12-23 06:10:51
问题 I have java war file and i want deploy into IBM web sphere portal. Kindly tell me steps to deploy java war file Many Thanks 回答1: Portal runs on top of a WAS instance - you can just use the WAS Admin console to install the WAR as you would on any standard WebSphere environment. The link to access your Admin Console is dependent on the host, the port that admin console is bound to and the version of WAS you are running - so I can't tell you what it is. On WAS7 + Portal it is typically something

Recommended way to deploy a war-file to a Tomcat using Jenkins?

廉价感情. 提交于 2019-12-23 05:23:35
问题 I am looking for the golden way how to automatically (re)deploy a war -file myPortal.war onto a Tomcat server using Jenkins, assuming the Tomcat is running on another machine with a Tomcat-manager running. The relevant powershell build step within my current Jenkins job is the following: $user = "foo" $pass = "bar" $secpass = ConvertTo-SecureString $pass -AsPlainText -Force $ServerURL = $ENV:Server $Path = $ENV:WORKSPACE $credential = New-Object System.Management.Automation.PSCredential($user

How to generate war file using jenkins Build->Execute shell option?

风流意气都作罢 提交于 2019-12-23 05:12:47
问题 I am new to Jenkin and svn. I have commited the java project into repository. now how to generate the war file through shell option. What is Post-build Actions->Archive the Artifacts option, what input should i provide in "files to archive option" 回答1: How does your war now build from the command line? For example, if you use Ant, you might do: $ ant war If you use Maven, it'll be: $ mvn war That's the first thing you must know. Jenkins can automatically run an Ant build.xml file or run a pom

“Unexpected error running Liquibase: Unknown Reason” liquibase 3.3.5 and grails war file

為{幸葍}努か 提交于 2019-12-23 03:34:12
问题 This is the command I am running: java -jar /root/liquibase/liquibase.jar \ --driver=com.mysql.jdbc.Driver \ --logLevel=debug \ --changeLogFile=migrations/changelog.xml \ --classpath=/usr/share/tomcat7/lib/mysql.jar:/var/lib/tomcat7/webapps/myApp.war \ --url="jdbc:mysql://127.0.0.1:3306/mydb" \ --username=myuser \ --password=mypass \ --contexts=MYCONTEXT \ update this fails with the following unhelpful error message: Unexpected error running Liquibase: Unknown Reason SEVERE 9/9/15 2:23 PM: