配置struts2 的时候遇到点错误,记录下:
2012-9-28 14:33:18 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: /home/pccw/jdk1.5.0_22/jre/lib/i386/server:/home/pccw/jdk1.5.0_22/jre/lib/i386:/home/pccw/jdk1.5.0_22/jre/../lib/i386:/home/pccw/jdk1.5.0_22/jre/lib/i386/client:/home/pccw/jdk1.5.0_22/jre/lib/i386:
2012-9-28 14:33:18 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ssh2' did not find a matching property.
2012-9-28 14:33:18 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2012-9-28 14:33:18 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 943 ms
2012-9-28 14:33:18 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2012-9-28 14:33:18 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.26
2012-9-28 14:33:19 org.apache.catalina.core.ApplicationContext log
信息: Set web app root system property: 'webapp.root' = [/home/pccw/test_ssh_workplace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ssh2/]
2012-9-28 14:33:19 org.apache.catalina.core.ApplicationContext log
信息: Initializing log4j from [/home/pccw/test_ssh_workplace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ssh2/WEB-INF/log4j.properties]
2012-9-28 14:33:20 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
出现SetPropertiesRule警告的原因是因为Tomcat在server.xml的Context节点中不支持source属 性:<Context docBase="…" path="/…" source="org.eclipse.jst.j2ee.server:…"/>
解决方法是在Servers视图里双击创建的server,然后在其server的配置界面中选中"Publish module contexts to separate XML files"选项