Solved

Errors accessing WebSphere application migrated from Windows to Linux.

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

Superior storage. Superior surveillance.

WD Purple drives are built for 24/7, always-on, high-definition security systems. With support for up to 8 hard drives and 32 cameras, WD Purple drives are optimized for surveillance.

Question has a verified solution.

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

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
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…
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 custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

920 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

13 Experts available now in Live!

Get 1:1 Help Now