NoClassDefFound error.. again
Hi have four WDJ DCs
1. Constants (mainly public static final variables in plain java files)
2. Config (used for config data retrieval from .properties files)
3. Finders (mainly UI trees and search functions)
4. Test (Test application and component)
Constants uses nothing
Config uses Constants
Finder uses Config, Constants
Test uses Finders, Config, Constants
Constants' plain java classes are all included in the public part, as well as: package, package tree, folder, folder tree.
Dependencies are declared as compile time.
Applications in Test DC requiring INDIRECTLY a class from Constants will dump:
the error is located in a class belonging to Config DC.
How to solve this?
Thanks, points will be awarded
try to add your class into your public part as "assembly" and check the "build-time" dependency.
Assembly: (to package DCs, which are not deployable into a deployable DC)
A type that "can be packaged into other build result"
The public part for assembly provides a library that other DCs can include in their own resulting builds.
Your situation is the same of "Use of External library" in which you have to create a public part of type "compilation" and add the JAR file as a public part entity. Then you have to create another public part of type "Assembly" and again add the jar file as a part entity.
You can now wrap this public part into another DC type and make it available on the server.
Let me know your results.
Edited by: Mirco Veltri on Oct 20, 2008 6:40 PM