caselli Posted February 7, 2011 Share Posted February 7, 2011 Hi all,we just discovered JasperSoft Studio: great work!!A question: with iReport you can compile the report with right-click, "Compile" menu item.I cannot see the equivalent here in JS Studio; still to be implemented or is somewhere else?Thank you Regards Vincenzo CaselliRCP VisionPost Edited by caselli at 02/07/2011 16:33 Link to comment Share on other sites More sharing options...
chicuslavic Posted February 8, 2011 Share Posted February 8, 2011 Hi, just use standard Eclipse Ctrl+B or in from menuProject->Build Allyou will see in the report folder a compiled .jrxml file you should have JasperReport Nature activated on the project folderright click on the project folder, JasperReports->Toggle JasperReports Nature Best regards,Chicu Veaceslav Link to comment Share on other sites More sharing options...
caselli Posted February 9, 2011 Author Share Posted February 9, 2011 Hi Chicu,thank you! Vincenzo Link to comment Share on other sites More sharing options...
ongth Posted April 27, 2011 Share Posted April 27, 2011 Not sure if this is a bug or setting problem, I can't compile my main report in Eclipse, other 2 sub reports are fine. The main report uses org.apache.struts2.views.jasperreports.ValueStackDataSource.class, seems like when compiling my main report, Eclipse can't find the struts2 jasperreport plugin jar file in my project classpath, WEB-INF/lib.Now I have to use iReport and include that struts2 jasperreports plugin to compile my report. I hope the newer version will be able to solve this problem. Link to comment Share on other sites More sharing options...
chicuslavic Posted April 28, 2011 Share Posted April 28, 2011 Hi,can we see a stacktrace , error, something, maybe jrxml file too best regards,Veaceslav Chicu Link to comment Share on other sites More sharing options...
ongth Posted April 28, 2011 Share Posted April 28, 2011 It is JRXML Problem.java.lang.ClassNotFoundException: org.apache.struts2.views.jasperreports.ValueStackDataSourceI have "struts2-jasperreports-plugin-2.0.11.2.jar" in my project/WEB-INF/lib not sure why it can't refer to that jar file or my project classpath.Hope this help. Link to comment Share on other sites More sharing options...
chicuslavic Posted May 2, 2011 Share Posted May 2, 2011 Hi,I created WEB-INF/lib folder in a project, inside I have struts2-jasperreports-plugin-2.2.1.1.jarI added this jar to projects classpath(Right click on project name, Properties->Java BuildPath, Libraries->Add Jars ....,then Order and Export, select all) press OKI run the report, the following error is thrownjava.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/logging/LoggerFactory at org.apache.struts2.views.jasperreports.ValueStackDataSource.<clinit>(ValueStackDataSource.java:45) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:157) at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:115) at net.sf.jasperreports.engine.base.JRBaseField.getValueClass(JRBaseField.java:128) at net.sf.jasperreports.engine.design.JRVerifier.verifyFields(JRVerifier.java:999) at net.sf.jasperreports.engine.design.JRVerifier.verifyDataset(JRVerifier.java:2901) at net.sf.jasperreports.engine.design.JRVerifier.verifyDesign(JRVerifier.java:360) at net.sf.jasperreports.engine.design.JRVerifier.verifyDesign(JRVerifier.java:331) at net.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:255) at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:140) at net.sf.jasperreports.eclipse.builder.JasperReportCompiler.compileReport(JasperReportCompiler.java:148) at com.jaspersoft.studio.editor.preview.PreviewEditor$1.run(PreviewEditor.java:165) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)Caused by: java.lang.ClassNotFoundException: com.opensymphony.xwork2.util.logging.LoggerFactory at net.sf.jasperreports.eclipse.util.JavaProjectClassLoader.findClass(JavaProjectClassLoader.java:112) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 15 more so, I added com.opensymphony.xwork jars, and it worksmaybe your classpath is incorect? best regards,Veaceslav Chicu Link to comment Share on other sites More sharing options...
ongth Posted May 2, 2011 Share Posted May 2, 2011 May I know how you compile the report files ? Are you using "Build Project" ? Link to comment Share on other sites More sharing options...
ongth Posted May 2, 2011 Share Posted May 2, 2011 This is my Eclipse .claspath<?xml version="1.0" encoding="UTF-8"?><classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v5.5"/> <classpathentry kind="output" path="build/classes"/></classpath> and i have all the jars file inside WEB-INF\libalveole-struts2.jaralveole-tools.jarantlr-2.7.2.jaraopalliance-1.0.jarasm.jarcglib-2.1.3.jarclassworlds-1.1.jarcommons-beanutils-1.7.0.jarcommons-chain-1.2.jarcommons-collections-3.2.1.jarcommons-digester-2.0.jarcommons-fileupload-1.2.1.jarcommons-io-1.3.2.jarcommons-lang-2.3.jarcommons-logging-api-1.1.jarcommons-validator-1.3.1.jardom4j-1.6.1.jardwr-1.1.1.jarezmorph-1.0.3.jarfreemarker-2.3.16.jargroovy-all-1.7.5.jarhibernate3.jariText-2.1.7.jarent/WEB-INF/lib/jasperreports-4.0.2.jarjasperreports-fonts-4.0.2.jarjasperreports-javaflow-4.0.2.jarjdt-compiler-3.1.1.jarjson-lib-2.1-jdk15.jarjta.jarjuli-6.0.18.jarldapjdk.jarlog4j-1.2.14.jarognl-3.0.jarorg.apache.felix.bundlerepository-1.2.1.jarorg.apache.felix.framework-1.4.1.jarorg.apache.felix.main-1.4.1.jarorg.apache.felix.shell.tui-1.0.2.jarorg.apache.felix.shell-1.0.2.jaroro-2.0.8.jaroval-1.31.jarplexus-container-default-1.0-alpha-10.jarplexus-utils-1.2.jarpoi-3.7-20101029.jarpoi-ooxml-3.7-20101029.jarpoi-ooxml-schemas-3.7-20101029.jarsitemesh-2.4.2.jarspring.jarspring-beans-2.5.6.jarspring-context-2.5.6.jarspring-core-2.5.6.jarspring-test-2.5.6.jarspring-web-2.5.6.jarsqljdbc4.jarsslext-1.2-0.jarstruts2-codebehind-plugin-2.2.1.1.jarstruts2-config-browser-plugin-2.2.1.1.jarstruts2-convention-plugin-2.2.1.1.jarstruts2-core-2.2.1.1.jarstruts2-dojo-plugin-2.2.1.1.jarstruts2-dwr-plugin-2.2.1.1.jarstruts2-embeddedjsp-plugin-2.2.1.1.jarstruts2-jasperreports-plugin-2.2.1.1.jarstruts2-javatemplates-plugin-2.2.1.1.jarstruts2-jfreechart-plugin-2.2.1.1.jarstruts2-jsf-plugin-2.2.1.1.jarstruts2-json-plugin-2.2.1.1.jarstruts2-junit-plugin-2.2.1.1.jarstruts2-osgi-admin-bundle-2.2.1.1.jarstruts2-osgi-demo-bundle-2.2.1.1.jarstruts2-osgi-plugin-2.2.1.1.jarstruts2-oval-plugin-2.2.1.1.jarstruts2-pell-multipart-plugin-2.2.1.1.jarstruts2-plexus-plugin-2.2.1.1.jarstruts2-portlet-plugin-2.2.1.1.jarstruts2-rest-plugin-2.2.1.1.jarstruts2-sitegraph-plugin-2.2.1.1.jarstruts2-sitemesh-plugin-2.2.1.1.jarstruts2-spring-plugin-2.2.1.1.jarstruts2-struts1-plugin-2.2.1.1.jarstruts2-testng-plugin-2.2.1.1.jarstruts2-tiles-plugin-2.2.1.1.jarstruts-core-1.3.10.jartestng-5.1-jdk15.jartiles-api-2.0.6.jartiles-core-2.0.6.jartiles-jsp-2.0.6.jarvelocity-1.6.3.jarvelocity-tools-1.3.jarxalan-2.7.0.jarxbean.jarxpp3_min-1.1.3.4.O.jarxstream-1.2.2.jarxwork-core-2.2.1.1.jar am i missing any important jar file ? Link to comment Share on other sites More sharing options...
chicuslavic Posted May 3, 2011 Share Posted May 3, 2011 Hi,yes compile with Ctrl+B, but I allways compile before running the report, so it's not mandatoryyou should add all your jars from WEB-INF/lib to the classpath, I don't see it inside this classpath entries<classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v5.5"/> <classpathentry kind="output" path="build/classes"/></classpath> Link to comment Share on other sites More sharing options...
ongth Posted May 3, 2011 Share Posted May 3, 2011 isn't all jars in WEB-INF/lib included in<classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con"path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v5.5"/> <classpathentry kind="output" path="build/classes"/></classpath> I have created a new project, just with struts2-jasperreports-plugin-2.2.1.1.jar & xwork-core-2.2.1.1.jar. Still having the same JRXML error. java.lang.ClassNotFoundException: org.apache.struts2.views.jasperreports.ValueStackDataSource Attached is the new web project that i created, same as yours ? Link to comment Share on other sites More sharing options...
vadim_s Posted March 10, 2015 Share Posted March 10, 2015 Hi. You can compile a .jrxml in Project Explorer window of Jaspersoft Studio. By default, .jrxml report are in MyReports group. Expand this group, find your .jrxml report and rightclick on it. In context menu choose 'Compile report'. Then you get compiled .jasper report. Link to comment Share on other sites More sharing options...
vadim_s Posted March 10, 2015 Share Posted March 10, 2015 Hi You can compile a .jrxml in Project Explorer window. By default, .jrxml report are in MyReports group. Expand this group, find your .jrxml report and rightclick on it. In context menu choose 'Compile report'. Then you get compiled .jasper report. 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