如何在weblogic启动时让其加载指定的jar库文件
来源:互联网 发布:冰球队员贾克斯淘宝 编辑:程序博客网 时间:2024/05/21 09:56
项目使用了某第三方公司提供的一个jar包,且那个jar包必须在容器启动的classpath内,不能在application的classpath内。
起初是修改weblogic中domain的启动文件,想把jar的路径set进去,但是修改了startWeblogic.sh和setDomainEnv.sh都不行,比较郁闷。
后来突然想起,tomcat有个common目录,下面有个lib目录,tomcat在启动的时候会自动加载lib目录下的jar,那weblogic也应该有个类似的东东才对。
翻了翻weblogic domain的目录,发现domain下有个lib目录,里面有个说明文件这么写到:
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.
意思大致就是,凡是放在这个目录里的jar文件,都会在weblogic启动的时候自动追加到classpath里,可以被application引用。
问题圆满解决,不过解决之前花了好久修改启动文件 囧rz......
- 如何在weblogic启动时让其加载指定的jar库文件
- 如何在weblogic启动时让其加载指定的jar库文件
- 如何在weblogic启动时让其加载指定的jar库文件
- 如何在weblogic启动时让其加载指定的jar库文件
- 如何让weblogic优先加载WEB-INF目录下的jar包。而非weblogic 自带的lib包
- 在启动weblogic时,加载mysql包
- 如何让windows2000启动时不用登陆自动启动weblogic?
- Tomcat Weblogic JMS 启动无法加载weblogic.jar classnotFouncException
- Tomcat Weblogic JMS 启动无法加载weblogic.jar classnotFouncException
- 监控一个web服务的讨论(如果weblogic服务死掉了,让其自动启动)
- 监控一个web服务的讨论(如果weblogic服务死掉了,让其自动启动)
- 如何让Tomcat在指定JDK版本下启动 而不依赖环境变量中配置的版本
- 应用Tomcat的WebappClassLoader加载指定目录的jar文件
- java动态加载指定的类或者jar包反射调用其方法
- java动态加载指定的类或者jar包反射调用其方法
- 让Tomcat启动时加载所有hbase的jar包,避免出现NoClassDefFoundError错误
- WebLogic中jar包的加载次序
- 如何在linux的weblogic上增加启动参数
- [折腾]搬家
- 2005年上海交通大学计算机研究生机试真题:数字反转
- python学习笔记三(网络编程初步)
- weblogic中优先加载应用中的jar包
- Don't Make Javascript Equality Look Worse Than It Is
- 如何在weblogic启动时让其加载指定的jar库文件
- 黑马程序员 学习日记(三)-数组
- 弹球游戏
- C语言数据类型及转换
- Alberto Cairo Tapestry 2014演讲笔记
- 程序员离职原因经典总结
- vim 编码问题
- 内存屏障(__asm__ __volatile__("": : :"memory"))
- map与hash_map