File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes Urgent: Tomcat to WebSphere-AppServer Migration question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Urgent: Tomcat to WebSphere-AppServer Migration question" Watch "Urgent: Tomcat to WebSphere-AppServer Migration question" New topic
Author

Urgent: Tomcat to WebSphere-AppServer Migration question

Ri Ri
Greenhorn

Joined: Apr 25, 2003
Posts: 5
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

Joined: Nov 29, 2001
Posts: 121
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


Stefan Zoerner
Author of German LDAP-Book
Committer at Apache Directory Project
Ri Ri
Greenhorn

Joined: Apr 25, 2003
Posts: 5
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

Joined: Apr 25, 2003
Posts: 5
Also,,,, yes there are servlets that call them using Runtime.exec()
Stefan Zoerner
Author
Ranch Hand

Joined: Nov 29, 2001
Posts: 121
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
You could pass the absolute path to those executables using servlet init-parameters in web.xml.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Ri Ri
Greenhorn

Joined: Apr 25, 2003
Posts: 5
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.
 
Consider Paul's rocket mass heater.
 
subject: Urgent: Tomcat to WebSphere-AppServer Migration question