User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 397,569 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,517 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 1595 | Replies: 17
Reply
Join Date: Sep 2007
Posts: 9
Reputation: bdichiara is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bdichiara bdichiara is offline Offline
Newbie Poster

Re: Is this standard JSP behavior?

  #11  
Sep 11th, 2007
Ok, I don't know what happened, but somehow, this issue resolved itself. What I did was instead of upload the file as index.jsp, i uploaded it as index2.jsp. i've made modifications to that file and re-uploaded and it all seems to work fine. I don't know what was going on, but I'm glad it's working now. Thanks for all the help.
Reply With Quote  
Join Date: Jul 2007
Posts: 31
Reputation: ksaxena is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 4
ksaxena ksaxena is offline Offline
Light Poster

Re: Is this standard JSP behavior?

  #12  
Sep 12th, 2007
Its good that issue got resolved, if u want please try one thing, which might help u in learning JSP.

Get the generated java files for index.jsp and index2.jsp, and have a look at them, am pretty sure file index.java will not be containing the changes you did, for the reason, that new jsp file was never used, and the changes never got reflected in generated classes. Hence, you never saw modifications in effect. Now that you have created a new JSP file, a new class file with your changes was generated and modifications were on.

This might have solved the problem (which is awesome), but definitely doesn't help in learning process.
Reply With Quote  
Join Date: Sep 2007
Posts: 9
Reputation: bdichiara is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bdichiara bdichiara is offline Offline
Newbie Poster

Re: Is this standard JSP behavior?

  #13  
Sep 12th, 2007
Well, actually no, I don't think the problem is solved. The problem lies somewhere on the server or something. Here's what I'm doing now.

Upload index.jsp
View index.jsp in browser
Modify index.jsp in Dreamweaver
Attempt to upload index.jsp via FireFTP.
SOMETIMES { Upload fails: Text file busy.
Rename local index.jsp to index2.jsp
Upload index2.jsp }
View page in browser
Repeat process.

Sometimes I do not get the Text file busy, which is why I thought my problem was fixed. Also, I no longer have the WEB-INF and META-INF folders. I just have a plain old hello-world .jsp file. What can I do to fix this behavior?
Reply With Quote  
Join Date: Sep 2007
Posts: 9
Reputation: bdichiara is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bdichiara bdichiara is offline Offline
Newbie Poster

Re: Is this standard JSP behavior?

  #14  
Sep 12th, 2007
By the way, if I get the "Text file busy" message, then that filename is no-longer usable to me. Even if I telnet to the server and do a "rm index.php". If i ever tried to upload a new index.php, it would upload fine, but it would just display the old file without my changes. So I guess I'll just end up at index100.jsp until I can restart the server or find some other solution.
Reply With Quote  
Join Date: Jul 2007
Posts: 31
Reputation: ksaxena is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 4
ksaxena ksaxena is offline Offline
Light Poster

Re: Is this standard JSP behavior?

  #15  
Sep 13th, 2007
Seems like some permission issue on the folder at the server, which is not letting u overwrite some files, but it lets you add up new files (which is not at all a solution), please check with some IT guys or try logging through superuser and setting permissions to 777 (if your client permits), and repeat the steps.
Reply With Quote  
Join Date: Sep 2007
Posts: 9
Reputation: bdichiara is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bdichiara bdichiara is offline Offline
Newbie Poster

Re: Is this standard JSP behavior?

  #16  
Sep 13th, 2007
Well, i don't think that is the case here. What I did was strip out any of the JSP code and am using a standard HTML file (.html). I have uploaded about 20 different versions since yesterday (all the same filename - index2.html) and hadn't had any problems. It's only when I use .jsp.
Reply With Quote  
Join Date: Aug 2007
Posts: 74
Reputation: lookof2day is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 8
lookof2day lookof2day is offline Offline
Junior Poster in Training

Re: Is this standard JSP behavior?

  #17  
Sep 19th, 2007
Tomcat 5.0 onwards support hot deployment that means any changes to your JSP pages will be reflected back once the request is made for that page again. Here, I mean changees made only to JSP pages will be reflected not to your servlets or Java beans. All you need to do is make some changes to the web.xml file of your webapp in the WEB-INF directory and get started. For more information refer to Tomcat documentation.
Reply With Quote  
Join Date: Jul 2007
Posts: 31
Reputation: ksaxena is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 4
ksaxena ksaxena is offline Offline
Light Poster

Re: Is this standard JSP behavior?

  #18  
Sep 20th, 2007
Originally Posted by lookof2day View Post
Tomcat 5.0 onwards support hot deployment that means any changes to your JSP pages will be reflected back once the request is made for that page again. Here, I mean changees made only to JSP pages will be reflected not to your servlets or Java beans. All you need to do is make some changes to the web.xml file of your webapp in the WEB-INF directory and get started. For more information refer to Tomcat documentation.

Hot deployment definitely works, but only when your development and deployment server are same. If you are developing locally and deploying on a remote server (which I think is the case here), I am sure hot deployment has nothing to do with this.

I shall recommend discussing this issues with some server administrator and let know that uploading files with .jsp extension are throwing "Text file busy" message in your ftp tool.

Googled the message and it returned quite an informative link:

http://lists.freebsd.org/pipermail/f...er/009972.html
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JSP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 4:25 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC