java.lang.ClassNotFoundException :( Driver Class)当Datasource使用JNDI时 [英] java.lang.ClassNotFoundException: (Driver Class) While Datasource got using JNDI

查看:52
本文介绍了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是......

展开 < span class =codeDivider> | 选择 | 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时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆