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]>

Reply via email to