[Geoserver-devel] Problem with wkb4j-1.0-RC1.jar

Hey all,

I've successfully built an up-to-date geotools-2.2.x branch (currently RC5). Maven is very cool.

I've also successfully built an up-to-date geoserver trunk.

I then went to deploy my geoserver war file, and got the following exception when deploying it inside Tomcat:

...
java.lang.IllegalArgumentException: log4j,openmap,postgis,jts,junitperf,junit,postgresql-Extension-Name
...

I narrowed it down to the fact that the MANIFEST.MF inside the wkb4j jar file that's hosted at both maven.geotools.fr (seems to be the one pulled from gt-trunk) and at http://lists.refractions.net/m2 (seems to be the one pulled from gt-2.2.x) includes the line:

*Extension-List: log4j,openmap,postgis,jts,junitperf,junit,postgresql*

From what I understand from here:

http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html

and here:

http://java.sun.com/j2se/1.5.0/docs/guide/extensions/versioning.html

this should instead read:

*Extension-List: log4j openmap postgis jts junitperf junit postgresql*

(spaces instead of commas).

However, when I rebuilt the jar with exactly that change to the Extension-List attribute, I got a silent error from Tomcat (even worse).

This copy of wkb4j has been around for a long time (I verified that the same problems were in the MANIFEST.MF file in the version released on sourceforge in 2003), so I can't imagine I'm the first person to run across this.

Anyone else having this problem, or is it confined to linux+tomcat+java 1.5?

--saul

The same here!!

On 7/26/06, Saul Farber <Saul.Farber@anonymised.com> wrote:

Hey all,

I’ve successfully built an up-to-date geotools-2.2.x branch (currently
RC5). Maven is very cool.

I’ve also successfully built an up-to-date geoserver trunk.

I then went to deploy my geoserver war file, and got the following
exception when deploying it inside Tomcat:


java.lang.IllegalArgumentException:
log4j,openmap,postgis,jts,junitperf,junit,postgresql-Extension-Name

I narrowed it down to the fact that the MANIFEST.MF inside the wkb4j jar
file that’s hosted at both maven.geotools.fr (seems to be the one pulled
from gt-trunk) and at http://lists.refractions.net/m2 (seems to be the
one pulled from gt-2.2.x) includes the line:

Extension-List: log4j,openmap,postgis,jts,junitperf,junit,postgresql

From what I understand from here:

http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html

and here:

http://java.sun.com/j2se/1.5.0/docs/guide/extensions/versioning.html

this should instead read:

Extension-List: log4j openmap postgis jts junitperf junit postgresql

(spaces instead of commas).

However, when I rebuilt the jar with exactly that change to the
Extension-List attribute, I got a silent error from Tomcat (even worse).

This copy of wkb4j has been around for a long time (I verified that the
same problems were in the MANIFEST.MF file in the version released on
sourceforge in 2003), so I can’t imagine I’m the first person to run
across this.

Anyone else having this problem, or is it confined to linux+tomcat+java 1.5?

–saul


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share your
opinions on IT & business topics through brief surveys – and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Alessio Fabiani
Software Engineer

http://afabiani.wordpress.com


But the jar in geoserver works right? So we just need to upload that one to the appropriate repositories?

Alessio Fabiani wrote:

The same here!!

On 7/26/06, *Saul Farber* <Saul.Farber@anonymised.com <mailto:Saul.Farber@anonymised.com>> wrote:

    Hey all,

    I've successfully built an up-to-date geotools-2.2.x branch (currently
    RC5). Maven is very cool.

    I've also successfully built an up-to-date geoserver trunk.

    I then went to deploy my geoserver war file, and got the following
    exception when deploying it inside Tomcat:

    ...
    java.lang.IllegalArgumentException:
    log4j,openmap,postgis,jts,junitperf,junit,postgresql-Extension-Name
    ...

    I narrowed it down to the fact that the MANIFEST.MF inside the wkb4j jar
    file that's hosted at both maven.geotools.fr
    <http://maven.geotools.fr> (seems to be the one pulled
    from gt-trunk) and at http://lists.refractions.net/m2
    <http://lists.refractions.net/m2&gt; (seems to be the
    one pulled from gt-2.2.x) includes the line:

    *Extension-List: log4j,openmap,postgis,jts,junitperf,junit,postgresql*

     From what I understand from here:

    http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html

    and here:

    http://java.sun.com/j2se/1.5.0/docs/guide/extensions/versioning.html
    <http://java.sun.com/j2se/1.5.0/docs/guide/extensions/versioning.html&gt;

    this should instead read:

    *Extension-List: log4j openmap postgis jts junitperf junit postgresql*

    (spaces instead of commas).

    However, when I rebuilt the jar with exactly that change to the
    Extension-List attribute, I got a silent error from Tomcat (even worse).

    This copy of wkb4j has been around for a long time (I verified that the
    same problems were in the MANIFEST.MF file in the version released on
    sourceforge in 2003), so I can't imagine I'm the first person to run
    across this.

    Anyone else having this problem, or is it confined to
    linux+tomcat+java 1.5?

    --saul

    -------------------------------------------------------------------------

    Take Surveys. Earn Cash. Influence the Future of IT
    Join SourceForge.net's Techsay panel and you'll get the chance to
    share your
    opinions on IT & business topics through brief surveys -- and earn cash
    http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
    <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV&gt;
    _______________________________________________
    Geoserver-devel mailing list
    Geoserver-devel@lists.sourceforge.net
    <mailto:Geoserver-devel@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
---------------------------------------------------------
Alessio Fabiani
Software Engineer

http://afabiani.wordpress.com

--------------------------------------------------------- !DSPAM:1003,44c723b4295631410093335!

------------------------------------------------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

!DSPAM:1003,44c723b4295631410093335!

------------------------------------------------------------------------

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:1003,44c723b4295631410093335!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

No, having the jar around seems to make geoserver not deploy correctly (tomcat complains about the wkb4j.jar's MANIFEST.MF file, although figuring out which jar and which file took a bit).

It's getting weirder though. Now when I delete that jar file from the WEB-INF/lib directory completely (therefore removing the problem, right?) tomcat fails silently. Not sure what the heck's going on, but I'm upgrading JVMs, and I'm about to upgrade tomcat.

--saul

Chris Holmes wrote:

But the jar in geoserver works right? So we just need to upload that one to the appropriate repositories?

Sorry, I wasn't clear. The jar that's in the 1.3.x geoserver lib/ dir. It's never had problems with deploying, as far as I know. And it's called wkb4j-1.0-RC1-modified.jar. So it's been modified in some way, I think Andrea may have had a fix on it long ago? So if we use that one in the repositories I think things should work?

Chris

Saul Farber wrote:

No, having the jar around seems to make geoserver not deploy correctly (tomcat complains about the wkb4j.jar's MANIFEST.MF file, although figuring out which jar and which file took a bit).

It's getting weirder though. Now when I delete that jar file from the WEB-INF/lib directory completely (therefore removing the problem, right?) tomcat fails silently. Not sure what the heck's going on, but I'm upgrading JVMs, and I'm about to upgrade tomcat.

--saul

Chris Holmes wrote:

But the jar in geoserver works right? So we just need to upload that one to the appropriate repositories?

!DSPAM:1003,44c7915e5222095110867!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

Hi Saul,

I ran into this problem a while back and the only way I was able to solve it was to repackage the jar with a modified manifest.

I have posted this to the wkb4j mailing list was well. Perhaps it is possible to get a version which does contain this stuff in the MANIFEST.

-Justin

Saul Farber wrote:

No, having the jar around seems to make geoserver not deploy correctly (tomcat complains about the wkb4j.jar's MANIFEST.MF file, although figuring out which jar and which file took a bit).

It's getting weirder though. Now when I delete that jar file from the WEB-INF/lib directory completely (therefore removing the problem, right?) tomcat fails silently. Not sure what the heck's going on, but I'm upgrading JVMs, and I'm about to upgrade tomcat.

--saul

Chris Holmes wrote:

But the jar in geoserver works right? So we just need to upload that one to the appropriate repositories?

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:1004,44c792907462095110867!

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com

I'm pretty sure the wkb4j mailing list is dead. At least it was a couple of years ago when we tried to interact with it.

C

Justin Deoliveira wrote:

Hi Saul,

I ran into this problem a while back and the only way I was able to solve it was to repackage the jar with a modified manifest.

I have posted this to the wkb4j mailing list was well. Perhaps it is possible to get a version which does contain this stuff in the MANIFEST.

-Justin

Saul Farber wrote:

No, having the jar around seems to make geoserver not deploy correctly (tomcat complains about the wkb4j.jar's MANIFEST.MF file, although figuring out which jar and which file took a bit).

It's getting weirder though. Now when I delete that jar file from the WEB-INF/lib directory completely (therefore removing the problem, right?) tomcat fails silently. Not sure what the heck's going on, but I'm upgrading JVMs, and I'm about to upgrade tomcat.

--saul

Chris Holmes wrote:

But the jar in geoserver works right? So we just need to upload that one to the appropriate repositories?

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

I am not sure about the licencing or IP issues but we could manually modify the jar ourselves, and then post it on our maven repo servers. From what I can tell wkb4j is LGPL.

-Justin

Chris Holmes wrote:

I'm pretty sure the wkb4j mailing list is dead. At least it was a couple of years ago when we tried to interact with it.

C

Justin Deoliveira wrote:

Hi Saul,

I ran into this problem a while back and the only way I was able to solve it was to repackage the jar with a modified manifest.

I have posted this to the wkb4j mailing list was well. Perhaps it is possible to get a version which does contain this stuff in the MANIFEST.

-Justin

Saul Farber wrote:

No, having the jar around seems to make geoserver not deploy correctly (tomcat complains about the wkb4j.jar's MANIFEST.MF file, although figuring out which jar and which file took a bit).

It's getting weirder though. Now when I delete that jar file from the WEB-INF/lib directory completely (therefore removing the problem, right?) tomcat fails silently. Not sure what the heck's going on, but I'm upgrading JVMs, and I'm about to upgrade tomcat.

--saul

Chris Holmes wrote:

But the jar in geoserver works right? So we just need to upload that one to the appropriate repositories?

-------------------------------------------------------------------------

Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com

We ran with the same issue over here as well. We found 3 ways to fix.

  1. Copy wkb4j.jar’ under \j2sdk{version}\jre\lib\ext.
    It worked without having to change the manifest. Eclipse, Tomcat worked well for us from this point.
  2. Change the manifest as you suggested
  3. Download the source code and re-compile it.
    It is now part of my maven build process. If somebody wants to spend time to make it available on http://www.ibiblio.org/maven2/ and create a pom file version dependency, this would be cool.

Rob

Justin Deoliveira jdeolive@anonymised.com wrote:

Hi Saul,

I ran into this problem a while back and the only way I was able to
solve it was to repackage the jar with a modified manifest.

I have posted this to the wkb4j mailing list was well. Perhaps it is
possible to get a version which does contain this stuff in the MANIFEST.

-Justin

Saul Farber wrote:

No, having the jar around seems to make geoserver not deploy correctly
(tomcat complains about the wkb4j.jar’s MANIFEST.MF file, although
figuring out which jar and which file took a bit).

It’s getting weirder though. Now when I delete that jar file from the
WEB-INF/lib directory completely (therefore removing the problem,
right?) tomcat fails silently. Not sure what the heck’s going on, but
I’m upgrading JVMs, and I’m about to upgrade tomcat.

–saul

Chris Holmes wrote:

But the jar in geoserver works right? So we just need to upload that
one to the appropriate repositories?


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share your
opinions on IT & business topics through brief surveys – and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:1004,44c792907462095110867!


Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share your
opinions on IT & business topics through brief surveys – and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail

Hi Rob,

Thanks for the input, glad to see someone else has already solved this one :).

Car On wrote:

We ran with the same issue over here as well. We found 3 ways to fix.
1) Copy wkb4j.jar' under \j2sdk{version}\jre\lib\ext.
    It worked without having to change the manifest. Eclipse, Tomcat worked well for us from this point.

I think this is probably the easiest solution, but I dont really like not being able to run geoserver with an out of the box jvm.

2) Change the manifest as you suggested
3) Download the source code and re-compile it.
    It is now part of my maven build process. If somebody wants to spend time to make it available on http://www.ibiblio.org/maven2/ and create a pom file version dependency, this would be cool.

I guess these two really amount to the same. If no IP issues ivolved then I say we go for it.

-Justin

Rob

*/Justin Deoliveira <jdeolive@anonymised.com>/* wrote:

    Hi Saul,

    I ran into this problem a while back and the only way I was able to
    solve it was to repackage the jar with a modified manifest.

    I have posted this to the wkb4j mailing list was well. Perhaps it is
    possible to get a version which does contain this stuff in the MANIFEST.

    -Justin

    Saul Farber wrote:
     > No, having the jar around seems to make geoserver not deploy
    correctly
     > (tomcat complains about the wkb4j.jar's MANIFEST.MF file, although
     > figuring out which jar and which file took a bit).
     >
     > It's getting weirder though. Now when I delete that jar file from
    the
     > WEB-INF/lib directory completely (therefore removing the problem,
     > right?) tomcat fails silently. Not sure what the heck's going on,
    but
     > I'm upgrading JVMs, and I'm about to upgrade tomcat.
     >
     > --saul
     >
     > Chris Holmes wrote:
     >
     >>But the jar in geoserver works right? So we just need to upload that
     >>one to the appropriate repositories?
     >>
     >
    -------------------------------------------------------------------------
     > Take Surveys. Earn Cash. Influence the Future of IT
     > Join SourceForge.net's Techsay panel and you'll get the chance to
    share your
     > opinions on IT & business topics through brief surveys -- and
    earn cash
     >
    http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
     > _______________________________________________
     > Geoserver-devel mailing list
     > Geoserver-devel@lists.sourceforge.net
     > https://lists.sourceforge.net/lists/listinfo/geoserver-devel
     >

    -- Justin Deoliveira
    The Open Planning Project
    jdeolive@anonymised.com

    -------------------------------------------------------------------------
    Take Surveys. Earn Cash. Influence the Future of IT
    Join SourceForge.net's Techsay panel and you'll get the chance to
    share your
    opinions on IT & business topics through brief surveys -- and earn cash
    http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
    _______________________________________________
    Geoserver-devel mailing list
    Geoserver-devel@lists.sourceforge.net
    https://lists.sourceforge.net/lists/listinfo/geoserver-devel

------------------------------------------------------------------------
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the *All-new Yahoo! Mail * <http://us.rd.yahoo.com/evt=40705/*http://mrd.mail.yahoo.com/try_beta?.intl=ca&gt; !DSPAM:1004,44c7a37514441425493344!

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com

Not as it stands on trunk deploying in tomcat with postgis. The dependency is dragged in transivly through geotools. I beleive on 1.3.x the jar has already been modified and hence works.

So yes, we need to modify the jar, and upload to out maven repos?

-Justin

Chris Holmes wrote:

But the jar in geoserver works right? So we just need to upload that one to the appropriate repositories?

Alessio Fabiani wrote:

The same here!!

On 7/26/06, *Saul Farber* <Saul.Farber@anonymised.com <mailto:Saul.Farber@anonymised.com>> wrote:

    Hey all,

    I've successfully built an up-to-date geotools-2.2.x branch (currently
    RC5). Maven is very cool.

    I've also successfully built an up-to-date geoserver trunk.

    I then went to deploy my geoserver war file, and got the following
    exception when deploying it inside Tomcat:

    ...
    java.lang.IllegalArgumentException:
    log4j,openmap,postgis,jts,junitperf,junit,postgresql-Extension-Name
    ...

    I narrowed it down to the fact that the MANIFEST.MF inside the wkb4j jar
    file that's hosted at both maven.geotools.fr
    <http://maven.geotools.fr> (seems to be the one pulled
    from gt-trunk) and at http://lists.refractions.net/m2
    <http://lists.refractions.net/m2&gt; (seems to be the
    one pulled from gt-2.2.x) includes the line:

    *Extension-List: log4j,openmap,postgis,jts,junitperf,junit,postgresql*

     From what I understand from here:

    http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html

    and here:

    http://java.sun.com/j2se/1.5.0/docs/guide/extensions/versioning.html
    <http://java.sun.com/j2se/1.5.0/docs/guide/extensions/versioning.html&gt;

    this should instead read:

    *Extension-List: log4j openmap postgis jts junitperf junit postgresql*

    (spaces instead of commas).

    However, when I rebuilt the jar with exactly that change to the
    Extension-List attribute, I got a silent error from Tomcat (even worse).

    This copy of wkb4j has been around for a long time (I verified that the
    same problems were in the MANIFEST.MF file in the version released on
    sourceforge in 2003), so I can't imagine I'm the first person to run
    across this.

    Anyone else having this problem, or is it confined to
    linux+tomcat+java 1.5?

    --saul

    -------------------------------------------------------------------------

    Take Surveys. Earn Cash. Influence the Future of IT
    Join SourceForge.net's Techsay panel and you'll get the chance to
    share your
    opinions on IT & business topics through brief surveys -- and earn cash
    http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
    <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV&gt;

    _______________________________________________
    Geoserver-devel mailing list
    Geoserver-devel@lists.sourceforge.net
    <mailto:Geoserver-devel@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
---------------------------------------------------------
Alessio Fabiani
Software Engineer

http://afabiani.wordpress.com

---------------------------------------------------------

------------------------------------------------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

!DSPAM:1003,44c723b4295631410093335!

------------------------------------------------------------------------

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:1003,44c723b4295631410093335!

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

!DSPAM:1004,44c7ad9a18291194215290!

------------------------------------------------------------------------

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:1004,44c7ad9a18291194215290!

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com