WARNING: Found two components for namespace

Good morning.

I've opened, edited and saved, with iReport 3.6.0, a report, originally created with iReport 3.0.0. When I compile my report I get this strange WARNING:

11-nov-2009 9.27.03 net.sf.jasperreports.engine.component.ComponentsEnvironment findComponentBundles
WARNING: Found two components for namespace http://jasperreports.sourceforge.net/jasperreports/components

what this means?



Post Edited by cn73 at 12/11/2009 09:16
cn73's picture
1351
Joined: Jun 29 2009 - 5:22am
Last seen: 14 years 3 months ago

5 Answers:

anybody?
cn73's picture
1351
Joined: Jun 29 2009 - 5:22am
Last seen: 14 years 3 months ago

This means that JasperReports is present twice on the report classpath.  I don't know how iReport manages classloaders, so I can't tell how could that happen.  Do you have a classpath configured in iReport?

Regards,

Lucian

lucianc's picture
87259
Joined: Jul 17 2006 - 1:10am
Last seen: 19 hours 40 min ago

the "problem" occurs when compiling the report in my project, through jasperreports-maven-plugin ... so in the pom I must use a double dependence, one for Plugin, the other for the project. Now it is clear the cause, thanks;)

Code:
<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jasperreports-maven-plugin</artifactId>
                <configuration>
                    <sourceDirectory>
                        src/main/jasperreports
                    </sourceDirectory>
                    <outputDirectory>
                        src/main/resources/jasperbin
                    </outputDirectory>
                    <javaDirectory>
                        target/jasperreports/java
                    </javaDirectory>
                    <!-- <keepJava>true</keepJava> -->
                </configuration>
                <executions>
                    <execution>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>compile-reports</goal>
                        </goals>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>jasperreports</groupId>
                        <artifactId>jasperreports</artifactId>
                        <version>3.5.3</version>
                        <scope>provided</scope>                        
                    </dependency>                    
                </dependencies>
            </plugin></td></tr></tbody></table>
cn73's picture
1351
Joined: Jun 29 2009 - 5:22am
Last seen: 14 years 3 months ago
Hi cn73!

Could you please to explain more detail how to solve this problem, because now i also get it.

thanks
Hans
phuchoa0502's picture
Joined: Feb 20 2011 - 5:12am
Last seen: 8 years 7 months ago

Make sure both the plugin and the project dependencies match.  That solved my issue that caused this message. 

Using: 6.9.0 jasper;  1.0-beta-2 plugin

dshurt's picture
34
Joined: Sep 3 2019 - 8:17am
Last seen: 4 years 3 weeks ago
Feedback
randomness