Deploying two applications in GlassFish's root context

133 Views Asked by At

I have two applications that I need to deploy to GlassFish and I'd like to know how to put the two in the same GlassFish root context. I know that to put an application in the root context, I need to write the following line in glassfish-web.xml:

 <context-root> / </ context-root>

So, when I acess http://localhost:8080 this address will open my application. But how to deploy both in the root context? Will I have to change the port?

0

There are 0 best solutions below