发布启动后报错,错误如下:
org.springframework.beans.NotWritablePropertyException: Invalid property 'mappingLocations' of bean class [org.springframework.orm.ibatis.SqlMapClientFactoryBean]: Bean property 'mappingLocations' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
在weblogic加载classpath时,先加载spring和ibatis的配置文件
lib位置一:
/usr/local/bea/user_projects/domains/kiko9/config/lib
vi readme.txt
This directory holds jar files that are added to the system classpath of the server,
when the server?s Java virtual machine starts.
lib位置二:
/usr/local/bea/user_projects/domains/kiko9/lib
vi readme.txt
This is the domain library directory and is usually located at $DOMAIN_DIR/lib.
The jars located in this directory will be picked up and added dynamically to the end of the server classpath at server startup. The jars will be ordered lexically in the classpath. The domain library directory is one mechanism that can be used for adding application libraries to the server classpath.
It is possible to override the $DOMAIN_DIR/lib directory using the -Dweblogic.ext.dirs system property during startup. This property specifies a list of directories to pick up jars from and dynamically append to the end of the server classpath using java.io.File.pathSeparator as the delimiter between path entries.