Hi everybody,
I wanted to deploy my network server application to a Sun Java Application
Server 9. So I implemented a LifecycleListener class. It initiates my
application during application server startup. I got the following exception
during startup

LCM0201: Lifecycle module [cp] threw an Exception; please check your
lifecycle module.
java.lang.NullPointerException
        at
com.sun.enterprise.server.ss.provider.ASServerSocketImpl.getOption(ASServerSocketImpl.java:219)
        at java.net.ServerSocket.getReuseAddress(ServerSocket.java:634)
        at
org.apache.mina.transport.socket.nio.SocketAcceptorConfig.<init>(SocketAcceptorConfig.java:52)
        at com.sesam.cp.Main.<init>(Main.java:74)
        at
com.sesam.cp.LifeCycleListenerImpl.handleEvent(LifeCycleListenerImpl.java:42)
        at
com.sun.appserv.server.ServerLifecycleModule.postEvent(ServerLifecycleModule.java:210)
        at
com.sun.appserv.server.ServerLifecycleModule.onReady(ServerLifecycleModule.java:256)
        at
com.sun.appserv.server.LifecycleModuleService.onReady(LifecycleModuleService.java:246)
        at
com.sun.enterprise.server.ApplicationServer.onReady(ApplicationServer.java:414)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:328)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:272)

In Main.java line 74 there is 
         SocketAcceptorConfig config = new SocketAcceptorConfig();

Is there anyone encountered this type of error? Is this a mina issue or not?
How do you deploy your mina-enabled applications to application servers?

Thanks,
alimli
-- 
View this message in context: 
http://www.nabble.com/Running-a-MINA-Application-as-a-LifecycleModule-in-Sun-Java-Application-Server-9-tf4212757s16868.html#a11984018
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

Reply via email to