web-inf

Tomcat6 ignores web-inf/lib

痴心易碎 提交于 2019-12-04 15:54:05
Brief: Tomcat6 can't recognize my ojdbc14.jar in WebRoot/WEB-INF/lib. I suppose I don't need to configure anything, just putting the .jar file in there and it should work. Details: I've created a web application and put ojdbc14.jar in WEB-INF/lib folder. When I start Tomcat6 and access an index.jsp page which creates an object that initiates a connection to my oracle database , an error occurs saying "Cannot load JDBC driver class 'oracle.jdbc.OracleDriver'". Apparently Tomcat6 can't recognize the 'oracle.jdbc.OracleDriver' class in web-inf/lib/ojdbc14.jar . I've done some research and

docker容器的配置

梦想的初衷 提交于 2019-12-04 08:19:48
1.查看开启的docker容器 [root@bogon ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS 2. 查看停止的docker容器 [root@bogon ~]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS S fd6821b6e97c redis "docker-entrypoint.s 3 months ago Exited (0) 5 mis7002 ad6f8fd16e15 redis "docker-entrypoint.s 3 months ago Exited (0) 5 mis7001 b193fbe1e400 redis "docker-entrypoint.s 3 months ago Exited (0) 5 mis7000 3.进入src [root@bogon ~]# . go [root@bogon src]# ll 总用量 4 drwxr-xr-x. 2 root root 4096 9月 7 04:32 docker 4.进入docker目录 [root@bogon src]# cd docker/ [root@bogon docker]# ll 总用量 475840 -rw-r--r--. 1 root root

ANT build.xml文件详解

给你一囗甜甜゛ 提交于 2019-12-04 06:47:51
Ant 的优点 跨平台性。 Ant 是用 Java 语言编写的,所示具有很好的跨平台性。 操作简单。 Ant 是由一个内置任务和可选任务组成的。 Ant 运行时需要一个 XML 文件 ( 构建文件 ) 。 Ant 通过调用 target 树,就可以执行各种 task 。每个 task 实现了特定接口对象。 Ant 开发 Ant 的构建文件 Ant 构建文件默认命名为 build.xml ,也可以取其他的名字。只不过在运行的时候把这个命名当作参数传给 Ant 。构建文件可以放在任何的位置。一般做法是放在项目顶层目录中,这样可以保持项目的简洁和清晰。 下面是一个 典型的项目层次结构 。 (1) src 存放文件。 (2) class 存放编译后的文件。 (3) lib 存放第三方 JAR 包。 (4) dist 存放打包,发布以后的代码。 每个构建文件定义一个唯一的 项目 (Project 元素 ) 。 每个项目下可以定义很多目标 (target 元素 ) ,这些目标之间可以有依赖关系。当执行这类 目标 时,需要执行他们所依赖的目标。 每个目标中可以定义多个 任务 ,目标中还定义了所要执行的任务序列。 Ant 在构建目标时必须调用所定义的任务。 任务定义了 Ant 实际执行的命令。 Ant 中的任务可以为 3 类。 ( 1 ) 核心任务。核心任务是 Ant 自带的任务。 ( 2 )

Class.forName(driver);处报java.lang.ClassNotFoundException

与世无争的帅哥 提交于 2019-12-04 00:33:23
1、问题,进行数据库连接的时候出错报 java.lang.ClassNotFoundException: com.mysql.jdbc.Driver 2、原因:mysql-connector-java-5.1.0-bin.jar没有拷贝进入WEB-INF下的lib里面 3、解决办法:将mysql-connector-java-5.1.0-bin.jar拷贝进入WEB-INF下的lib里面 来源: https://www.cnblogs.com/pere/p/11825426.html

Two Meta-Inf folders - normal structure?

試著忘記壹切 提交于 2019-12-03 17:00:01
I just "discovered" that we have two Meta-Inf folders ... In eclipse and also in the War file. The First one is (in the war): /META-INF/ The Second, and weird one ist: /WEB-INF/classes/META-INF/ In the second folder is a persistance.xml and a something.taglib.xml... If i move the files into the first meta-inf folder i get exceptions from hibernate.. What is the purpose of this second and oddly placed meta-inf folder ? Is this a normal folder structure ? The "weird one" location is correct; JSR-220/JSR-317 (Java Persistence API 1.0/2.0) in section 6.2/8.2 say: The jar file or directory whose

JSP 2 tag files “/WEB-INF/tags” not found

匿名 (未验证) 提交于 2019-12-03 09:02:45
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to write some jsp tag files for my application. I followed this article: http://www.techrepublic.com/article/an-introduction-to-jsp-20s-tag-files/ However, I'm stuck, when I open a jsp page that has this line: <%@ taglib prefix="h" uri="/WEB-INF/tags"%> I get an exception. HTTP Status 500 - /test.jsp (line: 8, column: 41) File "/WEB-INF/tags" not found org.apache.jasper.JasperException: /test.jsp (line: 8, column: 41) File "/WEB-INF/tags" not found org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)

Struts2 tiles org.apache.tiles.extras.complete.CompleteAutoloadTilesListener integration error

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am following answer posted here. OGNL and wildcards working in tiles definitions with struts2-tiles-plugin? If you know the answer, would apprecite if you tell me how to use freemarker with it. If don't even than I accept the answer if you solve my problem to make the code work. Everything is same but Struts2 & Tiles plugin - 2.3.4.1 pom.xml 1.6 UTF-8 3.1.2.RELEASE 2.3.4.1 1.6.6 2.2.2 <!-- Start Extras --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.10</version> </dependency> <dependency> <groupId>javax<

eclipse HttpServlet 类会报错

*爱你&永不变心* 提交于 2019-12-03 06:18:44
以前的eclipse因为更换电脑的位数,启动时会出现Failed to load the JNI shared library的错误,好像是和jdk位数(32位或64)有关系 重新copy了一个eclipse导进去项目遇到以下问题: 错误:HttpServlet 类会报错 解决方法:将tomcat——lib下的servlet-api.jar导进去或者copy到WEB-INF/lib下就ok了。 来源: oschina 链接: https://my.oschina.net/u/2483853/blog/516841

How can I use Apache CXF 2.6.7 as dependency of my war project and not CXF that is installed in the modules of JBoss 7.1?

匿名 (未验证) 提交于 2019-12-03 02:54:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am upgrading to JBoss 7.1 and unfortunately I can not deploy my application. I want to use Apache CXF 2.6.7 that is dependency of our war project and not CXF that is installed in the modules of JBoss 7.1. Unfortunately, the deployment of WAR is failing with the following warning and exception: 10 : 39 : 39 , 511 INFO [ org . jboss . as . server . deployment ] ( MSC service thread 1 - 5 ) JBAS015876 : Starting deployment of "example.war" 10 : 39 : 49 , 021 WARN [ org . jboss . as . server . deployment ] ( MSC service thread 1 - 16

Struts2 There is no Action mapped for namespace [/] and action name [login] associated with context path [/Struts2Test]

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm a beginner of Struts2, I know this question been asked in here much times, but I tried to solve it and read much much threads here, spend 6 hours and still can't get it work. Really need more suggestion... Here's my Package Struts2Test +Struts2Test/src +tw.com.rrstudio.java.test -TestAction.java +Struts2Test/build +Struts2Test/WebContent +Struts2Test/WebContent/META-INF +Struts2Test/WebContent/WEB-INF/classes +Struts2Test/WebContent/WEB-INF/lib -Struts2Test/WebContent/WEB-INF/spring-context.xml -Struts2Test/WebContent/WEB-INF/spring-mvc