aspose 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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