users@glassfish.java.net

Re: Using optional packages in client

From: Markus KARG <karg_at_quipsy.de>
Date: Sun, 20 Apr 2008 10:24:02 +0200

Tim,

once more, thanks a lot! To sum up both threads, and to verify that I
have correctly understood your brilliant idea, can you confirm that this
is what you want me to do:

* Create a Workaround.jar file that contains nothing but a
META-INF/MANIFEST.MF file.
* The META-INF/MANIFEST.MF file contains the declaration of
"WorkaroundExtension".
* The META-INF/MANIFEST.MF file contains a Class-Path: attribute that
lists all the JARs of JDIC and JMF that I can found out to be needed (in
case if JDIC: jdic.jar and jdic_stub.jar, in case of JMF at least
jmf.jar plus possibly a list of currently unknown JARs).
* My Java EE Client Application JAR's META-INF/MANIFEST.MF shall
reference the "WorkaroundExtension" as a needed optional package.
* Put the Workaround.jar in JRE/lib/ext manually on each client (Thanks
god that I know all the workplaces and my application is not a public
place with thousand of anoynmous users).

Right?

This sounds like a standards compliant, vendor- and platform neutral, in
short: brilliant, solution to my problems (as long as I can find out
what JARs JMF is really installing into my system, besides jmf.jar)! You
really are an inexhaustable source of "bad" tricks. ;-)

I will try it out in the next hours and will post the results. I think
it will be interesting for other users, too.

BTW, do you have any idea whom to write to suggest putting correct
manifests into JDIC and JMF? Seems Sun lost interest in both projects,
since I just cannot find out a current email address that is not
returned by Sun's Mail Server... :-(

Tim Quinn schrieb:
> Would my suggestion from the other (JMF) thread work here as well -
> creating your own "wrapper" JAR that does declare an extension, and
> your JAR's Class-Path would refer to the JDIC JAR?
>
> It is a current limitation of the automatic Java Web Start support
> that GlassFish will not support selective native library downloads.
> Is it an option for you to create your own separate JNLP for
> installing the JDIC and/or JMF? I know that's not at all ideal, but
> it might part of the way of getting all this to work...
>
> - Tim
>
> Markus KARG wrote:
>> In fact, this not closed the thread: Still I do not know how to use
>> JDIC within my EAR. The problem is: JDIC is provided by Sun, but
>> somehow they "forgot" to add a MANIFEST.MF extension declaration.
>> Also, it is implemented a native DLL, so it cannot be bundled into
>> the EAR.
>>
>> So, dear Sun, how can I use your JDIC stuff with your GlassFish
>> stuff? ;-)
>>
>> Thanks
>> Markus
>>
>> glassfish_at_javadesktop.org schrieb:
>>> Just to close out this thread (also in the thread on the users
>>> mailing list) it turns out that the JDIC JAR's manifest does not
>>> declare the JAR to be an extension library, so the application
>>> Markus is building cannot refer to it that way. I assume the same
>>> is true of the other JARs he was having trouble with.
>>>
>>> The JavaDoc for the Manifest class has a link to the manifest file
>>> format that explains in good detail how the extension library's
>>> manifest must look and how another JAR's manifest can refer to the
>>> extension.
>>>
>>> Thanks to Markus also for kindly opening an RFE issue
>>> https://glassfish.dev.java.net/issues/show_bug.cgi?id=4787
>>>
>>> for GlassFish to issue a clearer message in this situation.
>>> [Message sent by forum member 'tjquinn' (tjquinn)]
>>>
>>> http://forums.java.net/jive/thread.jspa?messageID=269755
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>
>>> From - Thu
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>


-- 
QUIPSY QUALITY GmbH & Co. KG
Ein Unternehmen der MES-Gruppe
Stuttgarter Strasse 23
D-75179 Pforzheim
Tel: 07231-9189-52
Fax: 07231-9189-59
www.quipsy.de
karg_at_quipsy.de
Registergericht Mannheim HRA 701214
Geschäftsführer: Nils Schroeder
Diese E-Mail enthält persönliche, vertrauliche und vor Weitergabe geschützte Informationen und ist ausschließlich für den vorgesehenen o.g. Empfänger (Adressaten) bestimmt. Falls Sie diese E-Mail versehentlich erhalten haben und nicht der vorgesehene Empfänger sind, bitten wir Sie, die E-Mail und deren Anhänge nicht aufzubewahren, nicht zu vervielfältigen, nicht zu nutzen und nicht weiterzugeben. Bitte informieren Sie uns als Absender über diesen Zustellungsfehler und löschen Sie die E-Mail.