• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Serving JSP and HTML files

 
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I've created a new Web Application in Websphere, named download.
It has a document root set to /usr/WebSphere/AppServer/hosts/default_host/download/web.
The class path is set to /usr/WebSphere/AppServer/hosts/default_host/download/servlets
the Webpath is set to /download.
I've included JSP 1.0 processor in the Web Application.
I've created a HTML file basic.html and a JSP basci.jsp in the /web folder under /download.
But, when I try to access them using the URL http://hostname/download/basic.html
OR http://hostname/download/basic.jsp,
I get a 404 error. What am I missing here?
Could somebody please help me?
Thanks.
 
Bala Krishna
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Never mind. I figured it out. The virtual host for the web application was configured incorrectly. I changed it and now the web app works fine.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bala
I am having the same sort of problem can u tell me what u rectified in virtual host
Thanks
Dolphy
 
Bala Krishna
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know if this would be helpful to you, but in my case, the virtual host was set to a default host, and not to the actual node on which this instance of websphere was installed. I chaned the virtual host to point to the node on which websphere was installed, and that solved my problem. Lemme know if I can be of any more help to you.
 
crispy bacon. crispy tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic