websphere-8

ShallowEtagHeaderFilter does not work under WAS8 app server

戏子无情 提交于 2019-12-06 02:35:20
问题 org.springframework.web.filter.ShallowEtagHeaderFilter is unable to set response header under WAS8 application server stating " WARNING: Cannot set header. Response already committed ". However this works fine when tested under Tomcat server. ShallowEtagHeaderFilter is indeed wrapping the original response to delay the writing of response body, but still the response comes as committed after the filter chain's execution. Is this a possible websphere bug? Any suggestion / workaround to

Getting ViewExpiredException in clustered environment while state saving method is set to client and user session is valid

女生的网名这么多〃 提交于 2019-12-05 17:45:42
I have a JSF application that uses Mojarra 2.2.9 and is deployed on WebSphere 8.5.5.4 on clustered environement and javax.faces.STATE_SAVING_METHOD is set to client . Even though all my application beans are request scoped, sometimes when the user session is valid and the user is doing post request on a page he gets ViewExpiredException . What may be causing this issue and how can I solve it? Will changing the javax.faces.STATE_SAVING_METHOD to server solve it? If so, what is the impact of doing this on memory? Also, does this have anything to do with cluster environement and maybe there's

JAX-RS 2.0 WebSphere 8.5 without isolated shared library

橙三吉。 提交于 2019-12-05 13:53:18
I am using Jersey 2 to implement JAR-RS 2.0 in an IBM WebSphere 8.5 environment. After reading this post JAX-RS Jersey 2.10 support in Websphere 8 I managed to get this working. However, is it possible to bundle the JAX-RS Jars within the WAR and deploy the application without the need to create an isolated shared library? If this is not possible, can someone please explain why this is the case? I understand the deployment time advantage of having the Jars in a library, but I would prefer to build the entire application including dependencies into a single WAR. -- EDIT -- It appears that you

jax-ws web service does not work in websphere 8.5

我的未来我决定 提交于 2019-12-05 10:51:33
Been trying to get jax-ws web service working in websphere 8.5 but no success. I have tried Java bean & war packaging, stateless ejb & jar packaging but it just does not work. I am trying to get it work with @webservice annotation. I am not generating any extra artifacts. I am letting websphere figure out during the deployment. During deployment there is no error. After deployment, I try to run wsdl in the browser to see if web service is installed successfully but I get nothing. Not sure if I am doing something wrong during the deployment or something else. Let me know if you want more info.

JAX-RS without jersey on WAS7

試著忘記壹切 提交于 2019-12-05 06:42:04
I have JAX-RS WS application deployed on WAS 8.0 with an empty 2.4 web.xml, class that extends 'javax.ws.rs.core.Application' and 2 resources, and it works great. I would like to deploy this application on WAS 7.0, but I'm getting: 'Error 404: SRVE0190E: File not found: /rest/source' (that's the path of the resource). How can I deploy JAX-RS application on WAS 7.0 without using Jersey or any other application-server related classes? Thanks In WAS 7 you must defined the servlet in the web.xml: <servlet> <description>JAX-RS Tools Generated - Do not modify</description> <servlet-name>JAX-RS

Websphere 8.5: Root exception is org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: WEB-INF/web.xml

淺唱寂寞╮ 提交于 2019-12-05 03:39:09
I'm getting the following error when trying to deploy an ear with websphere from an ant ask with jacl: [wsadmin] WASX7017E: Exception received while running file "C:\...\AppData\Local\Temp\wsant6857788060872488512jacl"; exception information: com.ibm.websphere.management.application.client.AppDeploymentException: com.ibm.websphere.management.application.client.AppDeploymentException: [Root exception is org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: WEB-INF/web.xml] When I try to deploy the ear from the websphere console I get: The following

org.springframework.web.servlet.PageNotFound noHandlerFound No mapping found for HTTP request with URI

倾然丶 夕夏残阳落幕 提交于 2019-12-05 01:16:11
问题 I know this question is asked many times, I have tried all the possible solutions still the problem persists. Actually the very same project runs with 0 errors in Tomcat 8 which was deployed directly from netbeans. I created a new project in eclipse and deployed in Websphere Application Server 8.0. Then all goes fine but the URL is not recognized. My code is below. Servlet.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http:/

WAS 8.5, How to avoid annotation scanning?

∥☆過路亽.° 提交于 2019-12-04 13:00:39
We deploy a web app on WAS 8.5.0.0, we're using PARENT_LAST class loader(we have to for some reason), during the startup, there're some warnings: [12/16/14 17:19:15:088 CST] 00000048 InjectionProc E CWNEN0044E: A resource reference binding could not be found for the com.sun.xml.ws.transport.tcp.servicechannel.ServiceChannelWSImpl/wsContext resource reference, defined for the MyProjectName component. [12/16/14 17:19:15:089 CST] 00000048 InjectionProc E CWNEN0044E: A resource reference binding could not be found for the com.sun.xml.ws.tx.webservice.member.coord.RegistrationRequesterPortTypeImpl

failed to start my application in websphere 8.5.5

一世执手 提交于 2019-12-04 12:12:40
When I start the application in websphere 8.5.5 I got an error, and the application failed to start, I searched the log and got this stack trace . Do you guys have any idea ? [8/21/14 17:58:57:437 EEST] 00000001 ContainerHelp E WSVR0501E: Error creating component com.ibm.ws.runtime.component.CompositionUnitMgrImpl@a0ccb3b2 com.ibm.ws.exception.RuntimeWarning: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: Failed to load webapp: java.lang.LinkageError: javax/servlet/jsp/JspApplicationContext.addELResolver&#40;Ljavax/el/ELResolver&#59;&#41;V at com.ibm.ws

EJB 3.1 asynchronous method and thread pool

大兔子大兔子 提交于 2019-12-04 09:48:47
I need to process about 250.000 documents per day with an EJB 3.1 asynchronous method in order to face an overall long time task. I do this to use more threads and process more documents concurrently. Here's an example in pseudo code: // this returns about 250.000 documents per day List<Document> documentList = Persistence.listDocumentsToProcess(); for(Document currentDocument: documentList){ //this is the asynchronous call ejbInstance.processAsynchronously(currentDocument); } Suppose I have a thread pool of size 10 and 4 core processors, my questions are: how many documents will the