jsp - Specifying the location of WEB-INF for a legacy Tomcat application -


i attempting build test setup legacy apache/tomcat application. honest, not sure if 'application.' collection of jsps happen in directory.

the jsps being displayed properly. problem classes folder in web-inf folder isn't being found - i'm getting noclassdeffounderror exceptions.

to complicate things, there two 'apps' , share web-inf:

4 drwxr-xr-x    8 root     root         4096 dec  2 09:38 thing1 4 drwxr-xr-x    8 root     root         8192 dec  2 09:38 thing2 4 drwxr-xr-x    8 root     root         4096 dec  2 09:38 web-inf 

so in sanitized-for-your-sanity example, see 2 'applications' , shared web-inf folder.

one url works http://mysite/thing1/index.jsp when try log in page, however, noclassdef error.

here's relevant part of server.xml file. actual path of index.jsp file mentioned tony/root/thing1/index.jsp

  <host name="tony.com" appbase="tony/root">       <alias>111.111.111.111</alias>       <context path="" docbase="" debug="0" reloadable="true" crosscontext="true" />   </host> 

my question is, how have configure tomcat thing1 & 2 use web-inf lib , class folders? these 'apps' aren't being deployed war files...

(note - making copy of production box difficult - there's lot of stuff running there. attempting pare down make test environment few apps.)

a web application must have following structure:

tomcat/webapps/appname tomcat/webapps/appname/*.jsp tomcat/webapps/appname/web-inf tomcat/webapps/appname/web-inf/lib tomcat/webapps/appname/web-inf/classes 

so way should work, without additional xml configurations


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -