Problems with I/O on Unix Server

HAllo
I have a Problem with reading/writing on the Server my Tomcat is running.
My Application does not find the properties file allthough i tried to get my path with System.getProperty("user.dir"), and also tried to set an absolute path too.
It is also not able to create a new file.
My Question: What rights do applications running in tomcat have by dafault?
How cat i change this rights?
And how do the path have to look in my code if i want to set it fix?
I tried thid ones:
"/mydir/myfile.txt"
"\\mydir\\myfile.txt"

Tomcat is a regular application that has the same rights as the user executing it. Does Tomcat run as a user who has access to the directory you are trying to read/write from?

Similar Messages

  • Problem with shares on Windows 2003R2 server from a Windows 8.1 PC

    I'm having problem with shares on Windows 2003R2 server from a Windows 8.1 PC.  It times out when I try to copy a file from my PC to the server and I get an error message saying "There is a problem accessing network drive W:\. Make sure you are
    connected to the network and try again."
    I have no problem copying files from the server to the PC.
    Any ideas?

    Hi,
    How about your problem now? Have you test other machine also installed Windows 8.1? Did they have this problem?
    To diagnose this problem, firstly, please check Windows 2003R2 firewall settings, also can disable firewall temporarilly for test.
    Secondly, try to use Network Monitor to capture network communication package for test.
    Network Monitor:
    http://www.microsoft.com/en-us/download/details.aspx?id=4865
    Roger Lu
    TechNet Community Support

  • Problem with cheque printing in production Server Tcode - FBZ5

    Hi
    Cheque Printing using SAPScript with TCODE FBZ5.
    I had a problem with cheque printing in production Server. TCODE - FBZ5
    It is working fine in Development Server with proper alligned data but not coming alligned data in production server. I compared, dubugged and checked the allignment...there is no difference I found.
    Could you please let me know, where the problem is occuring.
    The amount is not coming properly and coming out of the box.....but it is coming properly in development server.
    Sekhar

    Hi,
    For Amount field you must print like &amount(C)&. And it must be printer settings only. Because i gor same like this error while printing cheque. at that time Basis team had made the changes in printer settings.

  • I have problem with data transfer between Windows Server 2012RT and Windows7 (no more than 14kbps) while between Windows Sever 2012RT and Windows8.1 speed is ok.

    I have problem with data transfer between Windows Server 2012RT and Windows7 (no more than 14kbps) while between Windows Sever 2012RT and Windows8.1 speed is ok.

    Hi,
    Regarding the issue here, please take a look at the below links to see if they could help:
    Slow data transfer speed in Windows 7 or in Windows Server 2008 R2
    And a blog here:
    Windows Server 2012 slow network/SMB/CIFS problem
    Hope this may help
    Best regards
    Michael
    If you have any feedback on our support, please click
    here.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Strange problem with SQLPLUS when client and server on the same box

    Hi,
    I have the problem with SQLPLUS when clinet and server on the same machine.
    With client and server on the same machine i am running the command
    sqlplus -l username/password@connect_identifier as SYSDBA.
    With this command, even if you pass in wrong username or wrong password or both as wrong you can able to connect to database and execute queries.
    Once Connect_identifier is correct and trying to log in as SYSDBA ,sqlplus will log in to DB with any username and password.
    How to get rid of this behaviour. Is there any way to do this.
    I am running this command by creating a process in C#
    Edited by: user11000236 on Jun 16, 2009 10:31 AM

    user11000236 wrote:
    Thanks for the info.
    How does Oracle/SQLPLUS allows any username or password to log in to DB with SYSDBA Privillages? What is the concept behind this.?
    This is explainted in the above mentioned link:
    Operating system authentication takes precedence over password file authentication. If you meet the requirements for operating system authentication, then even if you use a password file, you will be authenticated by operating system authentication.

  • Problem with the% deviation from Project Server 2010 field

    hello
    I have a problem with the% deviation from Project Server 2010 field.
    Within a file or project, this project contains tasks.
    Each task has completed the field% deviation.
    Within the row "Summary" in the field of% deviation does not perform the sum of all fields of tasks.
    Only occurs on certain projects, these projects have the view of PR Progress Report
    Anyone know happens?
    thank you very much

    Hi
    Sorry, I'll be more specific now.
    Within the field% deviation. Your settings in PWA is:
    The formula for field% Deviation:
    Str (IIf ([Job baseline] = 0; IIf ([Working] = 0, 0, 100); IIf ([Working] = 0; -100; Int (100 * ([Job] - [Work Online base]) / [Working baseline])))) + "%"
    Under the heading rows Calculation Summary:
    > Use formula.
    Within the field Allocation Calculation of rows:
    > It is labeled the "Apply unless you manually specify".
    The field [Job] and field [Job baseline] are fields Pack project server.
    The error is in project, in the list of tasks.
    In the top row, this row summary makes the sum of the ranks of the tasks of the file.
    But in my case only in the summary field the same value appears in the tasks.
    In all the cells in column% deviation appears the same value.
    I hope it helps.
    thank you very much

  • Problems with ARD and SwUpd Unix Command

    Hi everybody
    I have a problem sending UNIX commands to my clients, I work in a school with 500 macs, with 10.4 and 10.5 systems and all the computers download the updates from my Software Update Server, but when I try to send the command from ARD (sudo softwareupdate -i -a) the clients attemp to connect to Apple's servers instead my own SUS. It seems when I try to install with sudo command, overrides the address of my server.
    I show you the output:
    $ sudo softwareupdate -i -a
    password:
    2009-09-22 12:14:31.712 softwareupdate456 loader:didFailWithError:NSError "XML parser error:
    Encountered unknown tag style on line 5
    Old-style plist parser error:
    Malformed data byte group at line 5; invalid hex
    " Domain=SUCatalogLoader Code=0 UserInfo={
    NSLocalizedDescription = "XML parser error:\n\tEncountered unknown tag style on line 5\nOld-style plist parser error:\n\tMalformed data byte group at line 5; invalid hex\n";
    NSURL = http://swscan.apple.com/content/catalogs/index-1.sucatalog;
    Error: XML parser error:
    Encountered unknown tag style on line 5
    Old-style plist parser error:
    Malformed data byte group at line 5; invalid hex
    Software Update Tool
    Copyright 2002-2005 Apple
    When I try this command as a normal user, everything is ok:
    $ softwareupdate --list
    2009-09-22 12:15:03.569 softwareupdate458 Loading CatalogURL http://xserve.fcaq.k12.ec:8088/index.sucatalog
    Software Update Tool
    Copyright 2002-2005 Apple
    Software Update found the following new or updated software:
    * iPhoto504-5.0.4
    iPhoto Update (5.0.4), 41980K recommended
    * JavaForMacOSX104Release7-1.0
    Java for Mac OS X 10.4, Release 7 (1.0), 82580K recommended
    * iTunesX-9.0.0
    iTunes (9.0.0), 87530K recommended
    * QuickTime-7.6.4
    QuickTime (7.6.4), 51340K recommended restart
    * RemoteDesktopAdmin33-3.3 v1.1
    Remote Desktop Admin Update (3.3 v1.1), 57530K recommended
    * SecUpd2009-005PPC-1.0
    Security Update 2009-005 (PowerPC) (1.0), 81690K recommended restart
    I hope you can help me... Thank you so much

    I have the exact same problem with two PowerMac G5's. I need to have full resolution on the remote G5 which has no monitor connected, but only get to choose between PAL and NTSC TV resolution. This is really annoying, and in my opinion a major bug in ARD 3.1 and below. Why is the user forced to see such a small remote window if the remote computer is capable of much more?

  • Problem with provisioning and external SQL server connection

    I am configuring IPAM 2012 R2 on a our management server.  Completed the first step by enabling the feature.  No issues.
    Now I am on the Provisioning IPAM step.  I get to the Configure Database step...
    I choose Microsoft SQL server,
    What should those values be in the Server name and Database name fields.  Instructions show fqdn or ip address but that doesnt seem to be working for me.
    I get the following error at the end of the Provisioning IPAM wizard,
    IPAM Deployment failed with the following error.
    Failed to connect to database server. Check the database name, connectivity and remote access.
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.
    (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.)
    You can restart this provisioning wizard from the IPAM overview page.
    From the management server I have tested the SQL Connection with a udl file.  I used myServer\myInstance and it works.  It reports that I have made the Connection to the server and database with the sql credentials i have provided.
    Thanks

    Ran
    into a problem with connecting to the DB on the SQL server from the IPAM server.  The Dba and I checked the target SQL instance was enabled TCP and listening on a valid TCP port.  SQL server was set to use port 1443 for incoming connections. 
    IPAM was set by default to use 1433. 
    Also used
    netstat-n to identify issue and verified 1443 on SQL server was
    being used.  Made the correction under the IPAM provisioning wizard and connected to the database.  Fixed. 
    Important note I was able to connect to the database with a .udlfile
    without any issues
    Also note that 2012 R2 IPAM only supports 2012 SQL Enterprise.  Why?

  • Problem with scanning - printer display shows "Server connection error"

    My printer has been working great and I have had no problems with scanning.  But two days ago, all of a succen I rec'd message "server connection error".  I tried to send to email as well as computer.  Got the same message.  As usual, I don't recall any action on my part that could have caused this problem.    The copying and printing functions work fine. Detailed advice to someone technically challenged will be much appreciated.  Thank you.

    Ran
    into a problem with connecting to the DB on the SQL server from the IPAM server.  The Dba and I checked the target SQL instance was enabled TCP and listening on a valid TCP port.  SQL server was set to use port 1443 for incoming connections. 
    IPAM was set by default to use 1433. 
    Also used
    netstat-n to identify issue and verified 1443 on SQL server was
    being used.  Made the correction under the IPAM provisioning wizard and connected to the database.  Fixed. 
    Important note I was able to connect to the database with a .udlfile
    without any issues
    Also note that 2012 R2 IPAM only supports 2012 SQL Enterprise.  Why?

  • Problem with yahoo! SMTP POP server mail account on new upgraded iphone 4.3.5

    PLEASE HELP!
    I am a California AT&T wireless customer with a new iphone 4 on the iOS 4.3.5 upgraded system and suddenly I am unable to successfully add my Yahoo! email account and have it configured to send/receive my emails.  I was able to successfully add my gmail and Microsoft exchange server account, but only problems with the Yahoo!  I checked all the settings, have done several add/delete accounts, restore network settings, and retry/reboots, to no avail.  This is a seriously annoying problem, it worked with the pre-upgraded older version fine without any problems ever.  I continually get the same error message:  SERVER UNAVAILABLE, please try again later.
    I know this error is inaccurate because all my other email accounts work fine as well as Safari and all other internet connections and apps.  It is not a phone thing, it is some yahoo and upgraded software incompatibility issue that no one seems to have resolved yet.
    This is a SMTP PUSH POP account, and I have literally tried everything.  I have tried all the fixes while connected to wifi, and then tried them just via my 3G cell network connection.  I read on a message board about turning on/off SSL, could someone tell me how to do that?  When I go into to:
    settings>mail accounts>outgoing mail server SMTP>Yahoo! SMTP, everything is grayed out and I can't change any ports or SSL.
    When I try to manually add a server, which I was told was a fix, I don't know what to type into the host name.  Does anyone know how to help?
    I have seen this problems on numerous message boards, even in the UK.  I contacted Apple Support, with no success in resolving this problem, had an open case for several days contacted several supervisor personnel, all advised me to contact Yahoo! who do not offer customer care via telephone only online, and nothing there helped to resolve my issue.
    PLEASE, PLEASE HELP!
    THANKS

    Yahoo's servers have been having problems off and on now for close to a month if not longer. There's not much you can do about it except talk to Yahoo, which is kind of like beating your head against a wall.  They've had problems like this off and on since as far back as the mid 90's. I gave up on them long ago. Just convert to something else and dump them. It's not worth the headache.

  • Problem with connecting to Small Business server 2011 on Z10

    I cannot connect  my Z10 on Vodafone to my small business server 2011 to receive or send email. No problem with my IOS device. I understand this may be an active sync issue. Can anybody point me in the direction of some sensible advice /guidance to resolve this issue please.

    For qeustions regarding RDC, you should post them on Microsoft's own forums for their Mac software:
    http://answers.microsoft.com/en-us/mac

  • Problem with inbuilt Solaris Apache Web Server v 2.0.58

    Hi,
    Set-up:
    We are working on a custom application which works with the inbuilt Apache Web Server on the Sun Solaris platform. Here are the details of the versions of the various components involved:
    Apache Web Server: Version 2.0.58
    Platform: SunOS 5.10 Generic_127111-03
    Our application is in the form of a shared library(.so binary) which is loaded into the Apache Web Server by mentioning the following directive in the Apache Web Server's configuration file (httpd.conf).
    LoadModule at_module "/var/apache2/logs/sample/sample.so"
    where, sample.so is our application's binary
    and at_module is the name of the module.
    httpd.conf file has been attached for your reference.
    Attachments:
    httpd.conf - Apache Web Server's configuration file.
    sample-apache.cpp - Sample program which is showing the problem.
    httpd.h - Apache Software Foundation's file which contains the structure "request_rec" that represents the current request.
    Problem summary:
    For each request to the Apache Web server, the server maintains a table of type "apr_table_t" which contains the header environment from the request. There is a structure "request_rec" maintained in the httpd.h file:
    /** A structure that represents the current request */
    struct request_rec {
    /** The pool associated with the request */
    apr_pool_t *pool;
    /** Request method (eg. GET, HEAD, POST, etc.) */
    const char *method;
    /** MIME header environment from the request */
    apr_table_t *headers_in;
    In our case, when we try to retrieve the address of "headers_in", we get a NULL Value. Please refer to the attached "sample-apache.cpp" program. In this program, inside the access_checker() method, we try to retrieve the address of "headers_in" and get that as NULL:
    extern "C" int access_checker(request_rec *r)
         FILE * fp;
         fp = fopen("/var/apache2/logs/sample.txt", "a");
         fprintf(fp, "\n r->headers_in = %u, r->method = %s", r->headers_in, r->method);
         fclose(fp);
         return OK;
    Here is the output of the sample program after accessing the main page of the Web server:
    r->headers_in = 0, r->method = GET
    r->headers_in = 0, r->method = GET
    r->headers_in = 0, r->method = GET
    Though we are able to retrieve one member of the structure request_rec (method), we are not able to retrieve the address of the other member (headers_in).
    Observation:
    We made an interesting observation that when we used the same sample program with the inbuilt Apache 2.0.52 Web Server on Solaris, we were able to successfully retrieve the address of headers_in. Here are the details of the set-up which is working fine:
    Apache Web Server: Version 2.0.52
    Platform : SunOS 5.10 Generic_118822-30
    Thus, there is something different which has happened between the Sun's Solaris Apache Web Server's versions 2.0.52 and 2.0.58 which is making it unable to retrieve the address of the request headers (headers_in).
    I am requesting someone to kindly shed light on this difference and let us know if we need to change the way of retrieving the request headers for Solaris Apache 2.0.58.
    Thanks,
    Atul.

    The only way you can achieve it is by running the web server to listen on port 80
    Please change the port in your httpd.conf file for the webserver and restart it.
    If any other processes are running/using on port 80 on that machine, then please stop them, otherwise you will not be able to achieve your requirement.
    Arun

  • Problems with Oracle 11g on Win2008 server

    Hi all,
    we changed our database 10g on W2K3 to 11g with Win 2008 server on weekend
    Since yesterday we have problems with the database. On monday we had no problems.
    The problems begun on tuesday. The assemly lines are connecting to the server with a tnsnames.ora, who placed on a networkshare.
    here the tnsnames.ora:
    # TNSNAMES.ORA Network Configuration File: C:\Oracle\product\10.2.0\client_1\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    IFILE=M:\TNSNAMES\tnsnames.ora
    ORACLE.MEKRA.NET =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = caq01)(PORT = 1521))
    (CONNECT_DATA =
    (SID = qsys)
    Every PC on the assembly lines has this tnsnames.ora and a connection to the mapping M:
    Today we had already the same problem. Some PCs got a connection to the DB and some got suddenly no connection.
    After 15 minutes diagnostics we stopped and started the db.
    The PCs got after the restart a connection.
    On the clients is the oracle client 10g installed, but I think thats not the problem.
    I don't know whats the problem can be.
    I hope you can help me or have some idea's?
    The TNSnames.ora on the server:
    # tnsnames.ora Network Configuration File: D:\Oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORALB1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.188)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = oralb1.mekra.net)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    The first problem we solved yesterday, we had two oralb1 entrences in the dns as static.
    One of them we deleted.
    The dns should be not a problem now.
    an idea? I hope so....
    thanks for reading.
    bye

    852138 wrote:
    Hi all,
    we changed our database 10g on W2K3 to 11g with Win 2008 server on weekend
    Since yesterday we have problems with the database. On monday we had no problems.
    The problems begun on tuesday. The assemly lines are connecting to the server with a tnsnames.ora, who placed on a networkshare.
    here the tnsnames.ora:
    # TNSNAMES.ORA Network Configuration File: C:\Oracle\product\10.2.0\client_1\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    IFILE=M:\TNSNAMES\tnsnames.ora
    ORACLE.MEKRA.NET =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = caq01)(PORT = 1521))
    (CONNECT_DATA =
    (SID = qsys)
    Every PC on the assembly lines has this tnsnames.ora and a connection to the mapping M:
    Today we had already the same problem. Some PCs got a connection to the DB and some got suddenly no connection.There must be some clue .. a tns error message ...
    >
    After 15 minutes diagnostics we stopped and started the db.
    The PCs got after the restart a connection.
    On the clients is the oracle client 10g installed, but I think thats not the problem.
    I don't know whats the problem can be.
    I hope you can help me or have some idea's?
    The TNSnames.ora on the server:tnsnames is used only by client processes. When you say "on the server" are you talking about the one pointed to by the IFILE in the local tnsnames shown above? If not, if this just happens to be the tnsnames on the database server, then it has no bearing on your problem.
    # tnsnames.ora Network Configuration File: D:\Oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORALB1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.188)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = oralb1.mekra.net)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    The first problem we solved yesterday, we had two oralb1 entrences in the dns as static.
    One of them we deleted.
    The dns should be not a problem now.
    an idea? I hope so....
    At a previous employer we used a shared tnsnames file. It was not on the db server but on a file server, specifically for shareing. Occasionally there would be an issue with the network connection to that file server, or our dimwit SA would change the sharing permissions. Of course he claimed there was no issue on his end and I had to take my own network traces to prove it was.
    thanks for reading.
    bye

  • Problems with post-method in weblogic-server 6.0

    Hello,
              I tried to implement a servlet in Visual Cafe working with weblogic 6.0.
              As I used the get-method it worked fine, but as I used the post-method
              I got the following java.lang.IllegalArgumentException:
              bad URLMatchMap path:''
              Does anybody know about this error and where I would have to set the
              path-variable. I have already registered the servlet in web.xml
              Thanx for your help
              Thorsten
              

              Try installing SP1. In SP1 a bug regarding POST using HTTPS has been fixed. Check
              the bug id 041234 in this link
              http://edocs.bea.com/wls/docs60/notes/bugfixes2.html#1073617
              Shiva.
              "Raju" <[email protected]> wrote:
              > Hi,
              >>
              >> We are using Weblogic server 6.0 with out service pack 1.0.
              >>
              >> I am having problem with Https POST, i am using port 7002. and when
              >i use
              >> https post servlet hangs for lot of time. But when i use Https using
              >GET,it
              >> works fine.
              >>
              >> Did any one face the problems.
              >>
              >> Thanks in Advance.
              >>
              >> Raju
              >>
              >
              >
              >
              

  • Terminal Server Licensing Problems with GPO Security Group License Server

    Hello,
    I have two fresh installs of W2K12R2.
    One is RD Session Host and the other one is the License Server. Everything is fine until I active the GPO Security Group License Server. After that the License Server gives no licenses
    to die clients (we have User und Device CALs). TS Licensing Diagnostic’s shows no errors, the number of available licenses is displayed correctly, even the state of GPO Security Group License Server is correctly shown as "active" and die
    Membership in the Group "RDS-Endpointserver" is "Yes". Eventlog shows no Errors. Log in on the session host is even possible, maybe because the RDS-Service is in evaluation time.
    If the GPO Security Group License Server is disabled again, the server starts to serve licenses as expected.
    I don’t know what I can do anymore, never had problems with exact the same setup under W2K8, but with W2K12 is the second time I notice this issue.
    Thanks for your ideas,
    Andreas

    Hi Andreas,
    Thank you for posting in Windows Server Forum.
    Sorry to inform but there is no official document for server 2012 related to this event, you can go through below article for reference.
    You cannot use a security group to add computer accounts to the Terminal Server Computers group. You must add each computer account explicitly. To verify whether an RD Session Host server is allowed to request RDS CALs from the Remote Desktop license server,
    you can use the IsSecureAccessAllowed method of Win32_TSLicenseServer class. For more details about this method, click here.
    1. License Diagnosis tool returns error "License server <computer name> cannot issue RDS CALs to the Remote Desktop Session Host Server because the 'License server security group' Group
    Policy setting is enabled."
    2.Control the Issuance of RDS CALs
    Note: You should only enable this policy setting when the license server is a member of a domain. You can only add computer accounts for RD Session Host servers to the RDS Endpoint Servers group when the license server is a member of a domain.
    Hope it helps!
    Thanks, 
    Dharmesh

Maybe you are looking for