• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Urgent: Tomcat to WebSphere-AppServer Migration question

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also,,,, yes there are servlets that call them using Runtime.exec()
 
Stefan Zoerner
Author
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic