contextroot

JBoss 7: how to change a WAR context root

空扰寡人 提交于 2019-12-18 13:16:53
问题 I have an application that is to be deployed in a WAR file (app.war). After deployment it is available from http://:8080/app I would like to have it being made available as something like http://:8080/secret/app I searched the documentation and for JBoss'es 5 and 6 this seems to be able to do with a jboss-web.xml file. I have tried it but with no luck. It seems that JBoss 7 just ignores the element inside jboss-web.xml. I don't know if this is relevant but this application has both JSF and

Define contextroot inside WAR file

非 Y 不嫁゛ 提交于 2019-12-18 04:03:43
问题 I have an automated deployment script to deploy multiple WAR files in WAS 7 . So, I would like to define contextroot inside the WAR file itself. It should automatically set to " ... -contextroot xxxx ..." from the file. How do I do that? I think, I need to add something with WEB-INF/ibm-web-bnd.xml . I dont know what to write in it. Pls help, thanks. 回答1: Create WEB-INF/ibm-web-ext.xml with these contents: <web-ext xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://websphere

Using the context-root from glassfish-web.xml in GlassFish 3

那年仲夏 提交于 2019-12-17 09:54:41
问题 We recently switched to Glassfish 3.1.2.2 and have several Web-Applications packaged as war files. At times the desired context-root for these applications differs from the filename. Back when we used Weblogic we achieved this by declaring the context-root in the weblogic.xml like this <context-root>path/to/our/App</context-root> We noticed that the same Tag exists in the glassfish-web.xml. But no matter what we define there, the server always determines the filename as the context-root. Now

Redirect context root in Weblogic

懵懂的女人 提交于 2019-12-14 03:01:45
问题 I have Spring Boot application which I deploy to Weblogic container. After it is deployed, I can access it using http://localhost:7001/my-application/ When I use http://localhost:7001/my-application - without trailing slash at the end, I'd like to redirect it to http://localhost:7001/my-application/ I know that Tomcat already has such feature as there is a flag you can change: /** * Whether requests to the context root should be redirected by appending a / to * the path. */ private Boolean

errors deploying WAR in root context on GlassFish 3.1

天大地大妈咪最大 提交于 2019-12-13 06:27:15
问题 I'm using GlassFish 3.1 on Mac. I did a clean GlassFish installation. I created a simple WAR with a index.jsp like so: <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>GlassFish JSP Page</title> </head> <body> <h1>Hello World!</h1> <p/> The current time is: <%= new java.util.Date().toString() %> <

Context root path not working in Jboss 7 ear

我是研究僧i 提交于 2019-12-12 04:19:15
问题 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.abc</groupId> <artifactId>MyProjectEar</artifactId><version>0.0.1-SNAPSHOT</version> </parent> <properties> <build.plugin.maven.ear.version>2.10.1</build.plugin.maven.ear.version> </properties> <artifactId>MyProjectEarModule<

Weblogic application context root is war file name instead of name specified in weblogic.xml

亡梦爱人 提交于 2019-11-30 15:15:20
问题 I have an application which I have deployed using Maven to Weblogic 10.3.6 . I have specified context root in weblogic.xml as <context-root>/myapps</context-root> The problem I am having is it is taking the war file name as context root instead of the name I have specified in weblogic.xml How can I change the context root instead of the name taking war file name as context root? Weblogic.xml <?xml version="1.0" encoding="UTF-8"?> <weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic

JBoss 7: how to change a WAR context root

给你一囗甜甜゛ 提交于 2019-11-30 13:36:39
I have an application that is to be deployed in a WAR file (app.war). After deployment it is available from http://:8080/app I would like to have it being made available as something like http://:8080/secret/app I searched the documentation and for JBoss'es 5 and 6 this seems to be able to do with a jboss-web.xml file. I have tried it but with no luck. It seems that JBoss 7 just ignores the element inside jboss-web.xml. I don't know if this is relevant but this application has both JSF and PrettyFaces. Does anyone know if this behavior is possible with JBoss 7? If so, how can it be done? I am

Define contextroot inside WAR file

落花浮王杯 提交于 2019-11-29 04:02:11
I have an automated deployment script to deploy multiple WAR files in WAS 7 . So, I would like to define contextroot inside the WAR file itself. It should automatically set to " ... -contextroot xxxx ..." from the file. How do I do that? I think, I need to add something with WEB-INF/ibm-web-bnd.xml . I dont know what to write in it. Pls help, thanks. Create WEB-INF/ibm-web-ext.xml with these contents: <web-ext xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://websphere.ibm.com/xml/ns/javaee" xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com

Using the context-root from glassfish-web.xml in GlassFish 3

℡╲_俬逩灬. 提交于 2019-11-27 09:19:53
We recently switched to Glassfish 3.1.2.2 and have several Web-Applications packaged as war files. At times the desired context-root for these applications differs from the filename. Back when we used Weblogic we achieved this by declaring the context-root in the weblogic.xml like this <context-root>path/to/our/App</context-root> We noticed that the same Tag exists in the glassfish-web.xml. But no matter what we define there, the server always determines the filename as the context-root. Now we find the option --contextroot in the asadmin utility that would allow us to overwrite the filename