avalon-jetty again :-)

Mike Schubert <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.user
Organization interface projects GmbH Dresden
Message-ID <[email protected]>
Hello,

i have some trouble ti register a webapp in the avalon-jetty component.

i confgure the component like :
------------------------------------------------------------------------
<component name="ex-service" class="org.apache.avalon.merlin.http.example.ExampleServiceImpl" activation="lazy"/>

<component name="session-mgr" class="org.apache.avalon.merlin.http.example.ExampleSessionManager" activation="startup"/>

<component name="avalon-jetty" class="org.apache.avalon.merlin.http.JettyWebServer" activation="startup" >
	<configuration>
		<Listener port="8088"/>
		<Context name="example" path="/example/*">
			<Servlet name="Example" path="/servlets/*" classname="org.apache.avalon.merlin.http.example.ExampleServlet"/>
		</Context>
		<WebContext name="axis" path="axis">
		</WebContext>
	</configuration>
</component>
------------------------------------------------------------------------

The servlet context works but not axis:

------------------------------------------------------------------------
[INFO   ] (p10_0050.avalon-jetty): Initializing...
[INFO   ] (p10_0050.avalon-jetty): Loaded listener: org.mortbay.http.SocketListener on null:8088
16:16:52.825 EVENT  Checking Resource aliases
[ERROR  ] (p10_0050.avalon-jetty): Failed to load context: axis
org.apache.avalon.framework.service.ServiceException: Unknown key: org.apache.avalon.merlin.http.SessionManager (Key='org.apache.avalon.merlin.http.SessionManager')
        at org.apache.avalon.activation.impl.DefaultServiceManager.lookup(DefaultServiceManager.java:150)
        at org.apache.avalon.activation.impl.DefaultServiceManager.lookup(DefaultServiceManager.java:129)
        at org.apache.avalon.merlin.http.JettyWebServer.loadWebApplicationContext(JettyWebServer.java:398)
        at org.apache.avalon.merlin.http.JettyWebServer.loadWebApplications(JettyWebServer.java:343)
        at org.apache.avalon.merlin.http.JettyWebServer.initialize(JettyWebServer.java:100)
        at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
        at org.apache.avalon.activation.impl.DefaultComponentFactory.incarnation(DefaultComponentFactory.java:402)
        at org.apache.avalon.activation.impl.DefaultComponentFactory.incarnate(DefaultComponentFactory.java:130)
        at org.apache.avalon.activation.impl.SingletonLifestyleManager.refreshReference(SingletonLifestyleManager.java:144)
        at org.apache.avalon.activation.impl.SingletonLifestyleManager.commission(SingletonLifestyleManager.java:60)
        at org.apache.avalon.activation.impl.DefaultAppliance.commission(DefaultAppliance.java:94)
        at org.apache.avalon.activation.impl.DefaultRuntime.commission(DefaultRuntime.java:86)
        at org.apache.avalon.composition.model.impl.DefaultSystemContext.commission(DefaultSystemContext.java:362)
        at org.apache.avalon.composition.model.impl.DefaultDeploymentModel.commission(DefaultDeploymentModel.java:122)
        at org.apache.avalon.composition.model.impl.Commissioner.run(Commissioner.java:185)
        at java.lang.Thread.run(Thread.java:534)
[DEBUG  ] (p10_0050.avalon-jetty.lifecycle): applying startup
[INFO   ] (p10_0050.avalon-jetty): Starting...
16:16:53.045 EVENT  Starting Jetty/4.2.14
------------------------------------------------------------------------

How i must configure this SessionManager?

To get this output i have to decompile the class
org.apache.avalon.merlin.http.JettyWebServer. 
In the method
loadWebApplicationContext(String contextName, String appURL)
i have to insert a e.printStacktrace();
(normaly the logger should say somthing about the Exception -
 not only "Failed to load context: <contextname>" :-)

Thanks fore some hints... 

Mike
-- 
sincerely

Mike Schubert 

"FreeBSD is like a wigwam, no windows, no gates and an apache inside."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.