Deploy war file in different name in Tomcat
up vote
0
down vote
favorite
I have question on Tomcat (rather Tomee) deployment.
I have a war file named, CromeRepoGui.war and I want it to be deployed in dev#repo folder under /webapps.
According to the link:
Deploying war file to Tomcat with a different path ,
I followed the below steps,
1) I changed server.xml under /conf and set
autoDeploy="false" deployOnStartup="false"
2) add a context.xml file under /META-INF inside the war file (zip folder), having below attribute:
path="/dev/repo"
But still I am getting an extracted folder CromeRepoGui in /webapps, but not any extracted folder named dev#repo.
My application should run as, http://localhost:8080/dev/repo;
not as, http://localhost:8080/CromeRepoGui.
What other changes I need to do in the configuration (may be any new attribute to be defined in context.xml
file) to get my war file deployed in a single folder named dev#repo, instead any CromeRepoGui folder (avoiding double-deployment) in /webapps, which is the war file name.
tomcat deployment war tomee
add a comment |
up vote
0
down vote
favorite
I have question on Tomcat (rather Tomee) deployment.
I have a war file named, CromeRepoGui.war and I want it to be deployed in dev#repo folder under /webapps.
According to the link:
Deploying war file to Tomcat with a different path ,
I followed the below steps,
1) I changed server.xml under /conf and set
autoDeploy="false" deployOnStartup="false"
2) add a context.xml file under /META-INF inside the war file (zip folder), having below attribute:
path="/dev/repo"
But still I am getting an extracted folder CromeRepoGui in /webapps, but not any extracted folder named dev#repo.
My application should run as, http://localhost:8080/dev/repo;
not as, http://localhost:8080/CromeRepoGui.
What other changes I need to do in the configuration (may be any new attribute to be defined in context.xml
file) to get my war file deployed in a single folder named dev#repo, instead any CromeRepoGui folder (avoiding double-deployment) in /webapps, which is the war file name.
tomcat deployment war tomee
1
Possible duplicate of How to specify path in META-INF/context.xml for Tomcat
– pirho
Nov 11 at 10:46
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have question on Tomcat (rather Tomee) deployment.
I have a war file named, CromeRepoGui.war and I want it to be deployed in dev#repo folder under /webapps.
According to the link:
Deploying war file to Tomcat with a different path ,
I followed the below steps,
1) I changed server.xml under /conf and set
autoDeploy="false" deployOnStartup="false"
2) add a context.xml file under /META-INF inside the war file (zip folder), having below attribute:
path="/dev/repo"
But still I am getting an extracted folder CromeRepoGui in /webapps, but not any extracted folder named dev#repo.
My application should run as, http://localhost:8080/dev/repo;
not as, http://localhost:8080/CromeRepoGui.
What other changes I need to do in the configuration (may be any new attribute to be defined in context.xml
file) to get my war file deployed in a single folder named dev#repo, instead any CromeRepoGui folder (avoiding double-deployment) in /webapps, which is the war file name.
tomcat deployment war tomee
I have question on Tomcat (rather Tomee) deployment.
I have a war file named, CromeRepoGui.war and I want it to be deployed in dev#repo folder under /webapps.
According to the link:
Deploying war file to Tomcat with a different path ,
I followed the below steps,
1) I changed server.xml under /conf and set
autoDeploy="false" deployOnStartup="false"
2) add a context.xml file under /META-INF inside the war file (zip folder), having below attribute:
path="/dev/repo"
But still I am getting an extracted folder CromeRepoGui in /webapps, but not any extracted folder named dev#repo.
My application should run as, http://localhost:8080/dev/repo;
not as, http://localhost:8080/CromeRepoGui.
What other changes I need to do in the configuration (may be any new attribute to be defined in context.xml
file) to get my war file deployed in a single folder named dev#repo, instead any CromeRepoGui folder (avoiding double-deployment) in /webapps, which is the war file name.
tomcat deployment war tomee
tomcat deployment war tomee
edited Nov 11 at 7:16
asked Nov 9 at 11:19


Prosen
479
479
1
Possible duplicate of How to specify path in META-INF/context.xml for Tomcat
– pirho
Nov 11 at 10:46
add a comment |
1
Possible duplicate of How to specify path in META-INF/context.xml for Tomcat
– pirho
Nov 11 at 10:46
1
1
Possible duplicate of How to specify path in META-INF/context.xml for Tomcat
– pirho
Nov 11 at 10:46
Possible duplicate of How to specify path in META-INF/context.xml for Tomcat
– pirho
Nov 11 at 10:46
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53224752%2fdeploy-war-file-in-different-name-in-tomcat%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Possible duplicate of How to specify path in META-INF/context.xml for Tomcat
– pirho
Nov 11 at 10:46