Link to home
Start Free TrialLog in
Avatar of Eugenio_Magnone
Eugenio_Magnone

asked on

Provider com.bea.xml.stream.MXParserFactory not found

I set the class path, restarted the pc but I still face the error,
Thanks
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eugenio_Magnone
Eugenio_Magnone

ASKER

Thanks, I downloaded "stax1.1.2-dev.jar"
The next step ?
See if it's in there

jar tf  stax1.1.2-dev.jar | find "MXParserFactory"
I found 10 files with the suggested string, may I import something like:
com\bea\xml\stream\MXPARSERFactory.class ?
Put that jar file in the classpath with your other one. Don't forget the separator
I added to:
CLASSPATH
\C:\tech\struts\Contribution\lib\xbean.jar\
The separator is

;
CLASSPATH
C:\Programmi\Java\jre1.5.0_06\lib\ext\QTJava.zip;
C:\Programmi\Java\jre1.5.0_06\lib\ext\QTJava.zip;
C:\tech\struts\Contribution\lib\xbean.jar;

thanks for being patien
>>I found 10 files with the suggested string

Where - in stax1.1.2-dev.jar?
The stax1.1.2-dev.jar is in:
C:\tech\struts\Contribution\lib
Then you should add

;C:\tech\struts\Contribution\lib\stax1.1.2-dev.jar

to the classpath and remove the duplicate QTJava.zip entry
Done
Open a new console window and recompile
No more error, no problems with the compilation.

Thanks a lot for your assistance
:-)