WLS_REPORTS As Windows Service Cannot Be Started

WLS_REPORTS As Windows Service Cannot Be Started

WLS_REPORTS As Windows Service Cannot Be Started

Titleimage

Posted by Patrick Hamou on 2017:09:26 23:21:49

APPLIES TO: Oracle Reports Developer

Oracle Reports Developer - Version 11.1.1.2.0 to 11.1.2.2.0 [Release 11g]
Generic Windows
***Checked for relevance on 02-Feb-2016***

SYMPTOMS: Oracle Middleware

After creating the Windows Service "beasvc FormsRepDom_WLS_REPORTS" successfully as described in following document :

Note:1060058.1 - How to Install MS Windows Services For Oracle Middleware 11g Rel 1 WebLogic Admin and Managed Servers?

the service fails to start with one of the following errors :

1. From BEASVC Debug Mode: beasvc.exe provides an easy debug mode. To use it, open a command-line console (cmd.exe) and change to the directory where all your domains are located (eg c:\bea\user_projects\). Then run the following command:

WL_HOME\server\bin\beasvc.exe -debug "SVC_NAME" 

These message can be seen:

Thread created successfully!
Error in java application .......
The following line contains specific error details .......

Class name not specified or other command line argument incorrect!

or

Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/Server
Caused by: java.lang.ClassNotFoundException: weblogic.Server
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

Error in java application ....

or 

<BEA-000286> <Failed to invoke startup class "JRF Startup Class", java.lang.ClassNotFoundException: oracle.jrf.wls.JRFStartup
java.lang.ClassNotFoundException: oracle.jrf.wls.JRFStartup



2. In WLS_REPORTS.log this can be seen :

java.lang.ClassNotFoundException: oracle.reports.admin.runtime.lifecycle.ReportsVersionLifecycleListener

 

 

CHANGES

A Windows Service "beasvc FormsRepDom_WLS_REPORTS" has been created as described in the document:

Note:1060058.1 - How to Install MS Windows Services For Oracle Middleware 11g Rel 1 WebLogic Admin and Managed Servers?

and also a Classpath.txt file has been created which includes the CLASSPATH. The file is stored on C or D drive. Then the installSvc.cmd (under MW\wlserver_10.3\server\bin) has been edited (installWLSREPORTS_Service.cmd) and a change like the following has been made:

rem *** Set Command Line for service to execute within created JVM

===================


if "%ADMIN_URL%" == "" goto runAdmin

set CMDLINE="%JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -classpath @D:\classpath.txt -Dweblogic.Name=%SERVER_NAME% -Dweblogic.management.username=%WLS_USER% -Dweblogic.management.server=\"%ADMIN_URL%\" -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy=\"%WL_HOME%\server\lib\weblogic.policy\" weblogic.Server"
goto finish

:runAdmin

set CMDLINE="%JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -classpath @D:\classpath.txt -Dweblogic.Name=%SERVER_NAME% -Dweblogic.management.username=%WLS_USER% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy=\"%WL_HOME%\server\lib\weblogic.policy\" weblogic.Server"

 

 

CAUSE

The cause of the error messages is that Classpath.txt did not include all jar files. After checking Classpath.txt the service could be started.

SOLUTION

- Check if all jar files, e.g. rwrun.jar, runtimembean.jar ... are in the correct directory and also added in classpath.txt.

- In setDomainEnv.sh/setDomainEnv.cmd in the DomainHome/bin, one can see the classpath set for WLS_REPORTS.

If it is needed to check which the classpath of the environment is, then do the following steps:

1. Uninstall service using the custom script from the note:

Note: 1339871.1:  When Created WLS_REPORTS As Windows Service Then It Cannot Be Started

2. Manually start WLS_REPORTS using e.g. Start--> Programs --> Oracle Classic Instance - asinst_1 --> Reports Services ---> Start WLS_REPORTS

3. After successfully started, please check the WLS_REPORTS.log under $DOMAIN_HOM\servers\WLS_REPORTS\logs and search for java.class.path value.

4. Use the SAME value for your classpath.txt file; however, be sure there are no empty or blank spaces.

5. In addition, follow the exact steps detailed under section "If WLS_REPORTS installed as a Windows Service: " of this note:

Note : 1374389.1 : In-Process Reports Server with Job Status Repository Enabled Hangs after Upgrade from 11.1.1.3 to 11.1.1.4; Standalone Reports Server Okay

6. Execute your custom installWLSREPORTS_Service.cmd script

7. Then start the service.

 

You might have created the Windows service for WLS_REPORTS in the following way:

1. In file "Installsvc.cmd" :  "set CLASSPATH=%WEBLOGIC_CLASSPATH%;%CLASSPATH%" has been replaced with "set CLASSPATH=%WEBLOGIC_CLASSPATH%"
Installed the service now.

2. Then you can  copy from the command prompt the classpath that appears.

3. In Windows registry in path "HKEY_LOCAL_MACHINEYSTEM\CurrentControlSet\services\Beasvc ClassicDomain_WLS_REPORTS\Parameters" replace the value for "-classpath" with the one that is on the clipboard.

4. Start the service and check in Enterprise Manager that the service is really running.

Return to Blog