You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Justin Wall <Ju...@Wall.org> on 2002/05/29 09:29:13 UTC

class not found: javax/xml/parsers/DocumentBuilderFactory

	I've gotten the server installed at work on NT, but I'm having trouble 
here at home.  I'm getting a class not found error.  My enviroment 
variables are below the error.  I only have Xindice.jar in the 
classpath  Is there a FAQ for Xindice?

Thanks,

Justin


Exception in thread "main" java.lang.NoClassDefFoundError: 
javax/xml/parsers/DocumentBuilderFactory
         at org.apache.xindice.server.Kernel.<init>(Kernel.java:127)
         at org.apache.xindice.server.Kernel.<init>(Kernel.java:117)
         at org.apache.xindice.server.Xindice.main(Xindice.java:96)


C:\xindice>set
TMP=D:\WINDOWS\TEMP
TEMP=D:\WINDOWS\TEMP
PROMPT=$p$g
winbootdir=D:\WINDOWS
COMSPEC=C:\COMMAND.COM
PATH=C:\MOREAPPS\ULTRAE~1;D:\WINDOWS;D:\WINDOWS\COMMAND;C:\MSSQL7\BINN;D:\PROGRA
~1\ULTRAE~1;C:\JDK131\BIN;C:\XINDICE\BIN
JAVA_HOME=c:\jdk131
XINDICE_HOME=c:\xindice
CLASSPATH=c:\xindice\java\lib\Xindice.jar
windir=D:\WINDOWS
BLASTER=A220 I10 D1 T4
JAVACMD=java
CMDLINE=java -Xms16m -Xmx128m -Dxindice.home=c:\xindice -classpath 
"c:\xindice\j
ava\lib\xindice.jar;\config;c:\xindice\java\lib\ANT-14~1.JAR

                                                             ;c:\xindice\java\lib
\EXAMPLES.JAR

              ;c:\xindice\java\lib\INFOZO~1.JAR

                                               ;c:\xindice\java\lib\OPENOR~1.JAR

                                                                                ;
c:\xindice\java\lib\OPENOR~2.JAR

                                 ;c:\xindice\java\lib\XALAN-~1.JAR

                                                                  ;c:\xindice\jav
a\lib\XERCES~1.JAR

                   ;c:\xindice\java\lib\XINDICE.JAR

                                                   ;c:\xindice\java\lib\XML-AP~1.
JAR

    ;c:\xindice\java\lib\XMLDB-~1.JAR

                                     ;c:\xindice\java\lib\XMLDB-~2.JAR

                                                                      ;c:\xindice
\java\lib\XMLDB.JAR

                    ;c:\jdk131\lib\tools.jar

                                            " -noverify 
org.apache.xindice.server
.Xindice c:\xindice\config\system.xml


Re: class not found: javax/xml/parsers/DocumentBuilderFactory

Posted by Kazuo NOHARA <no...@icc-web.co.jp>.
Hi Justin. My English is poor, Sorry.

Justin Wall wrote:
> 
>         I've gotten the server installed at work on NT, but I'm having trouble
> here at home.  I'm getting a class not found error.  My enviroment
> variables are below the error.  I only have Xindice.jar in the
> classpath  Is there a FAQ for Xindice?
> 
> Thanks,
> 
> Justin
> 
> Exception in thread "main" java.lang.NoClassDefFoundError:
> javax/xml/parsers/DocumentBuilderFactory
>          at org.apache.xindice.server.Kernel.<init>(Kernel.java:127)
>          at org.apache.xindice.server.Kernel.<init>(Kernel.java:117)
>          at org.apache.xindice.server.Xindice.main(Xindice.java:96)
> 


I hope that you don't have xml parser based on jaxp in your classpath.
Please include Xerces or xml parser based on jaxp in your classpath.


Re: class not found: javax/xml/parsers/DocumentBuilderFactory

Posted by Ashok K <as...@yahoo.com>.
I get the same error messages on my
Windows-98 PC. Is yours PC Windows-98?

It works fine on my XP machine.

Both the PCs have the same classpath and
other Xincide env variables set correctly!

--- Justin Wall <Ju...@Wall.org> wrote:
> 
> 	I've gotten the server installed at work on NT, but
> I'm having trouble 
> here at home.  I'm getting a class not found error. 
> My enviroment 
> variables are below the error.  I only have
> Xindice.jar in the 
> classpath  Is there a FAQ for Xindice?
> 
> Thanks,
> 
> Justin
> 
> 
> Exception in thread "main"
> java.lang.NoClassDefFoundError: 
> javax/xml/parsers/DocumentBuilderFactory
>          at
>
org.apache.xindice.server.Kernel.<init>(Kernel.java:127)
>          at
>
org.apache.xindice.server.Kernel.<init>(Kernel.java:117)
>          at
>
org.apache.xindice.server.Xindice.main(Xindice.java:96)
> 
> 
> C:\xindice>set
> TMP=D:\WINDOWS\TEMP
> TEMP=D:\WINDOWS\TEMP
> PROMPT=$p$g
> winbootdir=D:\WINDOWS
> COMSPEC=C:\COMMAND.COM
>
PATH=C:\MOREAPPS\ULTRAE~1;D:\WINDOWS;D:\WINDOWS\COMMAND;C:\MSSQL7\BINN;D:\PROGRA
> ~1\ULTRAE~1;C:\JDK131\BIN;C:\XINDICE\BIN
> JAVA_HOME=c:\jdk131
> XINDICE_HOME=c:\xindice
> CLASSPATH=c:\xindice\java\lib\Xindice.jar
> windir=D:\WINDOWS
> BLASTER=A220 I10 D1 T4
> JAVACMD=java
> CMDLINE=java -Xms16m -Xmx128m
> -Dxindice.home=c:\xindice -classpath 
> "c:\xindice\j
>
ava\lib\xindice.jar;\config;c:\xindice\java\lib\ANT-14~1.JAR
> 
>                                                     
>         ;c:\xindice\java\lib
> \EXAMPLES.JAR
> 
>               ;c:\xindice\java\lib\INFOZO~1.JAR
> 
>                                               
> ;c:\xindice\java\lib\OPENOR~1.JAR
> 
>                                                     
>                            ;
> c:\xindice\java\lib\OPENOR~2.JAR
> 
>                                 
> ;c:\xindice\java\lib\XALAN-~1.JAR
> 
>                                                     
>              ;c:\xindice\jav
> a\lib\XERCES~1.JAR
> 
>                    ;c:\xindice\java\lib\XINDICE.JAR
> 
>                                                   
> ;c:\xindice\java\lib\XML-AP~1.
> JAR
> 
>     ;c:\xindice\java\lib\XMLDB-~1.JAR
> 
>                                     
> ;c:\xindice\java\lib\XMLDB-~2.JAR
> 
>                                                     
>                  ;c:\xindice
> \java\lib\XMLDB.JAR
> 
>                     ;c:\jdk131\lib\tools.jar
> 
>                                             "
> -noverify 
> org.apache.xindice.server
> .Xindice c:\xindice\config\system.xml
> 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

AW: class not found: javax/xml/parsers/DocumentBuilderFactory

Posted by Daniel Kroeger <ze...@zesolo.net>.
> 	I've gotten the server installed at work on NT, but I'm
> having trouble
> here at home.  I'm getting a class not found error.  My enviroment
> variables are below the error.  I only have Xindice.jar in the
> classpath  Is there a FAQ for Xindice?
>
> Thanks,
>
> Justin

Hi Justin,

it's necessary to have the actual dir in the classpath. Try
".;c:\xindice\java\lib\Xindice.jar" as CLASSPATH.

Daniel

>
>
> C:\xindice>set
> TMP=D:\WINDOWS\TEMP
> TEMP=D:\WINDOWS\TEMP
> PROMPT=$p$g
> winbootdir=D:\WINDOWS
> COMSPEC=C:\COMMAND.COM
> PATH=C:\MOREAPPS\ULTRAE~1;D:\WINDOWS;D:\WINDOWS\COMMAND;C:\MSSQL7\
> BINN;D:\PROGRA
> ~1\ULTRAE~1;C:\JDK131\BIN;C:\XINDICE\BIN
> JAVA_HOME=c:\jdk131
> XINDICE_HOME=c:\xindice
> CLASSPATH=c:\xindice\java\lib\Xindice.jar

>


Re: class not found: javax/xml/parsers/DocumentBuilderFactory

Posted by Justin Wall <Ju...@Wall.org>.
         FYI, this would be good for newbies, but the install instructions 
say to use any JDK, 1.3 & higher.  However, JDK1.3SE does not contain the 
javax.xml packages.

-Justin


At 01:29 AM 5/29/02 -0600, you wrote:

>         I've gotten the server installed at work on NT, but I'm having 
> trouble here at home.  I'm getting a class not found error.  My 
> enviroment variables are below the error.  I only have Xindice.jar in the 
> classpath  Is there a FAQ for Xindice?
>
>Thanks,
>
>Justin
>
>
>Exception in thread "main" java.lang.NoClassDefFoundError: 
>javax/xml/parsers/DocumentBuilderFactory
>         at org.apache.xindice.server.Kernel.<init>(Kernel.java:127)
>         at org.apache.xindice.server.Kernel.<init>(Kernel.java:117)
>         at org.apache.xindice.server.Xindice.main(Xindice.java:96)
>
>
>C:\xindice>set
>TMP=D:\WINDOWS\TEMP
>TEMP=D:\WINDOWS\TEMP
>PROMPT=$p$g
>winbootdir=D:\WINDOWS
>COMSPEC=C:\COMMAND.COM
>PATH=C:\MOREAPPS\ULTRAE~1;D:\WINDOWS;D:\WINDOWS\COMMAND;C:\MSSQL7\BINN;D:\PROGRA
>~1\ULTRAE~1;C:\JDK131\BIN;C:\XINDICE\BIN
>JAVA_HOME=c:\jdk131
>XINDICE_HOME=c:\xindice
>CLASSPATH=c:\xindice\java\lib\Xindice.jar
>windir=D:\WINDOWS
>BLASTER=A220 I10 D1 T4
>JAVACMD=java
>CMDLINE=java -Xms16m -Xmx128m -Dxindice.home=c:\xindice -classpath 
>"c:\xindice\j
>ava\lib\xindice.jar;\config;c:\xindice\java\lib\ANT-14~1.JAR
>
> 
>;c:\xindice\java\lib
>\EXAMPLES.JAR
>
>              ;c:\xindice\java\lib\INFOZO~1.JAR
>
> 
>;c:\xindice\java\lib\OPENOR~1.JAR
>
> 
>;
>c:\xindice\java\lib\OPENOR~2.JAR
>
>                                 ;c:\xindice\java\lib\XALAN-~1.JAR
>
> 
>;c:\xindice\jav
>a\lib\XERCES~1.JAR
>
>                   ;c:\xindice\java\lib\XINDICE.JAR
>
> 
>;c:\xindice\java\lib\XML-AP~1.
>JAR
>
>    ;c:\xindice\java\lib\XMLDB-~1.JAR
>
>                                     ;c:\xindice\java\lib\XMLDB-~2.JAR
>
> 
>;c:\xindice
>\java\lib\XMLDB.JAR
>
>                    ;c:\jdk131\lib\tools.jar
>
>                                            " -noverify 
> org.apache.xindice.server
>.Xindice c:\xindice\config\system.xml