Murilo_Ferreira 26 de mar. de 2013
Cara, tem como postar o stacktrace ?
denis_gariglio 26 de mar. de 2013
Opa … para mandei em anexo para não ficar muito grande na pagina, segue abaixo tb o erro no tomcat.
vlwwww
[]s
Erro tomcat
< blockquote > Mar 26 , 2013 11 : 15 : 37 AM com . sun . faces . lifecycle . InvokeApplicationPhase execute
WARNING : / relvendas . xhtml @23 , 50 value = "#{relvendaBean.sampleReportPDF}" : Error reading ‘ sampleReportPDF ’ on type lojanet . ManagedBeans . RelVendasBean
javax . el . ELException : / relvendas . xhtml @23 , 50 value = "#{relvendaBean.sampleReportPDF}" : Error reading ‘ sampleReportPDF ’ on type lojanet . ManagedBeans . RelVendasBean
at com . sun . faces . facelets . el . TagValueExpression . getValue ( TagValueExpression . java : 114 )
at org . primefaces . component . filedownload . FileDownloadActionListener . processAction ( FileDownloadActionListener . java : 52 )
at javax . faces . event . ActionEvent . processListener ( ActionEvent . java : 88 )
at javax . faces . component . UIComponentBase . broadcast ( UIComponentBase . java : 769 )
at javax . faces . component . UICommand . broadcast ( UICommand . java : 300 )
at javax . faces . component . UIViewRoot . broadcastEvents ( UIViewRoot . java : 794 )
at javax . faces . component . UIViewRoot . processApplication ( UIViewRoot . java : 1259 )
at com . sun . faces . lifecycle . InvokeApplicationPhase . execute ( InvokeApplicationPhase . java : 81 )
at com . sun . faces . lifecycle . Phase . doPhase ( Phase . java : 101 )
at com . sun . faces . lifecycle . LifecycleImpl . execute ( LifecycleImpl . java : 118 )
at javax . faces . webapp . FacesServlet . service ( FacesServlet . java : 593 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 305 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 210 )
at org . apache . catalina . core . StandardWrapperValve . invoke ( StandardWrapperValve . java : 222 )
at org . apache . catalina . core . StandardContextValve . invoke ( StandardContextValve . java : 123 )
at org . apache . catalina . authenticator . AuthenticatorBase . invoke ( AuthenticatorBase . java : 472 )
at org . apache . catalina . core . StandardHostValve . invoke ( StandardHostValve . java : 171 )
at org . apache . catalina . valves . ErrorReportValve . invoke ( ErrorReportValve . java : 99 )
at org . apache . catalina . valves . AccessLogValve . invoke ( AccessLogValve . java : 936 )
at org . apache . catalina . core . StandardEngineValve . invoke ( StandardEngineValve . java : 118 )
at org . apache . catalina . connector . CoyoteAdapter . service ( CoyoteAdapter . java : 407 )
at org . apache . coyote . http11 . AbstractHttp11Processor . process ( AbstractHttp11Processor . java : 1004 )
at org . apache . coyote . AbstractProtocol$AbstractConnectionHandler . process ( AbstractProtocol . java : 589 )
at org . apache . tomcat . util . net . JIoEndpoint$SocketProcessor . run ( JIoEndpoint . java : 312 )
at java . util . concurrent . ThreadPoolExecutor . runWorker ( Unknown Source )
at java . util . concurrent . ThreadPoolExecutor$Worker . run ( Unknown Source )
at java . lang . Thread . run ( Unknown Source )
Caused by : java . lang . NoClassDefFoundError : org / codehaus / groovy / control / CompilationFailedException
at java . lang . Class . getDeclaredConstructors0 ( Native Method )
at java . lang . Class . privateGetDeclaredConstructors ( Unknown Source )
at java . lang . Class . getConstructor0 ( Unknown Source )
at java . lang . Class . getConstructor ( Unknown Source )
at net . sf . jasperreports . engine . JasperCompileManager . getCompiler ( JasperCompileManager . java : 690 )
at net . sf . jasperreports . engine . JasperCompileManager . getEvaluator ( JasperCompileManager . java : 263 )
at net . sf . jasperreports . engine . fill . JRFillDataset . createCalculator ( JRFillDataset . java : 457 )
at net . sf . jasperreports . engine . fill . JRBaseFiller .( JRBaseFiller . java : 379 )
at net . sf . jasperreports . engine . fill . JRVerticalFiller .( JRVerticalFiller . java : 88 )
at net . sf . jasperreports . engine . fill . JRVerticalFiller .( JRVerticalFiller . java : 103 )
at net . sf . jasperreports . engine . fill . JRVerticalFiller .( JRVerticalFiller . java : 61 )
at net . sf . jasperreports . engine . fill . JRFiller . createFiller ( JRFiller . java : 153 )
at net . sf . jasperreports . engine . fill . JRFiller . fill ( JRFiller . java : 82 )
at net . sf . jasperreports . engine . JasperFillManager . fill ( JasperFillManager . java : 653 )
at net . sf . jasperreports . engine . JasperFillManager . fill ( JasperFillManager . java : 634 )
at net . sf . jasperreports . engine . JasperFillManager . fillReport ( JasperFillManager . java : 956 )
at lojanet . ManagedBeans . RelVendasBean . getSampleReportPDF ( RelVendasBean . java : 56 )
at sun . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method )
at sun . reflect . NativeMethodAccessorImpl . invoke ( Unknown Source )
at sun . reflect . DelegatingMethodAccessorImpl . invoke ( Unknown Source )
at java . lang . reflect . Method . invoke ( Unknown Source )
at javax . el . BeanELResolver . getValue ( BeanELResolver . java : 87 )
at com . sun . faces . el . DemuxCompositeELResolver . _getValue ( DemuxCompositeELResolver . java : 176 )
at com . sun . faces . el . DemuxCompositeELResolver . getValue ( DemuxCompositeELResolver . java : 203 )
at org . apache . el . parser . AstValue . getValue ( AstValue . java : 183 )
at org . apache . el . ValueExpressionImpl . getValue ( ValueExpressionImpl . java : 185 )
at com . sun . faces . facelets . el . TagValueExpression . getValue ( TagValueExpression . java : 109 )
… 26 more
Caused by : java . lang . ClassNotFoundException : org . codehaus . groovy . control . CompilationFailedException
at org . apache . catalina . loader . WebappClassLoader . loadClass ( WebappClassLoader . java : 1714 )
at org . apache . catalina . loader . WebappClassLoader . loadClass ( WebappClassLoader . java : 1559 )
… 53 more
Mar 26 , 2013 11 : 15 : 37 AM org . apache . catalina . core . StandardWrapperValve invoke
SEVERE : Servlet . service () for servlet [ Faces Servlet ] in context with path [ / lojanet ] threw exception [ org / codehaus / groovy / control / CompilationFailedException ] with root cause
java . lang . ClassNotFoundException : org . codehaus . groovy . control . CompilationFailedException
at org . apache . catalina . loader . WebappClassLoader . loadClass ( WebappClassLoader . java : 1714 )
at org . apache . catalina . loader . WebappClassLoader . loadClass ( WebappClassLoader . java : 1559 )
at java . lang . Class . getDeclaredConstructors0 ( Native Method )
at java . lang . Class . privateGetDeclaredConstructors ( Unknown Source )
at java . lang . Class . getConstructor0 ( Unknown Source )
at java . lang . Class . getConstructor ( Unknown Source )
at net . sf . jasperreports . engine . JasperCompileManager . getCompiler ( JasperCompileManager . java : 690 )
at net . sf . jasperreports . engine . JasperCompileManager . getEvaluator ( JasperCompileManager . java : 263 )
at net . sf . jasperreports . engine . fill . JRFillDataset . createCalculator ( JRFillDataset . java : 457 )
at net . sf . jasperreports . engine . fill . JRBaseFiller .( JRBaseFiller . java : 379 )
at net . sf . jasperreports . engine . fill . JRVerticalFiller .( JRVerticalFiller . java : 88 )
at net . sf . jasperreports . engine . fill . JRVerticalFiller .( JRVerticalFiller . java : 103 )
at net . sf . jasperreports . engine . fill . JRVerticalFiller .( JRVerticalFiller . java : 61 )
at net . sf . jasperreports . engine . fill . JRFiller . createFiller ( JRFiller . java : 153 )
at net . sf . jasperreports . engine . fill . JRFiller . fill ( JRFiller . java : 82 )
at net . sf . jasperreports . engine . JasperFillManager . fill ( JasperFillManager . java : 653 )
at net . sf . jasperreports . engine . JasperFillManager . fill ( JasperFillManager . java : 634 )
at net . sf . jasperreports . engine . JasperFillManager . fillReport ( JasperFillManager . java : 956 )
at lojanet . ManagedBeans . RelVendasBean . getSampleReportPDF ( RelVendasBean . java : 56 )
at sun . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method )
at sun . reflect . NativeMethodAccessorImpl . invoke ( Unknown Source )
at sun . reflect . DelegatingMethodAccessorImpl . invoke ( Unknown Source )
at java . lang . reflect . Method . invoke ( Unknown Source )
at javax . el . BeanELResolver . getValue ( BeanELResolver . java : 87 )
at com . sun . faces . el . DemuxCompositeELResolver . _getValue ( DemuxCompositeELResolver . java : 176 )
at com . sun . faces . el . DemuxCompositeELResolver . getValue ( DemuxCompositeELResolver . java : 203 )
at org . apache . el . parser . AstValue . getValue ( AstValue . java : 183 )
at org . apache . el . ValueExpressionImpl . getValue ( ValueExpressionImpl . java : 185 )
at com . sun . faces . facelets . el . TagValueExpression . getValue ( TagValueExpression . java : 109 )
at org . primefaces . component . filedownload . FileDownloadActionListener . processAction ( FileDownloadActionListener . java : 52 )
at javax . faces . event . ActionEvent . processListener ( ActionEvent . java : 88 )
at javax . faces . component . UIComponentBase . broadcast ( UIComponentBase . java : 769 )
at javax . faces . component . UICommand . broadcast ( UICommand . java : 300 )
at javax . faces . component . UIViewRoot . broadcastEvents ( UIViewRoot . java : 794 )
at javax . faces . component . UIViewRoot . processApplication ( UIViewRoot . java : 1259 )
at com . sun . faces . lifecycle . InvokeApplicationPhase . execute ( InvokeApplicationPhase . java : 81 )
at com . sun . faces . lifecycle . Phase . doPhase ( Phase . java : 101 )
at com . sun . faces . lifecycle . LifecycleImpl . execute ( LifecycleImpl . java : 118 )
at javax . faces . webapp . FacesServlet . service ( FacesServlet . java : 593 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 305 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 210 )
at org . apache . catalina . core . StandardWrapperValve . invoke ( StandardWrapperValve . java : 222 )
at org . apache . catalina . core . StandardContextValve . invoke ( StandardContextValve . java : 123 )
at org . apache . catalina . authenticator . AuthenticatorBase . invoke ( AuthenticatorBase . java : 472 )
at org . apache . catalina . core . StandardHostValve . invoke ( StandardHostValve . java : 171 )
at org . apache . catalina . valves . ErrorReportValve . invoke ( ErrorReportValve . java : 99 )
at org . apache . catalina . valves . AccessLogValve . invoke ( AccessLogValve . java : 936 )
at org . apache . catalina . core . StandardEngineValve . invoke ( StandardEngineValve . java : 118 )
at org . apache . catalina . connector . CoyoteAdapter . service ( CoyoteAdapter . java : 407 )
at org . apache . coyote . http11 . AbstractHttp11Processor . process ( AbstractHttp11Processor . java : 1004 )
at org . apache . coyote . AbstractProtocol$AbstractConnectionHandler . process ( AbstractProtocol . java : 589 )
at org . apache . tomcat . util . net . JIoEndpoint$SocketProcessor . run ( JIoEndpoint . java : 312 )
at java . util . concurrent . ThreadPoolExecutor . runWorker ( Unknown Source )
at java . util . concurrent . ThreadPoolExecutor$Worker . run ( Unknown Source )
at java . lang . Thread . run ( Unknown Source ) </ blockquote >
Murilo_Ferreira 26 de mar. de 2013
Entendi, você está usando o Groovy, Talvez de mudar para Java resolve seu problema.
Mas se quiser usar o Goovy mesmo, tem que adicionar o groovy.jar no classpath da aplicação.
Seu erro foi esse.
denis_gariglio 26 de mar. de 2013
Putzzz que vacilo meu hehe …
Vlwww Murilo … abração cara
Murilo_Ferreira 26 de mar. de 2013
denis_gariglio 26 de mar. de 2013
Show … muito obrigado Murilo … estou vendo o material =)
Aqui no caso foi vacilo meu … havia esquecido de mudar … esta funfando agora =)
Mais uma vez muito obrigado.
Abração