Pardon my ignorance, but can you tell me how to turn
on the stack trace and where to get it from in tomcat.
Meanwhile, I am sure that the failure is in the
getManager() call, since originally I was calling it
somewhere late in the initialization process after
initializing other libraries such as log4j etc.,
Once I noticed getManager() is causing the crash, I
moved it all the way up in the init() method after the
log method as in the included code snippet. That for
sure proved that it is this method that is causing
servlet init to fail and tomcat to crash.
One question, I looked at the Turbine.java file in 3.0
and it is not setting any context before calling
TurbineServices.getManager() method. Then why do you
think context may be an issue here?
I will send the code also ....
thanks
srini
--- Jason van Zyl <[EMAIL PROTECTED]> wrote:
> On 2/16/02 8:03 AM, "sri v" <[EMAIL PROTECTED]>
> wrote:
>
> > I have built the fulcrum-1.0.jar from the src and
> > successfully able to run a stand alone testprogram
> > (for GlobalCacheService).
> >
> > However, when I tried to use the same fulcrum
> services
> > library inside a servlet (not turbine),
> > org.apache.fulcrum.TurbineServices class
> > initialization is failing and is crashing the
> tomcat
> > startup process.
> >
> >>>>>> code snippet follows>>
> > import org.apache.fulcrum.TurbineServices;
> > import org.apache.fulcrum.ServiceException;
> > import org.apache.fulcrum.ServiceManager;
> >
> > public class BaseStrutsActionServlet extends
> > HttpServlet {
> >
> > public void init() throws ServletException {
> > log("hello");
> > ServiceManager serviceManager =
> > TurbineServices.getManager();
> > }
> >
> > }
> >
> > tomcat is crashing at the getManager() call above.
> > fulcrum-1.0.jar is in my WEB-INF/lib directory.
> >
> > I looked at the turbine-3.0's Turbine.java file
> and it
> > is initializing the same way I am trying to do.
> >
> > Any help is greatly appreciated...
>
> Do you have the stack trace? A lot of refactoring
> has gone on in Fulcrum and
> we are striving to make it truly usable outside the
> Turbine context but this
> hasn't been thoroughly tested.
>
> If you have some code you can share then maybe we
> can try to make a cactus
> test for the case where Fulcrum is being used in a
> generic servlet so we can
> figure out what is going on. But if you toss the
> stack trace our way, or
> even a test where the failure is evident then we can
> get the problem fixed.
>
> >
> > thanks
> > srini
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Sports - Coverage of the 2002 Olympic Games
> > http://sports.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
>
> jvz.
>
> Jason van Zyl
>
> http://tambora.zenplex.org
> http://jakarta.apache.org/turbine
> http://jakarta.apache.org/velocity
> http://jakarta.apache.org/alexandria
> http://jakarta.apache.org/commons
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>