|
Ashish,Could you try one more thing for me please. Could you try capitalizing the .PCML in your first cut of the code ? I think that might work too/
Pillai
And one more important thing i found out that, it cannot be "pcml" but has to be "PCML", capital for the class loaded to find it Thanx for all the help Ashish --- Ashish Kulkarni <kulkarni_ash1312@xxxxxxxxx> wrote:Hi i have tried that also, it does not work Ashish --- Marshall Dunbar/DPS <marshall@xxxxxxxxxxx> wrote:There is a constructor that takes a classloader, public ProgramCallDocument(AS400 sys, java.lang.StringdocName,java.lang.ClassLoader loader) throws PcmlException I believe the problem Ashish is having is becausethe default classloader for resources is different than the classloaderusedfor loading classes for web app. So maybe something like this wouldwork:pcml = new ProgramCallDocument(as400, "PU049B", this.getClass().getClassLoader());=== Marshall Dunbar DPS, Inc. marshall@xxxxxxxxxxx ===="albartell" <albartell@xxxxxxxxx> Sent by: java400-l-bounces@xxxxxxxxxxxx08/18/2005 03:22 PM Please respond to Java Programming on and around the iSeries / AS400<java400-l@xxxxxxxxxxxx> To "'Java Programming on and around the iSeries /AS400'" <java400-l@xxxxxxxxxxxx>cc Subject RE: where do i keep PCML files in J2ee application running on tomcat I don't have the JavaDoc in front of me, but does the ProgramCallDocument constructor have an overloaded constructor toacceptan InputStream object?That would make this a lot easier. Below is how Iacquire resources while inan application server (i.e. Tomcat). Then youcoulddictate exactly where the PCML resided without having to worry. InputStream inStream =ResourceControl.getAsInputStream("/com/mowyourlawn/uitext/fieldlabel.properties"); ... public class ResourceControl { public static InputStreamgetAsInputStream(String packageResource) {returnResourceControl.class.getResourceAsStream(packageResource);} }HTH, Aaron Bartell -----Original Message-----From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx]On Behalf Of Ashish Kulkarni Sent: Thursday, August 18, 2005 1:33 PM To: Java Programming on and around the iSeries / AS400 Subject: Re: where do i keep PCML files in J2ee application running on tomcat Hi i tried pcml = new ProgramCallDocument(as400, "PU049B.pcml"); and have PCML under WEB-INF/classes/ but still does not work --- Narayanan R Pillai <strqst400@xxxxxxxxx>wrote:default constructor andWe are running under Tomcat 5.0 and we use theplace the pcml documentthen the fully qualified name of the pcml file. ie pcml = new ProgramCallDocument(); pcml.setDocument( "com.example.document.DocumentName.pcml" );//in WEB-INF/classes/com/example/document/ in that fashion. And it seems to work. Pillai Ashish Kulkarni wrote:Hi just PU049B works in websphere applicationserver,butnot in tomcat, i have never tried Pu049B.pcmlinthe constructorAshish --- Narayanan R Pillai <strqst400@xxxxxxxxx>wrote:ProgramCallDocumentDon't you have to say PU049B.pcml in the newconstructor ? Pillai Ashish Kulkarni wrote:Hi The PCML file in MY IDE where underWEB-INF/classes/folder here the structure of how it looks in tomcatC:\Tomcat5.0.28\webapps\approvals630001\WEB-INF\classes\PU049B.PCMLand the jar file is also under classes folder here is what i do in my code ProgramCallDocument pcml = new ProgramCallDocument(as400, "PU049B"); booleanb=pcml.callProgram("PU049B"); and here is what i defined in my PCML file<program name="PU049B"application running onpath="/QSYS.LIB/%LIBL%.lib/PU049B.PGM"> Regards Ashish --- albartell <albartell@xxxxxxxxx> wrote:Can you post some code? Where was the PCMLlocatedwithin your IDE before,in a package or the WebRoot folder?-----Original Message-----From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx]On Behalf Of Ashish Kulkarni Sent: Thursday, August 18, 2005 7:58 AM To: java400-l@xxxxxxxxxxxx Subject: where do i keep PCML files in J2eetomcat Hi we have a web application where we callRPGLEprograms from javaWEB-INF\classes folder in my webusing PCML. I have all the PCML files underapplication server, butapplication, IT works fine under webspherein tomcat i get PCML not found error, so imoved the PCMLfileto /<tomcatroot>/common/classes/ folder, isthereawayto access PCML filesfrom WEB-INF/classes folder in tomcatinstead.Ashish____________________________________________________Start your day with Yahoo! - make it yourhomepagehttp://www.yahoo.com/r/hs -- This is the Java Programming on and aroundtheiSeries / AS400(JAVA400-L) mailing list To post a messageemail:unsubscribe, or change listJAVA400-L@xxxxxxxxxxxx To subscribe,Before posting, pleaseoptions, visit:http://lists.midrange.com/mailman/listinfo/java400-lor email: JAVA400-L-request@xxxxxxxxxxxxtake a moment to review the archives at http://archive.midrange.com/java400-l.-- This is the Java Programming on and aroundtheiSeries / AS400email:(JAVA400-L) mailing list To post a messageJAVA400-L@xxxxxxxxxxxx To subscribe,unsubscribe, or change listBefore posting, pleaseoptions,visit:http://lists.midrange.com/mailman/listinfo/java400-lor email: JAVA400-L-request@xxxxxxxxxxxxtake a moment to reviewthearchives at http://archive.midrange.com/java400-l.____________________________________________________Start your day with Yahoo! - make it yourhomeiSeries / AS400pagehttp://www.yahoo.com/r/hs-- This is the Java Programming on and around theemail:(JAVA400-L) mailing list To post a messageunsubscribe, or change listJAVA400-L@xxxxxxxxxxxx To subscribe,options, visit:http://lists.midrange.com/mailman/listinfo/java400-lor email: JAVA400-L-request@xxxxxxxxxxxxBeforeposting, please takeemail:a moment to review the archives at http://archive.midrange.com/java400-l.__________________________________________________iSeries / AS400Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spamprotection aroundhttp://mail.yahoo.com-- This is the Java Programming on and around the(JAVA400-L) mailing list To post a messageJAVA400-L@xxxxxxxxxxxx To subscribe,unsubscribe,or change listoptions, visit:http://lists.midrange.com/mailman/listinfo/java400-lposting, please take aor email: JAVA400-L-request@xxxxxxxxxxxx Beforemoment to review the archives at http://archive.midrange.com/java400-l.A$HI$H____________________________________________________Start your day with Yahoo! - make it your homepagehttp://www.yahoo.com/r/hs-- This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit:http://lists.midrange.com/mailman/listinfo/java400-lor email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l. -- This is the Java Programming on and around theiSeries / AS400 (JAVA400-L) mailing listTo post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit:http://lists.midrange.com/mailman/listinfo/java400-lor email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l. -- This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit:http://lists.midrange.com/mailman/listinfo/java400-lor email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spamprotection around http://mail.yahoo.com --This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/java400-l or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.____________________________________________________Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.