war

How to build and deploy war file of e4 RAP application with tycho

隐身守侯 提交于 2019-12-12 04:23:49
问题 I have an e4 RCP product which I want to deliver a e4 RAP application for. Thus, I added a new OSGi bundle which contributes the following implementation of the org.eclipse.rap.rwt.application.ApplicationConfiguration interface, which is declared in the contribution.xml in OSGI-INF folder: public class BasicApplication implements ApplicationConfiguration { public void configure(Application application) { Map<String, String> properties = new HashMap<String, String>(); properties.put(WebClient

grails file uploads management in wars

限于喜欢 提交于 2019-12-12 04:23:04
问题 I have developed a grails app which has user file uploads (docs, etc..), they are stored in the relative folder "web-app/upload". My question is that I do not know what is the best way to perform automatically war deployments and keep this folder. Because when I redeploy in Tomcat the whole app folder is deleted and all the files are deleted. Additionaly I need a generic configuration fron set an external location from this Files Have you found a solution for that? P.D.: If I use System

what is the right path to refer a jar file in jpa persistence.xml in a web app?

馋奶兔 提交于 2019-12-12 04:12:51
问题 persistence.xml looks like this: <persistence-unit name="testPU" transaction-type="RESOURCE_LOCAL"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <non-jta-data-source>jdbc/test</non-jta-data-source> <jar-file>../../lib/app-services-1.0.jar</jar-file> <exclude-unlisted-classes>false</exclude-unlisted-classes> </persistence-unit> It is a web project, so the deployment unit is a war file. The jar file I tried to refer is in WEB-INF/lib/ folder , persistence.xml is in WEB-INF

How to create a war file for my java web application project from terminal without using eclipse

对着背影说爱祢 提交于 2019-12-12 03:39:18
问题 I have a java web application project (maven) that I want to serve on a tomcat server. I want to create a .war file from it so then I can place it in the webapps directory.I know that from eclipse I can to do it by the export but I need to do it through terminal. also I have tried the jar cvf example.war * command but when I put the war file inside the webapps directory tomcat cant read my java application. Can someone please guide me on how to create a war file from terminal that tomcat can

Load different stylesheets when packaging a war file with Grails

冷暖自知 提交于 2019-12-12 02:56:50
问题 I want to package a Grails application for different brands. While generating a war file, I want to pass some custom parameter that refers to a certain brand and styles the application by loading the stylesheet for the brand. I read online and one approach I found was with maven. I tried working with maven but I am stuck while initially compiling the application. The error is Failed to execute goal org.grails:grails-maven-plugin:2.2.1:maven-compile (default-maven-compile) on project

Failed to process phase PARSE of deployment

旧时模样 提交于 2019-12-12 02:03:33
问题 I am trying to deploy LBatch.war on wildfly-8 by putting the war file in the deployment folder of the server, then in Netbeans I start the server and ends up the following exceptions. 14:39:53,810 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-10) MSC000001: Failed to start service jboss.deployment.unit."LBatch.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."LBatch.war".PARSE: JBAS018733: Failed to process phase PARSE of deployment "LBatch.war" at

Prefer package within prefer-application-packages

雨燕双飞 提交于 2019-12-12 01:55:27
问题 Is there a way to force com.sun.jersey.* in the WAR to be used over org.apache.* in the WAR? Or is this done automatically based on the order? <prefer-application-packages> <package-name>com.sun.jersey.*</package-name> <package-name>org.apache.*</package-name> <package-name>antlr.*</package-name> <package-name>javax.ws.rs.*</package-name> </prefer-application-packages> 回答1: This question doesn't tell us what you are actually trying to do. However, I'm guessing that you are trying / hoping to

How do I specify relative file paths in restful web applications

拟墨画扇 提交于 2019-12-12 01:51:52
问题 Deployment of my restful application will be "exploded" from a single WAR file. All file paths will need to be relative and not absolute (Nesting from a single WEB-INF directory). What is the convention for specifying these files (such as .properties files .xml files etc)? Example of wrongly specifying: file f = file(/usr/home/username/.../WEB-INF/file.something); Example of what I'm trying to achieve: (From Controller/Servlet) file f = new file(file.something); 回答1: You should NEVER specify

Exclude dependency from Application Server auto deployment

ⅰ亾dé卋堺 提交于 2019-12-12 01:37:49
问题 I've got EJB object which requires some interfaces from dependency (maven - jar). When I deploy it in .ejb in .ear everything works. I really don't need ear so I wanted to use .war with this EJB object. However during deployment it appeared that my dependency has some classes annotated with @Webservice. This classes also requires other dependencies which I don't want to use in my project, so during deployment I get no class def found exception. Is there any way to stop this auto-deployment of

Ruby: War card game, dealing cards to players

孤街醉人 提交于 2019-12-11 23:35:50
问题 So I am not asking anyone to solve this for me, but I do need some help. I am pretty new to Object-Oriented Programming, but it's starting to make sense for me. Below is the code I have so far for the War card game. I am not concerned with the Suits at the moment, though I do know how to add them in if need be. Basically, my next step is to figure out how to deal 26 cards to each player. What this code does now is shuffles the deck using the Fisher-Yates algorithm, and outputs a string