Unable to connect to openfire with spark, so starting here

I am not able to connect to my openfire server (which seems to be installed and working on Debian Etch. I can get to the admin console and add plugins (all the fun stuff) and create users with ease. But when I try to access the openfire account through spark I get “unknown username or password” which I have created and recreated several times. Anyway, I start going through the logs and figured I would start with the obvious error logs. Problem is I have know idea what they mean. So, here they are:

at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)

at java.net.ServerSocket.bind(ServerSocket.java:319)

at java.net.ServerSocket.(XMPPServer.java:148)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:494)

at java.lang.Class.newInstance0(Class.java:350)

at java.lang.Class.newInstance(Class.java:303)

at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:93)

at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:49)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)

at com.install4j.runtime.Launcher.main(Unknown Source)

2007.05.02 14:06:34 org.jivesoftware.openfire.spi.ConnectionManagerImpl.startClientListeners(Connect ionManagerImpl.java:270) Could not setup a server socket

java.net.BindException: Address already in use

at sun.nio.ch.Net.bind(Native Method)

at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)

at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)

at org.apache.mina.transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor. java:397)

at org.apache.mina.transport.socket.nio.SocketAcceptor.access$900(SocketAcceptor.j ava:55)

at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(SocketAcceptor.j ava:232)

at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:43)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 650)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

at java.lang.Thread.run(Thread.java:595)

2007.05.02 14:06:35 org.jivesoftware.openfire.spi.ConnectionManagerImpl.startClientSSLListeners(Conn ectionManagerImpl.java:360) Could not setup SSL socket

java.net.BindException: Address already in use

at sun.nio.ch.Net.bind(Native Method)

at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)

at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)

at org.apache.mina.transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor. java:397)

at org.apache.mina.transport.socket.nio.SocketAcceptor.access$900(SocketAcceptor.j ava:55)

at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(SocketAcceptor.j ava:232)

at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:43)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 650)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

at java.lang.Thread.run(Thread.java:595)

2007.05.02 15:12:00 org.jivesoftware.util.log.util.CommonsLogFactory$1.error(CommonsLogFactory.java: 87) Line=19 The content of element type “dwr” must match “(init?,allow?,signatures?)”.

I have turned on the debugging, so here is the info from that:

2007.05.02 15:11:59 - autowire-by-type: accessControl=uk.ltd.getahead.dwr.impl.DefaultAccessControl

2007.05.02 15:11:59 - autowire-by-type: converterManager=uk.ltd.getahead.dwr.impl.DefaultConverterManager

2007.05.02 15:11:59 - autowire-by-type: creatorManager=uk.ltd.getahead.dwr.impl.DefaultCreatorManager

2007.05.02 15:11:59 Trying to autowire: uk.ltd.getahead.dwr.impl.DefaultConverterManager

2007.05.02 15:11:59 - skipped autowire: converters

2007.05.02 15:11:59 Trying to autowire: uk.ltd.getahead.dwr.impl.DefaultCreatorManager

2007.05.02 15:11:59 - skipped autowire: creators

2007.05.02 15:11:59 - autowire-by-name: debug=true

2007.05.02 15:11:59 Trying to autowire: uk.ltd.getahead.dwr.impl.DefaultProcessor

2007.05.02 15:11:59 - autowire-by-name: file=uk.ltd.getahead.dwr.impl.FileProcessor@1c6bbd3

2007.05.02 15:11:59 - autowire-by-name: index=uk.ltd.getahead.dwr.impl.DefaultIndexProcessor@554189

2007.05.02 15:11:59 - autowire-by-name: test=uk.ltd.getahead.dwr.impl.DefaultTestProcessor@141a32f

2007.05.02 15:11:59 - autowire-by-name: exec=uk.ltd.getahead.dwr.impl.DefaultExecProcessor@40a1e1

2007.05.02 15:11:59 - autowire-by-name: interface=uk.ltd.getahead.dwr.impl.DefaultInterfaceProcessor@143c423

2007.05.02 15:11:59 - skipped autowire: nullPathInfoWorkaround

2007.05.02 15:11:59 Trying to autowire: uk.ltd.getahead.dwr.impl.DefaultWebContextBuilder

2007.05.02 15:11:59 retrieved system configuration file: sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@1ff83

2007.05.02 15:11:59 Creator ‘‘pageflow’’ not loaded due to ClassNotFoundException. This is only an problem if you wanted to use it. Cause: Beehive/Weblogic Creator not available.

2007.05.02 15:11:59 Creator ‘‘spring’’ not loaded due to NoClassDefFoundError. This is only an problem if you wanted to use it. Cause: org/springframework/beans/factory/BeanFactory

2007.05.02 15:11:59 Creator ‘‘script’’ not loaded due to NoClassDefFoundError. This is only an problem if you wanted to use it. Cause: org/apache/bsf/BSFException

2007.05.02 15:12:00 Converter ‘‘jdom’’ not loaded due to NoClassDefFoundError. This is only an problem if you wanted to use it. Cause: org/jdom/Document

2007.05.02 15:12:00 Converter ‘‘hibernate’’ not loaded due to ClassNotFoundException. This is only an problem if you wanted to use it. Cause: Failed to find either org.hibernate.Hibernate or net.sf.hibernate.Hibernate.

2007.05.02 15:12:00 Type ‘‘org.jdom.Document’’ is not convertable due to missing converter ‘‘jdom’’. This is only an problem if you wanted to use it.

2007.05.02 15:12:00 Type ‘‘org.jdom.Element’’ is not convertable due to missing converter ‘‘jdom’’. This is only an problem if you wanted to use it.

2007.05.02 15:13:58 Created new LdapManager() instance, fields:

host: []

port: 389

usernamefield: uid

baseDN:

alternateBaseDN: null

nameField: cn

emailField: mail

adminDN: null

adminPassword: null

searchFilter: null

subTreeSearch:true

ldapDebugEnabled: false

sslEnabled: false

initialContextFactory: com.sun.jndi.ldap.LdapCtxFactory

connectionPoolEnabled: true

autoFollowReferrals: false

groupNameField: cn

groupMemberField: member

groupDescriptionField: description

posixMode: false

groupSearchFilter: null

2007.05.02 15:14:52 EOF

2007.05.03 11:56:24 Ignoring extra content {}

2007.05.03 12:36:24 Ignoring extra content {}

It seems like everything should be working. The install was error free and super simple. I know not how to fix the issue I have only because I don’'t know what the error logs are telling me.

Any help would be great…

Hey SoOreBeer,

The java.net.BindException: Address already in use error means that the server failed to listen on the given port since some other process is using the same port. I would recommend to stop the server and check that the 5222, 5223, 5269, 9090 and 9091 ports are not being used by some other process.

It is possible that you are running 2 Openfire servers in the same machine or may be you left some other XMPP server in that machine before using Openfire. Anyway, kill the process that is using those ports and then start Openfire. Make sure that that error is no longer in the error logs.

Regards,

– Gato

Thanks for the reply!

Well, at this point everything seems to be working fine! The issue (from what I could tell) was the server name. I changed the name to jabber.ourserver.org and bounced the server. Pointed users to that server name and presto! All the ports work and it just works great! We also ran into another problem where the IM gateway was not working. But after several runs at it we figured out it was the firewall not allowing our server access through port 443.

We are currently using the software and all seems well! What a great product you have!