请教个问题,这个问题困扰很久了。
我是下载的JEECG3.7.1,非maven版。功能用着都OK。
有两点,一是 很多JSP和JS文件都报错了,但是不影响使用,唯一影响使用的就是那个网络聊天有一个用户的头像显示不出来,我看网上说的,我把eclipse上的校检功能都关了,还是报错,虽然不影响功能使用,这没问题吧。:Q
第二个问题是,我用eclipse的tomcat部署了项目之后访问没问题,可当我更改了一些用代码生成器生成代码后,我在tomcat上restart,就会报错了,一直都有这个错误。
java.net.BindException: Address already in use: JVM_Bind
java.rmi.server.ExportException: Port already in use: 40001; nested exception is:
java.net.BindException: Address already in use: JVM_Bind
at sun.rmi.transport.tcp.TCPTransport.listen(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.exportObject(Unknown Source)
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(Unknown Source)
at sun.rmi.transport.LiveRef.exportObject(Unknown Source)
at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source)
at sun.rmi.registry.RegistryImpl.setup(Unknown Source)
at sun.rmi.registry.RegistryImpl.<init>(Unknown Source)
......
2017-10-30 23:13:09] Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'templetContext' defined in URL : Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1077)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1022)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
......
Caused by: net.sf.ehcache.CacheException: Problem starting listener for RMICachePeer //localhost:40001/dictCache. Initial cause was error marshalling arguments; nested exception is:
java.net.SocketException: Software caused connection abort: socket write error
at net.sf.ehcache.distribution.RMICacheManagerPeerListener.notifyCacheAdded(RMICacheManagerPeerListener.java:538)
at net.sf.ehcache.event.CacheManagerEventListenerRegistry.notifyCacheAdded(CacheManagerEventListenerRegistry.java:159)
at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1104)
at net.sf.ehcache.CacheManager.addConfiguredCaches(CacheManager.java:656)
at net.sf.ehcache.CacheManager.init(CacheManager.java:374)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:299)
at net.sf.ehcache.CacheManager.create(CacheManager.java:697)
at net.sf.ehcache.CacheManager.getInstance(CacheManager.java:717)
at org.jeecgframework.web.cgform.engine.TempletContext.<clinit>(TempletContext.java:46)
... 29 more
Caused by: java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.net.SocketException: Software caused connection abort: socket write error
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Unknown Source)
at net.sf.ehcache.distribution.RMICacheManagerPeerListener.bind(RMICacheManagerPeerListener.java:234)
at net.sf.ehcache.distribution.RMICacheManagerPeerListener.notifyCacheAdded(RMICacheManagerPeerListener.java:536)
... 37 more
每次重启tomcat都是这个错误。我 每次都是先stoptomcat 然后再start tomcat。
我用其他项目tomcat restart都没问题,所以应该不是tomcat的问题。
希望版主可以简答一下,谢谢 参考常见问题贴101修改试试 admin 发表于 2017-10-31 10:19 static/image/common/back.gif
参考常见问题贴101修改试试
谢谢,注释掉了,还是报同样的错误。 admin 发表于 2017-10-31 10:19 static/image/common/back.gif
参考常见问题贴101修改试试
我把下面那一块也注释了,就不报错了。
页:
[1]