Open gladstonejay opened 8 years ago
我也是一样的问题,首先dubbo的引用2.8.x我在 http://mvnrepository.com/ 这里面看没得导入不了(原因:作者使用的dubbox 自己安装到本地maven仓库上),我直接使用了dubbo的最后一个版本2.5.3 pom就不会报错, 然后我查看maven依赖,发现dubbo中依赖spring的版本和spring依赖的版本不同,排除掉就好了。(dubbo几年未更新使用的spring版本较老) com.alibaba dubbo 2.5.3
exclusion->org.springframework:spring
你好,我下载该工程,在myeclipse8.6导入项目,最后打成一个war包,把war包部署在tomcat6里面,运行tomcat6出现以下错误
2016-7-31 23:31:14 org.apache.catalina.core.AprLifecycleListener init
ÐÅÏ¢: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
2016-7-31 23:31:14 org.apache.coyote.http11.Http11Protocol init
ÐÅÏ¢: Initializing Coyote HTTP/1.1 on http-8080
2016-7-31 23:31:14 org.apache.catalina.startup.Catalina load
ÐÅÏ¢: Initialization processed in 465 ms
2016-7-31 23:31:14 org.apache.catalina.core.StandardService start
ÐÅÏ¢: Starting service Catalina
2016-7-31 23:31:14 org.apache.catalina.core.StandardEngine start
ÐÅÏ¢: Starting Servlet Engine: Apache Tomcat/6.0.45
2016-7-31 23:31:14 org.apache.catalina.startup.HostConfig deployDescriptor
ÐÅÏ¢: Deploying configuration descriptor host-manager.xml
2016-7-31 23:31:14 org.apache.catalina.startup.HostConfig deployDescriptor
ÐÅÏ¢: Deploying configuration descriptor manager.xml
2016-7-31 23:31:14 org.apache.catalina.startup.HostConfig deployWAR
ÐÅÏ¢: Deploying web application archive beautyssm_web_user-1.0.0.war
2016-7-31 23:31:14 org.apache.catalina.loader.WebappClassLoader validateJarFile
ÐÅÏ¢: validateJarFile(/Users/hongtianpei/Documents/JAVA-Pro/tomcat/webapps/beautyssm_web_user-1.0.0/WEB-INF/lib/javax.servlet-api-3.1.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2016-07-31 23:31:15,293 INFO[org.springframework.web.servlet.FrameworkServlet:488]- FrameworkServlet 'spring-dispatcher': initialization started
2016-07-31 23:31:15,333 INFO[org.springframework.context.support.AbstractApplicationContext:573]- Refreshing WebApplicationContext for namespace 'spring-dispatcher-servlet': startup date [Sun Jul 31 23:31:15 CST 2016]; root of context hierarchy
2016-07-31 23:31:15,379 INFO[org.springframework.beans.factory.xml.XmlBeanDefinitionReader:317]- Loading XML bean definitions from class path resource [spring/spring-web.xml]
2016-07-31 23:31:15,472 INFO[org.springframework.beans.factory.xml.XmlBeanDefinitionReader:317]- Loading XML bean definitions from class path resource [spring/spring-config.xml]
2016-07-31 23:31:15,523 INFO[org.springframework.beans.factory.xml.XmlBeanDefinitionReader:317]- Loading XML bean definitions from class path resource [dubbo/dubbo-consumer.xml]
2016-07-31 23:31:15,563 INFO[?:?]- using logger: com.alibaba.dubbo.common.logger.log4j.Log4jLoggerAdapter
2016-07-31 23:31:15,856 INFO[org.springframework.core.io.support.PropertiesLoaderSupport:172]- Loading properties file from class path resource [jdbc.properties]
2016-07-31 23:31:15,861 INFO[org.springframework.core.io.support.PropertiesLoaderSupport:172]- Loading properties file from class path resource [redis.properties]
2016-07-31 23:31:15,864 INFO[org.springframework.core.io.support.PropertiesLoaderSupport:172]- Loading properties file from class path resource [system.properties]
2016-07-31 23:31:15,869 INFO[org.springframework.core.io.support.PropertiesLoaderSupport:172]- Loading properties file from class path resource [ValidationMessages.properties]
2016-07-31 23:31:16,262 INFO[org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry:532]- Mapped "{[/user/list],methods=[GET],produces=[application/json;charset=UTF-8]}" onto public com.yingjun.ssm.common.dto.BootStrapTableResult
请问下,我该怎样解决这个问题???
1、我用的是dubbox 2.8.3版本,官方的版本太旧了,建议用当当网开源的dubbox,自己git一份安装到本地仓库后可用。 2、部署时要注意项目的外部条件,比如redis、mysql、zookeeper、activemq是否配置好,项目启动时应该先把service相关服务启动,再启动web项目。
嗯 按照默认的配置 已导入sql redis已开 user工程 报错如下 type Exception report
message Servlet.init() for servlet spring-dispatcher threw exception
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet.init() for servlet spring-dispatcher threw exception org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)