wood burning stoves*
The moose likes Struts and the fly likes Why I'm getting Web group exception while accessing html? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Why I Watch "Why I New topic
Author

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

Shyam kumar
Ranch Hand

Joined: May 21, 2006
Posts: 146
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?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9329
    
110

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


[My Blog] [JavaRanch Journal]
Shyam kumar
Ranch Hand

Joined: May 21, 2006
Posts: 146
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
Marshal

Joined: Jul 20, 2005
Posts: 9329
    
110

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

Joined: May 21, 2006
Posts: 146
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
Marshal

Joined: Jul 20, 2005
Posts: 9329
    
110

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

Joined: May 21, 2006
Posts: 146
Hi Jaikiran, I restarted my WSAD today morning and it started to work.

Thanks anyway...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why I'm getting Web group exception while accessing html?
 
Similar Threads
Error Message
OSEListenerDi E PLGN0021E:
Virtual Host/Web Group Not Found
OSEListenerDi E PLGN0021E:
webgroup not found exception in wsad