war

Gradle get 'sudo' rights

旧街凉风 提交于 2019-12-11 03:17:35
问题 I have next problem : I need execute some deployment stuff on server using Gradle, but for this Gradle should have 'root' access on target deployment server. I have password for 'sudo', but I don't know how to insert it in server. Is there any way to get 'sudo' rights from Gradle task? Thanks in advance. 来源: https://stackoverflow.com/questions/26467754/gradle-get-sudo-rights

JPA entities as a shareable jar not working in a WAR file unde Tomcat 7.0.27

房东的猫 提交于 2019-12-11 02:37:42
问题 i tried to share my entities in a JPA 2.0 project in eclipse Juno, ´cause i´m creating a test project and i need to access then there to make my tests and if i create any other project a can reuse those entities. The biggest problem is that hibernate ( 4.1.9 ) can find my jar in a relative path, but the most strange is that in my test project using only Spring 3 hibernate read my entities jar and hbm files perfectly. But when i try to do the same with the real project using tomcat 7.0.27 it

Eclipse: including libraries with war file project

梦想的初衷 提交于 2019-12-11 01:55:40
问题 I use the jstl library in my project, but as an external jar. After exporting my project to a .war file, these libraries are not included and I'm getting errors. How do I make sure the library is included in my war file? Also, an unrelated question, if an ear file would have only one war module, is there a point to making it an .ear instead of .war 回答1: If you have put the jstl jars inside WebContent directory they will be packed in your WAR file. But if you are loading them from somewhere

http url for js file inside a war?

╄→гoц情女王★ 提交于 2019-12-11 01:37:18
问题 Suppose a WAR layout like so: foo.war -->/WEB-INF -->/classes (..) -->/js -->bar.js -->index.jsp -->web.xml Now suppose the WAR's virtual directory is /blah on server example.com (i.e. http://example.com/blah). What is the HTTP URL of bar.js , one that would be used in a <script src=""> tag that index.jsp might serve up? http://example.com/blah/js/bar.js doesn't seem to be working. 回答1: There is no URL that will point to this. Everything within WEB-INF is not exposed to the outside world.

Reduce war size for frequent redeployments(uploads) to a remote server

自闭症网瘾萝莉.ら 提交于 2019-12-11 01:18:15
问题 While development I need to frequently update my web app source code & deploy the updated war to a remote Tomcat server. Uploading a big war(25MB) takes too long(around 30 min) on my connection which is very unproductive. Is there any way I could reduce the war size ? There are a lot of external dependencies in my project. Could I deploy just the changes(may be dependencies remain intact) ? 回答1: What you are asking ( Could I deploy just the changes? ) cannot be done. There are other things

Does Websphere explode WARs and/or JARs when they get deployed?

只愿长相守 提交于 2019-12-11 00:52:19
问题 When we deploy WAR into tomcat it explode WAR, while deploying WAR in websphere dose it explode the WAR as well. because I have deployed WAR into websphere but it dose not exploded my WAR and if the WAR is not exploded the file resolver doe not works. 回答1: WebSphere Application Server always explodes the wars. You should take a look under profile-directory/installedApps/your-management-cell-name/ . The WAR will be wrapped inside EAR for deployment, and under the EAR directory you will find

How to create WAR file in eclipse? [duplicate]

橙三吉。 提交于 2019-12-11 00:42:23
问题 This question already has an answer here : How to make war file in Eclipse [duplicate] (1 answer) Closed 5 years ago . I have maven based project. I want to create WAR file. I have eclipse (Version: Helios Service Release 2). *What are the steps to create WAR file? *Where to give WAR name? 回答1: If your project is maven-based project then : 1)Right click on your project. 2) Choose Run-as 3) Select Maven install 4) Check the console for Build failure or success . Your WAR file of a project is

Exclude jar from war Maven 3

梦想的初衷 提交于 2019-12-11 00:41:44
问题 We need to exclude few jars from war ...we are using maven 3 in weblogic. I tried <packagesourceexludes>...and <warsournceexludes..> but didn't work. Any other way to do this. Thanks Vijay 回答1: <dependency> <groupId>xerces</groupId> <artifactId>xerces</artifactId> <version>2.4.0</version> <scope>provided</scope> </dependency> So doesn't need to exclude from every dependency.. This solved my problem...Thanks for all your answer... 回答2: You need to use <packagingExcludes> as documented here.

spring boot build a war file deploy into an external container, error:NoSuchBeanDefinitionException: No qualifying bean of type

半城伤御伤魂 提交于 2019-12-11 00:32:51
问题 Trying to build a war file that is both executable and deployable into an external container and I get this error: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.jusfoun.test.service.TestService com.jusfoun.test.controller.TestController.testService; nested exception is org

How to overwrite war files during Tomcat hot deployment?

早过忘川 提交于 2019-12-10 23:19:51
问题 I am using Tomcat 7.0 for my web application deployment ... Still now i used to stop the server and delete the old war file and paste the new war file and then start the server ... Now I heard about hot deployment service and willing to do hot deployment for my website ... I searched various questions in stack overflow and tried according to the answers but its not working .. I have a war file as adweb.war and made some updates and produce the same adweb.war to be overwritten in the WebApps