Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
2 replies Latest Post - ‏2012-04-10T05:06:19Z by SystemAdmin
SystemAdmin
SystemAdmin
106 Posts
ACCEPTED ANSWER

Pinned topic [Solved] Worklight Server Startup error

‏2012-04-09T10:46:39Z |
After Installation of Worklight on Windows and on startup I get the following error

WARNING: A docBase C:\\Program Files (x86)\\Worklight\\tomcat\\webapps\\\${worklight.h
ome}\\webapps\\gadgets-serving inside the host appBase has been specified, and wil
l be ignored
Apr 9, 2012 4:13:43 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\\Program Files (x86)\\Worklig
ht\\server\\bin\\..\\..\\tomcat\\webapps\\apps#services does not exist or is not a read
able directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.
java:140)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardConte
xt.java:4836)
at org.apache.catalina.core.StandardContext.startInternal(StandardContex
t.java:5016)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:812)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:78
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)

at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:633)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:558)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:468
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1329)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase
.java:389)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:33
4)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.ja
va:1041)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java
:774)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.ja
va:1033)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.
java:291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.StandardService.startInternal(StandardServic
e.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.
java:727)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.startup.Catalina.start(Catalina.java:621)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
Apr 9, 2012 4:13:43 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error in resourceStart()
Apr 9, 2012 4:13:43 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
Apr 9, 2012 4:13:43 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/apps/services] startup failed due to previous errors
Apr 9, 2012 4:13:43 PM org.apache.catalina.startup.HostConfig deployDescriptor
WARNING: A docBase C:\\Program Files (x86)\\Worklight\\tomcat\\webapps\\\${worklight.h
ome}\\webapps\\worklight-console-api inside the host appBase has been specified, a
nd will be ignored
Apr 9, 2012 4:13:43 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\\Program Files (x86)\\Worklig
ht\\server\\bin\\..\\..\\tomcat\\webapps\\console does not exist or is not a readable d
irectory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.
java:140)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardConte
xt.java:4836)
at org.apache.catalina.core.StandardContext.startInternal(StandardContex
t.java:5016)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:812)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:78
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)

at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:633)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:558)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:468
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1329)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase
.java:389)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:33
4)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.ja
va:1041)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java
:774)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.ja
va:1033)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.
java:291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.StandardService.startInternal(StandardServic
e.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.
java:727)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.startup.Catalina.start(Catalina.java:621)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
Apr 9, 2012 4:13:43 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error in resourceStart()
Apr 9, 2012 4:13:43 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
Apr 9, 2012 4:13:43 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/console] startup failed due to previous errors
Apr 9, 2012 4:13:43 PM org.apache.catalina.startup.HostConfig deployDescriptor
WARNING: A docBase C:\\Program Files (x86)\\Worklight\\tomcat\\webapps\\\${worklight.h
ome}\\webapps\\rssb-serving inside the host appBase has been specified, and will b
e ignored
Apr 9, 2012 4:13:43 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\\Program Files (x86)\\Worklig
ht\\server\\bin\\..\\..\\tomcat\\webapps\\core does not exist or is not a readable dire
ctory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.
java:140)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardConte
xt.java:4836)
at org.apache.catalina.core.StandardContext.startInternal(StandardContex
t.java:5016)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:812)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:78
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)

at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:633)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:558)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:468
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1329)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase
.java:389)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:33
4)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.ja
va:1041)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java
:774)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.ja
va:1033)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.
java:291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.StandardService.startInternal(StandardServic
e.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.
java:727)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.startup.Catalina.start(Catalina.java:621)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
Apr 9, 2012 4:13:43 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error in resourceStart()
Apr 9, 2012 4:13:43 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
Apr 9, 2012 4:13:43 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/core] startup failed due to previous errors
Apr 9, 2012 4:13:43 PM org.apache.catalina.startup.HostConfig deployDescriptor
WARNING: A docBase C:\\Program Files (x86)\\Worklight\\tomcat\\webapps\\\${worklight.h
ome}\\webapps\\worklight-ws inside the host appBase has been specified, and will b
e ignored
Apr 9, 2012 4:13:43 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\\Program Files (x86)\\Worklig
ht\\server\\bin\\..\\..\\tomcat\\webapps\\ws does not exist or is not a readable direct
ory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.
java:140)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardConte
xt.java:4836)
at org.apache.catalina.core.StandardContext.startInternal(StandardContex
t.java:5016)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:812)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:78
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)

at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:633)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:558)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:468
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1329)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase
.java:389)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:33
4)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.ja
va:1041)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java
:774)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.ja
va:1033)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.
java:291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.StandardService.startInternal(StandardServic
e.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.
java:727)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.startup.Catalina.start(Catalina.java:621)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
Apr 9, 2012 4:13:43 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error in resourceStart()
Apr 9, 2012 4:13:43 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
Apr 9, 2012 4:13:43 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/ws] startup failed due to previous errors
Looks like a Config error and path names are not resolved correctly. I setenv.bat

C:\\Program Files (x86)\\Worklight\\server\\bin>setenv.bat

C:\\Program Files (x86)\\Worklight\\server\\bin>set HOSTNAME=KBALACHA

C:\\Program Files (x86)\\Worklight\\server\\bin>set WORKLIGHT_HOME=C:\\Program Files
(x86)\\Worklight\\server\\bin\\..

C:\\Program Files (x86)\\Worklight\\server\\bin>set CATALINA_HOME=C:\\Program Files (
x86)\\Worklight\\server\\bin\\..\\..\\tomcat

C:\\Program Files (x86)\\Worklight\\server\\bin>set BUNDLED_JRE=C:\\Program Files (x8
6)\\Worklight\\server\\bin\\..\\..\\jre

C:\\Program Files (x86)\\Worklight\\server\\bin>set JAVA=\\bin\\java

C:\\Program Files (x86)\\Worklight\\server\\bin>IF NOT EXIST "C:\\Program Files (x86)
\\Worklight\\server\\bin\\..\\..\\jre" GOTO JRE_HOME_OK

C:\\Program Files (x86)\\Worklight\\server\\bin>set JRE_HOME=C:\\Program Files (x86)\\
Worklight\\server\\bin\\..\\..\\jre

C:\\Program Files (x86)\\Worklight\\server\\bin>set JAVA_HOME=

C:\\Program Files (x86)\\Worklight\\server\\bin>set JAVA=C:\\Program Files (x86)\\Work
light\\server\\bin\\..\\..\\jre\\bin\\java

C:\\Program Files (x86)\\Worklight\\server\\bin>"C:\\Program Files (x86)\\Worklight\\se
rver\\bin\\..\\..\\jre\\bin\\java" -cp ..\\lib;..\\lib\\rssb-core.jar;..\\lib\\spring.jar;.
.\\lib\\commons-logging.jar -Dworklight.home="C:\\Program Files (x86)\\Worklight\\ser
ver\\bin\\.." -Dlocal.hostname=KBALACHA -Dworklight.runtime.customization= com.wor
klight.util.WorklightJavaOptions options.bat
INFO: Failed getting IP address for the local host, using the host name.
INFO: Default configuration loaded.
INFO: Project customization loaded from file 'C:\\Program Files (x86)\\Worklight\\s
erver\\bin\\..\\conf\\worklight.properties'
INFO: Runtime customization file not defined, using project level customization.

Exception in thread "main" java.io.FileNotFoundException: options.bat (Access is
denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at com.worklight.util.WorklightJavaOptions.main(WorklightJavaOptions.jav
a:122)

C:\\Program Files (x86)\\Worklight\\server\\bin>IF 1 NEQ 0 GOTO:EOF

Any ideas where I should look to solve this error.
  • IdanAdar
    IdanAdar
    40 Posts
    ACCEPTED ANSWER

    Re: [Solved] Worklight Server Startup error

    ‏2012-04-09T11:02:52Z  in response to SystemAdmin
    Hi,

    This usually indicates on lack of admin permissions/rights.
    Uninstall Worklight (there is an uninstaller you can launch via Control Panel), and try to install it again - this time outside of Program Files and see if the situation is improved.
  • SystemAdmin
    SystemAdmin
    106 Posts
    ACCEPTED ANSWER

    Re: [Solved] Worklight Server Startup error

    ‏2012-04-10T05:06:19Z  in response to SystemAdmin
    thanks.

    I uninstalled and installed outside Program Files and it worked.