Schedule usando iReport

2 respostas
S

Olá galera tudo bem ?

Tenho uma aplicação no eclipse e criei um schedule para enviar um arquivo pdf gerado pelo iReports e enviar um email desse arquivo. Quando coloco o projeto no ar pelo eclipse funciona que é uma beleza. Mas quando executo pelo arquivo "scheduler-service.xml" o processo fica parado na classe conforme linha abaixo:

JasperPrint JP = JasperFillManager.fillReport(filename, null, new JRBeanCollectionDataSource(coletiquetas));

Olhei no arquivo server.log e está assim
2008-01-11 10:28:38,062 INFO [STDOUT] ************** criando o JasperPrint !!! **************
2008-01-11 10:28:38,078 DEBUG [javax.management.timer.Timer] sendNotification() failed for listener: org.jboss.mx.server.NotificationListenerProxy@9a44f1
javax.xml.parsers.FactoryConfigurationError: Provider org.apache.crimson.jaxp.DocumentBuilderFactoryImpl could not be instantiated: java.lang.NullPointerException
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:99)

esse é o scheduler-servce.xml

<?xml version=“1.0” encoding=“UTF-8”?>
<server>
<!-- ====================================================================–>
<!-- Scheduler Service -->
<!-- ====================================================================–>
<mbean code=“org.jboss.varia.scheduler.Scheduler” name=“EnviaEmailCertificadoTTSchedule:service=Scheduler”>
<attribute name=“StartAtStartup”>true</attribute>
<attribute name=“SchedulableClass”>br.com.brasimet.os.business.schedule.EnviaEmailCertificadoTTSchedule</attribute>
<attribute name=“InitialStartDate”>NOW</attribute>
<attribute name=“SchedulePeriod”>86400000</attribute>
<attribute name=“InitialRepetitions”>-1</attribute>
</mbean>
</server>

alguém pode me ajudar por favor !!!

abraços

2 Respostas

R

teu problema é com o xml:

Vê se esses jars tão no classpath do teu server:

-xerces.jar
-xml-apis.jar
-jdom.jar

[]'s

guilhermetonetto

concordo, teu problema é no xml , da uma revisada

[]'s

Criado 11 de janeiro de 2008
Ultima resposta 11 de jan. de 2008
Respostas 2
Participantes 3