cancel
Showing results for 
Search instead for 
Did you mean: 

No duplicate context paths for virtual hosts?

Former Member
0 Kudos

I have a general question. On Apache Tomcat, we use to deploy our application as two separate pieces, frontend and backend, to different virtual hosts, using the same context path, usually '/web'. So we end up with urls like:

www.mysite.com/web/.

admin.mysite.com/web/.....

This works well on Tomcat. Is this possible on SAP Web AS?

At the moment I get the feeling that this is not possible. When I try to deploy my backend.ear and frontend.ear using the SDM, I get the following exception:

Starting Deployment of nl.gx.webmanager.frontend
Aborted: development component 
'nl.gx.webmanager.frontend'/'gx.nl'/'www.scout'/'2006.05.01.13.45.43':
Caught exception during application deployment from SAP 
J2EE Engine's deploy service:
java.rmi.RemoteException: Cannot deploy application 
gx.nl/nl.gx.webmanager.frontend.. Reason: Application 
alias [web] for application 
[gx.nl/nl.gx.webmanager.frontend] already exists in the 
HTTP Provider Service. The application that holds this 
alias is [gx.nl/nl.gx.webmanager.backend].....

I am connecting with SDM to myhost. I have a hosts file with entries for www.myhost and admin.myhost. I have the default virtual host (named 'default') and a virtual host named 'www.myhost' and one named 'admin.myhost'.

If I use the Netweaver Administrator to manage the virtual hosts, I see all apps under all hosts. If I create a new host it immediately has all apps. This leads me to believe that it is not possible to deploy an app to a single host...

I would be very gratefull if anyone could shed some light on this...

Kind regards,

-Stijn

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Yes you right we cannot give same context name for 2 different virtual host in SAP WEB AS . Both the ear need to have different Context names . SAP web AS does not support having same context names

Hope this helps, please do not forget to reward points if helpful .

regards

rajeshkr

Former Member
0 Kudos

Thanks Rajesh for your help, again!

This saves me hours of browsing SDN and help.sap.com for an answer

I rewarded you 10 pts.

-Stijn

Answers (0)