From: Leif M. <le...@ta...> - 2005-06-24 14:14:46
|
Billie, The stack trace from the first call is a bit strange. Seems rather deep in the sun code and I am not familiar enough with that API to say what would be causing it. Your second question sounds like a path or file permissions problem. If you are using the scripts shipped with the Wrapper to start you application, then the JVM's user directory will be the location of the shell script. This means that all paths are relative to that directory. Is it possible that you relative paths are relative to some other point? Try doing some File.getAbsolutePath() debug calls in your code to see exactly where the files are being looked for. Cheers, Leif Batbileg wrote: >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 > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >_______________________________________________ >Wrapper-user mailing list >Wra...@li... >https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > |