File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Having to manually add certain folders and files to /wtpapps folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Having to manually add certain folders and files to /wtpapps folder" Watch "Having to manually add certain folders and files to /wtpapps folder" New topic
Author

Having to manually add certain folders and files to /wtpapps folder

Matt Kohanek
Village Idiot
Ranch Hand

Joined: Apr 04, 2009
Posts: 483

So I have a page using some insert statements as follows:



As you can see it takes two other pages Ive created, index.xhtml and newUserRegister.xhtml, and inserts them onto this one page. When I try to run this on my server, it tells me



So I go to tomcat/wtpwebapps/NIRAP/templates, and create a /login folder, and then I copy and paste index.xhtml and newUserRegister.xhtml into this new folder. Then I restart tomcat, and try to run the page, and it displays just fine.

Why isnt tomcat creating this folder and putting these two .xhtml's into it automatically? For now it is feasible for me to do this, but as this site grows it is going to becoem a problem to have to do this every time.

Thanks


True wisdom is in knowing you know nothing - Socrates
Matt Kohanek
Village Idiot
Ranch Hand

Joined: Apr 04, 2009
Posts: 483

solved, I just had to change the file structure for my project to match up the file structure that tomcat was wanting to use.
 
 
subject: Having to manually add certain folders and files to /wtpapps folder
 
Similar Threads
JSF 2.0 Login
Problem rendering facelets templates
Error:The XML page cannot be displayed Cannot view XML input using style sheet
Needing to build jsf page with three content panes (forms?), looking for template
Facelets and JSF