JSP file sharing violation under Tomcat... ($$)

please help on this following topic ...(DD) :
http://forum.java.sun.com/thread.jsp?forum=45&thread=302846
Any help is welcome.
Thanks

It's simple,
With some jsp files (not all but always the same ones), this is what happens :
1/ I modify the file and save it
2/ I run it, it works
3/ I modify again , but I can't save my modifications, my editor saying that the file is opened by another application (I use several editors and I have the same message). The only solution I found is to restart the server !!!!!

Similar Messages

  • Identify file sharing violation

    For example, i want to write a certain file which is open by other application for writing.... how do i know the IOException being thrown is file sharing violation?

    duplicate thread

  • Problems running jsp files with tags on tomcat 4.0

    hi,
    i had some jsp1.1 stuff running on tomcat3.3.
    last week i moved to tomcat 4.0 , changed the tags to fit jsp1.2 and... everything is wrong now. while trying to run jsp with tags i get an error message (same for all files):
    ---->
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: (class: org/apache/jsp/djsp$jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse; )V) Incompatible object argument for function call
    <-------
    the jsp files with no tags and servlets are running ok.
    I NEED YOUR HELP!!!

    cyclid,
    i have the same environment setup and the same troubles. after searching the forums, it seems that there are others with the same, if not similar issues, yet no solutions. if you find the solution to this one, could you please post it. i would really appreciate it since i have been on this one for several days with no success. i even tried the helloworld jsp/custom tag examples from a jsp profession book that i have and that won't work.
    Anyone out there,
    if you have any idea why this problem exists, any solutions, ideas would be appreciated.
    thank you,
    navesink

  • New File() in servlet under Tomcat

    When I try this:
    File file = new File( "testdirectory" );
    System.out.println( file.getAbsolutePath() );
    I get the following:
    <TOMCAT_HOME>/bin/testdirectory
    But I need to access the directory in the classes directory of my web app.
    What am I doing wrong???
    Thanks for the help...

    According to the tomcat doc, a resource is first searched in the web-inf/classes directory, which is where my testdirectory is located. So when I do:
    new File( "testdirectory" );
    I get the file in <TOMCAT_HOME>/bin/testdirectory instead. It seems like tomcat looks in the wrong directory. I really should access the file in web-inf/classes?

  • Personal File Sharing not in Sharing list

    Hi. I am running Mac OS X Tiger 10.4.8 and I would like to turn on the Personal File Sharing service under Sharing from the System Preferences menu. Unfortunately, the only services available in the list are Remote Login, Apple Remote Desktop and Remote Apple Events.
    Any advice on adding Personal File Sharing to the Sharing list would be greatly appreciated. Thank you.
    Mac Pro   Mac OS X (10.4.8)  

    only have a "Services" tab in my Sharing preferences, no "Firewall" tab
    Hmmm, something is definetly wrong then... have you tried Making a New Admin User as a test yet?
    Have you tried Applejack yet?
    http://www.versiontracker.com/dyn/moreinfo/macosx/19596
    After installing, boot holding down CMD+s, then when the prompt shows, type in...
    applejack AUTO
    Then let it do all 5 of it's things.
    Might try a Re-install of the big 10.4.8 COMBO Update... not the Delta.
    Might Trash...
    /Users/nnnnLibrary/Preferences/com.apple.internetconnect.plist
    /Library/Preferences/SystemConfiguration/preferences.plist
    /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist

  • Files not appearing in the File Sharing section

    Hi Everyone,
    I created a ringtone on the iPhone, using Ringtone Designer Pro. The problem is, when I connect my phone to the computer, the ringtone doesn't appear under the "Ringtones" icon in the file sharing section under my device in iTunes.
    This problem is apparently prevalent with any app that supports file sharing in my case - I created a test document in Pages but that didn't show up either. The apps themselves are listed, but not the files created by them.
    So far, I have tried uninstalling and reinstalling iTunes and all other Apple related software, without any improved results.
    iPhone 4 32 GB, iOS 4.3.3;
    iTunes 10.3;
    Windows 7 Home Premium 64 bit.
    Any help is greatly appreciated.

    Connect your device to iTunes, select it in the left-hand colum, select the Apps tab, scroll down to File Sharing, select the app in question, in this case iMovie. Your file will be in the panel to the right.
    tt2

  • ITunes File Sharing question

    I really like the reader, mainly because it's uncomplicated an uncluttered, but I'm having a problem with importing files into it. I opened a .pdf from an eMail with the option open with Adobe Reader and the file is now on the list in the iPad app. When I sync with iTunes the file is not listed in the file sharing section under the adobe reader app. Is it meant to be like this? I thought files imorted into the iPad app from email attachements would show up on that list under the corresponding app, that's the app you open the attachment with?
    And since I'm already writing this, I'd like to second the feature request for additional organization options, like folder creation, file moving and renaming on the file list screen.
    Thanks!

    File opened from email is stored in the Inbox folder of your app. itunes does not support browsing through the Inbox ( or any other folder). Hence, you did not find the file in the file-list.
    Thanks for the feature request. We will try to add this functionality in the future release(s) of Adobe Reader.

  • Cannot find JSP file through web.xml

    Content of a.jsp
    function Thisthing (id, name) {
    this.id = id;
    this.descr = name;
    I want to access a.jsp from b.jsp. like
    <script type="text/javascript" src="a.js"></script>
    I have web.xml content
    <servlet>
    <servlet-name>DomainObjectis</servlet-name>
    <jsp-file>/a.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
    <servlet-name>DomainObjectis</servlet-name>
    <url-pattern>*.js</url-pattern>
    </servlet-mapping>
    However its showing me an error -> .Thisthing undefined whenever I run this in Tomcat 5.5.
    I appears its not finding my a.jsp file. It's working fine when I do
    <%@ include file="a.jsp" %>

    thanks for replying jgalacambra.
    I have deployed several web applications before. But this is the first one where I am trying to include a JSP file as a javascript.
    tomcat recognizes when I simply including the jsp file with import but when I try to include it as a script it's not working. So I am hoping that there are some experts here who can help me. I saw this being done in a project and am trying to build a similar web application myself.

  • Can't select user for file sharing with windows

    I'm trying to share my MBPr over my LAN with my windows 8 desktop. When i go to the file sharing options, under "Windows File Sharing" section, the user account i want to share (my main account) is greyed out, so I can not select it. The other user account is selectable though.
    Any reason why I can't select my main account??

    wow, is that all it took? I spent several hours on support chat who ultimately made me create a new user account and import all my old account data over to that one. It worked, but would have been way easier to just change the password. Oh well. It's fixed now...

  • File sharing issue with Itunes

    I have a couples of apps from which I can added documents in the file sharing section under the apps tab (in Itunes). After 5 click on any apps in this section, no other files will appear in any of my apps (ex. cloudreaders, Readdledocs, etc..). I'm forced to shut down Itunes and start over.
    I updated my Itunes for the last 9.2 (x64, windows version) and I still have the same problem. Please I need advice on hoe to fix this.

    Same problem too. I've been scouring the web for days trying to find more info on this. I can't determine if it started when I upgraded to iTunes 10 or iOS 4 ... But I know it was one of those! All the apps I installed that utilize the file sharing feature exhibit the described behavior ... Stanza, Goodreader, PDF Reader, etc. Does anyone know if Apple is aware??
    I've been dragging and dropping and that seems to help, so far.

  • Uploading jsp files

    Hello:
    I'm new to Mac OS X server, but an old hand at unix based systems. My problem is simple: I am unable to upload JSP files using WebDAV. I can upload pretty much anything else, but get an error when trying to copy up JSPs. Is there an ACL or something that needs to be set?
    Any help would be much appreciated. Thanks in advance.

    To answer my own question -- since JSP files are mapped to Tomcat through Apache using mod_jk (at least in my case), and since files are transferred using Apache when using webdav, every request for a jsp transfer is passed on to Tomcat, and Tomcat had no idea what to do with the request. Tomcat does have a webdav client built in, but not installed.
    Fortunately, the solution is fairly simple.
    Disable webdav on the site in question using the Server Admin tool. Create another web site in Server Admin, with a name like "webdav.mydomain.com". Enable Webdav for this site. Unlike the version of the site that is "live", do not connect this version to tomcat using mod_jk. Create a new realm, with permissions set as follows:
    Everone: None
    You: Browse and read/write WebDav
    This is fairly important if you want to protect the contents of your jsp files. Assuming that you've made the changes to the domain name record, you should now be able to connect to http://webdav.yourdomain.com and transfer jsp files back and forth as you wish.
    Message was edited by: tcs66

  • Modify jsp files without redeploy

    Hello,
    i modify jsp files without redeploy using tomcat.is there anyone know how
    to enable wls has this future.
    do you have any advice
    Best Regards,
    rechete

    Hey Rechete. Check out "Split Development Directory Environment" which we introduced in 8.1.
    The WebLogic split development directory provides these benefits:
    * Fast development and deployment. By minimizing unnecessary file copying, the split development directory Ant tasks help you recompile and redeploy applications quickly without first generating a deployable archive file or exploded archive directory.
    * Simplified build scripts. The BEA-provided Ant tasks automatically determine which J2EE modules and classes you are creating, and build components in the correct order to support common classpath dependencies. In many cases, your project build script can simply identify the source and build directories and allow Ant tasks to perform their default behaviors.
    * Easy integration with source control systems. The split development directory provides a clean separation between source files and generated files. This helps you maintain only editable files in your source control system. You can also clean the build by deleting the entire build directory; build files are easily replaced by rebuilding the project.
    http://e-docs.bea.com/wls/docs81/programming/environment.html#1097239

  • Where to put shared JSP files in Tomcat?

    I'm building two different web applications. Both applications are deployed within Tomcat. Now these applications share some JSP files. I can not figure out where to put JSP files that are shared (with the include directive) among several applications. Can anyone help me?
    Thanx debeumers

    Well, now I'm not so sure anymore. But I have some
    checkboxes I want to share among different
    applications. So why can you share classes and jar
    files and can not share JSP's?Sounds like more trouble than it's worth. Disk space is cheap. I'd deploy them with each app.
    The only thing that would make me hesitate is the DRY principle. In that case, I might have "common" JSPs in my version control. I'd have the Ant script from each Web app check out the same "common" JSPs and build them into WARs. That would keep those JSPs common and not violate DRY. JMO - MOD

  • Help running a simple jsp file,Tomcat 5.0.16

    Hi,
    This question may be addressed many many times,but do reply.
    I have a Win xp operating system
    Installed Tomcat 5.0.16 in it.
    Next the directory structure
    PS : The sampleapp directory is outside the tomcat installation directory.
    E:/sampleapp
    | |
    ROOT WEB-INF
    |
    classes
    |
    <package1><structure> .class files (for servlet works fine!!!!)
    in the WEB-INF,there is the web.xml,then sourcefiles<dir> and the lib directory which is empty.
    Now the servlet files work fine.........
    I have placed my MyJsp.jsp file in the above mentioned ROOT directory.
    I have not done any thing with the <TOMCAT_HOME>/conf/server.xml file
    and the web.xml which I have written.
    When I give the following URI
    http://localhost:8080/sampleapp/MyJsp.jsp,
    I get the HTTP status 404- /MyJsp.jsp
    description: The requested resource (/MyJsp.jsp) is not available.
    Hoping that I have defined the problem specifically.Kindly show some light on this.
    Thanks
    AS

    Nevermind. I just found the answer. For the record, there are two ways in getting JSPs to work:
    1. Precompiling the JSPs and modifying your webapp's web.xml file with the XML fragment generated in YourWebApp/web/WEB-INF/generated_web.xml;
    2. Not precompiling the JSPs, but simply letting tomcat compile it on the fly on first access.
    PRECOMPILATION METHOD
    Go to http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html. Copy-and-paste the ant script under the section "Web Application Compilation" into a file called compile.xml. For me, I save it in ~/development/compile.xml. Then compile the JSPs using the command (all in a single line):
    $ANT_HOME/ant -file <PATH_TO_COMPILE.XML> -Dtomcat.home=<$TOMCAT_HOME> -Dwebapp.path=<$WEBAPP_PATH>
    In my case, I cd into the directory where my app resides:
    cd ~/development/HelloWorld
    and then I type:
    ant -file ~/development/compile.xml -Dtomcat.home=/var/tomcat5 -Dwebapp.path=.
    (Note the trailing dot since my current directory is my webapp's directory itself. Also, in my case, my shell's PATH contains the path to the ant executable, so I just type 'ant' directly.)
    Open the file ~/development/HelloWorld/web/WEB-INF/generated_web.xml and follow the instructions in that auto-generated file, which is: "Place this fragment in the web.xml before all icon, display-name, description, distributable, and context-param elements."
    The web.xml referred to above is YOUR web.xml. In my case, it is the one in ~/development/HelloWorld/web/WEB-INF/web.xml
    When ready to deploy, type:
    ant dist
    as usual. Deploy the .war file in the dist directory as you normally would. In my case, I do:
    rm -rf $CATALINA_HOME/webapps/hello* (removes my HelloWorld webapp directory and its war file)
    cp ~/development/HelloWorld/dist/hello.war $CATALINA_HOME/webapps
    and wait for tomcat to unravel the war file. I can then access the JSP page based on whatever the generated_web.xml had specified. In my case, it would be http://localhost:8080/hello/sample.jsp
    NON-PRECOMPILATION METHOD
    Copy tools.jar from the Java JDK into tomcat's common/lib. (I found this only in the error message in tomcat's log file!! Didn't find it anywhere else!!). Do this one time only, then restart tomcat:
    cp $JAVA_HOME/lib/tools.jar $CATALINA_HOME/common/lib
    Restart tomcat.
    Deploy your webapp as usual which will include your JSP files stored under your webapp's 'web' directory. No precompilation of JSPs is required. Then access your JSP pages such as http://localhost:8080/HelloWorld/my-jsp-page.jsp and tomcat will compile it on the fly on first access. The disadvantage is that there will be a slight delay on first access.
    [Note:  I am putting all this down for the record, because it took me MANY HOURS to figure all this out as the info on how to do this is not found clearly in one place!!  Hope this helps others.]
    My next step is to incorporate the contents of compile.xml as mentioned above, into my regular build.xml file.

  • Problem on reload a JSP file in Tomcat 3.3.1

    I have a problem about Tomcat 3.3.1
    I am developing a JSP application,
    but Tomcat not recompile the JSP file after i modify it.
    I need to "wait" the tomcat recompile it, so i can see the change.
    This make the development really difficult...
    Do I miss some important step on config Tomcat 3.3.1
    how to force it to detect a newer version JSP in every request ??
    Thanks

    I believe there is a way to configure Tomcat to do this, but I don't know what it is.
    Until someone can tell you the configuration steps, here is a workaround. Tomcat keeps the Java source and class files for your JSP code somewhere under its "work" directory. Find those files and delete them, which will force it to re-compile.

Maybe you are looking for

  • Kt3 ultra-aru multiplier prob

    I just bought a new MSI kt3 ultra-aru from newegg and a new athlon xp 1900+(1.6ghz) and i unlocked it but the board wont boot with the new multiplier, so i thought the proc was not unlock so i try my old tbird which has already been unlocked and it d

  • Unable to print color on HP V40 all in one printer

    Brand new cartridge! I have not been able to get Tiger to see that I am using the V40. It will print in black only and print fine in WORD/Textedit. But no color? At least windows prints in color! I'm lost and rather fed up with MAC at this point. I h

  • Removing quarantined devices when the mailbox attribute has been deleted

    I have a few Exchange 2010 mobile devices in quarantine that belonged to employees that have been termintated and the mailbox attribute removed. when I try to remove the devices using; Get-ActiveSyncDevice | Where {$_.DeviceAccessState -eq "Quarantin

  • For Each Loop Issue In SSIS

    Hi All, I have a SSIS Package which unzips the folder and then imports the files and then moves *.zip folders into processed location. If this task is executed as a part of total package its not moving the *.zip folders into processed location, but w

  • Which Pin do I need for Firewire?

    I have a MacBook Pro, one of the first models. What is the pin number of my Firewire into my laptop?