cancel
Showing results for 
Search instead for 
Did you mean: 

Library not found in server

Former Member
0 Kudos

Hi Experts

I am developing an application with JasperReports based in this links:

[/people/jawed.ali/blog/2009/02/09/part-i-print-web-dynpro-java-applications-using-jasperreports|/people/jawed.ali/blog/2009/02/09/part-i-print-web-dynpro-java-applications-using-jasperreports]

[/people/jawed.ali/blog/2009/10/21/part-ii-print-web-dynpro-java-applications-using-jasperreports|/people/jawed.ali/blog/2009/10/21/part-ii-print-web-dynpro-java-applications-using-jasperreports]

[/people/jawed.ali/blog/2009/10/30/part-iii-print-web-dynpro-java-applications-using-jasperreports|/people/jawed.ali/blog/2009/10/30/part-iii-print-web-dynpro-java-applications-using-jasperreports]

In my application i have just one difference, i created an external library DC to put the jasperreports jar, and add as depenedent in my web dynpro project.

when i deploy and run the application i get some erros like this:

net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
D:\usr\sap\DC1\J00\j2ee\cluster\server0\Relatorio_teste_WD_1269440919163_475697.java:4: package net.sf.jasperreports.engine does not exist 
import net.sf.jasperreports.engine.*; 
^ 
D:\usr\sap\DC1\J00\j2ee\cluster\server0\Relatorio_teste_WD_1269440919163_475697.java:5: package net.sf.jasperreports.engine.fill does not exist 
import net.sf.jasperreports.engine.fill.*; 
^ 
D:\usr\sap\DC1\J00\j2ee\cluster\server0\Relatorio_teste_WD_1269440919163_475697.java:21: cannot find symbol 
symbol: class JREvaluator 
public class Relatorio_teste_WD_1269440919163_475697 extends JREvaluator 
                                                             ^ 
D:\usr\sap\DC1\J00\j2ee\cluster\server0\Relatorio_teste_WD_1269440919163_475697.java:29: cannot find symbol 
symbol  : class JRFillParameter 
location: class Relatorio_teste_WD_1269440919163_475697 
    private JRFillParameter parameter_REPORT_CLASS_LOADER = null;
...
...

- The library app is already deployed.

- I use NWDS 7.1.EHP1 SP04

- When i test local in standalone app, the same code works.

I apreciate your help.

Regards

Marcos Brandu00E3

Accepted Solutions (1)

Accepted Solutions (1)

p330068
Active Contributor
0 Kudos

Hi Marcos,

I think there is some problem with the external library and used dependacy...

I look like WD application not able to find rquired jar for that. Please check the dependancy.

Regards

Arun

Former Member
0 Kudos

I did this steps to create a External Library:

1 - put the jars files in library Folder.

2 - publish as archive with compilation and with assemble for each jar.

3 - build and deploy it.

4 - Add the external library component in web dynpro compenent in it dependencies.

This is what i did. There is some another steps, or i did something wrong?

When i use the API of jasperreports in my code, works fine. I can find the classes. But qhen i deploy and run WD application, i get that error...

Regards

Marcos.

Answers (1)

Answers (1)

Former Member
0 Kudos

Just close thread.

Former Member
0 Kudos

Hi Marcos,

Even I am stuck with the same issue.

Did you get any solution to this ?

Usage of jars in Web Dynpro for CE seems to be a huge deal !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1