Ver Mensaje Individual
  #4 (permalink)  
Antiguo 26/03/2007, 07:58
Avatar de sith
sith
 
Fecha de Ingreso: julio-2003
Ubicación: Sevilla
Mensajes: 333
Antigüedad: 21 años, 4 meses
Puntos: 0
Re: Problemas con fds2 y linux

Bueno he averiguado algo más, he instalado los FDS2 con el jRun, y desde la consola se displaya el siguiente error:

26/03 15:49:13 error Could not pre-load servlet: MessageBrokerServlet
[2]java.lang.UnsupportedClassVersionError: pacientes/DatosAdministrativosAssembler (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknow n Source)
at jrunx.util.JRunURLClassLoader.defineClass(JRunURLC lassLoader.java:188)
at jrunx.util.JRunURLClassLoader.findClass(JRunURLCla ssLoader.java:153)
at jrunx.util.JRunURLClassLoader.loadFromLoadClass(JR unURLClassLoader.java:117)
at jrunx.util.JRunURLClassLoader.loadClass(JRunURLCla ssLoader.java:81)
at jrunx.util.JRunURLClassLoader.loadClass(JRunURLCla ssLoader.java:70)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at flex.messaging.util.ClassUtil.createClass(ClassUti l.java:52)
at flex.messaging.factories.JavaFactory$JavaFactoryIn stance.getInstanceClass(JavaFactory.java:244)
at flex.messaging.factories.JavaFactory$JavaFactoryIn stance.createInstance(JavaFactory.java:251)
at flex.messaging.factories.JavaFactory.createFactory Instance(JavaFactory.java:93)
at flex.messaging.FactoryDestination.getFactoryInstan ce(FactoryDestination.java:76)
at flex.data.adapters.JavaAdapter.server(JavaAdapter. java:158)
at flex.data.adapters.JavaAdapter.setSettings(JavaAda pter.java:119)
at flex.messaging.Destination.createAdapter(Destinati on.java:279)
at flex.messaging.Destination.initDestination(Destina tion.java:103)
at flex.messaging.FactoryDestination.initDestination( FactoryDestination.java:58)
at flex.data.DataService.createDestination(DataServic e.java:90)
at flex.messaging.services.AbstractService.createDest inations(AbstractService.java:82)
at flex.messaging.config.MessagingConfiguration.creat eServices(MessagingConfiguration.java:187)
at flex.messaging.config.MessagingConfiguration.confi gureBroker(MessagingConfiguration.java:84)
at flex.messaging.MessageBrokerServlet.init(MessageBr okerServlet.java:105)
at jrun.servlet.WebApplicationService.loadServlet(Web ApplicationService.java:1200)
at jrun.servlet.WebApplicationService.preloadServlets (WebApplicationService.java:791)
at jrun.servlet.WebApplicationService.postStart(WebAp plicationService.java:293)
at jrun.deployment.DeployerService.initModules(Deploy erService.java:711)
at jrun.deployment.DeployerService.createWatchedDeplo yment(DeployerService.java:242)
at jrun.deployment.DeployerService.deploy(DeployerSer vice.java:430)
at jrun.deployment.DeployerService.checkWatchedDirect ories(DeployerService.java:179)
at jrun.deployment.DeployerService.run(DeployerServic e.java:891)
at jrunx.scheduler.SchedulerService.invokeRunnable(Sc hedulerService.java:230)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRu nnable(ThreadPool.java:428)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java :66)
[1]flex.messaging.config.ConfigurationException: Error instantiating application scoped instance of type 'pacientes.DatosAdministrativosAssembler' for destination 'datos_administrativos'.
at flex.messaging.factories.JavaFactory.createFactory Instance(JavaFactory.java:117)
at flex.messaging.FactoryDestination.getFactoryInstan ce(FactoryDestination.java:76)
at flex.data.adapters.JavaAdapter.server(JavaAdapter. java:158)
at flex.data.adapters.JavaAdapter.setSettings(JavaAda pter.java:119)
at flex.messaging.Destination.createAdapter(Destinati on.java:279)
at flex.messaging.Destination.initDestination(Destina tion.java:103)
at flex.messaging.FactoryDestination.initDestination( FactoryDestination.java:58)
at flex.data.DataService.createDestination(DataServic e.java:90)
at flex.messaging.services.AbstractService.createDest inations(AbstractService.java:82)
at flex.messaging.config.MessagingConfiguration.creat eServices(MessagingConfiguration.java:187)
at flex.messaging.config.MessagingConfiguration.confi gureBroker(MessagingConfiguration.java:84)
at flex.messaging.MessageBrokerServlet.init(MessageBr okerServlet.java:105)
at jrun.servlet.WebApplicationService.loadServlet(Web ApplicationService.java:1200)
at jrun.servlet.WebApplicationService.preloadServlets (WebApplicationService.java:791)
at jrun.servlet.WebApplicationService.postStart(WebAp plicationService.java:293)
at jrun.deployment.DeployerService.initModules(Deploy erService.java:711)
at jrun.deployment.DeployerService.createWatchedDeplo yment(DeployerService.java:242)
at jrun.deployment.DeployerService.deploy(DeployerSer vice.java:430)
at jrun.deployment.DeployerService.checkWatchedDirect ories(DeployerService.java:179)
at jrun.deployment.DeployerService.run(DeployerServic e.java:891)
at jrunx.scheduler.SchedulerService.invokeRunnable(Sc hedulerService.java:230)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRu nnable(ThreadPool.java:428)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java :66)
[0]flex.messaging.config.ConfigurationException: Unable to create service 'flex.data.DataService' for 'data-service' due to the following error: Error instantiating application scoped instance of type 'pacientes.DatosAdministrativosAssembler' for destination 'datos_administrativos'..
at flex.messaging.config.MessagingConfiguration.creat eServices(MessagingConfiguration.java:202)
at flex.messaging.config.MessagingConfiguration.confi gureBroker(MessagingConfiguration.java:84)
at flex.messaging.MessageBrokerServlet.init(MessageBr okerServlet.java:105)
at jrun.servlet.WebApplicationService.loadServlet(Web ApplicationService.java:1200)
at jrun.servlet.WebApplicationService.preloadServlets (WebApplicationService.java:791)
at jrun.servlet.WebApplicationService.postStart(WebAp plicationService.java:293)
at jrun.deployment.DeployerService.initModules(Deploy erService.java:711)
at jrun.deployment.DeployerService.createWatchedDeplo yment(DeployerService.java:242)
at jrun.deployment.DeployerService.deploy(DeployerSer vice.java:430)
at jrun.deployment.DeployerService.checkWatchedDirect ories(DeployerService.java:179)
at jrun.deployment.DeployerService.run(DeployerServic e.java:891)
at jrunx.scheduler.SchedulerService.invokeRunnable(Sc hedulerService.java:230)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRu nnable(ThreadPool.java:428)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java :66)


Supongo, que también ocurriria con tomcat, lo que pasa es que está integrado en mi Fedora y no veo el log de la consola.

el código de ese DatosAdministrativosAssembler es el siguiente:

Código PHP:
package pacientes;

import java.util.Iterator;
import java.util.List;

import pacientes.exeptions.ConcurrencyException;
import pacientes.exeptions.DAOException;

import flex.data.ChangeObject;
import flex.data.DataSyncException;

public class 
DatosAdministrativosAssembler {
    public List 
leer(){
        
DatosAdministrativosDAO dao = new DatosAdministrativosDAO();
        return 
dao.getDatosAdministrativos();
    }
    public List 
buscar(Integer nHH){
        
DatosAdministrativosDAO dao = new DatosAdministrativosDAO();
        return 
dao.getDatosAdministrativos(nHH.intValue());
    }
    public List 
buscarPorId(Integer idPaciente){
        
DatosAdministrativosDAO dao = new DatosAdministrativosDAO();
        return 
dao.getDatosAdministrativosById(idPaciente.intValue());
    }
    public List 
buscarPorNombre(String nombre){
        
DatosAdministrativosDAO dao = new DatosAdministrativosDAO();
        return 
dao.getDatosAdministrativosByNombre(nombre);
    }
    public List 
buscarPorApellidos(String apellidos){
        
DatosAdministrativosDAO dao = new DatosAdministrativosDAO();
        return 
dao.getDatosAdministrativosByApellidos(apellidos);
    }
    public List 
sincronizar(List cambios){
        
Iterator iterador cambios.iterator();
        
ChangeObject co;
        while (
iterador.hasNext()){
            
co = (ChangeObjectiterador.next();
            if (
co.isCreate())
                
co crear(co);
            else if (
co.isUpdate())
                
actualizar(co);
            else if (
co.isDelete())
                
borrar(co);
        }
        return 
cambios;
    }
    private 
ChangeObject crear(ChangeObject co){
        
DatosAdministrativosDAO dao = new DatosAdministrativosDAO();
        
DatosAdministrativos datos dao.create((DatosAdministrativosco.getNewVersion());
        
co.setNewVersion(datos);
        return 
co;
    }
    private 
void actualizar(ChangeObject co){
        
DatosAdministrativosDAO dao = new DatosAdministrativosDAO();
        try {
            
dao.update((DatosAdministrativosco.getNewVersion());
        } catch (
DAOException e) {
            
e.printStackTrace();
        } catch (
ConcurrencyException e) {
            
System.err.println("*** Throwing DataSyncExeption when trying to update contact id = " +
                    ((
DatosAdministrativosco.getNewVersion()).getnHH());
            throw new 
DataSyncException(co);
        } 
    }
    private 
void borrar(ChangeObject co){
        
DatosAdministrativosDAO dao = new DatosAdministrativosDAO();
        try {
            
dao.delete((DatosAdministrativosco.getPreviousVersion());
        } catch (
DAOException e) {
            
e.printStackTrace();
        } catch (
ConcurrencyException e) {
            
System.err.println("*** Throwing DataSyncExeption when trying to delete contact id = " +
                    ((
DatosAdministrativosco.getNewVersion()).getnHH());
            throw new 
DataSyncException(co);
        } 
    }