Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Jason_chen  
#1 Posted : Sunday, August 29, 2004 11:35:00 AM(UTC)
Jason_chen

Rank: Member

Groups: Member
Joined: 7/4/2004(UTC)
Posts: 16

I have test 3.0 in tomcat, but it can't send the pictures to server. The client side report:some server-side error occurred.
I check the help document, it also ask me to grant modify permission to internet user (IUSR_<machinename> ) to the folder gallery. But it's a IIS setting. I have use tomcat so I won't use IIS.
I think maybe some setting should be done in tomcat, same as the default setting should be modified in resin. Please let me know what's your setting in tomcat. Many thanks!

BTW. the IE error message is:

Code:
HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 1 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
    [javac] Compiling 1 source file

Edited by user Monday, December 24, 2007 5:00:58 PM(UTC)  | Reason: Not specified

bizzy  
#2 Posted : Sunday, August 29, 2004 12:36:00 PM(UTC)
bizzy

Rank: Member

Groups: Member
Joined: 8/18/2004(UTC)
Posts: 41

After experiencing problems using this in my RedHat environment I went and tried the CustomDisplay and the DisplayUserQuota samples under PHP and tried an upload against the default setup in the samples and faced the same errors consistently.

However, I am not sure whether we can use the samples and try to upload the images since I do not know whether the server is setup correctly or not.

Fedor and Support Staff:
Can you open up your server for us to try and upload on these and see if the client side issues can be reproduced? It is the best way to test the ImageUploader product. Let us know when you have this environment ready and provide the URL for the same.
Jason_chen  
#3 Posted : Monday, August 30, 2004 11:11:00 AM(UTC)
Jason_chen

Rank: Member

Groups: Member
Joined: 7/4/2004(UTC)
Posts: 16

What about my problem? I'm looking forward your reply. Many thanks!
Fedor  
#4 Posted : Monday, August 30, 2004 11:24:00 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,546

Thanks: 5 times
Was thanked: 58 time(s) in 57 post(s)
Can you open up your server for us to try and upload on these and see if the client side issues can be reproduced? It is the best way to test the ImageUploader product. Let us know when you have this environment ready and provide the URL for the same.

It is good idea about online demo.

Image Uploader Online Demo

Edited by user Monday, February 25, 2008 4:47:12 PM(UTC)  | Reason: Not specified

Best regards,
Fedor Skvortsov
Fedor  
#5 Posted : Monday, August 30, 2004 11:27:00 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,546

Thanks: 5 times
Was thanked: 58 time(s) in 57 post(s)
As for Tomcat problem, could you post us full trace?
Best regards,
Fedor Skvortsov
Jason_chen  
#6 Posted : Monday, August 30, 2004 12:31:00 PM(UTC)
Jason_chen

Rank: Member

Groups: Member
Joined: 7/4/2004(UTC)
Posts: 16

My detail process is: Firstly I install uploader 3.0 and copy the folder JSP-Tomcat to the folder root of Tomcat 5.0. Then I start tomcat. When I send the pictures from client side. is issue a error message "some server-side error occurred". and then it pop-up a IE page. The detail information is as following.

Code:
HTTP Status 500 - 

--------------------------------------------------------------------------------

type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 2 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
    [javac] Compiling 1 source file

D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java:10: package org.apache.commons.fileupload does not exist
import org.apache.commons.fileupload.*;
^
D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java:94: cannot resolve symbol
symbol  : class DiskFileUpload 
location: class org.apache.jsp.JSP_002dTomcat.BasicSample.Upload_jsp
DiskFileUpload fu = new DiskFileUpload();
^



An error occurred at line: 2 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java:94: cannot resolve symbol
symbol  : class DiskFileUpload 
location: class org.apache.jsp.JSP_002dTomcat.BasicSample.Upload_jsp
DiskFileUpload fu = new DiskFileUpload();
                        ^



An error occurred at line: 2 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java:110: cannot resolve symbol
symbol  : class FileItem 
location: class org.apache.jsp.JSP_002dTomcat.BasicSample.Upload_jsp
    FileItem fileItem = (FileItem)(listFileItems.get(i));
    ^



An error occurred at line: 2 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java:110: cannot resolve symbol
symbol  : class FileItem 
location: class org.apache.jsp.JSP_002dTomcat.BasicSample.Upload_jsp
    FileItem fileItem = (FileItem)(listFileItems.get(i));
                         ^



An error occurred at line: 2 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java:121: cannot resolve symbol
symbol  : class FileItem 
location: class org.apache.jsp.JSP_002dTomcat.BasicSample.Upload_jsp
FileItem itemFileCount = (FileItem) fileItems.get("FileCount");
^



An error occurred at line: 2 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java:121: cannot resolve symbol
symbol  : class FileItem 
location: class org.apache.jsp.JSP_002dTomcat.BasicSample.Upload_jsp
FileItem itemFileCount = (FileItem) fileItems.get("FileCount");
                          ^



An error occurred at line: 2 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java:135: cannot resolve symbol
symbol  : class FileItem 
location: class org.apache.jsp.JSP_002dTomcat.BasicSample.Upload_jsp
FileItem itemAuthor = (FileItem) fileItems.get("Author");
^



An error occurred at line: 2 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java:135: cannot resolve symbol
symbol  : class FileItem 
location: class org.apache.jsp.JSP_002dTomcat.BasicSample.Upload_jsp
FileItem itemAuthor = (FileItem) fileItems.get("Author");
                       ^



An error occurred at line: 2 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java:143: cannot resolve symbol
symbol  : class FileItem 
location: class org.apache.jsp.JSP_002dTomcat.BasicSample.Upload_jsp
    FileItem sourceFile = (FileItem) fileItems.get("SourceFile_" + Integer.toString(i));
    ^



An error occurred at line: 2 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java:143: cannot resolve symbol
symbol  : class FileItem 
location: class org.apache.jsp.JSP_002dTomcat.BasicSample.Upload_jsp
    FileItem sourceFile = (FileItem) fileItems.get("SourceFile_" + Integer.toString(i));
                           ^



An error occurred at line: 2 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java:164: cannot resolve symbol
symbol  : class FileItem 
location: class org.apache.jsp.JSP_002dTomcat.BasicSample.Upload_jsp
    FileItem thumbnailFile = (FileItem) fileItems.get("Thumbnail1_" + Integer.toString(i));
    ^



An error occurred at line: 2 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java:164: cannot resolve symbol
symbol  : class FileItem 
location: class org.apache.jsp.JSP_002dTomcat.BasicSample.Upload_jsp
    FileItem thumbnailFile = (FileItem) fileItems.get("Thumbnail1_" + Integer.toString(i));
                              ^



An error occurred at line: 2 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java:173: cannot resolve symbol
symbol  : class FileItem 
location: class org.apache.jsp.JSP_002dTomcat.BasicSample.Upload_jsp
    FileItem widthItem = (FileItem) fileItems.get("Width_" + Integer.toString(i));
    ^



An error occurred at line: 2 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java:173: cannot resolve symbol
symbol  : class FileItem 
location: class org.apache.jsp.JSP_002dTomcat.BasicSample.Upload_jsp
    FileItem widthItem = (FileItem) fileItems.get("Width_" + Integer.toString(i));
                          ^



An error occurred at line: 2 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java:175: cannot resolve symbol
symbol  : class FileItem 
location: class org.apache.jsp.JSP_002dTomcat.BasicSample.Upload_jsp
    FileItem heightItem = (FileItem) fileItems.get("Height_" + Integer.toString(i));
    ^



An error occurred at line: 2 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java:175: cannot resolve symbol
symbol  : class FileItem 
location: class org.apache.jsp.JSP_002dTomcat.BasicSample.Upload_jsp
    FileItem heightItem = (FileItem) fileItems.get("Height_" + Integer.toString(i));
                           ^



An error occurred at line: 2 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java:177: cannot resolve symbol
symbol  : class FileItem 
location: class org.apache.jsp.JSP_002dTomcat.BasicSample.Upload_jsp
    FileItem descriptionItem = (FileItem) fileItems.get("Description_" + Integer.toString(i));
    ^



An error occurred at line: 2 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java:177: cannot resolve symbol
symbol  : class FileItem 
location: class org.apache.jsp.JSP_002dTomcat.BasicSample.Upload_jsp
    FileItem descriptionItem = (FileItem) fileItems.get("Description_" + Integer.toString(i));
                                ^



An error occurred at line: 2 in the jsp file: /JSP-Tomcat/BasicSample/Upload.jsp

Generated servlet error:
Note: D:\jakarta-tomcat-5.0.16\work\Catalina\localhost\_\org\apache\jsp\JSP_002dTomcat\BasicSample\Upload_jsp.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
19 errors


	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
	org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


note The full stack trace of the root cause is available in the Tomcat logs.


--------------------------------------------------------------------------------

Apache Tomcat/5.0.16

Edited by user Monday, December 24, 2007 4:55:27 PM(UTC)  | Reason: Not specified

Fedor  
#7 Posted : Monday, August 30, 2004 12:43:00 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,546

Thanks: 5 times
Was thanked: 58 time(s) in 57 post(s)
Jason,

Have you created context for "/JSP-Tomcat" in Tomcat admin? It seems Tomcat can't find commons-fileupload-1.0.jar.
Best regards,
Fedor Skvortsov
Jason_chen  
#8 Posted : Monday, August 30, 2004 2:44:00 PM(UTC)
Jason_chen

Rank: Member

Groups: Member
Joined: 7/4/2004(UTC)
Posts: 16

Now we have done the setting in tomcat admin. but the server still can't receive the pictures. In client side, it report upload complete, but in next page the picture can't display.
Fedor  
#9 Posted : Monday, August 30, 2004 2:58:00 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,546

Thanks: 5 times
Was thanked: 58 time(s) in 57 post(s)
Please check folder "/JSP-Tomcat/Gallery" whether image are actually uploaded there.

You can also trace the value of physicalPath variable in Upload.jsp in order to see where images should be uploaded.

Code:
//This variable specifies a relative path to the folder, where image gallery is located.
String galleryPath = "Gallery";
String physicalPath = request.getRealPath(galleryPath);

Edited by user Monday, December 24, 2007 4:55:40 PM(UTC)  | Reason: Not specified

Best regards,
Fedor Skvortsov
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.