在下面的问题的上下文中,我想了解运行播放开始和播放运行之间的区别.
我的具体用例相当复杂,但我会简化它:
现在,当我play start在这个应用程序上执行时,Tomcat已启动并运行,X很高兴,并且生活还在继续.
但是,当我这样做时play run,Tomcat无法初始化,并且X坐在那里等待响应,最终超时.
我需要使用的主要原因play run是开发,因为我想通过运行来附加Eclipse调试器play debug run.
我意识到这是一个过于简单化,但我希望从你那里得到的是导致Play运行和Play启动之间的差异,这可能会导致我的应用程序的行为导致这种失败.
现在,我已经尝试在http://www.playframework.com/documentation/2.1.x/ThreadPools之后增加Play的默认线程池中的线程数,但没有运气.
播放输出和日志没有提供有关此问题的有用信息.
我正在使用Play 2.1.1
我正在尝试使用UnboundID LDAP SDK将组添加到我的Active Directory服务,并不断收到错误503:将不执行.
我已经验证我正在使用SSL连接,并且我正在与属于Administrators组的用户进行连接,这是我错了 - 这使他有权创建新条目.
我还将LDAP接口事件的日志记录级别一直提高到5,并且事件查看器注册了许多事件,这些事件都没有用于解释服务不愿执行创建条目操作的原因.
关于什么可能导致这个问题的任何想法?
下面是我正在使用的scala代码的示例:
val connection = connect("MyAdminUser", "MyAdminPass")
val addGroupResult = connection.add("CN=TestGroup2,OU=Groups,OU=mydomain,DC=mydomain,DC=local",
new Attribute("objectClass", "top", "group"),
new Attribute("name","TestGroup2"),
new Attribute("sAMAccountName","TestGroup2"),
new Attribute("sAMAccountType","268435456"),
new Attribute("objectCategory","CN=Group,CN=Schema,CN=Configuration,DC=mydomain,DC=local"),
new Attribute("cn","TestGroup2"),
new Attribute("distinguishedName","CN=TestGroup2,OU=Groups,OU=mydomain,DC=mydomain,DC=local"),
new Attribute("instanceType","4"),
new Attribute("groupType","-2147483646")
)
private def connect(user: String, pass: String) = {
val options = new LDAPConnectionOptions()
options.setFollowReferrals(true)
val sslUtil = new SSLUtil(new TrustAllTrustManager())
val socketFactory = sslUtil.createSSLSocketFactory()
new LDAPConnection(socketFactory, options, host, securePort, DN(user), pass)
}
Run Code Online (Sandbox Code Playgroud)
这是我得到的错误消息:
Exception in thread "main" LDAPException(resultCode=53 (unwilling to …Run Code Online (Sandbox Code Playgroud)