启动tomcat 报dubbo端口号冲突

启动tomcat ,同时会报下面的错误

14:56:08.607 [localhost-startStop-1] ERROR o.s.web.context.ContextLoader - Context initialization failed
com.alibaba.dubbo.rpc.RpcException: Fail to start server(url: dubbo://172.16.0.62:21889/com.winit.sms.spi.base.customeracct.CustomerAcctService?anyhost=true&application=sms&channel.readonly.sent=true&codec=dubbo&default.cluster=failover&default.executes=500&default.loadbalance=random&default.retries=0&default.service.filter=dubboProviderFilter&default.timeout=60000&default.validation=true&dispatcher=all&dubbo=2.8.3&dynamic=true&generic=false&heartbeat=60000&interface=com.winit.sms.spi.base.customeracct.CustomerAcctService&methods=queryCustomerAcctById,queryCustomerAcctByBpartnerCode,createCustomerAcct,pageCustomerAcct,modifyCustomerAcct&organization=winit&owner=liuyan.chen&pid=14588&revision=1.21.6.NewWorldPhase2.SNAPSHOT&side=provider&threadpool=limited&threads=300&timestamp=1453791368562&version=5.0.0) Failed to bind NettyServer on /172.16.0.62:21889, cause: Failed to bind to: /0.0.0.0:21889
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:331) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.openServer(DubboProtocol.java:308) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.export(DubboProtocol.java:258) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:55) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:56) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.rpc.Protocol$Adpative.export(Protocol$Adpative.java) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.registry.integration.RegistryProtocol.doLocalExport(RegistryProtocol.java:153) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:107) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:53) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:54) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.rpc.Protocol$Adpative.export(Protocol$Adpative.java) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:489) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:285) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:246) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.config.ServiceConfig.export(ServiceConfig.java:145) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:109) ~[dubbo-2.8.3.jar:2.8.3]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:96) ~[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334) ~[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:948) ~[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482) ~[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE]
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410) ~[spring-web-3.2.8.RELEASE.jar:3.2.8.RELEASE]
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) ~[spring-web-3.2.8.RELEASE.jar:3.2.8.RELEASE]
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) [spring-web-3.2.8.RELEASE.jar:3.2.8.RELEASE]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5003) [catalina.jar:7.0.65]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5517) [catalina.jar:7.0.65]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:7.0.65]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) [catalina.jar:7.0.65]
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) [catalina.jar:7.0.65]
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) [catalina.jar:7.0.65]
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263) [catalina.jar:7.0.65]
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1978) [catalina.jar:7.0.65]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_80]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_80]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_80]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_80]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80]
Caused by: com.alibaba.dubbo.remoting.RemotingException: Failed to bind NettyServer on /172.16.0.62:21889, cause: Failed to bind to: /0.0.0.0:21889
at com.alibaba.dubbo.remoting.transport.AbstractServer.(AbstractServer.java:72) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.remoting.transport.netty.NettyServer.(NettyServer.java:63) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.remoting.transport.netty.NettyTransporter.bind(NettyTransporter.java:33) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.remoting.Transporter$Adpative.bind(Transporter$Adpative.java) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.remoting.Transporters.bind(Transporters.java:48) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchanger.bind(HeaderExchanger.java:41) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.remoting.exchange.Exchangers.bind(Exchangers.java:63) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:329) ~[dubbo-2.8.3.jar:2.8.3]
... 35 common frames omitted
Caused by: org.jboss.netty.channel.ChannelException: Failed to bind to: /0.0.0.0:21889
at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:303) ~[netty-3.2.5.Final.jar:na]
at com.alibaba.dubbo.remoting.transport.netty.NettyServer.doOpen(NettyServer.java:94) ~[dubbo-2.8.3.jar:2.8.3]
at com.alibaba.dubbo.remoting.transport.AbstractServer.(AbstractServer.java:67) ~[dubbo-2.8.3.jar:2.8.3]
... 42 common frames omitted
Caused by: java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method) ~[na:1.7.0_80]
at sun.nio.ch.Net.bind(Net.java:463) ~[na:1.7.0_80]
at sun.nio.ch.Net.bind(Net.java:455) ~[na:1.7.0_80]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) ~[na:1.7.0_80]
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) ~[na:1.7.0_80]
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.bind(NioServerSocketPipelineSink.java:148) ~[netty-3.2.5.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleServerSocket(NioServerSocketPipelineSink.java:100) ~[netty-3.2.5.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:74) ~[netty-3.2.5.Final.jar:na]
at org.jboss.netty.channel.Channels.bind(Channels.java:468) ~[netty-3.2.5.Final.jar:na]
at org.jboss.netty.channel.AbstractChannel.bind(AbstractChannel.java:192) ~[netty-3.2.5.Final.jar:na]
at org.jboss.netty.bootstrap.ServerBootstrap$Binder.channelOpen(ServerBootstrap.java:348) ~[netty-3.2.5.Final.jar:na]
at org.jboss.netty.channel.Channels.fireChannelOpen(Channels.java:176) ~[netty-3.2.5.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioServerSocketChannel.(NioServerSocketChannel.java:85) ~[netty-3.2.5.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:142) ~[netty-3.2.5.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:90) ~[netty-3.2.5.Final.jar:na]
at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:282) ~[netty-3.2.5.Final.jar:na]
... 44 common frames omitted

4个回答

改了端口号也不行,如果我把端口号改成了2288,也会报2288端口号冲突。

我也遇到这个问题了,正在突破中

我也遇到这个问题了,正在突破中

21889 这个端口被占用了
如果是linux系统,可以用netstat -anp |grep 21889 查看
windows也可以用netstat查看

mijklgps
mijklgps sb
大约 3 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Tomcat启动时提示端口号冲突
一般启动时会提示8080/8009端口号被占用。 这时候如果重启tomca无效,按如下步骤即可解决:运行cmd,输入:netstat -ano会出现很长一列,找到8080/8009的tcp,如下图: 找到对应的PID,图上所示为3072打开任务管理器,在 性能-资源监视器-cpu下找到对应的PID,右键结束进程,一般都是javaw即可解决tomcat冲突问题。
dubbo tomcat 启动报错解决
防火墙设置有问题,更改防火墙配置和杀死这台机器的多余服务,用root用户去操作,tomcat一直重启,会造成某些应用清除进程不彻底。
修改tomcat端口号(tomcat端口号与其他应用冲突)
在Tomcat的conf文件夹里有个server.xml文件,修改里面的  <Connector port="8080" protocol="HTTP/1.1"                connectionTimeout="20000"                redirectPort="8443" /> 这段代码,那个port值就是端口号!
tomcat项目启动冲突
<!--如果放两个项目实例此属性要设置,而且两个项目param-value值的不能相同,log4j和logback都要设置,这点很容易忽略 --> <context-param> <param-name>webAppRootKey</param-name> <param-value>crm.root</param-value> </context-param>
一台机器上启动两个tomcat端口号冲突问题
有时候我们需要在一台机器上启动多个项目,但是一个tomcat下启动多个项目会导致调试会出不可预期的问题,所以可以试着启动两个tomcat服务器 步骤如下: 1.打开tomcat的安装目录找到conf文件夹下的server.xml文件 C:\Program Files\Apache Software Foundation\Tomcat 7.0\conf 2.如果只是为了解决808
Tomcat启动报超时
修改 workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml文件。  把 start-timeout="45" 改为  start-timeout="100" 或者更长 。
tomcat启动报警告
警告: Duplicate name in Manifest: Class-Pathrn2004-6-25 18:41:20 java.util.jar.Attributes readrn警告: Duplicate name in Manifest: Class-Pathrn2004-6-25 18:41:20 java.util.jar.Attributes readrn警告: Duplicate name in Manifest: Class-Pathrn2004-6-25 18:41:20 java.util.jar.Attributes readrn警告: Duplicate name in Manifest: Class-Pathrn2004-6-25 18:41:20 java.util.jar.Attributes readrn警告: Duplicate name in Manifest: Class-Pathrnrnrn是什么意思 ?
tomcat 启动报端口占用
在做负载均衡测试时,把一个tomcat复制两份,并且放在同一个目录下面,部署相同的应用。rn修改其中的一个tomcat端口,启动后报异常rnSEVERE: StandardServer.await: create[8018]: rnjava.net.BindException: Address already in usern at java.net.PlainSocketImpl.socketBind(Native Method)rn at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)rn at java.net.ServerSocket.bind(ServerSocket.java:319)rn at java.net.ServerSocket.(ServerSocket.java:185)rn at org.apache.catalina.core.StandardServer.await(StandardServer.java:363)rn at org.apache.catalina.startup.Catalina.await(Catalina.java:616)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:576)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rnAug 24, 2012 10:27:12 AM org.apache.coyote.http11.Http11BaseProtocol pausernrn不知道是什么样原因引起的,请指教一二,万分感谢
tomcat启动报404错误
一月 16, 2018 11:52:40 上午 org.apache.catalina.core.ApplicationContext logrn信息: No Spring WebApplicationInitializer types detected on classpathrn一月 16, 2018 11:52:40 上午 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrn这是启动信息
启动tomcat报的错
Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext-action.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext-action.xml] cannot be opened because it does not existrn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitionsrnrn请帮帮忙看看是什么错误!谢谢!
tomcat启动报数据库连接池
[2018-06-15 09:52:20] [ERROR] [com.alibaba.druid.pool.DruidDataSource:903] dataSource-104 init errorrnjava.sql.SQLException: com.microsoft.sqlserver.jdbc.SQLServerDriverrn at com.alibaba.druid.util.JdbcUtils.createDriver(JdbcUtils.java:600)rn at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:815)rn at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43rn tomcat8+maven3.5.3;之前成功的,后来就报这个问题了,另一台电脑没报错;rnhibernate.dialect=org.hibernate.dialect.SQLServerDialectrnvalidationQuery.sql=SELECT 1rnjdbc.url.jeecg=jdbc:sqlserver://localhost:1433;DatabaseName=jeecgrnjdbc.username.jeecg=sarnjdbc.password.jeecg=123rnjdbc.dbType=sqlserver
端口号冲突
严重: StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketIm
端口号冲突,修改端口号后,导致资源找不到,报404错误
开启本地服务器时,Apache无法正常启动,报80端口被占用。于是把端口号改为8080,当浏览本地页面时出现以下错误,如图:rn[img=https://img-bbs.csdn.net/upload/201707/04/1499140911_636145.png][/img]rnrn我电脑装了两个服务器phpstudy和wamp,一直都没有出现端口冲突问题,今天却出现了。查看了很多资料,把httpd-vhosts.conf等对应文件改了,还是没有解决问题。本人刚刚接触有关后台的东西,是个小白,希望能详细说明,谢谢大家。rnrn
mac命令行启动tomcat & 修改tomcat端口号
1、进入的Tomcat安装/bin 目录下 直接拖动bin文件夹到终端,前面加cd 即:cd / Library / Tomcat / bin  2、启动tomcat 输入:sudo sh ./startup.sh 3、关闭Tomcat 关闭:sudo sh ./shutdown.sh   4、修改tomcat端口号 安装目录/conf/server.xml 文件夹下   ...
Hadoop启动namenode失败,端口号冲突问题解决
部署完Hadoop集群后,启动hadoop集群,有可能会遇到端口号冲突的问题 ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: Failed to start namenode. java.net.BindException: Problem binding to [logsrv03:9000] java.net.BindExcepti
maven+spring3+hibernate3+sturts2启动tomcat报java.lang.IncompatibleClassChangeError
异常:rnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'boardDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.orm.hibernate3.HibernateTemplate com.baobaotao.dao.BaseDao.hibernateTemplate; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in class path resource [baobaotao-dao.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [baobaotao-dao.xml]: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError: Implementing classrnat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)rnat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)rnat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rnat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rnat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rnat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rnat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rnat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rnat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)rnat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)rnat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)rnat org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384)rnat org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)rnat org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)rnat org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)rnat org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)rnat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rnat org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rnCaused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.orm.hibernate3.HibernateTemplate com.baobaotao.dao.BaseDao.hibernateTemplate; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in class path resource [baobaotao-dao.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [baobaotao-dao.xml]: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError: Implementing classrnat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506)rnat org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)rnat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)rn... 28 morernCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in class path resource [baobaotao-dao.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [baobaotao-dao.xml]: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError: Implementing classrnat org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)rnat org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)rnat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)rnat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)rnat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rnat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rnat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rnat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rnat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rnat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rnat org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)rnat org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)rnat org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)rnat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)rn... 30 morernCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [baobaotao-dao.xml]: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError: Implementing classrnat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)rnat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rnat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rnat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rnat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rnat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rnat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rnat org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)rn... 43 morernCaused by: java.lang.IncompatibleClassChangeError: Implementing classrnat java.lang.ClassLoader.defineClass1(Native Method)rnat java.lang.ClassLoader.defineClass(ClassLoader.java:621)rnat java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rnat org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2818)rnat org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)rnat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)rnat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)rnat java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rnat java.lang.Class.getDeclaredConstructors0(Native Method)rnat java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)rnat java.lang.Class.getConstructor0(Class.java:2699)rnat java.lang.Class.getDeclaredConstructor(Class.java:1985)rnat org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:104)rnat org.springframework.orm.hibernate3.LocalSessionFactoryBean.newConfiguration(LocalSessionFactoryBean.java:818)rnat org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:549)rnat org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rnat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)rnat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)rn... 50 morernrngoogle看了很多帖子 大多数说是jar包重复 纠结了2天没解决~~
启动tomcat,报java.lang.NoClassDefFoundError错误
在eclipse中使用struts2,启动tomcat的时候,总是报java.lang.NoClassDefFoundError的错误:rn1.java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtilsrn2.java.lang.NoClassDefFoundError: freemarker/template/TemplateExceptionrn但是这两个包我都导入了,并且也查看了这两个类,都是存在的。到底是什么问题啊?
启动tomcat 报org.apache.catalina.core.StandardContext listenerStart
2011-4-14 8:35:01 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.AbstractMethodError: com.microsoft.jdbc.base.BaseDatabaseMetaData.supportsGetGeneratedKeys()Zrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)rn at org.apache.catalina.core.StandardService.start(StandardService.java:519)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:581)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: java.lang.AbstractMethodError: com.microsoft.jdbc.base.BaseDatabaseMetaData.supportsGetGeneratedKeys()Zrn at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:123)rn at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)rn at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)rn ... 39 morern2011-4-14 8:35:01 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2011-4-14 8:35:01 org.apache.catalina.core.StandardContext startrn严重: Context [/yhoa] startup failed due to previous errorsrn2011-4-14 8:35:01 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrn2011-4-14 8:35:01 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbcrn严重: The web application [/yhoa] registered the JBDC driver [com.microsoft.jdbc.sqlserver.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.rn2011-4-14 8:35:01 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: The web application [/yhoa] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.rn2011-4-14 8:35:01 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: The web application [/yhoa] appears to have started a thread named [DataDirect Connect Finalizer-Thread] but has failed to stop it. This is very likely to create a memory leak.rn
启动Tomcat报artifact错误
当调用Tomcat启动工程的时候出现error, 如下:war exploded: Error during artifact deployment. See server log for details.解决方式如下:File-&amp;gt;Project Structure-&amp;gt;左侧栏Artifacts错误提示,以波浪线的形式提示用户点击右下角Fix按钮,选择修复,直到波浪线消失亲测有效...
tomcat 启动正常报404
双击tomcat, 检查配置,是否没选择
启动tomcat报这个错误
Publishing failed with multiple errorsrn Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/commons-fileupload-1.2.1.jar'.rn Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/commons-io-1.3.2.jar'.rn Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/freemarker-2.3.15.jar'.rn Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/ognl-2.7.3.jar'.rn Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/struts2-core-2.1.8.1.jar'.rn Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/xwork-core-2.1.6.jar'.rn
linux 启动 tomcat 报异常...
WARNING: error instantiating 'org.apache.juli.ClassLoaderLogManager' referenced by java.util.logging.manager, class not foundrnjava.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager not foundrn <>rnWARNING: error instantiating '1catalina.org.apache.juli.FileHandler,' referenced by handlers, class not foundrnjava.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler,rn <>rnException during runtime initializationrnjava.lang.ExceptionInInitializerErrorrn <>rnCaused by: java.lang.NullPointerExceptionrn <>rnrn这么解决.....
tomcat启动出错,报404错误
2009-9-25 14:38:23 org.springframework.web.context.ContextLoader initWebApplicationContextrn严重: Context initialization failedrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/conf/applicationContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: com.ibatis.sqlmap.client.SqlMapClientBuilderrnCaused by: java.lang.NoClassDefFoundError: com.ibatis.sqlmap.client.SqlMapClientBuilderrn at org.springframework.orm.ibatis.SqlMapClientFactoryBean.class$(SqlMapClientFactoryBean.java:72)rn at org.springframework.orm.ibatis.SqlMapClientFactoryBean.(SqlMapClientFactoryBean.java:71)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)rn at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)rnrnrn2009-9-25 14:38:23 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/conf/applicationContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: com.ibatis.sqlmap.client.SqlMapClientBuilderrnCaused by: java.lang.NoClassDefFoundError: com.ibatis.sqlmap.client.SqlMapClientBuilderrn at org.springframework.orm.ibatis.SqlMapClientFactoryBean.class$(SqlMapClientFactoryBean.java:72)rn at org.springframework.orm.ibatis.SqlMapClientFactoryBean.(SqlMapClientFactoryBean.java:71)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rnrn==============================================================web.xml文件rnrnrnstruts2rnrnrnrn rn characterEncoding rn com.chinaventure.cvsource.util.filter.CharacterEncodingFilter rnrn rn rn characterEncoding rn /* rnrnrnrn struts-cleanuprn org.apache.struts2.dispatcher.ActionContextCleanUprnrnrn struts-cleanuprn /*rnrn rnrn struts2rn org.apache.struts2.dispatcher.FilterDispatcherrnrnrnrn struts2rn /*rnrnrnrn contextConfigLocationrn rn /WEB-INF/conf/applicationContext.xml,rn /WEB-INF/conf/scheduler-context.xmlrn /WEB-INF/conf/service-context.xmlrn /WEB-INF/conf/dao-context.xmlrn rnrnrn log4jConfigLocationrn /WEB-INF/log4j.propertiesrn rnrn org.springframework.web.util.Log4jConfigListenerrnrnrn org.springframework.web.context.ContextLoaderListenerrnrn rn 30 rn rnrnrn jdbc/CVSource81rn javax.sql.DataSourcern Containerrn rnrnrn logon.jsprnrnrnrn=================================================================applicationContext.xmlrnrnrnrnrn rn rn java:comp/env/jdbc/CVSource81 rn rn rn rn rn rn WEB-INF/conf/integration-sql-map-config.xmlrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn PROPAGATION_REQUIRED,-Exceptionrn PROPAGATION_REQUIRED,-Exceptionrn PROPAGATION_REQUIRED,-Exceptionrn PROPAGATION_REQUIRED,-Exceptionrn PROPAGATION_REQUIRED,-Exceptionrn PROPAGATION_REQUIRED,-Exceptionrn PROPAGATION_REQUIRED,-Exceptionrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn transactionInterceptor rn rn rn rn rn rn rn
tomcat启动报:Connection refused
Tomcat启动时报如下错误:nWARN : com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@118d1a82 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception: (com.mchange.v2.resourcepool.BasicResourcePool#run ) 2018年05月04日17点02分ncom.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failurennThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.n at sun.reflect.GeneratedConstructorAccessor52.newInstance(Unknown Source)n at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)n at java.lang.reflect.Constructor.newInstance(Constructor.java:422)n at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)n at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1129)n at com.mysql.jdbc.MysqlIO.(MysqlIO.java:358)n at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2498)n at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2535)n at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2320)n at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:834)n at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:46)n at sun.reflect.GeneratedConstructorAccessor45.newInstance(Unknown Source)n at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)n at java.lang.reflect.Constructor.newInstance(Constructor.java:422)n at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)n at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416)n at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:347)n at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135)n at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)n at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)n at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)n at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)n at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)n at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)n at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)nCaused by: java.net.ConnectException: Connection refusedn at java.net.PlainSocketImpl.socketConnect(Native Method)n at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)n at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)n at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)n at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)n at java.net.Socket.connect(Socket.java:589)n at java.net.Socket.connect(Socket.java:538)n at java.net.Socket.(Socket.java:434)n at java.net.Socket.(Socket.java:244)n at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)n at com.mysql.jdbc.MysqlIO.(MysqlIO.java:308)n ... 19 moren说明:n1.刚开始查看mysql的运行状态是关闭的,然后启动mysql,启动成功;n![图片说明](https://img-ask.csdn.net/upload/201805/04/1525426214_452274.jpg)n2.再次启动tomcat还是失败,然后查看防火墙,发现tomcat的8080端口,和mysql的3306端口未添加进去,然后添加了后重启防火墙,显示添加成功;n![图片说明](https://img-ask.csdn.net/upload/201805/04/1525426151_518295.png)n3.再次启动还是失败,检查db.properties,测试通过,正确;n4.数据库权限:我的是用root账户连接数据库的,检查数据库发现也都有权限n注:tomcat和mysql在同一服务器中
tomcat启动报JDWP异常
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) ERROR: transport error 202: connect failed: Connection refused ERROR: JDWP Transport dt_socket
TOMCAT 启动报730060问题解决方法
方法: 打开电脑的服务管理,关掉防火墙服务即可!
Tomcat 启动总在报错误
严重: action: nullrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: invalid mappingrnCaused by: org.hibernate.MappingException: invalid mappingrn at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:425)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:656)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1198)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1167)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:285)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:354)rn at org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:295)rn at org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225)rn at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:871)rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:359)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4042)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4348)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: org.xml.sax.SAXParseException: The content of element type "class" must match "(meta*,subselect?,cache?,synchronize*,comment?,tuplizer*,(id|composite-id),discriminator?,natural-id?,(version|timestamp)?,(property|many-to-one|one-to-one|component|dynamic-component|properties|any|map|set|list|bag|idbag|array|primitive-array)*,((join*,subclass*)|joined-subclass*|union-subclass*),loader?,sql-insert?,sql-update?,sql-delete?,filter*,resultset*,(query|sql-query)*)".rn at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)rn at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)rn at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)rn at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)rn at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)rn at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)rn at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)rn at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rn at org.dom4j.io.SAXReader.read(SAXReader.java:465)rn at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:422)rn ... 43 morern2009-3-2 10:30:09 org.apache.catalina.core.ApplicationContext logrn信息: Marking servlet action as unavailablern2009-3-2 10:30:09 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet /testb2b threw load() exceptionrnjavax.servlet.UnavailableExceptionrn at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:880)rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:359)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4042)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4348)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn
tomcat报tomcat报
我用hibernate + webwork + spring运行时tomcat报rn严重: Error listenerStartrn严重: Context [/it270_bookstore] startup failed due to previous errorsrnrn有没有人解决各解释下
tomcat端口号
默认端口8080 记得tomcat支持http                         https                        ajp协议 微内核体系架构:内核指具有基本的功能,,其他的功能皆由操作系统的进程服务提供,,tomcat也作为服务在操作系统这种,提供服务。...
TOMCAT 端口号
[img]http://dl2.iteye.com/upload/attachment/0090/6048/a7b14df2-0a75-3a62-9822-0abbe04089ab.png[/img]
Tomcat端口号
打开Tomcat文件----conf----server.xml,右键编辑Win8系统Tomcat端口号8080被占用了,需要修改端口号,打开Tomcat文件----conf----server.xml,右键编辑:找到下面部分,把第一个引号内容改为80.重启Tomcat,即可。修改后的端口号为80...
启动Tomcat时端口号被占用的情况
Several ports (8005, 8080, 8009) required by Tomcat v8.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To star
在阿里云服务器启动tomcat,通过ip+端口号访问
1.在服务器解压tomcat 2.修改apache-tomcat-9.0.19/conf/server.xml文件 修改的地方有两处: 1.把Connector port的8080改成8081,因为8080给jenkins用,不改的话会产生冲突 &lt;Connector port="8081" protocol="HTTP/1.1" connectionTi...
windows解决端口号冲突
转自:https://blog.csdn.net/qq_36251958/article/details/79346299
启动Tomcat关于端口号被占用报错
严重: Error initializing endpoint java.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í?? at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:646) at o...
启动多个tomcat修改端口号不生效
启动多个端口号时,修改端口号后, 修改端口时最好3个端口都修改 第一个端口<Server port="8005" shutdown="SHUTDOWN">第二个端口,redirectPort也要修改 <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000"
修改tomcat端口号及同时启动多个tomat
修改tomcat端口号及同时启动多个tomat,附图文说明。。
启动和关闭 tomcat,目录结构,及修改默认端口号
1,配制 复制安装包,到项目根目录下,解压,设置JAVA_HOME环境变量,设计成, JDK安装目录,不带分号;,启动时找到 tomcat目录下,找到startup.bat 双击 即可启动! 关闭时,双击shutdown.bat 2,测试: 在浏览器输入, http://localhost:8080  这是tomcat 默认的 地址,如果能看到那只猫,就说明成功了!   3,检查 如果...
解决端口号冲突
查看端口:lsof -i:端口号 终止进程,释放端口:kill+PID pkill 见链接http://www.mamicode.com/info-detail-2315063.html,实例在第五点
dubbo管理控制台的安装 【以及】 tomcat启动配置
1.     进入到解压后tomcat文件夹中的bin文件夹下,点击startup.bat文件运行tomcat。 注意:此时要确保JDK已安装好且环境变量已配置好或者 在bin\startup.bat文件中的第一行前面加入: SET JAVA_HOME=(JDK目录) SET CATALINA_HOME=(解压后Tomcat的目录)。 如: SET JAVA_HOME=C:\P
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件