Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Compiling reports that use Java Beans on the same project #60

Open
mmonge opened this issue Jan 19, 2020 · 6 comments
Open

Compiling reports that use Java Beans on the same project #60

mmonge opened this issue Jan 19, 2020 · 6 comments

Comments

@mmonge
Copy link

mmonge commented Jan 19, 2020

Hello, my reports use Java Beans that are on the same project, when I compile them with this plugin it saids that can not find this classes.

For example, one of my reports receives a parameter of type me.monge.virtual.reportes.SvgLogoWrapper (a class created by me) but then trying to compile it with this plugin, it saids:

me.monge.virtual.reportes.SvgLogoWrapper cannot be resolved to a type

Is there any recommended configuration for this to work? Thank you in advance.

@aLeXcBa1990
Copy link

any solution for this?

@Archangel1C
Copy link

Interesting. I think, I had the same problem recently. Could not solve it, yet.

@aLeXcBa1990
Copy link

aLeXcBa1990 commented Jun 19, 2020

I just solved this by adding the following

<configuration>
<additionalClasspath>${project.baseUri}</additionalClasspath>
<additionalClasspath>${project.basedir}</additionalClasspath>
</configuration>

@aLeXcBa1990
Copy link

Now I have the following problem
The constructor BigDecimal(BigDecimal) is undefined
any ideas?

@Archangel1C
Copy link

Maybe because BigInteger (unlike Integer or Double) is not in package java.lang, so you need to import it within the report?

@Viserius
Copy link

Viserius commented Aug 8, 2022

We seem to be encountering the same issue after changing the jasperreports-plugin from version 2.3 to a higher version (2.4 to 2.8 all result in the "cannot be resolved to a type" problem).
Has anyone been able to find a solution?
The additionalClasspath configuration property as proposed by @aLeXcBa1990 does not solve the problem on our end.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants