Hello folks.
So, I work on a large project which is deployed in an ear to JBoss 4.3, and in which the GIS module that makes use of of GeoTools is a small but important part.
In the days of yore, this project used to be built with ant, so for the GIS part I had a separate project using maven and I modified the POM to lump all the dependencies into a mega-jar (shaded artifact maven plug-in) and deployed this together with my code.
Nowdays, however, the whole project is built in maven, so I decided to move to a more conventional dependencies management and just added the GeoTools (2.6.6) dependencies to the main project (big relief also not having a 13mb jar where half of it is duplicate classes). Here is where everything broke down. The problem is:
Despite making sure all the jars are in the classpath (I manually put them in the ear's lib) when in my code, or even inside the geotools code, a FactoryFinder tries to load a Factory it always throws a ClassDefNotFoundException. Which is kind of a bogus Exception, because instancing them with 'new' works (but the code ends up breaking down when gt internally tries to load something via FactoryFinder). Following the FactoryFinder with the debbuger I was unable to spot a reason why it hasn't found them, other than the obvious "they are not there".
I've read the geotools doc page about the FactorySPI and looked far and wide in the JBoss docs for any mention about it, unsuccessfully. So I am kinda lost and clueless now to even if JBoss supports this scheme. The only mention I found of a problem similar to mine was in this thread: http://www.mail-archive.com/[email protected]/msg05518.html, but it is from 3 years ago and ends without an answer.
Can anyone point me at the right direction?
Any input will be greatly appreciated. Thanks!
--
Rodrigo Del C. Andrade
Analista de Sistemas
SIC - SSE - Soluções Segurança Pública
DÍGITRO TECNOLOGIA
E-mail: [email protected]
Fone: +55 48 3281-7000 Ramal: 7537
Fax: +55 48 3281-7299
Analista de Sistemas
SIC - SSE - Soluções Segurança Pública
DÍGITRO TECNOLOGIA
E-mail: [email protected]
Fone: +55 48 3281-7000 Ramal: 7537
Fax: +55 48 3281-7299
Esta mensagem, incluindo seus anexos, é reservada somente à Dígitro e ao destinatário da mensagem. Caso você tenha recebido esta mensagem por engano, Who is John Galt?
------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
