Topic
  • 5 replies
  • Latest Post - ‏2012-10-15T17:00:50Z by SystemAdmin
WJK1_Barani_Ramakrishnan
3 Posts

Pinned topic Worklight 5.0.0.3 Integration with Existing WAS

‏2012-10-12T23:33:15Z |
Hi,

I am in process of integrating Worklight 5.0.0.3 into existing WAS (7.0.0.23).

Followed below IBM document.
wl_5_0_admin.pdf
After I installed worklight.war into WAS, I tried to start the same.

Then got below error

2012-10-13 04:04:09,500 INFO JeeProjectActivator (WebContainer : 0:) Worklight home folder is C:\IBM\WebSphere\AppServer\profiles\AppSrv01\bin\worklight.home\worklight
2012-10-13 04:04:09,781 ERROR JeeProjectActivator (WebContainer : 0:) ========= Failed starting project /worklight
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from URL ; nested exception is java.io.FileNotFoundException: C:\Program (The system cannot find the file specified.)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:80)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at com.worklight.server.bundle.project.JeeProjectActivator.loadSpringConfiguration(JeeProjectActivator.java:194)
at com.worklight.server.bundle.project.JeeProjectActivator.contextInitialized(JeeProjectActivator.java:90)
at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1708)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:381)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:299)
Thanks in advance.
  • slowhand
    slowhand
    35 Posts

    Re: Worklight 5.0.0.3 Integration with Existing WAS

    ‏2012-10-13T23:05:09Z  
    > nested exception is java.io.FileNotFoundException: C:\Program (The system cannot find the file specified.)

    This error message comes from a reference to a file under "C:\Program Files" or
    "C:\Program Files (x86)", with incorrect treatment of the spaces in the file name.

    Check in the WebSphere console
    1) Under Environment > Shared libraries > Worklight Platform Library
    the value of classpath.
    2) Under Resources > JDBC > JDBC Providers > Worklight JDBC Provider
    the value of the class path.

    Do you see a truncated file name in one of these places?

    --slowhand
  • WJK1_Barani_Ramakrishnan
    3 Posts

    Re: Worklight 5.0.0.3 Integration with Existing WAS

    ‏2012-10-15T02:18:18Z  
    • slowhand
    • ‏2012-10-13T23:05:09Z
    > nested exception is java.io.FileNotFoundException: C:\Program (The system cannot find the file specified.)

    This error message comes from a reference to a file under "C:\Program Files" or
    "C:\Program Files (x86)", with incorrect treatment of the spaces in the file name.

    Check in the WebSphere console
    1) Under Environment > Shared libraries > Worklight Platform Library
    the value of classpath.
    2) Under Resources > JDBC > JDBC Providers > Worklight JDBC Provider
    the value of the class path.

    Do you see a truncated file name in one of these places?

    --slowhand
    I have verified both places (Shared libraries and JDBC)

    Both are using ${WORKLIGHT_INSTALL_DIR} (This is as per IBM document). so path would be
    ${WORKLIGHT_INSTALL_DIR}/WorklightServer/<fileName>.jar - This is for Shared library
    ${WORKLIGHT_INSTALL_DIR}/ApplicationCenter/databases/derby.jar - Derby jar file reference

    WebSphere Variables

    ${WORKLIGHT_INSTALL_DIR} - C:\Program Files\IBM\Worklight

    Do you think that above installation directory path is not taking space "Program" and "Files".

    Please confirm.
  • slowhand
    slowhand
    35 Posts

    Re: Worklight 5.0.0.3 Integration with Existing WAS

    ‏2012-10-15T12:52:56Z  
    I have verified both places (Shared libraries and JDBC)

    Both are using ${WORKLIGHT_INSTALL_DIR} (This is as per IBM document). so path would be
    ${WORKLIGHT_INSTALL_DIR}/WorklightServer/<fileName>.jar - This is for Shared library
    ${WORKLIGHT_INSTALL_DIR}/ApplicationCenter/databases/derby.jar - Derby jar file reference

    WebSphere Variables

    ${WORKLIGHT_INSTALL_DIR} - C:\Program Files\IBM\Worklight

    Do you think that above installation directory path is not taking space "Program" and "Files".

    Please confirm.
    > Do you think that above installation directory path is not taking space "Program" and "Files".

    Yes, it looks very much like this is the cause. I would try to either put double-quotes
    around "C:\Program Files\IBM\Worklight" (in the WebSphere variable definition) or
    around "${WORKLIGHT_INSTALL_DIR}/WorklightServer/<fileName>.jar" (in the Shared Library
    definition).

    --slowhand
  • WJK1_Barani_Ramakrishnan
    3 Posts

    Re: Worklight 5.0.0.3 Integration with Existing WAS

    ‏2012-10-15T14:21:40Z  
    • slowhand
    • ‏2012-10-15T12:52:56Z
    > Do you think that above installation directory path is not taking space "Program" and "Files".

    Yes, it looks very much like this is the cause. I would try to either put double-quotes
    around "C:\Program Files\IBM\Worklight" (in the WebSphere variable definition) or
    around "${WORKLIGHT_INSTALL_DIR}/WorklightServer/<fileName>.jar" (in the Shared Library
    definition).

    --slowhand
    I tried as you mentioned. It doesn't pick up jars. I am getting following exception

    java.lang.ClassNotFoundException: com.worklight.server.bundle.api.WorklightBundles

    It looks like worklight jar is not picked up during the application start up.
  • SystemAdmin
    SystemAdmin
    300 Posts

    Re: Worklight 5.0.0.3 Integration with Existing WAS

    ‏2012-10-15T17:00:50Z  
    I tried as you mentioned. It doesn't pick up jars. I am getting following exception

    java.lang.ClassNotFoundException: com.worklight.server.bundle.api.WorklightBundles

    It looks like worklight jar is not picked up during the application start up.
    Did you try setting the class loader policy to PARENT_LAST for BOTH the WAR application file as well as the module. Then restart the server and see if it works.