This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Embedded container tests stop working if adding Java-EE-Glassfish-V3 to classpath | ||
---|---|---|---|
Product: | javaee | Reporter: | pablopina |
Component: | EJB Project | Assignee: | David Konecny <dkonecny> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | pjiricka |
Priority: | P1 | ||
Version: | 7.0.1 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
pablopina
2011-08-25 04:43:08 UTC
I do not mean to offend you Pablo by closing your issues but there is not much to do about this on NB side. It is a messy situation. Why it works in your step #2) is because a jar is added to project classpath from glassfish installation and that jar in its manifest includes via ClassPath attribute dozens of GF jars. That's the scenario I know to work. Everything else never worked for me but perhaps it gets better in newer versions. If you want to make it pass with Java-EE-Glassfish-V3 then you will have to talk to GF team and ask them why it does not work. I would suggest to install GlassFish on your hudson and run the tests the same way they are run in IDE. That should work. I never find any other way. (In reply to comment #1) Yes, we did install hudkins and it's running now, but out of frustation.... If we edited the MANIFEST.INF of glassfish-embedded-static-shell.jar and replaced '../../modules/' for '' and then jar it as glassfish-embedded-static-shell-xxx.jar Could we not then add glassfish-embedded-static-shell-xxx.jar to Java-EE-Glassfish-V3 library as it could then reference all other jars in the same directory? Thanks David! (In reply to comment #2) > Could we not then add glassfish-embedded-static-shell-xxx.jar to > Java-EE-Glassfish-V3 library as it could then reference all other jars in the > same directory? In theory you could. Whether it will work is a different story. If you have time to experiment with it and are ready to repackage that way any newer build of GF you may need to use and you accept that newer GF builds/releases may suddenly stop working if repackaged then go for it. :-) |