Solved

Errors accessing WebSphere application migrated from Windows to Linux.

Posted on 2009-03-30
3
382 Views
Last Modified: 2012-05-06
We have decided to move our WebSphere servers to a Linux platform for many reason.  We a currently running on Windows 2003 R2. The new server have been installed on CentOS 5.2, with WAS 6.1 and the latest updates (23). I exported one of my working config from the Windows WAS server and installed it as a new application on my new Linux WAS server.  The install went and the application starts.  However, I am unable to access it and only get HTTP 500 screens.  Below is a copy of the server SystemErr.log. These are logged each time the ported application is started.

3/30/09 16:19:40:983 CDT] 00000020 SystemErr     R java.lang.NullPointerException
[3/30/09 16:19:40:984 CDT] 00000020 SystemErr     R       at com.fc.common.security.FCSecretKeyFactory.initKeyStore(FCSecretKeyFactory.java:146)
[3/30/09 16:19:40:984 CDT] 00000020 SystemErr     R       at com.fc.common.security.FCSecretKeyFactory.getKey(FCSecretKeyFactory.java:60)
[3/30/09 16:19:40:984 CDT] 00000020 SystemErr     R       at com.fc.common.security.Encrypter.cipherInit(Encrypter.java:54)
[3/30/09 16:19:40:984 CDT] 00000020 SystemErr     R       at com.fc.common.security.Encrypter.<init>(Encrypter.java:45)
[3/30/09 16:19:40:984 CDT] 00000020 SystemErr     R       at com.fc.common.configuration.jaxb.FCConfigTranslator.processKeystore(FCConfigTranslator.java:198)
[3/30/09 16:19:40:984 CDT] 00000020 SystemErr     R       at com.fc.common.configuration.jaxb.FCConfigTranslator.toDistributableVersion(FCConfigTranslator.java:78)
[3/30/09 16:19:40:984 CDT] 00000020 SystemErr     R       at com.fc.common.configuration.jaxb.JAXBConfigurationLoader.translateToDistributableVersion(JAXBConfigurationLoader.java:244)
[3/30/09 16:19:40:985 CDT] 00000020 SystemErr     R       at com.fc.common.configuration.jaxb.JAXBConfigurationLoader.loadConfiguration(JAXBConfigurationLoader.java:145)
[3/30/09 16:19:40:985 CDT] 00000020 SystemErr     R       at com.fc.common.configuration.FCConfigurationFactory.getConfiguration(FCConfigurationFactory.java:119)
[3/30/09 16:19:40:985 CDT] 00000020 SystemErr     R       at com.fc.common.configuration.FCConfigurationFactory.initialize(FCConfigurationFactory.java:324)
[3/30/09 16:19:40:985 CDT] 00000020 SystemErr     R       at com.fc.ui.faces.el.propertyloader.CommonPropertyLoader.load(CommonPropertyLoader.java:41)
[3/30/09 16:19:40:985 CDT] 00000020 SystemErr     R       at com.fc.ui.faces.el.propertyloader.AbstractPropertyLoader.contextInitialized(AbstractPropertyLoader.java:34)
[3/30/09 16:19:40:985 CDT] 00000020 SystemErr     R       at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:652)
[3/30/09 16:19:40:985 CDT] 00000020 SystemErr     R       at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:355)
[3/30/09 16:19:40:986 CDT] 00000020 SystemErr     R       at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:292)
[3/30/09 16:19:40:986 CDT] 00000020 SystemErr     R       at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:92)
[3/30/09 16:19:40:986 CDT] 00000020 SystemErr     R       at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
[3/30/09 16:19:40:986 CDT] 00000020 SystemErr     R       at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:671)
[3/30/09 16:19:40:986 CDT] 00000020 SystemErr     R       at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:624)
[3/30/09 16:19:40:986 CDT] 00000020 SystemErr     R       at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
[3/30/09 16:19:40:986 CDT] 00000020 SystemErr     R       at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
[3/30/09 16:19:40:986 CDT] 00000020 SystemErr     R       at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1274)
[3/30/09 16:19:40:987 CDT] 00000020 SystemErr     R       at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1138)
[3/30/09 16:19:40:987 CDT] 00000020 SystemErr     R       at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
[3/30/09 16:19:40:987 CDT] 00000020 SystemErr     R       at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:817)
[3/30/09 16:19:40:987 CDT] 00000020 SystemErr     R       at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:921)
[3/30/09 16:19:40:987 CDT] 00000020 SystemErr     R       at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2124)
[3/30/09 16:19:40:987 CDT] 00000020 SystemErr     R       at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
[3/30/09 16:19:40:987 CDT] 00000020 SystemErr     R       at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
[3/30/09 16:19:40:988 CDT] 00000020 SystemErr     R com.fc.common.configuration.FCConfigurationException: Configuration translation error. caused by class java.security.KeyStoreException:null
[3/30/09 16:19:40:988 CDT] 00000020 SystemErr     R       at com.fc.common.configuration.jaxb.FCConfigTranslator.toDistributableVersion(FCConfigTranslator.java:103)
[3/30/09 16:19:40:988 CDT] 00000020 SystemErr     R       at com.fc.common.configuration.jaxb.JAXBConfigurationLoader.translateToDistributableVersion(JAXBConfigurationLoader.java:244)
[3/30/09 16:19:40:988 CDT] 00000020 SystemErr     R       at com.fc.common.configuration.jaxb.JAXBConfigurationLoader.loadConfiguration(JAXBConfigurationLoader.java:145)
[3/30/09 16:19:40:988 CDT] 00000020 SystemErr     R       at com.fc.common.configuration.FCConfigurationFactory.getConfiguration(FCConfigurationFactory.java:119)
[3/30/09 16:19:40:989 CDT] 00000020 SystemErr     R       at com.fc.common.configuration.FCConfigurationFactory.initialize(FCConfigurationFactory.java:324)
[3/30/09 16:19:40:989 CDT] 00000020 SystemErr     R       at com.fc.ui.faces.el.propertyloader.CommonPropertyLoader.load(CommonPropertyLoader.java:41)
[3/30/09 16:19:40:989 CDT] 00000020 SystemErr     R       at com.fc.ui.faces.el.propertyloader.AbstractPropertyLoader.contextInitialized(AbstractPropertyLoader.java:34)
[3/30/09 16:19:40:989 CDT] 00000020 SystemErr     R       at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:652)
[3/30/09 16:19:40:989 CDT] 00000020 SystemErr     R       at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:355)
[3/30/09 16:19:40:989 CDT] 00000020 SystemErr     R       at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:292)
[3/30/09 16:19:40:989 CDT] 00000020 SystemErr     R       at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:92)
[3/30/09 16:19:40:990 CDT] 00000020 SystemErr     R       at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
[3/30/09 16:19:40:990 CDT] 00000020 SystemErr     R       at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:671)
[3/30/09 16:19:40:990 CDT] 00000020 SystemErr     R       at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:624)
[3/30/09 16:19:40:990 CDT] 00000020 SystemErr     R       at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
[3/30/09 16:19:40:990 CDT] 00000020 SystemErr     R       at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
[3/30/09 16:19:40:990 CDT] 00000020 SystemErr     R       at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1274)
[3/30/09 16:19:40:990 CDT] 00000020 SystemErr     R       at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1138)
[3/30/09 16:19:40:991 CDT] 00000020 SystemErr     R       at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
[3/30/09 16:19:40:991 CDT] 00000020 SystemErr     R       at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:817)
[3/30/09 16:19:40:991 CDT] 00000020 SystemErr     R       at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:921)
[3/30/09 16:19:40:991 CDT] 00000020 SystemErr     R       at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2124)
[3/30/09 16:19:40:991 CDT] 00000020 SystemErr     R       at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
[3/30/09 16:19:40:991 CDT] 00000020 SystemErr     R       at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
0
Comment
Question by:WH_Tech
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
ai_ja_nai earned 500 total points
Comment Utility
It's a stack trace. You miss the property file.
The property file is not found, but this won't prevent the application to start. Now, since Java won't allow running a program with ambiguous initialization of a variable, the variable is initialized by the programmer with a null pointer and then it's assigned a value read from the property file. But in this case the variable remains at null and this causes a runtime exception raising when that variable is read and found to be pointing at null..

Migrate better your app
0
 

Author Comment

by:WH_Tech
Comment Utility
Found the issue to be related to the certificate keystore shared between the Websphere server and the IHS server.
0
 

Author Closing Comment

by:WH_Tech
Comment Utility
Got me looking in another direction.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now