z****g 发帖数: 2497 | 1 有没有大侠熟悉tomcat的。。
偶有个servlet 运行 Runtime.exec(myExe).
myExe里面会load一个外部dll,
当我用eclipse plugin sysdeo launch tomcat, 运行没有问题。
但是, 如果我用tomcat5w.exe launch tomcat, 就会返回错误找不到我的外部dll.
不知道有没有大侠熟悉tomcat的,是tomcat设置不对么?
好像和security manager没什么关系, 我看了tomcat5w.exe start, 我没有加-s
ecurity.
catalina.policy我试了
grant
{
permission java.security.AllPermission;
}
好像也没有什么用。。 不知道sysdeo如何launch tomcat的。。
any comment is appreciated.. Thanks. |
h*i 发帖数: 3446 | 2 Try lauch tomcat from the directory where your myExe is located, or put that
directory into your OS path.
【在 z****g 的大作中提到】 : 有没有大侠熟悉tomcat的。。 : 偶有个servlet 运行 Runtime.exec(myExe). : myExe里面会load一个外部dll, : 当我用eclipse plugin sysdeo launch tomcat, 运行没有问题。 : 但是, 如果我用tomcat5w.exe launch tomcat, 就会返回错误找不到我的外部dll. : 不知道有没有大侠熟悉tomcat的,是tomcat设置不对么? : 好像和security manager没什么关系, 我看了tomcat5w.exe start, 我没有加-s : ecurity. : catalina.policy我试了 : grant
|
g*****g 发帖数: 34805 | 3 What's the exception?
【在 z****g 的大作中提到】 : 有没有大侠熟悉tomcat的。。 : 偶有个servlet 运行 Runtime.exec(myExe). : myExe里面会load一个外部dll, : 当我用eclipse plugin sysdeo launch tomcat, 运行没有问题。 : 但是, 如果我用tomcat5w.exe launch tomcat, 就会返回错误找不到我的外部dll. : 不知道有没有大侠熟悉tomcat的,是tomcat设置不对么? : 好像和security manager没什么关系, 我看了tomcat5w.exe start, 我没有加-s : ecurity. : catalina.policy我试了 : grant
|
z****g 发帖数: 2497 | 4 No exception.
运行我的那个executable的时候, executable会写一个文件(运行的过程记录等),
信息就是找不到那个dll...
如果我不是用tomcat运行(那段java code),是没有问题的。
我用sysdeo启动tomcat,也没有问题。
所以,我觉得应该是tomcat权限的问题。但是我根本没开security manager.(我理解是
没开,tomcat5 win by default应该是没打开,打开需要-security, 对么?).
那个破sysdeo是法国人开发的,document是法语。
多谢了。。
【在 g*****g 的大作中提到】 : What's the exception?
|
g*****g 发帖数: 34805 | 5 Then it might be a dll file path not found problem.
Otherwise, you should see a security exception.
Try put the folder containing dll as one of the path
in control panel->system->environment variable and
see if that makes difference.
,
【在 z****g 的大作中提到】 : No exception. : 运行我的那个executable的时候, executable会写一个文件(运行的过程记录等), : 信息就是找不到那个dll... : 如果我不是用tomcat运行(那段java code),是没有问题的。 : 我用sysdeo启动tomcat,也没有问题。 : 所以,我觉得应该是tomcat权限的问题。但是我根本没开security manager.(我理解是 : 没开,tomcat5 win by default应该是没打开,打开需要-security, 对么?). : 那个破sysdeo是法国人开发的,document是法语。 : 多谢了。。
|
z****g 发帖数: 2497 | 6 不应该是路径的问题吧。
我用sysdeo启动tomcat是没有问题, 只是用tomcat5w.exe启动, 就不行。
太奇怪了。
【在 g*****g 的大作中提到】 : Then it might be a dll file path not found problem. : Otherwise, you should see a security exception. : Try put the folder containing dll as one of the path : in control panel->system->environment variable and : see if that makes difference. : : ,
|
m******t 发帖数: 2416 | 7 Looks like a OS path issue, too. I have a theory - just a theory - sysdeo
starts tomcat from within eclipse, so it inherits whatever envirionment
eclipse provides. On the other hand, tomcat5w.exe sets up a different
environment (e.g. without passing along all the OS environment variables). |
z****g 发帖数: 2497 | 8 魔肥,thanks a lot.
SYSDEO inherited all my USER variables, which made the difference. And I thi
nk this is wrong, it should only inherit SYSTEM variables only.
【在 m******t 的大作中提到】 : Looks like a OS path issue, too. I have a theory - just a theory - sysdeo : starts tomcat from within eclipse, so it inherits whatever envirionment : eclipse provides. On the other hand, tomcat5w.exe sets up a different : environment (e.g. without passing along all the OS environment variables).
|
g*****g 发帖数: 34805 | 9 I told you so. It's the path.
thi
【在 z****g 的大作中提到】 : 魔肥,thanks a lot. : SYSDEO inherited all my USER variables, which made the difference. And I thi : nk this is wrong, it should only inherit SYSTEM variables only.
|
c********g 发帖数: 449 | |