[Apparently, I solved my own problem. I'm leaving this post up for the Google indexer and anyone who runs into these issues in the future]
Hello,
First of all, let me express my sincere gratitude in advance for any help that anyone can provide. I normally am one of those 'do-it-yourself' types - I almost never post on forums. That said, this error has me stumped. I am fairly certain it is a trivial configuration problem having to do with file permissions, but I can't figure it out.
Steps:
1. I deployed the demo war file to my Apache Tomcat 6 host, and file upload and browsing worked just fine.
2. Then, in a new NetBeans JSP project, I copied the relevant configuration info from the demo's web.xml file (the servlet and servlet connector mapping entries) to the NetBeans instance's web.xml
3. I placed the fckeditor directory and libraries in the right spots (added libraries through Netbeans, using same libraries as War used), and made sure the fckeditor.properties file was also present
4. I made a new sample02.jsp file, exactly copying the text from the war file's sample02.jsp
I did all of this to test whether or not it was possible to get FCKEditor working under my own NetBeans project.
So... the good news is that the editor appears as expected in the web page. However, I tried browsing and could not browse anywhere (It gave me an invalid directory error).
1. I got the idea that it might be a permissions problem (could not create the necessary directories on the fly?), and so I uploaded a couple of images to the demo war's directory, then copied its userfiles directory and its image subdirectory over to my own jsp's file structure.
2. Now I can browse and select any images I put in the image subdirectory of my jsp's file structure, but whenever I try to upload using the Image->Browse->Upload I get:
Error on file upload. Error number: 203
If I try to upload from the "Send it to Server" button, I get the error:
Security error. You probably don't have enough permissions to upload. Please check your server.
I know that this is not a problem with Tomcat's ability to execute file uploads in general, since the demo works. Therefore, it must be a basic permissions problem at the level of the servlet or jsp directory structure. Unfortunately, I'm a little new to servlet development and thus do not know how to resolve my issue.
Update #1:
So.. I figured that maybe it had to do with the fact that NetBeans was doing the deployment, and that Tomcat does not have write permissions to the NetBeans Directory that I used.
Thus, I undeployed the application, and uploaded just the war file from the dist directory of NetBeans to Tomcat using the Manager application. Now, I can upload files but not Browse them... heh.
Update #2:
I made Tomcat6 the owner of the web project directory... did not work. Then, just for fun, I tried deploying the app through the manager rather than NetBeans again... now, both browsing and uploading work. I am very confused. I guess that I'll just have to use NetBeans for the debugging, and when the app is done deploy out with Manager only in the future.
Thanks so much for your consideration.
Sincerely,
DE
Hello,
First of all, let me express my sincere gratitude in advance for any help that anyone can provide. I normally am one of those 'do-it-yourself' types - I almost never post on forums. That said, this error has me stumped. I am fairly certain it is a trivial configuration problem having to do with file permissions, but I can't figure it out.
Steps:
1. I deployed the demo war file to my Apache Tomcat 6 host, and file upload and browsing worked just fine.
2. Then, in a new NetBeans JSP project, I copied the relevant configuration info from the demo's web.xml file (the servlet and servlet connector mapping entries) to the NetBeans instance's web.xml
3. I placed the fckeditor directory and libraries in the right spots (added libraries through Netbeans, using same libraries as War used), and made sure the fckeditor.properties file was also present
4. I made a new sample02.jsp file, exactly copying the text from the war file's sample02.jsp
I did all of this to test whether or not it was possible to get FCKEditor working under my own NetBeans project.
So... the good news is that the editor appears as expected in the web page. However, I tried browsing and could not browse anywhere (It gave me an invalid directory error).
1. I got the idea that it might be a permissions problem (could not create the necessary directories on the fly?), and so I uploaded a couple of images to the demo war's directory, then copied its userfiles directory and its image subdirectory over to my own jsp's file structure.
2. Now I can browse and select any images I put in the image subdirectory of my jsp's file structure, but whenever I try to upload using the Image->Browse->Upload I get:
Error on file upload. Error number: 203
If I try to upload from the "Send it to Server" button, I get the error:
Security error. You probably don't have enough permissions to upload. Please check your server.
I know that this is not a problem with Tomcat's ability to execute file uploads in general, since the demo works. Therefore, it must be a basic permissions problem at the level of the servlet or jsp directory structure. Unfortunately, I'm a little new to servlet development and thus do not know how to resolve my issue.
Update #1:
So.. I figured that maybe it had to do with the fact that NetBeans was doing the deployment, and that Tomcat does not have write permissions to the NetBeans Directory that I used.
Thus, I undeployed the application, and uploaded just the war file from the dist directory of NetBeans to Tomcat using the Manager application. Now, I can upload files but not Browse them... heh.
Update #2:
I made Tomcat6 the owner of the web project directory... did not work. Then, just for fun, I tried deploying the app through the manager rather than NetBeans again... now, both browsing and uploading work. I am very confused. I guess that I'll just have to use NetBeans for the debugging, and when the app is done deploy out with Manager only in the future.
Thanks so much for your consideration.
Sincerely,
DE