Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
LiveSite runtime and Tomcat
work4u
I would like to configure the LiveSite runtime environment with Tomcat and have some questions. The environment setup is as follows:
Windows 2003 server
TeamSite install – E:\iw-home
LiveSite runtime – E:\Livesite\runtime\web (same server as TeamSite)
Tomcat install – c:\Tomcat5.5 (same server as TeamSite)
In the installation manual for LiveSite runtime it tells you to run the run.bat from the E:\LiveSite\runtime directory which if fine. But the run.bat actually calls the startup.bat file from the Tomcat installtion directory which is not there.
SET COMMAND=%CATALINA_HOME%\bin\startup.bat
The Tomcat is run as a window service.
There is also a tomcat folder in the runtime location E:\LiveSite\runtime\tomcat\conf which has the server.xml file with the port 1776.
How do I configure so when I start the tomcat service the LiveSite runtime instance is also started. Do I need to install Tomcat in the same folder as LiveSite and update the default server.xml to use the port 1776?
Please if somebody can describe how to configure the runtime as I am unable to find any details in the manual.
Find more posts tagged with
Comments
tec_iwov
we use the CATALINA_HOME/CATALINA_BASE mechanism for the batch file:
http://tomcat.apache.org/tomcat-5.5-doc/RUNNING.txt
There should be a KB on the support site for running as a service. you can use java_service to do so (DO NOT USE SERVANY because it doesn't shutdown the process correctly)
http://forge.objectweb.org/projects/javaservice/
work4u
I created a new application call LiveSiteRuntime under the existing webapps application of the default Tomcat instance. Then I can copy the files from the LiveSite\runtime\web folder created by the Livesite runtime installation. Following the structure I have now:
under c:\tomcat5.5\webapps\livsite I have
iw
META-INF
WEB-INF
index.jsp
under WEB-INF I have
classes
conf
lib
livesite.cache
rules
core.tld
fmt.tld
web.xml
When I launch the Tomcat manger I see the new application Livesite but I am not able to run. I get an error message "description The requested resource (/Livesite) is not available"
Following is the Tomcat log
*************************************
2008-06-17 11:17:20,828 ERROR org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'runtime.PageTypeConfig' defined in ServletContext resource [/WEB-INF/conf/livesite/resources/resource-config.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI
Caused by:
java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI
at com.interwoven.livesite.common.xml.DOMWrapper.(DOMWrapper.java:351)
at com.interwoven.livesite.model.rendering.PageTypeConfig.init(PageTypeConfig.java:115)
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.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1066)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:290)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
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:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
2008-06-17 11:17:20,828 ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/iw-livesite] - Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'runtime.PageTypeConfig' defined in ServletContext resource [/WEB-INF/conf/livesite/resources/resource-config.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI
Caused by:
java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI
at com.interwoven.livesite.common.xml.DOMWrapper.(DOMWrapper.java:351)
at com.interwoven.livesite.model.rendering.PageTypeConfig.init(PageTypeConfig.java:115)
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.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1066)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:290)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
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:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
*************************************
Any ideas.
Thanks
rajivgupta
Is Customer.jar there in your Lib folder of web-inf ?
work4u
I was able to resolve the issue by placing the xalan.jar file in the Tomcat folder c:\tomcat5.5\common\endorsed.
Thanks for the replies.