logo       

Re: Aonyx and Catalina: msg#00006

java.enhydra.general

Subject: Re: Aonyx and Catalina

Hi,

On Friday, November 1, 2002, at 06:07 AM, busch@xxxxxxxxxxxxxxxx wrote:

Aonyx and Catalina works now for me.

When I try to first access a page from Enhydra-Context. The
Stacktrace starts with a Ajp13 Class in the beginning, and on the
top it said ClassCastException for the class which extends the
Enhydra StandardApplication class

Its hard to see exactly what's going on here. In the first case (with
AutoReload = true), the enhydra HttpPresentationServlet is calling
application.getClass().getClassLoader() and casting the result to
MultiClassLoader...but the result is actually a
org.apache.catalina.loader.StandardClassLoader object, so its throwing
an exception.

Do you know how I can overcome this problem? I'd like to make
use of the reload function in some environments, I could use plain
enhydra for testing purposes, but better would be if it ran within
Catalina.


I tried setting Server.AutoReload = true in an app's conf file and did not get the ClassCastException that you noticed.

In the second case (AutoReload = false), it looks like the "state"
instance variable of StandardApplication is being set to
Application.INCOMPLETE at some point, so when your app gets a request,

Yeah I found that. Now my Enhydra Aonyx Application runs within
Catalina! Hooray

Are you setting "<load-on-startup>1</load-on-startup>" in the app's
web.xml file? Does the application seem to start up properly (display

What does <load-on-startup>1</load-on-startup> mean?


This causes tomcat to initialize HttpPresentationServlet (and your application) when it starts up (the numeric parameter controls the order if there are multiple applications). Otherwise it may delay initialization until it receives the first request.

Scott


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise