From: Batbileg <red...@or...> - 2005-06-24 12:33:03
|
Hi all, I was reading through the documentation and archives of mailing list and could not find answer for my question. I have application ServerImpl which is in server.jar. I am trying to run this rmi server as linux daemon. RMi server uses custom socket RMISSLServerSocketFactory and RMISSLClientSocketFactory. Regitry creates regitry at port 1110 and binds the implemination of the object using UnicastRemotreObject.exportObject on port 5001. I have changed name of the sh.script.in to server. When I run ./server start or console from inside the server users folder its ok. No problems. 1st question. When I do service server start then I receive following exception: INFO | jvm 1 | 2005/06/24 14:14:59 | java.rmi.server.ExportException: Listen failed on port: 5001; nested exception is: INFO | jvm 1 | 2005/06/24 14:14:59 | java.net.SocketException: Default SSL context init failed: null INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.transport.tcp.TCPTransport.listen(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.transport.tcp.TCPTransport.exportObject(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.transport.tcp.TCPEndpoint.exportObject(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.transport.LiveRef.exportObject(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at java.rmi.server.UnicastRemoteObject.exportObject(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at java.rmi.server.UnicastRemoteObject.exportObject(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at com.xxx.Server.ServerApp.startInterfaces(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at com.xxx.Server.ServerApp.startWork(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at com.xxx.Server.ServerApp.<init>(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at com.xxx.Server.ServerApp.main(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at java.lang.reflect.Method.invoke(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:136) INFO | jvm 1 | 2005/06/24 14:14:59 | at java.lang.Thread.run(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | Caused by: java.net.SocketException: Default SSL context init failed: null INFO | jvm 1 | 2005/06/24 14:14:59 | at javax.net.ssl.DefaultSSLServerSocketFactory.createServerSocket(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at com.xxx.utils.rmi.RMISSLServerSocketFactory.createServerSocket(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(Unknown Source) INFO | jvm 1 | 2005/06/24 14:14:59 | ... 18 more When I run just ./server script my applications starts normally. Any ideas on this issue. 2nd question is I use LOAD FROM FILE statement from MySql and Log4j for logging and lot of other operations related to file system. However, when I run this scripts at runtime, my application does not start because, it can not find config files that are configured. I use relative path inside my application, because, I have no idea at which directory my application will be installed. Can you give me any ideas on how to solve this issue. Thanks a lot in advance and looking forward hearing from you and also participating in this great project. It seems to be a great staff. Regards, Billie |