起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: crcctr

[结贴] 文档服务器启动报错啦

[复制链接]

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35949
发表于 2016-2-22 11:21:14 | 显示全部楼层
只发错误信息,可以分开放
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

2

主题

18

帖子

34

积分

新手上路

Rank: 1

积分
34
QQ
 楼主| 发表于 2016-2-22 15:08:05 | 显示全部楼层
jishuang 发表于 2016-2-22 11:21
只发错误信息,可以分开放

报错信息如下

D:\doc-server-win>set JAVA_HOME=D:\doc-server-win\jre

D:\doc-server-win>set DAISY_HOME=D:\doc-server-win\daisy-2.3

D:\doc-server-win>cd daisy-2.3\repository-server\bin

D:\doc-server-win\daisy-2.3\repository-server\bin>call daisy-repository-server ..\data
[main] INFO  org.outerj.daisy.runtime.info - Starting the Daisy repository server.
[main] INFO  org.outerj.daisy.runtime.info - Reading container configurations of 13 containers.
[main] INFO  org.outerj.daisy.runtime.info - Instantiating the component containers.
[main] INFO  org.outerj.daisy.runtime.info - Starting container configuration - D:\doc-server-win\daisy-2.3\lib\daisy\ja
rs\daisy-configuration-impl-2.3.jar
[main] INFO  org.outerj.daisy.runtime.info - Starting container jmx - D:\doc-server-win\daisy-2.3\lib\daisy\jars\daisy-j
mx-2.3.jar
[main] INFO  org.outerj.daisy.runtime.info - Starting container pluginregistry - D:\doc-server-win\daisy-2.3\lib\daisy\j
ars\daisy-pluginregistry-impl-2.3.jar
[main] INFO  org.outerj.daisy.runtime.info - Starting container driverregistrar - D:\doc-server-win\daisy-2.3\lib\daisy\
jars\daisy-driverregistrar-2.3.jar
[main] INFO  org.outerj.daisy.runtime.info - Starting container jms - D:\doc-server-win\daisy-2.3\lib\daisy\jars\daisy-j
msclient-impl-2.3.jar
[main] INFO  org.outerj.daisy.runtime.info - Starting container datasource - D:\doc-server-win\daisy-2.3\lib\daisy\jars\
daisy-datasource-2.3.jar
[main] INFO  org.outerj.daisy.runtime.info - Starting container linkextractors - D:\doc-server-win\daisy-2.3\lib\daisy\j
ars\daisy-linkextractors-impl-2.3.jar
[main] INFO  org.outerj.daisy.runtime.info - Starting container textextraction - D:\doc-server-win\daisy-2.3\lib\daisy\j
ars\daisy-textextraction-impl-2.3.jar
[main] INFO  org.outerj.daisy.runtime.info - Starting container ntlm - D:\doc-server-win\daisy-2.3\lib\daisy\jars\daisy-
auth-ntlm-2.3.jar
[main] INFO  org.outerj.daisy.runtime.info - Starting container ldap - D:\doc-server-win\daisy-2.3\lib\daisy\jars\daisy-
auth-ldap-2.3.jar
[main] INFO  org.outerj.daisy.runtime.info - Starting container imagehook - D:\doc-server-win\daisy-2.3\lib\daisy\jars\d
aisy-image-presavehook-2.3.jar
[main] INFO  org.outerj.daisy.runtime.info - Starting container repository - D:\doc-server-win\daisy-2.3\lib\daisy\jars\
daisy-repository-server-impl-2.3.jar
org.outerj.daisy.runtime.DaisyRTException: Error constructing component container defined at D:\doc-server-win\daisy-2.3
\lib\daisy\jars\daisy-repository-server-impl-2.3.jar
        at org.outerj.daisy.runtime.component.ContainerConfigImpl.build(ContainerConfigImpl.java:114)
        at org.outerj.daisy.runtime.DaisyRuntime.init(DaisyRuntime.java:91)
        at org.outerj.daisy.runtime.cli.DaisyRuntimeCli.run(DaisyRuntimeCli.java:177)
        at org.outerj.daisy.runtime.cli.DaisyRuntimeCli.main(DaisyRuntimeCli.java:37)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:592)
        at org.outerj.daisy.launcher.repository.RuntimeCliLauncher.run(RuntimeCliLauncher.java:61)
        at org.outerj.daisy.launcher.repository.RuntimeCliLauncher.launch(RuntimeCliLauncher.java:41)
        at org.outerj.daisy.launcher.repository.RuntimeCliLauncher.main(RuntimeCliLauncher.java:37)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fullTextIndexUpdater'
defined in DAISY-INF/spring/applicationContext.xml in D:\doc-server-win\daisy-2.3\lib\daisy\jars\daisy-repository-serve
r-impl-2.3.jar: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class [org.outerj.daisy.ftindex.FullTextIndexUpdater]: Constructor threw exception; nested ex
ception is org.outerj.daisy.repository.AuthenticationFailedException: Authentication failed for login "internal" (unknow
n login, wrong password or unconfirmed registration).
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:23
1)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAuto
wireCapableBeanFactory.java:957)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutow
ireCapableBeanFactory.java:869)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCap
ableBeanFactory.java:514)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBea
nFactory.java:485)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab
leBeanFactory.java:455)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegis
try.java:169)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListable
BeanFactory.java:413)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplic
ationContext.java:735)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)
        at org.outerj.daisy.runtime.component.ContainerConfigImpl.build(ContainerConfigImpl.java:87)
        ... 10 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.outerj.daisy.ftin
dex.FullTextIndexUpdater]: Constructor threw exception; nested exception is org.outerj.daisy.repository.AuthenticationFa
iledException: Authentication failed for login "internal" (unknown login, wrong password or unconfirmed registration).
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:98)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy
.java:87)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:22
5)
        ... 24 more
Caused by: org.outerj.daisy.repository.AuthenticationFailedException: Authentication failed for login "internal" (unknow
n login, wrong password or unconfirmed registration).
        at org.outerj.daisy.authentication.impl.UserAuthenticatorImpl.authenticate(UserAuthenticatorImpl.java:141)
        at org.outerj.daisy.repository.serverimpl.LocalRepositoryManager.getRepository(LocalRepositoryManager.java:204)
        at org.outerj.daisy.ftindex.FullTextIndexUpdater.initialize(FullTextIndexUpdater.java:107)
        at org.outerj.daisy.ftindex.FullTextIndexUpdater.<init>(FullTextIndexUpdater.java:79)
        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:501)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:83)
        ... 26 more
Startup failed. Will try to shutdown and exit.
[main] INFO  org.outerj.daisy.runtime.info - Shutting down component containers.
请按任意键继续. . .
回复 支持 反对

使用道具 举报

2

主题

18

帖子

34

积分

新手上路

Rank: 1

积分
34
QQ
 楼主| 发表于 2016-2-22 15:10:48 | 显示全部楼层
jishuang 发表于 2016-2-22 11:21
只发错误信息,可以分开放

配置文件
</configuration>
  </target>

  <target path="/daisy/repository/blobstore">
    <configuration>
      <directory>${daisy.datadir}/blobstore</directory>
    </configuration>
  </target>

  <target path="/daisy/repository/fullTextIndex">
    <configuration>
      <!-- directory where index files should be stored -->
      <indexDirectory>${daisy.datadir}/indexstore</indexDirectory>
    </configuration>
  </target>

  <target path="/daisy/repository/fulltextindexupdater">
    <configuration>
      <repositoryUser login="internal" password="d7acf61ee6e5a519c74bc01deb8db56153683268"/>
    </configuration>
  </target>

  <target path="/daisy/repository/doctypemanager">
    <configuration>
      <repositoryUser login="internal" password="d7acf61ee6e5a519c74bc01deb8db56153683268"/>
    </configuration>
  </target>
<!--
  <target path="/daisy/repository/httpconnector">
    <configuration>
      <port>9263</port>
      <repositoryUser login="internal" password="d7acf61ee6e5a519c74bc01deb8db56153683268"/>
      <useSSL keystoreFile="C:\justep.keystore" keystorePass="justep" >false</useSSL>
    </configuration>
  </target>
-->
    <target path="/daisy/repository/httpconnector">
    <configuration>
        <repositoryUser login="internal" password="d7acf61ee6e5a519c74bc01deb8db56153683268"/>
        <!--<connector>
          <port>9443</port>
          <sslProtocol>TLS</sslProtocol>
          <keystoreFile>E:\workspace\distribution\doctest.keystore</keystoreFile>
          <keystorePass>justep</keystorePass>
        </connector>-->
        <connector>
          <port>9263</port>
        </connector>
    </configuration>
  </target>
  <target path="/daisy/emailer/emailer">
    <configuration>
      <smtpHost>undefined</smtpHost>
      <!-- The smtpLocalhost element is optional, and only required if
           InetAddress.getLocalHost().getHostName() fails to return something. -->
      <!-- smtpLocalhost>localhost</smtpLocalhost -->
      <!-- The smtpPort element is optional. Depending on the chosen protocol (i.e. boolean useSSL)
           the javax.mail libs will take the correct default when left blank. -->
      <!-- smtpPort>25</smtpPort -->
      <fromAddress>undefined@undefined._com</fromAddress>
      <useSSL>false</useSSL>
      <!--
      <authentication username="" password=""/>
      -->
      <startTLS>false</startTLS>
    </configuration>
  </target>

  <target path="/daisy/extensions/navigation/navigation-manager">
    <configuration>
      <repositoryUser login="internal" password="d7acf61ee6e5a519c74bc01deb8db56153683268"/>
    </configuration>
  </target>

  <target path="/daisy/extensions/emailnotifier/emailnotifier">
    <configuration>
      <repositoryUser password="d7acf61ee6e5a519c74bc01deb8db56153683268" user="internal"/>
      <!-- If you want to have URL's linking to documents in the notification mails,
           enable the following section.
           You can have different URL's depending on the collection the document
           belongs to. If a document belongs to multiple collections, the first entry
           that matches will be used. You can have an entry without collection attribute
           also, this obviously has to be the last entry since any entries following
           that wouldn't ever be matched.
           The same holds for branches and language: you can add branch and language
           attributes to use different URLs depending on the branch and language, missing
           branch and/or language means match whatever branch/language.
           If the URL pointed to doesn't have the branch and/or language as default,
           don't forget to add appropriate URL parameters for those.
      -->
      <!--
      <documentURLs>
      <documentURL collection="mycollection" branch="main" language="default" url="http://myhost.com/daisy/mysite/{id}"/>
        <documentURL collection="mycollection" url="http://myhost.com/daisy/mysite/{id}?branch={branch}&amp;language={language}"/>
        <documentURL url="http://myhost.com/daisy/mysite/{id}"/>
      </documentURLs>
      -->
      <!--
        For events caused by the users listed below, no notification e-mails
        will be sent out (to anyone). This is useful if you have e.g. an
        automated process which creates or updates documents (or any sort
        of entity: collections, users, ACL, ...) but you don't want
        these to cause e-mail events (e.g. because it concerns a large
        amount of uninteresting modifications.
        You can also add and remove users at runtime via the management
        console.
      -->
      <!--
      <eventsIgnoredUsers>
        <user>john</user>
        <user>lisa</user>
      </eventsIgnoredUsers>
      -->
      <!-- The enabled flag below allows to enable/disable the sending
           of e-mail notifications completely. Any change events received
           will be ignored, until this is enabled again (thus this enabled
           flag does not suspend the sending of messages, but really
           ignores changes done while the enabled flag is true). Can also
           be changed at runtime via the JMX console. -->
      <enabled>true</enabled>
    </configuration>
  </target>

  <target path="/daisy/extensions/publisher/publisher">
    <configuration>
      <repositoryUser login="internal" password="d7acf61ee6e5a519c74bc01deb8db56153683268"/>
      <publisherRequestDirectory>${daisy.datadir}/pubreqs</publisherRequestDirectory>
    </configuration>
  </target>

  <target path="/daisy/datasource/datasource">
    <configuration>
      <username>daisy</username>
      <password>daisy</password>
      <!-- The following is for MySQL 5.0 -->
      <url>jdbc:mysql://localhost/daisyrepository?characterEncoding=UTF-8</url>
      <!-- The following is for MySQL 4.1 -->
      <!--
      <url>jdbc:mysql://localhost/daisyrepository?useServerPrepStmts=false&amp;characterEncoding=UTF-8</url>
      -->
      <!--
      <connectionProperties>
        <property name="..." value="..."/>
      </connectionProperties>
      -->
      <maxActive>20</maxActive>
      <maxIdle>8</maxIdle>
      <minIdle>0</minIdle>
      <maxWait>5000</maxWait>
    </configuration>
  </target>

  <target path="/daisy/driverregistrar/driverregistrar">
    <configuration>
      <drivers>
        <!-- classpath can contain a comma-separated list of paths to jars. -->
        <!--
        <driver>
          <classpath>somepath</classpath>
          <classname>com.mysql.jdbc.Driver</classname>
        </driver>
        -->
      <driver>
<classname>com.mysql.jdbc.Driver</classname>
<classpath>${daisy.home}\lib/mysql/jars/mysql-connector-java-3.1.12-bin.jar</classpath>
</driver>
</drivers>
    </configuration>
  </target>

  <target path="/daisy/jmsclient/jmsclient">
    <configuration>
      <jmsConnection>
        <clientId>daisy-repository</clientId>
        <credentials password="ntrymess" username="admin"/>
        <initialContext>
          <property name="java.naming.provider.url" value="vm://DaisyJMS?brokerConfig=${double-url-encode:xbean{file-to-uri{daisy.datadir}/conf/activemq-conf.xml}}&amp;jms.dispatchAsync=true"/>
          <property name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
          <property name="queue.fullTextIndexerJobs" value="fullTextIndexerJobs"/>
          <property name="topic.daisy" value="daisy"/>
        </initialContext>
        <connectionFactoryName>ConnectionFactory</connectionFactoryName>
      </jmsConnection>
    </configuration>
  </target>

  <target path="/daisy/jmx/mbeanserver">
    <configuration>
      <!-- authenticationMethod can be one of: none/basic/digest [digest doesn't seem to work] -->
      <httpAdaptor authenticationMethod="basic" host="localhost" password="essexpoi" port="9264" username="daisyjmx"/>
      <xmlHttpAdaptor authenticationMethod="basic" host="localhost" password="essexpoi" port="9265" username="daisyjmx"/>
    </configuration>
  </target>

  <target path="/daisy/extensions/workflow/workflow-manager">
    <configuration>
      <jbpm>
        <hibernate>
          <properties>
            <entry key="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</entry>
          </properties>
        </hibernate>
      </jbpm>
      <workflowUser login="workflow" password="fb7f7ab650d405cb829cf48eef9703"/>
      <!-- Where to look for workflow mail templates -->
      <mailTemplates>
        <!-- built-in templates (loaded from the classpath) -->
        <location>resource:/org/outerj/daisy/workflow/serverimpl/mailtemplates/</location>
        <!-- custom templates in the datadir -->
        <location>${daisy.datadir}/templates/workflow/</location>
      </mailTemplates>
      <taskURL>http://localhost:8888/daisy/${site}/workflow/performtask?taskId=${taskId}</taskURL>
    </configuration>
  </target>

  <target path="/daisy/repository/authentication/authenticator">
    <configuration>
      <!-- Indicates which authentication scheme to use, if any, to automatically create new users. -->
      <!-- authenticationSchemeForUserCreation>ldap1</authenticationSchemeForUserCreation -->
    </configuration>
  </target>

   
回复 支持 反对

使用道具 举报

2

主题

18

帖子

34

积分

新手上路

Rank: 1

积分
34
QQ
 楼主| 发表于 2016-2-22 15:13:41 | 显示全部楼层
jishuang 发表于 2016-2-22 11:21
只发错误信息,可以分开放

mysql> select id,login,password from users;
+----+----------+------------------------------------------+
| id | login    | password                                 |
+----+----------+------------------------------------------+
|  1 | $system  | does_not_matter                          |
|  2 | internal | d7acf61ee6e5a519c74bc01deb8db56153683268 |
|  3 | doc      | f7f029ecb98abe979074a3ab45b74dbd9af02d42 |
|  4 | workflow | b7709cde4e56da33ea6a7c6e958432e6e5251134 |
+----+----------+------------------------------------------+
4 rows in set (0.00 sec)
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35949
发表于 2016-2-22 15:54:36 | 显示全部楼层
发的配置文件是daisy-2.3\repository-server\conf下面的吧?

要看daisy-2.3\repository-server\data\conf\myconfig.xml
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

2

主题

18

帖子

34

积分

新手上路

Rank: 1

积分
34
QQ
 楼主| 发表于 2016-2-22 16:48:28 | 显示全部楼层
jishuang 发表于 2016-2-22 15:54
发的配置文件是daisy-2.3\repository-server\conf下面的吧?

要看daisy-2.3\repository-server\data\conf\ ...

发的就是daisy-2.3\repository-server\data\conf\myconfig.xml文件
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35949
发表于 2016-2-22 17:35:52 | 显示全部楼层
把现在的这个文件备份一下,用下面的文件看看,不作什么修改

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?><!--
  2.    | This file specifies component configurations (possibly overriding defaults).
  3.    --><targets>
  4.   <target path="/daisy/repository/repository-manager">
  5.     <configuration>
  6.       <!-- Namespace of this repository server. Should preferably be different
  7.            from other repository servers you control, at least to be able
  8.            to do export/import between them.
  9.            The namespace name should conform to the regexp [a-zA-Z0-9_]{1,200}
  10.            This is the default namespace
  11.            -->
  12.       <namespace>DOC</namespace>
  13.       <!-- Conditional namespaces allow documents to be placed in a certain
  14.            namespace based on a Daisy query expression. If the test returns true
  15.            the document ill be placed in that namespace. If multiple entries
  16.            return true then the first one will be chosen. If all entries return
  17.            false then the default namespace is used.

  18.            <namespace test="documentType='SimpleDocument'">SD</namespace>
  19.       -->
  20.     </configuration>
  21.   </target>

  22.   <target path="/daisy/repository/blobstore">
  23.     <configuration>
  24.       <directory>${daisy.datadir}/blobstore</directory>
  25.     </configuration>
  26.   </target>

  27.   <target path="/daisy/repository/fullTextIndex">
  28.     <configuration>
  29.       <!-- directory where index files should be stored -->
  30.       <indexDirectory>${daisy.datadir}/indexstore</indexDirectory>
  31.     </configuration>
  32.   </target>

  33.   <target path="/daisy/repository/fulltextindexupdater">
  34.     <configuration>
  35.       <repositoryUser login="internal" password="720010f2c44590d0663cd6e8ce4850"/>
  36.     </configuration>
  37.   </target>

  38.   <target path="/daisy/repository/doctypemanager">
  39.     <configuration>
  40.       <repositoryUser login="internal" password="720010f2c44590d0663cd6e8ce4850"/>
  41.     </configuration>
  42.   </target>
  43. <!--
  44.   <target path="/daisy/repository/httpconnector">
  45.     <configuration>
  46.       <port>9263</port>
  47.       <repositoryUser login="internal" password="720010f2c44590d0663cd6e8ce4850"/>
  48.       <useSSL keystoreFile="C:\justep.keystore" keystorePass="justep" >false</useSSL>
  49.     </configuration>
  50.   </target>
  51. -->
  52.     <target path="/daisy/repository/httpconnector">
  53.     <configuration>
  54.         <repositoryUser login="internal" password="720010f2c44590d0663cd6e8ce4850"/>
  55.         <!--<connector>
  56.           <port>9443</port>
  57.           <sslProtocol>TLS</sslProtocol>
  58.           <keystoreFile>E:\workspace\distribution\doctest.keystore</keystoreFile>
  59.           <keystorePass>justep</keystorePass>
  60.         </connector>-->
  61.         <connector>
  62.           <port>9263</port>
  63.         </connector>
  64.                 <authenticationServer>http://localhost:8080/BusinessServer</authenticationServer>
  65.     </configuration>
  66.   </target>
  67.   <target path="/daisy/emailer/emailer">
  68.     <configuration>
  69.       <smtpHost>undefined</smtpHost>
  70.       <!-- The smtpLocalhost element is optional, and only required if
  71.            InetAddress.getLocalHost().getHostName() fails to return something. -->
  72.       <!-- smtpLocalhost>localhost</smtpLocalhost -->
  73.       <!-- The smtpPort element is optional. Depending on the chosen protocol (i.e. boolean useSSL)
  74.            the javax.mail libs will take the correct default when left blank. -->
  75.       <!-- smtpPort>25</smtpPort -->
  76.       <fromAddress>undefined@undefined._com</fromAddress>
  77.       <useSSL>false</useSSL>
  78.       <!--
  79.       <authentication username="" password=""/>
  80.       -->
  81.       <startTLS>false</startTLS>
  82.     </configuration>
  83.   </target>

  84.   <target path="/daisy/extensions/navigation/navigation-manager">
  85.     <configuration>
  86.       <repositoryUser login="internal" password="720010f2c44590d0663cd6e8ce4850"/>
  87.     </configuration>
  88.   </target>

  89.   <target path="/daisy/extensions/emailnotifier/emailnotifier">
  90.     <configuration>
  91.       <repositoryUser password="720010f2c44590d0663cd6e8ce4850" user="internal"/>
  92.       <!-- If you want to have URL's linking to documents in the notification mails,
  93.            enable the following section.
  94.            You can have different URL's depending on the collection the document
  95.            belongs to. If a document belongs to multiple collections, the first entry
  96.            that matches will be used. You can have an entry without collection attribute
  97.            also, this obviously has to be the last entry since any entries following
  98.            that wouldn't ever be matched.
  99.            The same holds for branches and language: you can add branch and language
  100.            attributes to use different URLs depending on the branch and language, missing
  101.            branch and/or language means match whatever branch/language.
  102.            If the URL pointed to doesn't have the branch and/or language as default,
  103.            don't forget to add appropriate URL parameters for those.
  104.       -->
  105.       <!--
  106.       <documentURLs>
  107.       <documentURL collection="mycollection" branch="main" language="default" url="http://myhost.com/daisy/mysite/{id}"/>
  108.         <documentURL collection="mycollection" url="http://myhost.com/daisy/mysite/{id}?branch={branch}&language={language}"/>
  109.         <documentURL url="http://myhost.com/daisy/mysite/{id}"/>
  110.       </documentURLs>
  111.       -->
  112.       <!--
  113.         For events caused by the users listed below, no notification e-mails
  114.         will be sent out (to anyone). This is useful if you have e.g. an
  115.         automated process which creates or updates documents (or any sort
  116.         of entity: collections, users, ACL, ...) but you don't want
  117.         these to cause e-mail events (e.g. because it concerns a large
  118.         amount of uninteresting modifications.
  119.         You can also add and remove users at runtime via the management
  120.         console.
  121.       -->
  122.       <!--
  123.       <eventsIgnoredUsers>
  124.         <user>john</user>
  125.         <user>lisa</user>
  126.       </eventsIgnoredUsers>
  127.       -->
  128.       <!-- The enabled flag below allows to enable/disable the sending
  129.            of e-mail notifications completely. Any change events received
  130.            will be ignored, until this is enabled again (thus this enabled
  131.            flag does not suspend the sending of messages, but really
  132.            ignores changes done while the enabled flag is true). Can also
  133.            be changed at runtime via the JMX console. -->
  134.       <enabled>true</enabled>
  135.     </configuration>
  136.   </target>

  137.   <target path="/daisy/extensions/publisher/publisher">
  138.     <configuration>
  139.       <repositoryUser login="internal" password="720010f2c44590d0663cd6e8ce4850"/>
  140.       <publisherRequestDirectory>${daisy.datadir}/pubreqs</publisherRequestDirectory>
  141.     </configuration>
  142.   </target>

  143.   <target path="/daisy/datasource/datasource">
  144.     <configuration>
  145.       <username>daisy</username>
  146.       <password>daisy</password>
  147.       <!-- The following is for MySQL 5.0 -->
  148.       <url>jdbc:mysql://localhost/daisyrepository?characterEncoding=UTF-8</url>
  149.       <!-- The following is for MySQL 4.1 -->
  150.       <!--
  151.       <url>jdbc:mysql://localhost/daisyrepository?useServerPrepStmts=false&characterEncoding=UTF-8</url>
  152.       -->
  153.       <!--
  154.       <connectionProperties>
  155.         <property name="..." value="..."/>
  156.       </connectionProperties>
  157.       -->
  158.       <maxActive>20</maxActive>
  159.       <maxIdle>8</maxIdle>
  160.       <minIdle>0</minIdle>
  161.       <maxWait>5000</maxWait>
  162.     </configuration>
  163.   </target>

  164.   <target path="/daisy/driverregistrar/driverregistrar">
  165.     <configuration>
  166.       <drivers>
  167.         <!-- classpath can contain a comma-separated list of paths to jars. -->
  168.         <!--
  169.         <driver>
  170.           <classpath>somepath</classpath>
  171.           <classname>com.mysql.jdbc.Driver</classname>
  172.         </driver>
  173.         -->
  174.         <driver>
  175.           <classname>com.mysql.jdbc.Driver</classname>
  176.           <classpath>${daisy.home}/lib/mysql/jars/mysql-connector-java-3.1.12-bin.jar</classpath>
  177.         </driver>
  178.         <driver>
  179.           <classname>net.sourceforge.jtds.jdbc.Driver</classname>
  180.           <classpath>${daisy.home}\lib/jtds/jars/jtds-1.2.jar</classpath>
  181.         </driver>
  182.         <driver>
  183.           <classname>oracle.jdbc.driver.OracleDriver</classname>
  184.           <classpath>${daisy.home}\lib/ojdbc14/jars/ojdbc14.jar</classpath>
  185.         </driver>               
  186.       </drivers>
  187.     </configuration>
  188.   </target>

  189.   <target path="/daisy/jmsclient/jmsclient">
  190.     <configuration>
  191.       <jmsConnection>
  192.         <clientId>daisy-repository</clientId>
  193.         <credentials password="ntrymess" username="admin"/>
  194.         <initialContext>
  195.           <property name="java.naming.provider.url" value="vm://DaisyJMS?brokerConfig=${double-url-encode:xbean:${file-to-uri:${daisy.datadir}/conf/activemq-conf.xml}}&jms.dispatchAsync=true"/>
  196.           <property name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
  197.           <property name="queue.fullTextIndexerJobs" value="fullTextIndexerJobs"/>
  198.           <property name="topic.daisy" value="daisy"/>
  199.         </initialContext>
  200.         <connectionFactoryName>ConnectionFactory</connectionFactoryName>
  201.       </jmsConnection>
  202.     </configuration>
  203.   </target>

  204.   <target path="/daisy/jmx/mbeanserver">
  205.     <configuration>
  206.       <!-- authenticationMethod can be one of: none/basic/digest [digest doesn't seem to work] -->
  207.       <httpAdaptor authenticationMethod="basic" host="localhost" password="essexpoi" port="9264" username="daisyjmx"/>
  208.       <xmlHttpAdaptor authenticationMethod="basic" host="localhost" password="essexpoi" port="9265" username="daisyjmx"/>
  209.     </configuration>
  210.   </target>

  211.   <target path="/daisy/extensions/workflow/workflow-manager">
  212.     <configuration>
  213.       <jbpm>
  214.         <hibernate>
  215.           <properties>
  216.             <entry key="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</entry>
  217.           </properties>
  218.         </hibernate>
  219.       </jbpm>
  220.       <workflowUser login="workflow" password="fb7f7ab650d405cb829cf48eef9703"/>
  221.       <!-- Where to look for workflow mail templates -->
  222.       <mailTemplates>
  223.         <!-- built-in templates (loaded from the classpath) -->
  224.         <location>resource:/org/outerj/daisy/workflow/serverimpl/mailtemplates/</location>
  225.         <!-- custom templates in the datadir -->
  226.         <location>${daisy.datadir}/templates/workflow/</location>
  227.       </mailTemplates>
  228.       <taskURL>http://localhost:8888/daisy/${site}/workflow/performtask?taskId=${taskId}</taskURL>
  229.     </configuration>
  230.   </target>

  231.   <target path="/daisy/repository/authentication/authenticator">
  232.     <configuration>
  233.       <!-- Indicates which authentication scheme to use, if any, to automatically create new users. -->
  234.       <!-- authenticationSchemeForUserCreation>ldap1</authenticationSchemeForUserCreation -->
  235.     </configuration>
  236.   </target>

  237.   <target path="/daisy/repository/authentication/ldap">
  238.     <configuration>
  239.       <!-- You can configure one or more LDAP-based authentication schemes here -->
  240.       <!-- Notes:
  241.             - the name of a scheme should not be daisy, no two schemes can have the same name
  242.             - ssl is option, just remove the property tag if not needed/supported
  243.             - in the value of the property "java.naming.security.principal", the string
  244.               $daisyLogin is replaced by the login of the user.
  245.             - the autoCreateUser element is optional
  246.       -->
  247.       <!-- scheme name="ldap1" description="Test LDAP config">
  248.         <environment>
  249.           <property name="java.naming.factory.initial" value="com.sun.jndi.ldap.LdapCtxFactory"/>
  250.           <property name="java.naming.provider.url" value="ldap://strider.outerthought.net:389"/>
  251.           <property name="java.naming.security.authentication" value="simple"/>
  252.           <property name="java.naming.security.protocol" value="ssl"/>
  253.           <property name="java.naming.security.principal" value="cn=admin,dc=outerthought,dc=org"/>
  254.           <property name="java.naming.security.credentials" value="s3kret"/>
  255.         </environment>
  256.         <searchBase>dc=outerthought,dc=org</searchBase>
  257.         <filter>cn=$daisyLogin</filter>
  258.         <cache enabled="true" maxCacheSize="3000" maxCacheDuration="1800000"/>
  259.         <autoCreateUser>
  260.           <roles>
  261.             <role>User</role>
  262.           </roles>
  263.           <defaultRole>User</defaultRole>
  264.           <updateableByUser>true</updateableByUser>
  265.         </autoCreateUser>
  266.       </scheme -->
  267.     </configuration>
  268.   </target>

  269.   <target path="/daisy/repository/authentication/ntlm/ntlm">
  270.     <configuration>
  271.       <!-- You can configure one or more NTLM-based authentication schemes here -->
  272.       <!-- Notes:
  273.             - the name of a scheme should not be daisy, no two schemes can have the same name
  274.             - the autoCreateUser element is optional
  275.       -->
  276.       <!-- scheme name="ntlm1" description="Test NTLM config">
  277.         <domainControllerAddress>127.0.0.1</domainControllerAddress>
  278.         <domain>yum</domain>
  279.         <cache enabled="true" maxCacheSize="3000" maxCacheDuration="1800000"/>
  280.         <autoCreateUser>
  281.           <roles>
  282.             <role>User</role>
  283.           </roles>
  284.           <defaultRole>User</defaultRole>
  285.           <updateableByUser>true</updateableByUser>
  286.         </autoCreateUser>
  287.       </scheme -->
  288.     </configuration>
  289.   </target>

  290.   <target path="/daisy/image-presavehook/hook">
  291.     <configuration>
  292.       <!-- Maximum number of images to process concurrently, when there are more they'll have to wait in line -->
  293.       <maxConcurrentOperations>3</maxConcurrentOperations>

  294.       <!-- You can have multiple of these config elements, though not
  295.            two which work on the same document type -->
  296.       <config documentType="Image">
  297.         <!-- Allows to enable/disable the image pre-save hook simply by configuration -->
  298.         <enabled>true</enabled>
  299.         <!-- Do not process images larger then this size, in bytes -->
  300.         <maxImageSize>3000000</maxImageSize>
  301.         <!-- Name of part type containing the (source) image -->
  302.         <imagePartName>ImageData</imagePartName>
  303.         <!-- All the following settings are optional, not specifying the
  304.              part/field names will disable them -->
  305.         <widthFieldName>ImageWidth</widthFieldName>
  306.         <heightFieldName>ImageHeight</heightFieldName>
  307.         <previewPartName>ImagePreview</previewPartName>
  308.         <previewMaxSize>250</previewMaxSize>
  309.         <thumbnailPartName>ImageThumbnail</thumbnailPartName>
  310.         <thumbnailMaxSize>125</thumbnailMaxSize>
  311.         <!-- Should images be rotated automatically based on exif metadata? -->
  312.         <automaticRotationEnabled>true</automaticRotationEnabled>
  313.         <!-- Quality setting for generated jpeg's (the thumbnails and the original image in case of exif-based image rotation).
  314.              The value should be a float between 0 (lowest quality) and 1 (best quality). -->
  315.         <jpegQuality>.85</jpegQuality>
  316.       </config>

  317.       <!--
  318.            Example config (commented out) with exif extraction
  319.            Here without thumbnail etc. but that can be added just as above

  320.            metadata/@tag = name of metadata tag
  321.            metadata/@field = name of daisy field
  322.            metadata/@type = one of: string/long/double/datetime/description
  323.               (description is the nicely formatted value, for example for
  324.                the resolution instead of just '72', '72 dots per inch',
  325.                or for exposure program: '2' = 'Program normal')
  326.       -->
  327.       <!--
  328.       <config documentType="Foto">
  329.         <imagePartName>ImageData</imagePartName>
  330.         <metadata tag="Make" field="Make" type="string"/>
  331.         <metadata tag="Model" field="Model" type="string"/>
  332.         <metadata tag="Date/Time Original" field="DateTaken" type="datetime"/>
  333.       </config>
  334.       -->
  335.     </configuration>
  336.   </target>

  337. </targets>
复制代码


远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35949
发表于 2016-2-22 17:36:02 | 显示全部楼层
把现在的这个文件备份一下,用下面的文件看看,不作什么修改

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?><!--
  2.    | This file specifies component configurations (possibly overriding defaults).
  3.    --><targets>
  4.   <target path="/daisy/repository/repository-manager">
  5.     <configuration>
  6.       <!-- Namespace of this repository server. Should preferably be different
  7.            from other repository servers you control, at least to be able
  8.            to do export/import between them.
  9.            The namespace name should conform to the regexp [a-zA-Z0-9_]{1,200}
  10.            This is the default namespace
  11.            -->
  12.       <namespace>DOC</namespace>
  13.       <!-- Conditional namespaces allow documents to be placed in a certain
  14.            namespace based on a Daisy query expression. If the test returns true
  15.            the document ill be placed in that namespace. If multiple entries
  16.            return true then the first one will be chosen. If all entries return
  17.            false then the default namespace is used.

  18.            <namespace test="documentType='SimpleDocument'">SD</namespace>
  19.       -->
  20.     </configuration>
  21.   </target>

  22.   <target path="/daisy/repository/blobstore">
  23.     <configuration>
  24.       <directory>${daisy.datadir}/blobstore</directory>
  25.     </configuration>
  26.   </target>

  27.   <target path="/daisy/repository/fullTextIndex">
  28.     <configuration>
  29.       <!-- directory where index files should be stored -->
  30.       <indexDirectory>${daisy.datadir}/indexstore</indexDirectory>
  31.     </configuration>
  32.   </target>

  33.   <target path="/daisy/repository/fulltextindexupdater">
  34.     <configuration>
  35.       <repositoryUser login="internal" password="720010f2c44590d0663cd6e8ce4850"/>
  36.     </configuration>
  37.   </target>

  38.   <target path="/daisy/repository/doctypemanager">
  39.     <configuration>
  40.       <repositoryUser login="internal" password="720010f2c44590d0663cd6e8ce4850"/>
  41.     </configuration>
  42.   </target>
  43. <!--
  44.   <target path="/daisy/repository/httpconnector">
  45.     <configuration>
  46.       <port>9263</port>
  47.       <repositoryUser login="internal" password="720010f2c44590d0663cd6e8ce4850"/>
  48.       <useSSL keystoreFile="C:\justep.keystore" keystorePass="justep" >false</useSSL>
  49.     </configuration>
  50.   </target>
  51. -->
  52.     <target path="/daisy/repository/httpconnector">
  53.     <configuration>
  54.         <repositoryUser login="internal" password="720010f2c44590d0663cd6e8ce4850"/>
  55.         <!--<connector>
  56.           <port>9443</port>
  57.           <sslProtocol>TLS</sslProtocol>
  58.           <keystoreFile>E:\workspace\distribution\doctest.keystore</keystoreFile>
  59.           <keystorePass>justep</keystorePass>
  60.         </connector>-->
  61.         <connector>
  62.           <port>9263</port>
  63.         </connector>
  64.                 <authenticationServer>http://localhost:8080/BusinessServer</authenticationServer>
  65.     </configuration>
  66.   </target>
  67.   <target path="/daisy/emailer/emailer">
  68.     <configuration>
  69.       <smtpHost>undefined</smtpHost>
  70.       <!-- The smtpLocalhost element is optional, and only required if
  71.            InetAddress.getLocalHost().getHostName() fails to return something. -->
  72.       <!-- smtpLocalhost>localhost</smtpLocalhost -->
  73.       <!-- The smtpPort element is optional. Depending on the chosen protocol (i.e. boolean useSSL)
  74.            the javax.mail libs will take the correct default when left blank. -->
  75.       <!-- smtpPort>25</smtpPort -->
  76.       <fromAddress>undefined@undefined._com</fromAddress>
  77.       <useSSL>false</useSSL>
  78.       <!--
  79.       <authentication username="" password=""/>
  80.       -->
  81.       <startTLS>false</startTLS>
  82.     </configuration>
  83.   </target>

  84.   <target path="/daisy/extensions/navigation/navigation-manager">
  85.     <configuration>
  86.       <repositoryUser login="internal" password="720010f2c44590d0663cd6e8ce4850"/>
  87.     </configuration>
  88.   </target>

  89.   <target path="/daisy/extensions/emailnotifier/emailnotifier">
  90.     <configuration>
  91.       <repositoryUser password="720010f2c44590d0663cd6e8ce4850" user="internal"/>
  92.       <!-- If you want to have URL's linking to documents in the notification mails,
  93.            enable the following section.
  94.            You can have different URL's depending on the collection the document
  95.            belongs to. If a document belongs to multiple collections, the first entry
  96.            that matches will be used. You can have an entry without collection attribute
  97.            also, this obviously has to be the last entry since any entries following
  98.            that wouldn't ever be matched.
  99.            The same holds for branches and language: you can add branch and language
  100.            attributes to use different URLs depending on the branch and language, missing
  101.            branch and/or language means match whatever branch/language.
  102.            If the URL pointed to doesn't have the branch and/or language as default,
  103.            don't forget to add appropriate URL parameters for those.
  104.       -->
  105.       <!--
  106.       <documentURLs>
  107.       <documentURL collection="mycollection" branch="main" language="default" url="http://myhost.com/daisy/mysite/{id}"/>
  108.         <documentURL collection="mycollection" url="http://myhost.com/daisy/mysite/{id}?branch={branch}&language={language}"/>
  109.         <documentURL url="http://myhost.com/daisy/mysite/{id}"/>
  110.       </documentURLs>
  111.       -->
  112.       <!--
  113.         For events caused by the users listed below, no notification e-mails
  114.         will be sent out (to anyone). This is useful if you have e.g. an
  115.         automated process which creates or updates documents (or any sort
  116.         of entity: collections, users, ACL, ...) but you don't want
  117.         these to cause e-mail events (e.g. because it concerns a large
  118.         amount of uninteresting modifications.
  119.         You can also add and remove users at runtime via the management
  120.         console.
  121.       -->
  122.       <!--
  123.       <eventsIgnoredUsers>
  124.         <user>john</user>
  125.         <user>lisa</user>
  126.       </eventsIgnoredUsers>
  127.       -->
  128.       <!-- The enabled flag below allows to enable/disable the sending
  129.            of e-mail notifications completely. Any change events received
  130.            will be ignored, until this is enabled again (thus this enabled
  131.            flag does not suspend the sending of messages, but really
  132.            ignores changes done while the enabled flag is true). Can also
  133.            be changed at runtime via the JMX console. -->
  134.       <enabled>true</enabled>
  135.     </configuration>
  136.   </target>

  137.   <target path="/daisy/extensions/publisher/publisher">
  138.     <configuration>
  139.       <repositoryUser login="internal" password="720010f2c44590d0663cd6e8ce4850"/>
  140.       <publisherRequestDirectory>${daisy.datadir}/pubreqs</publisherRequestDirectory>
  141.     </configuration>
  142.   </target>

  143.   <target path="/daisy/datasource/datasource">
  144.     <configuration>
  145.       <username>daisy</username>
  146.       <password>daisy</password>
  147.       <!-- The following is for MySQL 5.0 -->
  148.       <url>jdbc:mysql://localhost/daisyrepository?characterEncoding=UTF-8</url>
  149.       <!-- The following is for MySQL 4.1 -->
  150.       <!--
  151.       <url>jdbc:mysql://localhost/daisyrepository?useServerPrepStmts=false&characterEncoding=UTF-8</url>
  152.       -->
  153.       <!--
  154.       <connectionProperties>
  155.         <property name="..." value="..."/>
  156.       </connectionProperties>
  157.       -->
  158.       <maxActive>20</maxActive>
  159.       <maxIdle>8</maxIdle>
  160.       <minIdle>0</minIdle>
  161.       <maxWait>5000</maxWait>
  162.     </configuration>
  163.   </target>

  164.   <target path="/daisy/driverregistrar/driverregistrar">
  165.     <configuration>
  166.       <drivers>
  167.         <!-- classpath can contain a comma-separated list of paths to jars. -->
  168.         <!--
  169.         <driver>
  170.           <classpath>somepath</classpath>
  171.           <classname>com.mysql.jdbc.Driver</classname>
  172.         </driver>
  173.         -->
  174.         <driver>
  175.           <classname>com.mysql.jdbc.Driver</classname>
  176.           <classpath>${daisy.home}/lib/mysql/jars/mysql-connector-java-3.1.12-bin.jar</classpath>
  177.         </driver>
  178.         <driver>
  179.           <classname>net.sourceforge.jtds.jdbc.Driver</classname>
  180.           <classpath>${daisy.home}\lib/jtds/jars/jtds-1.2.jar</classpath>
  181.         </driver>
  182.         <driver>
  183.           <classname>oracle.jdbc.driver.OracleDriver</classname>
  184.           <classpath>${daisy.home}\lib/ojdbc14/jars/ojdbc14.jar</classpath>
  185.         </driver>               
  186.       </drivers>
  187.     </configuration>
  188.   </target>

  189.   <target path="/daisy/jmsclient/jmsclient">
  190.     <configuration>
  191.       <jmsConnection>
  192.         <clientId>daisy-repository</clientId>
  193.         <credentials password="ntrymess" username="admin"/>
  194.         <initialContext>
  195.           <property name="java.naming.provider.url" value="vm://DaisyJMS?brokerConfig=${double-url-encode:xbean:${file-to-uri:${daisy.datadir}/conf/activemq-conf.xml}}&jms.dispatchAsync=true"/>
  196.           <property name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
  197.           <property name="queue.fullTextIndexerJobs" value="fullTextIndexerJobs"/>
  198.           <property name="topic.daisy" value="daisy"/>
  199.         </initialContext>
  200.         <connectionFactoryName>ConnectionFactory</connectionFactoryName>
  201.       </jmsConnection>
  202.     </configuration>
  203.   </target>

  204.   <target path="/daisy/jmx/mbeanserver">
  205.     <configuration>
  206.       <!-- authenticationMethod can be one of: none/basic/digest [digest doesn't seem to work] -->
  207.       <httpAdaptor authenticationMethod="basic" host="localhost" password="essexpoi" port="9264" username="daisyjmx"/>
  208.       <xmlHttpAdaptor authenticationMethod="basic" host="localhost" password="essexpoi" port="9265" username="daisyjmx"/>
  209.     </configuration>
  210.   </target>

  211.   <target path="/daisy/extensions/workflow/workflow-manager">
  212.     <configuration>
  213.       <jbpm>
  214.         <hibernate>
  215.           <properties>
  216.             <entry key="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</entry>
  217.           </properties>
  218.         </hibernate>
  219.       </jbpm>
  220.       <workflowUser login="workflow" password="fb7f7ab650d405cb829cf48eef9703"/>
  221.       <!-- Where to look for workflow mail templates -->
  222.       <mailTemplates>
  223.         <!-- built-in templates (loaded from the classpath) -->
  224.         <location>resource:/org/outerj/daisy/workflow/serverimpl/mailtemplates/</location>
  225.         <!-- custom templates in the datadir -->
  226.         <location>${daisy.datadir}/templates/workflow/</location>
  227.       </mailTemplates>
  228.       <taskURL>http://localhost:8888/daisy/${site}/workflow/performtask?taskId=${taskId}</taskURL>
  229.     </configuration>
  230.   </target>

  231.   <target path="/daisy/repository/authentication/authenticator">
  232.     <configuration>
  233.       <!-- Indicates which authentication scheme to use, if any, to automatically create new users. -->
  234.       <!-- authenticationSchemeForUserCreation>ldap1</authenticationSchemeForUserCreation -->
  235.     </configuration>
  236.   </target>

  237.   <target path="/daisy/repository/authentication/ldap">
  238.     <configuration>
  239.       <!-- You can configure one or more LDAP-based authentication schemes here -->
  240.       <!-- Notes:
  241.             - the name of a scheme should not be daisy, no two schemes can have the same name
  242.             - ssl is option, just remove the property tag if not needed/supported
  243.             - in the value of the property "java.naming.security.principal", the string
  244.               $daisyLogin is replaced by the login of the user.
  245.             - the autoCreateUser element is optional
  246.       -->
  247.       <!-- scheme name="ldap1" description="Test LDAP config">
  248.         <environment>
  249.           <property name="java.naming.factory.initial" value="com.sun.jndi.ldap.LdapCtxFactory"/>
  250.           <property name="java.naming.provider.url" value="ldap://strider.outerthought.net:389"/>
  251.           <property name="java.naming.security.authentication" value="simple"/>
  252.           <property name="java.naming.security.protocol" value="ssl"/>
  253.           <property name="java.naming.security.principal" value="cn=admin,dc=outerthought,dc=org"/>
  254.           <property name="java.naming.security.credentials" value="s3kret"/>
  255.         </environment>
  256.         <searchBase>dc=outerthought,dc=org</searchBase>
  257.         <filter>cn=$daisyLogin</filter>
  258.         <cache enabled="true" maxCacheSize="3000" maxCacheDuration="1800000"/>
  259.         <autoCreateUser>
  260.           <roles>
  261.             <role>User</role>
  262.           </roles>
  263.           <defaultRole>User</defaultRole>
  264.           <updateableByUser>true</updateableByUser>
  265.         </autoCreateUser>
  266.       </scheme -->
  267.     </configuration>
  268.   </target>

  269.   <target path="/daisy/repository/authentication/ntlm/ntlm">
  270.     <configuration>
  271.       <!-- You can configure one or more NTLM-based authentication schemes here -->
  272.       <!-- Notes:
  273.             - the name of a scheme should not be daisy, no two schemes can have the same name
  274.             - the autoCreateUser element is optional
  275.       -->
  276.       <!-- scheme name="ntlm1" description="Test NTLM config">
  277.         <domainControllerAddress>127.0.0.1</domainControllerAddress>
  278.         <domain>yum</domain>
  279.         <cache enabled="true" maxCacheSize="3000" maxCacheDuration="1800000"/>
  280.         <autoCreateUser>
  281.           <roles>
  282.             <role>User</role>
  283.           </roles>
  284.           <defaultRole>User</defaultRole>
  285.           <updateableByUser>true</updateableByUser>
  286.         </autoCreateUser>
  287.       </scheme -->
  288.     </configuration>
  289.   </target>

  290.   <target path="/daisy/image-presavehook/hook">
  291.     <configuration>
  292.       <!-- Maximum number of images to process concurrently, when there are more they'll have to wait in line -->
  293.       <maxConcurrentOperations>3</maxConcurrentOperations>

  294.       <!-- You can have multiple of these config elements, though not
  295.            two which work on the same document type -->
  296.       <config documentType="Image">
  297.         <!-- Allows to enable/disable the image pre-save hook simply by configuration -->
  298.         <enabled>true</enabled>
  299.         <!-- Do not process images larger then this size, in bytes -->
  300.         <maxImageSize>3000000</maxImageSize>
  301.         <!-- Name of part type containing the (source) image -->
  302.         <imagePartName>ImageData</imagePartName>
  303.         <!-- All the following settings are optional, not specifying the
  304.              part/field names will disable them -->
  305.         <widthFieldName>ImageWidth</widthFieldName>
  306.         <heightFieldName>ImageHeight</heightFieldName>
  307.         <previewPartName>ImagePreview</previewPartName>
  308.         <previewMaxSize>250</previewMaxSize>
  309.         <thumbnailPartName>ImageThumbnail</thumbnailPartName>
  310.         <thumbnailMaxSize>125</thumbnailMaxSize>
  311.         <!-- Should images be rotated automatically based on exif metadata? -->
  312.         <automaticRotationEnabled>true</automaticRotationEnabled>
  313.         <!-- Quality setting for generated jpeg's (the thumbnails and the original image in case of exif-based image rotation).
  314.              The value should be a float between 0 (lowest quality) and 1 (best quality). -->
  315.         <jpegQuality>.85</jpegQuality>
  316.       </config>

  317.       <!--
  318.            Example config (commented out) with exif extraction
  319.            Here without thumbnail etc. but that can be added just as above

  320.            metadata/@tag = name of metadata tag
  321.            metadata/@field = name of daisy field
  322.            metadata/@type = one of: string/long/double/datetime/description
  323.               (description is the nicely formatted value, for example for
  324.                the resolution instead of just '72', '72 dots per inch',
  325.                or for exposure program: '2' = 'Program normal')
  326.       -->
  327.       <!--
  328.       <config documentType="Foto">
  329.         <imagePartName>ImageData</imagePartName>
  330.         <metadata tag="Make" field="Make" type="string"/>
  331.         <metadata tag="Model" field="Model" type="string"/>
  332.         <metadata tag="Date/Time Original" field="DateTaken" type="datetime"/>
  333.       </config>
  334.       -->
  335.     </configuration>
  336.   </target>

  337. </targets>
复制代码


远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

2

主题

18

帖子

34

积分

新手上路

Rank: 1

积分
34
QQ
 楼主| 发表于 2016-2-23 09:18:50 | 显示全部楼层
jishuang 发表于 2016-2-22 17:36
把现在的这个文件备份一下,用下面的文件看看,不作什么修改

还是报错
D:\doc-server-win>set JAVA_HOME=D:\doc-server-win\jre

D:\doc-server-win>set DAISY_HOME=D:\doc-server-win\daisy-2.3

D:\doc-server-win>cd daisy-2.3\repository-server\bin

D:\doc-server-win\daisy-2.3\repository-server\bin>call daisy-repository-server ..\data
[main] INFO  org.outerj.daisy.runtime.info - Starting the Daisy repository server.
[main] INFO  org.outerj.daisy.runtime.info - Reading container configurations of 13 containers.
[main] INFO  org.outerj.daisy.runtime.info - Instantiating the component containers.
[main] INFO  org.outerj.daisy.runtime.info - Starting container configuration - D:\doc-server-win\daisy-2.3\lib\daisy\ja
rs\daisy-configuration-impl-2.3.jar
org.outerj.daisy.runtime.DaisyRTException: Error constructing component container defined at D:\doc-server-win\daisy-2.3
\lib\daisy\jars\daisy-configuration-impl-2.3.jar
        at org.outerj.daisy.runtime.component.ContainerConfigImpl.build(ContainerConfigImpl.java:114)
        at org.outerj.daisy.runtime.DaisyRuntime.init(DaisyRuntime.java:91)
        at org.outerj.daisy.runtime.cli.DaisyRuntimeCli.run(DaisyRuntimeCli.java:177)
        at org.outerj.daisy.runtime.cli.DaisyRuntimeCli.main(DaisyRuntimeCli.java:37)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:592)
        at org.outerj.daisy.launcher.repository.RuntimeCliLauncher.run(RuntimeCliLauncher.java:61)
        at org.outerj.daisy.launcher.repository.RuntimeCliLauncher.launch(RuntimeCliLauncher.java:41)
        at org.outerj.daisy.launcher.repository.RuntimeCliLauncher.main(RuntimeCliLauncher.java:37)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configuration' define
d in DAISY-INF/spring/applicationContext.xml in D:\doc-server-win\daisy-2.3\lib\daisy\jars\daisy-configuration-impl-2.3.
jar: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not i
nstantiate bean class [org.outerj.daisy.configuration.impl.ConfigurationManagerImpl]: Constructor threw exception; neste
d exception is org.apache.avalon.framework.configuration.ConfigurationException: Error reading configuration file D:\doc
-server-win\daisy-2.3\repository-server\bin\..\data\conf\myconfig.xml
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:23
1)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAuto
wireCapableBeanFactory.java:957)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutow
ireCapableBeanFactory.java:869)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCap
ableBeanFactory.java:514)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBea
nFactory.java:485)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab
leBeanFactory.java:455)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegis
try.java:169)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListable
BeanFactory.java:413)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplic
ationContext.java:735)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)
        at org.outerj.daisy.runtime.component.ContainerConfigImpl.build(ContainerConfigImpl.java:87)
        ... 10 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.outerj.daisy.conf
iguration.impl.ConfigurationManagerImpl]: Constructor threw exception; nested exception is org.apache.avalon.framework.c
onfiguration.ConfigurationException: Error reading configuration file D:\doc-server-win\daisy-2.3\repository-server\bin\
..\data\conf\myconfig.xml
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:98)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy
.java:87)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:22
5)
        ... 24 more
Caused by: org.apache.avalon.framework.configuration.ConfigurationException: Error reading configuration file D:\doc-ser
ver-win\daisy-2.3\repository-server\bin\..\data\conf\myconfig.xml
        at org.outerj.daisy.configuration.impl.ConfigurationManagerImpl.initialize(ConfigurationManagerImpl.java:48)
        at org.outerj.daisy.configuration.impl.ConfigurationManagerImpl.<init>(ConfigurationManagerImpl.java:39)
        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:501)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:83)
        ... 26 more
Caused by: org.xml.sax.SAXParseException: The reference to entity "jms.dispatchAsync" must end with the ';' delimiter.
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:
236)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1441)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(XMLScanner.java:856)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(XMLDocumentFragmentScann
erImpl.java:1033)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentSc
annerImpl.java:851)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XML
DocumentFragmentScannerImpl.java:1693)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScanne
rImpl.java:368)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1168)
        at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.buildFromFile(DefaultConfigurationBuild
er.java:186)
        at org.outerj.daisy.configuration.impl.ConfigurationManagerImpl.initialize(ConfigurationManagerImpl.java:46)
        ... 32 more
Startup failed. Will try to shutdown and exit.
[main] INFO  org.outerj.daisy.runtime.info - Shutting down component containers.
请按任意键继续. . .
回复 支持 反对

使用道具 举报

2

主题

18

帖子

34

积分

新手上路

Rank: 1

积分
34
QQ
 楼主| 发表于 2016-2-23 09:26:42 | 显示全部楼层
jishuang 发表于 2016-2-22 17:36
把现在的这个文件备份一下,用下面的文件看看,不作什么修改

已经起来了,不过repositoryUser login="internal" password="720010f2c44590d0663cd6e8ce4850"这个密码是从哪来的呀,我把以前的配置文件中的密码替换成这个就起来了,谢了。
回复 支持 反对

使用道具 举报

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

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-6-2 11:42 , Processed in 0.067539 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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