GoogleIt Mail IT Print IT PermaLinkDomino And Java On iSeries, or The Case Of The Missing JAR
11:57:16 PM

Not too long after I took my current position, I started lobbying to expand the official matrix of supported Domino versions and platforms that our product runs on. "Domino is Domino and the bulk of our code is Java" I said, but I always qualified it with "but nothing's guaranteed, and in fact the one thing I really would worry about is the JVM versions across different Domino versions and platforms."


I ran into a problem with varitions between Domino platforms for the first time last week, and indeed it is Java-related Actually, it's not really a JVM version problem per se as far as I can see. It's a problem of what is, or is not packaged with the JVM included in various Domino releases. Specifically at issue is the file jvm\lib\ext\mail.jar (or mailapi.jar... I've seen both, and I don't think it really matters what the file name is). This file is included with Domino releases on Windows, but it seems to be missing in Domino releases on Linux and on iSeries. I don't know about the other platforms. Haven't checked, yet.


The mailapi.jar file is a set of standard Sun Java classes in the javax.mail.* package. It contains a lot of useful classes for people who are dealing with SMTP messages, MIME, and SMTP addresses, and you might imagine that I could find some uses for it in an agent. From what I can gather, it is not a mandatory part of a Java implementation, so it's ok that it's omitted in some cases. But why, if it is there on Domino for Windows, is it not there on at least some of the other platforms?


I discovered that the file was not there on Linux when the latest version of an agent in our product, which I had been running successfully on several Windows servers, threw a "NoClassDefFound" error when I tried to run it on a Linux server. Solving this proved to be quite easy: just copy the jar file from the Windows server to the /lib/ext directory on the Linux server, and all was good. But then I got suspicious about what other platforms might not have this file. I sent a test agent to someone with access to an iSeries machine, and it threw the error. I contacted Kim Greene (whom many of you will know is a top-notch Domino on iSeries consultant) and she graciously agreed to check into it, and she not only confirmed that the file is not there, but also that simply copying the jar from Windows and dropping it in the equivalent directory on the iSeries filesystem (I couldn't tell you what the equivalent directory is, so don't ask!) did not make my test agent work. If even Kim, with the knowledge and contacts that she has, ends up stumped about why the problem exists and how to fix it on iSeries, then surely this is a Hard Problem!


Fortunately, I had a Plan B in my pocket. It was Plan B because, for various reasons, it would be a lot better if I could just take the code that had already passed QA on Windows and say that it works on iSeries if you just copy a file and put it in place X. That was Plan A, but it was not going to happen. Plan B was simple: just import mailapi.jar into a new Java Library in Domino Designer, add that Library to the Java project definition for the agent that uses the classes, remove the import directive for java.mail.*, and make all the references to the classes in the agent code use the explict path, and comple. And for good measure, remove the file from the local jvm\ext\lib directory so that you're absolutely sure that the classes are being resolved at compile time through the Java Library.

This page has been accessed 498 times. .
Comments :v

1. kerr11/14/2006 05:40:51 AM


Why do you need to replace the import statements with full class references? I've bundled third party jars in agents and in separate script libraries plenty of times and never had to do this. Have I missed something?

I'm also deeply curious as to my adding the jar to the lib/ext dir of the jvm on iSeries didn't work. Either it's a bug, an odd security setting or there are some crazy iSeries deployment hoops you need to jump through, because from a java perspective this should Just Work(TM).




2. Richard Schwartz11/14/2006 07:10:27 AM
Homepage: http://www.rhs.com/poweroftheschwartz


I just kind of assumed that the import would want to go to the filesystem and pull in the class -- but now that I think about it, import is really just a syntactic thing, not a directive to actually load the class, so that was probably a wrong assumption.




3. Ken Yee11/14/2006 04:33:30 PM
Homepage: http://www.keysolutions.com/blogs/kenyee.nsf


Did Kim bounce the iSeries server or at least the Domino server before checking the agent? That extensions directory is only read on initialization of the JVM, i.e., on Domino startup. The JVM on iSeries is more integrated into the OS (or used to be) so you might need to bounce the server to get it to see it.
Yep, had lots of those fun issues w/ pop3fido when I made it a Java server add-in...




4. Richard Schwartz11/14/2006 04:48:25 PM
Homepage: http://www.rhs.com/poweroftheschwartz


I don't know if she bounced it or not.




5. vesoftware11/05/2013 10:17:03 PM
Homepage: http://vesoftware.blogspot.com/2013/10/itupokercom-agen-poker-online-indonesia.html


Agen Bola Promo 100% SBOBET IBCBET Casino Poker Tangkas Online
http://vesoftware.blogspot.com/2013/10/agen-bola-promo-100-sbobet-ibcbet.html
ITUPOKER.COM AGEN POKER ONLINE INDONESIA TERPERCAYA
http://vesoftware.blogspot.com/2013/10/itupokercom-agen-poker-online-indonesia.html
alfaonline.com : Toko belanja online murah, Promo heboh jual barang hanya Rp 1,-
http://vesoftware.blogspot.com/2013/10/alfaonlinecom-toko-belanja-online-murah.html
BELAJAR SEO
http://balapseo.blogspot.com/




6. viagra09/20/2016 08:11:12 AM
Homepage: http://online9vpharmacy.com/



http://online9vpharmacy.com/ ,




7. chenyingying10/17/2016 12:10:24 AM


http://www.seattleseahawksjerseys.us.com
http://www.canadagooseoutlet.eu.com
http://www.louisvuittonoutletdeals.us.com
http://www.uggbootsuk.com.co
http://www.raybansunglasses.me.uk
http://www.cheap--nfljerseys.us.com
http://www.bostoncelticsjerseys.com
http://www.giuseppe-zanotti.us
http://www.louisvuittonoutlet.net.co
http://www.jordan4.net
http://www.coachfactoryoutletclearances.us.com
http://www.tomsshoesuk.org.uk
http://www.louisvuittonparis.fr
http://www.pradahandbags.net
http://www.ralphlaurenoutletuk.in.net
http://www.cartierwatches.in.net
http://www.nike-rosherun.in.net
http://www.raybanoutlet.net.co
http://www.cincinnatibengalsjerseys.us.com
http://www.michaelkorsoutlet-onlinestore.us.com
http://www.adidasshoes.net
http://www.outlet-celine.com
http://www.uggsoutlet.de.com
http://www.jordan13.org
http://www.adidasoutletshoes.com
http://www.uggsbootsstore.com
http://www.canadagoosejackets.com.co
http://www.miamiheatjerseys.us.com
http://www.michaelkors--outlet.us.org
http://www.coachfactoryoutletonline.com.co
http://www.coachfactory-outlet.in.net
http://www.cheapoakleysunglasses.net.co
http://www.montblanc-pens.name
http://www.uggsoutlet.gr.com
http://www.michael-kors-handbags.us.org
http://www.clevelandcavaliersjerseys.us.com
http://www.ralphlauren-outlet.net.co
http://www.uggbootssale.de.com
http://www.pradaoutlet.net.co
http://timberland.officialfree.net
http://www.airmaxssale.com
http://www.canada-gooseoutlet.name
http://www.uggssale.com.co
http://www.louisvuitton.nom.co
http://www.nfljerseyswholesales.us
http://www.toryburch-outlet.in.net
http://www.louboutinshoessale.com
http://www.ugg-store.co.uk
http://www.nikeoutletstore.us.com
http://www.coachoutletstoreonlineclearances.com.co
http://www.gucci-outlet.name
http://www.ralphlaurenclearance.in.net
http://www.monclerjackets.com.co
http://www.raybanssunglasses.com.co
http://www.louisvuitton-discount.com
http://www.oakleyvaultoutlet.in.net
http://www.aididasyeezy.org.uk
http://www.cheapburberryoutlet.name
http://www.hermesbagusa.com
http://www.nike-airmaxpascher.fr
http://www.oklahomacitythunderjerseys.us.com
http://www.katespade-handbags.eu.com
http://www.adidas-yeezy.us.com
http://www.get-louisvuittonoutlet.com
http://www.uggcanada.in.net
http://www.newenglandpatriotsjerseys.us.com
http://www.christianlouboutinoutlet.com.co
http://www.coachoutletstoreonlineclearances.us.org
http://www.louisvuittonoutlet.de.com
http://www.burberry-outlet.com.co
http://www.coachfactoryoutletonlinesale.us.com
http://www.supra-shoes.net
http://www.raybansunglassess.com.co
http://www.ralphlaurenoutletonline.com.co
http://www.louis-vuittonoutlet.com.co
http://www.niketrainers.uk
http://www.authenticlouisvuittonhandbags.us.com
http://www.rayban-sunglasses.com.co
http://www.louis-vuittonoutlet.us.com
http://www.abercrombiekidsoutlet.name
http://www.true-religionoutlet.net.co
http://www.cheaprolexforsale.com
http://www.ralphlaurenuk.com.co
http://www.michaelhandbagsoutlet.us.com
http://www.michael-korsoutlets.eu.com
http://www.louisvuitton.me
http://www.kevindurantshoes.name
http://www.abercrombieoutletonline.cc
http://www.michaelkorsoutletforsale.com
http://www.jordansforsale.in.net
http://www.sunglassesoakley.com.co
http://www.coachcanadaoutlet.com.co
http://www.oakley-sunglasses.net.co
http://www.pittsburghsteelersjerseys.us.com
http://www.christianlouboutinsale.me.uk
http://www.adidassuperstar.name
http://ugg.uggsstore.eu
http://www.ralph-lauren.me.uk
http://www.lebronjames-shoes.net
http://www.canadagoose.de.com
chenyingying20161017




8. chenjinyan11/22/2016 02:58:57 AM
Homepage: http://


http://timberland.officialfree.net
http://timberlandboots.hugeoff.net
http://www.adidasoriginals.in.net
http://www.adidas.in.net
http://www.adidassuperstar.name
http://www.airjordan-pascher.fr
http://www.beatsbydrdresolo.us
http://www.celine-outlet.us
http://www.cheap-jordans.us.com
http://www.cheapjordansshoes.in.net
http://www.cheap--nfljerseys.us.com
http://www.cheapoakleysunglasses.net.co
http://www.cheaprolexwatches.name
http://www.christianlouboutin.name
http://www.christianlouboutinoff.us
http://www.christianlouboutinoutlet.com
http://www.louboutin.us.com
http://www.coachoutletstoreonlineclearances.us.com
http://www.edhardyclothing.in.net
http://www.ghdhairstraighteners.com.co
http://www.gucci-outlet.net.co
http://www.gucci-outlet.org
http://www.insanityworkout.cc
http://www.instylercurlingiron.com
http://www.jordan13.org
http://www.jordan3.net
http://www.jordan4.net
http://www.jordan6.net
http://www.jordan8.net
http://www.jordanconcords.net
http://www.jordanretro.name
http://www.cheapjordansshoes.us.com
http://www.kevindurantshoes.name
http://www.kobebryantshoes.name
http://www.kobeshoes.org
http://www.lebronjames-shoes.name
http://www.lebronjames-shoes.net
http://www.louboutinfemme-pascher.fr
http://www.louboutinshoes.cc
http://www.louisvuitton-handbags.com.co
http://www.louisvuittonlvoutlet.us.com
http://www.louis-vuittonoutlet.us.com
http://www.louis-vuittonoutlets.us.org
http://www.montblanc.com.co
http://www.montblanc-pens.name
http://www.nike-airmax.me.uk
http://www.nike-rosherun.in.net
http://www.outlet-celine.com
http://www.pandorajewelry.name
http://www.pandorajewelry.net.co
http://www.ralphlaurenpolo.in.net
http://www.raybansunglasses.uk
http://www.retrojordans.name
http://www.rolexwatchesoutlet.us
http://www.todsoutlet.in.net
http://www.toms-shoes.cc
http://www.true-religionjeans.us.org
http://www.truereligion-jeans.us
http://www.vansshoes.name
http://www.ralphlauren-outlet.net.co
http://www.michaelkorsoutletclearance.us.org
http://www.cheaprolexforsale.com
http://www.jordanshoes.us.org
http://www.michaelkorsoutlet-store.us.org
http://www.tomsshoes-outlet.com
http://www.basketballshoes.name
http://www.replicawatches.name
http://www.coachfactoryoutletmall.us.com
http://www.asicsshoes.name
http://www.outletsmichaelkors.us.com
http://www.tomswedges.us
http://www.rolexwatchesforsale.name
http://www.katespade.eu.com
http://www.designerhandbags.us.org
http://www.michael-korsbags.us.com
http://www.sunglassesoakley.com.co
http://www.cheapraybansunglasses.net.co
http://www.fitflopssaleclearance.us.org
http://www.coachclearance.us.com
http://www.tomssale.in.net
http://www.fitflops.org
http://www.cheaptoryburchoutlet.com
http://www.nfljerseyswholesales.us
http://www.raybansunglasses.me.uk
http://www.hollisterclothing.net
http://www.cheapjordansforsale.us
http://www.supra-shoes.net
http://www.truereligionjeans-outlet.us.com
http://www.rayban-sunglasses.com.co
http://www.oakley-sunglasses.net.co
http://www.oakleys-sunglasses.us.org
http://www.juicy-couture.us
http://www.louisvuittonofficial.us.com
http://www.truereligion.net.co
http://www.louisvuittonoutletstores.us
http://www.truereligion-jeans.com.co
http://www.north-faceoutlet.net.co
http://www.adidasoutletstore.net
http://www.adidasshoes.net
http://www.nikeoutletstore.us.com
http://www.coachfactoryoutlet-onlinestore.us.com
http://www.michaelkorsoutletcanada.com.co
http://www.oakleysunglassess.com.co
http://www.raybansunglassess.com.co
http://www.ray-ban-sunglasses.com.co
http://www.coachcanadaoutlet.com.co
http://www.coachfactoryoutletclearances.us.com
http://www.cheapoakleysunglassess.com.co
http://www.ralphlaurenoutletonline.in.net
http://www.hermesbagusa.com
http://www.burberryoutlet.in.net
http://www.raybansunglassesoutlet.net.co
http://www.michaelkorsuk.com.co
http://www.louboutinshoessale.com
http://www.abercrombieandfitchoutlet.in.net
http://www.abercrombieoutletonline.cc
http://www.hollistercoclothing.com
http://www.raybansonsale.com.co
http://www.tomsshoesuk.org.uk
http://www.authenticlouisvuittonhandbags.us.com
http://www.toms.us.org
http://www.ralphlaurenoutletuk.in.net
http://www.outletmichaelkorshandbags.us.com
http://www.longchamp.us.com
http://www.oakleyvaultoutlet.in.net
http://www.uggoutletsale.in.net
http://www.pandorajewelry.in.net
http://www.uggbootaustralia.us.com
http://www.ugg.eu.com
http://www.niketrainers.uk
http://www.canadagooseuk.uk
http://www.cheapuggboots.org.uk
http://www.uggslippers.com.co
http://www.uggsboots.us.org
http://www.canadagoosejacketsoutlet.us.com
http://www.cheapuggsboots.us.com
http://www.adidastrainers.uk
http://www.ugguk.me.uk
http://www.moncler.me.uk
http://www.monclerjacketsuk.me.uk
http://www.christianlouboutin-paris.fr
http://www.raybanpascher.fr
http://www.montblancpen.us.com
http://www.fitflopsuk.me.uk
http://www.nba-jerseys.us.com
http://www.longchamp-sac.fr
http://www.moncler--paris.fr
http://www.canadagoose-pascher.fr
http://www.newyorkknicksjerseys.us.com
http://www.newenglandpatriotsjerseys.us.com
http://www.cincinnatibengalsjerseys.us.com
http://www.uggboots-onsale.us.org
http://www.uggbootscheap.us.com
http://www.uggs.me.uk
http://www.curry3.name
http://www.mbt.us.com
http://www.adidasnmd-shoes.us.com
http://www.fitflops.us.com
http://www.rolexwatches.us.com
http://www.christianlouboutin-pas-cher.fr
http://www.nhljerseys.org
http://www.niketn-pascher.fr
http://www.louis-vuitton-borse.it
http://www.uggsaustralia.it
http://www.sanantoniospursjerseys.us.com
http://www.oklahomacitythunderjerseys.us.com
http://www.losangelesclippersjerseys.com
http://www.uggsbootsoutlet.us.org
http://www.thenorthface.net.co
http://www.canadagoose.com.co
http://www.adidas-yeezy.us.com
http://www.adidas-nmd.co.uk
http://www.christianlouboutinsale.me.uk
http://www.redbottoms.org.uk
http://www.timberlandboots.net.co
http://www.mlbjerseys.org
http://www.uggs-pascher.fr
http://www.monclerpascherhomme.fr
http://www.ugg-italia.it
http://www.seattleseahawksjerseys.us.com
http://www.minnesotavikingsjerseys.us.com
http://www.goldenstatewarriorsjerseys.us.com
http://www.washingtonwizardsjerseys.com
http://www.true-religion.me.uk
http://www.aididasyeezy.org.uk
http://www.ralphlaurenclearance.in.net
http://www.rosherun.org
http://www.ugg-boots.fr
http://www.uggbootsparis.fr
http://www.nike-airmaxpascher.fr
http://www.nike--rosherun.fr
http://www.louisvuittonparis.fr
http://www.jordanfemmepascher.fr
http://www.dallasmavericksjerseys.com
http://www.denverbroncosjerseys.us.com
http://www.pittsburghsteelersjerseys.us.com
http://www.tommyhilfigeroutlet.us.org
http://www.hogan-scarpe.it
http://www.bostoncelticsjerseys.com
http://www.clevelandcavaliersjerseys.us.com
http://www.miamiheatjerseys.us.com
http://www.chicagobullsjerseys.com
http://www.seattleseahawksjersey.us.com
http://www.clarisonic.com.co
http://www.louisvuittonoutletonlineshop.com
http://www.louisvuitton.de.com
http://www.louisvuitton.nom.co
http://www.louisvuitton.me
http://www.officialmichaelkorsoutlet.us.com
http://www.oakleysunglasses-outlet.com.co
http://www.pradahandbags.net
http://www.pradaoutlet.net.co
http://www.gucci--outlet.com.co
http://www.gucci.me.uk
http://oakley.sunglassesonline.us.com
http://www.canadagooseoutletsale.us.com
http://www.adidasyeezy350.us.com
http://www.oakleystore.com.co
http://www.cheapraybans.us.org
http://www.raybanssunglasses.com.co
http://www.coachfactoryoutlet-online.eu.com
http://www.louboutinshoesoutlet.co.uk
http://www.nikeoutletstores.us.com
http://www.michaelkors--outlet.com.co
http://www.uggoutletonline.in.net
http://www.raybanoutlet.net.co
http://www.louisvuitton-discount.com
http://www.uggbootscanada.ca
http://www.uggcheap.us.com
http://www.oakleysunglassescanada.ca
http://www.jordansforsale.in.net
http://www.michaelkorshandbagsonsale.com
http://www.airmaxssale.com
http://uggs.uggaustralia.qc.com
http://www.coachoutletstoreonlinesale.us.com
http://www.tiffanyandco.nom.co
http://www.katespadehandbagsoutlet.us.com
http://www.chanelbags.in.net
http://www.michaelkorsoutletstores.us.org
http://www.tiffanyandcojewelry.com.co
http://www.katespadeoutlets.us.com
http://www.gucci-outlet.in.net
http://www.poloralphlaurenukonline.co.uk
http://www.giuseppe-zanotti.us.com
http://www.louis-vuittonoutlet.eu.com
http://www.michaelkorsoutletofficial.us.com
http://www.gucci-inc.com
http://www.mulberryuk.org.uk
http://www.chaneloutlet.in.net
http://www.discountuggboots.us.com
http://www.uggaustralia.us.org
http://www.mcmbags.com.co
http://www.nikeoutlet-online.com
http://www.michael--korsoutlet.us.com
http://www.coachfactoryoutlet-online.us.org
http://www.coachoutletofficial.us.com
http://www.michaelkors--outlet.us.com
http://www.katespade-outlet.net.co
http://www.nikefactoryoutlet.org
http://www.tomsshoes.us.org
http://www.hollister.in.net
http://www.abercrombiefitch.us.com
http://www.ray-banssunglasses.com.co
http://www.northface.us.com
http://www.poloralph-lauren.us.org
http://www.hollister-uk.org.uk
http://www.prada.us.org
http://www.hilfigeroutlet.in.net
http://www.louis--vuitton.us.org
http://www.burberry-outletonline.com.co
http://www.uggsclearance.us.org
http://www.uggclassic.us.com
http://www.ugg-canada.ca
http://www.ugg-bootsuk.co.uk
http://www.ugg-outlet.ca
http://www.uggsuk.org.uk
http://www.uggoutlet.org
http://www.uggsoutletcheap.us.com
http://www.uggoutletdiscount.us.com
http://www.outletslouisvuitton.us.com
http://www.louisvuitton-outlet.ca
http://www.louisvuittonhandbagsoutlet.us.org
http://www.coachoutletcheap.us.com
http://www.outletcanadagoose.com.co
http://www.canadagoosecanada.com.co
http://www.gooseoutlet.us.com
http://www.outletcanadagoose.name
http://www.canadagoosecanada.us.org
http://www.louis-vuitton.me.uk
http://www.coachoutletonlinesale.eu.com
http://www.coachfactoryoutlet-stores.us.org
http://www.uggsoutlet-online.us.com
http://www.uggoutlet-stores.us.com
http://www.uggsoutletsale.us.com
http://www.outlet-uggboots.us.com
http://www.coachhandbagsnew.us.com
http://www.cheapuggssale.us.com
http://www.canadagooseca.us.com
201611.22chenjinyan




Enter Comments^


Email addresses provided are not made available on this site.





You can use UUB Code in your posts.

[b]bold[/b]  [i]italic[/i]  [u]underline[/u]  [s]strikethrough[/s]

URL's will be automatically converted to Links


:-x :cry: :laugh: :-( :cool: :huh: :-) :angry: :-D ;-) :-p :grin: :rolleyes: :-\ :emb: :lips: :-o
bold italic underline Strikethrough





Remember me    

Monthly Archive
Responses Elsewhere



About The Schwartz

rss.jpg


All opinions expressed here are my own, and do not represent positions of my employer.