websphere-liberty

How to redeploy artifact with liberty-maven-plugin?

馋奶兔 提交于 2019-12-12 06:36:09
问题 I have IBM Liberty server running on my machine and want to redeploy my WAR using corresponding maven plugin. The documentation says that there are goals like deploy , undeploy , install-apps . Currently I am using <plugin> <groupId>com.ibm.websphere.wlp.maven.plugins</groupId> <artifactId>liberty-maven-plugin</artifactId> <version>1.1</version> <executions> <execution> <id>install-apps</id> <phase>install</phase> <goals> <goal>install-apps</goal> </goals> </execution> </executions>

CDI Injection through multiple levels?

为君一笑 提交于 2019-12-12 04:54:07
问题 I am using CDI to initialize a DataSource (See my previous question: DataSource initialization error within liberty profile server) public abstract class DAOBase { @Resource(name="jdbc/Oracle", lookup = "jdbc/Oracle") private DataSource ds; This works well when the DAO class is initialized directly from the REST class: @Path("/audit") public class AuditREST extends RESTBase implements AuditRESTInterface { @Inject private AuditDAO auditDAO = new AuditDAO(); And when the REST class calls an

Roles / Authorities not working in Websphere Liberty

守給你的承諾、 提交于 2019-12-12 04:22:33
问题 I'm trying to get spring security roles to work with websphere liberty. I know I've got my liberty setup properly because I wrote a very simple servlet 3 app with role based restrictions and it worked on the same server with the same role restrictions. Here is the relevant section of my SecurityConfig: @Override protected void configure(final HttpSecurity http) throws Exception { LOGGER.info("adding testing constraint"); http.authorizeRequests() .anyRequest().authenticated() .and().httpBasic(

How can I setup a cell and collective in Bluemix

一个人想着一个人 提交于 2019-12-12 04:16:42
问题 I'm trying to setup a cell and a collective in a WAS for bluemix service. I've found a few steps online for generic liberty setup, but nothing specific for a bluemix collective or cell. Can someone point me in the right direction? 回答1: At a high level, you should be able to do the following for a Cell: Login to the Admin Console as wsadmin Create a server. Open all the ports on each host for each server created by running the openFirewallPorts.sh script. Below, you will find the standard

implementing JSF-2.3 and CDI together in WebSphere Application Server

て烟熏妆下的殇ゞ 提交于 2019-12-12 04:02:39
问题 I have recently upgraded to using Oracles new JSF-2.3 which involved adding the dependency as an external library in my pom.xml as I am using maven, As opposed to previously using WebSphere Application server's (WAS) inbuilt JSF-2.2 feature. I wanted to upgrade to make use of the new f:websocket feature which allows me to push messages from server to client for some clever asynchronous page loading. But before we get into that, once I upgraded, I noticed that my @ManagedBean annotations were

Unable to debug Liberty for Java on Bluemix from Eclipse

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 03:17:41
问题 Eclipse shows liberty-HelloWorld application in "Developing, Debugging" mode. However, none of the breakpoints are being hit and I see the following error message in the logs: Updated app with guid 902a2568-1c6f-473b-88a4-8ba972df59f6 ({"environment_json"=>"PRIVATE DATA HIDDEN"}) Updated app with guid 902a2568-1c6f-473b-88a4-8ba972df59f6 ({"state"=>"STOPPED"}) Stopping app instance (index 0) with guid 902a2568-1c6f-473b-88a4-8ba972df59f6 Stopped app instance (index 0) with guid 902a2568-1c6f

Liberty profile: birt and jsf integration

风流意气都作罢 提交于 2019-12-12 02:59:19
问题 I'm building a web application running on Liberty profile 8.5, with JSF 2.0 feature enabled (jsf-2.0 in server.xml) and BIRT integration in the web app. The web application includes all BIRT needed libs in WEB-INF/lib folder, but the only way to make it working (specially for chart report) is to set the classloader to 'parentlast' in the server.xml: <webApplication contextRoot="MyApp" id="MyApp" location="MyApp.war" name="MyApp"> <classloader delegation="parentLast"/> </webApplication> In

Create a servlet-filter websphere liberty profile?

泄露秘密 提交于 2019-12-12 02:41:21
问题 I'm working with an websphere liberty profile webserver where i have deployed a couple of applications. These applications are sending request message's, I want to create a servlet-filter without changing the applications so i can see what the application is sending and receiving. Also i want to add new request headers. 回答1: You can use a ServletContainerInitializer to register new ServletFilters. An example implementation that adds a response header might look like this: public class SCI

Set default login/authentication in server.xml. How can you do this?

孤者浪人 提交于 2019-12-12 01:45:20
问题 Extract from my server.xml : <basicRegistry id="basic" realm="customRealm"> <user name="defaultUser@example.com" password="password" /> </basicRegistry> Currently, this requires login from the user in the form of a dialog box. I would like for the user to be logged in as defaultUser@example.com by default, without any dialog boxes or having to type anything. How can I do this? 回答1: You could try to use this kind of link to provide authentication credentials in it: http://userid:secretpassword

WAS Liberty profile java.lang.IllegalArgumentException: Cookie name “Path” is a reserved token

旧巷老猫 提交于 2019-12-12 01:11:04
问题 I am getting following exception when trying to access the deployed war application. Environment Details: WAS Liberty Profile and IBM JDK 6 <pre> Exception = java.lang.IllegalArgumentException Source = com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters probeid = 1105 Stack Dump = java.lang.IllegalArgumentException: Cookie name "Path" is a reserved token at javax.servlet.http.Cookie.<init>(Cookie.java:139) at com.ibm.ws.webcontainer.osgi.request.IRequestImpl.getCookies