This discussion is archived
9 Replies Latest reply: Dec 11, 2012 8:31 AM by Ronny RSS

Error while starting Admin Server as Windows Service (OBIEE 11g)

Ronny Newbie
Currently Being Moderated
Hi All,

I am on windows server 2003, 64bit. And OBIEE 11.1.1.6.0. I successfully installed Admin server as a windows service and can see the beasvc bifoundataion_domain_AdminServer in the services list.

The issue is after the service was installed, when I tried to start it, it didn't start successfully. I checked the log file and this is the error it gave me.

[Tue Dec 11 00:47:45 2012] [ServiceStart] Thread created successfully
[Tue Dec 11 00:47:45 2012] [I] [ServiceStart] Reporting SCM of SERVICE_START_PENDING with delay=120000
[Tue Dec 11 00:47:45 2012] [I] [ServiceStart] lpszHost = []
[Tue Dec 11 00:47:45 2012] [I] [ServiceStart] lpszPort = []
[Tue Dec 11 00:47:45 2012] [I] [StartJVM] Parsing JVM Arguments
[Tue Dec 11 00:47:45 2012] [I] [StartJVM] Initializing JVM
[Tue Dec 11 00:47:45 2012] [I] [RunJavaApp] Loading class - =-Xms256m
java.lang.NoClassDefFoundError: =-Xms256m
Caused by: java.lang.ClassNotFoundException: =-Xms256m
     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:306)
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
[Tue Dec 11 00:49:45 2012] [I] [ServiceStart] Reporting SCM of SERVICE_RUNNING
[Tue Dec 11 00:49:45 2012] [I] [ServiceStart] waiting for multiple events
[Tue Dec 11 00:49:45 2012] [I] [ServiceStart] done waiting for multiple events. Wait=1
[Tue Dec 11 00:49:45 2012] [E] [ServiceStart] Error in JVM. Cause=Unable to load main class!

Do I need to change the parameter -Xms256m ? Can anybody please let me know what needs to be corrected here? Am I am missing anything?

Thanks,
Ronny
  • 1. Re: Error while starting Admin Server as Windows Service (OBIEE 11g)
    Ronny Newbie
    Currently Being Moderated
    Can any body please reply on this?

    Thanks,
    Ronny
  • 2. Re: Error while starting Admin Server as Windows Service (OBIEE 11g)
    user248025 Guru
    Currently Being Moderated
    Hi,

    Try to double check your setDomainEnv.cmd and commEnv.cmd file

    path ref,
    D:\Oracle\user_projects\domains\bifoundation_domain\bin\setDomainEnv.cmd
    D:\Oracle\wlserver_10.3\common\bin\commEnv.cmd

    if you wise to increase JVM heap memory try to set like this, -Xms1024m -Xmx2048m

    For more
    http://obieeelegant.blogspot.com/2011/11/obiee-11.html

    Thanks
    Deva
  • 3. Re: Error while starting Admin Server as Windows Service (OBIEE 11g)
    Ronny Newbie
    Currently Being Moderated
    Thanks Deva,

    I edited my commEnv file and setDomainEnv file and changed every occurance of -Xms256m to -Xms1024m and -Xmx512m to -Xmx2048m but still i am getting the same error. Where am I missing? What other files I may need to edit which AdminServer refers while staring the service through windows service?

    Is there any variables or environment variables which I am missing to set? Please help.

    Thanks,
    Ronny
  • 4. Re: Error while starting Admin Server as Windows Service (OBIEE 11g)
    Srini VEERAVALLI Guru
    Currently Being Moderated
    Check Doc ID 1157875.1 or
    Try with editing the existing Registry Entry:

    1. Select the Windows "Start" -> "Run" -> "regedit"
    2. In the Registry Editor, navigate to: HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/beasvc <Domain_ServerName>/Parameters
    3. Double Click on the "CmdLine" variable and change the "value data" from "-client" to "-server". For example change:

    -client -Xms32m -Xmx200m -XX:MaxPermSize=128m etc..

    to:

    -server -Xms32m -Xmx200m -XX:MaxPermSize=128m etc..

    or if using JRockit JDK:

    -jrockit -Xms32m -Xmx200m -XX:MaxPermSize=128m etc..


    4. Attempt to start the service again and it should start successfully. Check the <ServerName>-stdout.txt to make sure the server is up and running.


    OR delete the exisitng service and create it again:

    1. Delete the existing service from the registry and reboot the server.
    2. Edit the $MIDDLEWARE_HOME\wlserver_10.3\server\bin\installSvc.cmd
    3. Add "set JAVA_VM=-server", or for JRockit only "set JAVA_VM=-jrockit" at the following section:


    @echo off

    set JAVA_VM=-server

    if "%ADMIN_URL%" == "" goto runAdmin
    @echo on
    set CMDLINE="%JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -classpath \"%CLASSPATH%\" -Dweblogic.Name=%SERVER_NAME%

    -Dweblogic.management.username=%WLS_USER% -Dweblogic.management.server=\"%ADMIN_URL%\

    If helps pls mark
  • 5. Re: Error while starting Admin Server as Windows Service (OBIEE 11g)
    Ronny Newbie
    Currently Being Moderated
    Thanks Veeravalli, I did exactly the same. Editing the registry didn't help so I deleted the service from registry and create it again and before that added the following in my installSVC file in the section you mentioned

    set JAVA_VM=-server
    set MEM_ARGS==-Xms1024m -Xmx1024m -XX:MaxPermSize=2048m -XX:-UseSSE42Intrinsics

    But it is still not working, I am getting the same error but now it says

    [Tue Dec 11 07:38:45 2012] [RunJavaApp] Loading class - =-Xms1024m
    java.lang.NoClassDefFoundError: =-Xms1024m
    Caused by: java.lang.ClassNotFoundException: =-Xms1024m
         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:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

    one of the things I didn't mention though was that when I create the service, I run the installAdmServer_Service.cmd file as "Run as Administrator", only then the service gets installed. Can this be related to the fact that this windows service needs to be run under admin account? or Run as Administrator? I am guessing because I tried various heap sizes and also edited my setDomainEnv.cmd and commEnv.cmd file to use 1024 as heap size it but still didn't work and it is failing may be while loading the class? If that is the case then how to run this services as administrator? Am I missing anything else?

    Thanks,
    Ronny
  • 6. Re: Error while starting Admin Server as Windows Service (OBIEE 11g)
    Srini VEERAVALLI Guru
    Currently Being Moderated
    Due to Windowse versions we need to run the dos command as' Run as Administrator' and do this config... I dont think thats an issue.
    just in case make sure you have java path set and you are using it during config.

    If possible check this ID 1060058.1
  • 7. Re: Error while starting Admin Server as Windows Service (OBIEE 11g)
    Ronny Newbie
    Currently Being Moderated
    When you say Java path , you mean to say JAVA_HOME system env variable or the path system env variable?

    JAVA_HOME variable is set and the value is E:\MW_OBI\Oracle_BI1\jdk

    and my path variable has the following entries

    E:\oracle\product\11.2.0\client_1\bin;
    E:\app\Oracle11g\product\11.2.0\dbhome_1\bin;
    E:\app\Ronny\product\11.2.0\dbhome_3\bin;
    %SystemRoot%\system32;
    %SystemRoot%;
    %SystemRoot%\System32\Wbem;
    %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;
    D:\NetIQ\AppManager\bin;
    E:\MW_OBI\Oracle_BI1\products\Essbase\EssbaseServer\bin;
    E:\MW_OBI\Oracle_BI1\bin;
    E:\MW_OBI\Oracle_BI1\opmn\bin;
    E:\MW_OBI\Oracle_BI1\opmn\lib;
    E:\MW_OBI\Oracle_BI1\perl\bin


    Am I missing anything? unfortunately, I don't have access to that doc id :(. So can't check that? I really not sure what I am missing on this as I guess I did everything which could have been done.
  • 8. Re: Error while starting Admin Server as Windows Service (OBIEE 11g)
    Srini VEERAVALLI Guru
    Currently Being Moderated
    check this
    https://blogs.oracle.com/pa/entry/obiee_11_1_1_how3
  • 9. Re: Error while starting Admin Server as Windows Service (OBIEE 11g)
    Ronny Newbie
    Currently Being Moderated
    Somehow I was able to get the service started however it has stuck at the following point, it says waiting for multiple events, what events it is waiting for? What can I do to fix this? This is log from my adminserver-stdout.txt file

    <Dec 11, 2012 11:10:30 AM EST> <Warning> <oracle.dms.collector> <BEA-000000> <Metric table "oracle_bi_instance:wls_server" has no key column. It will not be collected.>
    <Dec 11, 2012 11:10:30 AM EST> <Warning> <oracle.dms.collector> <BEA-000000> <Metric table "oracle_bi_instance:obis_rollup" has no key column. It will not be collected.>
    <Dec 11, 2012 11:10:30 AM EST> <Warning> <oracle.dms.collector> <BEA-000000> <Metric table "oracle_bi_instance:obips_rollup" has no key column. It will not be collected.>
    <Dec 11, 2012 11:10:30 AM EST> <Warning> <oracle.dms.collector> <BEA-000000> <Metric table "oracle_bi_instance:obips_requests_rate" has no key column. It will not be collected.>
    <Dec 11, 2012 11:10:31 AM EST> <Warning> <oracle.dms.collector> <BEA-000000> <Metric table "essbaseapp:appMetrics" has no key column. It will not be collected.>
    INFO: Loading ActionFramework Config file E:\MW_OBI\USER_P~1\domains\BIFOUN~1\config\fmwconfig\biinstances\coreapplication\ActionFrameworkConfig.xml
    [Tue Dec 11 11:10:59 2012] [ServiceStart] Reporting SCM of SERVICE_RUNNING
    [Tue Dec 11 11:10:59 2012] [I] [ServiceStart] waiting for multiple events

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points