SPECTRUM OneClick stdout.log file is showing java.io.FileNotFoundException: %BOBJEDIR%\logging\wca_20080904_202812.log (Legacy KB ID CNC TS28597 )

Document ID : KB000052112
Last Modified Date : 14/02/2018
Show Technical Document Details
-Stop the BOXI servers


-Stop Tomcat


-  Find the webcompadapter.war file: 
   Windows (default): C:\Program Files\Business Objects\BusinessObjects Enterprise 11\java\applications. 
   Solaris/Linux: $BOBJEDIR/bobje/enterprise11/java/applications 
-   Make a backup of this file. 
-   Extract the WEB-INF/web.xml file from the WAR file with the command (you need to use the JAR that is installed with SPECTRUM, which is in $SPECROOT/Java/bin):
   jar xvf webcompadapter.war WEB-INF/web.xml



This will extract the file to the WEB-INF directory in your current directory     


-   Edit the web.xml file. 
-   You will see in this web.xml file 5 entries that look like '%SOMETHING%'. Each of these variables needs to be replaced with values. Each variable below that requires a path also shows examples of
   what these values would look like:
   1.  %WCSNAME%: Replace with the hostname of the machine.
   2.  %WEBCONTENTDIR%: Replace with the full path to the Web Content directory. For example:
   Windows: C:\Program Files\Business Objects\BusinessObjects Enterprise 11\Web Content\ 
   Solaris/Linux: /usr/businessobjects/bobje/webcontent 
   3.  %BOE_REGISTRYHOME%: For Windows, simply remove this variable and do not replace it. For Solaris/Linux, Replace with the path to BOXI's  registry directory. (e.g.,
   /usr/businessobjects/bobje/data/.bobj/registry)
   4.  %NSNAMEANDPORT%: Replace with the hostname of the machine and the CMS port, which is always 6400. 
   5.  BOBJEDIR%: Replace with the path to the BOXI installation directory.  Make sure /logging/wca is appended to the end. 
    Windows: C:\Program Files\Business Objects\BusinessObjects Enterprise 11\
    Solaris/Linux: /usr/businessobjects/bobje
- Save the web.xml file.
- In the directory where webcompadapter.war resides, update the WAR file with the changed web.xml:


 jar uvf webcompadapter.war  WEB-INF/web.xml 
-  Restart the BOXI servers. 
-  Restart Tomcat.


If after taking these steps the error still exists in the stdout or catalina log files check the syntax of the entries in the web.xml file to ensure the entries are correct. Then follow the procedure again to stop the BOXI servers and Tomcat, make changes to the web.xml file, and then restart the BOXI servers and Tomcat

.

Related Issues/Questions:
SPECTRUM OneClick stdout.log file is showing java.io.FileNotFoundException: %BOBJEDIR%\logging\wca_20080904_202812.log

[Thu Sep 04 20:28:12 2008] main ERROR Failed to initialize log file. All log entry redirected to console.


java.io.FileNotFoundException: %BOBJEDIR%\logging\wca_20080904_202812.log (The system cannot find the path specified)


at java.io.FileOutputStream.openAppend(Native Method)


at java.io.FileOutputStream.<init>(FileOutputStream.java:177)


at java.io.FileOutputStream.<init>(FileOutputStream.java:102)


at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)


at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:156)


......................



at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)


[Thu Sep 04 20:28:12 2008] main FATAL WCA startup failed with the following message: no webcomponentjni in java.library.path


main FATAL WCA startup failed with the following message: no webcomponentjni in java.library.path
main ERROR Failed to initialize log file. All log entry redirected to console.

Problem Environment:
SPECTRUM 8.0.0 Apps
SPECTRUM 8.1.0 Apps
SPECTRUM Report Manager
BOXI

Causes of this problem:
There is a problem with the webcompadapter.war.  More specifically, there is a problem with references in the web.xml file in that archive.

Additional Information:
How does these "web.xml" looks like in case of proper update versa the improper file - take care, that covers 6 configuration settings! That here are only extracts from original file "web.xml":


<web-app>
    <display-name>grda09b.wca</display-name>            == which is correct host-name!
...
    <context-param>
       <param-name>cspApplication.dir</param-name>
       <param-value>/SRM/report/boxi/bobje/webcontent</param-value>   == full path to where BOXI is installed
...
    <context-param>
       <param-name>install.registry</param-name>
       <param-value>/SRM/report/boxi/bobje/data/.bobj/registry</param-value>  == full path to internal BOXI settings/parms
...
   <context-param>
       <param-name>connection.cms</param-name>
       <param-value>grda09b:6400</param-value>                         == hostname!
...
    <context-param>
       <param-name>connection.listeningPort</param-name>   
       <param-value></param-value>
...
    <context-param>
       <param-name>log.file</param-name>
       <param-value>/SRM/report/boxi/bobje/logging/wca</param-value>    == full path to wca dir


Here a sample of "web.xml" with incorrect or missing update:

<web-app>
    <display-name>%WCSNAME%.wca</display-name>
....
    <context-param>
       <param-name>cspApplication.dir</param-name>
       <param-value>%WEBCONTENTDIR%</param-value> 
....
    <context-param>
       <param-name>install.registry</param-name>
       <param-value>BOE_REGISTRYHOME=%BOE_REGISTRYHOME%</param-value>
....
    <context-param>
      <param-name>connection.cms</param-name>
      <param-value>%NSNAMEANDPORT%</param-value>
....
    <context-param>
       <param-name>connection.listeningPort</param-name>
       <param-value></param-value>
....
    <context-param>
       <param-name>log.file</param-name>
       <param-value>%BOBJEDIR%/logging/wca</param-value>

.


(Legacy KB ID CNC TS28597 )