powered by Jive Software

Cant change password?

Hi when I try to change the admin password I get this error:

Exception:
java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
	at org.jivesoftware.openfire.auth.DefaultAuthProvider.setPassword(DefaultAuthProvider.java:323)
	at org.jivesoftware.openfire.auth.AuthFactory.setPassword(AuthFactory.java:183)
	at org.jivesoftware.openfire.user.User.setPassword(User.java:147)
	at org.jivesoftware.openfire.admin.user_002dpassword_jsp._jspService(user_002dpassword_jsp.java:169)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655)
	at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
	at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
	at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:73)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
	at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:49)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
	at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:226)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
	at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:216)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1634)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1340)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1242)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.Server.handle(Server.java:503)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)
	at java.base/java.lang.Thread.run(Thread.java:844)

How do I fix this?

Regards

What version of Openfire? Do you use AD integration?

Oh sorry I use Openfire 4.3.2 on Ubuntu with mysql (Mariadb) and what do you meen by AD integration?

AD integration is when users come from LDAP/AD, not created locally on the server. So, you probably not using it. What Java version are you using? Should be shown on the first page of Admin Console. Can you change password of any other user?

Java Version: 10.0.2 Oracle Corporation – OpenJDK 64-Bit Server VM

Openfire doesn’t support Java newer than 8, so this issue might be related to that. On Ubuntu it usually has OpenJDK 8 installed along with 10. So you can edit the default file:

sudo nano /etc/default/openfire
uncomment JAVA_HOME
set to =/usr/lib/jvm/java-8-openjdk-amd64/jre

This works on Ubuntu 18.10. Should also work for older versions.

I did that in the /etc/default/openfire but now it says it started, but I cant access the admin panel now

systemctl status openfire
● openfire.service - LSB: Start/stop openfire jabber server
   Loaded: loaded (/etc/init.d/openfire; generated)
   Active: active (running) since Tue 2019-03-26 22:58:47 CET; 3s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 26849 ExecStop=/etc/init.d/openfire stop (code=exited, status=0/SUCCESS)
  Process: 26888 ExecStart=/etc/init.d/openfire start (code=exited, status=0/SUCCESS)
    Tasks: 11 (limit: 4661)
   CGroup: /system.slice/openfire.service
           └─26891 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -server -DopenfireHome=/usr/share/openfire -Dlog4j.configurationFile=/usr/share/openfire/lib/log4j2.xml -Dopenfire.lib.dir=/usr/share/openfire/lib -classpath /usr/share/op

Mar 26 22:58:47 server1 systemd[1]: Starting LSB: Start/stop openfire jabber server...
Mar 26 22:58:47 server1 openfire[26888]: Starting openfire: openfire.
Mar 26 22:58:47 server1 systemd[1]: Started LSB: Start/stop openfire jabber server.

You can try rebooting the whole server. There also could be something in the logs. Can’t recall the exact place of logs on Ubuntu now. All.log file.

I got it to work now :slight_smile: I just stop it, and deleted the database, and started over again and now it working, thanks for you help :slight_smile: