agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feed[Pljava-dev] Manifest for examples.jar
2+ messages / 0 participants
[nested] [flat]
* [Pljava-dev] Manifest for examples.jar
@ 2006-07-17 23:30
2006-07-20 10:04 ` [Pljava-dev] Manifest for examples.jar
0 siblings, 1 reply; 2+ messages in thread
From: @ 2006-07-17 23:30 UTC (permalink / raw)
Hi Thomas,
I am building PL/Java from the source along with some modifications
I'm working on. The build succeeds, and I was able to deploy pljava.so
and pljava.jar under JDK 1.5.07. In order to overcome the zlib issue, I
switched to JDK 1.6b2, because I think I've read that Java 6 can read
binaries compiled with Java 5 without problems. When I try to build
using Java 6, the compile complains about a bunch of unimplemented
methods in the JDBC interface definitions.
I then attempted to run
sqlj.install_jar('file:///......./examples.jar', 'samples', true);
It starts, and I can actually remotely connect to the JVM, but the
function dies with the exception:
ERROR: java.sql.SQLException: No such class:
org.postgresql.pljava.example.ComplexTuple
When I unzip the file, the manifest is empty, which makes sense, because
the manifest in the build tree is also empty. However, upon unzipping
examples.jar, the class is present inside of it, and less examples.jar
returns (presumably the zip manifest):
Archive: ./examples.jar
Length Method Size Ratio Date Time CRC-32 Name
-------- ------ ------- ----- ---- ---- ------ ----
0 Defl:N 2 0% 07-17-06 23:17 00000000 META-INF/
136 Defl:N 125 8% 07-17-06 23:17 b8e83a9c
META-INF/MANIFEST.MF
0 Stored 0 0% 07-17-06 23:17 00000000 org/
0 Stored 0 0% 07-17-06 23:17 00000000 org/postgresql/
0 Stored 0 0% 07-17-06 23:17 00000000
org/postgresql/pljava/
0 Stored 0 0% 07-17-06 23:17 00000000
org/postgresql/pljava/example/
1057 Defl:N 555 48% 07-17-06 23:17 670a9c4b
org/postgresql/pljava/example/SetOfRecordTest.class
1582 Defl:N 803 49% 07-17-06 23:17 5847ab8d
org/postgresql/pljava/example/ComplexTuple.class
1187 Defl:N 660 44% 07-17-06 23:17 2779804a
org/postgresql/pljava/example/Threads.class
2150 Defl:N 1183 45% 07-17-06 23:17 e50ff5ac
org/postgresql/pljava/example/ResultSetTest.class
2520 Defl:N 1253 50% 07-17-06 23:17 6081fcbf
org/postgresql/pljava/example/ComplexScalar.class
1434 Defl:N 764 47% 07-17-06 23:17 2b7503ac
org/postgresql/pljava/example/Threads$Locker.class
1060 Defl:N 643 39% 07-17-06 23:17 7cae587b
org/postgresql/pljava/example/RandomInts.class
So the class is actually there. Any thoughts on why sql_install_jar
can't find it?
Thanks,
Eric
^ permalink raw reply [nested|flat] 2+ messages in thread
* [Pljava-dev] Manifest for examples.jar
2006-07-17 23:30 [Pljava-dev] Manifest for examples.jar
@ 2006-07-20 10:04 `
0 siblings, 0 replies; 2+ messages in thread
From: @ 2006-07-20 10:04 UTC (permalink / raw)
Eric E wrote:
> Hi Thomas,
> I am building PL/Java from the source along with some modifications
> I'm working on. The build succeeds, and I was able to deploy pljava.so
> and pljava.jar under JDK 1.5.07. In order to overcome the zlib issue, I
> switched to JDK 1.6b2, because I think I've read that Java 6 can read
> binaries compiled with Java 5 without problems. When I try to build
> using Java 6, the compile complains about a bunch of unimplemented
> methods in the JDBC interface definitions.
>
>
Yes, I've seen that. Apparently the latest 1.6 introduces the JDBC 4
standard. It in turn, adds some new methods. I'll look into that with
the intention to create dummy implementations that throw unsupported
feature exceptions for now. The actual JDBC 4 will have to wait a while
longer.
> I then attempted to run
> sqlj.install_jar('file:///......./examples.jar', 'samples', true);
>
> It starts, and I can actually remotely connect to the JVM, but the
> function dies with the exception:
>
> ERROR: java.sql.SQLException: No such class:
> org.postgresql.pljava.example.ComplexTuple
>
>
This is likely to be a consequence of earlier compilation errors.
> So the class is actually there. Any thoughts on why sql_install_jar
> can't find it?
>
>
It's there, but it's broken.
I suggest you revert to Java 1.5 for now and rebuild your postgresql
using 'configure --without-zlib' to avoid the zlib issue.
Regards,
Thomas Hallgren
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2006-07-20 10:04 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-07-17 23:30 [Pljava-dev] Manifest for examples.jar
2006-07-20 10:04 `
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox