java.lang.ClassNotFoundException :( Driver Class)当Datasource使用JNDI时

编程入门 行业动态 更新时间:2024-10-13 16:22:16
本文介绍了java.lang.ClassNotFoundException :( Driver Class)当Datasource使用JNDI时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的context.xml ...

展开 | 选择 | Wrap | 行号

解决方案

你的类路径中的postgreSQL jar在你的linux机器上? 亲切的问候, Jos

如果Jar不在类路径然后它为什么在Windows中正常运行? 将jar保存到WEB-INF / lib文件夹中,我正在制作war文件并将其部署到服务器中。在Windows中,war文件运行正常..但是为什么不在Linux中运行?

这是我的另一个测试...............在Linux Tomcat Server中。 我的context.xml是......

展开 | 选择 | Wrap | Line编号

My context.xml...

Expand|Select|Wrap|Line Numbers

解决方案

Is your postgreSQL jar in your classpath on your linux machine? kind regards, Jos

If the Jar is not in the classpath then why it runs properly in Windows ? The jars are kept into the the folder WEB-INF/lib and i am making the war file and deploy it into the server...In Windows the war file is running OK ..but why not in Linux?

This is my another test ............... in Linux Tomcat Server. My context.xml is ...

Expand|Select|Wrap|Line Numbers

更多推荐

java.lang.ClassNotFoundException :( Driver Class)当Datasource使用JNDI时

本文发布于:2023-10-26 18:26:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1530983.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:ClassNotFoundException   lang   java   Driver   JNDI

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!