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

Previous working project cannot be compiled on 1.8 #13

Closed
tan9 opened this issue Apr 24, 2014 · 6 comments
Closed

Previous working project cannot be compiled on 1.8 #13

tan9 opened this issue Apr 24, 2014 · 6 comments

Comments

@tan9
Copy link
Contributor

tan9 commented Apr 24, 2014

[ERROR] Failed to execute goal com.alexnederlof:jasperreports-plugin:1.8:jasper (compile-jasperreports-reports) on project xyz-webapp: Error while compiling Jasper reports: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.web.util.WebResourceHandlersExtensionRegistryFactory -> [Help 1]

Change plugin version from 1.8 to 1.7, and everything works fine again.

@lucarota
Copy link
Contributor

Hi,

This could be a bug in jasperreport 5.5.1 (see http://community.jaspersoft.com/jasperreports-library/issues/3301-0).
Could you try to add javax.servlet as dependency? Something like this:

            <plugin>
                <groupId>com.alexnederlof</groupId>
                <artifactId>jasperreports-plugin</artifactId>
                <version>1.8</version>
                            <configuration>
                            </configuration>
                            <dependencies>
                    <dependency>
                        <groupId>javax.servlet</groupId>
                        <artifactId>javax.servlet-api</artifactId>
                        <version>3.0.1</version>
                    </dependency>
                </dependencies>
            </plugin>

Cheers,
Luca

@tan9
Copy link
Contributor Author

tan9 commented Apr 29, 2014

I can confirm this workaround works for me.

@alexnederlof
Copy link
Owner

I can't reproduce the error. Can either of you open a PR with the fix? If its confirmed, I'm happy to make a new release for you guys. Adding the dependency in the plug-in should be no problem.

@alexnederlof
Copy link
Owner

I'll make a new release myself. I trust you've tested it.

@alexnederlof
Copy link
Owner

Released as 1.9

@tan9
Copy link
Contributor Author

tan9 commented Apr 29, 2014

Thank you, Alex!

I can confirm that 1.9 work like a charm in my project!

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

3 participants