起步软件技术论坛-X3

 找回密码
 立即注册
搜索
查看: 204|回复: 7

【搞定】oas中messager无法启动**

[复制链接]
发表于 2007-4-25 16:45:34 | 显示全部楼层 |阅读模式
我是用的oracle 数据库

平台使用正常,imserver无法启动

imserver错误日志如下

2007.04.25 16:37:45 [org.jivesoftware.database.ConnectionPool.<init>(ConnectionPool.java:108)
] Failed to create new connections on startup. Attempt 0 of 3
java.sql.SQLException: Unable to get information from SQL Server: 127.0.0.1.
[U][B]config.justep.xml配置正常,使用oracle数据库,没有使用sql server 数据库[/B] [/U]  
        at net.sourceforge.jtds.jdbc.MSSqlServerInfo.<init>(MSSqlServerInfo.java:91)
        at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:263)
        at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50)
        at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178)
        at java.sql.DriverManager.getConnection(DriverManager.java:525)
        at java.sql.DriverManager.getConnection(DriverManager.java:171)
        at org.jivesoftware.database.ConnectionPool.createCon(ConnectionPool.java:437)
        at org.jivesoftware.database.ConnectionPool.<init>(ConnectionPool.java:85)
        at org.jivesoftware.database.DefaultConnectionProvider.start(DefaultConnectionProvider.java:83)
        at org.jivesoftware.database.DbConnectionManager.setConnectionProvider(DbConnectionManager.java:351)
        at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:98)
        at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:269)
        at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:67)
        at org.jivesoftware.util.JiveProperties.<init>(JiveProperties.java:49)
        at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:43)
        at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:495)
        at org.jivesoftware.wildfire.XMPPServer.initialize(XMPPServer.java:330)
        at org.jivesoftware.wildfire.XMPPServer.start(XMPPServer.java:408)
        at org.jivesoftware.wildfire.XMPPServer.<init>(XMPPServer.java:176)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.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.wildfire.starter.ServerStarter.start(ServerStarter.java:88)
        at org.jivesoftware.wildfire.starter.ServerStarter.main(ServerStarter.java:49)



2007.04.25 16:38:01 [org.jivesoftware.database.ConnectionPool.<init>(ConnectionPool.java:108)
] Failed to create new connections on startup. Attempt 1 of 3
java.sql.SQLException: Unable to get information from SQL Server: 127.0.0.1.
        at net.sourceforge.jtds.jdbc.MSSqlServerInfo.<init>(MSSqlServerInfo.java:91)
        at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:263)
        at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50)
        at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178)
        at java.sql.DriverManager.getConnection(DriverManager.java:525)
        at java.sql.DriverManager.getConnection(DriverManager.java:171)
        at org.jivesoftware.database.ConnectionPool.createCon(ConnectionPool.java:437)
        at org.jivesoftware.database.ConnectionPool.<init>(ConnectionPool.java:85)
        at org.jivesoftware.database.DefaultConnectionProvider.start(DefaultConnectionProvider.java:83)
        at org.jivesoftware.database.DbConnectionManager.setConnectionProvider(DbConnectionManager.java:351)
        at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:98)
        at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:269)
        at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:67)
        at org.jivesoftware.util.JiveProperties.<init>(JiveProperties.java:49)
        at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:43)
        at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:495)
        at org.jivesoftware.wildfire.XMPPServer.initialize(XMPPServer.java:330)
        at org.jivesoftware.wildfire.XMPPServer.start(XMPPServer.java:408)
        at org.jivesoftware.wildfire.XMPPServer.<init>(XMPPServer.java:176)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.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.wildfire.starter.ServerStarter.start(ServerStarter.java:88)
        at org.jivesoftware.wildfire.starter.ServerStarter.main(ServerStarter.java:49)



2007.04.25 16:38:17 [org.jivesoftware.database.ConnectionPool.<init>(ConnectionPool.java:108)
] Failed to create new connections on startup. Attempt 2 of 3
java.sql.SQLException: Unable to get information from SQL Server: 127.0.0.1.
        at net.sourceforge.jtds.jdbc.MSSqlServerInfo.<init>(MSSqlServerInfo.java:91)
        at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:263)
        at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50)
        at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178)
        at java.sql.DriverManager.getConnection(DriverManager.java:525)
        at java.sql.DriverManager.getConnection(DriverManager.java:171)
        at org.jivesoftware.database.ConnectionPool.createCon(ConnectionPool.java:437)
        at org.jivesoftware.database.ConnectionPool.<init>(ConnectionPool.java:85)
        at org.jivesoftware.database.DefaultConnectionProvider.start(DefaultConnectionProvider.java:83)
        at org.jivesoftware.database.DbConnectionManager.setConnectionProvider(DbConnectionManager.java:351)
        at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:98)
        at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:269)
        at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:67)
        at org.jivesoftware.util.JiveProperties.<init>(JiveProperties.java:49)
        at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:43)
        at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:495)
        at org.jivesoftware.wildfire.XMPPServer.initialize(XMPPServer.java:330)
        at org.jivesoftware.wildfire.XMPPServer.start(XMPPServer.java:408)
        at org.jivesoftware.wildfire.XMPPServer.<init>(XMPPServer.java:176)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.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.wildfire.starter.ServerStarter.start(ServerStarter.java:88)
        at org.jivesoftware.wildfire.starter.ServerStarter.main(ServerStarter.java:49)



2007.04.25 16:38:27 [org.jivesoftware.database.DefaultConnectionProvider.start(DefaultConnectionProvider.java:88)
]
java.io.IOException
        at org.jivesoftware.database.ConnectionPool.<init>(ConnectionPool.java:120)
        at org.jivesoftware.database.DefaultConnectionProvider.start(DefaultConnectionProvider.java:83)
        at org.jivesoftware.database.DbConnectionManager.setConnectionProvider(DbConnectionManager.java:351)
        at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:98)
        at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:269)
        at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:67)
        at org.jivesoftware.util.JiveProperties.<init>(JiveProperties.java:49)
        at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:43)
        at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:495)
        at org.jivesoftware.wildfire.XMPPServer.initialize(XMPPServer.java:330)
        at org.jivesoftware.wildfire.XMPPServer.start(XMPPServer.java:408)
        at org.jivesoftware.wildfire.XMPPServer.<init>(XMPPServer.java:176)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.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.wildfire.starter.ServerStarter.start(ServerStarter.java:88)
        at org.jivesoftware.wildfire.starter.ServerStarter.main(ServerStarter.java:49)



2007.04.25 16:38:27 [org.jivesoftware.database.DefaultConnectionProvider.getConnection(DefaultConnectionProvider.java:68)
] Warning: DbConnectionDefaultPool.getConnection() was called before the internal pool has been initialized.
2007.04.25 16:38:27 [org.jivesoftware.database.DbConnectionManager.setConnectionProvider(DbConnectionManager.java:369)
]
java.lang.NullPointerException
        at org.jivesoftware.database.DbConnectionManager.setMetaData(DbConnectionManager.java:533)
        at org.jivesoftware.database.DbConnectionManager.setConnectionProvider(DbConnectionManager.java:356)
        at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:98)
        at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:269)
        at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:67)
        at org.jivesoftware.util.JiveProperties.<init>(JiveProperties.java:49)
        at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:43)
        at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:495)
        at org.jivesoftware.wildfire.XMPPServer.initialize(XMPPServer.java:330)
        at org.jivesoftware.wildfire.XMPPServer.start(XMPPServer.java:408)
        at org.jivesoftware.wildfire.XMPPServer.<init>(XMPPServer.java:176)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.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.wildfire.starter.ServerStarter.start(ServerStarter.java:88)
        at org.jivesoftware.wildfire.starter.ServerStarter.main(ServerStarter.java:49)



2007.04.25 16:38:28 [org.jivesoftware.database.DefaultConnectionProvider.getConnection(DefaultConnectionProvider.java:68)
] Warning: DbConnectionDefaultPool.getConnection() was called before the internal pool has been initialized.
2007.04.25 16:38:28 [org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:116)
] WARNING: ConnectionManager.getConnection() failed to obtain a connection.
2007.04.25 16:38:28 [org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:280)
]
java.lang.NullPointerException
        at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:270)
        at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:67)
        at org.jivesoftware.util.JiveProperties.<init>(JiveProperties.java:49)
        at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:43)
        at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:495)
        at org.jivesoftware.wildfire.XMPPServer.initialize(XMPPServer.java:330)
        at org.jivesoftware.wildfire.XMPPServer.start(XMPPServer.java:408)
        at org.jivesoftware.wildfire.XMPPServer.<init>(XMPPServer.java:176)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.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.wildfire.starter.ServerStarter.start(ServerStarter.java:88)
        at org.jivesoftware.wildfire.starter.ServerStarter.main(ServerStarter.java:49)



2007.04.25 16:38:28 [org.jivesoftware.database.DefaultConnectionProvider.getConnection(DefaultConnectionProvider.java:68)
] Warning: DbConnectionDefaultPool.getConnection() was called before the internal pool has been initialized.
2007.04.25 16:38:28 [org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:116)
] WARNING: ConnectionManager.getConnection() failed to obtain a connection.
2007.04.25 16:38:28 [org.jivesoftware.wildfire.XMPPServer.verifyDataSource(XMPPServer.java:667)
] Database could not be accessed
java.lang.NullPointerException
        at org.jivesoftware.wildfire.XMPPServer.verifyDataSource(XMPPServer.java:657)
        at org.jivesoftware.wildfire.XMPPServer.start(XMPPServer.java:412)
        at org.jivesoftware.wildfire.XMPPServer.<init>(XMPPServer.java:176)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.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.wildfire.starter.ServerStarter.start(ServerStarter.java:88)
        at org.jivesoftware.wildfire.starter.ServerStarter.main(ServerStarter.java:49)
2007.04.25 16:38:28 [org.jivesoftware.wildfire.XMPPServer.start(XMPPServer.java:442)
]
java.lang.IllegalArgumentException: java.lang.NullPointerException
        at org.jivesoftware.wildfire.XMPPServer.verifyDataSource(XMPPServer.java:668)
        at org.jivesoftware.wildfire.XMPPServer.start(XMPPServer.java:412)
        at org.jivesoftware.wildfire.XMPPServer.<init>(XMPPServer.java:176)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.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.wildfire.starter.ServerStarter.start(ServerStarter.java:88)
        at org.jivesoftware.wildfire.starter.ServerStarter.main(ServerStarter.java:49)
Caused by: java.lang.NullPointerException
        at org.jivesoftware.wildfire.XMPPServer.verifyDataSource(XMPPServer.java:657)
        ... 10 more
回复

使用道具 举报

发表于 2007-4-25 17:27:12 | 显示全部楼层
j检查一下配置文件,吧conf目录下面的wildfire.xml文件贴上来看一下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-26 09:34:18 | 显示全部楼层
<?xml version="1.0" encoding="UTF-8"?>

<!--
    This file stores bootstrap properties needed by Wildfire.
    Property names must be in the format: "prop.name.is.blah=value"
    That will be stored as:
        <prop>
            <name>
                <is>
                    <blah>value</blah>
                </is>
            </name>
        </prop>

    Most properties are stored in the Wildfire database. A
        property viewer and editor is included in the admin console.
-->
<!-- root element, all properties must be under this element -->
<jive>
  <adminConsole>
    <!-- Disable either port by setting the value to -1 -->  
    <port>9090</port>  
    <securePort>9091</securePort>
  </adminConsole>  
  <admin>
    <!-- Use this section to define users that will have admin privileges. Below,
          you will find two ways to specify which users are admins. Admins will
          have access to the admin console (only local users) and may have also access
          to other functionalities like ad-hoc commands. -->  
    <!-- By default, only the user with the username "admin" can login
         to the admin console. Alternatively, you can specify a comma-delimitted
         list usernames that should be authorized to login to the admin console
         by setting the <authorizedUsernames> field below. -->  
    <!-- <authorizedUsernames></authorizedUsernames> -->  
    <!-- Comma-delimitted list of bare JIDs. The JIDs may belong to local
         or remote users. -->  
    <!-- <authorizedJIDs></authorizedJIDs> -->
  </admin>  
  <locale>zh_CN</locale>  
  <!-- Network settings. By default, Wildfire will bind to all network interfaces.
      Alternatively, you can specify a specific network interfaces that the server
      will listen on. For example, 127.0.0.1. This setting is generally only useful
       on multi-homed servers. -->  
  <!--
    <network>
        <interface></interface>
    </network>
    -->  
  <!-- Example LDAP settings -->  
  <!--
    <ldap>
        <host></host>
        <port>389</port>
        <usernameField>uid</usernameField>
        <nameField>cn</nameField>
        <emailField>mail</emailField>
        <baseDN></baseDN>
        <adminDN></adminDN>
        <adminPassword></adminPassword>
    </ldap>
    <provider>
        <user>
            <className>org.jivesoftware.wildfire.ldap.LdapUserProvider</className>
        </user>
        <auth>
            <className>org.jivesoftware.wildfire.ldap.LdapAuthProvider</className>
        </auth>
    </provider>
    -->  
  <!-- End example LDAP settings -->  
  <provider>
    <user>
      <className>com.justep.wildfire.JustepUserProvider</className>
    </user>  
    <auth>
      <className>com.justep.wildfire.JustepAuthProvider</className>
    </auth>
  </provider>  
  <connectionProvider>
    <className>org.jivesoftware.database.DefaultConnectionProvider</className>
  </connectionProvider>  
  <database>
    <defaultProvider>
      <driver>oracle.jdbc.driver.OracleDriver</driver>  
      <serverURL>jdbcracleciora10</serverURL>  
      <username>cae</username>  
      <password>cae</password>  
      <minConnections>5</minConnections>  
      <maxConnections>15</maxConnections>  
      <connectionTimeout>1.0</connectionTimeout>
    </defaultProvider>
  </database>  
  <log>
    <debug>
      <enabled>true</enabled>
    </debug>
  </log>  
  <setup>true</setup>
</jive>
回复 支持 反对

使用道具 举报

发表于 2007-4-26 11:28:01 | 显示全部楼层
oracle
驱动ojdbc14.jar放到IMserver\lib目录了么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-26 13:08:29 | 显示全部楼层
放了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-26 14:29:38 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2007-4-26 15:07:58 | 显示全部楼层
检查一下oracle驱动使用的对不对?机器是否还装过oracle客户端?除了oas?如果装了看一下环境变量path中那个客户端在前面?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-29 14:11:51 | 显示全部楼层
在另一个服务器上可以使用了,呵呵,多谢
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Justep Inc.

GMT+8, 2025-1-8 05:56 , Processed in 0.040299 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表