From: bgiles at coyotesong.com (Bear Giles) Date: Mon, 8 Oct 2012 10:30:29 -0600 Subject: [Pljava-dev] ENC: ERROR: java.lang.NoClassDefFoundError In-Reply-To: References: Message-ID: Do you know if those classes are in the JVM used by the postgresql server or in the jar files you've explicitly deployed? That's burned me a few times, enough that I I've been fighting a similar problem for a few days. 1. Try writing a simple user-defined function that calls classloader.forName('...ByteInputStream') and return a boolean indicating success (or throw a SQLException if you got a ClassNotFoundException). You might not have the library in the /postgresql/ jvm or a jar file you explicitly loaded. 2. If the classloader failed it might be because static initialization failed. 3. The class might not be a complete implementation and/or refer to a missing class. I had some very confusing class not found exceptions due to this. That might not be enough - I'm still trying to figure out why I'm getting that error on class that contains nothing but an empty method that takes a trigger argument, but it can get you started. BTW one of my errors was because java.security.Provider.Service isn't implemented. That makes it hard to query the system to learn what encryption algorithms are available! On Mon, Oct 8, 2012 at 7:24 AM, Fabricio-Interfocus < fabricio at interfocus.com.br> wrote: > Please, can anybody help me with this error... > > > ERROR: java.lang.NoClassDefFoundError: > com/sun/xml/messaging/saaj/util/ByteInputStream > > I?m trying to consume a webservice. > > Using Netbeans, everything works fine. > > [image: Descri??o: > http://postgresql.1045698.n5.nabble.com/file/n5726623/netbeans_-_ok.png] > > But, with PostgreSql ... > > [image: Descri??o: > http://postgresql.1045698.n5.nabble.com/file/n5726623/postgres.png] > > > I have recorded this package, but the ByteInputStream class are in > different "place". > > [image: Descri??o: > http://postgresql.1045698.n5.nabble.com/file/n5726623/postgres_jar_entry.png] > > > [other informations] > Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-31-generic x86_64) > > JDK 7 > > PostgreSQL PostgreSQL 9.1.5 on x86_64-unknown-linux-gnu, compiled by gcc > (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3, 64-bit > > PlJava from > > http://pgfoundry.org/frs/download.php/3280/pljava-src-snapshot.20120525.0.tar.gz > > > > Thanks**** > > ** ** > > *_______________________________________________ > Fabr?cio Fachini* > > Analista Desenvolvedor**** > > Interfocus Tecnologia ? Desenvolvimento de Software**** > > (+55 (14) 3454-2681**** > > (+55 (14) 9631-4277**** > > ** ** > > [image: Descri??o: cid:image002.png at 01CD875E.4D9C0AC0]**** > > ** ** > > _______________________________________________ > Pljava-dev mailing list > Pljava-dev at pgfoundry.org > http://pgfoundry.org/mailman/listinfo/pljava-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 144533 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.png Type: image/png Size: 12236 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 147235 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 129412 bytes Desc: not available URL: