From: | joshualross at gmail(dot)com (Joshua Ross) |
---|---|
To: | |
Subject: | [Pljava-dev] Deployment Descriptor Problem |
Date: | 2006-10-09 15:18:01 |
Message-ID: | 341b9b540610090818w1046f69ct664ca03d8c85dbab@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pljava-dev |
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>
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Hallgren | 2006-10-10 08:15:29 | [Pljava-dev] Deployment Descriptor Problem |
Previous Message | Markus Schaber | 2006-10-09 06:44:28 | [Pljava-dev] Deployment Descriptor Problem |