powered by Jive Software

4.2.2 on ubuntu 18 server

i cannot create a user on a new install of openfire 4.2.2 on ubuntu 18 server. when i create a user i get the following output:

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.DefaultUserProvider.createUser(DefaultUserProvider.java:167)
at org.jivesoftware.openfire.user.UserManager.createUser(UserManager.java:214)
at org.jivesoftware.openfire.admin.user_002dcreate_jsp._jspService(user_002dcreate_jsp.java:161)
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:812)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:73)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:49)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:226)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:215)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
… 39 more

my java -version shows:

administrator@of-03-02:~$ java -version
java version “1.8.0_181”
Java™ SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot™ 64-Bit Server VM (build 25.181-b13, mixed mode)
administrator@of-03-02:~$

here is log files from openfire web console:
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2018.08.10 19:08:13 INFO [pool-4-thread-1]: org.jivesoftware.openfire.spi.ConnectionListener[component-legacyMode] - Started.
2018.08.10 19:08:13 ERROR [pool-4-thread-1]: org.jivesoftware.openfire.spi.MINAConnectionAcceptor[connection_manager] - Error starting: 5262
java.lang.IllegalArgumentException
at java.base/java.util.concurrent.ThreadPoolExecutor.setCorePoolSize(ThreadPoolExecutor.java:1535)
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor.(OrderedThreadPoolExecutor.java:199)
at org.apache.mina.filter.executor.ExecutorFilter.createDefaultExecutor(ExecutorFilter.java:441)
at org.apache.mina.filter.executor.ExecutorFilter.(ExecutorFilter.java:206)
at org.jivesoftware.openfire.spi.MINAConnectionAcceptor.start(MINAConnectionAcceptor.java:102)
at org.jivesoftware.openfire.spi.ConnectionListener.start(ConnectionListener.java:216)
at org.jivesoftware.openfire.spi.ConnectionManagerImpl.startListeners(ConnectionManagerImpl.java:298)
at org.jivesoftware.openfire.spi.ConnectionManagerImpl.access$100(ConnectionManagerImpl.java:46)
at org.jivesoftware.openfire.spi.ConnectionManagerImpl$1.pluginsMonitored(ConnectionManagerImpl.java:287)
at org.jivesoftware.openfire.container.PluginManager.firePluginsMonitored(PluginManager.java:1221)
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask.run(PluginMonitor.java:323)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2018.08.10 19:08:13 INFO [pool-4-thread-1]: org.jivesoftware.openfire.spi.ConnectionListener[connection_manager] - Started.
2018.08.10 19:08:13 ERROR [pool-4-thread-1]: org.jivesoftware.openfire.spi.MINAConnectionAcceptor[connection_manager_ssl] - Error starting: 5263
java.lang.IllegalArgumentException
at java.base/java.util.concurrent.ThreadPoolExecutor.setCorePoolSize(ThreadPoolExecutor.java:1535)
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor.(OrderedThreadPoolExecutor.java:199)
at org.apache.mina.filter.executor.ExecutorFilter.createDefaultExecutor(ExecutorFilter.java:441)
at org.apache.mina.filter.executor.ExecutorFilter.(ExecutorFilter.java:206)
at org.jivesoftware.openfire.spi.MINAConnectionAcceptor.start(MINAConnectionAcceptor.java:102)
at org.jivesoftware.openfire.spi.ConnectionListener.start(ConnectionListener.java:216)
at org.jivesoftware.openfire.spi.ConnectionManagerImpl.startListeners(ConnectionManagerImpl.java:298)
at org.jivesoftware.openfire.spi.ConnectionManagerImpl.access$100(ConnectionManagerImpl.java:46)
at org.jivesoftware.openfire.spi.ConnectionManagerImpl$1.pluginsMonitored(ConnectionManagerImpl.java:287)
at org.jivesoftware.openfire.container.PluginManager.firePluginsMonitored(PluginManager.java:1221)
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask.run(PluginMonitor.java:323)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2018.08.10 19:08:13 INFO [pool-4-thread-1]: org.jivesoftware.openfire.spi.ConnectionListener[connection_manager-legacyMode] - Started.
2018.08.10 19:08:13 INFO [pool-4-thread-1]: org.jivesoftware.openfire.spi.EncryptionArtifactFactory - Creating new SslContextFactory instance
2018.08.10 19:08:13 INFO [pool-4-thread-1]: org.jivesoftware.openfire.http.HttpBindManager - Installed response compression filter
2018.08.10 19:08:13 INFO [pool-4-thread-1]: org.jivesoftware.openfire.http.HttpSessionManager - Starting instance
2018.08.10 19:08:13 INFO [pool-4-thread-1]: org.jivesoftware.openfire.http.HttpBindManager - HTTP bind service started
2018.08.10 19:10:22 INFO [Jetty-QTP-AdminConsole-59]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Locked Out Accounts
2018.08.10 19:10:36 INFO [Jetty-QTP-AdminConsole-60]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Group
2018.08.10 19:10:36 INFO [Jetty-QTP-AdminConsole-60]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Group Metadata Cache

Is it showing the same Java version in Openfire’s Admin Console on the first screen?

it is showing the wrong version in the admin console. how do i change this?

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

I’m not that familiar with Linux. You need to set Java Home to the correct value somehow.

Have a look in /etc/default/openfire (I think - I’m not !00% sure with with an Ubuntu installation). In there ensure that JAVA_HOME is appropriately set.

Greg

I have same problem. default java_home is /usr/lib/jvm/java-8-oracle

How to solve the problem