<?xml version="1.0" encoding="ISO-8859-1"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:p="http://www.springframework.org/schema/p"xmlns:aop="http://www.springframework.org/schema/aop"xmlns:context="http://www.springframework.org/schema/context"xmlns:jee="http://www.springframework.org/schema/jee"xmlns:tx="http://www.springframework.org/schema/tx"xmlns:util="http://www.springframework.org/schema/util"xsi:schemaLocation=" http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"default-autowire="byName"><!--*** Camada de negócios ***--><beanid="entidadeService"class="br.com.bry.crsec.contratos.service.impl.EntidadeService"/><beanid="contratoService"class="br.com.bry.crsec.contratos.service.impl.ContratoService"/><beanid="contratoWebService"class="br.com.bry.crsec.contratos.service.impl.ContratoWebService"/><beanid="participanteService"class="br.com.bry.crsec.contratos.service.impl.ParticipanteService"/><beanid="pesquisaService"class="br.com.bry.crsec.contratos.service.impl.PesquisaService"/><beanid="usuarioService"class="br.com.bry.crsec.contratos.service.impl.UsuarioService"/><beanid="grupoService"class="br.com.bry.crsec.contratos.service.impl.GrupoService"/><beanid="securityService"class="br.com.bry.crsec.contratos.service.impl.SecurityService"><propertyname="certificadoAutenticacaoAct"value="${CertificadoAutenticacaoPDDE}"/></bean><beanid="parametroService"class="br.com.bry.crsec.contratos.service.impl.ParametroService"/><beanid="assinaturaService"class="br.com.bry.crsec.contratos.service.impl.AssinaturaService"/><!-- <beanid="contabilidadeService"class="br.com.bry.crsec.contratos.service.impl.ContabilidadeService"/> --><beanid="contabilidadeService"class="br.com.bry.crsec.contratos.service.impl.ContabilidadeService"/><beanid="cartorioService"class="br.com.bry.crsec.contratos.service.impl.CartorioServiceFalso"/><beanid="emailService"class="br.com.bry.crsec.contratos.service.impl.EmailService"><propertyname="link"value="${LinkDoEmailDeAssinatura}"/></bean><beanid="dataLimiteService"class="br.com.bry.crsec.contratos.service.impl.DataLimiteService"><propertyname="numeroDeDiasAntecipados"value="${NumeroDeDiasAntecipadosParaDataLimite}"/></bean><beanid="emailPushService"class="br.com.bry.crsec.contratos.service.impl.EmailPushService"/><beanid="smsPushService"class="br.com.bry.crsec.contratos.service.impl.SmsPushService"/><beanid="openOfficeConnection"class="com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection"><constructor-argvalue="${ServidorOpenOffice}"/><constructor-argvalue="${PortaOpenOffice}"/></bean><beanid="fabricaDeAlgoritmos"class="br.com.bry.crsec.contratos.service.conversao.pdf.FabricaDeAlgoritmosDeConversao"><propertyname="connection"ref="openOfficeConnection"/><propertyname="documentConverter"><beanclass="com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter"><constructor-argref="openOfficeConnection"/></bean></property></bean><!--*** Camada de persistência ***--><beanid="entidadeDao"class="br.com.bry.crsec.contratos.dao.jpa.JpaEntidadeDAO"/><beanid="contratoDao"class="br.com.bry.crsec.contratos.dao.jpa.JpaContratoDAO"/><beanid="usuarioDao"class="br.com.bry.crsec.contratos.dao.jpa.JpaUsuarioDAO"/><beanid="grupoDao"class="br.com.bry.crsec.contratos.dao.jpa.JpaGrupoDAO"/><beanid="participanteDao"class="br.com.bry.crsec.contratos.dao.jpa.JpaParticipanteDao"/><beanid="parametroDao"class="br.com.bry.crsec.contratos.dao.properties.PropertiesParametroDao"><propertyname="properties"ref="arquivoDeConfiguracao"/></bean><util:propertiesid="arquivoDeConfiguracao"location="classpath:bry_contratos.properties"/><!--*** Configurações de banco e transações ***--><beanid="dataSourceCrsec"class="org.springframework.jndi.JndiObjectFactoryBean"><propertyname="jndiName"value="jdbc/contratos"/><propertyname="cache"value="true"/><propertyname="resourceRef"value="true"/><propertyname="lookupOnStartup"value="true"/><propertyname="expectedType"value="javax.sql.DataSource"/></bean><beanid="entityManagerFactory"class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"><propertyname="persistenceUnitName"value="crsec-pu"/><propertyname="dataSource"ref="dataSourceCrsec"/><propertyname="persistenceXmlLocation"value="classpath:/META-INF/persistence.xml"/><propertyname="jpaVendorAdapter"><beanclass="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"><propertyname="database"value="${DialetoDoBancoDeDados}"/><propertyname="showSql"value="${RodarNoModoDesenvolvimento}"/><propertyname="generateDdl"value="${RodarNoModoDesenvolvimento}"/></bean></property><propertyname="jpaProperties"><props><propkey="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop><propkey="hibernate.hbm2ddl.auto">validate</prop><propkey="hibernate.archive.autodetection">class</prop></props></property></bean><beanid="transactionManager"class="org.springframework.orm.jpa.JpaTransactionManager"><propertyname="entityManagerFactory"ref="entityManagerFactory"/></bean><tx:annotation-driven/><!--*** Configuracao do Quartz para rodar a daemon de avisos em limite de assinatura ***--><beanname="dataLimiteJobBean"class="org.springframework.scheduling.quartz.JobDetailBean"><propertyname="jobClass"value="br.com.bry.crsec.contratos.util.DataLimiteJobBean"/><propertyname="jobDataAsMap"><map><entrykey="dataLimiteService"><refbean="dataLimiteService"/></entry></map></property></bean><beanclass="org.springframework.scheduling.quartz.SchedulerFactoryBean"><propertyname="triggers"><beanclass="org.springframework.scheduling.quartz.CronTriggerBean"><propertyname="jobDetail"ref="dataLimiteJobBean"/><propertyname="cronExpression"value="${ExpressaoCronParaRodarDaemon}"/></bean></property></bean><!--*** Outras configurações ***--><beanid="carimboDoTempoImageRenderer"init-method="carregarImagemTemplate"class="br.com.bry.crsec.contratos.web.util.CarimboDoTempoImageRenderer"/><beanid="velocityEngine"class="org.springframework.ui.velocity.VelocityEngineFactoryBean"><propertyname="velocityProperties"><value>resource.loader=class
class.resource.loader.class=org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
</value></property></bean><beanid="mailSender"class="org.springframework.mail.javamail.JavaMailSenderImpl"><propertyname="host"value="modelo.bry.com.br"/><propertyname="port"value="25"/><!-- <propertyname="session"><beanclass="org.springframework.jndi.JndiObjectFactoryBean"><propertyname="jndiName"value="mail/Session"/><propertyname="cache"value="true"/><propertyname="resourceRef"value="true"/><propertyname="lookupOnStartup"value="true"/><propertyname="expectedType"value="javax.mail.Session"/> </bean> </property> --></bean><context:annotation-config/><beanid="parametrosCrsec"class="br.com.bry.crsec.contratos.util.ParametrosCrsec"><propertyname="extensoesDeArquivoPermitidas"><map><entrykey="pdf"value="application/pdf"/><entrykey="doc"value="application/msword"/><entrykey="docx"value="application/vnd.openxmlformats-officedocument.wordprocessingml.document"/><entrykey="rtf"value="application/rtf"/><entrykey="txt"value="text/plain"/><entrykey="jpg"value="image/jpeg"/><entrykey="jpeg"value="image/jpeg"/><entrykey="tiff"value="image/tiff"/><entrykey="tif"value="image/tiff"/><entrykey="gif"value="image/gif"/><entrykey="png"value="image/png"/></map></property></bean><beanclass="org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer"depends-on="parametrosCrsec"><propertyname="contextOverride"value="true"/><propertyname="searchContextAttributes"value="true"/></bean><beanid="customEditorConfigurer"class="org.springframework.beans.factory.config.CustomEditorConfigurer"><propertyname="customEditors"><map><entrykey="java.util.Date"><beanclass="org.springframework.beans.propertyeditors.CustomDateEditor"><constructor-argindex="0"><beanclass="java.text.SimpleDateFormat"><constructor-argvalue="dd/MM/yyyy"/></bean></constructor-arg><constructor-argindex="1"value="false"/></bean></entry></map></property></bean></beans>
R
raf4ever
Vc pode substituir essas declarações de beans por isso:
<context:component-scanbase-package="*"/>
E colocar a anotação @Component nas suas classes.
D
duducordeiro_
Obrigado pela ajuda.
O problema estava no banco de dados, no momento em que a aplicação se conectava com o banco.
Zerei o banco e refiz ele e agora está funcionando.