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

Problem with web services example


wichogg

Recommended Posts

 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 you

Code:
    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

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

 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

  • 3 months later...

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

 hello.

 

activation-1.1.jar

axis-1.4patched.jar

axis.jar

commons-codec-1.3.jar

commons-collections-3.2.jar

commons-digester-1.7.jar

commons-discovery-0.4.jar

commons-httpclient-3.1.jar

commons-logging-1.0.4.jar

jasoerreoirts-4.0.0.jar

jasperserver-common-ws-4.0.0.jar

jasperserver-ireport-plugin-4.0.0.jar

jasperserver-jar-jar-4.0.0.jar

jasperserver-sw-client-4.0.0.jar

jaxrpc.jar

mail-1.4.jar

saaj-ri-1.1_02.jar

wsdl4j-1.5.2.jar

xercesImpl-2.7.1.jar

Link to comment
Share on other sites

  • 2 years later...

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...