473,769 Members | 7,584 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Xindice / Java problem

Hallo,

please excuse if I violate any group etiquette etc. but I am not very
experienced both regarding the usenet and your group.

I have installed Xindice, integrated into Tomcat, and can use it via the
command line tools provided without problems. Yet when I try to access
the database within a Java program I get the following error:

trying to register database
Exception in thread "main" java.lang.NoCla ssDefFoundError :
org/apache/xmlrpc/XmlRpcException
at
org.apache.xind ice.client.xmld b.xmlrpc.Databa seImpl.getColle ction(DatabaseI mpl.java:354)
at
org.apache.xind ice.client.xmld b.DatabaseImpl. getCollection(D atabaseImpl.jav a:137)
at org.xmldb.api.D atabaseManager. getCollection(U nknown Source)
at org.xmldb.api.D atabaseManager. getCollection(U nknown Source)
at
com.plaengine.r epository.util. XmlDbBootstrap. createCollectio n(XmlDbBootstra p.java:55)
at
com.plaengine.r epository.util. XmlDbBootstrap. main(XmlDbBoots trap.java:87)

The class XmlDbBootstrap uses code from the Xindice Website programming
tutorial which should create a new collection within the standard root
collection 'db'. The relevant piece of code is:

String driver = "org.apache.xin dice.client.xml db.DatabaseImpl ";
Class c = Class.forName(d river);
Database database = (Database)
c.newInstance() ;DatabaseManage r.registerDatab ase(database);
String uri = "xmldb:xind ice://localhost:8080/db";
col = DatabaseManager .getCollection( uri);

The last line is exactly the point where I get the exception / crash and
I simply cannot figure out where the problem is. When I am using the
exact URI from the command line everything works out flawlessly.
Are there any known bugs or pitfalls regarding Xindice or the xml:db
interface, or can you think of anything I have done wrong?
Any help is more than welcome.

Thanks in advance,
Christian

For software versions, I have installed:
OS: Mac OS 10.3 (Panther)
Tomcat 5.0.27
Xindice 1.1b4

If you reply to me directly, please delete the 'NOSPAM.' from my adress.
Jul 20 '05 #1
1 2469
Christian W. Guenther wrote:
Exception in thread "main" java.lang.NoCla ssDefFoundError :
org/apache/xmlrpc/XmlRpcException interface, or can you think of anything I have done wrong?
Any help is more than welcome.


Learn to interprete Error Messages ;o) Thats the only importend issue.

java.lang.NoCla ssDefFoundError => The Classloader was not able to find
one required class. In detail: he was not able to find
org.apache.xmlr pc.XmlRpcExcept ion

So just add the required class to the classpath. In most cases such
classes will be stored inside jar files. It is necessary to add such jar
files explicitly.

for example:
-cp ./xmlrpc.jar

hth
cybi
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1653
by: Ren, Ziheng | last post by:
Hi, i have already found a xindice based java gui. but it appears always a big problem from the xupdate functions. If i tip some commands in and try to execute them, it will appear an exception, this result from the example http://xml.apache.org/xindice/guide-developer.html#N1025F are extraordinarily similar: *********************** Exception ************************ org.apache.xindice.client.corba.db.APIException:...
0
1197
by: toplure | last post by:
Hi, I have few days of experince with Xindice 1.1b and I am sure my problem is pretty much as basic as they come but I cannot work it out, so I hope someone will take pity on me - please! I have deployed Xindice 1.1b as the xindice docs recommended. But, when I list the collections by using command line tool as: xindice lc -c /db I get the message: ERROR: Collections not found! By the way, my OS is windows 2000 server, I'm using tomcat...
0
1446
by: Richard | last post by:
Hello! I have 2 questions regarding Xindice (http://xml.apache.org/xindice/): 1) Does anyone know how to set the encoding??? Normaly im using encoding="iso-8859-1" in my xml-files, this makes it possible to use swedish characters. The problem is that every time im pulling someting out from Xindice the encoding is lost, and all my swedish characters are turned to crap.
1
9651
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10048
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3963
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.