websphere-7

How can I use typcasting inside a JPQL statement?

守給你的承諾、 提交于 2019-12-05 06:03:20
I have two Integer columns in the database (derby and db2). I need to divide them with each other inside a JPQL . Both columns being of type Integer return zero if remainder is a decimal number e.g 0.25 becomes 0 etc and understandably so since type is int. In SQL I could have this for example select CAST(column1 as decimal(6,2))/CAST(column2 as decimal(6,2))from Sometable; but what is JPQL equivalent . One option might be (I have not tried yet) is to have a @Transient method in the entity returning the Decimal type and doing this calculation there and pass that to JPQL but I would rather let

To display a read error when the source file is used by other applications while transfering using MQFTE?

穿精又带淫゛_ 提交于 2019-12-04 19:33:34
I need to display a read error when the source file is being used by other applications. For example : Source filename: test.txt Content: Test file. The above content is stored in the txt file and saved. The txt file is opened and is modified as below but not saved. Test file is modified. When i invoke the transfer now i should get a read error, instead the file gets transferred with the last saved content(Test file). What can i do to display a error message? This case was tested in unix and windows. 来源: https://stackoverflow.com/questions/5870083/to-display-a-read-error-when-the-source-file

Setting up a URL resource on WebSphere Application Server 7.0?

人走茶凉 提交于 2019-12-03 11:04:31
问题 I need to setup a URL resource in WebSphere and is following this tutorial. However, the tutorial requires the modification of WebSphere's web.xml and ibm-web-bnd.xml using WebSphere Studio. I don't have a WebSphere Studio so I need to modify those files manually using a text editor. I tried to "search" for the 2 files but the "search results" are so many that I don't know which one is the right file. Where can I find the 2 files? Also what value do I need to set for the resource-ref 's id? I

websphere 7 (and Spring Roo) incompatible with javax.el.ELException

こ雲淡風輕ζ 提交于 2019-12-03 08:51:18
问题 I have a application where the frontend is based on the Spring Roo 1.1.2 jspx files. Every think works fine in Tomcat 6, but if I deploy the same application in a Websphere 7 (class loader: parent last), then I get a exception: java.lang.ClassCastException: java.lang.NullPointerException incompatible with javax.el.ELException [13.04.11 09:53:55:493 UTC] 00000026 servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods

Is GWT's RPC different from AJAX?

此生再无相见时 提交于 2019-12-03 06:57:17
How is GWT (Google Web Toolkit)'s RPC (Remote Procedure Call)'s for Asynchronous operations from browser/javascript to server is DIFFERENT or SIMILAR when compared to the AJAX calls ? If they are different, could someone help me understand how they are different ? I also heard that this RPC implementation does not works with all Server containers. For example, the GWT project did not work in Apache Tomcat. Moreover, is this RPC a an custom implementation of Google , or is it a standard implementation ? 1) GWT RPC uses AJAX to allow Data transfer for GWT applications. 2) GWT RPC abstracts out

Setting up a URL resource on WebSphere Application Server 7.0?

[亡魂溺海] 提交于 2019-12-03 01:36:32
I need to setup a URL resource in WebSphere and is following this tutorial. However, the tutorial requires the modification of WebSphere's web.xml and ibm-web-bnd.xml using WebSphere Studio. I don't have a WebSphere Studio so I need to modify those files manually using a text editor. I tried to "search" for the 2 files but the "search results" are so many that I don't know which one is the right file. Where can I find the 2 files? Also what value do I need to set for the resource-ref 's id? I notice that WebSphere Studio doesn't have any text field for setting the resource-ref 's but it has a

websphere 7 (and Spring Roo) incompatible with javax.el.ELException

喜你入骨 提交于 2019-12-02 21:25:49
I have a application where the frontend is based on the Spring Roo 1.1.2 jspx files. Every think works fine in Tomcat 6, but if I deploy the same application in a Websphere 7 (class loader: parent last), then I get a exception: java.lang.ClassCastException: java.lang.NullPointerException incompatible with javax.el.ELException [13.04.11 09:53:55:493 UTC] 00000026 servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet /WEB-INF/layouts/default.jspx in application cyber. Exception created : com.ibm

Websphere hangs due to c3p0

柔情痞子 提交于 2019-12-02 16:27:44
问题 I am using WAS 7.1 along with c3p0 (v 0.9.2.1) & hibernate (3.2.6ga) After some hours of usage Websphere hangs and I see this message in the log [6/24/13 10:57:50:377 CEST] 00000031 ThreadMonitor W WSVR0605W: Thread "WebContainer : 24" (00000048) has been active for 759356 milliseconds and may be hung. There is/are 45 thread(s) in total in the server that may be hung. at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:196) at com.mchange.v2.resourcepool

Websphere hangs due to c3p0

安稳与你 提交于 2019-12-02 13:18:22
I am using WAS 7.1 along with c3p0 (v 0.9.2.1) & hibernate (3.2.6ga) After some hours of usage Websphere hangs and I see this message in the log [6/24/13 10:57:50:377 CEST] 00000031 ThreadMonitor W WSVR0605W: Thread "WebContainer : 24" (00000048) has been active for 759356 milliseconds and may be hung. There is/are 45 thread(s) in total in the server that may be hung. at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:196) at com.mchange.v2.resourcepool.BasicResourcePool.awaitAcquire(BasicResourcePool.java:776) at com.mchange.v2.resourcepool.BasicResourcePool

Failed deploying application using Worklight Console: \"Failed to deploy application <appName>.wlapp'. : ERROR

ぃ、小莉子 提交于 2019-12-02 08:04:45
I'm using Worklight 5.0.6.20130311-0918, running on WebSphere application server (7.0.0.21) on RedHat Linux, and I'm trying to deploy an app using Worklight Console. I'm getting an error: 'Failed to deploy application 'CitizenCollaboration-android-1.0.5.wlapp'. : ERROR' There is not much information in WebSphere's SystemOut.log. I tried increasing the trace level in the App Server Admin Console but still not enough error information. Note: I'm able to deploy worklight adapters successfully Authentication.xml <staticResources> <resource id="worklightConsole" securityTest="WorklightConsole">