Tomcat and network file access permissions

Hi there,
We have a servlet running in Tomcat 4.1 environment in one windows 2003 server (DOMAINONE) , and we write the logs in another machine (different domain DOMAINTWO). We have a USER1 who has access to both domains and has access to map the drive to DOMAINTWO. We have mapped G drive to \\DOMAINTWO\SHAREDDRIVE. The servlet needs to write information to g:\logs and what we are having problem with is that Tomcat is throwing an exception when writing to G: Is there any settings we need to do at the Tomcat configuration file (security settings).
Tomcat is started by USER1 as well.
ANy help would be greatly appreciated.
Thanks
John

Are you using a Logging package or just trying to create a File object and writing text to it?
If the later, you may want to look at URLConnection.getOutputStream() and wrapping that with a BufferedOutputStream and writing to that.
Even though you're mapped and all that, it may look like a "local drive" to you, but it's not. There's a whole bunch of negotiation and networking that needs to go on that a File class is just not designed to do, but a URL is.
There are other options as well which would make something like this WAY more scalable. Do you ever have to move this thing?

Similar Messages

  • FTP file adapter: file access permissions do not allow the specified action

    Hi,
    I have the File to JDBC scenario. The file is extracted in AL11 folder of the Sending (BW) system.
    The folder is FTP enabled and the Unix admin says he has given full authorization to both the folder and ftp user.
    But in the File CC I get the following error "Could not process due to error: com.sap.aii.adapter.file.ftp.FTPEx: 550 TSMSACAIX5350.tar.gz: The file access permissions do not allow the specified action."
    Can some one advice what is wrong. Im pretty much sure it has to be a problem with the UNIX permission. But the unix admin person says he has given a full permission.
    I need to know what permissions needs to be given??  Is there different permissions for application level and OS level??
    Pls advice
    Thanks
    Prasanna

    >
    Prasanna Shanmugasundaram wrote:
    > Hi,
    > I have the File to JDBC scenario. The file is extracted in AL11 folder of the Sending (BW) system.
    > The folder is FTP enabled and the Unix admin says he has given full authorization to both the folder and ftp user.
    > But in the File CC I get the following error "Could not process due to error: com.sap.aii.adapter.file.ftp.FTPEx: 550 TSMSACAIX5350.tar.gz: The file access permissions do not allow the specified action."
    >
    > Can some one advice what is wrong. Im pretty much sure it has to be a problem with the UNIX permission. But the unix admin person says he has given a full permission.
    > I need to know what permissions needs to be given??  Is there different permissions for application level and OS level??
    >
    > Pls advice
    >
    > Thanks
    > Prasanna
    In CC you set ON the delete mode, after processing file? Maybe, the file have read only permission....

  • The file access permissions do not allow the specified action

    I had an issue while transferring file from source to target..i am able successfully transfer the file to target and later i should move the file to another folder using IO operations.
    it failed at invoke.following are the error
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="summary">
    <summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'SynchRead' failed due to: The IO operation failed. The IO operation failed. The "OPER[NOOP][S->R,T->R]" IO operation for "xxxxxxxxxxxxxxxxxx/  xxxxxx.txt" failed. Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    </summary> 
    </part>
    -<part name="detail">
    <detail>550 xxxxxxxxxxxxxxxxxxxxxxxxx: The file access permissions do not allow the specified action.
    </detail> 
    </part>
    -<part name="code">
    <code>550
    </code> 

    >
    Prasanna Shanmugasundaram wrote:
    > Hi,
    > I have the File to JDBC scenario. The file is extracted in AL11 folder of the Sending (BW) system.
    > The folder is FTP enabled and the Unix admin says he has given full authorization to both the folder and ftp user.
    > But in the File CC I get the following error "Could not process due to error: com.sap.aii.adapter.file.ftp.FTPEx: 550 TSMSACAIX5350.tar.gz: The file access permissions do not allow the specified action."
    >
    > Can some one advice what is wrong. Im pretty much sure it has to be a problem with the UNIX permission. But the unix admin person says he has given a full permission.
    > I need to know what permissions needs to be given??  Is there different permissions for application level and OS level??
    >
    > Pls advice
    >
    > Thanks
    > Prasanna
    In CC you set ON the delete mode, after processing file? Maybe, the file have read only permission....

  • E4200 Slow Wireless download and Network File Sharing

    When I first got the E4200 up and running I was able to transfer files from my wireless laptop to a wired laptop at speeds of over 2 MBps(distance was over 40 ft).  Now I have both laptops running wireless and a desktop that is wired via ethernet to the 4200 router and network file sharing runs much slower.  Right now network transfer speeds are around 500-550 kBps.
    Wireless network speeds are being affected also.  Wi-fi d/l speeds via Cisco speed test is usually 5-6x slower than my wired speed tests, with upload speeds being faster than the d/l speed(Laptop is only 2 feet away from router for testing).  And sometimes the wireless d/l speeds will slow down all the way to .15 mbps.
    Has anyone come across this problem and found a fix for it, or have some suggestions?  The router settings are mostly default and I have reset it to factory defaults via web interface and tried power cycling.  But nothing so far has worked.  I would hate to have to return this router and go back to the wrt54g.

    Ok, well I tried all these and changing the MTU down to 1365 made it run real slow, so I found out the optimal mtu and switched between auto and manual 1500, and auto gave me more consistent speeds.  It does seem to be running a bit faster with the name change of the 5 ghz band, and changing the channel of the 2.4 ghz band(Name changing 2.4 band did not make any noticable differences). 
    Right now I am getting download speeds around 10 mbps on the vista laptop(wireless), while the windows 7 desktop(wired) and laptop(wireless) are usually around 5.3-6 mbps.  File sharing between the windows 7 machines are 4.3 MBps and 2.9 MBps between vista laptop and W7 desktop.  Upload speeds on all machines are around 7mbps.
    I am happier with the more consistent speeds between all machines instead of really fast between just 2, but am confused to why the vista laptop is running faster and my upload speed is faster than the download speeds on 2 of my machines.

  • Time machine and network file server

    Hi,
    Is it possible to set up the time machine to a network file server which my macbook is able to see and use? Right now, time machine is limited to be used with a delicated external HD or another Mac...
    It would be convenient to share files between my 1st mac and other windows PCs.

    armyedwrd wrote:
    I believe I can do a work around by simply sharing my External HD so that that can happen. It's just very awkward to navigate to that shared drive each time we access it. If I had separate backup HDs for each MAC, I think I could use the TC as a media server (at least that's what I get from the marketing material here ).
    You might want to try one of the workarounds in #Q3 of Using Time Machine with a Time Capsule.
    Have you ever used Time Machine Editor? Is it worth downloading and using?
    It's not recommended;  Time Machine usually works best the way it was designed.  See Time Machine - Frequently Asked Question #13.

  • File access Permissions in Java

    when the user select the file chooser button and browse through the directory in the local file system. If the user chooses any folder and that folder has readOnly access permission then the user can't copy the file into that folder as it has only Read access. So Please tell me how to give file and drive permissions in java on windows.

    File.setReadable() and friends, but "The operation will fail if the user does not have permission to change the access permissions of this abstract pathname." Check the return code.

  • Changing file access permissions?!

    I have a MacBook Pro retina running os x mountain lion, if that helps any of you guys answer this question. I recently took a screenshot of an area of the screen using the command-shift-4 combination. When i was trying to open it, though, an  error came up saying that i didnt have the permission to open the file. It told me to got to get info and change file permissions.
    How do I change file permissions and why does it say this in the first place??
    Thanks,
    RZ

    Doing a screen shot creates a file on the users desktop which they should already have permission to use.
    So if it's saying you don't means there is something else wrong with your machine.
    Do these to things first.
    1: #6 Repair Users Permissions (this will fix the in user folder permissions)
    2: #12 OnyX (free) cache cleaning and will repair OS X permissions.
    ..Step by Step to fix your Mac
    What is basically going to happen is your going to reset the permissions of all files on the machine back to what they should be and not what something caused it to become off.
    Doing all the OnyX steps in Maintainence and Cleaning is going to reset everything else in the system like caches etc., so it's like it just came from the factory which will cause those caches to rebuild anew and free of corruption that might have occured.
    OnyX also has flags as it checks the drive for other issues, thus gives you a warning of other potential problems.
    Make sure you have backups of your users files off the machine to a storage drive (not only TimeMachine) before you atempt any repairs as all the remaining software can be replaced except your files in case it turns out your problem is much larger than anticipated.
    Most commonly used backup methods

  • Tomcat and xml files

    public class TestServlet extends HttpServlet
    private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    config.getServletContext().getRealPath("students.xml");
    i am getting the following error saying tomcat cant find my xml file in the tomcat bin directory:
    type Status report
    message C:\jakarta-tomcat-4.0.4\bin\students.xml (The system cannot find the file specified)
    description The requested resource (C:\jakarta-tomcat-4.0.4\bin\students.xml (The system cannot find the file specified)) is not available
    what do i have to do to rectify this??

    I recall seeing similar problems. If you only need to read the file, then you could put it in the classpath for the servlet (e.g. WEB-INF/classes) and read it using getResource(). If you need to write it you might have to put it in a well-known location (e.g. new File(System.getProperty("user.home"), ".myconfigdir/students.xml");)

  • Issue with InDesign cs5 and network files.

    On Mavericks having issues with InDesign CS5. When trying to open a file from an smb netwrok drive it goes into Not responding.
    have tested InDesign working correctly with local files.
    have tried removing, SING folder. tried reinstalling.
    all updates on OS and adobe InDesign have been installed.
    any suggestions would be appreciated.

    CS5 is unsupported under Mavericks.
    Unfortunately, you’re pretty much on your own here.

  • How can I disable local file access security check?

    Windows 7
    Firefox 3.6.16
    I would like to disable the security check used for blocking access to local files.

    I don't know if this is completely correct, but...
    I have the NoScript extension installed. When I looked in about:config, I found an entry called:
    noscript.allowLocalLinks
    When I toggled this to "true," I was able to navigate via URLs to local and networked files.
    When I looked it up, I found out that you can set this switch using the NoScript UI (Options|Advanced|Trusted).

  • Problem with default file access permission

    Hi,
    I am accessing a common area '/NFS_DATA' by both my java and oracle codes by the users 'javaUsr' and 'oraUsr' respectively.
    As per the requirement, the oracle code (oraUsr) needs to create some file in the specified location and then the java code (javaUsr) needs to update those files (created by oraUsr) with some new data.
    At present scenario the 'oraUsr' creates files with default access permission 644, which does not permit 'javaUsr' to update them.
    Constraints : I am not supposed to set umask at the .profile of 'oraUsr'.
         Execution of any shell script from oracle procedure is not permitted.
    Is it possible to specify file-system specific default file access permissions??
    Any idea to overcome this issue??

    Hi,
    I am accessing a common area '/NFS_DATA' by both my
    java and oracle codes by the users 'javaUsr'
    and 'oraUsr' respectively.
    As per the requirement, the oracle code
    (oraUsr) needs to create some file in the
    specified location and then the java code
    (javaUsr) needs to update those files (created
    by oraUsr) with some new data.
    At present scenario the 'oraUsr' creates files
    with default access permission 644, which does
    not permit 'javaUsr' to update them.
    Constraints : I am not supposed to set
    umask at the .profile of 'oraUsr'.
    Execution of any shell script from oracle
    oracle procedure is not permitted.
    Is it possible to specify file-system specific
    default file access permissions??
    Any idea to overcome this issue??You might like to try using File ACLs
    man setfacl(1)
    as oraUsr
    setfacl -s user:oraUsr:rw-,user:javaUsr:rwx,group::r--,other:---,mask:rwx file
    This way the oraUsr can not execute file
    but javausr can
    getfacl will show the ACL
    user::rw-
    user:javaUsr:rwx #effective:rwx
    group::rw- #effective:rw-
    mask:rwx
    other:---
    hope this helps a bit

  • File access Permission numeric value 640

    Hi,
       I am picking up the files from one ftp directory. The file has access permission with value 640. When I am connecting to FTP Server with user id & passwrd I can move the files from from the directory to Arch directory. But  when I am testing this with XI it is showing error in Adapter monitoring as "FTPEx: 11260001.bwh: The file access permissions do not allow the specified action".Any suggesting on this.
    Regards,
    Daniel.LA

    Check this and this should solve your problem
    https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode6-1&contenttype=url&content=https:///message/589420#589420 [original link is broken]

  • I am trying to import developed images from LightRoom 5 in o Photoshop 6.  I am receiving this message and the images will not open.....'Could not open scratch file because the file is locked, you do not have necessary access permissions or another progra

    I am trying to import developed images from LightRoom 5 Photoshop 6 for further editing.  I am receiving this message and the images will not open.....'Could not open scratch file because the file is locked, or you do not have necessary access permissions or another program is using the file.  Use the 'Properties' command in the Windows Explorer to unlock the file. How do I fix this?  I would greatly appreciate it if you would respond with terms and procedures that a computer ignorant user, such as me, will understand.   Thanks.

    Have you tried restoring the Preferences yet?

  • I am trying to import developed images from LightRoom 5 into Photoshop 6.  I am receiving this message and the images will not open.....'Could not open scratch file because the file is locked, you do not have necessary access permissions or another progra

    I am trying to import developed images from LightRoom 5 into Photoshop 6.  I am receiving this message and the images will not open.....'Could not open scratch file because the file is locked, you do not have necessary access permissions or another program is using the file.  Use the 'properties' command in the Windows Explorer to unlock the file'.  This has not happened before.  How do I change this?

    Could not open a scratch file because the file is locked or you do not have the necessary access privileges. (…) | Mylen…
    Mylenium

  • I have PS 6 and just purchased an iMac and am running OS 10.10.1 (Yosemite).  When i try to Save or Save As a file I get the following message:  Could not save as "Whatever.psd" because this file is locked, you do not have necessary access permissions, or

    I have PS 6 and just purchased an iMac and am running OS 10.10.1 (Yosemite).  When i try to Save or Save As a file I get the following message:  Could not save as "Whatever.psd" because this file is locked, you do not have necessary access permissions, or another program is using the file.  Use the Get Info command in the Finder to ensure the file is unlocked and you have permission to access the file.  If the problem persists, save the document to a different file or duplicate it in the Finder.  Any suggestions?  Thanks.

    Photoshop: Basic Troubleshooting steps to fix most issues
    Look under Troubleshoot User Permissions.
    Gene

Maybe you are looking for

  • URGENT: REGARDING PRINTOUT OF REPORT

    hi, i had made report who's width is 310 and i had taken printout but is not displaying all fields when i take printout . can any body tell me d solution of dis problem as i dont wanna reduce d width of it. CAN ANYBODY TELL ME D FORMAT FOR 310 LINE W

  • Error message: "This PDF document contains forms. The filling of form fields is not supported."

    Hello, I am running with this operating system: Microsoft windows XP Professional version 2002 service pack 3 Just downloaded the newest version of Adobe reader Using an updated version of Firefox. There is an online form that I must fill out in adob

  • In the summary section in iTunes, what is "other" on my iPhone 5 ?

    Using iTunes, In the summary section as I review the contents of my iPhone, there is an "other" category and it is taking up over 11GB of memory in my iPhone.  What is in this category? Do I need it?  If not, how do I reduce or remove it?

  • Thumbnail Preview

    Is it posible to have images previewed like in windows without having to open the image. This is one thing I find anoying because you don`t know what image it is without opening it unlike in windows you see thumbnails.

  • Appletalk not enabling on iBook and 10.4.7

    Try as I might, I cannot get AppleTalk to launch on 10.47 on my iBook - is this a known issue? Thanks, b00kmark