aidan Posted April 16, 2012 Share Posted April 16, 2012 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/components12/04/16 17:26:05 net.sf.jasperreports.engine.JRException: Error compiling report java source files : /oracle/App/j2ee/home/DailySalesChart_1334568365188_151137.java12/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 found12/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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now