NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

The requested resource () is not available

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
tanvirtonu



Joined: 14 May 2009
Posts: 30

PostPosted: Tue May 26, 2009 7:14 pm    Post subject: The requested resource () is not available Reply with quote

In my netbeans 6.5.1, I have created a web application using Visual Web JSF framework. I didn't modify a thing except adding a textfield and a static text and then I ran the project. My questions are-
1.Why did it start two same pages in my firefox browser.
2.If I copy the WAR file and paste into the root directory of my Tomacat Server and then try, it says-
HTTP Status 404
The requested resource () is not available.

PLS HELP ME
Back to top
ouribeb930



Joined: 01 Apr 2009
Posts: 93

PostPosted: Wed May 27, 2009 11:48 am    Post subject: Hi Reply with quote

Well, can be a lot of things

(1) See if the page you want to show is in the web.xml/Pages section in the welcome files. If not, you have to add it: faces/YOUR_JSP_PAGE

(2) If you have changed the name of the page, you can find the name before the actual, some times not all the attributes are refactored, if you find results, chage all to the actual.

(3) You can search in the faces-config.xml the page you want to show, if it does not appear thats the problem.

This is what comes to my mind... hope this help.

bye Smile
Back to top
Wendy Bossons
Posted via mailing list.





PostPosted: Wed May 27, 2009 3:10 pm    Post subject: The requested resource () is not available Reply with quote

1st, what two same pages were opened in your firefox browser?

2nd. I'm most familiar with Glassfish, which is built on top of Tomcat.
From my Tomcat days, I remember there is a gui to deploy war files, you
should use that, or copy the war file to the autodeploy directory of
Tomcat, I'm not sure anymore where that is in Tomcat. Also, did you
restart the Tomcat service when you dropped the war file? If tomcat
autodeploys from the root, which I don't remember that it does, then you
should restart the service. It looks like your application is not
deployed.

..\W

anvirtonu wrote:
Quote:
In my netbeans 6.5.1, I have created a web application using Visual Web JSF framework. I didn't modify a thing except adding a textfield and a static text and then I ran the project. My questions are-

1.Why did it start two same pages in my firefox browser.

2.If I copy the WAR file and paste into the root directory of my Tomacat Server and then try, it says-

HTTP Status 404

The requested resource () is not available.



PLS HELP ME







--
..\Wendy
Wendy Bossons
Senior User Interface Developer
Harvard-MIT Data Center
Office Phone: 617-384-5701
Email: wbossons <at> hmdc.harvard.edu
Back to top
tanvirtonu



Joined: 14 May 2009
Posts: 30

PostPosted: Wed May 27, 2009 7:20 pm    Post subject: Reply with quote

I have checked all that u have said YET it is not working.HOW COME it is not working when netbeans made its own code.
I did as u mentioned but results are as follows-
1. OK (faces/YOUR_JSP_PAGE)
2. I didn't change the name of my page
3. OK- It appears there.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo