• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Why I'm getting Web group exception while accessing html?

 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have created a struts project in WSAD 5.1.1 Now when I'm trying to access a static resource (readme.html)
I'm giving the url htp://localhost:9080/readme.html
I'm getting the follwoing exception

Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /readme.html has not been defined


How can I access the readme.html?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's the name(context) of your application? Let's assume, its named myApp, then the URL to access your readme.html, most likely would be http://localhost:9080/myApp/readme.html
 
Shyam kumar
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jaikiran,

Thanks for the reply, my application name is struts-blank, even now my im getting 404 error, I have given the follwoing url

http://localhost:9080/struts-blank/readme.html

Pls help!!!
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the sample struts-blank application that i have on my setup, i dont see any readme.html. It does have a index.jsp. Also, my war file is named struts-blank-1.3.8.war. So if i had to access my index.jsp from this application deployed on WebSphere, i would use http://localhost:9080/struts-blank-1.3.8/index.jsp
 
Shyam kumar
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That is my question... you can access the dynamic resource but how do you access the static resources like html, lying within the project root. I'm also able to access the index.jsp but I'm not able to access readme.html from the link.
I suggest you create one readme.html file within the project root and then try to access it.
Pls let me know your findings...
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I'm also able to access the index.jsp but I'm not able to access readme.html from the link.



You should be able to access a static resource, the same way you access the jsp. Are you sure you have the readme.html at the root of the application? Also make sure the filename is correct (case does matter). Also, one of the mistakes that i remember doing, is create a html file using notepad and while saving it i saved it as a text file, which meant the file got saved as readme.html.txt. Make sure you havent done the same. Let us know how it goes, maybe someone else will be able to point out what's missing.


I suggest you create one readme.html file within the project root and then try to access it.
Pls let me know your findings...



Sorry, i dont have a running setup right now.
 
Shyam kumar
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jaikiran, I restarted my WSAD today morning and it started to work.

Thanks anyway...
 
He's dead Jim. Grab his tricorder. I'll get his wallet and this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic