如题,因为使用了多种框架,所以类库包很多,为了使目录结构清晰建立工程时将这些包分成许多目录分类存放,
比如...\myweb\web-inf\lib下又建立了许多子目录
...\myweb\web-inf\lib\struts\*.jar
...\myweb\web-inf\lib\hibernate\*.jar
...\myweb\web-inf\lib\spring\*.jar
在eclipse环境中使用没有问题,因为eclipse可以自定义库路径,但是运行web时tomcat就找不到这些类库了,因为
tomcat默认只寻找到web-inf\lib目录和自身的lib目录。
请问有什么办法可以让tomcat能找到我自定义的各个库路径?
比如...\myweb\web-inf\lib下又建立了许多子目录
...\myweb\web-inf\lib\struts\*.jar
...\myweb\web-inf\lib\hibernate\*.jar
...\myweb\web-inf\lib\spring\*.jar
在eclipse环境中使用没有问题,因为eclipse可以自定义库路径,但是运行web时tomcat就找不到这些类库了,因为
tomcat默认只寻找到web-inf\lib目录和自身的lib目录。
请问有什么办法可以让tomcat能找到我自定义的各个库路径?
解决方案 »
- 上传文件一般如何实现
- 关于struts2 模糊查询加分页问题....
- spring 事物管理的异常处理
- 基础的连接数据库又抛异常了,伤人心。急死人了,面试还怎么搞啊~~名位大虾帮帮忙啊~~~~
- 急求http404错误
- 请问数据库中自动递增的数据类型是哪种数据类型?
- 问一个可能是属于设计模式的问题,如何从JSP->Servlet->JSP
- 提问一个入门的问题!!!!
- JSP乱码问题,请进!
- JSP如何把文章内容提交进数据库,保持格式不变
- 大虾们!来看看。使用jquery easyui window控件创建一个窗体,并链接到一个新增页面,那么当新增成功后,怎么关闭窗体?
- java.sql.SQLException: 不支持的特性
选中Java选项,改动Java Classpath
• The /WEB-INF/classes/ directory for servlet and utility classes. The classes in
this directory must be available to the application class loader.
• The /WEB-INF/lib/*.jar area for Java ARchive files. These files contain servlets,
beans, and other utility classes useful to the Web application. The Web application
class loader must be able to load classes from any of these archive
files.The Web application class loader must load classes from the WEB-INF/ classes
directory first, and then from library JARs in the WEB-INF/lib directory. Also, any
requests from the client to access the resources in WEB-INF/ directory must be
returned with a SC_NOT_FOUND(404) response.Ref. Java Servlet Specification Version 2.5, SRV.9.5 Directory Structure, p.66.
开始菜单,选择apache tomcat,之后运行 Configure Tomcat这个是tomcat的管理工具,运行后右下角就有了..
是eclipse还是tomcat的bin目录下的启动程序?(我的tomcat版本是6,eclipse是3.3 lomboz)
无论哪个工具我也看不到您说的开始菜单和“apache tomcat,之后运行 Configure Tomcat”。
麻烦您再给点提示好吗?谢谢。