Community
Participate
Working Groups
Build Identifier: I20100608-0911 In the report designer event handlers can be seen from the referenced Java project, but when the report is run in the report web viewer there is always a class not found exception. I was able to get some functionality by manually adding needed classes to the classpath, but classes referenced by the Java project cannot be seen. Reproducible: Always Steps to Reproduce: 1. Create a report project 2. Create a Java project 3. Reference the Java project in the report project 4. Add an event handler from the Java project in the report project 5. Run the report in the designer web viewer 6. The referenced event handler will give a class not found
The issue effects both Java event handlers and if a POJO is referenced in a Javascript event handler.
Did you reference the java project in report project from: Properties -> Report Design -> Classpath -> Add Projects..? I can preview the report which use a eventhandler after above setting.
Yes, that works. What through me was that Project References didn't work. Even more, under Properties -> Report Design -> Classpath -> Add Class Folder and Properties -> Report Design -> Classpath -> Add External Class Folder both do not work either. Properties -> Report Design -> Classpath -> Add External Jars works as well. Thanks.
(In reply to comment #3) > Yes, that works. What through me was that Project References didn't work. > Even more, under Properties -> Report Design -> Classpath -> Add Class Folder > and Properties -> Report Design -> Classpath -> Add External Class Folder both > do not work either. Properties -> Report Design -> Classpath -> Add External > Jars works as well. Thanks. I think in Properties -> Report Design -> Classpath -> Add Class Folder/Add External Class Folder, you should choose the <java handler project>/bin folder instead of the <java handler project> folder. It works in my environment.
See #comment3. If the issue still exists for you, please feel free to reopen the bug with more details on how to reproduce.