Openfire 4.0.2 & Import Export Users Plugin Issue

Hi,

We have been using open fire for the last 3 years upgrading the system was the new releases gets posted. We are currently on V4.0.2.

We were requested to do a fresh installation of Openfire on Ubuntu 15.10 Export the users from the current system and import them on a fresh install of Openfire 4.0.2.

I am unable to import the user list exported from the running system

Error: The import file does not match the user schema

I initially thought there might be an issue with the export on the old system due to the upgrades done. So I connected onto the new server and created 2 users that I exported without any issues. But on importing the users I was yet again met with the same error message.

Here is an extract of the Error Log file:

2016.06.07 12:21:29 org.jivesoftware.openfire.plugin.UserSchemaValidator - ERROR: element “xs:schema” is not allowed here

2016.06.07 12:21:29 org.jivesoftware.openfire.plugin.UserSchemaValidator - ERROR: perhaps namespace URI “http://www.w3c.org/2001/XMLSchema” is incorrect?

2016.06.07 12:21:29 org.jivesoftware.openfire.plugin.UserSchemaValidator -

java.lang.NullPointerException

at com.sun.msv.verifier.Verifier.startDocument(Verifier.java:364)

at org.dom4j.io.SAXWriter.startDocument(SAXWriter.java:720)

at org.dom4j.io.SAXWriter.write(SAXWriter.java:198)

at org.jivesoftware.openfire.plugin.UserSchemaValidator.validate(UserSchemaValidat or.java:63)

at org.jivesoftware.openfire.plugin.ImportExportPlugin.validateImportFile(ImportEx portPlugin.java:149)

at org.jivesoftware.openfire.plugin.userImportExport.import_002duser_002ddata_jsp. _jspService(import_002duser_002ddata_jsp.java:100)

Other info that might be pertinent:

Java Version: 1.8.0_91 Oracle Corporation - OpenJDK 64-Bit Server VM

If any one can please assist with a resolution to this issue?

Kind Regards,

Viaan Snyman

Message was edited by: Viaan Snyman Never mind. Found the Resolution just after posting. If you edit the wildfire-user-schema.xds.xml file located in the plugins/userimportexport/classes folder and change the following line: <xs:schema xmlns:xs=“http://www.w3c.org/2001/XMLSchema” elementFormDefault=“qualified”> to <xs:schema xmlns:xs=“http://www.w3.org/2001/XMLSchema” elementFormDefault=“qualified”> And you will be able to import your users.xml file

1 Like