websphere

Abort java webapp on startup

空扰寡人 提交于 2020-01-19 03:55:28
问题 My webapp is part of a larger EAR that is deployed into a websphere server. The server hosts number of other apps on the same virtual server. My webapp has some initialisation/health checks in a servletContextListener->contextInitialized method. I want to make the webapp unavailable if initialisation/health checks fail. What is a realiable way of doing this? Will throwing a RuntimeException from within contextInitialized suffice? Is the rest of the EAR still expected to be available? Thank

How to include Websphere plugin jars in WAS classpath

你说的曾经没有我的故事 提交于 2020-01-17 04:38:05
问题 I am facing classpath issue related to jars in WAS plugins folder. My application had IBM specific code to get compiled using the com.ibm.ws.runtime jar as mentioned below. Location : C:\Program Files\IBM\Websphere\AppServer\Plugins Source code: Object obj = (( com.ibm.ws.rsadapter.jdbc.WSJdbcUtil.getNativeConnection (( com.ibm.ws.rsadapter.jdbc.WSJdbcConnection )connect))); Both classes are available in com.ibm.ws.runtime Compiled successfully by including IBM runtime.jar in classpath of

How to deploy EAR file in WebSphre clustered environment?

喜欢而已 提交于 2020-01-17 03:49:32
问题 Can any one explain how to deploy EAR file in clustered environment of WebSphere 7. I'm able to deploy the same in single node but not in clustered environment 回答1: You deploy the EAR to the cluster and WebSphere 7 deploys the EAR to the systems that make up the cluster. Here are some instructions for deploying your application on WebSphere Application Server 7.0 Part 1 Part 2 来源: https://stackoverflow.com/questions/3193345/how-to-deploy-ear-file-in-websphre-clustered-environment

How to deploy EAR file in WebSphre clustered environment?

限于喜欢 提交于 2020-01-17 03:49:09
问题 Can any one explain how to deploy EAR file in clustered environment of WebSphere 7. I'm able to deploy the same in single node but not in clustered environment 回答1: You deploy the EAR to the cluster and WebSphere 7 deploys the EAR to the systems that make up the cluster. Here are some instructions for deploying your application on WebSphere Application Server 7.0 Part 1 Part 2 来源: https://stackoverflow.com/questions/3193345/how-to-deploy-ear-file-in-websphre-clustered-environment

JRuby loadpath messed up

人走茶凉 提交于 2020-01-16 19:01:26
问题 I am embedding JRuby on a JAR file and it's being used by a EAR file that I am deploying to WebSphere. When I call the class from my workspace, it works fine, however when I call it inside WebSphere, here's what I get: [3/31/11 11:21:15:984 BRT] 00000042 SystemErr R classpath:/lib/xmlcompare.rb:4:in `require': no such file to load -- rubygems (LoadError) from classpath:/lib/xmlcompare.rb:4 from classpath:/lib/xmlcompare.rb:1:in `require' from <script>:1 After some research, I noticed that

JPA and SQL Server column encryption

别来无恙 提交于 2020-01-16 18:38:27
问题 I'm using WebSphere 7 and their JPA 2.0 implementation which is based on OpenJPA, and I have something driving me crazy. I have to connect to a SQL Server 2008 database that uses the database column encryption. The encryption is done by several database commands: 1 - OPEN SYMMETRIC KEY DECRYPTION BY CERTIFICATION 2 - Perform insert/select/update/etc using the database methods EncryptByKey or DecryptByKey 3 - CLOSE SYMMETRIC KEY I have searched and it does not appear that OpenJPA supports this

POI 3.7 java.lang.IncompatibleClassChangeError when instantiating a Font

假如想象 提交于 2020-01-16 11:38:27
问题 I am getting a java.lang.IncompatibleClassChangeError with the following snippet: Workbook workbook = new HSSFWorkbook(); Font arial = workbook.createFont(); // java.lang.IncompatibleClassChangeError thrown here I am using POI 3.7 with WebSphere 7 Portal Server. The same code (and as far as I can tell, the same jars) worked with Netbeans console application. It also seems that the 3.7 jar is the only one in the classpath. The project also uses JasperReports 4.1.2. Can I provide more

Websphere liberty profile jsp changes are not reflected using Spring data jpa library

浪尽此生 提交于 2020-01-16 07:44:09
问题 Hi i have a really strange problem. I work on a project that uses Spring 4.2.4 , Hibernate 5 and WebSphere Liberty Profile 8.5.5 as application server. When i change the content of jsp files, this changes are not reflected and i have to restart the server every time. Instead changes made to css or java files are reflected and i do not need to restart the server. I created a little project with only one jsp and the spring libraries to isolate the problem and i noticed that if i remove the

problem with JNDI

眉间皱痕 提交于 2020-01-16 04:46:06
问题 I have code which uses JNDI.The code snippet as as follows: EntityManager createEM(String JNDI ){ EntityManager em = null; try{ InitialContext ic = new InitialContext(); em = (EntityManager) ic.lookup(JNDI); return em; } catch (Exception ex){ LOG.Error("error in creating em"); ex.printStackTrace(); } } Now i get error .The control enters catch block. javax.naming.NameNotFoundException: Name comp/env/persistence not found in context "java:". [12/28/10 15:51:07:086 GMT+05:30] 00000081 SystemErr

error invoking RESTful webservice on WebSphere 8.5.5.2 server

拜拜、爱过 提交于 2020-01-16 04:10:32
问题 I have deployed the RESTful application using Apache Wink packaged in EAR on WebSphere 8.5.5.2 ND. When the application starts it gives me the " Initialization successful " message: [5/14/15 15:56:03:588 CDT] 0000006d RestServlet I org.apache.wink.server.internal.servlet.RestServlet getApplication The system is using the my.domain.mobile.rest.RestfulResourceLoader JAX-RS application class that is named in the javax.ws.rs.Application init-param initialization parameter. [5/14/15 15:56:03:605