websphere-8

Should I choose == or eq for comparing string in EL?

≯℡__Kan透↙ 提交于 2019-11-30 00:20:12
== and eq give the same result using EL to do my string comparison tests: <c:if test="${person.sokande_i == 'endast_usa'}">Endast USA</c:if> <c:if test="${person.sokande_i == 'alla'}">Alla länder</c:if> <c:if test="${person.sokande_i == 'alla_utom_usa'}">Alla utom USA</c:if> Should I use eq instead? Is == for integers only? But it works also for strings. AFAIK == test whether hashCodes are equal and eq means "meaningfully different". Another question says == and eq do the same thing. Is there no difference here? IS not the difference the one I'm stating: == looks at the hashCode and eq looks

How to make “HTTPS redirect” work on WebSphere Application Server Liberty Profile?

ぐ巨炮叔叔 提交于 2019-11-29 15:18:11
问题 I want make HTTP Redirect work on WebSphere Application Server Liberty Profile (WLP). For example:- When user types: http://localhost:8080/helloworld , the browser should automatically go (be redirected) to https://localhost:9443/helloworld To achieve this, I followed this document, Section 6.2, page no. 136. Below is the sample server.xml and web.xml:- server.xml <server description="new server"> <!-- Enable features --> <featureManager> <feature>jsp-2.2</feature> <feature>wab-1.0</feature>

How to check (replace) the MyFaces version used by Websphere 8.5

╄→尐↘猪︶ㄣ 提交于 2019-11-29 12:39:05
After upgrading to WebSphere 8.5 I've experienced some incompatibilites in my JSF application. It is possible that they were caused by uncanonical use of JSF components, but I wanted to simply check what version is used According to that document: http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/index.jsp?topic=%2Fcom.ibm.websphere.nd.doc%2Fae%2Frovr_specs.html WebSphere 8.5 uses Apache MyFaces 2.0.x (without specifying the version). I was searching for myfaces*.jar withing WebSphere installation folder - nothing was found. What version of MyFaces is WebSphere 8.5 using? How to find that jar

Can't get @RunAs to work in an EJB

拥有回忆 提交于 2019-11-29 12:30:29
This is a follow-up to User context for @Startup EJB on websphere I have the following scenario: EJB 1: @WebService( ... ) @Local(SomeLocalServiceType.class) @Stateless @RolesAllowed("SomeRole") public class SomeServiceBean implements SomeLocalServiceType { ... @Override public void someMethodInSomeLocalServiceType() { ... } ... } EJB 2: @Startup @Singleton @RunAs("SomeRole") public class PIRSingletonEJB { @EJB private SomeLocalServiceType service; ... @PostContruct public void performStartupAction() { service.someMethodInSomeLocalServiceType(); } } In short: I have one EJB requiring a role

Websphere 8.5 with Spring-5

橙三吉。 提交于 2019-11-28 20:58:47
Is Websphere 8.5.5 compatible with Spring 5? The Validation API referenced in spring5 (validation-api 5) is resulting in MethodNotFound exception.. Any pointers/patch available to get this solved - short of upgrading to Websphere 9? Caused by: java.lang.NoSuchMethodError: javax/validation/Configuration.getDefaultParameterNameProvider()Ljavax/validation/ParameterNameProvider; (loaded from file:/opt/IBM/WebSphere/AppServer/plugins/javax.j2ee.validation.jar by org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@25d460de) called from class org.springframework.validation.beanvalidation

A resource reference binding could not be found

我们两清 提交于 2019-11-28 11:09:02
问题 Currently I tried to upgrade a webservice system from Websphere 6 to Websphere 8.5. However I got this kind of issues CWNEN0044E: A resource reference binding could not be found for the /wsContext resource reference, defined for the component. Inside the source code, that part only contains @Resource WebServiceContext wsContext; This error will be gone if I switch class loader policy from parent last to parent first. However, do you know is there anyway to avoid this error with "parent last"?

Can't get @RunAs to work in an EJB

妖精的绣舞 提交于 2019-11-28 06:17:11
问题 This is a follow-up to User context for @Startup EJB on websphere I have the following scenario: EJB 1: @WebService( ... ) @Local(SomeLocalServiceType.class) @Stateless @RolesAllowed("SomeRole") public class SomeServiceBean implements SomeLocalServiceType { ... @Override public void someMethodInSomeLocalServiceType() { ... } ... } EJB 2: @Startup @Singleton @RunAs("SomeRole") public class PIRSingletonEJB { @EJB private SomeLocalServiceType service; ... @PostContruct public void

JAX-RS Jersey Client on Websphere 8.5

自闭症网瘾萝莉.ら 提交于 2019-11-28 05:49:10
问题 I'm trying to deploy jax-rs client application that use jersey on was 8.5. I was hoping I won't need to pack jersey jars inside my war, because was will provide them. But I'm getting this error when trying to invoke my servlet: Error 404: javax.servlet.UnavailableException: SRVE0203E: Servlet [HelloJAXRSClient]: example.HelloJAXRSClient was found, but is missing another required class. SRVE0206E: This error typically implies that the servlet was originally compiled with classes which cannot

Java 7.1 in IBM Websphere

蓝咒 提交于 2019-11-27 18:31:16
问题 I have Java SDK 6 in IBM websphere 8.5.5.2. Where can i download Java SDK 7.1 in IBM website and update it to websphere. I tried google and couldn't find required information to update Java SDK 7.1. Can i update it from Installation Manager or should i download any files from IBM? 回答1: Download Java SDK 7.1 from WebSphere Application Server V8.5.5 Fix Pack 2. Then unzip both archives 7.1.0.0-WS-IBMWASJAVA-part1.zip and 7.1.0.0-WS-IBMWASJAVA-part2.zip to folder and use Installation Manager to

How to make websphere 8.5 use mojarra not myfaces

给你一囗甜甜゛ 提交于 2019-11-27 15:50:48
i've a JSF2 (Richfaces 4.1.0) project running in eclipse. I'm trying to run it on WAS 8.5 using mojarra jsf implementation (2.2.0). Then lib are provided with maven but the server seems to override them since in console i can read that Myfaces as been loaded. i'm wondering why WAS act like this ? how to make the project use mojarra without using shared libs in was admin console ? this is maven relevant portion of code : <dependency> <groupId>com.sun.faces</groupId> <artifactId>jsf-api</artifactId> <version>2.2.0</version> </dependency> <dependency> <groupId>com.sun.faces</groupId> <artifactId