Questions tagged [contextroot]

61 questions
1
vote
1 answer

how to set java web application's context root when working with reverse proxy

My old way using mod_jk in apache and configure virtual host in tomcat In the JSP file, I refer to CSS as below /<%=request.getContextPath()%>/css/styles.css while the home link is set to /<%=request.getContextPath()%>/ so this worked fine when…
hetaoblog
  • 1,990
  • 5
  • 26
  • 34
1
vote
2 answers

How to split war files if the file size is large and deploy it in same context root

We are having a war file containing jsp fils which is about 40 MB. when we deploy this file its taking long time to deploy. so we want to split the files in different wars, If we split files the context root will differ. I need a solution to bring…
vairam
  • 471
  • 1
  • 11
  • 26
1
vote
0 answers

Spring boot - Deploy war Application in Tomcat Root

I'm implementing a Spring boot application and i have have this requirements: 1 - The generated application must be a war 2 - Deployed as a war in the tomcat root 3 - we don't have to configure anything in tomcat we are using spring boot 2 and…
Alesky
  • 31
  • 2
1
vote
2 answers

Angular: serving application on custom context-root with npm start on localhost

I have an Angular application which starts on port 4300 with this configuration: "scripts": { "ng": "ng", "start": "ng serve --port 4300 --host 0.0.0.0 --proxy-config proxy.conf.json", "build": "ng build", "test": "ng test", "lint": "ng…
Alessandro C
  • 3,310
  • 9
  • 46
  • 82
1
vote
1 answer

How to set JBoss Wildfly context root with XML-less Spring web application?

Having a Spring application with Maven where all the configuration is done in Java (all configuration previously stored in web.xml is now in annotated @Configuration files or in WebAppInitializer that extends…
Balu
  • 522
  • 6
  • 16
1
vote
0 answers

Zuul api-gateway does not work with context root

I am using zuul api gateway. org.springframework.cloud spring-cloud-starter-netflix-zuul 2.2.1.RELEASE This call with this path works fine: http://PMCS-HOMI:8085/spatest/service-synchronization/service/message path:…
Hossain
  • 31
  • 6
1
vote
1 answer

Multiple web services with same context root

I'm upgrading Web Services that used java EJB's and wer installed in WebLogic 8.1 to JAX-RPC Web Services in WebLogic 12c (WebLogic Server Version: 12.2.1.3.0) They are several WS in the same project having same context root. So the adress for each…
Drew
  • 113
  • 1
  • 14
1
vote
1 answer

How to append context root in IBM HTTP Proxy for Liberty Server

I have a Java EAR application deployed to a couple of liberty 16.x application servers, and have one IBM HTTP Proxy server (Apache) running in front of it acting as the load balancer and HTTPS proxy. I want to have our intranet users simply enter in…
1
vote
0 answers

not able to set custom context root set properly in spring

My spring project is working properly on tomcat on context root '/' at localhost:8080 but I am trying to change it to localhost:8080/myroot, its giving error. I made following changes after searching on google. Added application.properties in…
Shashwat Kumar
  • 5,159
  • 2
  • 30
  • 66
1
vote
0 answers

Ways of deploying in Payara Micro under a certain context root

I'm looking for ways to deploy an application in Payara Micro under a specific context root (ideally an empty context, so the application runs at root). As far as I know there are two methods: Use an .ear file and specify the context root in the…
1
vote
0 answers

context root issue using WAS 8.5 in Eclipse

I'm using Maven to build an ear that is to be published to a WAS8.5 server in eclipse. Maven is generating the application.xml in /META-INF/application.xml. But when I then deploy my ear to my WAS8.5 server, the context root of the war is being…
1
vote
1 answer

groovy webtest chokes on context root in url invoke

I am trying to wrap my head around canoo webtest I setup a simple groovy webtest. I have even made and run the xml equivalent and I get the same error when it tries to encode the url. I get an error when I use a context root. I don't get an…
branchgabriel
  • 4,241
  • 4
  • 34
  • 48
1
vote
3 answers

Is it possible to have a servlet forward to a jsp outside of its context root?

We currently have an appserver setup where EVERYTHING is off of one big context root, and we copy class files and restart app servers to deploy. Not ideal. I'm trying to set up an ant script to do the build and deploy using wdeploy, and everything…
stu
  • 8,461
  • 18
  • 74
  • 112
1
vote
1 answer

Setting context-path J2EE compiled by netbeans

i developed an application for university, but for some reasons seems to be impossible for me to set the context-root of it. This is what i tried to do: Changing context-root from glassfish-web.xml but it's not working. The server recognize ever…
Neo87
  • 63
  • 1
  • 11
1
vote
0 answers

context.xml not getting copied from META-INF folder to Tomcat conf

I am building a maven war and I intend to keep context root same irrespective of what war file name(across snapshots/releases). In that quest I did the following. I created a file (matching with desired context root name) helloApp.xml in…
pingu
  • 645
  • 3
  • 11
  • 21