wichogg Posted May 9, 2011 Share Posted May 9, 2011 I am trying to show reports trough a web service as describe in the JasperServer-Web-Services-guide.pdf (Section 2.4.2) I'm getting a server error: java.lang.NoClassDefFoundError: Could not initialize class com.jaspersoft.jasperserver.ws.xml.Unmarshaller I have already look into the jar's attached to my project and found this class, i also try to download the jar again and change it but i got the same result.Does anyone have any idea what could be wrong?Thank youCode: String webServiceUrl = "http://alfresco:8080/jasperserver/"; String username = "jasperadmin"; String password = "jasperadmin"; MyJIClient client = new MyJIClient(webServiceUrl, username, password); String uri ="http://alfresco:8080/jasperserver/"; List ls = client.list(uri);Post Edited by wichogg at 05/09/2011 19:45 Link to comment Share on other sites More sharing options...
wichogg Posted May 10, 2011 Author Share Posted May 10, 2011 I have solved this, apparently i was missing some extra jar's in the project library.It's seems to be easy to execute the web services example but it took me a lot of time to make it functional. I want to share a netbeans 7 ready working example with jasper reports server in localhost and tomcat as web app server.hop it helps somebody. Link to comment Share on other sites More sharing options...
shazone Posted September 9, 2011 Share Posted September 9, 2011 hi can you list down all the needed jar files .... i downloaded your sample and everything is ok in eclipse, managed to get the war file and deployed to tomcat ... but once i run it the following error: Link to comment Share on other sites More sharing options...
shazone Posted September 9, 2011 Share Posted September 9, 2011 org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class com.jaspersoft.jasperserver.ws.xml.Unmarshaller org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) root cause javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class com.jaspersoft.jasperserver.ws.xml.Unmarshaller org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.listReports_jsp._jspService(listReports_jsp.java:240) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) root cause java.lang.NoClassDefFoundError: Could not initialize class com.jaspersoft.jasperserver.ws.xml.Unmarshaller com.jaspersoft.jasperserver.irplugin.wsclient.WSClient.<init>(WSClient.java:73) com.jaspersoft.jasperserver.irplugin.JServer.getWSClient(JServer.java:102) ws.MyJIClient.list(MyJIClient.java:39) org.apache.jsp.listReports_jsp._jspService(listReports_jsp.java:88) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) Link to comment Share on other sites More sharing options...
wichogg Posted September 9, 2011 Author Share Posted September 9, 2011 hello. activation-1.1.jaraxis-1.4patched.jaraxis.jarcommons-codec-1.3.jarcommons-collections-3.2.jarcommons-digester-1.7.jarcommons-discovery-0.4.jarcommons-httpclient-3.1.jarcommons-logging-1.0.4.jarjasoerreoirts-4.0.0.jarjasperserver-common-ws-4.0.0.jarjasperserver-ireport-plugin-4.0.0.jarjasperserver-jar-jar-4.0.0.jarjasperserver-sw-client-4.0.0.jarjaxrpc.jarmail-1.4.jarsaaj-ri-1.1_02.jarwsdl4j-1.5.2.jarxercesImpl-2.7.1.jar Link to comment Share on other sites More sharing options...
avidab00 Posted March 10, 2014 Share Posted March 10, 2014 i have this problem but,i want a solution, please 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