Projects tigase _server server-core Issues #606
Getting "Password not verified" message when XMPP server is running in windows service mode (#606)
Vijay Kaimal opened 9 years ago

During authentication, we are getting the error message "DATA=Password not verified" when the XMPP server is running in windows service mode

Please note, everything is working perfect when the XMPP server is running in Console mode. Log file attached.

Andrzej Wójcik (Tigase) commented 9 years ago

I checked log and found following exceptions in it:

2015-12-02 16:18:12.966 [WrapperSimpleAppMain]  DataRepositoryImpl.initRepository()  SEVERE: null
java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at tigase.db.jdbc.DataRepositoryImpl.initRepository(DataRepositoryImpl.java:262)
	at tigase.db.RepositoryFactory.getDataRepository(RepositoryFactory.java:458)
	at tigase.db.jdbc.JDBCRepository.initRepository(JDBCRepository.java:575)
	at tigase.db.RepositoryFactory.getUserRepository(RepositoryFactory.java:660)
	at tigase.conf.ConfiguratorAbstract.addUserRepo(ConfiguratorAbstract.java:903)
	at tigase.conf.ConfiguratorAbstract.setProperties(ConfiguratorAbstract.java:832)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
	at tigase.server.MessageRouter.setConfig(MessageRouter.java:603)
	at tigase.server.XMPPServer.start(XMPPServer.java:142)
	at tigase.server.XMPPServer.main(XMPPServer.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
	at java.lang.Thread.run(Unknown Source)

2015-12-02 16:18:12.964 [WrapperSimpleAppMain]  RepositoryFactory.getDataRepository()  FINEST: No DataRepository, creating new; repo_pool_cls: tigase.db.DataRepositoryPool, repo_pool_size: 10
2015-12-02 16:18:12.966 [WrapperSimpleAppMain]  DataRepositoryImpl.initRepository()  SEVERE: null
java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at tigase.db.jdbc.DataRepositoryImpl.initRepository(DataRepositoryImpl.java:262)
	at tigase.db.RepositoryFactory.getDataRepository(RepositoryFactory.java:458)
	at tigase.db.jdbc.JDBCRepository.initRepository(JDBCRepository.java:575)
	at tigase.db.RepositoryFactory.getUserRepository(RepositoryFactory.java:660)
	at tigase.conf.ConfiguratorAbstract.addUserRepo(ConfiguratorAbstract.java:903)
	at tigase.conf.ConfiguratorAbstract.setProperties(ConfiguratorAbstract.java:832)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
	at tigase.server.MessageRouter.setConfig(MessageRouter.java:603)
	at tigase.server.XMPPServer.start(XMPPServer.java:142)
	at tigase.server.XMPPServer.main(XMPPServer.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
	at java.lang.Thread.run(Unknown Source)
2015-12-02 16:18:12.966 [WrapperSimpleAppMain]  DataRepositoryImpl.initRepository()  INFO: Table schema found: dbo, database type: jtds, database driver: net.sourceforge.jtds.jdbc.Driver
2015-12-02 16:18:12.968 [WrapperSimpleAppMain]  ConfiguratorAbstract.setProperties()  SEVERE: Can't initialize user default repository: 
tigase.db.DBInitException: Problem initializing jdbc connection: jdbc:jtds:sqlserver://M82;databaseName=tigasedb;user=sa;password=moplsa123;schema=dbo;lastUpdateCount=false;cacheMetaData=false
	at tigase.db.jdbc.JDBCRepository.initRepository(JDBCRepository.java:612)
	at tigase.db.RepositoryFactory.getUserRepository(RepositoryFactory.java:660)
	at tigase.conf.ConfiguratorAbstract.addUserRepo(ConfiguratorAbstract.java:903)
	at tigase.conf.ConfiguratorAbstract.setProperties(ConfiguratorAbstract.java:832)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
	at tigase.server.MessageRouter.setConfig(MessageRouter.java:603)
	at tigase.server.XMPPServer.start(XMPPServer.java:142)
	at tigase.server.XMPPServer.main(XMPPServer.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
	at java.lang.Thread.run(Unknown Source)
Caused by: tigase.db.DBInitException: Database initialization failed
	at tigase.db.jdbc.DataRepositoryImpl.initRepository(DataRepositoryImpl.java:296)
	at tigase.db.RepositoryFactory.getDataRepository(RepositoryFactory.java:458)
	at tigase.db.jdbc.JDBCRepository.initRepository(JDBCRepository.java:575)
	at tigase.db.RepositoryFactory.getUserRepository(RepositoryFactory.java:660)
	at tigase.conf.ConfiguratorAbstract.addUserRepo(ConfiguratorAbstract.java:903)
	at tigase.conf.ConfiguratorAbstract.setProperties(ConfiguratorAbstract.java:832)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
	at tigase.server.MessageRouter.setConfig(MessageRouter.java:603)
	at tigase.server.XMPPServer.start(XMPPServer.java:142)
	at tigase.server.XMPPServer.main(XMPPServer.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: No suitable driver found for jdbc:jtds:sqlserver://M82;databaseName=tigasedb;user=sa;password=moplsa123;schema=dbo;lastUpdateCount=false;cacheMetaData=false
	at java.sql.DriverManager.getConnection(Unknown Source)
	at java.sql.DriverManager.getConnection(Unknown Source)
	at tigase.db.jdbc.DataRepositoryImpl.initRepo(DataRepositoryImpl.java:433)
	at tigase.db.jdbc.DataRepositoryImpl.initRepository(DataRepositoryImpl.java:290)
	at tigase.db.RepositoryFactory.getDataRepository(RepositoryFactory.java:458)
	at tigase.db.jdbc.JDBCRepository.initRepository(JDBCRepository.java:575)
	at tigase.db.RepositoryFactory.getUserRepository(RepositoryFactory.java:660)
	at tigase.conf.ConfiguratorAbstract.addUserRepo(ConfiguratorAbstract.java:903)
	at tigase.conf.ConfiguratorAbstract.setProperties(ConfiguratorAbstract.java:832)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
	at tigase.server.MessageRouter.setConfig(MessageRouter.java:603)
	at tigase.server.XMPPServer.start(XMPPServer.java:142)
	at tigase.server.XMPPServer.main(XMPPServer.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
	at java.lang.Thread.run(Unknown Source)
2015-12-02 16:18:13.015 [WrapperSimpleAppMain]  RepositoryFactory.getAuthRepository()  FINEST: Getting AuthRepository using: tigase.db.jdbc.TigaseCustomAuth for: jdbc:jtds:sqlserver://M82;databaseName=tigasedb;user=sa;password=moplsa123;schema=dbo;lastUpdateCount=false;cacheMetaData=false; repository instance: 
2015-12-02 16:18:13.017 [WrapperSimpleAppMain]  RepositoryFactory.getRepoClass()  FINEST: checking if tigase.db.jdbc.DataRepositoryImpl for tigase.db.DataRepository supports jdbc:jtds:sqlserver://M82;databaseName=tigasedb;user=sa;password=moplsa123;schema=dbo;lastUpdateCount=false;cacheMetaData=false while it supports jdbc:[^:]+:.* result = true
2015-12-02 16:18:13.018 [WrapperSimpleAppMain]  RepositoryFactory.getDataRepository()  FINEST: Getting DataRepository: tigase.db.jdbc.DataRepositoryImpl for: jdbc:jtds:sqlserver://M82;databaseName=tigasedb;user=sa;password=moplsa123;schema=dbo;lastUpdateCount=false;cacheMetaData=false; repository instance: 
2015-12-02 16:18:13.019 [WrapperSimpleAppMain]  RepositoryFactory.getDataRepository()  FINEST: No DataRepository, creating new; repo_pool_cls: tigase.db.DataRepositoryPool, repo_pool_size: 10
2015-12-02 16:18:13.019 [WrapperSimpleAppMain]  DataRepositoryImpl.initRepository()  SEVERE: null
java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at tigase.db.jdbc.DataRepositoryImpl.initRepository(DataRepositoryImpl.java:262)
	at tigase.db.RepositoryFactory.getDataRepository(RepositoryFactory.java:458)
	at tigase.db.jdbc.TigaseCustomAuth.initRepository(TigaseCustomAuth.java:478)
	at tigase.db.RepositoryFactory.getAuthRepository(RepositoryFactory.java:382)
	at tigase.conf.ConfiguratorAbstract.addAuthRepo(ConfiguratorAbstract.java:872)
	at tigase.conf.ConfiguratorAbstract.setProperties(ConfiguratorAbstract.java:849)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
	at tigase.server.MessageRouter.setConfig(MessageRouter.java:603)
	at tigase.server.XMPPServer.start(XMPPServer.java:142)
	at tigase.server.XMPPServer.main(XMPPServer.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
	at java.lang.Thread.run(Unknown Source)
2015-12-02 16:18:13.037 [WrapperSimpleAppMain]  DataRepositoryImpl.initRepository()  INFO: Table schema found: dbo, database type: jtds, database driver: net.sourceforge.jtds.jdbc.Driver
2015-12-02 16:18:13.038 [WrapperSimpleAppMain]  ConfiguratorAbstract.setProperties()  SEVERE: Can't initialize auth default repository: 
tigase.db.DBInitException: Problem initializing jdbc connection: jdbc:jtds:sqlserver://M82;databaseName=tigasedb;user=sa;password=moplsa123;schema=dbo;lastUpdateCount=false;cacheMetaData=false
	at tigase.db.jdbc.TigaseCustomAuth.initRepository(TigaseCustomAuth.java:548)
	at tigase.db.RepositoryFactory.getAuthRepository(RepositoryFactory.java:382)
	at tigase.conf.ConfiguratorAbstract.addAuthRepo(ConfiguratorAbstract.java:872)
	at tigase.conf.ConfiguratorAbstract.setProperties(ConfiguratorAbstract.java:849)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
	at tigase.server.MessageRouter.setConfig(MessageRouter.java:603)
	at tigase.server.XMPPServer.start(XMPPServer.java:142)
	at tigase.server.XMPPServer.main(XMPPServer.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
	at java.lang.Thread.run(Unknown Source)
Caused by: tigase.db.DBInitException: Database initialization failed
	at tigase.db.jdbc.DataRepositoryImpl.initRepository(DataRepositoryImpl.java:296)
	at tigase.db.RepositoryFactory.getDataRepository(RepositoryFactory.java:458)
	at tigase.db.jdbc.TigaseCustomAuth.initRepository(TigaseCustomAuth.java:478)
	at tigase.db.RepositoryFactory.getAuthRepository(RepositoryFactory.java:382)
	at tigase.conf.ConfiguratorAbstract.addAuthRepo(ConfiguratorAbstract.java:872)
	at tigase.conf.ConfiguratorAbstract.setProperties(ConfiguratorAbstract.java:849)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
	at tigase.server.MessageRouter.setConfig(MessageRouter.java:603)
	at tigase.server.XMPPServer.start(XMPPServer.java:142)
	at tigase.server.XMPPServer.main(XMPPServer.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: No suitable driver found for jdbc:jtds:sqlserver://M82;databaseName=tigasedb;user=sa;password=moplsa123;schema=dbo;lastUpdateCount=false;cacheMetaData=false
	at java.sql.DriverManager.getConnection(Unknown Source)
	at java.sql.DriverManager.getConnection(Unknown Source)
	at tigase.db.jdbc.DataRepositoryImpl.initRepo(DataRepositoryImpl.java:433)
	at tigase.db.jdbc.DataRepositoryImpl.initRepository(DataRepositoryImpl.java:290)
	at tigase.db.RepositoryFactory.getDataRepository(RepositoryFactory.java:458)
	at tigase.db.jdbc.TigaseCustomAuth.initRepository(TigaseCustomAuth.java:478)
	at tigase.db.RepositoryFactory.getAuthRepository(RepositoryFactory.java:382)
	at tigase.conf.ConfiguratorAbstract.addAuthRepo(ConfiguratorAbstract.java:872)
	at tigase.conf.ConfiguratorAbstract.setProperties(ConfiguratorAbstract.java:849)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
	at tigase.server.MessageRouter.setConfig(MessageRouter.java:603)
	at tigase.server.XMPPServer.start(XMPPServer.java:142)
	at tigase.server.XMPPServer.main(XMPPServer.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
	at java.lang.Thread.run(Unknown Source)

2015-12-02 16:18:14.273 [WrapperSimpleAppMain]  DataRepositoryImpl.initRepository()  SEVERE: null
java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at tigase.db.jdbc.DataRepositoryImpl.initRepository(DataRepositoryImpl.java:262)
	at tigase.db.RepositoryFactory.getDataRepository(RepositoryFactory.java:458)
	at tigase.muc.history.AbstractJDBCHistoryProvider.initRepository(AbstractJDBCHistoryProvider.java:68)
	at tigase.muc.history.HistoryManagerFactory.getHistoryManager(HistoryManagerFactory.java:81)
	at tigase.muc.MUCComponent.setProperties(MUCComponent.java:457)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addComponent(MessageRouter.java:108)
	at tigase.server.MessageRouter.addRouter(MessageRouter.java:145)
	at tigase.server.MessageRouter.setProperties(MessageRouter.java:704)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
	at tigase.server.MessageRouter.setConfig(MessageRouter.java:603)
	at tigase.server.XMPPServer.start(XMPPServer.java:142)
	at tigase.server.XMPPServer.main(XMPPServer.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
	at java.lang.Thread.run(Unknown Source)

2015-12-02 16:18:17.233 [WrapperSimpleAppMain]  RepositoryFactory.getRepoClass()  FINEST: checking if tigase.pubsub.repository.PubSubDAOJDBC for tigase.pubsub.repository.IPubSubDAO supports jdbc:jtds:sqlserver://M82;databaseName=tigasedb;user=sa;password=moplsa123;schema=dbo;lastUpdateCount=false;cacheMetaData=false while it supports jdbc:[^:]+:.* result = true
2015-12-02 16:18:17.235 [WrapperSimpleAppMain]  PubSubDAOJDBC.initRepo()      SEVERE:   null
java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at tigase.pubsub.repository.PubSubDAOJDBC.initRepo(PubSubDAOJDBC.java:828)
	at tigase.pubsub.repository.PubSubDAOJDBC.initRepository(PubSubDAOJDBC.java:690)
	at tigase.pubsub.repository.PubSubDAO.init(PubSubDAO.java:184)
	at tigase.pubsub.PubSubComponent.createDAO(PubSubComponent.java:308)
	at tigase.pubsub.PubSubComponent.setProperties(PubSubComponent.java:675)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addComponent(MessageRouter.java:108)
	at tigase.server.MessageRouter.addRouter(MessageRouter.java:145)
	at tigase.server.MessageRouter.setProperties(MessageRouter.java:704)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
	at tigase.server.MessageRouter.setConfig(MessageRouter.java:603)
	at tigase.server.XMPPServer.start(XMPPServer.java:142)
	at tigase.server.XMPPServer.main(XMPPServer.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
	at java.lang.Thread.run(Unknown Source)
2015-12-02 16:18:17.237 [WrapperSimpleAppMain]  PubSubComponent.setProperties()  SEVERE: Can't initialize pubsub repository: tigase.pubsub.repository.RepositoryException: tigase.db.DBInitException: Problem initializing jdbc connection: jdbc:jtds:sqlserver://M82;databaseName=tigasedb;user=sa;password=moplsa123;schema=dbo;lastUpdateCount=false;cacheMetaData=false

2015-12-02 16:18:28.924 [urn:ietf:params:xml:ns:xmpp-sasl Queue Worker 3]  AuthRepositoryMDImpl.otherAuth()  WARNING: Couldn't obtain user repository for domain: m82, not even default one!

After analysis of this exceptions I found that classpath is not properly set for wrapper and changed it properly point to correct jars.

%wojtek - Could you check that current configuration of wrapper.conf is now correct?

wojciech.kapcia@tigase.net commented 9 years ago

Andrzej Wójcik wrote:

After analysis of this exceptions I found that classpath is not properly set for wrapper and changed it properly point to correct jars.

wojtek - Could you check that current configuration of wrapper.conf is now correct?

While it should solve reported issue I think that wrapper.java.classpath could be corrected altogether - removed obsolete entries (xmltools, utils, etc.) and add current set of libraries shipped by Tigase. Alternatively, given that we are using Tanuki Java Wrapper we could simply use wildcard:

wrapper.java.classpath.1=jars/*.jar

%daniel - can you verify that such wrapper configuration works correctly under windows while running Tigase as a service?

Daniel Wisnewski commented 9 years ago

Current configuration works OK. Thanks for the fix %andrzej.wojcik, for some reason previous builds did not throw any errors with the directories.

I think it's best to not use wildcards in case a windows version has an issue with them.

Vijay, can you confirm the new configuration works okay? You can extract the wrapper.conf file from a nighly build -dist-max under win-stuff.

Vijay Kaimal commented 9 years ago

Yes, it seems to be working in the nightly build of 10-Dec-2015.

Vijay Kaimal commented 9 years ago

Thanks :)

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
3735
Version
tigase-server-7.1.0
Spent time
7h 30m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#606
Please wait...
Page is in error, reload to recover