Possible xml conflict?

Peter Nabbefeld <[email protected]> Wed, 28 Jan 2004 19:17:12 +0100
Newsgroups gmane.comp.java.netbeans.modules.xml.devel
Message-ID <[email protected]>
Hello,

i'm trying TJDO for JDO/SQL mapping with MySQL database. I'm using the 
following build target:
     <target depends="all,compile,init" name="run">
         <java classname="base.PersonPersister">
             <classpath>
                 <pathelement path="${java.class.path}"/>
                 <pathelement path="${project.classes}"/>
             </classpath>
             <arg value="-Ddummy1=${ant.java.version}"/>
             <arg value="-Ddummy2=${java.class.path}"/>
             <sysproperty key="com.triactive.jdo.autoCreateTables" 
value="true"/>
         </java>
     </target>

The result in the output window:
run:
Running in same VM Executing 'base.PersonPersister' with arguments:
'-Ddummy1=1.4'
'-Ddummy2=C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\boot.jar;C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\btree.jar;C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\crimson-1.1.3.jar;C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\hsqldb.jar;C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\idlcompilers.jar;C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\jdo.jar;C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\jdori-enhancer.jar;C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\jdori.jar;C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\jini-core.jar;C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\jini-ext.jar;C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\jta-1_0_1B.jar;C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\log4j-1.2.8.jar;C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\mysql-connector-java-3.0.10-stable-bin.jar;C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\openorb-1.0.2.jar;C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\regexp-1.2.jar;C:\Programme\j2sdk_nb\ne
 tbeans3.5\lib\ext\rmi-ext.jar;C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\sun-util.jar;C:\P

rogramme\j2sdk_nb\netbeans3.5\lib\ext\tjdo.jar;C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\xerces-2.0.2.jar;C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\xml-apis-1.0b2.jar;C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\locale\rmi-ext_ja.jar;C:\Programme\j2sdk_nb\j2sdk1.4.2\lib\dt.jar;C:\Programme\j2sdk_nb\j2sdk1.4.2\lib\tools.jar'
The ' characters around the executable and arguments are
not part of the command.
log4j:WARN No appenders could be found for logger 
(com.triactive.jdo.store.DatabaseAdapter).
log4j:WARN Please initialize the log4j system properly.
Exception reading component 
C:\Programme\j2sdk_nb\netbeans3.5\lib\ext\xml-apis-1.0b2.jar
java.lang.NoClassDefFoundError: org/xml/sax/EntityResolver

As you can see (from dummy1), i'm using JDK 1.4 (1.4.2). Both, the JDK 
and xml-apis-1.0b2.jar contain the class org/xml/sax/EntityResolver.
So, what is the problem? I first thought, i'd to remove the jar file 
because of the duplicate class, but this doesn't work (I can't even open 
a web project after removing the jar).
If i try to start it from a DOS window (BTW: i'm using W2k with NB 
3.5.1), just with java -cp ... -Dcom... base.PersonPersister
that works, the database tables are created - but not inside the 
NetBeans IDE. I think, from the error message there seems to be either a 
problem with the classpath or an xml conflict. Any good idea?

Kind regards

Peter Nabbefeld