From: jluo at teltronics.com (Joves Luo) Date: Mon, 28 Mar 2005 14:02:23 -0500 Subject: [Pljava-dev] java.lang.SecurityException Message-ID: <11C803742910E84E9CDBFD344773B814759F81@srqech02.teltronics.com> Thomas Hallgren wrote: > >Ok, that looks good. Still, according to your stacktrace, an attempt is >made to load the PGtoXML.jar using the system classloader which in turn >tells me that either your CLASSPATH environment variable or the >pljava.classpath in the postgresql.conf contains this jar. You should >remove that setting. > >Regards, >Thomas Hallgren > Thank you, that seemed to do the trick on the securityexception. But now I am getting another exception: ***Exception: java.lang.ClassNotFoundException: org.postgresql.Driver java.lang.ClassNotFoundException: org.postgresql.Driver at org.postgresql.pljava.sqlj.Loader.findClass(Loader.java:193) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at PGtoXML.OWDBConnection.(OWDBConnection.java:10) at PGtoXML.OWDBtoXML.(OWDBtoXML.java:18) at PGtoXML.PGtoXML.getXmlString(PGtoXML.java:7) LOG: Exception LOG: in thread "main" java.lang.NullPointerException at PGtoXML.OWDBtoXML.makeDBXML(OWDBtoXML.java:39) at PGtoXML.OWDBtoXML.makeDBXML(OWDBtoXML.java:34) at PGtoXML.PGtoXML.getXmlString(PGtoXML.java:8) ERROR: java.lang.NullPointerException My code imports classes from another jar file (Postgresql JDBC). I installed all the jar files that are needed to run my program. The program compiles and runs on windows as a java program, and runs on windows as a pljava function. It just doesn't work when I do the same thing for Linux. Please let me know what I need to do. -------------- next part -------------- An HTML attachment was scrubbed... URL: