Bug 136818 [Deployment]NPE when preview report after deploy birt.war in Weblogic9
Description: NPE when preview report after deploy birt.war in Weblogic9 Steps to reproduce: 1. Deploy birt.war in WebLogic 9 2. Visit index.jsp and click link to view test.rptdesign. Result: Error 500--Internal Server Error java.lang.NullPointerException at org.eclipse.birt.report.service.ReportEngineService.setEngineContext(Unknown Source) at org.eclipse.birt.report.servlet.ViewerServlet.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:214) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:120) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3022) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1925) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1848) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1288) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207) at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/context/ViewerAttributeBean.java
{
		IViewerReportDesignHandle design = null;
		IReportRunnable reportRunnable = null;
		IReportDocument reportDocumentInstance = ReportEngineService
				.getInstance( ).openReportDocument( this.reportDesignName,
						this.reportDocumentName );
		if ( reportDocumentInstance != null )
		{
			reportRunnable = reportDocumentInstance.getReportRunnable( );
			
			if ( IBirtConstants.SERVLET_PATH_FRAMESET.equalsIgnoreCase( request
					.getServletPath( ) ) )
			{
				this.parameterMap = reportDocumentInstance.getParameterValues( );
			}
			reportDocumentInstance.close( );
		}
		
		if ( reportRunnable == null )
		{
			try
			{
				reportRunnable = ReportEngineService.getInstance( )
						.openReportDesign( this.reportDesignName );
			}
			catch ( EngineException e )
			{
				this.exception = e;
			}
		}