Can not get the webservice app running

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

Moderator: moderator

lerra
Posts: 4
Joined: Sun Dec 23, 2012 4:14 pm

Can not get the webservice app running

Post by lerra »

Hi,

Im running ubuntu 12.04 and installed the OpenEMM-2012_beta3-bin.tar.gz and followed OpenEMM-2012_InstallGuide_1.1.pdf

Everything works like a charm beside getting the /openemm-ws2 working,

As of the documentation,


.3
Configuration of Webservices
While the interface for the legacy OpenEMM webservices (1.0) is part of OpenEMM, the new and more powerful
webservice interface 2.0 introduced with OpenEMM 2012 runs as a separate web application in directory
/home/openemm/webapps/openemm-ws. If you want to use the new webservices you have to copy file emm.properties
from /home/openemm/webapps/openemm/WEB-INF/classes to /home/openemm/webapps/openemm-ws/WEB-
INF/classes and you have to change the URL of property wsdlLocationUri in file emm-ws.properties in the same directory
to (do not forget the trailing slash!)
http://{your domain}:8080/openemm-ws2/
After OpenEMM 2012 has been launched you may request the WSDL file for the new webservices via URL
http://{your domain}:8080/openemm-ws2/emmservices.wsdl

I have followed that
ls /home/openemm/webapps/openemm-ws/WEB-INF/classes/emm*
/home/openemm/webapps/openemm-ws/WEB-INF/classes/emm.properties /home/openemm/webapps/openemm-ws/WEB-INF/classes/emm-ws.properties

including chancing the uri and then I did a stop/start

a curl to /openemm-ws2/ gives
<html><head><title>Apache Tomcat/6.0.36 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The requested resource is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.36</h3></body></html>

and curl to /openemm-ws2/emmservices.wsdl

<html><head><title>Apache Tomcat/6.0.36 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The requested resource is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.36</h3></body></html>

or even more simple
wget http://localhost:8080/openemm-ws2/emmservices.wsdl
--2012-12-23 20:22:33-- http://localhost:8080/openemm-ws2/emmservices.wsdl
Resolving localhost (localhost)... 127.0.0.1, 127.0.1.1
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-12-23 20:22:33 ERROR 404: Not Found.


accesslogs shows
198.61.232.150 - - [23/Dec/2012:15:22:18 +0000] "GET /openemm-ws2/ HTTP/1.1" 404 949 "-" "curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3"
198.61.232.150 - - [23/Dec/2012:15:23:28 +0000] "GET /openemm-ws2/emmservices.wsdl HTTP/1.1" 404 949 "-" "curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3"

I confirmed also the tomcat that it is confirmed in the confdir
grep openemm *
server.xml: prefix="" suffix="-access_openemm.log" fileDateFormat="yyyyMMdd"
server.xml: <Context cookies="false" docBase="/home/openemm/webapps/openemm" path="" reloadable="true" />
server.xml: <Context cookies="false" docBase="/home/openemm/webapps/openemm-ws" path="/openemm-ws2" reloadable="true" />
server.xml: <Context docBase="/home/openemm/webapps/manual" path="/manual" allowLinking="true" />


But in the logs for openemm-ws, i suspected the db account but i confirmed tht by checking the emm.properties and used them

2012-12-23 15:11:06,429: INFO [main] org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
2012-12-23 15:11:06,460: INFO [main] org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@1181113: display name [Root WebApplicationContext]; startup date [Sun Dec 23 15:11:06 UTC 2012]; root of context hierarchy
2012-12-23 15:11:06,517: INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-service.xml]
2012-12-23 15:11:06,855: INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-dao.xml]
2012-12-23 15:11:06,937: INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-dao.xml]
2012-12-23 15:11:06,965: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'BindingEntryDao': replacing [Generic bean: class [org.agnitas.dao.impl.BindingEntryDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.dao.impl.BindingEntryDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,966: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'BindingEntry': replacing [Generic bean: class [org.agnitas.beans.impl.BindingEntryImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.beans.impl.BindingEntryImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,966: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'BlacklistDao': replacing [Generic bean: class [org.agnitas.dao.impl.BlacklistDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.dao.impl.BlacklistDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,967: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'CompanyDao': replacing [Generic bean: class [org.agnitas.dao.impl.CompanyDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.dao.impl.CompanyDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,967: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'DynamicTag': replacing [Generic bean: class [org.agnitas.beans.impl.DynamicTagImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.beans.impl.DynamicTagImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,967: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'DynamicTagContent': replacing [Generic bean: class [org.agnitas.beans.impl.DynamicTagContentImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.beans.impl.DynamicTagContentImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,968: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'DynamicTagContentDao': replacing [Generic bean: class [org.agnitas.dao.impl.DynamicTagContentDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.dao.impl.DynamicTagContentDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,968: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'DynamicTagDao': replacing [Generic bean: class [org.agnitas.dao.impl.DynamicTagDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.dao.impl.DynamicTagDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,968: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'MailingDao': replacing [Generic bean: class [org.agnitas.dao.impl.MailingDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.dao.impl.MailingDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,970: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'Mailing': replacing [Generic bean: class [org.agnitas.beans.impl.MailingImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.beans.impl.MailingImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,971: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'MailingComponent': replacing [Generic bean: class [org.agnitas.beans.impl.MailingComponentImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.beans.impl.MailingComponentImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,971: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'MailingComponentDao': replacing [Generic bean: class [org.agnitas.dao.impl.MailingComponentDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.dao.impl.MailingComponentDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,971: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'MailinglistDao': replacing [Generic bean: class [org.agnitas.dao.impl.MailinglistDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.dao.impl.MailinglistDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,972: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'MaildropEntryFactory': replacing [Generic bean: class [org.agnitas.mailing.beans.impl.MailDropEntryFactoryImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.mailing.beans.impl.MailDropEntryFactoryImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,972: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'Mediatype': replacing [Generic bean: class [org.agnitas.beans.impl.MediatypeImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.beans.impl.MediatypeImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,972: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'MediatypeEmail': replacing [Generic bean: class [org.agnitas.beans.impl.MediatypeEmailImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.beans.impl.MediatypeEmailImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,973: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'ProfileFieldDao': replacing [Generic bean: class [org.agnitas.dao.impl.ProfileFieldDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.dao.impl.ProfileFieldDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,973: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'Recipient': replacing [Generic bean: class [org.agnitas.beans.impl.RecipientImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.beans.impl.RecipientImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,973: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'RecipientDao': replacing [Generic bean: class [org.agnitas.dao.impl.RecipientDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.dao.impl.RecipientDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,974: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'TargetDao': replacing [Generic bean: class [org.agnitas.dao.impl.TargetDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.dao.impl.TargetDaoImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,975: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'targetFactory': replacing [Generic bean: class [org.agnitas.target.impl.TargetFactoryImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.target.impl.TargetFactoryImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,975: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'TargetRepresentationFactory': replacing [Generic bean: class [org.agnitas.target.impl.TargetRepresentationFactoryImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.target.impl.TargetRepresentationFactoryImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,976: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'TagDetails': replacing [Generic bean: class [org.agnitas.beans.impl.TagDetailsImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.beans.impl.TagDetailsImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,976: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'TrackableLink': replacing [Generic bean: class [org.agnitas.beans.impl.TrackableLinkImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]] with [Generic bean: class [org.agnitas.beans.impl.TrackableLinkImpl]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]]
2012-12-23 15:11:06,976: INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
2012-12-23 15:11:07,000: INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/dataAccessContext.xml]
2012-12-23 15:11:07,028: INFO [main] org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@1181113]: org.springframework.beans.factory.support.DefaultListableBeanFactory@146e91a
2012-12-23 15:11:07,147: INFO [main] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from class path resource [emm.properties]
2012-12-23 15:11:07,230: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@146e91a: defining beans [ColumnInfoService,BindingEntryDao,BindingEntry,BlacklistDao,CompanyDao,DynamicTag,DynamicTagContent,DynamicTagContentDao,DynamicTagDao,MailingDao,Mailing,MailingComponent,MailingComponentDao,MailinglistDao,MaildropEntryFactory,Mediatype,MediatypeEmail,ProfileFieldDao,Recipient,RecipientDao,TargetDao,targetFactory,TargetRepresentationFactory,TagDetails,TrackableLink,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.aop.config.internalAutoProxyCreator,modelValidator,bindingService,blacklistService,componentService,dynamicTagContentService,dynamicTagNameService,mailinglistService,mailingService,recipientService,propertyConfigurer,MailingFactory,Mailgun,dataSource,sessionFactory,transactionManager]; root of factory hierarchy
2012-12-23 15:11:07,513: INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@146e91a: defining beans [ColumnInfoService,BindingEntryDao,BindingEntry,BlacklistDao,CompanyDao,DynamicTag,DynamicTagContent,DynamicTagContentDao,DynamicTagDao,MailingDao,Mailing,MailingComponent,MailingComponentDao,MailinglistDao,MaildropEntryFactory,Mediatype,MediatypeEmail,ProfileFieldDao,Recipient,RecipientDao,TargetDao,targetFactory,TargetRepresentationFactory,TagDetails,TrackableLink,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.aop.config.internalAutoProxyCreator,modelValidator,bindingService,blacklistService,componentService,dynamicTagContentService,dynamicTagNameService,mailinglistService,mailingService,recipientService,propertyConfigurer,MailingFactory,Mailgun,dataSource,sessionFactory,transactionManager]; root of factory hierarchy
2012-12-23 15:11:07,514: ERROR [main] org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ColumnInfoService' defined in ServletContext resource [/WEB-INF/applicationContext-service.xml]: Cannot resolve reference to bean 'ProfileFieldDao' while setting bean property 'profileFieldDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProfileFieldDao' defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/dataAccessContext.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error the @annotation pointcut expression is only supported at Java 5 compliance level or above
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProfileFieldDao' defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/dataAccessContext.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error the @annotation pointcut expression is only supported at Java 5 compliance level or above
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
... 33 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/dataAccessContext.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error the @annotation pointcut expression is only supported at Java 5 compliance level or above
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
... 46 more
Caused by: java.lang.IllegalArgumentException: error the @annotation pointcut expression is only supported at Java 5 compliance level or above
at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:315)
at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:206)
at org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:193)
at org.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter(AspectJExpressionPointcut.java:174)
at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:195)
at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:250)
at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:284)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:113)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:85)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:66)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:362)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:325)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:361)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1344)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
... 55 more



Anybody?
Last edited by lerra on Sun Dec 23, 2012 9:24 pm, edited 1 time in total.
maschoff
Site Admin
Posts: 2597
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Can not get the webservice app running

Post by maschoff »

This seems to be the problem:

Code: Select all

ERROR [main] org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ColumnInfoService' defined in ServletContext resource [/WEB-INF/applicationContext-service.xml]: Cannot resolve reference to bean 'ProfileFieldDao' while setting bean property 'profileFieldDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProfileFieldDao' defined in ServletContext resource [/WEB-INF/applicationContext-dao.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/dataAccessContext.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error the @annotation pointcut expression is only supported at Java 5 compliance level or above
Do you use Java 5 or above?
OpenEMM Maintainer
lerra
Posts: 4
Joined: Sun Dec 23, 2012 4:14 pm

Re: Can not get the webservice app running

Post by lerra »

Yes,
32bit also,


/opt/openemm/java/bin/java -version
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) Client VM (build 23.6-b04, mixed mode)

What would the solution be?
lerra
Posts: 4
Joined: Sun Dec 23, 2012 4:14 pm

Re: Can not get the webservice app running

Post by lerra »

Hi,

jdk-6u38-linux-i586.bin seam to solve my problem,

Thanks for the guidance

Cheers
johanntagle
Posts: 15
Joined: Mon Jul 21, 2014 5:58 am

Re: Can not get the webservice app running

Post by johanntagle »

Just want to confirm that using JDK 6 also solved my problem. Hopefully it doesn't adversely affect the whole system. My question though, is this a permanent fix? Because the this thread is more than 1.5 years old and the install guide still specifically says use JDK 7.
maschoff
Site Admin
Posts: 2597
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Can not get the webservice app running

Post by maschoff »

Clarification: Up to OpenEMM 2013 you should use JDK 6, beginning with OpenEMM 2013 R2 you should use JDK 7. However, since JDK 6 is not maintained any longer, we strongly advise to update to OpenEMM 2013 R2/JDK 7.
OpenEMM Maintainer
johanntagle
Posts: 15
Joined: Mon Jul 21, 2014 5:58 am

Re: Can not get the webservice app running

Post by johanntagle »

Ok thanks for that. I encountered an error trying 2013R2 before but will try it again and post a new message if I encounter problems again.
Post Reply