部署到Linux上,启动后登录不了。
Exception starting RMI registry. Error was Port already in use: 40001; nested exception is:java.net.BindException: 地址已在使用
java.rmi.server.ExportException: Port already in use: 40001; nested exception is:
java.net.BindException: 地址已在使用
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:340)
at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:248)
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411)
at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:207)
at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:122)
at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:108)
at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:203)
at net.sf.ehcache.distribution.RMICacheManagerPeerListener.startRegistry(RMICacheManagerPeerListener.java:326)
at net.sf.ehcache.distribution.RMICacheManagerPeerListener.init(RMICacheManagerPeerListener.java:205)
at net.sf.ehcache.event.CacheManagerEventListenerRegistry.init(CacheManagerEventListenerRegistry.java:104)
at net.sf.ehcache.CacheManager.init(CacheManager.java:365)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:299)
at net.sf.ehcache.CacheManager.create(CacheManager.java:697)
at org.jeecgframework.core.util.EhcacheUtil.<clinit>(EhcacheUtil.java:20)
at org.jeecgframework.web.system.manager.ClientManager.addClientToCachedMap(ClientManager.java:42)
at org.jeecgframework.web.system.manager.ClientManager.addClinet(ClientManager.java:82)
at org.jeecgframework.web.system.controller.core.LoginController.saveLoginSuccessInfo(LoginController.java:223)
at org.jeecgframework.web.system.controller.core.LoginController.checkuser(LoginController.java:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
这是异常。虽然在网上查了知道原因,也解决了(原因:jeecg使用的本地缓存ehcache技术并占用40001端口,可以从ehcache.xml 文件中看到),但是我想一劳永逸。。。。有没有办法呢?
求教!!!
改下端口试试 admin 发表于 2018-1-10 10:25 static/image/common/back.gif
改下端口试试
我的是8068,跟我本地(8080)不一样的
页:
[1]