Oracle Forms & Reports

WLS_REPORTS installé comme service Windows ne démarre pas

S'APPLIQUE À : Oracle Reports Developer

Oracle Reports Developer - Version 11.1.1.2.0 à 11.1.2.2.0 [Version 11g]
Windows générique
***Pertinence vérifiée le 02-Feb-2016***

SYMPTÔMES : Oracle Middleware

Après la création réussie du service Windows "beasvc FormsRepDom_WLS_REPORTS", comme le décrit le document suivant :

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

le service ne démarre pas et affiche l'une des erreurs suivantes :

1. En mode débogage de BEASVC : beasvc.exe offre un mode débogage simple. Pour l'utiliser, ouvrez une console de ligne de commande (cmd.exe) et placez-vous dans le répertoire qui contient tous vos domaines (p. ex. c:\bea\user_projects\). Exécutez ensuite la commande suivante :

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

Les messages suivants peuvent s'afficher :

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

Class name not specified or other command line argument incorrect!

ou

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 ....

ou

<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. Dans WLS_REPORTS.log, on peut voir :

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

CHANGEMENTS

Un service Windows "beasvc FormsRepDom_WLS_REPORTS" a été créé comme le décrit le document :

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

et un fichier Classpath.txt contenant le CLASSPATH a aussi été créé. Ce fichier est stocké sur le lecteur C ou D. Le fichier installSvc.cmd (sous MW\wlserver_10.3\server\bin) a ensuite été modifié (installWLSREPORTS_Service.cmd), avec un changement semblable à celui-ci :

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

Les messages d'erreur s'expliquent par le fait que le fichier Classpath.txt ne contenait pas tous les fichiers jar. Après vérification de Classpath.txt, le service a pu être démarré.

SOLUTION

- Vérifiez que tous les fichiers jar, p. ex. rwrun.jar, runtimembean.jar ..., se trouvent dans le bon répertoire et sont aussi ajoutés dans classpath.txt.

- Le fichier setDomainEnv.sh/setDomainEnv.cmd, dans DomainHome/bin, indique le classpath défini pour WLS_REPORTS.

Si vous devez vérifier le classpath de l'environnement, suivez les étapes ci-dessous :

1. Désinstallez le service à l'aide du script personnalisé de la note :

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

2. Démarrez WLS_REPORTS manuellement, p. ex. par Start--> Programs --> Oracle Classic Instance - asinst_1 --> Reports Services ---> Start WLS_REPORTS

3. Une fois le démarrage réussi, consultez le fichier WLS_REPORTS.log sous $DOMAIN_HOM\servers\WLS_REPORTS\logs et cherchez la valeur java.class.path.

4. Utilisez la MÊME valeur pour votre fichier classpath.txt, en vous assurant toutefois qu'il n'y a aucun espace vide ou blanc.

5. De plus, suivez exactement les étapes détaillées dans la section "If WLS_REPORTS installed as a Windows Service: " de cette 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. Exécutez votre script personnalisé installWLSREPORTS_Service.cmd

7. Démarrez ensuite le service.

Vous avez peut-être créé le service Windows de WLS_REPORTS de la façon suivante :

1. Dans le fichier "Installsvc.cmd" : "set CLASSPATH=%WEBLOGIC_CLASSPATH%;%CLASSPATH%" a été remplacé par "set CLASSPATH=%WEBLOGIC_CLASSPATH%"
Le service a ensuite été installé.

2. Vous pouvez ensuite copier, depuis l'invite de commande, le classpath qui s'affiche.

3. Dans le registre Windows, au chemin "HKEY_LOCAL_MACHINEYSTEM\CurrentControlSet\services\Beasvc ClassicDomain_WLS_REPORTS\Parameters", remplacez la valeur de "-classpath" par celle qui se trouve dans le presse-papiers.

4. Démarrez le service et vérifiez dans Enterprise Manager qu'il fonctionne bel et bien.