java-ee

sublist index out of bound exception

℡╲_俬逩灬. 提交于 2019-12-31 02:54:13
问题 Whenever I am running my xhtml. It is giving me the following exception. The value of statusindex object is 5. I am using JQuery for lazy scrolling,so when my xhml page getMoreStatusList calls getMoreStatusList function, it is giving me an index out of bound exception. There are 26 status updates in the database so index out of bound exception makes no sense to me. 1) Code public List<Status> getMoreStatusList() { FacesContext context = FacesContext.getCurrentInstance(); HttpSession session =

SSO between Java EE and Cognos application

半城伤御伤魂 提交于 2019-12-31 02:46:21
问题 Problem description: Theren are two subsystems. One is a web based Java EE application and the other a Cognos reporting tool. Currently, both these applications provide individual login pages that allow the users to perform their activities, as per the roles defined in the system. Java EE users can directly login to the Java EE application using its login page. Similarly, the Cognos users can login to the Portal using its login page by supplying their intranet ID credentials. There is a

Including files in web.xml

会有一股神秘感。 提交于 2019-12-31 02:11:08
问题 I'm in the process of writing unit tests for a JEE5 web service. The behaviour of the web service depends on the attributes set in the web.xml file. I'm wanting to therefore split my web.xml into a constant part and a part that is changed around inbetween test runs. To see if it's actually possible, I've tried to see if I can split out the welcome-file-list attribute. Using some instructions I found I've come up the following: web.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app

version 1.4.2_03 of the jvm is not suitable for this product. 1.5 or greater is required problem

早过忘川 提交于 2019-12-30 23:21:53
问题 Today i installed windows xp 2002 service pack2, eclipse was working fine on previous same window but now when i run eclipse it gives "version 1.4.2_03 is not suitable for this product.1.5 or greater is required" message and does not run. For checking my version of jvm, i visited java.com and clicked upon free java download button, it verified that i am having recommended java installed(1.6.0_27-ea) but eclipse is giving above mentioned message.Kindly tell me that what should i do? Thanks in

Equivalent of Servlet Filter for Jersey / JAX-RS / REST resources?

允我心安 提交于 2019-12-30 18:26:25
问题 In a regular Web Application, I can assign a chain of Filters to various paths for aspects such as Authentication, Authorization, Errors, Logging and more. The advantage is that I write servlets to focus on core functionality without worrying about infrastructure aspects. I can write orthogonal, cross-cutting Filters to authenticate, authorize, etc. Then I can weave them in web.xml. Looking at web.xml is enough to assure me that there are no holes in my application. Is this possible in JAX-RS

Check if Glassfish DAS is running programmatically

走远了吗. 提交于 2019-12-30 13:00:09
问题 How to check if Glassfish DAS is running programmatically even if it is deployed on local machine or remote machine? Using Java6 回答1: I have found a way to check if DAS is up other than Linux script. With this way it does not matter if both my application and DAS are at same machine or each installed different machine. public static boolean isUrlReachable(String host) { String URLName="http://"+host+":4848"; boolean isUp = false; try { HttpURLConnection.setFollowRedirects(false);

How to enable SSL with client certificate for Websphere MQ client?

北慕城南 提交于 2019-12-30 11:28:11
问题 We are one application in a larger environment and a client for some data interface, using Websphere MQ 8.x. Our application is a Java EE application running on a WildFly 9 which uses a resource adaptor ( wmq.jmsra.rar ) which is deployed together with the EAR file in the same AS. We interact with the MQ Server in both directions. So we have on the one hand some MDBs (which are due to historical origins still in EJB 2.x format without annotations) listining to some queues and which are

Single sign-on in Java EE

梦想与她 提交于 2019-12-30 11:07:57
问题 I am trying to implement single sign-on between 2 Java EE applications. Both these applications share the same registry - LDAP. I would like to navigate from one application to another with only one authentication. I use WAS 6/RAD 7 and i have configured my server to enable SSO. What changes do I have to do in my application(s)? How do I test out the working of this? 回答1: An implementation of CAS will work for you, it is well documented and the changes needed to "CASify" your app are very

Single sign-on in Java EE

两盒软妹~` 提交于 2019-12-30 11:07:48
问题 I am trying to implement single sign-on between 2 Java EE applications. Both these applications share the same registry - LDAP. I would like to navigate from one application to another with only one authentication. I use WAS 6/RAD 7 and i have configured my server to enable SSO. What changes do I have to do in my application(s)? How do I test out the working of this? 回答1: An implementation of CAS will work for you, it is well documented and the changes needed to "CASify" your app are very

How to ajax jsf 2 outputLink

ⅰ亾dé卋堺 提交于 2019-12-30 11:01:32
问题 I want to make a webpage that is working on ajax(everything ajax). I mean.. whenever you click a link(I refer to < h:outputLink ...> ) to change a certain div using data from another link. For example: <h:outputLink value="/page.jsf" onclick="myfunction(this); return false;"> My page </h:outputLink> page.jsf is a normal jsf page... displayed using a page layout.xhtml like: <ui:composition template="/layout.xhtml"> <ui:define name="main"> //my content here </ui:define> </ui:composition> Is