Apache Click - layered directory issue

76 Views Asked by At

So, im developing my own webpage and im having an issue with getting the velocity template engine to find my .htm inside a directory under WebContent/.

Im pretty sure my web.xml is correct and my click.xml is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<click-app>
    <pages package="com.clickapp.pages" automapping="true">
    </pages>
<click-app>

I had tried before to manually map these troublesome .htm to their respective classnames but I kept getting page not found or an exception page telling me it was not able to find the resource "/directory/page.htm"

I believe I am following correct templating schemes wih my java packages for the directory above being "com.clickapp.pages.directory.pagePage".

Note: I am running on latest version of click and my server is Apache Tomcat 7.0

If any more information is needed, please ask and I will provide.

1

There are 1 best solutions below

0
On

After recent considerations I decided to try the issue on a seperate workspace, in a seperate server. The results of this test contradicted what was happening on my main workspace so I decided a reset should go into effect. I simply trashed the server and made a new one, fixing my issue.

tl;dr - Made new server to run on. Solved issue.

My guess is in fiddling with the server when I didnt know what I was doing at the beginning of the project somehow screwed up a configuration causing my issue.