我们有一个在tomcat7上运行的简单应用程序,已经运行了大约一年.我们计划在Bluemix上发挥作用,我们想知道是否有任何信息可以帮助我们完成这项工作.我看到一篇帖子讨论了将应用程序从WebSphere Application Server v7迁移到Liberty配置文件,但我没有看到任何对Tomcat的引用.您可以提供任何文件或样品,我们将不胜感激.
我想使用Watson API部署文本到语音应用程序,是否可以不使用Bluemix?
我尝试使用Bluemix的演示应用程序,它工作正常,没有问题..
但问题是我想在不使用Bluemix的情况下运行应用程序,是否可能?
鉴于Bluemix 宣布支持java 8.我需要做什么才能在IBM Bluesmix构建管道(jazzhub构建和部署)中编译我的Java 8应用程序.
我已经设置了java8环境变量并使用以下内容重新安装了应用程序:
cf set-env <myApp> JBP_CONFIG_IBMJDK "version: 1.8.+"
cf restage <myApp>
Run Code Online (Sandbox Code Playgroud)
我使用的特定"构建器类型"是"Maven",我收到的失败是围绕java8中的新日期和时间类.
[ERROR] <...>/services/TestHelperService.java:[3,17] package java.time does not exist
[ERROR] <...>/services/TestHelperService.java:[37,17] cannot find symbol
[ERROR] symbol: class LocalDateTime
[ERROR] location: class <...>.services.TestHelperService
Run Code Online (Sandbox Code Playgroud) 我在Bluemix上有Java Liberty Web Application.如果我需要更新它,该应用程序将在几分钟内不可用.是否可以在不关闭的情况下更新它?例如,在第一次更新时,部署两个应用程序并重新路由到第二个应用程序?
我正在尝试使用Bluemix,并尝试在我的WebSphere Liberty WebApp上添加单点登录.因此我按照指南.添加了SSO服务,其中包含Cloud Directory身份提供程序,将我的WebApp绑定到该服务,并修改了XML配置.
我从演示应用程序开始,并从那里量身定制.
的src /主/ web应用/ WEB-INF/web.xml中
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="3.0"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<display-name>MyApp</display-name>
<security-constraint>
<display-name>MyApp</display-name>
<web-resource-collection>
<web-resource-name>chat-web</web-resource-name>
<url-pattern>/</url-pattern>
<url-pattern>/*</url-pattern>
<url-pattern>/chat-web/*</url-pattern>
<http-method>GET</http-method>
<http-method>PUT</http-method>
<http-method>HEAD</http-method>
<http-method>TRACE</http-method>
<http-method>POST</http-method>
<http-method>DELETE</http-method>
<http-method>OPTIONS</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>any-authenticated</role-name>
</auth-constraint>
</security-constraint>
Run Code Online (Sandbox Code Playgroud)
的src /主/ WLP/server.xml中
<featureManager>
<feature>servlet-3.1</feature>
</featureManager>
<httpEndpoint id="defaultHttpEndpoint" host="*" httpPort="9080">
<tcpOptions soReuseAddr="true" />
</httpEndpoint>
<application name="chat-web" context-root="chat-web"
location="${appLocation}" type="war">
<application-bnd>
<security-role name="any-authenticated">
<special-subject type="ALL_AUTHENTICATED_USERS" />
</security-role>
</application-bnd>
</application>
Run Code Online (Sandbox Code Playgroud)
我在Cloud Directory中创建了一个测试用户"tobi",该用户链接到我的SSO服务.当我部署应用程序时,我可以看到SSO依赖项/代码被组合/组装到应用程序包中.然而,如果我尝试登录应用程序,它会失败,我总是看到以下错误:
1/2/2016 5:31:10 PM OUT App [INFO ] JSPG8502I: The value of …Run Code Online (Sandbox Code Playgroud) 我正在开发移动应用程序(IOS),我已阅读couchDB文档以使用HTTP Api访问它,但是
1.如何实现用户注册,用户登录,电子邮件验证?就像parse.com正在做的那样.
我的计划是创建一个包含用户的数据库,每个文档都有用户名,密码,名字,姓氏,isemailverified,一些用户偏好以及一些更多的键值.
这是我面临的挑战:
2.如果有人在UserDatabase上查询,并且查询是与当前用户无关的查询,我应该拒绝该查询.为了克服这个挑战,我需要使用事后查询验证方法编写服务器端代码.我应该在哪里部署或开始编写此代码?
请反馈我的策略方式以及我需要在哪些方面进行改进?
我将使用restful接口与我的后端进行交互.
我想将许多照片上传到Bluemix Object Storage服务,然后将其显示在Web应用程序中.现在,对对象存储容器中的照片的GET请求需要和auth令牌.有没有什么办法可以创建一个公共URL到对象,不需要GET请求的身份验证令牌?
我看到有一个选项可以创建对象的临时URL,但我不希望URL是临时的,我希望它永远存在.是创建长期临时URL的唯一选择吗?
在Watson Conversation中定义对话框时,我无法用他/她的名字问候用户,或者我无法检测用户发送的联系号码并将其重新发送给用户.是否可以在Watson Conversation Api中进行.
我正在按照本教程在 IBM Bluemix 中设置语音到文本服务:https ://www.ibm.com/watson/developercloud/doc/speech-to-text/tutorial.shtml
我已经安装并测试了先决条件,但不知何故,当我尝试输入时出现错误:
curl -X POST -u <username>:<password>
--header "Content-Type: audio/flac"
--header "Transfer-Encoding: chunked"
--data-binary @<path>audio-file.flac
"https://stream.watsonplatform.net/speech-to-text/api/v1/recognize?continuous=true"
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
Run Code Online (Sandbox Code Playgroud)
我在直接访问 url 时测试了用户名和密码并且它工作正常。我为音频文件输入的路径也是正确的,因为我刚刚复制了它。
有谁知道如何解决这一问题?提前致谢!:)