facebook

How to access Webcontext with multiple names [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #232870 Reply

    Hi,
    I have created a j2ee webproject, with my context root set /med/app. While deploying the application, if i choose Tomcat4 i get a error saying that Deployment location is Invalid(This is due to context created with multiple names). So i choose Deploy type as Exploded Archive and deploy location as c:\tomcat4\webapps\medmed and deployed successfully.
    Now when i try to access the application through localhost:8887/med/app, im getting error saying that the application not found thrown by tomcat. If i change the context to /med and redeploy the application and access localhost:8887/med i could see the application getting launched.
    Could you please suggest me how to launch the application with mulitiple names seperated by / ????? Your feebacks are welcome.

    Regards,
    Sun.

    #232878

    Scott Anderson
    Participant
    #233020

    Scott,
    This is NOT a duplicate of the post which i have posted earlier. My question is if i have specified a web-context with multiple names seperated by / how to access the application with the web-context name. I am adding extra information on what I have did and how to access the application. Here it goes.
    I have a J2EE web project named med1 with web-context specified as /med/app. While deploying this application to Tomcat when I select the server as Tomcat4, I could see the deploy location as INVALID. Hence I choose externally launched and specify the deployment location as h:/tomcat_4/webapps/medmed1. It does get deployed successfully to the server.

    Now when I try to launch my application with the web-context as http://localhost:8887/med/app/myjsp.jsp I could only see a 404 status returned by Tomcat. While if I access the application with http://localhost:8887/medmed1/myjsp.jsp it works fine (Kindly note medmed1 is the folder I have chosen while deploying to tomcat).

    Now when I change my web-context to a single word as medapplication and after deploying, I am able to access the application with http://localhost:8887/medapplication/med.jsp

    My query is, why is that if the web-context has more than one word separated with /, I’m not able to access the application with web-context name specified for the J2EE project, rather the application is accessible only through the folder name I had specified while deploying. If I wanted to access the application with the web context name what I should do?

    @support-scott wrote:

    This is a duplicate of: https://www.genuitec.com/forums/topic/j2ee-deployment-location-shows-invalid-why-closed/#post-232877

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: How to access Webcontext with multiple names [Closed]

You must be logged in to post in the forum log in