初次安装与错误排除
CLASSPATH
.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
JAVA_HOME
C:\Program Files\Java\jdk1.7.0_79
Tomcat_HOME
C:\apache-tomcat-7.0.68
CATALINA_HOME
C:\apache-tomcat-7.0.68
CATALINA_HOME2
C:\MM\tools\apache-tomcat-7.0.68
MAVEN_HOME
C:\apache-maven-3.3.9
settings.xml:
...
<localRepository>C://mvn_repository</localRepository>
...
<mirror>
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://10.205.7.228:9081/nexus/content/groups/public</url>
</mirror>
...
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
...
<activeProfiles>
<activeProfile>nexus</activeProfile>
</activeProfiles>
...
jsp
build path :add laibrary ...
+ server
在eclipse中配置xmlcatalog
Key Type: Namespace Name
Key:http://code.alibabatech.com/schema/dubbo/dubbo.xsd
cvc-complex-type.2.4.a: Invalid content was found starting with element 错误
Key Type: Namespace Name
Key: http://www.springmodules.org/schema/cache/springmodules- cache.xsd
Key Type: Schema Location
Key: http://www.springmodules.org/schema/cache/springmodules- ehcache.xsd
然后再将这连个xsd加入到web.xml中就搞定了
- <?xml version="1.0" encoding="UTF-8"?>
- <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
- http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd ">