• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

How to run JSP Page in WebSphere--NewBie

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am newbie to websphere app server. I just downloaded verion 4.0 and installed on NT 4.0 Sp 6.0a. I am able to access the Admin site of the app server and also can access all the static html pages. But i cannot access jsp page. I am storing this jsp page in WSsamples directory. All the static html pages are accessible but when i try jsp page i get following error
Virtual host or web application not found
The host localhost has not been defined
Could somebody explain me steps to run a simple jsp page.
No wonder Weblogic has good market share.
Balaji
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Balaji Kithiganahalli,
You are missing out the basic point over here. In WebSphere 4.0 you do not have a folder where you can put your jsp�s and things start working. You have to understand the J2EE model of doing things. In this model you have a war file for the web application archive and a ear file for the enterprise archive. You will first have to create the war file and then the ear file.
The steps are clearly mentioned in the examples provided by the Websphere 4.0 Infocenter documentation.
Try downloading the infocenter and checking out the examples
here
 
Balaji Kithiganahalli
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply. I did not understand why i should create ear file for me to access the jsp page. For example in j2ee reference implementation i can create a sub directory under public_html and add all the jsp pages and then can access it. or under Weblogic 6.0 I can create a subdirectory under DefaultWebApp_myserver and add all the jsp files i want.
I was able to run the jsp file on websphere by creating a ear file. But during development i thought there could be an easier way
Thanks Balaji
 
Rahul Mahindrakar
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To the best of my knowledge there is no way other than creating the ear file and deploying it. Yes in some ways WAS 4.0 does not support a great development environment. But i think that this job has been left for the VAJ 4.0 environment.
Thus in my opnion we have to use VAJ 4.0 for our development environment and WAS 4.0 for our production environment.
 
Balaji Kithiganahalli
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your help
 
reply
    Bookmark Topic Watch Topic
  • New Topic