Jump to content
We've recently updated our Privacy Statement, available here ×

Error while compiling the jasper report in servlet jsp


aidan

Recommended Posts

Hi everyone,

I have go through the forum and try many way but i stil can solve if my problem.

Problem desc:

I using servlet to compile the jasper report and dispplay it in jsp in oracle OC4J, all things are going smooth when i doing my development in my local OC4J and not give me any problem.

So i have deploy all my class file and jsp and all the library that it need to the server, the program occured error when it trying to compile the jasper report. It stated java class error exception, org/springframework/core/io/Resource class file not found.

So after go through forum this case is solve by adding the spring,jar file. After i add the spring.jar file, it come out another error as below :-

12/04/16 17:26:04 [WARN] ComponentsEnvironment - Found two components for namespace http://jasperreports.sourceforge.net/jasperreports/components
12/04/16 17:26:05 net.sf.jasperreports.engine.JRException: Error compiling report java source files : /oracle/App/j2ee/home/DailySalesChart_1334568365188_151137.java
12/04/16 17:26:05       at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClasses(JRJavacCompiler.java:93)
12/04/16 17:26:05       at net.sf.jasperreports.engine.design.JRAbstractClassCompiler.compileUnits(JRAbstractClassCompiler.java:67)
12/04/16 17:26:05       at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:192)
12/04/16 17:26:05       at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:219)
12/04/16 17:26:05       at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:152)
12/04/16 17:26:05       at qrcom.PROFIT.reports.GenericChart.process(GenericChart.java:107)
12/04/16 17:26:05       at qrcom.PROFIT.servlet.DH.SvltJasperChartTx.doPost(SvltJasperChartTx.java:62)
12/04/16 17:26:05       at qrcom.PROFIT.servlet.DH.SvltJasperChart.doPost(SvltJasperChart.java:37)
12/04/16 17:26:05       at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
12/04/16 17:26:05       at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
12/04/16 17:26:05       at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
12/04/16 17:26:05       at qrcom.PROFIT.servlet.AD.SecurityFilter.doFilter(SecurityFilter.java:86)
12/04/16 17:26:05       at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java(Compiled Code))
12/04/16 17:26:05       at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java(Compiled Code))
12/04/16 17:26:05       at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java(Compiled Code))
12/04/16 17:26:05       at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java(Compiled Code))
12/04/16 17:26:05       at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java(Compiled Code))
12/04/16 17:26:05       at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java(Compiled Code))
12/04/16 17:26:05       at java.lang.Thread.run(Thread.java:568)
12/04/16 17:26:05 Caused by: java.io.IOException: javac: not found
12/04/16 17:26:05       at java.lang.UNIXProcess.forkAndExec(Native Method)
12/04/16 17:26:05       at java.lang.UNIXProcess.<init>(UNIXProcess.java:72)
12/04/16 17:26:05       at java.lang.Runtime.execInternal(Native Method)
12/04/16 17:26:05       at java.lang.Runtime.exec(Runtime.java:602)
12/04/16 17:26:05       at java.lang.Runtime.exec(Runtime.java:524)
12/04/16 17:26:05       at java.lang.Runtime.exec(Runtime.java:490)
12/04/16 17:26:05       at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClasses(JRJavacCompiler.java:62)
12/04/16 17:26:05       ... 18 more
 

Please hope some sifu can help me. THanks

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...