Tag: websphere liberty

Java Web应用程序和PostgreSQL上的Websphere自由

我正在Docker上的websphere-liberty上部署一个可用的Tomcat webapp。 该Web应用程序连接到docker上的postgres数据源。 在websphere中,当我试图获得连接 DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/postgres"); Connection conn = ds.getConnection(); 我的web.xml被设置为: <resource-ref> <description>postgreSQL Connection</description> <res-ref-name>jdbc/postgres</res-ref-name> <res-type>javax.sql.XADataSource</res-type> <res-auth>Container</res-auth> </resource-ref> 我得到以下错误 javax.naming.NamingException: CWNEN1001E: The object referenced by the java:comp/env/jdbc/postgres JNDI name could not be instantiated. If the reference name maps to a JNDI name in the deployment descriptor bindings for the application performing the JNDI […]

如何将我的容器组(可伸缩容器)连接到Bluemix上的MongoDB容器(单节点)?

在Bluemix上,我使用docker hub的mongodb镜像创build了一个mongodb容器(单节点) 然后我想从ibmliberty官方图像创build自由容器,并将其链接到我的mongodb容器。 但是当我运行这个命令的时候,它给我带来了下面的错误 – $ cf ic group create –anti –auto –desired 1 -e "ACMEAIR_PROPERTIES=/opt/ibm/ wlp/usr/servers/defaultServer/Prop" -m 256 –name acme-main -p 9080 -n acme-mai n -d mybluemix.net –volume acmemain:/opt/ibm/wlp/usr/servers/defaultServer/Pro p –link lc-mongo:mongo registry.ng.bluemix.net/ibmliberty:javaee7 提供但未定义的标志: – 链接 当我试图将我的Liberty容器(单节点)连接到我的MongoDB容器(单节点)时,同样的事情是完美的。

Liberty Admin Center将Docker服务器显示为正在运行,而不是

我在Ubuntu x64上使用Liberty 16.0.0.2。 当我使用REST在另一台主机上部署远程Liberty Docker容器时,它全部可用,但是当我手动停止这些远程容器(使用docker stop xxx命令)时,pipe理中心仍然显示这些容器正在运行,即使重新启动集合控制器后也是如此。 我已经为我的Docker容器定义了自动缩放,并且由于策略而导致某些容器被停止,但是一些真正运行的容器在pipe理中心中显示为已停止。 这里是正在运行的容器列表: $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES fb59f94cd25b liberty_img "/opt/ibm/wlp/bin/ser" 41 minutes ago Up 41 minutes liberty_container11 5fd2d5858f60 liberty_img "/opt/ibm/wlp/bin/ser" 42 minutes ago Up 42 minutes liberty_container10 98117dac4f69 liberty_img "/opt/ibm/wlp/bin/ser" 42 minutes ago Up 42 minutes liberty_container9 cdce71905081 liberty_img "/opt/ibm/wlp/bin/ser" 8 hours […]

在Dockerizing ubuntu 14.04映像中使用webspare liberty时出现错误

FROM ubuntu:14.04 # Install JRE RUN apt-get update RUN apt-get install -y –no-install-recommends unzip RUN apt-get -y install openjdk-7-jre RUN apt-get -y install wget RUN apt-get update \ && apt-get install -y –no-install-recommends unzip \ && rm -rf /var/lib/apt/lists/* # Install WebSphere Liberty ENV LIBERTY_VERSION 16.0.0_04 ARG LIBERTY_URL ARG DOWNLOAD_OPTIONS="" RUN LIBERTY_URL=${LIBERTY_URL:-$(wget -q -O – […]

WebSphere Docker OAuth

我需要针对IBM WebSphere服务器实现OAuth。 为此,我根据http://www.ibm.com/developerworks/websphere/techjournal/1305_odonnell2/1305_odonnell2.htmlbuild立了docker环境https://github.com/hhoechtl/websphere-oauth 但是,如果我试图获得一个令牌 curl -X POST -H "Accept-Charset: UTF-8" -H "Content-Type: application/x-www-form-urlencoded" -d 'grant_type=password&client_id=LibertyRocks&client_secret=AndMakesConfigurationEasy&username=admin&password=admin' "https://192.168.99.100:9443/oauth2/endpoint/DemoProvider/token" 我得到错误 { "error_description": "CWWKS1406E: The token request had an invalid client credential. The request URI was /oauth2/endpoint/DemoProvider/token.", "error": "invalid_client" } 但根据我的server.xml应该是正确的。 我错过了什么?

docker集装箱运行一台电脑,而不是另一台

我试图通过Docker部署一个WebSphere Liberty应用程序。 我也使用用于UI的Apache Struts。 在本地机器上部署时,我没有任何问题,但是当放在其他机器上时,会报错,说明无法加载struts2filter。 类似乎不会丢失。 为什么这个容器在一台机器上工作,而不是另一台? 堆栈跟踪: [ERROR ] SRVE0321E: The [struts2] filter did not load during start up. Filter [struts2]: could not be initialized [ERROR ] SRVE0315E: An exception occurred: java.lang.Throwable: javax.servlet.ServletException: Filter [struts2]: could not be initialized at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:5027) at [internal classes] Caused by: javax.servlet.ServletException: Filter [struts2]: could not be initialized at […]