I newbie here.
My troubleshooting is that from one day to another I can't deploy my project. I have reverted every modification previous to this problem but no success, it still throws the new exception.
The hibernate models have not been modified, the database has not been modified.
Actually I dont't know whats going on.
01-Jul-2019 09: 43: 07.243 SERIOUS [main] org.apache.catalina.core.StandardContext.listenerStart Exception when sending an initialized context event to the class listener instance [com.sun.faces.config.ConfigureListener ]
java.lang.RuntimeException: com.sun.faces.mgbean.ManagedBeanCreationException: The managerTdocumentFormenter property can not be defined for the managed bean catalogosBean
in com.sun.faces.config.ConfigureListener.contextInitialized (ConfigureListener.java:292)
Caused by: com.sun.faces.mgbean.ManagedBeanCreationException: The managerTdocumentFormenter property can not be defined for the managed bean catalogosBean
in com.sun.faces.mgbean.ManagedBeanBuilder $ BakedBeanProperty.set (ManagedBeanBuilder.java:615)
in com.sun.faces.mgbean.ManagedBeanBuilder.buildBean (ManagedBeanBuilder.java:133)
in com.sun.faces.mgbean.BeanBuilder.build (BeanBuilder.java:104)
in com.sun.faces.mgbean.BeanManager.createAndPush (BeanManager.java:409)
in com.sun.faces.mgbean.BeanManager.create (BeanManager.java:269)
in com.sun.faces.mgbean.BeanManager.create (BeanManager.java:256)
in com.sun.faces.config.ConfigureListener.contextInitialized (ConfigureListener.java:255)
... 41 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with the name 'sessionFactory' defined in the ServletContext resource [/WEB-INF/classes/resources/spring/config/Hibernate.xml]: invocation of the start method failed; the nested exception is org.hibernate.InvalidMappingException: the mapping document of an invalid mapping could not be parsed
in org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java:1455)
in org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:519)
in org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:456)
in org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject (AbstractBeanFactory.java:294)
in org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:225)
in org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:291)
in org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:193)
in org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:567)
in org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:913)
in org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:464)
in org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext (ContextLoader.java:385)
in org.springframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.java:284)
in org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java:111)
in org.apache.catalina.core.StandardContext.listenerStart (StandardContext.java:4663)
... 40 more
Caused by: org.hibernate.InvalidMappingException: The mapping document of an invalid mapping could not be parsed
in org.hibernate.cfg.Configuration.addInputStream (Configuration.java:502)
Caused by: org.xml.sax.SAXParseException; lineNumber: 5; column number: 20; The type of element "hibernate-mapping" must be declared.
in com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException (ErrorHandlerWrapper.java:203)
About the beans mention in the exception, I have:
public class CatalogosBean implements java.io.Serializable {
...
private transient TdocumentoParametroBo manejadorTdocumentoParamentro;
...
public TdocumentoParametroBo getManejadorTdocumentoParamentro() {
return manejadorTdocumentoParamentro;
}
public void setManejadorTdocumentoParamentro(TdocumentoParametroBo manejadorTdocumentoParamentro) {
this.manejadorTdocumentoParamentro = manejadorTdocumentoParamentro;
}