Problem:
- Product Name: Borland Application Server
- Product Version: 6.6 and 6.7
- Product Component:Web Container (Tomcat Server)
- Platform/OS version: All
Multiple WAR/EAR files are deployed into the partition. When the web application from one WAR file tries to call the method ServletContext.getContext(java.lang.String) to access context to another WAR file, the Borland Application Server web container will throw NullPointerException.
Resolution:
This problem can be resolved by performing the steps below:
- Open <BAS_HOME>/var/configuration/<conf name>/mos/<partition name>/adm/tomcat/conf/context.xml
- Change from <Context > to <Context crossContext="true">
- Restart application server
#nullpointerexception
#AppServer
#tomcat
#WebContainer
#Security
#VisiBroker