2007-01-25
myeclipse对resin的支持真不够
关键字: myeclipse resin
myeclipse 4.0.1
resin2 、resin3都会出现exception FileNotFoundException,然后无法正常启动。
myeclipse上面说:
Configuration:
1. Resin loads a DLL when it startup. If you experience a startup problem it may be caused by the Resin server not being able to locate the DLL which can be found in <RESIN-HOME>/bin. To make the Resin DLL available to the Resin JVM add <RESIN-HOME>/bin to Resin2’s Library Path preference page (see Window menu>Preferences>Application Servers>Resin2>Paths).
2. Resin must be configured to launch with a full JDK, not a JRE. All testing was performed using the Sun J2SDK1.4.2.
比较搞怪的是,2.1.17会因为找不到文件中断一下,但是点继续执行又能正常启动了,即使加上了<RESIN-HOME>/bin 这个路径也无济于事,一直会弹出这个该死的窗口
resin3一开始必须加上这个路径,不加的话无法启动,加上后正常启动一次之后,再把路径删除也能正常启动...
resin2.1.6 之前不加路径也是报错文件找不到,加了再删除之后也没问题了。但是报错:java.lang.NoClassDefFoundError: javax/transaction/UserTransaction
原因是 resin.home/lib 这个目录里面的zip,jar都没有加载, 同时也导致后面调用到任何一个jar包都会报类找不到之类的错误,即使把这些jar 在prepend/append classpath/ append to library path里面加上都是无济于事。
怪事连篇,放弃。
---
又找到眉目了。
文件找不到一般是因为找不到dll,所以只要把包含需要加载的dll文件的目录加到prepend classpath就ok了。
使用db2 cli连接db2,初始化连接db2的datasource时如果报错:java.lang.UnsatisfiedLinkError: no db2jdbc in java.library.path,那也是因为dll文件没有加载,即使db2_home/bin 已经在系统环境变量的classpath,path中,myeclipse也不会加载,解决办法时在append to library path中加上db2_home/bin
然后还肯能再次报错: java.lang.UnsatisfiedLinkError: SQLAllocEnv
那是因为resin加载的db2java.zip同db2数据库上的db2java.zip版本不同,把数据库那边的db2java.zip copy过来覆盖掉解决问题。
---
resin3.1.x是一个开发版本,所以只好用3.0.x,但是又碰到奇怪的问题:
resin 3.0.23 jdk1.5 myeclipse 4.0.1connector启动 2015ms
resin 3.0.23 jdk1.4.2 myeclipse 4.0.1connector启动 27250ms
resin 3.0.23 jdk1.4.2 单独启动 1234ms
resin 3.0.23 jdk1.5 单独启动 1360ms
resin2 、resin3都会出现exception FileNotFoundException,然后无法正常启动。
myeclipse上面说:
Configuration:
1. Resin loads a DLL when it startup. If you experience a startup problem it may be caused by the Resin server not being able to locate the DLL which can be found in <RESIN-HOME>/bin. To make the Resin DLL available to the Resin JVM add <RESIN-HOME>/bin to Resin2’s Library Path preference page (see Window menu>Preferences>Application Servers>Resin2>Paths).
2. Resin must be configured to launch with a full JDK, not a JRE. All testing was performed using the Sun J2SDK1.4.2.
比较搞怪的是,2.1.17会因为找不到文件中断一下,但是点继续执行又能正常启动了,即使加上了<RESIN-HOME>/bin 这个路径也无济于事,一直会弹出这个该死的窗口
resin3一开始必须加上这个路径,不加的话无法启动,加上后正常启动一次之后,再把路径删除也能正常启动...
resin2.1.6 之前不加路径也是报错文件找不到,加了再删除之后也没问题了。但是报错:java.lang.NoClassDefFoundError: javax/transaction/UserTransaction
原因是 resin.home/lib 这个目录里面的zip,jar都没有加载, 同时也导致后面调用到任何一个jar包都会报类找不到之类的错误,即使把这些jar 在prepend/append classpath/ append to library path里面加上都是无济于事。
怪事连篇,放弃。
---
又找到眉目了。
文件找不到一般是因为找不到dll,所以只要把包含需要加载的dll文件的目录加到prepend classpath就ok了。
使用db2 cli连接db2,初始化连接db2的datasource时如果报错:java.lang.UnsatisfiedLinkError: no db2jdbc in java.library.path,那也是因为dll文件没有加载,即使db2_home/bin 已经在系统环境变量的classpath,path中,myeclipse也不会加载,解决办法时在append to library path中加上db2_home/bin
然后还肯能再次报错: java.lang.UnsatisfiedLinkError: SQLAllocEnv
那是因为resin加载的db2java.zip同db2数据库上的db2java.zip版本不同,把数据库那边的db2java.zip copy过来覆盖掉解决问题。
---
resin3.1.x是一个开发版本,所以只好用3.0.x,但是又碰到奇怪的问题:
resin 3.0.23 jdk1.5 myeclipse 4.0.1connector启动 2015ms
resin 3.0.23 jdk1.4.2 myeclipse 4.0.1connector启动 27250ms
resin 3.0.23 jdk1.4.2 单独启动 1234ms
resin 3.0.23 jdk1.5 单独启动 1360ms
- 10:37
- 浏览 (2573)
- 论坛浏览 (2972)
- 评论 (1)
- 分类: Programming
- 相关推荐
发表评论
该博客是同时发布到论坛的,无法评论在论坛已被锁定的帖子
- 浏览: 394543 次
- 性别:

- 来自: 上海

- 详细资料
搜索本博客
我的相册
Gmail
共 8 张
共 8 张
最新评论
-
JIRA不完全手册
楼主,发一份完整的资料给我吧 xwj1003@yahoo.com.cn
-- by volking -
java encoding参考
Good ,thanks.
-- by zuowei -
有多少异常可以重来
我今天也遇到这个问题,才搜到这个帖子~ 还没有解决,等恢复哦
-- by javamanlcy007 -
有多少异常可以重来
这个错误解决了,又抱了别的错误~
-- by iceworld4143 -
有多少异常可以重来
解释不太懂,我也遇到这个问题了,可是我没用ant。 :cry: 等回 ...
-- by iceworld4143






评论排行榜