agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] Deployment Descriptor Problem
Date: Mon, 9 Oct 2006 11:18:01 -0400
Message-ID: <341b9b540610090818w1046f69ct664ca03d8c85dbab@mail.gmail.com> (raw)
In-Reply-To: <4529EFCC.3020309@logix-tt.com>
References: <341b9b540610061244h263a4476rd192479c475645ad@mail.gmail.com>
	<341b9b540610061248x222a42cg82fe7c15db14cb1b@mail.gmail.com>
	<4529EE42.2090207@logix-tt.com>
	<4529EFCC.3020309@logix-tt.com>

Hi Markus,
     Thanks for the help and suggestions!

Ok, changed my mainfest to:
-------------------------------------------------------------
> cat mainClass
Mainifest-Version: 1.0

Name: deployment/VinDecoder.ddr
SQLJDeploymentDescriptor: TRUE
Main-Class: VinDecoderTest


I tested this and it failed to read/execute my DeploymentDescriptor file.
So I started double checking some things and I found that if I extract the
manifest from the JAR it seems Java automatically puts those headers into
the manifest during packaging:
-------------------------------------------------------------
> jar xvf VinDecoder.jar META-INF/MANIFEST.MF
 inflated: META-INF/MANIFEST.MF
> cat META-INF/MANIFEST.MF
Manifest-Version: 1.0
Created-By: 1.5.0_07 (Sun Microsystems Inc.)
Main-Class: VinDecoderTest
SQLJDeploymentDescriptor: TRUE
Mainifest-Version: 1.0
Name: deployment/VinDecoder.ddr


What isn't very good here is that the order in which the Name and
SQLJDeploymentDescriptor are listed.  So I updated the manifest in the file
to be like this(including blank line at the end of the file):
------------------------------------------------------------------------
Manifest-Version: 1.0
Created-By: 1.5.0_07 (Sun Microsystems Inc.)
Main-Class: VinDecoderTest
SQLJDeploymentDescriptor: TRUE
Name: deployment/VinDecoder.ddr


And then updated the manifest in the jar file:
------------------------------------------------------------------------
> jar uvmf META-INF/MANIFEST.MF VinDecoder.jar
updated manifest


This still failed to correctly read/execute my DeploymentDescriptor file.
:(

I tried several different variations on the manifest file and could not get
this to work.  Help!?

Thanks,
-Joshua-




On 10/9/06, Markus Schaber <schabi at logix-tt.com> wrote:
>
> Hi, Josh,
>
> Markus Schaber wrote:
> > When looking at the examples.jar built with pljava, it looks like this:
>
> It seems that my mailer has somehow broken the linefeeds, the corrected
> version is here:
>
> > ----
> > Manifest-Version: 1.0
> >
> > Name: deployment/examples.ddr
> > SQLJDeploymentDescriptor: TRUE
> > ----
>
>
>
> --
> Markus Schaber | Logical Tracking&Tracing International AG
> Dipl. Inf.     | Software Development GIS
>
> Fight against software patents in Europe! www.ffii.org
> www.nosoftwarepatents.org
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20061009/d6ec384b/attachment.html;



view thread (9+ messages)  latest in thread

Message-ID: <341b9b540610090818w1046f69ct664ca03d8c85dbab@mail.gmail.com>
Permalink:  ../341b9b540610090818w1046f69ct664ca03d8c85dbab@mail.gmail.com/
Also on:    postgresql.org/message-id/341b9b540610090818w1046f69ct664ca03d8c85dbab@mail.gmail.com

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pljava-dev@postgresql.org
  Subject: Re: [Pljava-dev] Deployment Descriptor Problem
  In-Reply-To: <341b9b540610090818w1046f69ct664ca03d8c85dbab@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox