war

Hudson continuous integration server: how to see Windows mapped directories that are visible to Ant?

本秂侑毒 提交于 2019-12-06 13:30:01
Using Hudson, Ant 1.7, Tomcat 6.20, JDK 1.6 and JDK 1.5; all on Windows boxes. My Ant build script for a WAR file uses JARs stored on a remote server. The directory path to the remote server is mapped as a network drive in Windows. A build.properties file is used to specify the paths to the JAR dependencies. When building with Ant, either at command line or in Eclipse, the WAR builds and deploys successfully. Example from build.properties: lib.log4j=S:/Support/JARs/log4j-1.2.15.jar In the above entry, the mapped network drive in Windows is the "S" drive. I am currently evaluating Hudson on my

Is it possible to read a properties file from all .war files deployed in a JBoss container

风流意气都作罢 提交于 2019-12-06 12:12:12
I've managed to deploy a .war to the Jboss web container containing and read the pom.properties located under /META-INF/groupid-dir/artifactid-dir/ To access the file I've used the following code inside a JSP in the same war: ServletContext servletContext = getServletConfig().getServletContext(); InputStream in = servletContext.getResourceAsStream("META-INF/maven/groupid-dir/artifactid-dir/pom.properties"); This works just fine. But I want to be able to dynamically read pom.propertes from ALL .war deployed in the container. Is this possible or do I only have access to the context for the one

ant target to deploy war to tomcat7/webapps

末鹿安然 提交于 2019-12-06 11:31:42
I want to deploy the just created *.war (exploded) to ${TOMCAT_HOME}/webapps using ant target. CONFIGURATION My tomcat version is 7.0.37 and tomcat-users.xml is : <role rolename="tomcat"/> <role rolename="role1"/> <role rolename="manager-gui"/> <user username="tomcat" password="tomcat" roles="tomcat,manager-gui"/> <user username="both" password="tomcat" roles="tomcat,role1,manager-gui"/> <user username="role1" password="tomcat" roles="role1"/> war.properties is : # War Build Properties package.dir=${basedir}/package war.exploded.dir=${deploy.dir}/war-ex # --------- Tomcat Settings ------------

JavaEE Wildfly EJB not injected, war-only project

╄→尐↘猪︶ㄣ 提交于 2019-12-06 11:23:13
I'm new to JavaEE and I created a "hello world" project, using Hibernate as JPA provider, build using gradle and deployed to Wildfly . I want to use @Stateless bean for database-aware class, that will do all operations on DB, and then inject it to all "JAX-RS" classes, that contain REST endpoints. Database class: @Stateless public class DatabaseManager { @PersistenceContext EntityManager entityManager; public DatabaseManager() { } public String sayHello() { // do some db-stuff return "EHLO"; } } REST class: @Path("/") @SessionScoped public class RestMainEndpoint implements Serializable { @EJB

change a config.properties file in a jar / war file in runtime and hotdeploy the changes?

柔情痞子 提交于 2019-12-06 09:11:07
change a config.properties file in a jar / war file in runtime and hotdeploy the changes ? my requirement is something as follows, we have a "config.properties" in a jar/war file , i have to open the file through a webpage and after the user has made necessary changes to it, i have to update the "config.properties" in jar/war file and hot deploy it. can we achieve this feat ? if so can you please point me to relevant sites/documents so that i can jumpstart on this. I will strongly recommend your architecht rethink this solution. What you describe should be done through JNDI or a similar

Externalizing configuration in Spring Boot with multiple applications running in the same container

久未见 提交于 2019-12-06 08:26:35
I'm building multiple Spring Boot applications which will be deployed on the same servlet container. But I'm having difficulties getting Spring Boot to work with externalized configuration files the way I want, and not like the framework wants. Situation: multiple Spring Boot applications will be deployed on a single servlet container (WAR file) the location of configuration files will be set via JVM property spring.config.location embedded deployment is not an option Problem: As the applications are deployed on the same JVM, the property spring.config.location has the same value for all

Remote upload using WLST

▼魔方 西西 提交于 2019-12-06 06:45:58
问题 I'm trying to perform remote uploading and deploying via WLST . I succeed to deploy applications already present in the path of the WebLogic server. But now, I would like to deploy one remotely available. Is there any possibility to upload WAR/EAR on the WebLogic server via WLST before deploying it? I'm running weblogic 12C. I tried with: java -cp wlserver/server/lib/weblogic.jar weblogic.Deployer -adminurl t3://WeblogicServer:7001 -user weblogic -password weblogic -deploy /tmp/HelloWorld.war

Grails Config: include another config file

梦想的初衷 提交于 2019-12-06 06:44:53
问题 I have in my main config something like: grails.config.locations = ["file:grails-app/config/Jawr.groovy"]. When running the application with grails run-app, everything is OK. But, on deployment (creating the war archive) this does not work anymore, as the file "Jawr.groovy" is not kept anymore on the filesystem (it should be only in the war). Do you have a solution for that? Hw do you include external files into the grails main configuration file? Thanks. 回答1: Okay, a few things here. First,

Simple build tool (SBT) package WAR

本秂侑毒 提交于 2019-12-06 06:06:21
I have a multiple project configuration. One of the projects needs to be build as a war file for future deployment. I used this sbt-plugin: https://github.com/JamesEarlDouglas/xsbt-web-plugin to build the war. However I need it to include depended projects as jars. In maven I included other modules as a dependency in my WAR module and they appeared eventually in the WAR:lib directory. It seems that sbt-web-plugin default behavior is not to include them What I mean is: This is a part of my parent.scala file lazy val dataPopulator = Project( "data-populator", file("data-populator"), settings =

Java Application using Https Connection:“Connection refused error”

帅比萌擦擦* 提交于 2019-12-06 06:01:11
I have created a jar for my JavaAppliaction.From this application I am connecting to servlet (I am passing name and password from swing to servlet) in the WebApplicaton(here I am just displaying name and password in the servlet). I am passing data over SSL connection(Https). It is working fine in my system.But when I tried to run jar in another system I am getting “Connection refused error”. Note:Running jar in another system which passes data over http connection is working fine. I have gone through this link which suggested me to create a “jssecacerts” file and paste it in $JAVA_HOME/jre/lib