on 04-06-2005 1:28 PM
Hello,
I am trying to use the File constructor in order to create new File(). The file is located on a drive which is mapped to the server.
The problem is that when I do it using regular Java application deployed on the server it is working but when I do it through Web DynPro application I receive FileNotFoundException: "The system cannot locate the specified file". At the Java forum I was told that the problem is because of the login credentials required for logging into the remote system, which the server does not have and that Web dynpro does not support whole of the java functionalities.
Is this True? If yes, than how can I solve this issue?
Hi,
While crating the virtual directory instead of selecting the mapped drive just type the path in the input field of the Vitualdirectory creation wizard.
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am able to access a file from a remote machine when running a class file in the Java Perspective, but when I deploy it in the server by using a .war->.ear file accessing it through a JSP. It does not retrieve the file.
Why is it that when we run it from the client it works and fails when it run from the server?
Hi,
Still you can do
Ex:
URL MyURL= new URL("URL");
MyURL.openStream() will give InputStream where you can pass this InputStream to your DOM parser.
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
One way of aceessing the file is make the files you want HTTP enabled using IIS.
Ex: If you want to access file XYZ.txt then make it http enabled using Internet Information services aso that you can access the file as http://machinename:port/File.txt
Now you can use URL ( java.net.URL) to open the file and reading.
Regards, Anilkumar
Message was edited by: Anilkumar Vippagunta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.