You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Peter Teichert <pe...@gmail.com> on 2008/05/10 09:46:36 UTC

ObjectFactory needed to run xni sample Writer.java ?

Hello xerces-j users

I am trying to run the xni sample Writer.java but it requests the class
Objectactory.
This class was contained in a previous version of org.apache.xerces.util but
in the current version it is not contained.

What should be done to run the Writer.java sample ?

Thanks for your time responding to this issue

best regards

Peter

Re: ObjectFactory needed to run xni sample Writer.java ?

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Hello Peter,

"Peter Teichert" <pe...@gmail.com> wrote on 11/05/2008 11:05:57
AM:

> Hello Michael,
>
> Thank you for responding.
> I read many tutorials how to start and compile and so on;
> I am trying to run as a start the xni.Writer.java.

You may find you have an easier time using an IDE such as Eclipse:
http://www.eclipse.org/.

> My real aim is to build an xml schema parser which is able to parse
> xml 1.1 files in several languages. Many things are written on the
> topic but i am struggling to run a simple single file.
>
> That's why I am on thos mailing list; Or do you advise another forumfor
that ?

I'm not sure what you mean by "build an xml schema parser which is able to
parse xml 1.1 files". Xerces-J supports both XML Schema and XML 1.1 out of
the box. You don't need to build anything else to get access to this
capability, though I suppose you probably meant that you wanted to build an
application which uses it. If you're just trying to validate a few XML
documents from the command line the pre-compiled samples
(xercesSamples.jar) should be sufficient for that task.

> regards
>
> Peter

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

Re: ObjectFactory needed to run xni sample Writer.java ?

Posted by Peter Teichert <pe...@gmail.com>.
Hello Michael,

Thank you for responding.
I read many tutorials how to start and compile and so on;
I am trying to run as a start the xni.Writer.java.

My real aim is to build an xml schema parser which is able to parse xml 1.1
files in several languages. Many things are written on the topic but i am
struggling to run a simple single file.

That's why I am on thos mailing list; Or do you advise another forum for
that ?

regards

Peter

2008/5/11 Michael Glavassevich <mr...@ca.ibm.com>:

> Hi Peter,
>
> Not sure what's going wrong for you but this really isn't the place to be
> asking novice questions on compiling Java source. I'd suggest you read one
> of the tutorials at java.sun.com or elsewhere on the web if you're unsure
> about how to do this.
>
>
> Thanks.
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org
>
> "Peter Teichert" <pe...@gmail.com> wrote on 11/05/2008 08:01:12
> AM:
>
>
> > Hello Michael,
> > meanwhile I found the source file ObjectFactory.java.
> > When I compile all of the sample files with the command *.java then
> > there is still the error objectfactory:46 duplicate
> class:xni.ObjectFactor.
> >
> > How can I compile 2 source files ? Is it javac Writer.java,
> > ObjectFactory.java or not ?
> >
> > Thanks for responding
> >
> > regards
> >
> > Peter
>
> > 2008/5/10 Michael Glavassevich <mr...@ca.ibm.com>:
> > Hi Peter,
> >
> > It's defined in another source file (ObjectFactory.java) in the same
> > directory as Writer.java. You would need to compile both of them.
> >
> > Note that the binary distribution includes a xercesSamples.jar which
> > contains all of the samples. So you probably don't need to compile
> > the source yourself unless you've modified it or have some other
> > specific reason to do so.
> >
> > Thanks.
> >
> >
> > Michael Glavassevich
> > XML Parser Development
> > IBM Toronto Lab
> > E-mail: mrglavas@ca.ibm.com
> > E-mail: mrglavas@apache.org
>
> > "Peter Teichert" <pe...@gmail.com> wrote on 10/05/2008 01:26:12
> PM:
> >
> >
> > > Hello Michael
> > >
> > > I am new to the specifics of JAVA.
> > >
> > > the lines where ObjectFactory is used look as follows in Writer.java :
> > >
> > >                     try {
> > >                         parserConfig = (XMLParserConfiguration)
> > > ObjectFactory.newInstance(parserName,
> > >                             ObjectFactory.findClassLoader(), true);
> > >
> > > Where is ObjectFactory part of the sample Writer.java
> > >
> > > I compile it as follows :
> > > C:/Sun/SDK/jdk/bin/javac -g -verbose -endorseddirs C:
> > > \Sun\xerces-2_9_1 Writer.java
> > >
> > > Am I doing smth wrong here ?
> >
> > > 2008/5/10 Michael Glavassevich <mr...@ca.ibm.com>:
> > > It's a different ObjectFactory class. Notice that it's in the same
> > > package as xni.Writer. It's part of the sample.
> > >
> > >
> > > Michael Glavassevich
> > > XML Parser Development
> > > IBM Toronto Lab
> > > E-mail: mrglavas@ca.ibm.com
> > > E-mail: mrglavas@apache.org
> >
> > > "Peter Teichert" <pe...@gmail.com> wrote on 10/05/2008
> 10:25:35 AM:
> > >
> > >
> > > > Hello Michael,
> > > >
> > > > Thanks for quick reply ! I downloaded the latest package from your
> > > > indicated site
> > > > Xerces-J-bin.2.9.1.zip
> > > > The writer.java file still contains the ObjectFactory class.
> > > >
> > > > Maybe you have another sample package where this dependency was
> removed ?
> > > >
> > > > Regards
> > > >
> > > > Peter
> > >
> > > > 2008/5/10 Michael Glavassevich <mr...@ca.ibm.com>:
> > > > Hi Peter,
> > > >
> > > > The public ObjectFactory class in the org.apache.xerces.util package
> > > > was removed long ago for security reasons. If you're running into
> > > > this issue you obviously have an ancient copy of the samples. I'd
> > > > suggest downloading a new version (from Xerces-J 2.9.1) which
> > > > doesn't have this dependency from here [1].
> > > >
> > > > Thanks.
> > > >
> > > > [1] http://xerces.apache.org/xerces2-j/download.cgi
> > > >
> > > > Michael Glavassevich
> > > > XML Parser Development
> > > > IBM Toronto Lab
> > > > E-mail: mrglavas@ca.ibm.com
> > > > E-mail: mrglavas@apache.org
> > > >
> > > > "Peter Teichert" <pe...@gmail.com> wrote on 10/05/2008
> > 03:46:36 AM:
> > > >
> > > >
> > > > > Hello xerces-j users
> > > > >
> > > > > I am trying to run the xni sample Writer.java but it requests the
> > > > > class Objectactory.
> > > > > This class was contained in a previous version of
> org.apache.xerces.
> > > > > util but in the current version it is not contained.
> > > > >
> > > > > What should be done to run the Writer.java sample ?
> > > > >
> > > > > Thanks for your time responding to this issue
> > > > >
> > > > > best regards
> > > > >
> > > > > Peter
> > > >
> > > >
> > > >
> > > > --
> > > > --
> > > > Mit freundlichen Grüßen
> > > >
> > > > Peter Teichert
> > > > 3 rue des Tamaris
> > > > 31820 Pibrac
> > > > France
> > >
> > >
> > >
> > > --
> > > --
> > > Mit freundlichen Grüßen
> > >
> > > Peter Teichert
> > > 3 rue des Tamaris
> > > 31820 Pibrac
> > > France
> >
> >
> >
> > --
> > --
> > Mit freundlichen Grüßen
> >
> > Peter Teichert
> > 3 rue des Tamaris
> > 31820 Pibrac
> > France
>



-- 
--
Mit freundlichen Grüßen

Peter Teichert
3 rue des Tamaris
31820 Pibrac
France

Re: ObjectFactory needed to run xni sample Writer.java ?

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Hi Peter,

Not sure what's going wrong for you but this really isn't the place to be
asking novice questions on compiling Java source. I'd suggest you read one
of the tutorials at java.sun.com or elsewhere on the web if you're unsure
about how to do this.

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

"Peter Teichert" <pe...@gmail.com> wrote on 11/05/2008 08:01:12
AM:

> Hello Michael,
> meanwhile I found the source file ObjectFactory.java.
> When I compile all of the sample files with the command *.java then
> there is still the error objectfactory:46 duplicate
class:xni.ObjectFactor.
>
> How can I compile 2 source files ? Is it javac Writer.java,
> ObjectFactory.java or not ?
>
> Thanks for responding
>
> regards
>
> Peter

> 2008/5/10 Michael Glavassevich <mr...@ca.ibm.com>:
> Hi Peter,
>
> It's defined in another source file (ObjectFactory.java) in the same
> directory as Writer.java. You would need to compile both of them.
>
> Note that the binary distribution includes a xercesSamples.jar which
> contains all of the samples. So you probably don't need to compile
> the source yourself unless you've modified it or have some other
> specific reason to do so.
>
> Thanks.
>
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org

> "Peter Teichert" <pe...@gmail.com> wrote on 10/05/2008 01:26:12
PM:
>
>
> > Hello Michael
> >
> > I am new to the specifics of JAVA.
> >
> > the lines where ObjectFactory is used look as follows in Writer.java :
> >
> >                     try {
> >                         parserConfig = (XMLParserConfiguration)
> > ObjectFactory.newInstance(parserName,
> >                             ObjectFactory.findClassLoader(), true);
> >
> > Where is ObjectFactory part of the sample Writer.java
> >
> > I compile it as follows :
> > C:/Sun/SDK/jdk/bin/javac -g -verbose -endorseddirs C:
> > \Sun\xerces-2_9_1 Writer.java
> >
> > Am I doing smth wrong here ?
>
> > 2008/5/10 Michael Glavassevich <mr...@ca.ibm.com>:
> > It's a different ObjectFactory class. Notice that it's in the same
> > package as xni.Writer. It's part of the sample.
> >
> >
> > Michael Glavassevich
> > XML Parser Development
> > IBM Toronto Lab
> > E-mail: mrglavas@ca.ibm.com
> > E-mail: mrglavas@apache.org
>
> > "Peter Teichert" <pe...@gmail.com> wrote on 10/05/2008
10:25:35 AM:
> >
> >
> > > Hello Michael,
> > >
> > > Thanks for quick reply ! I downloaded the latest package from your
> > > indicated site
> > > Xerces-J-bin.2.9.1.zip
> > > The writer.java file still contains the ObjectFactory class.
> > >
> > > Maybe you have another sample package where this dependency was
removed ?
> > >
> > > Regards
> > >
> > > Peter
> >
> > > 2008/5/10 Michael Glavassevich <mr...@ca.ibm.com>:
> > > Hi Peter,
> > >
> > > The public ObjectFactory class in the org.apache.xerces.util package
> > > was removed long ago for security reasons. If you're running into
> > > this issue you obviously have an ancient copy of the samples. I'd
> > > suggest downloading a new version (from Xerces-J 2.9.1) which
> > > doesn't have this dependency from here [1].
> > >
> > > Thanks.
> > >
> > > [1] http://xerces.apache.org/xerces2-j/download.cgi
> > >
> > > Michael Glavassevich
> > > XML Parser Development
> > > IBM Toronto Lab
> > > E-mail: mrglavas@ca.ibm.com
> > > E-mail: mrglavas@apache.org
> > >
> > > "Peter Teichert" <pe...@gmail.com> wrote on 10/05/2008
> 03:46:36 AM:
> > >
> > >
> > > > Hello xerces-j users
> > > >
> > > > I am trying to run the xni sample Writer.java but it requests the
> > > > class Objectactory.
> > > > This class was contained in a previous version of
org.apache.xerces.
> > > > util but in the current version it is not contained.
> > > >
> > > > What should be done to run the Writer.java sample ?
> > > >
> > > > Thanks for your time responding to this issue
> > > >
> > > > best regards
> > > >
> > > > Peter
> > >
> > >
> > >
> > > --
> > > --
> > > Mit freundlichen Grüßen
> > >
> > > Peter Teichert
> > > 3 rue des Tamaris
> > > 31820 Pibrac
> > > France
> >
> >
> >
> > --
> > --
> > Mit freundlichen Grüßen
> >
> > Peter Teichert
> > 3 rue des Tamaris
> > 31820 Pibrac
> > France
>
>
>
> --
> --
> Mit freundlichen Grüßen
>
> Peter Teichert
> 3 rue des Tamaris
> 31820 Pibrac
> France

Re: ObjectFactory needed to run xni sample Writer.java ?

Posted by Peter Teichert <pe...@gmail.com>.
Hello Michael,
meanwhile I found the source file ObjectFactory.java.
When I compile all of the sample files with the command *.java then there is
still the error objectfactory:46 duplicate class:xni.ObjectFactor.

How can I compile 2 source files ? Is it javac Writer.java,
ObjectFactory.java or not ?

Thanks for responding

regards

Peter

2008/5/10 Michael Glavassevich <mr...@ca.ibm.com>:

> Hi Peter,
>
> It's defined in another source file (ObjectFactory.java) in the same
> directory as Writer.java. You would need to compile both of them.
>
> Note that the binary distribution includes a xercesSamples.jar which
> contains all of the samples. So you probably don't need to compile the
> source yourself unless you've modified it or have some other specific reason
> to do so.
>
> Thanks.
>
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org
>
> "Peter Teichert" <pe...@gmail.com> wrote on 10/05/2008 01:26:12
> PM:
>
>
> > Hello Michael
> >
> > I am new to the specifics of JAVA.
> >
> > the lines where ObjectFactory is used look as follows in Writer.java :
> >
> >                     try {
> >                         parserConfig = (XMLParserConfiguration)
> > ObjectFactory.newInstance(parserName,
> >                             ObjectFactory.findClassLoader(), true);
> >
> > Where is ObjectFactory part of the sample Writer.java
> >
> > I compile it as follows :
> > C:/Sun/SDK/jdk/bin/javac -g -verbose -endorseddirs C:
> > \Sun\xerces-2_9_1 Writer.java
> >
> > Am I doing smth wrong here ?
>
> > 2008/5/10 Michael Glavassevich <mr...@ca.ibm.com>:
> > It's a different ObjectFactory class. Notice that it's in the same
> > package as xni.Writer. It's part of the sample.
> >
> >
> > Michael Glavassevich
> > XML Parser Development
> > IBM Toronto Lab
> > E-mail: mrglavas@ca.ibm.com
> > E-mail: mrglavas@apache.org
>
> > "Peter Teichert" <pe...@gmail.com> wrote on 10/05/2008 10:25:35
> AM:
> >
> >
> > > Hello Michael,
> > >
> > > Thanks for quick reply ! I downloaded the latest package from your
> > > indicated site
> > > Xerces-J-bin.2.9.1.zip
> > > The writer.java file still contains the ObjectFactory class.
> > >
> > > Maybe you have another sample package where this dependency was removed
> ?
> > >
> > > Regards
> > >
> > > Peter
> >
> > > 2008/5/10 Michael Glavassevich <mr...@ca.ibm.com>:
> > > Hi Peter,
> > >
> > > The public ObjectFactory class in the org.apache.xerces.util package
> > > was removed long ago for security reasons. If you're running into
> > > this issue you obviously have an ancient copy of the samples. I'd
> > > suggest downloading a new version (from Xerces-J 2.9.1) which
> > > doesn't have this dependency from here [1].
> > >
> > > Thanks.
> > >
> > > [1] http://xerces.apache.org/xerces2-j/download.cgi
> > >
> > > Michael Glavassevich
> > > XML Parser Development
> > > IBM Toronto Lab
> > > E-mail: mrglavas@ca.ibm.com
> > > E-mail: mrglavas@apache.org
> > >
> > > "Peter Teichert" <pe...@gmail.com> wrote on 10/05/2008
> 03:46:36 AM:
> > >
> > >
> > > > Hello xerces-j users
> > > >
> > > > I am trying to run the xni sample Writer.java but it requests the
> > > > class Objectactory.
> > > > This class was contained in a previous version of org.apache.xerces.
> > > > util but in the current version it is not contained.
> > > >
> > > > What should be done to run the Writer.java sample ?
> > > >
> > > > Thanks for your time responding to this issue
> > > >
> > > > best regards
> > > >
> > > > Peter
> > >
> > >
> > >
> > > --
> > > --
> > > Mit freundlichen Grüßen
> > >
> > > Peter Teichert
> > > 3 rue des Tamaris
> > > 31820 Pibrac
> > > France
> >
> >
> >
> > --
> > --
> > Mit freundlichen Grüßen
> >
> > Peter Teichert
> > 3 rue des Tamaris
> > 31820 Pibrac
> > France
>



-- 
--
Mit freundlichen Grüßen

Peter Teichert
3 rue des Tamaris
31820 Pibrac
France

Re: ObjectFactory needed to run xni sample Writer.java ?

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Hi Peter,

It's defined in another source file (ObjectFactory.java) in the same
directory as Writer.java. You would need to compile both of them.

Note that the binary distribution includes a xercesSamples.jar which
contains all of the samples. So you probably don't need to compile the
source yourself unless you've modified it or have some other specific
reason to do so.

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

"Peter Teichert" <pe...@gmail.com> wrote on 10/05/2008 01:26:12
PM:

> Hello Michael
>
> I am new to the specifics of JAVA.
>
> the lines where ObjectFactory is used look as follows in Writer.java :
>
>                     try {
>                         parserConfig = (XMLParserConfiguration)
> ObjectFactory.newInstance(parserName,
>                             ObjectFactory.findClassLoader(), true);
>
> Where is ObjectFactory part of the sample Writer.java
>
> I compile it as follows :
> C:/Sun/SDK/jdk/bin/javac -g -verbose -endorseddirs C:
> \Sun\xerces-2_9_1 Writer.java
>
> Am I doing smth wrong here ?

> 2008/5/10 Michael Glavassevich <mr...@ca.ibm.com>:
> It's a different ObjectFactory class. Notice that it's in the same
> package as xni.Writer. It's part of the sample.
>
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org

> "Peter Teichert" <pe...@gmail.com> wrote on 10/05/2008 10:25:35
AM:
>
>
> > Hello Michael,
> >
> > Thanks for quick reply ! I downloaded the latest package from your
> > indicated site
> > Xerces-J-bin.2.9.1.zip
> > The writer.java file still contains the ObjectFactory class.
> >
> > Maybe you have another sample package where this dependency was removed
?
> >
> > Regards
> >
> > Peter
>
> > 2008/5/10 Michael Glavassevich <mr...@ca.ibm.com>:
> > Hi Peter,
> >
> > The public ObjectFactory class in the org.apache.xerces.util package
> > was removed long ago for security reasons. If you're running into
> > this issue you obviously have an ancient copy of the samples. I'd
> > suggest downloading a new version (from Xerces-J 2.9.1) which
> > doesn't have this dependency from here [1].
> >
> > Thanks.
> >
> > [1] http://xerces.apache.org/xerces2-j/download.cgi
> >
> > Michael Glavassevich
> > XML Parser Development
> > IBM Toronto Lab
> > E-mail: mrglavas@ca.ibm.com
> > E-mail: mrglavas@apache.org
> >
> > "Peter Teichert" <pe...@gmail.com> wrote on 10/05/2008
03:46:36 AM:
> >
> >
> > > Hello xerces-j users
> > >
> > > I am trying to run the xni sample Writer.java but it requests the
> > > class Objectactory.
> > > This class was contained in a previous version of org.apache.xerces.
> > > util but in the current version it is not contained.
> > >
> > > What should be done to run the Writer.java sample ?
> > >
> > > Thanks for your time responding to this issue
> > >
> > > best regards
> > >
> > > Peter
> >
> >
> >
> > --
> > --
> > Mit freundlichen Grüßen
> >
> > Peter Teichert
> > 3 rue des Tamaris
> > 31820 Pibrac
> > France
>
>
>
> --
> --
> Mit freundlichen Grüßen
>
> Peter Teichert
> 3 rue des Tamaris
> 31820 Pibrac
> France

Re: ObjectFactory needed to run xni sample Writer.java ?

Posted by Peter Teichert <pe...@gmail.com>.
Hello Michael

I am new to the specifics of JAVA.

the lines where ObjectFactory is used look as follows in Writer.java :

                    try {
                        parserConfig =
(XMLParserConfiguration)ObjectFactory.newInstance(parserName,
                            ObjectFactory.findClassLoader(), true);

Where is ObjectFactory part of the sample Writer.java

I compile it as follows :
C:/Sun/SDK/jdk/bin/javac -g -verbose -endorseddirs C:\Sun\xerces-2_9_1
Writer.java

Am I doing smth wrong here ?

2008/5/10 Michael Glavassevich <mr...@ca.ibm.com>:

> It's a different ObjectFactory class. Notice that it's in the same package
> as xni.Writer. It's part of the sample.
>
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org
>
> "Peter Teichert" <pe...@gmail.com> wrote on 10/05/2008 10:25:35
> AM:
>
>
> > Hello Michael,
> >
> > Thanks for quick reply ! I downloaded the latest package from your
> > indicated site
> > Xerces-J-bin.2.9.1.zip
> > The writer.java file still contains the ObjectFactory class.
> >
> > Maybe you have another sample package where this dependency was removed ?
> >
> > Regards
> >
> > Peter
>
> > 2008/5/10 Michael Glavassevich <mr...@ca.ibm.com>:
> > Hi Peter,
> >
> > The public ObjectFactory class in the org.apache.xerces.util package
> > was removed long ago for security reasons. If you're running into
> > this issue you obviously have an ancient copy of the samples. I'd
> > suggest downloading a new version (from Xerces-J 2.9.1) which
> > doesn't have this dependency from here [1].
> >
> > Thanks.
> >
> > [1] http://xerces.apache.org/xerces2-j/download.cgi
> >
> > Michael Glavassevich
> > XML Parser Development
> > IBM Toronto Lab
> > E-mail: mrglavas@ca.ibm.com
> > E-mail: mrglavas@apache.org
> >
> > "Peter Teichert" <pe...@gmail.com> wrote on 10/05/2008 03:46:36
> AM:
> >
> >
> > > Hello xerces-j users
> > >
> > > I am trying to run the xni sample Writer.java but it requests the
> > > class Objectactory.
> > > This class was contained in a previous version of org.apache.xerces.
> > > util but in the current version it is not contained.
> > >
> > > What should be done to run the Writer.java sample ?
> > >
> > > Thanks for your time responding to this issue
> > >
> > > best regards
> > >
> > > Peter
> >
> >
> >
> > --
> > --
> > Mit freundlichen Grüßen
> >
> > Peter Teichert
> > 3 rue des Tamaris
> > 31820 Pibrac
> > France
>



-- 
--
Mit freundlichen Grüßen

Peter Teichert
3 rue des Tamaris
31820 Pibrac
France

Re: ObjectFactory needed to run xni sample Writer.java ?

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
It's a different ObjectFactory class. Notice that it's in the same package
as xni.Writer. It's part of the sample.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

"Peter Teichert" <pe...@gmail.com> wrote on 10/05/2008 10:25:35
AM:

> Hello Michael,
>
> Thanks for quick reply ! I downloaded the latest package from your
> indicated site
> Xerces-J-bin.2.9.1.zip
> The writer.java file still contains the ObjectFactory class.
>
> Maybe you have another sample package where this dependency was removed ?
>
> Regards
>
> Peter

> 2008/5/10 Michael Glavassevich <mr...@ca.ibm.com>:
> Hi Peter,
>
> The public ObjectFactory class in the org.apache.xerces.util package
> was removed long ago for security reasons. If you're running into
> this issue you obviously have an ancient copy of the samples. I'd
> suggest downloading a new version (from Xerces-J 2.9.1) which
> doesn't have this dependency from here [1].
>
> Thanks.
>
> [1] http://xerces.apache.org/xerces2-j/download.cgi
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org
>
> "Peter Teichert" <pe...@gmail.com> wrote on 10/05/2008 03:46:36
AM:
>
>
> > Hello xerces-j users
> >
> > I am trying to run the xni sample Writer.java but it requests the
> > class Objectactory.
> > This class was contained in a previous version of org.apache.xerces.
> > util but in the current version it is not contained.
> >
> > What should be done to run the Writer.java sample ?
> >
> > Thanks for your time responding to this issue
> >
> > best regards
> >
> > Peter
>
>
>
> --
> --
> Mit freundlichen Grüßen
>
> Peter Teichert
> 3 rue des Tamaris
> 31820 Pibrac
> France

Re: ObjectFactory needed to run xni sample Writer.java ?

Posted by Peter Teichert <pe...@gmail.com>.
Hello Michael,

Thanks for quick reply ! I downloaded the latest package from your indicated
site
Xerces-J-bin.2.9.1.zip
The writer.java file still contains the ObjectFactory class.

Maybe you have another sample package where this dependency was removed ?

Regards

Peter

2008/5/10 Michael Glavassevich <mr...@ca.ibm.com>:

> Hi Peter,
>
> The public ObjectFactory class in the org.apache.xerces.util package was
> removed long ago for security reasons. If you're running into this issue you
> obviously have an ancient copy of the samples. I'd suggest downloading a new
> version (from Xerces-J 2.9.1) which doesn't have this dependency from here
> [1].
>
> Thanks.
>
> [1] http://xerces.apache.org/xerces2-j/download.cgi
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org
>
> "Peter Teichert" <pe...@gmail.com> wrote on 10/05/2008 03:46:36
> AM:
>
>
> > Hello xerces-j users
> >
> > I am trying to run the xni sample Writer.java but it requests the
> > class Objectactory.
> > This class was contained in a previous version of org.apache.xerces.
> > util but in the current version it is not contained.
> >
> > What should be done to run the Writer.java sample ?
> >
> > Thanks for your time responding to this issue
> >
> > best regards
> >
> > Peter
>



-- 
--
Mit freundlichen Grüßen

Peter Teichert
3 rue des Tamaris
31820 Pibrac
France

Re: ObjectFactory needed to run xni sample Writer.java ?

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Hi Peter,

The public ObjectFactory class in the org.apache.xerces.util package was
removed long ago for security reasons. If you're running into this issue
you obviously have an ancient copy of the samples. I'd suggest downloading
a new version (from Xerces-J 2.9.1) which doesn't have this dependency from
here [1].

Thanks.

[1] http://xerces.apache.org/xerces2-j/download.cgi

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

"Peter Teichert" <pe...@gmail.com> wrote on 10/05/2008 03:46:36
AM:

> Hello xerces-j users
>
> I am trying to run the xni sample Writer.java but it requests the
> class Objectactory.
> This class was contained in a previous version of org.apache.xerces.
> util but in the current version it is not contained.
>
> What should be done to run the Writer.java sample ?
>
> Thanks for your time responding to this issue
>
> best regards
>
> Peter