Re: Couldn't load XMLC class

Jacob Kjome <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Hi Rajesh,

At 11:00 AM 11/7/2003 -0800, you wrote:
>Hi,
>I was using Barracuda 1.2.0 with xmlc2.2 in my applicaiton and everything 
>was working as expected. Yesterday I downlaoded the latest version of 
>Barracuda1.2.5 with xmlc2.2.3 and I am getting xmlc error - Couldn't load 
>XMLC class when I am trying to login into my applicaiton.
>I looks to me that I need to change some configuratioin file but I don't 
>know what to change and where.
>I will appreciate for your help.
>Thanks.
>Rajesh

Hmm...

When you say "1.2.5", do you actually mean post-1.2.5?  That is, latest 
CVS?  It seems so based on the stack trace.  In that case, I see the 
problem.  You were using a getDOM(String className) method.  That has been 
changed to getDOM(String docPath).  I'm guessing that you aren't intending 
to use dynamic loading (loading an XMLC document without having compiled it 
first).  Try changing your getDOM() call to this....

doc = DefaultDOMLoader.getGlobalInstance().getDOM(loginHTML.class);

Sorry about that change.  It is documented in the 
A_Changes_History.java.  I didn't figure many people were using 
getDOM(String className).  Apparently at list one person was :-(  However, 
the change made the interface much simpler and more clear.  I think you can 
count on it not changing again at this point.

Make sure to let me know if the above works for you.

Jake
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.