dbXML-Core-1.0b4.zip
j2sdk-1_3_1_02-win.exe
do i require anything else to start the server like u did?
Bcoz This is my output:
Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp.
C:\>cd dbxml-core
C:\dbXML-Core>startup
C:\dbXML-Core>set JAVA_HOME=C:\jdk1.3.1_02
C:\dbXML-Core>set DBXML_HOME=C:\dbXML-Core
C:\dbXML-Core>set PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\dbXM
L-Core\bin;C:\jdk1.3.1_02\bin
C:\dbXML-Core>set CLASSPATH=.;C\dbXML-Core\dbXML.jar
Then it stops... realli had no idea why...
From: "Miguel Angel Urrutia Soler" <[EMAIL PROTECTED]> Reply-To: [email protected] To: <[email protected]> Subject: Re: Newbie Date: Thu, 31 Jan 2002 02:08:14 -0600
Ok, i run the startup.bat and the example just expanded the zip file and recompiling with "ant" and "ant examples" the result was the same: I modified the startup.bat file like you as follow: set JAVA_HOME=C:\jdk1.3.1_02 <--- i fixed the jdk3.3_02 path... check yours set DBXML_HOME=c:\dbXML-Core set PATH=%PATH%;%DBXML_HOME%\bin;%JAVA_HOME%\bin set CLASSPATH=.;C:\dbXML-Core\dbXML.jar <--- classpath just with this line nothing more necessary...
@echo off ..... etc, etc same---
after run startup.bat from cmd session... the output should be like this:
Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp.
C:\>cd dbxml-core
C:\dbXML-Core>startup
C:\dbXML-Core>set JAVA_HOME=C:\jdk1.3.1_02
C:\dbXML-Core>set DBXML_HOME=c:\dbXML-Core
C:\dbXML-Core>set
PATH=.;C:\dbXML-Core\Bin;C:\jdk1.3.1_02\Bin;C:\Tcl\bin;C:\WINN
T\system32;C:\WINNT;C:\WINNT\System32\Wbem;D:\Program Files\Microsoft Visual
Stu
dio\Common\Tools\WinNT;D:\Program Files\Microsoft Visual
Studio\Common\MSDev98\B
in;D:\Program Files\Microsoft Visual Studio\Common\Tools;D:\Program
Files\Micros
oft Visual Studio\VC98\bin;c:\dbXML-Core\bin;C:\jdk1.3.1_02\bin
C:\dbXML-Core>set CLASSPATH=.;C:\dbXML-Core\dbXML.jar java -classpath ".;C:\dbXML-Core\dbXML.jar;\config;c:\dbXML-Core\java\lib\ant-1_ 3.jar;c:\dbXML-Core\java\lib\dbXML.jar;c:\dbXML-Core\java\lib\examples.jar;c :\db XML-Core\java\lib\infozone-lexus.jar;c:\dbXML-Core\java\lib\infozone-tools.j ar;c :\dbXML-Core\java\lib\juggernaut-1.0.jar;c:\dbXML-Core\java\lib\junit-3_7.ja r;c: \dbXML-Core\java\lib\openorb-1.2.0.jar;c:\dbXML-Core\java\lib\openorb_tools- 1.2. 0.jar;c:\dbXML-Core\java\lib\servlet.jar;c:\dbXML-Core\java\lib\xalan-2.0.1. jar; c:\dbXML-Core\java\lib\xerces-1.4.3.jar;c:\dbXML-Core\java\lib\xmldb-sdk.jar ;c:\ dbXML-Core\java\lib\xmldb.jar;C:\jdk1.3.1_02\lib\tools.jar" -noverify org.dbxml. core.server.dbXML c:\dbXML-Core\config\system.xml
dbXML 1.0b4 (Mustard)
Database: 'db' initializing Script: 'GET' added to script storage Service: 'db' started Service: 'GopherServer' started @ gopher://mike:4070/ Service: 'HTTPServer' started @ http://mike:4080/ DEBUG> Index Creation: test DEBUG> Index Complete: test DEBUG> Populated Indexes: 70ms Service: 'APIService' started
Server Running
NOW the server it's running, from another cmd session run the example... the
output should be as:
(if these doesn't work, check your paths and the message that you receive
after run the startup... and mail those messages)
Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp.
C:\dbXML-Core\java\examples\api>run org.dbxml.examples.APIExample Database Name db Document Key: test Retrieving Document using getResource test <?xml version="1.0"?> <test>Hello</test> Retrieving Documents using a query. <?xml version="1.0"?> <test xmlns:src="http://www.dbxml.org/Query" src:col="/db/root/ocs" src:key="tes t">Hello</test>
----- Original Message ----- From: "Ng Chee Keong" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, January 31, 2002 1:08 AM Subject: Re: Newbie
> I would like Thanx Miguel Angel Urrutia Soler for replying to my msg so
> soon. I appreciate that.
>
> Hmm... i actually did all the Classpath and Path settings in the
startup.bat
> only and not the control panels, which means i did nothing to the control
> panels. When i startup in the Dos-prompt it juz runs the settins i wrote,
i
> had no idea if its right, but when i try to build an example shown in the
> installation guide on www.xml.com it worked.
>
> I'm not sure if i'm doing the correct thing, please point it out to me how
> the correct way should be THANK U!!!
>
> >From: "" <[EMAIL PROTECTED]>
> >Reply-To: [email protected]
> >To: <[email protected]>
> >Subject: Re: Newbie
> >Date: Thu, 31 Jan 2002 00:30:24 -0600
> >
> >did you run startup.bat in another cmd sesion and did you got the server
> >running message?
> >
> >BTW if you write %DBXML_HOME% in CLASSPATH variable from System
properties
> >in the control panel the variable doesn't expanded correctly in a cmd
> >session maybe this happended too if you edit so the startup.bat file...
> >check it... another microsoft gift...
> >
> >
> >Miguel Angel Urrutia Soler
> >
> >----- Original Message -----
> >From: "Ng Chee Keong" <[EMAIL PROTECTED]>
> >To: <[email protected]>
> >Sent: Wednesday, January 30, 2002 9:21 PM
> >Subject: Newbie
> >
> >
> > > Hi to all here in the forum,
> > >
> > > I'm very new to the dbXML and is currently studying on dbXML.
> > > I had read through the installation document for dbXML on the
> >www.xml.com.
> > > I'm using a windows 2K server and checked that i had all the jar
files.
> >I
> > > did the following settings to the
> > > C:\dbXML-Core>edit startup.bat:
> > >
> > > set JAVA_HOME=C:\jdk.3.3_02
> > > set DBXML_HOME=c:\dbXML-Core
> > > set PATH=%PATH%;%DBXML_HOME%\bin;%JAVA_HOME%\bin
> > >
> > > set
> > >
>
>CLASSPATH=%CLASSPATH%;%DBXML_HOME%\java\lib\servlet.jar;%DBXML_HOME%\java\l
i
>
>b\dbXML.jar;%DBXML_HOME%\java\lib\xmldb.jar;%DBXML_HOME%\java\lib\juggernau
t
>
>-1.0.jar;%DBXML_HOME%\java\lib\openorb-1.2.0.jar;%DBXML_HOME%\java\lib\xerc
e
>
>s-1.3.0.jar;%DBXML_HOME%\java\lib\xalan-2.0.1.jar;%DBXML_HOME%\java\lib\ant
-
>
>1_3.jar;%DBXML_HOME%\java\lib\examples.jar;%DBXML_HOME%\java\lib\xmldb-sdk.
j
> >ar;%JAVA_HOME%\lib\tools.jar
> > >
> > > Can anyone tell me if its wrong... i'm very unclear abt it.
> > >
> > > Then i continued to startup and build the examples
> > > (using "ant examples") Build Successful
> > > But when i try to do a
> > > C:\dbXML-Core\java\examples\api>run org.dbxml.examples.APIExample
> > > The Following error occurs...
> > >
> > > ERROR : org.xmldb.api.base.XMLDBException: A connection to the
Database
> > > instance 'db' could not be created.
> > > Error: Connection refused: connect org.xmldb.api.base.XMLDBException:
A
> > > connection to the Database instance 'db' could not be created.
> > > Error: Connection refused: connect
> > > at
> >org.dbxml.client.xmldb.DatabaseImpl.init(DatabaseImpl.java:378)
> > > at
> > >
org.dbxml.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:197)
> > > at
> > > org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:194)
> > > at
> > > org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:157)
> > > at org.dbxml.examples.APIExample.main(APIExample.java:49)
> > >
> > > Could anyone tell me wat i miss out or did wrongly... thank u...
> > >
> > > _________________________________________________________________
> > > Send and receive Hotmail on your mobile device: http://mobile.msn.com
> > >
> > >
>
>
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
_________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com
