Ulrich,

You will need to repace the .xinfo file for the JettySevak class.  It needs to have 
the additonal
dependency.

All the servlets will inherit the .xinfo settings for the JettySevak block (if you use 
the deploy
method with specifiying a separate ServiceManager).  If you do use the longer deploy 
method, you
have more scope for things.

Regards,

- Paul

 --- Ulrich Mayring <[EMAIL PROTECTED]> wrote: > Hello,
> 
> I've developed a block that runs fine under Phoenix, but not in a 
> servlet under Sevak. The exception I get:
> 
> java.lang.InstantiationException: Service Exception for servlet 
> DemoServlet:Unable to provide implementation for 
> test.sevakTester.helloWorldBlock.HelloWorld
> jvm 1    |      at 
>
org.apache.avalon.apps.sevak.blocks.jetty.SevakServletHolder.newInstance(SevakServletHolder.java:62)
> 
> This exception usually signifies that something is wrong with 
> assembly.xml or the block's .xinfo file. However, as the block deploys 
> fine under Phoenix, there must be something else.
> 
> The problem occurs in the servlet's service method:
> 
> m_HelloWorld = 
> (HelloWorld)serviceManager.lookup(HelloWorld.class.getName());
> 
> But this exact line does work in the service method of another block 
> under Phoenix. The servlet itself, i.e. without this line, also works 
> fine - Sevak deploys it and I can access it from the webbrowser.
> 
> Perhaps the servlet needs the equivalent of a .xinfo file?
> 
> cheers,
> 
> Ulrich
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>  

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to