Jar-Jars are not loaded

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

kaandok
Posts: 9
Joined: 11 Aug 2012, 17:59

Jar-Jars are not loaded

Postby kaandok » 12 Aug 2012, 11:29

Hi, according to my experiments SFS2X classloaders do not load classes in jars that are inside of other jars
the solution is simply to expand the other jars, but I think that jar-jars (nested jars) are a really nice way to
package projects and if it is not really hard to support them would be a nice addition.

Details of project structure:

extrension-shared.jar (shared model classes, and other dependencies such as jedis.jar for persistence to Redis, etc.)
extension.jar (zone extension, only classes no jars but references classes inside extension-share.jar)

The code inside extension.jar issues a NoClassDefFound exception when trying to instantiate an object inside jedis.jar (which is inside extension-shared.jar)
If I explode jedis.jar, extension works properly.

I would be glad if you could suggest a way to work wih jar-jars and/or consider this as a feature for future releases

Thanks and Regards
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Jar-Jars are not loaded

Postby Lapo » 12 Aug 2012, 12:18

Yes, absolutely. Jars inside jars won't work.
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 56 guests