Hi Emile, The datasource file looks okay. Maybe the datasource file was not imported into the cloud? The import only happens when an application is (re)deployed into MMBase. When MMBase starts with an empty database it will deploy all applications under config/applications with the aut-deploy attribute to true. With a filled database, MMBase detects (by the versions table) that the application is already deployed and won't import the datasources again.
The numbers in the datasource files are not cloud (database) node numbers. The syncnodes table is used to sync these numbers with the cloud (database) node numbers. The number you choose in the datasource file has to be unique in all the datasource files with the same exportsource. The node in the datasource file will not be imported when the node is already present in the syncnodes table. Some solutions to let MMBase import the datasources. 1. Delete the node in MMBase with the editors, change the version attribute in the application.xml file and reboot. 2. Delete the node in MMBase with the editors, delete the record from the versions table and reboot. 3. clear the database and reboot. You have to delete the node in the editors to delete the records in the syncnodes table. I use option 3 a lot when I develop a new application. The application will just redeploy when MMBase starts. The only thing you have to make sure that your datasource and relationsource files will insert the test data again. Nico -------------------------------------------------------- Sure it's user-friendly...if you know what you're doing. > -----Oorspronkelijk bericht----- > Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Namens Emile > Verzonden: zaterdag 17 april 2004 21:48 > Aan: [EMAIL PROTECTED] > Onderwerp: Re: org.mmbase.bridge.NotFoundException > > Hi Henk > > thanks for the reply. That's the problem really - I thought > I had created the default ... in > WEB-INF\config\applications\Machinery\machines.xml, but > apparently this is not the case. Is there somewhere else I > should be creating it? > > the xml content: > <?xml version="1.0" encoding="utf-8"?> > <machines exportsource="mmbase://www.mmbase.org/mmexamples/Machinery" > timestamp="20020516170724"> > <node number="9995" owner="system" alias="default.machines"> > .... etc. > > Regards > Emile > > ----- Original Message ----- > From: "Henk Hangyi" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, April 17, 2004 4:14 AM > Subject: RE: org.mmbase.bridge.NotFoundException > > > > Hi Emile, > > > > In your JSP code there is probably something like <mm:node > > number="default.machines"> .... </mm:node> and there is no > object in > > your cloud with the object alias "default.machines". If you > create a > > node with that alias the error will probably disappear. > > > > Kind regards, Henk. > > > > T. +31-(0)6-29054903 > > E. [EMAIL PROTECTED] > > I. http://www.mmatch.nl > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > > > Behalf Of Emile > > > Sent: Saturday, April 17, 2004 9:16 PM > > > To: [EMAIL PROTECTED] > > > Subject: org.mmbase.bridge.NotFoundException > > > > > > > > > Hi All > > > > > > Having copied and pasted the mags object into a "machines" > > > object, I get the > > > folowing error: > > > Something went wrong while getting node with number > > > 'default.machines': Node > > > not found !! (key = 'default.machines') > > > > > > I've created the default object in - > > > WEB-INF\config\applications\Machinery > > > as machines.xml. I created it all by hand and had to guess a new > > > node number, so created on from the ether, randomly. > > > > > > Where have I gone wrong? > > > > > > Regards > > > Emile > > > > > > > > > > > > > > > > > > > > > >
