Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Urgent: Tomcat to WebSphere-AppServer Migration question

 
Ri Ri
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
My application is using some .exe files that reside in %CATALINA_HOME%\BIN directory while working with Tomcat. Now I am trying to migrate the webapplication to WebSphere.... so where should I keep those .exe files? I have copied those .exe files to %APP_ROOT%\bin of WebSphere AppServer, but it does not seem to find them!!
Thousand thanks in advance.
Ri
 
Stefan Zoerner
Author
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!
What does your WebApp do with these .exe Files?
Are there servlets which call them via a Runtime.exec()? I can't recommend this approach!
Greetings from Hamburg,
Stefan
 
Ri Ri
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I agree, this is not the best approach but I have to deal with it :-( ..... the .exe files are encyption utilities, which I do not have access/rights to modify and create in Java... so please help!!!
 
Ri Ri
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also,,,, yes there are servlets that call them using Runtime.exec()
 
Stefan Zoerner
Author
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !
What is the exact error message? Something like " file not found" or a Security exception. In case of a security problem you should probably change the config of the JVM.
A better solution in my opinion would be to decouple servlets and native code via Message oriented middleware (e.g. MQSeries). But I guess, that would take too long to implement.
Greetings from Hamburg,
Stefan
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could pass the absolute path to those executables using servlet init-parameters in web.xml.
 
Ri Ri
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FIRST OF ALL THANKS A LOT FOR YOUR REPLIES....
I will try this solutions and post back the feedback ASAP....
Meanwhile a new problem... I am using some API from Sun JDK, which are not there in IBM JDK.... I can not change the code, is it possible to use the SUN jar files along with IBM Jar files OR,,, request WAS to use a particular instance of JDK (in this case SUN) for a particular web app???
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic