I had a Java web app running on IWA Server, accessing the IFS.

But I was using the java.io classes to directly access directories and files in the IFS, not the Toolbox. *PUBLIC *RWX on the folders/files.

Craig Pelkie

----- Original Message ----- From: "Cornett, Adam" <Adam.Cornett@xxxxxxxxxxxxx>
To: <web400@xxxxxxxxxxxx>
Sent: Thursday, April 15, 2010 1:50 PM
Subject: [WEB400] QLWISVR accessing the IFS?


Are there any special tricks/gotchas to trying to access contents of an
IFS folder from a webpage running on the Integrated Web Application
Server? I'm testing a webpage that calls a Java program (using it as a
JavaBean) - that attempts to display the contents of a folder on the
IFS. My server is using the default userid - QLWISVR. And I've
verified that by having the Java program retrieve the userid. I seem to
connect to localhost just fine - as I don't get an exception when
creating a new AS400 object (I'm using jt400 - com.ibm.access.AS400).
But when I try to do IFSFile.list() - I get an exception - "Access to
request was denied."

My first thought was that I needed to set the authorities on the IFS
folder to allow QLWISVR to access them. The folder already allowed
Read/Write/Execute for *PUBLIC, which I would think would be enough.
But, I went ahead and explicitly added an entry for QLWISVR to have *RWX
--- but I still get the exception.

Is there something else I need to setup? Just trying to determine if my
initial assumption is correct or not --- should QLWISVR userid be able
to access the IFS in this manner?

Adam Cornett

_____________

The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.
_____________
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.