Solved

Errors accessing WebSphere application migrated from Windows to Linux.

Posted on 2009-03-30
3
386 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
ID: 24127059
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
ID: 24927611
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
ID: 31564561
Got me looking in another direction.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Access_log 17 121
su - oracle could not open session 6 78
cannot rename datastore 3 48
Grunt script for Build Process 1 29
Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

810 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