derar92 / flexpaper

Automatically exported from code.google.com/p/flexpaper
0 stars 0 forks source link

Java server: pdfPath cannot be resolved #394

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Fresh install of FlexPaper.war on debian 
2. Load config page, provide paths requested
3. Go to the next config page, fill it out, then finish

What is the expected output? 
I would expect to see an admin page, or login. I have not used the app before 
so do not know exactly what to expect. 

What do you see instead?

Http status 500

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

An error occurred at line: 138 in the jsp file: /admin/index.jsp
pdfPath cannot be resolved
135:            <div style="clear:both"><br/></div>
136:            <table style="width:880px" cellspacing="0" cellpadding="0" 
class="selectable_sortable">
137: <%
138:    ArrayList<String> arr = con.DirectoryFiles(pdfPath);
139:    for(int i = 0; i < arr.size(); i++){
140:        String fname = arr.get(i).toString();
141:        if(fname.endsWith(".pdf") && !fname.equals("Sample.pdf")) {

An error occurred at line: 151 in the jsp file: /admin/index.jsp
pdfPath cannot be resolved
148:                        <%=fname%>
149:                    </td>
150:                    <td class="tr" style="text-align:left;">
151:                        <%=con.getSizeString(con.FileSize(pdfPath, fname))%>
152:                    </td>
153:                </tr>
154:        <%}

What version of the product are you using? 
I have tried 2.1.9 and 2.2.0

On what operating system?
Debian Wheezy tomcat6

Please provide any additional information below.

I have tried several paths in the jspconfig.ini 
the store and work dirs have read write for tomcat. 

when the jar loads:
Nov 29, 2013 12:05:02 PM org.apache.catalina.loader.WebappClassLoader 
validateJarFile
INFO: 
validateJarFile(/var/lib/tomcat6/webapps/FlexPaper/WEB-INF/lib/javax.servlet_3.0
.0.v201112011016.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. 
Offending class: javax/servlet/Servlet.class
Nov 29, 2013 12:05:02 PM org.apache.coyote.http11.Http11Protocol start

Please let me know what else I can provide.

Original issue reported on code.google.com by andrew.s...@gmail.com on 29 Nov 2013 at 12:16

GoogleCodeExporter commented 8 years ago
Thanks for reporting this. This has been fixed inn our dev branch

Original comment by erik.eng...@gmail.com on 1 Dec 2013 at 6:26

GoogleCodeExporter commented 8 years ago
Can you please provide the release timeline for this update or any work around ?

Original comment by pateldee...@gmail.com on 2 Jan 2014 at 5:33