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

Reply via email to