关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、3102411850 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 7164|回复: 2

[环境搭建] 部署到Linux上,启动后登录不了。

[复制链接]
发表于 2018-1-10 09:06:10 | 显示全部楼层 |阅读模式
[2018-01-10 08:50:18] [ERROR] [net.sf.ehcache.distribution.RMICacheManagerPeerListener:330] 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 文件中看到),但是我想一劳永逸。。。。有没有办法呢?
求教!!!


发表于 2018-1-10 10:25:05 | 显示全部楼层
改下端口试试
 楼主| 发表于 2018-1-10 13:54:33 | 显示全部楼层
admin 发表于 2018-1-10 10:25
改下端口试试

我的是8068,跟我本地(8080)不一样的 TIM图片20180110135340.png
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表