[Anthill] Re: Multiple anthill installations for multiple projects?

Aaron Turner aaron at cs.york.ac.uk
Mon Oct 11 06:59:22 CDT 2004


>
>Message: 3
>Date: Mon, 04 Oct 2004 09:28:14 -0400
>From: Eric Minick <eric at urbancode.com>
>Subject: Re: [Anthill] Multiple anthill installations for multiple
>	projects?
>To: Anthill user list <anthill at lists.urbancode.com>
>Message-ID: <41614FEE.6060507 at urbancode.com>
>Content-Type: text/plain; charset=us-ascii; format=flowed
>
>Aaron,
>
>I believe that if simply create two Anthill working directories and then 
>deploy the war into two differant contexts, each context will get it's 
>own master properties file which can refer to it's own working space.
>
>In other words a directory structure that looks like the follow would work.
>
>/usr/share/anthill/
>- areaA/[anthill directories]
>- areaB/[anthill directories]
>
>Then you just need to deploy the war file into two contexts.
>


I've tried this, and it doesn't seem to work (or maybe I am manipulating 
tomcat incorrectly).

Deploying the war file as context anthill.areaA (for example) creates
the work/Catalina/localhost/anthill directory only.

When trying to access
http://localhost:8080/anthill.areaA I then get

rg.apache.jasper.JasperException: Unable to compile class for JSP
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:559)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	com.urbancode.anthill.web.admin.AnthillBaseServlet.processRequest0(AnthillBaseServlet.java:103)
	com.urbancode.anthill.web.admin.AnthillBaseServlet.doGet(AnthillBaseServlet.java:111)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

*root cause*

java.io.FileNotFoundException: /usr/share/tomcat/work/Catalina/localhost/anthill.areaA/org/apache/jsp/configureAnthill_jsp.java (No such file or directory)
	java.io.FileOutputStream.open(Native Method)
	java.io.FileOutputStream.<init>(FileOutputStream.java:179)
	java.io.FileOutputStream.<init>(FileOutputStream.java:70)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:223)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	com.urbancode.anthill.web.admin.AnthillBaseServlet.processRequest0(AnthillBaseServlet.java:103)
	com.urbancode.anthill.web.admin.AnthillBaseServlet.doGet(AnthillBaseServlet.java:111)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

*note*

Copying .. work/Catalina/localhost/anthill to anthill.areaA as a quick 
and dirty fix results in the following errors:

*type* Exception report

*message*

*description* _The server encountered an internal error () that 
prevented it from fulfilling this request._

*exception*

org.apache.jasper.JasperException: Unable to load class for JSP
	org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:585)
	org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:177)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	com.urbancode.anthill.web.admin.AnthillBaseServlet.processRequest0(AnthillBaseServlet.java:103)
	com.urbancode.anthill.web.admin.AnthillBaseServlet.doGet(AnthillBaseServlet.java:111)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

*root cause*

java.lang.ClassNotFoundException: org.apache.jsp.configureAnthill_jsp
	java.net.URLClassLoader$1.run(URLClassLoader.java:199)
	java.security.AccessController.doPrivileged(Native Method)
	java.net.URLClassLoader.findClass(URLClassLoader.java:187)
	org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:192)
	org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:110)
	org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:583)
	org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:177)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	com.urbancode.anthill.web.admin.AnthillBaseServlet.processRequest0(AnthillBaseServlet.java:103)
	com.urbancode.anthill.web.admin.AnthillBaseServlet.doGet(AnthillBaseServlet.java:111)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:743)


	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

*note* _The full stack trace of the root cause is available in the 
Tomcat logs._


The jsp files get deployed and I am tracking to see what is causing the 
problem.

Sincerely,

Aaron Turner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill/attachments/20041011/2e975bbc/attachment-0002.htm


More information about the Anthill mailing list