× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Are you running this application in an environment with multiple
classloaders, such as WebSphere or Tomcat?

If so, there is a problem in PCML fixed in JTOpen 4.0, where by the PCML
runtime tries to load the XML using the class loader from which it was
loaded, as opposed to the application class loader.

So, if Jt400 is loaded by the System class loader, and your code is being
loaded by WebSphere/Tomcat, it is the System class loader's CLASSPATH that
is looked at.  Putting the file in a location seen by that CLASSPATH is
your only workaround.

Mark



      To:   java400-l@xxxxxxxxxxxx
      cc:
      bcc:
      Subject:    Re: PCML problem
"David Gibbs" <david@xxxxxxxxxxxx>
Sent by: java400-l-bounces@xxxxxxxxxxxx
05/15/2003 02:03 PM
Please respond to Java Programming on and around the iSeries / AS400
<font size=-1></font>





















"Hall, Philip" <phall@xxxxxxxx> wrote in message
news:0AB647D29447FA4C818A8EE43B1F4FA301EC0D19@xxxxxxxxxxxxxxxxxxxx
> > private static final String IMIDE_pcml =
> > "'com.midrange.model.UTILITY";
> I'll assume the extra ' was a typo...

Good assumption.

> Is the com.midrange.model.UTILITY resource a real object or just a long
string containing the XML ?

It's a real resource ... a text file containing exactly the XML I included
in the message.  The text file is in the classpath along side other classes
that the calling class references.

david


_______________________________________________
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.








As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.