dubbo发布到tomcat7之后无法访问,提示404,日志显示启动报错

发布在webapps目录下
图片说明
但访问报错
图片说明
8080可以正常访问,而且manager app下显示/dubbo的running状态为false
图片说明
启动日志如下:
May 26, 2017 1:10:34 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
May 26, 2017 1:10:34 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
May 26, 2017 1:10:34 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCa
che', 'org.apache.jasper.compiler.TldLocationsCache@5fdddbf6')
May 26, 2017 1:10:38 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing log4j system
May 26, 2017 1:10:38 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
May 26, 2017 1:10:47 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.alibaba.citrus.webx.context.WebxContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'uriBrokerService': Cannot create inner bean '(inner bean)' of type [com.
alibaba.citrus.service.uribroker.impl.URIBrokerServiceImpl$URIBrokerInfo] while
setting bean property 'brokers' with key [0]; nested exception is org.springfram
ework.beans.factory.BeanCreationException: Error creating bean with name '(inner
bean)#25': Cannot create inner bean 'server' of type [com.alibaba.citrus.servic
e.uribroker.uri.GenericURIBroker] while setting constructor argument; nested exc
eption is org.springframework.beans.factory.BeanCreationException: Error creatin
g bean with name 'server': Error setting property values; nested exception is or
g.springframework.beans.NotWritablePropertyException: Invalid property 'URIType'
of bean class [com.alibaba.citrus.service.uribroker.uri.GenericURIBroker]: Bean
property 'URIType' is not writable or has an invalid setter method. Does the pa
rameter type of the setter match the return type of the getter?
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveInnerBean(BeanDefinitionValueResolver.java:230)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveManagedList(BeanDefinitionValueResolver.java:287)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
"localhost.2017-05-26.log" 362L, 43836C 1,1 Top
May 26, 2017 1:10:34 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
May 26, 2017 1:10:34 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
May 26, 2017 1:10:34 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@5fdddbf6')
May 26, 2017 1:10:38 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing log4j system
May 26, 2017 1:10:38 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
May 26, 2017 1:10:47 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.alibaba.citrus.webx.context.WebxContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'uriBrokerService': Cannot create inner bean '(inner bean)' of type
[com.alibaba.citrus.service.uribroker.impl.URIBrokerServiceImpl$URIBrokerInfo] while setting bean property 'brokers' with key [0]; nested exception is or
g.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#25': Cannot create inner bean 'server' of type [com.ali
baba.citrus.service.uribroker.uri.GenericURIBroker] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreation
Exception: Error creating bean with name 'server': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyExcepti
on: Invalid property 'URIType' of bean class [com.alibaba.citrus.service.uribroker.uri.GenericURIBroker]: Bean property 'URIType' is not writable or has a
n invalid setter method. Does the parameter type of the setter match the return type of the getter?
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)

求大神们帮忙看看什么情况
(zookeeper已经启动了)

3

1个回答

换个更高版本的tomcat试一下

-3
qq_40021661
天涯人副天 回复若真大地: 把jdk换成低版本的 或者换dubbo-admin的war包
5 个月之前 回复
qq_39228620
若真大地 回复char3: 你解决了吗
9 个月之前 回复
char3
char3 换过了,折腾好半天,jdk也换过1.8,tomcat换的8,都不行
大约 2 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
tomcat7启动报错
启动tomcat7的时候报的错,这是啥错:rnjava.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactoryrn at org.apache.catalina.startup.Bootstrap.(Bootstrap.java:73)rnCaused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactoryrn at java.net.URLClassLoader$1.run(URLClassLoader.java:200)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:188)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:307)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:252)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn ... 1 morernException in thread "main"
Dubbo启动报错
异常关键字: ERROR com.alibaba.dubbo.remoting.transport.AbstractClient - [DUBBO] Failed to start NettyClient com.alibaba.dubbo.remoting.RemotingException: client at com.alibaba.dubbo.remoting.transport.n...
dubbo启动报错
首先说明我的环境 两台电脑都是windows 环境 dubbo服务提供者一台电脑 zookeeper 是在另一台电脑启动,两台电脑都在局域网内,防火墙都已经关闭,如果两者部署在通一台电脑是没有问题的,下面是详细的报错信息:rn2016-08-06 16:18:09 [localhost-startStop-1] ERROR o.s.web.context.ContextLoader - Context initialization failedrncom.alibaba.dubbo.rpc.RpcException: Fail to start server(url: dubbo://192.168.1.113:20881/com。。。8769) Failed to bind NettyServer on /192.168.1.113:20881, cause: Failed to bind to: /192.168.1.113:20881rn at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:289)rn at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.openServer(DubboProtocol.java:266)rn at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.export(DubboProtocol.java:253)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:55)rn at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:56)rn at com.alibaba.dubbo.rpc.Protocol$Adpative.export(Protocol$Adpative.java)rn at com.alibaba.dubbo.registry.integration.RegistryProtocol.doLocalExport(RegistryProtocol.java:153)rn at com.alibaba.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:107)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:53)rn at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:54)rn at com.alibaba.dubbo.rpc.Protocol$Adpative.export(Protocol$Adpative.java)rn at com.alibaba.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:485)rn at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:281)rn at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:242)rn at com.alibaba.dubbo.config.ServiceConfig.export(ServiceConfig.java:143)rn at com.alibaba.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:109)rn at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:96)rn at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)rn at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:954)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: com.alibaba.dubbo.remoting.RemotingException: Failed to bind NettyServer on /192.168.1.113:20881, cause: Failed to bind to: /192.168.1.113:20881rn at com.alibaba.dubbo.remoting.transport.AbstractServer.(AbstractServer.java:72)rn at com.alibaba.dubbo.remoting.transport.netty.NettyServer.(NettyServer.java:63)rn at com.alibaba.dubbo.remoting.transport.netty.NettyTransporter.bind(NettyTransporter.java:33)rn at com.alibaba.dubbo.remoting.Transporter$Adpative.bind(Transporter$Adpative.java)rn at com.alibaba.dubbo.remoting.Transporters.bind(Transporters.java:48)rn at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchanger.bind(HeaderExchanger.java:41)rn at com.alibaba.dubbo.remoting.exchange.Exchangers.bind(Exchangers.java:63)rn at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:287)rn ... 31 common frames omittedrnCaused by: org.jboss.netty.channel.ChannelException: Failed to bind to: /192.168.1.113:20881rn at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272)rn at com.alibaba.dubbo.remoting.transport.netty.NettyServer.doOpen(NettyServer.java:94)rn at com.alibaba.dubbo.remoting.transport.AbstractServer.(AbstractServer.java:67)rn ... 38 common frames omittedrnCaused by: java.net.BindException: Cannot assign requested address: bindrn at sun.nio.ch.Net.bind0(Native Method)rn at sun.nio.ch.Net.bind(Unknown Source)rn at sun.nio.ch.Net.bind(Unknown Source)rn at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)rn at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)rn at org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193)rn at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:366)rn at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:290)rn at org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42)rn ... 3 common frames omittedrn八月 06, 2016 4:18:09 下午 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrncom.alibaba.dubbo.rpc.RpcException: Fail to start server(url: dubbo://192.168.1.113:20881/com.。。。8769) Failed to bind NettyServer on /192.168.1.113:20881, cause: Failed to bind to: /192.168.1.113:20881rn at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:289)rn at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.openServer(DubboProtocol.java:266)rn at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.export(DubboProtocol.java:253)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:55)rn at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:56)rn at com.alibaba.dubbo.rpc.Protocol$Adpative.export(Protocol$Adpative.java)rn at com.alibaba.dubbo.registry.integration.RegistryProtocol.doLocalExport(RegistryProtocol.java:153)rn at com.alibaba.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:107)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:53)rn at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:54)rn at com.alibaba.dubbo.rpc.Protocol$Adpative.export(Protocol$Adpative.java)rn at com.alibaba.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:485)rn at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:281)rn at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:242)rn at com.alibaba.dubbo.config.ServiceConfig.export(ServiceConfig.java:143)rn at com.alibaba.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:109)rn at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:96)rn at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)rn at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:954)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:41rn
tomcat7 Spring3.1 启动报错
SEVERE: ContainerBase.addChild: start: rnorg.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/SafeCity]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)rn at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)rn at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)rn at java.util.concurrent.FutureTask.run(FutureTask.java:166)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:722)rnCaused by: java.lang.NullPointerExceptionrn at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:142)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5423)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 11 morernrn十二月 12, 2013 9:09:39 下午 org.apache.catalina.startup.HostConfig deployWARrnSEVERE: Error deploying web application archive C:\Users\Administrator\Desktop\apache-tomcat-7.0.42\webapps\SafeCity.warrnjava.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/SafeCity]]rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)rn at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)rn at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)rn at java.util.concurrent.FutureTask.run(FutureTask.java:166)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:722)rnrn[color=#FF0000]我的程序发布在Tomcat6上没有问题,但是发布在Tomcat上启动就报错,这事什么原因呢?我用的spring3.1.0,有没有遇到这种问题呀?不是web.xml中url-pattern加‘/’的问题,[/color]rn
tomcat7下正常的工程在tomcat8下启动报错
问题报错: java.lang.NoSuchMethodError: org.springframework.web.context.ConfigurableWebApplicationContext.setId(Ljava/lang/String;)V         at org.springframework.web.context.ContextLoader.configureAndR
解决dubbo启动报错的问题
解决dubbo启动报错,加载失败问题。亲测此文件可以使用
dubbo服务提供者启动报错
log4j:WARN No appenders could be found for logger (org.springframework.core.env.StandardEnvironment).rnlog4j:WARN Please initialize the log4j system properly.rnlog4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.rnException in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.alibaba.dubbo.demo.DemoService': Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerErrorrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1101)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)rn at com.alibaba.dubbo.demo.provider.server_main.main(server_main.java:19)rnCaused by: java.lang.ExceptionInInitializerErrorrn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:526)rn at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)rn at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1094)rn ... 13 morernCaused by: java.lang.IllegalStateException: fail to create adaptive instance: java.lang.IllegalStateException: Can not create adaptive extenstion interface com.alibaba.dubbo.rpc.Protocol, cause: Failed to load extension class(interface: interface com.alibaba.dubbo.common.compiler.Compiler, class line: com.alibaba.dubbo.common.compiler.support.JavassistCompiler) in jar:file:/C:/Users/wanyanyangwei/.m2/repository/com/alibaba/dubbo/2.5.3/dubbo-2.5.3.jar!/META-INF/dubbo/internal/com.alibaba.dubbo.common.compiler.Compiler, cause: javassist/ClassPathrn at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:459)rn at com.alibaba.dubbo.config.ServiceConfig.(ServiceConfig.java:60)rn ... 20 morernCaused by: java.lang.IllegalStateException: Can not create adaptive extenstion interface com.alibaba.dubbo.rpc.Protocol, cause: Failed to load extension class(interface: interface com.alibaba.dubbo.common.compiler.Compiler, class line: com.alibaba.dubbo.common.compiler.support.JavassistCompiler) in jar:file:/C:/Users/wanyanyangwei/.m2/repository/com/alibaba/dubbo/2.5.3/dubbo-2.5.3.jar!/META-INF/dubbo/internal/com.alibaba.dubbo.common.compiler.Compiler, cause: javassist/ClassPathrn at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:723)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:455)rn ... 21 morernCaused by: java.lang.IllegalStateException: Failed to load extension class(interface: interface com.alibaba.dubbo.common.compiler.Compiler, class line: com.alibaba.dubbo.common.compiler.support.JavassistCompiler) in jar:file:/C:/Users/wanyanyangwei/.m2/repository/com/alibaba/dubbo/2.5.3/dubbo-2.5.3.jar!/META-INF/dubbo/internal/com.alibaba.dubbo.common.compiler.Compiler, cause: javassist/ClassPathrn at com.alibaba.dubbo.common.extension.ExtensionLoader.loadFile(ExtensionLoader.java:685)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.loadExtensionClasses(ExtensionLoader.java:591)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getExtensionClasses(ExtensionLoader.java:567)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtensionClass(ExtensionLoader.java:728)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:721)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:455)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtensionClass(ExtensionLoader.java:738)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtensionClass(ExtensionLoader.java:732)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:721)rn ... 22 morernCaused by: java.lang.NoClassDefFoundError: javassist/ClassPathrn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:270)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.loadFile(ExtensionLoader.java:627)rn ... 30 morernCaused by: java.lang.ClassNotFoundException: javassist.ClassPathrn at java.net.URLClassLoader$1.run(URLClassLoader.java:366)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:355)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:354)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:425)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:358)rn ... 33 morern
Dubbo消费者启动报错
报错如下:172.16.238.68是我的本机ip [DUBBO] Failed to start NettyClient TS20160418002/172.16.234.102 connect to the server /172.16.238.68:20880 (check == false, ignore and retry later!), cause: client(url:dubb...
Dubbo服务启动报错
最近在优化Dubbo项目过程中遇到了一下问题,在启动dubbo时报一下错误 Linux环境 + Dubbo 2.5.3 java.lang.IllegalArgumentException: Invalid registry store file /pub/.dubbo/dubbo-registry-224.5.6.7.cache, cause: Failed to create dire
# Dubbo项目启动报错(一)
Dubbo项目启动报错(一)Failed to load registry store file, cause: Malformed \uxxxx encoding.为了使得服务消费方能很好的接入服务提供方,减轻注册中心的压力,Dubbo 在本地缓存注册中心通过删除 C:\Users\xxxx.dubbo\dubbo-registry-127.0.0.1.cache
Dubbo 管理控制台启动报错
参考: 安装Dubbo管理控制台 2.5.4-SNAPSHOT dubbo admin error 下载dubbo-admin-2.5.4.war初次使用dubbo管理控制台,启动tomcat后,访问url报错,查看tomcat启动日志,发现以下错误:ERROR context.ContextLoader - Context initialization failed org.springfr
打包之后 发布 无法访问项目中的JSP文件
打包之后 发布 无法访问项目中的JSP文件 jar 改为 war
【404无法访问】讨论
apache的404:rn1、目录权限:Options none问题rn2、80接口问题rn3、DocumentRoot的问题rn4、hosts文件问题rnrn不知道除此之外还会有什么能够导致目录文件无法访问(404)的问题rnrn欢迎大家来讨论,最近在家里按wamp(分装),出现了这个情况,以前的文档,以前没问题,昨天安装的时候出现了这个问题,想听听各位的见解,希望将这个话题观个通透的同道们来发表表下你的见解
eclipse10部署项目到tomcat7报404
各位大牛,我把项目拷贝到tomcat,用tomcat直接启动,可以正常访问页面。但是如果我用eclipse10部署项目的方式部署到tomcat7,访问的时候就报404,我的另一个项目却依然可以正常访问,请问这是怎么回事儿啊?(两个项目用tomcat启动都可以访问,用eclipse部署,就一个正常,一个报404,报404的项目在另一个机器上用eclipse部署可以正常运作),感谢大牛啊!
tomcat7如何分割日志
网上找了很多自动分割tomcat的catalina.out日志文件的方法,大部分都是说通过cronolog来进行分割,但是都是针对tomcat7以前的旧版本的,我用的是tomcat7,按照这些方法都有问题,具体如下:rn1、安装cronolog,路径为:/usr/local/sbin/cronologrn2、修改bin/catalina.sh文件的两处地方,标红的为修改的内容,具体如下:rn(1)if [ -z "$CATALINA_OUT" ] ; thenrn [color=#FF0000]CATALINA_OUT="$CATALINA_BASE"/logs/catalina.out[/color]rnfirn改为:rnif [ -z "$CATALINA_OUT" ] ; thenrn [color=#FF0000]CATALINA_OUT="$CATALINA_BASE"/logs/catalina.%Y-%m-%d.out[/color]rnfirn(2)[color=#FF0000]touch "$CATALINA_OUT"[/color] rnif [ "$1" = "-security" ] ; thenrn if [ $have_tty -eq 1 ]; thenrn echo "Using Security Manager"rn firn shiftrn eval \"$_RUNJAVA\" \"$LOGGING_CONFIG\" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \rn -Djava.endorsed.dirs=\"$JAVA_ENDORSED_DIRS\" -classpath \"$CLASSPATH\" \rn -Djava.security.manager \rn -Djava.security.policy==\"$CATALINA_BASE/conf/catalina.policy\" \rn -Dcatalina.base=\"$CATALINA_BASE\" \rn -Dcatalina.home=\"$CATALINA_HOME\" \rn -Djava.io.tmpdir=\"$CATALINA_TMPDIR\" \rn [color=#FF0000]org.apache.catalina.startup.Bootstrap "$@" start \rn >> "$CATALINA_OUT" 2>&1 "&"[/color] rn elsern eval \"$_RUNJAVA\" \"$LOGGING_CONFIG\" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \rn -Djava.endorsed.dirs=\"$JAVA_ENDORSED_DIRS\" -classpath \"$CLASSPATH\" \rn -Dcatalina.base=\"$CATALINA_BASE\" \rn -Dcatalina.home=\"$CATALINA_HOME\" \rn -Djava.io.tmpdir=\"$CATALINA_TMPDIR\" \rn [color=#FF0000]org.apache.catalina.startup.Bootstrap "$@" start \rn >> "$CATALINA_OUT" 2>&1 "&"[/color]rn rnrn firnrn if [ ! -z "$CATALINA_PID" ]; thenrn echo $! > "$CATALINA_PID"rn firn改为:rn[color=#FF0000]# touch "$CATALINA_OUT"[/color] rnif [ "$1" = "-security" ] ; thenrn if [ $have_tty -eq 1 ]; thenrn echo "Using Security Manager"rn firn shiftrn eval \"$_RUNJAVA\" \"$LOGGING_CONFIG\" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \rn -Djava.endorsed.dirs=\"$JAVA_ENDORSED_DIRS\" -classpath \"$CLASSPATH\" \rn -Djava.security.manager \rn -Djava.security.policy==\"$CATALINA_BASE/conf/catalina.policy\" \rn -Dcatalina.base=\"$CATALINA_BASE\" \rn -Dcatalina.home=\"$CATALINA_HOME\" \rn -Djava.io.tmpdir=\"$CATALINA_TMPDIR\" \rn [color=#FF0000]org.apache.catalina.startup.Bootstrap "$@" start 2>&1 \rn | /usr/local/sbin/cronolog "$CATALINA_OUT" >> /dev/null &[/color]rn elsern eval \"$_RUNJAVA\" \"$LOGGING_CONFIG\" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \rn -Djava.endorsed.dirs=\"$JAVA_ENDORSED_DIRS\" -classpath \"$CLASSPATH\" \rn -Dcatalina.base=\"$CATALINA_BASE\" \rn -Dcatalina.home=\"$CATALINA_HOME\" \rn -Djava.io.tmpdir=\"$CATALINA_TMPDIR\" \rn [color=#FF0000]org.apache.catalina.startup.Bootstrap "$@" start 2>&1 \rn | /usr/local/sbin/cronolog "$CATALINA_OUT" >> /dev/null &[/color]rnrn firnrn if [ ! -z "$CATALINA_PID" ]; thenrn echo $! > "$CATALINA_PID"rn firn3、修改完毕,启动tomocat,报错如下:rnUsing CATALINA_BASE: /usr/local/tomcat-7.0.39rnUsing CATALINA_HOME: /usr/local/tomcat-7.0.39rnUsing CATALINA_TMPDIR: /usr/local/tomcat-7.0.39/temprnUsing JRE_HOME: /usr/local/jdk1.7.0_17/jrernUsing CLASSPATH: /usr/local/tomcat-7.0.39/bin/bootstrap.jar:/usr/local/tomcat-7.0.39/bin/tomcat-juli.jarrn用法: java [-options] class [args...]rn (执行类)rn 或 java [-options] -jar jarfile [args...]rn (执行 jar 文件)rn其中选项包括:rn -d32 使用 32 位数据模型 (如果可用)rn -d64 使用 64 位数据模型 (如果可用)rn -server 选择 "server" VMrn 默认 VM 是 server,rn 因为您是在服务器类计算机上运行。rnrnrn -cp rn -classpath rn 用 : 分隔的目录, JAR 档案rn 和 ZIP 档案列表, 用于搜索类文件。rn -D=rn 设置系统属性rn -verbose[:class|gc|jni]rn 启用详细输出rn -version 输出产品版本并退出rn -version:rn 需要指定的版本才能运行rn -showversion 输出产品版本并继续rn -jre-restrict-search | -no-jre-restrict-searchrn 在版本搜索中包括/排除用户专用 JRErn -? -help 输出此帮助消息rn -X 输出非标准选项的帮助rn -ea[:...|:]rn -enableassertions[:...|:]rn 按指定的粒度启用断言rn -da[:...|:]rn -disableassertions[:...|:]rn 禁用具有指定粒度的断言rn -esa | -enablesystemassertionsrn 启用系统断言rn -dsa | -disablesystemassertionsrn 禁用系统断言rn -agentlib:[=]rn 加载本机代理库 , 例如 -agentlib:hprofrn 另请参阅 -agentlib:jdwp=help 和 -agentlib:hprof=helprn -agentpath:[=]rn 按完整路径名加载本机代理库rn -javaagent:[=]rn 加载 Java 编程语言代理, 请参阅 java.lang.instrumentrn -splash:rn 使用指定的图像显示启动屏幕rn有关详细信息, 请参阅 http://www.oracle.com/technetwork/java/javase/documentation/index.html。rnrn请教各位高手,应该如何分割tomcat的日志,上面这种方法是否可行,如何修改才能生效?rn另外还可以采用其他什么方法,具体那种方法最好,谢谢!
关于使用Tomcat7发布项目,页面跳转404的一种解决方案
当我们使用Spring框架,页面跳转404异常 当页面跳转发生404异常时,可能是视图解析器配置的路径与目录结构不匹配,可以检查是否一致. 如果处理器映射器中的方法返回的是字符串,需要使用tomcat8来发布项目,因为tomcat7在返回值为字符串时对路径的解析会出现问题.(注:先确定pom.xml文件中是否配置了tomcat) ...
WebApi发布到外网提示404问题
今天在做微信接口的对接,需要把webApi发布到服务器,放上去的时候,提示404 找了以后,发现了这段代码,粘贴上去就可以用了在web.config添加如下节点 <system.webServer> <modules runAllManagedModulesForAllRequests="true"> <remove name="WebDAVModule" /> </modu
tomcat7 32位发布失败
tomcat7 64位+mybatis3.7+axis2+spring3.2.10 一切正常;但由于客户是32位机器,将环境由64位挪过去,就报错指向jdbc.propertiesrnrn[code=java]严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'dataSource' defined in URL [jar:file:/H:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/axis2/WEB-INF/lib/dreamer_xpos_pos.jar!/resource/spring-config-biz.xml]: Could not resolve placeholder 'jdbc.biz.driver' in string value "$jdbc.biz.driver"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'jdbc.biz.driver' in string value "$jdbc.biz.driver"rn at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:209)[/code]rnrnspring.xml如下rn[code=java]rn rn rn rn rn rn rn rn[/code]
tomcat服务启动报错日志
查看 catalina log文件 信息: Deploying web application archive D:\apache-tomcat-7.0.37\webapps\cas.war 三月 04, 2013 11:21:11 上午 org.apache.catalina.core.StandardContext startInternal 严重: Error filterStar
springboot启动之后输入url显示404
目录结构不符合要求,springboot要求AppApplication.java必须位于最外层, 及就是其他的conroller必须位于AppApplication.java内部包下。 大白话就是controller 的包名要和AppApplication.java同级。见下图。 为什么是这样呢?因为@SpringBootApplication注解默认会去扫描同级目录和子集目录下的类。 ...
Wordpress之发表文章之后查看显示404
刚刚写了一篇LAMP+wordpress搭建博客的,发表成功之后想看一下效果,结果显示404,OMG!难道没成功?在后台所有文章里显示有, 但是点击却显示404,404表示为指向的链接不存在。于是发现自己访问的地址为http://www.zhaoyongtao.top /wordpress/index.php/2016/04/14/linux中使用wordpress搭建美化博客由此确定应是此链接的
spring boot正常启动之后无法访问报404的解决办法
springboot项目正常启动了,但是我写了一个controller ,用的@RestController 注解去配置的controller,然后路径也搭好了(这里也不是我的代码问题,用了spring mvc这么多次),但是浏览器一直报404.最后原因是,spring boot只会扫描启动类当前包和以下的包  。 如果将 spring boot 放在 包  com.dai.controller
Xfire发布到Tomcat,启动报错
严重: Error initializing XFireServlet.rnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.codehaus.xfire.spring.ServiceBean' defined in class path resource [META-INF/xfire/services.xml]: Initialization of bean failed; nested exception is org.codehaus.xfire.XFireRuntimeException: Cannot create mapping for java.util.List, unspecified component type for parameter 0 of method myListTest in interface com.webservice.zw.myTestrnorg.codehaus.xfire.XFireRuntimeException: Cannot create mapping for java.util.List, unspecified component type for parameter 0 of method myListTest in interface com.webservice.zw.myTestrnrn2009-1-15 10:11:26 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet /Mywebservice threw load() exceptionrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.codehaus.xfire.spring.ServiceBean' defined in class path resource [META-INF/xfire/services.xml]: Initialization of bean failed; nested exception is org.codehaus.xfire.XFireRuntimeException: Cannot create mapping for java.util.List, unspecified component type for parameter 0 of method myListTest in interface com.webservice.zw.myTestrnorg.codehaus.xfire.XFireRuntimeException: Cannot create mapping for java.util.List, unspecified component type for parameter 0 of method myListTest in interface com.webservice.zw.myTestrn at org.codehaus.xfire.aegis.type.DefaultTypeCreator.createCollectionType(DefaultTypeCreator.java:43)rn at org.codehaus.xfire.aegis.type.java5.Java5TypeCreator.createCollectionType(Java5TypeCreator.java:138)rn at org.codehaus.xfire.aegis.type.XMLTypeCreator.createCollectionType(XMLTypeCreator.java:137)rn at org.codehaus.xfire.aegis.type.AbstractTypeCreator.createTypeForClass(AbstractTypeCreator.java:91)rn at org.codehaus.xfire.aegis.type.AbstractTypeCreator.createType(AbstractTypeCreator.java:334)rn at org.codehaus.xfire.aegis.AegisBindingProvider.getSuggestedName(AegisBindingProvider.java:226)rn at org.codehaus.xfire.service.binding.DefaultServiceConfiguration.getInParameterName(DefaultServiceConfiguration.java:160)rn at org.codehaus.xfire.service.binding.ObjectServiceFactory.getInParameterName(ObjectServiceFactory.java:1018)rn at org.codehaus.xfire.service.binding.ObjectServiceFactory.addOperation(ObjectServiceFactory.java:776)rn at org.codehaus.xfire.service.binding.ObjectServiceFactory.initializeOperations(ObjectServiceFactory.java:720)rn at org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:418)rn at org.codehaus.xfire.spring.ServiceBean.afterPropertiesSet(ServiceBean.java:176)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1059)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320)rn at org.codehaus.xfire.spring.XFireConfigLoader.getXFireApplicationContext(XFireConfigLoader.java:107)rn at org.codehaus.xfire.spring.XFireConfigLoader.loadContext(XFireConfigLoader.java:41)rn at org.codehaus.xfire.transport.http.XFireConfigurableServlet.loadConfig(XFireConfigurableServlet.java:86)rn at org.codehaus.xfire.transport.http.XFireConfigurableServlet.createXFire(XFireConfigurableServlet.java:54)rn at org.codehaus.xfire.transport.http.XFireServlet.init(XFireServlet.java:45)rn at javax.servlet.GenericServlet.init(GenericServlet.java:211)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)rn at org.apache.catalina.core.StandardService.start(StandardService.java:450)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:551)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:294)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
第一次进入网站弹窗提示更新日志,之后不再显示
如何在第一次打开网站弹框,之后重新打开,刷新,跳转过来就不打开? 使用HTML5的本地存储localStorage来做 var versionNo = '1.1.1'; if(!window.localStorage.getItem('update-version') || window.localStorage.getItem('update-version') !=versionN...
dubbo(二)发布dubbo服务
1.pom.xml中添加相关jar包 com.alibaba dubbo org.apache.zookeeper zookeeper com.github.sgroschupf zkclient
tomcat7启动报错,项目在即,恳求大家帮帮忙
在D:\apache-tomcat-7.0.2\conf\Context.xml中配置了连接池 如下:rnrnrn当启动tomcat7是就报错rn严重: Parse Fatal Error at line 34 column 751: 对实体 "characterEncoding" 的引用必须以 ';' 分隔符结尾。rnrnorg.xml.sax.SAXParseException; systemId: file:/D:/apache-tomcat-7.0.2/conf/context.xml; lineNumber: 34; columnNumber: 751; 对实体 "characterEncoding" 的引用必须以 ';' 分隔符结尾。rn控制台还有报有这样的一个错误rnrn因此无法启动应用tomcat,没法开工啊,项目即将上线,大家都知道这段时间是最艰难的,希望大家帮助我渡过难关!不甚感激!!rn
无法关闭 tomcat7 catalina.out日志
项目使用了Spring3.1.3框架rn用了log4j rn想把spring框架输出的日志关闭掉,但试了多种办法都不行rn更改conf/logging.properties 中的等级rn更改log4j.properties 的配置rn把server.xml 中的
windows7共享之后无法访问
有时候你会发现你明明已经共享了;但是对方却无法访问;现在我来告诉你;如何处理这个问题。
wdcp安装之后无法访问
wdcp安装之后仍然无法通过端口进行访问 使用的阿里云的ECS云服务器 1. 原因:阿里云服务器后台的安全组要设置下 &gt; 阿里云服务器ECS处于安全考虑默认自带安全组(仅开放了22号和3389号端口) &gt;https://yq.aliyun.com/articles/701181?spm=a2c4e.11155472.0.0.38bf677avSOMog 但是在开启了安全...
IIS7 发布之后访问总提示404错误
IIS7 发布之后访问总提示404错误rnrnwindwos service 20008 32位rnIIS7.0 rnrn程序里面使用了URL重写rnroutes 重写 路径 http://www.xxxx.com/indexrn这样的格式rnrnrn我之前用的64位的系统 完全OK,没有问题,但是现在改成了32位系统就会提示这样的错误。绝对路径是可以访问的。rn有遇到这样的情况,麻烦指点一下!!!
webService生成服务端之后,启动报错
[code=text]信息: WSSERVLET12: JAX-WS context listener initializingrn2013-9-12 15:35:47 com.sun.xml.ws.transport.http.servlet.WSServletContextListener parseAdaptersAndCreateDelegatern严重: WSSERVLET11: failed to parse runtime descriptor: javax.xml.ws.WebServiceException: Unable to create JAXBContextrnjavax.xml.ws.WebServiceException: Unable to create JAXBContextrn at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:171)rn at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:99)rn at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:250)rn at com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:343)rn at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:205)rn at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:513)rn at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:257)rn at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:151)rn at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.parseAdaptersAndCreateDelegate(WSServletContextListener.java:131)rn at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:152)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4172)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4671)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)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:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:701)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:585)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.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptionsrnwww.tmzskj.com.bs.service.ChannelService is an interface, and JAXB can't handle interfaces.rn this problem is related to the following location:rn at www.tmzskj.com.bs.service.ChannelServicern at private www.tmzskj.com.bs.service.ChannelService www.tmzskj.com.bs.action.jaxws.GetChannelServiceResponse._returnrn at www.tmzskj.com.bs.action.jaxws.GetChannelServiceResponsernwww.tmzskj.com.bs.service.ChannelService does not have a no-arg default constructor.rn this problem is related to the following location:rn at www.tmzskj.com.bs.service.ChannelServicern at private www.tmzskj.com.bs.service.ChannelService www.tmzskj.com.bs.action.jaxws.GetChannelServiceResponse._returnrn at www.tmzskj.com.bs.action.jaxws.GetChannelServiceResponsernrn at java.security.AccessController.doPrivileged(Native Method)rn at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:158)rn ... 33 morernCaused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptionsrnwww.tmzskj.com.bs.service.ChannelService is an interface, and JAXB can't handle interfaces.rn this problem is related to the following location:rn at www.tmzskj.com.bs.service.ChannelServicern at private www.tmzskj.com.bs.service.ChannelService www.tmzskj.com.bs.action.jaxws.GetChannelServiceResponse._returnrn at www.tmzskj.com.bs.action.jaxws.GetChannelServiceResponsernwww.tmzskj.com.bs.service.ChannelService does not have a no-arg default constructor.rn this problem is related to the following location:rn at www.tmzskj.com.bs.service.ChannelServicern at private www.tmzskj.com.bs.service.ChannelService www.tmzskj.com.bs.action.jaxws.GetChannelServiceResponse._returnrn at www.tmzskj.com.bs.action.jaxws.GetChannelServiceResponsernrn at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:106)rn at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:466)rn at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:298)rn at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:141)rn at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1157)rn at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:188)rn at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:111)rn at com.sun.xml.ws.developer.JAXBContextFactory$1.createJAXBContext(JAXBContextFactory.java:113)rn at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:166)rn at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:159)rn ... 35 morern2013-9-12 15:35:47 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class com.sun.xml.ws.transport.http.servlet.WSServletContextListenerrncom.sun.xml.ws.transport.http.servlet.WSServletException: WSSERVLET11: failed to parse runtime descriptor: javax.xml.ws.WebServiceException: Unable to create JAXBContextrn at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.parseAdaptersAndCreateDelegate(WSServletContextListener.java:141)rn at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:152)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4172)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4671)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)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:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:701)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:585)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: javax.xml.ws.WebServiceException: Unable to create JAXBContextrn at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:171)rn at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:99)rn at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:250)rn at com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:343)rn at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:205)rn at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:513)rn at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:257)rn at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:151)rn at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.parseAdaptersAndCreateDelegate(WSServletContextListener.java:131)rn ... 25 morernCaused by: java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptionsrnwww.tmzskj.com.bs.service.ChannelService is an interface, and JAXB can't handle interfaces.rn this problem is related to the following location:rn at www.tmzskj.com.bs.service.ChannelServicern at private www.tmzskj.com.bs.service.ChannelService www.tmzskj.com.bs.action.jaxws.GetChannelServiceResponse._returnrn rn at com.sun.xml.ws.develotstart[/code]
wordpress发布文章404
wordpress固定链接最好包含标题名称实现seo; wordpress不能发布带有中文题目的文章,这里采用的是wp_slug_translate插件自动翻译题目; 这样还是不行的,需要提供修改注册文件的权限,在httpd.conf中修改: AllowOverride 的None改成All 同时查询mod_rewrite.so,把前面的#去掉应该就可以了。
工程启动报错,一下是日志
rn十一月 20, 2014 3:37:46 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Common Files\NetSarang;F:\oracle\app\oracle\product\11.2.0\server\bin;;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\soft\instantclient_12_1;.rn十一月 20, 2014 3:37:46 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["http-nio-8081"]rn十一月 20, 2014 3:37:46 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelectorrn信息: Using a shared selector for servlet write/readrn十一月 20, 2014 3:37:46 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["ajp-nio-8009"]rn十一月 20, 2014 3:37:46 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelectorrn信息: Using a shared selector for servlet write/readrn十一月 20, 2014 3:37:46 下午 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 658 msrn十一月 20, 2014 3:37:46 下午 org.apache.catalina.core.StandardService startInternalrn信息: Starting service Catalinarn十一月 20, 2014 3:37:46 下午 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet Engine: Apache Tomcat/7.0.53rn十一月 20, 2014 3:37:56 下午 org.apache.catalina.core.ApplicationContext logrn信息: Spring WebApplicationInitializers detected on classpath: [org.glassfish.jersey.server.spring.SpringWebApplicationInitializer@587b870e]rn十一月 20, 2014 3:37:58 下午 org.glassfish.jersey.server.ApplicationHandler initializern信息: Initiating Jersey application, version Jersey: 2.5.1 2014-01-02 13:43:00...rn十一月 20, 2014 3:37:58 下午 org.glassfish.jersey.server.spring.SpringComponentProvider initializern严重: Spring context lookup failed, skipping spring component provider initialization.rn十一月 20, 2014 3:37:58 下午 org.glassfish.jersey.internal.Errors logErrorsrn严重: Following issues have been detected: rnWARNING: No injection source found for a parameter of type public void com.upTest.addNewTopic(java.io.InputStream,java.lang.String) at index 0.rnrn十一月 20, 2014 3:37:58 下午 org.apache.catalina.core.ApplicationContext logrn严重: StandardWrapper.Throwablernorg.glassfish.jersey.server.model.ModelValidationException: Validation of the application resource model has failed during application initialization.rn[[FATAL] No injection source found for a parameter of type public void com.upTest.addNewTopic(java.io.InputStream,java.lang.String) at index 0.; source='ResourceMethodhttpMethod=POST, consumedTypes=[multipart/form-data], producedTypes=[], suspended=false, suspendTimeout=0, suspendTimeoutUnit=MILLISECONDS, invocable=Invocablehandler=ClassBasedMethodHandlerhandlerClass=class com.upTest, handlerConstructors=[org.glassfish.jersey.server.model.HandlerConstructor@43caa144], definitionMethod=public void com.upTest.addNewTopic(java.io.InputStream,java.lang.String), parameters=[Parameter [type=class java.io.InputStream, source=file, defaultValue=null], Parameter [type=class java.lang.String, source=userId, defaultValue=null]], responseType=void, nameBindings=[]']rn at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:444)rn at org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:162)rn at org.glassfish.jersey.server.ApplicationHandler$3.run(ApplicationHandler.java:304)rn at org.glassfish.jersey.internal.Errors$2.call(Errors.java:289)rn at org.glassfish.jersey.internal.Errors$2.call(Errors.java:286)rn at org.glassfish.jersey.internal.Errors.process(Errors.java:315)rn at org.glassfish.jersey.internal.Errors.process(Errors.java:297)rn at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:286)rn at org.glassfish.jersey.server.ApplicationHandler.(ApplicationHandler.java:301)rn at org.glassfish.jersey.servlet.WebComponent.(WebComponent.java:311)rn at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:169)rn at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:359)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1241)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1154)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1041)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4944)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5230)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnrn十一月 20, 2014 3:37:58 下午 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet /Jersey threw load() exceptionrnorg.glassfish.jersey.server.model.ModelValidationException: Validation of the application resource model has failed during application initialization.rn[[FATAL] No injection source found for a parameter of type public void com.upTest.addNewTopic(java.io.InputStream,java.lang.String) at index 0.; source='ResourceMethodhttpMethod=POST, consumedTypes=[multipart/form-data], producedTypes=[], suspended=false, suspendTimeout=0, suspendTimeoutUnit=MILLISECONDS, invocable=Invocablehandler=ClassBasedMethodHandlerhandlerClass=class com.upTest, handlerConstructors=[org.glassfish.jersey.server.model.HandlerConstructor@43caa144], definitionMethod=public void com.upTest.addNewTopic(java.io.InputStream,java.lang.String), parameters=[Parameter [type=class java.io.InputStream, source=file, defaultValue=null], Parameter [type=class java.lang.String, source=userId, defaultValue=null]], responseType=void, nameBindings=[]']rn at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:444)rn at org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:162)rn at org.glassfish.jersey.server.ApplicationHandler$3.run(ApplicationHandler.java:304)rn at org.glassfish.jersey.internal.Errors$2.call(Errors.java:289)rn at org.glassfish.jersey.internal.Errors$2.call(Errors.java:286)rn at org.glassfish.jersey.internal.Errors.process(Errors.java:315)rn at org.glassfish.jersey.internal.Errors.process(Errors.java:297)rn at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:286)rn at org.glassfish.jersey.server.ApplicationHandler.(ApplicationHandler.java:301)rn at org.glassfish.jersey.servlet.WebComponent.(WebComponent.java:311)rn at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:169)rn at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:359)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1241)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1154)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1041)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4944)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5230)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnrn十一月 20, 2014 3:37:58 下午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["http-nio-8081"]rn十一月 20, 2014 3:37:58 下午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["ajp-nio-8009"]rn十一月 20, 2014 3:37:58 下午 org.apache.catalina.startup.Catalina startrn信息: Server startup in 11942 msrn[/code]rnrn用的是jersey2.5.1rnrnweb.xml配置rnrnrn Jersey Web Applicationrn org.glassfish.jersey.servlet.ServletContainerrn rn jersey.config.server.provider.packagesrn comrn rn 1rn rn rn Jersey Web Applicationrn /rest/*rnrnrn之前以为是tomcat7的版本过低 但是换了最新的tomcat8也是不行 ,有没有大神在jersey2.5.1上搞过图片上传?
hudson 插件关闭之后启动报错
[size=large]hudson 插件管理设置 disabled之后,重启tomcat启动报错,文件找不到 打开hudson安装主目录---&gt;plugins 此文件夹下安装的都是插件信息,包括插件文件及是否启动,将指定插件对应的disabled文件删除,重启tomcat即可[/size]...
maven 远程发布系统到tomcat7
1. 修改Tomcat7的tomcat-users.xml 2.验证是否可以登录 单击 “manager app” 输入密码登录。 [img]http://dl2.iteye.com/upload/attachment/0126/6698/6621f0f9-9aee-3f85-84...
dubbo 日志ID链条
@Activate public class NoticeFilterDubbo implements Filter { public static final Logger logger = LoggerFactory.getLogger(NoticeFilterDubbo.class); public static final ObjectMapper objectMappe...
Dubbo分布式日志追踪
很多互联网公司都用的dubbo分布式框架进行微服务的开发,一个大系统往往会被拆分成很多不同的子系统,并且子系统还会部署多台机器,当其中一个系统出问题了,查看日志十分麻烦所以我们需要一个固定的流程ID和机器ip地址等来把所有的日志穿起来,当然可以通过调用其他接口时参数进行传递,但是这样子对代码的耦合性太强,对代码有侵入性。我们可以通过dubbo的filter 结合slf4j的MDC或者log4j2的
dubbo分布式应用日志追踪
基于dubbo分布式应用集群,日志跟踪变得比以往困难。基于spi的调用拦截,可以将traceid通过rpc context保存下来,并通过MDC输出到日志中去,解决调用跟踪难的问题。
Dubbo自定义日志拦截器
前言 上一篇文章 Spring aop+自定义注解统一记录用户行为日志 记录了 web层中通过自定义注解配合Spring aop自动记录用户行为日志的过程。那么按照分布式架构中Dubbo服务层的调用过程是否也可以实现统一记录日志?自定义日志拦截器可以实现这个需求。 需求场景 在使用Dubbo搭建的分布式项目中,服务层代码调用是这样的: @GetMapping(value = &quot;/in...
dubbo分布式日志追踪
dubbo+MDC实现的分布式日志追踪
相关热词 c#异步发送kafka c#窗体编号 c# 操作二进制文件 c# 反射 机制 c#线程 窗体失去响应 c#角度转弧度 c# 解析gps数据 c# vs设置 语法版本 c# json含回车 c#多线程demo