DefaultApplication fails to start on new server
 Technote (troubleshooting)
 
Problem(Abstract)
The DefaultApplication does not start on a newly created server if the Default application server template is selected.
 
Symptom
The sample application DefaultApplication fails to start with the following exception:

javax.naming.NameNotFoundException: eis/DefaultDatasource_CMP. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.handleNameNotFound(WsnOptimizedNamingImpl.java:1999) at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.getNextWsnOptimizedNamingContext(WsnOptimizedNamingImpl.java:1316)

For a complete stack trace, please review attached SystemOut.log file.

 
Cause
If you do not select to use the existing server as a template when creating a new application server, and you map the DefaultApplication to the newly created server, or deploy the DefaultApplication on the newly created server, the application will fail to start.
 
Resolving the problem
While creating a new application server there are two options to select for server template.
  1. Default application server template

  2. Existing application server

When you select a template for use in creating the new server, you can use a default application server template for your new server or use an existing application server as a template. The new application server will inherit all properties of the template server.


Using an existing application server as a template copies the configuration for the selected server. For example, resources such as JDBCProvider, MailProvider, and JMSProvider are not copied to the new server if the Default application server template is selected.

While creating a new Application Server, select Existing application server as Select Server Template to bring up the DefaultApplication without any exceptions.

This might be applicable for other sample applications also.

 
SystemOut.log
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Deploy (for example: AAT or ANT or EAR/WAR/JAR)
Operating system(s): Windows
Software version: 5.1.1.2
Software edition:
Reference #: 1188852
IBM Group: Software Group
Modified date: Oct 27, 2004