由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - SYSDEO tomcat的问题。
相关主题
问一个关于Eclipse IDE 的问题能这样编网站吗?
question about using Runtime.getRuntime.exec() in Tomcat哪位在VMWare里面安装过Tomcat
[合集] Java sucks big time for no hot swap.in eclipse EE , how to build a tomcat/web application?
eclipse总死是怎么回事eclipse remote debug java (tomcat) , has to connect with eclipse for tomcat to start?
what's the most popular Java IDEjava struts奇怪问题求助
where to execute java program?安装tomcat不成功
Help with Tomcat for Eclipse v1.03初学 Java 的神器 - Eclipse
Can I use XDoclet and packging in Tomcat用惯了glassfish,突然要我用tomcat,真实不习惯。
相关话题的讨论汇总
话题: tomcat话题: sysdeo话题: dll话题: myexe话题: path
进入Java版参与讨论
1 (共1页)
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
10
goodbug is right!!!!!!
1 (共1页)
进入Java版参与讨论
相关主题
用惯了glassfish,突然要我用tomcat,真实不习惯。what's the most popular Java IDE
mac上怎么连tomcat和mysql?where to execute java program?
OpenShift的配置一问Help with Tomcat for Eclipse v1.03
Eclipse EECan I use XDoclet and packging in Tomcat
问一个关于Eclipse IDE 的问题能这样编网站吗?
question about using Runtime.getRuntime.exec() in Tomcat哪位在VMWare里面安装过Tomcat
[合集] Java sucks big time for no hot swap.in eclipse EE , how to build a tomcat/web application?
eclipse总死是怎么回事eclipse remote debug java (tomcat) , has to connect with eclipse for tomcat to start?
相关话题的讨论汇总
话题: tomcat话题: sysdeo话题: dll话题: myexe话题: path