war

how to I have two .war files within one .ear file?

北战南征 提交于 2019-12-01 06:03:34
问题 I use jboss 4.0.2 and i want to have two .war files within one .ear file . 回答1: I would have thought this was self-evident from the structure of the EAR's application.xml file, but here's an example of how it looks with two WARs: <?xml version="1.0" encoding="UTF-8"?> <application> <module> <web> <web-uri>/directory/of/war1</web-uri> <context-root>/war1</context-root> </web> </module> <module> <web> <web-uri>/directory/of/war2</web-uri> <context-root>/war2</context-root> </web> </module> <

SSL for specific pages/url-patterns in tomcat

♀尐吖头ヾ 提交于 2019-12-01 05:49:24
I recently configured tomcat 6 with SSL and client authentication, but the only way I could do it was modifying server configuration files (web.xml, server.xml). But as I don't have full control over the deployment server, I would like to configure everything just for some pages or url-patterns of my application without modifying the main configuration files. For example: Main server: Application1 -> HTTP Application2 -> HTTP MyApplication -> HTTPS If somebody knows how to do it, please tell me. The only way to get https going is to write the appropriate connector on the server.xml file under

Tomcat - want to clear cache of app being undeployed

笑着哭i 提交于 2019-12-01 05:34:33
I've got Tomcat6 running on my Ubuntu server 14.04 minimal platform and had deployed a .war file. However, things did not go right during the initial setup of the app and I'm trying to undeploy the app from tomcat manager. Unfortunately when I re-deploy the app and start it, the previous install comes up. How can I get a fresh install of the app? (I've also tried "reload" but no luck) Thanks in anticipation. In Tomcat you have a folder called "work". Go to <TOMCAT_HOME>/work/Catalina/<HOSTNAME> In this location you will find your application. Delete the application from this location and try

SSL for specific pages/url-patterns in tomcat

这一生的挚爱 提交于 2019-12-01 04:26:54
问题 I recently configured tomcat 6 with SSL and client authentication, but the only way I could do it was modifying server configuration files (web.xml, server.xml). But as I don't have full control over the deployment server, I would like to configure everything just for some pages or url-patterns of my application without modifying the main configuration files. For example: Main server: Application1 -> HTTP Application2 -> HTTP MyApplication -> HTTPS If somebody knows how to do it, please tell

How to run java class file inside the war file [duplicate]

时间秒杀一切 提交于 2019-12-01 04:06:40
This question already has an answer here: How do I run a class in a WAR from the command line? 9 answers i am having war file called Sample.war. in this war file i have the main class called "Maintest" .i want to run or execute the Maintest class from out side the war .how to do this War files are just Jar files with extra metadata. So, you should be fine to do: java -classpath application.war Maintest That will load the class Maintest from the war file application.war and run it Bojan Petkovic same answer as I posted here: How do I run a class in a WAR from the command line? Step 1: Unwrap

Why is maven-war-plugin failing for web.xml missing if I configured it not to fail on missing web.xml?

若如初见. 提交于 2019-12-01 03:57:19
Here's a challenge: why is this build failing? I have configured Maven's maven-war-plugin not to fail on an abscent web.xml file, it seems: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <executions> <execution> <id>prepare-war</id> <phase>prepare-package</phase> <configuration> <failOnMissingWebXml>false</failOnMissingWebXml> <archiveClasses>false</archiveClasses> <archive> <manifest> <addClasspath>true</addClasspath> <classpathPrefix /> </manifest> <manifestEntries> <Implementation-Build>${build.number}</Implementation-Build> <Implementation

Tomcat - want to clear cache of app being undeployed

醉酒当歌 提交于 2019-12-01 03:40:43
问题 I've got Tomcat6 running on my Ubuntu server 14.04 minimal platform and had deployed a .war file. However, things did not go right during the initial setup of the app and I'm trying to undeploy the app from tomcat manager. Unfortunately when I re-deploy the app and start it, the previous install comes up. How can I get a fresh install of the app? (I've also tried "reload" but no luck) Thanks in anticipation. 回答1: In Tomcat you have a folder called "work". Go to <TOMCAT_HOME>/work/Catalina/

spring-boot executable war keystore not found

吃可爱长大的小学妹 提交于 2019-12-01 02:43:42
问题 I build spring-boot executable war with ssl support. My application.properties file is: server.port = 8443 server.ssl.key-store = classpath:keystore.jks server.ssl.key-store-password = secret server.ssl.key-password = another-secret WAR file contains 'keystore.jks' file. But I get strange exception: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Could

Is there are way to patch jar files?

落花浮王杯 提交于 2019-12-01 02:29:48
Suppose I sent a large jar or war file to someone. Could I later just change one small section and send that to him? Suppose I just changed one class file. I recompiled the java for into a class file. Other then exchanging the new class file for the old class file it there anything else I would have to do? In java do you have to rebuild the entire jar/war file? Also, is there some open source package available for doing updates? The person receiving the class file could simply add that file to the jar as long as they know which directory to put it in. Be weary of signed jars, as noted in the

How to run java class file inside the war file [duplicate]

醉酒当歌 提交于 2019-12-01 01:31:18
问题 This question already has answers here : How do I run a class in a WAR from the command line? (9 answers) Closed 4 years ago . i am having war file called Sample.war. in this war file i have the main class called "Maintest" .i want to run or execute the Maintest class from out side the war .how to do this 回答1: War files are just Jar files with extra metadata. So, you should be fine to do: java -classpath application.war Maintest That will load the class Maintest from the war file application