Servlet, Tomcat 3.3, IIS virtual directory access denied

Hello people,
I've set up Tomcat to run as a service with a domain log on usr/pswd. IIS works fine redirecting servlet requests to Tomcat via ISAPI redirector. All on Windows 2000 Server.
The problem:
The java application creates and reads files from a location which corresponds to an IIS virtual directory and is also a local directory with respect to the Tomcat and IIS installation. The application is denied access to this directory when submitting a network path (\\server/drive/directory/) where to store and read files, but is happy when a local path is given instead (E:/) Why? The domain user should have complete access to this. Is it Tomcat, IIS, or java restrictions?
I appreciate any suggestion on this
Thanks

The problem would be with the logon that you have Tomcat running under. Writing to a file accessed by network share (\\server\share) is not a problem under Java as long as the logon has appropriate privileges. If you are writing to something of the form \\server\c$\directory, as it sounds like you might be, the logon may need administrator access to the box (in order to see \\server\c$).

Similar Messages

  • MP Related Logs and IIS Virtual directory not created After re_installation of SCCM 2007

    Hi
    We have re-installed the IIS and SCCM secondary site. tried to intsall the MP role and DP role but it has not created any logs or IIS virtual directory in the secondary site server which is in WAN link.
    Trouble shooting:
    - checked the ports 443,445 and 80
    - Disabled symantec
    - exchanged the public key ( still it is in progress in Despooler log)
    - checked the site to site permission and added the accounts.
    please suggest further.

    Yes, I know this is an old post, but I’m trying to clean them up.
    What error(s) are you getting within the logs? Without these details there isn’t much anyone can do to help you.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • How to create an IIS virtual directory programmatically?

    All-
    Is it possible to create an IIS virtual directory
    programmatically using Coldfusion? Is there some set of server
    objects that could be tapped into using COM, for example?
    Any guidance would be appreciated. Thanks.
    -Josh

    You should be able to do this (as well as all other
    administrative tasks) using CFEXECUTE, Windows Scripting Host, and
    IIS management object. Read IIS documentation. It contains tons of
    ready-to-use scripts.

  • Dynamic virtual directory access

    Hi!
    I am running into some problems.  With our new LMS on logging in, the systems creates a link to content with an on-demand virtual directory.
    Now with our old system this didnt happen and we could hardcode in fms.ini the guid's of the asset locations.
    Can you think of anyway for me to incorporate this on-demand guid created on login in the fms.ini so that I can get the files to play using this virtuil directory?

    Unfortunately, when it comes to Streaming Server, your options are limited.
    I don't work with Streaming Server (never been asked to), but to the best of my knowledge, your only possible in point for authenticating clients on a per-client basis (as opposed to defining IP's and referrers globally) is through an authentication plugin. In a recent version of FMS, Adobe added support for auth plugins to support the FMLE authentication addin, but since I've never tested, I don't know if you're able to develop your own auth plugin, or if FMSS will only accept the prefab FMLE Auth addin as a plugin.
    That said, I don't see any way of mapping a virtual path for a client in an auth plugin... looks like you'd need to to an access or file plugin for this, and I'm pretty sure FMSS won't let you use either of those.
    Now that I'm thinking about this, perhaps you can get around the requirement for scripting and virtual paths altogether. If the directories created by your CMS all share a common root, and you don't need to acually authenticate the client connections to FMSS (which, IMO is a really bad idea), I suppose you could configure your FMS application's media root to be the common root of the CMS folders, and then just use the path to the required file for each stream.
    For example, if your CMS puts all of the folders into c:\CMS\media, and for each user session it creates something like c:\CMS\media\someSessionId\file.mp4, you could configure your media storage root as c:\CMS\media, and then when invokeing your netstream.play() method on the client side, you could just use the path to the file from the media root:
    ns.play('mp4:someSessionId/file,mp4", 0, 0);
    Beyond that, I don't know of what else to suggest for streaming server.

  • IIS Virtual Directory and Application Pool for Large Images folder

    I have a large images folder used for Upload and Download with approx. 1.5 TB for a web site.
    My Website use AppPool_A.
    For performance reasons, do I need to create different Virtual Directory and different Application Pool (AppPool_B) for Images folder. Assuming, if the number of users increase in upload/download images the memory & cpu utilization will be
    more and App Pool recycle happens more often. And other impact is if Website and Images are in same App Pool, the application performance slow.
    Pls. suggest
    AnilKumar Bedide

    Hi,
    Please post on IIS fourm instead of here.
    http://forums.iis.net/
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Logger Could not write to log directory Access denied

    Hi, I have this case. The User has contribute access in a document library in SharePoint 2007. When he opens an excel file and choose to modify the file, he gets the following message in Excel application.
    I have checked permissions and excel, but everything looks good.
    Have you seen this issue before? Any ideas?

    There was an add-in in Excel called Thomson ONE Analytics that was causing this pop-up. Once it was disable, the pop-up wasn't showing up anymore.

  • Tomcat 4.12 Deletes Files when access denied

    Hi,
    I have encountered a very strange behaviour on Tomcat Web Application Server.
    After changing some permissions (on a Win 2000 Server hosting the tomcat application server) whilst the server was running. The tomcat process deleted files that were effected from the change in permissions and were requested by the client browser.
    Has anybody ever encountered this scenario ?
    If yes can you get the files back ?
    Does this mean that one should never change permissions whilst the tomcat process is still running?
    Thanks Alot
    Nicholas.

    Thanks for he info.

  • TWO IIS virtual directories for TWO WebLogic Instances

    I have an IIS website with one IIS virtual directory which is using iisproxy.dll
    to redirect the request to a weblogic instance.
    Now, I would like to create another virtual directory which has to redirect to
    another weblogic instance (with different port). How can I do that? I have tried
    to create another copy of iisproxy.dll & iisproxy.ini but that new website still
    forward the request to the old website. Please advice.
    Many thanks.
    Ronald

    Hi Ronald
    This is not possible with existing weblogic releases.
    However There are couple of workarounds for this.
    1. Setup two IIS Sites forwarding requests to two weblogic servers.
    Make sure The IIS sites are running with Application Protection of
    High(Isolated).
    Make sure the iisproxy.ini and iisproxy.dll for theses different sites
    are in different
    diectories and configure the sites and iisproxy.ini files appropriately.
    - This, i tries and works great.
    2. Let All the requests go to one weblogic server. Register a servlet
    with you'r second virtual directory name as a proxy servlet proxying to
    the second
    weblogic server.
    - This might work. But you have to remeber the performance impact of
    proxying twice.
    Hope this helps
    vijay
    "Ronald" <[email protected]> wrote in message
    news:3aff5049$[email protected]..
    >
    I have an IIS website with one IIS virtual directory which is usingiisproxy.dll
    to redirect the request to a weblogic instance.
    Now, I would like to create another virtual directory which has toredirect to
    another weblogic instance (with different port). How can I do that? I havetried
    to create another copy of iisproxy.dll & iisproxy.ini but that new websitestill
    forward the request to the old website. Please advice.
    Many thanks.
    Ronald

  • GF 3.1.1 - java.security.AccessControlException: access denied - server.log

    I am upgrading an old NB4.1 produced JSP system that runs on Netscape iplanet to NB7.0.1 built JSP system running on Glassfish 3.1.1. I have four main files: login.html, login.jsp, ApplicationRmiConnection, and MenuManager.jsp . Three of four are working. The login.html is only a startup means to be sent to the login.jsp. The ApplicationRmiConnection is a servlet called by the login.jsp. It reads a properties file, establishes connection with the RMI and database (currently on the OLD system (Netscape iplanet)) which it does quite well. After the ApplicationRmiConnection is established and working the MenuManager.jsp . The first output from the MenuManager.jsp is a series of application.log calls for verification of data passed in from the successful ApplicationRmiConnection database read.
    How does GF 3.1.1 loose AccessControl permissions to the server.log to which it is writing? All I am using is application.log statements and it coughs, chokes, and quits.
    My output stacktrace is:
    INFO: PWC1412: WebModule[null] ServletContext.log():ApplicationRmiConnect: getRealPath("/") = [C:\Program Files\glassfish\glassfish-3.1\glassfish\domains\domain1\applications\MyApplication\]
    INFO: PWC1412: WebModule[null] ServletContext.log():MenuMgr: sParms - RMI Connect = com.company.rmi.ServerAppClientAdapter@19ca6bc
    INFO: PWC1412: WebModule[null] ServletContext.log():MenuMgr: caught an Exception
    WARNING: StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception
    java.security.AccessControlException: access denied (java.io.FilePermission C:\Program Files\glassfish\glassfish-3.1\glassfish\domains\domain1\logs\server.log read)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
    at java.security.AccessController.checkPermission(AccessController.java:546)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
    at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
    at java.io.File.exists(File.java:731)
    at com.sun.enterprise.server.logging.GFFileHandler.publish(GFFileHandler.java:676)
    at java.util.logging.Logger.log(Logger.java:481)
    at com.sun.logging.LogDomains$1.log(LogDomains.java:354)
    at java.util.logging.Logger.doLog(Logger.java:503)
    at java.util.logging.Logger.logp(Logger.java:619)
    at com.sun.enterprise.web.logger.IASLogger.write(IASLogger.java:127)
    at com.sun.enterprise.web.logger.LoggerBase.log(LoggerBase.java:190)
    at com.sun.enterprise.web.logger.IASLogger.log(IASLogger.java:57)
    at org.apache.catalina.core.StandardContext.log(StandardContext.java:6828)
    at org.apache.catalina.core.ApplicationContext.log(ApplicationContext.java:449)
    at org.apache.catalina.core.ApplicationContextFacade.log(ApplicationContextFacade.java:359)
    at org.apache.jsp.MenuMgr_jsp._jspService(MenuMgr_jsp.java from :533)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
    at java.lang.Thread.run(Thread.java:662)

    The problem area has been found. We need to know the best method to replace the two lines of code we commented out. Here is what we found.
    Glassfish 3.1.1 Security does not play well with old RMI security (JDK1.2 vintage). Furthermore, once the old RMI security has messed with the mind of GF3.1.1 security the GF security truly believes it has in some cases no permission to read its own server.log file.
    Here is the offending code commented out in the Server Client Adapter (client wrapper):
    Note: this is legacy rmi code. i.e. manually executed rmic on the appropriate classfiles as this was originally created for java 1.2.
    // if(System.getSecurityManager() == null)
    // System.setSecurityManager(new RMISecurityManager());
    remote = (com.davisco.rmi.ServerAppServantAdapter_Stub)Naming.lookup(stringbuffer.toString());
    A thank you goes out to www.velocityreviews.com/forums/t276590-access-denied-java-lang-runtimepermission-createsecuritymanager.html even if it is five years old.
    Again, this is using the original version of RMI. How do we re-implement the RMI Security Manager without offending GF 3.1.1 security?

  • Remote Virtual Directory with Tomcat

    Does anybody knows if is it possible to set a virtual directory in Tomcat 4.1 or 6.0 in a remote PC ?
    This is the example:
    Mi PC running Tomcat. Mi PC IP: 172.16.8.212.
    There is another PC in the company with another Tomcat running. Let's say in IP 172.16.8.213.
    The public IP is asociated with my PC, and I need that when somebody tries to find certain web application (located in the Tomcat in 172.16.8.213 ) my Tomcat execute the remote application as if it is local.
    Somebody could tell me: "Ok, so why don't you bring the remote application to your local Tomcat, and end with the complications". For some reasons (one of them is security), that's not a choice.
    Thank you very much for any help, and sorry if for my ignorance somebody gets angry.

    A few methods that come to mind off hand would be:
    1) Make an app on your server act as a proxy to the other app. That is, make a Servlet mapped to all URLs in the context. The servlet simply makes a corresponding request to the other server passing all pertinent information from the originating client. Your servlet then reads the response and pipes it directly to the response object
    2) Try setting up a <context> element with the docBase attribute set to the other server's docBase. The other computer would have to give your server read/write access to the directory of interest. Since your server would be actually hosting the application you would have to check on environment and resources to make sure any required settings are duplicated properly.
    3) Have the other application hosted on a different port, and your firewall map that port to their server and your port to your server.

  • Virtual directory mapping in tomcat

    How can I virtually map directories in tomcat ?
    Example I want to access .../images directory from jsp page by /images.
    it is possible in weblogic but how can i implement it into tomcat .
    If any body can help me regarding this , It would help me .
    Thanks in advance.

    One way could be to do it with the urlrewrite filter: http://tuckey.org/urlrewrite/

  • Tomcat Virtual Directory

    I installed Tomcat 4.1.18 and have enabled the servlet invoker, but I am unable to access an html page (index2.html) under the application directory.
    My path is C:\Jakarta\jakarta-tomcat-4.1.18\webapps\myApp and the html file is placed in the myApp directory. I have the default port set to 80. Shouldn't I be able to use http://localhost/myApp/index2.html I have verified that Tomcat is running by accessing the default jsp page. Thanks.

    first configure your 'myApp' in server.xml file,
    <Context path="/myApp" docBase="myApp" debug="0" privileged="true"/>..now use http://localhost:port/myApp/index2.html

  • VIRTUAL DIRECTORY in TOMCAT 5.5

    Hi all ,
    I am abeal to create a virtual directory under tomcat , I want to create another virtual directory under a virtual in tomcat , is there any way to do this ?
    As far as my knowledge is concern , IIS has the power to do this .
    Thanks ,
    SB

    gladiator_cbe,
    Did you ever figure this out? I cannot figure out how to create aVirtual Directory in Tomcat 6?
    Thanks

  • How to create file form servlet in our virtual directory

    hi....
    I want to create a file form my servlet in my virtual directory..
    my directory name ia vps
    it cconatin vps -> WEB-INF -> classes-> servTest
    servTest is servlet....
    and i want to create file from servTest in vps directory..
    actually i am trying to create file but it by default saved in windows/system32 directory.

    You need to give the absolute path to create the file, if you just give the filename, the file will be created in the working directory which is system32 for Windows.
    You could either hardcode it, or you can use ServletContext.getRealPath("/") ( http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String) ) This will return the path on the server's filesystem where your application folder ( under webapps for Tomcat) is located.
    NOTE: If you application is in the form of a .war file, this may not work! The server may return a null.
    "/" specifies the root i.e., your application's highest level directory. If your application is webapps/vps then getRealPath("/") will return something like C:\Program Files\Apache Group\Tomcat 4.1\webapps\vps

  • IIS refuses to serve one specific file through this one specific virtual directory

    Other javascript files with the same extension in the same folder work fine. Other virtual directories with the same file work fine.
    Any help? Detailed error message is at the bottom.
    Problem Details:
    Only this combination of virtual directory and file fails http://localhost/jslib/vin.js 
    Accessing other javascript files in the same location works. i.e. http://localhost/jslib/xvin.js returns fine.
    Accessing the same javascript file in the same file location but using a different virtual directory works. i.e. http://localhost/jslibtest/vin.js returns fine.
    I checked the security of the file and the folder and gave "Everyone" and the anonymous authentication account set up for the site read rights.
    Changing the name of the file (and nothing else) works.
    Running Windows Server 2012 R2 Datacenter
    Web site application pool is running as "LocalSystem", Classic pipeline, .NET v4.0
    Things I've tried:
    Removing and re-creating the virtual directory with default settings (through IIS Manager)
    IISReset
    Setting the handler mappings for the virtual directory to "revert to parent" (file works fine when served from the root). Yes, the static file handler is defined.
    Setting the MIME types of the virtual directory to "revert to parent" (file works fine when served from the root). Yes, .js is listed as a MIME type application/javascript/
    Deleting the file and re-creating it from scratch
    Creating a blank file with the same name
    Reviewed the web.config file for the site: no mention of either the file or the virtual directory
    Trying to access the file using http://localhost/jslib/vin.js reports:
    HTTP Error 404.4 - Not Found
    The resource you are looking for does not have a handler associated with it.
    Detailed Error Information:
    Module   IIS Web Core
    Notification   MapRequestHandler
    Handler   Not yet determined
    Error Code   0x80070002
    Requested URL   http://localhost:80/JSLib/VIN.js
    Physical Path   F:\VINWebData\wwwroot\JSLib\VIN.js
    Logon Method   Anonymous
    Logon User   Anonymous

    I would recommend asking them in IIS forum: http://forums.iis.net/
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

Maybe you are looking for

  • Q/s on rebuilding index

    Hi All in one of our applications we want to rebuild index which his craete as below, this is on 11G 11.2.0.3.0 Solaris 64bit CREATE INDEX idx_id ON scott.branch(bank_id) INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS ('FILTER CTXSYS.NULL_FILTER SECTION GROU

  • New update just freezes!

    Please help.  New update now just freezes.  Can't get any of my music or the store.  I decided to just delete it from my machine and download it again.  Had the 32bit but it is now saying I havew to download the 64bit.  Did that and an error message

  • No red colors on projector

    When showing Keynote presentations via my Macbook and the official Apple convertor to VGA for the projector, I still get no red colors on projectors (or beamers as they are called in Holland). I have tried everything, used different VGA cables. I hav

  • How can i enlarge the toolbar?

    can i enlarge the toolbsar in Safari?

  • I can't open .doc files attached to the mail.

    After upgrading to the last version (31.6.00); I cannot open .doc files. I use Open Office 4.1.1. No problem with .xls or .pdf files. But neither the attachments in my sent mails nor the attachments in incoming mails type .doc can be opened by clicki