OpenEmm error and Apache-Tomcat 6

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

marthaj
Posts: 12
Joined: Mon Jun 08, 2015 8:30 pm

OpenEmm error and Apache-Tomcat 6

Post by marthaj »

Hello folks,
I have worked thru several installation problems and now one remaining.
When I execute the OpenEmm start.bat, it finds the codebase and the database, then fires up
Apache-Tomcat 6. I have this error towards the end of tomcat log listing which I believe is the reason I do not have the
OpenEmm login page display in my browser (http://www.localhost:8080) .
I have issued the command : netstat -an | find ":8080"
and this is what I receive back:
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING
So that tells me the port is listening.
Can anyone tell me how to resolve the error below etc.
Below is the error from Apache-Tomcat 6.0.44:

Jun 09, 2015 3:18:32 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 09, 2015 3:18:32 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/openemm-ws2] startup failed due to previous errors
Jun 09, 2015 3:18:32 PM org.apache.catalina.core.ApplicationContext log
maschoff
Site Admin
Posts: 2596
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: OpenEmm error and Apache-Tomcat 6

Post by maschoff »

Please post the complete log for Tomcat's startup.
OpenEMM Maintainer
marthaj
Posts: 12
Joined: Mon Jun 08, 2015 8:30 pm

Re: OpenEmm error and Apache-Tomcat 6

Post by marthaj »

Thank you for responding, It is appreciated. I still have the errors even though It will now display in Chrome but gives me errors on the default login values.
I don't know if you saw my other post concerning default login but that may be related to the problem I have posted in this topic.
Below is the complete printout.
Thank you so much for your help. I am just itching to use this software.


Jun 10, 2015 2:20:36 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.33 using APR version 1.5
.1.
Jun 10, 2015 2:20:36 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], ra
ndom [true].
Jun 10, 2015 2:20:38 PM org.apache.catalina.core.AprLifecycleListener initialize
SSL
INFO: OpenSSL successfully initialized with version OpenSSL 1.0.1m 19 Mar 2015
Jun 10, 2015 2:20:39 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 10, 2015 2:20:39 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Jun 10, 2015 2:20:39 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3933 ms
Jun 10, 2015 2:20:39 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 10, 2015 2:20:39 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.44
Jun 10, 2015 2:20:43 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
2015-06-10 14:20:51,196: WARN [main] net.sf.ehcache.config.Configurator - No co
nfiguration found. Configuring ehcache from ehcache-failsafe.xml found in the cl
asspath: jar:file:/C:/OpenEMM/webapps/openemm/WEB-INF/lib/ehcache-1.1.jar!/ehcac
he-failsafe.xml
Jun 10, 2015 2:20:57 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
2015-06-10 14:20:57,124: INFO [main] org.springframework.web.context.ContextLoa
der - Root WebApplicationContext: initialization started
2015-06-10 14:20:57,217: INFO [main] org.springframework.web.context.support.Xm
lWebApplicationContext - Refreshing org.springframework.web.context.support.XmlW
ebApplicationContext@27ba81: display name [Root WebApplicationContext]; startup
date [Wed Jun 10 14:20:57 MST 2015]; root of context hierarchy
2015-06-10 14:20:57,311: INFO [main] org.springframework.beans.factory.xml.XmlB
eanDefinitionReader - Loading XML bean definitions from ServletContext resource
[/WEB-INF/applicationContext-service.xml]
2015-06-10 14:20:57,888: INFO [main] org.springframework.beans.factory.xml.XmlB
eanDefinitionReader - Loading XML bean definitions from ServletContext resource
[/WEB-INF/applicationContext-dao.xml]
2015-06-10 14:20:57,951: ERROR [main] org.springframework.web.context.ContextLoa
der - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected excep
tion parsing XML document from ServletContext resource [/WEB-INF/applicationCont
ext-service.xml]; nested exception is java.lang.IllegalStateException: Context n
amespace element 'annotation-config' and its parser class [org.springframework.c
ontext.annotation.AnnotationConfigBeanDefinitionParser] are only available on JD
K 1.5 and higher
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
eanDefinitions(XmlBeanDefinitionReader.java:420)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:342)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at org.springframework.web.context.support.XmlWebApplicationContext.load
BeanDefinitions(XmlWebApplicationContext.java:124)
at org.springframework.web.context.support.XmlWebApplicationContext.load
BeanDefinitions(XmlWebApplicationContext.java:92)
at org.springframework.context.support.AbstractRefreshableApplicationCon
text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at org.springframework.context.support.AbstractApplicationContext.obtain
FreshBeanFactory(AbstractApplicationContext.java:422)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:352)
at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:4210)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
709)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463
)
at org.apache.catalina.core.StandardService.start(StandardService.java:5
25)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:759
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.IllegalStateException: Context namespace element 'annotatio
n-config' and its parser class [org.springframework.context.annotation.Annotatio
nConfigBeanDefinitionParser] are only available on JDK 1.5 and higher
at org.springframework.context.config.ContextNamespaceHandler$1.parse(Co
ntextNamespaceHandler.java:65)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(N
amespaceHandlerSupport.java:69)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa
rseCustomElement(BeanDefinitionParserDelegate.java:1297)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa
rseCustomElement(BeanDefinitionParserDelegate.java:1287)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe
ader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe
ader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registe
rBeanDefinitions(XmlBeanDefinitionReader.java:507)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
eanDefinitions(XmlBeanDefinitionReader.java:398)
... 28 more
Jun 10, 2015 2:20:58 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of clas
s org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected excep
tion parsing XML document from ServletContext resource [/WEB-INF/applicationCont
ext-service.xml]; nested exception is java.lang.IllegalStateException: Context n
amespace element 'annotation-config' and its parser class [org.springframework.c
ontext.annotation.AnnotationConfigBeanDefinitionParser] are only available on JD
K 1.5 and higher
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
eanDefinitions(XmlBeanDefinitionReader.java:420)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:342)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at org.springframework.web.context.support.XmlWebApplicationContext.load
BeanDefinitions(XmlWebApplicationContext.java:124)
at org.springframework.web.context.support.XmlWebApplicationContext.load
BeanDefinitions(XmlWebApplicationContext.java:92)
at org.springframework.context.support.AbstractRefreshableApplicationCon
text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at org.springframework.context.support.AbstractApplicationContext.obtain
FreshBeanFactory(AbstractApplicationContext.java:422)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:352)
at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:4210)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
709)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463
)
at org.apache.catalina.core.StandardService.start(StandardService.java:5
25)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:759
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.IllegalStateException: Context namespace element 'annotatio
n-config' and its parser class [org.springframework.context.annotation.Annotatio
nConfigBeanDefinitionParser] are only available on JDK 1.5 and higher
at org.springframework.context.config.ContextNamespaceHandler$1.parse(Co
ntextNamespaceHandler.java:65)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(N
amespaceHandlerSupport.java:69)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa
rseCustomElement(BeanDefinitionParserDelegate.java:1297)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa
rseCustomElement(BeanDefinitionParserDelegate.java:1287)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe
ader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe
ader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registe
rBeanDefinitions(XmlBeanDefinitionReader.java:507)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
eanDefinitions(XmlBeanDefinitionReader.java:398)
... 28 more

Jun 10, 2015 2:20:58 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 10, 2015 2:20:58 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/openemm-ws2] startup failed due to previous errors
Jun 10, 2015 2:20:58 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Jun 10, 2015 2:20:58 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 10, 2015 2:20:58 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Jun 10, 2015 2:20:58 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 19099 ms
maschoff
Site Admin
Posts: 2596
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: OpenEmm error and Apache-Tomcat 6

Post by maschoff »

What I see from the log:
1. You seem to use OpenEMM with OpenSSL, but OpenEMM was never tested with OpenSSL.
2. The Exception thrown by the Spring framework states that you use a Java version below 5, but for OpenEMM you need Java 7 or 8 (see README.txt).
OpenEMM Maintainer
marthaj
Posts: 12
Joined: Mon Jun 08, 2015 8:30 pm

Re: OpenEmm error and Apache-Tomcat 6

Post by marthaj »

Thank you for responding. But Java 8 is installed on my local computer and was prior to installing OpenEmm. I both Java 8 and Java SE Development 8 upgrade 45 installed.
I confirmed this by three ways:
1. viewing my control panel to confirm my version and to see if older version were still installed. None were, only version 8
2.by going to Java.com and had Java confirm what version I had installed. It was version 8.
3. by executing Java tool for removing older versions of Java and it found none. The only version it found was Java 8.
I have screen shots of it but could not paste into this text both nor added as an attachment.
I am also confused by Opens SSL. How do I change this? In services? I do not see a setting in Chrome or Internet Explorer v10 - only the selection for specific SSL versions.
So I am confused. :(
maschoff
Site Admin
Posts: 2596
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: OpenEmm error and Apache-Tomcat 6

Post by maschoff »

Which version of OpenEMM do you use?
OpenEMM Maintainer
marthaj
Posts: 12
Joined: Mon Jun 08, 2015 8:30 pm

Re: OpenEmm error and Apache-Tomcat 6

Post by marthaj »

I am using OpenEmm 2013 on my local machine with Windows 7. Thank you.
marthaj
Posts: 12
Joined: Mon Jun 08, 2015 8:30 pm

Re: OpenEmm error and Apache-Tomcat 6

Post by marthaj »

I am using OpenEmm 2013, installed on my local machine running Windows 7. Thank you.
maschoff
Site Admin
Posts: 2596
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: OpenEmm error and Apache-Tomcat 6

Post by maschoff »

OpenEMM 2013 does not work with Java 8.
OpenEMM Maintainer
marthaj
Posts: 12
Joined: Mon Jun 08, 2015 8:30 pm

Re: OpenEmm error and Apache-Tomcat 6

Post by marthaj »

Thank you redponding. What do you suggest?
maschoff
Site Admin
Posts: 2596
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: OpenEmm error and Apache-Tomcat 6

Post by maschoff »

OpenEMM 2013 -> use Java 6
OpenEMM 2013 R2 -> use Java 7
OpenEMM 2015 -> use Java 8
OpenEMM Maintainer
marthaj
Posts: 12
Joined: Mon Jun 08, 2015 8:30 pm

Re: OpenEmm error and Apache-Tomcat 6

Post by marthaj »

Thank you for responding. I downgraded my Java to version 7. Made adjustments in Tomcat 6 for setting the java_home variable.
And OpenEmm executed! What confuses me is that I upgraded to Tomcat 7 and 2015 setup wanted 6.
I must have missed something cause I was sure that I had read OpenEmm 2015 was thoroughly tested using Tomcat 7.
So I am not sure what I missed about using Tomcat 7 in regards to OpenEmm 2015.
Post Reply