Solved

Errors accessing WebSphere application migrated from Windows to Linux.

Posted on 2009-03-30
3
389 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

829 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