You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by Anne <ho...@yahoo.fr> on 2006/08/09 10:04:15 UTC

instanciation of RollerFactory

Hello,

I m bulding a new task class and I need to instanciate RollerFactory but I
got a problem with the instanciation, the code inside the class is :

RollerFactory.setRoller("org.apache.roller.business.hibernate.HibernateRollerImpl");

as in the classes SyncWebsitesTask and RefreshEntriesTask.
When I compiled no errors come up but when I start to run it, I get the
following error :

2006-08-09 09:37:21,601 ERROR org.apache.roller.model.RollerFactory - Error
instantiating org.apache.roller.business.hibernate.HibernateRollerImpl

with the following root cause:

java.lang.UnsupportedClassVersionError: org/hibernate/Session (Unsupported
major.minor version 48.0).

My hibernate jar is hibernate3.jar, was there any upgrading about this
class? does the problem come from another cause?
Does anyone know this error and can help me?

Thanks for helping

Anne
-- 
View this message in context: http://www.nabble.com/instanciation-of-RollerFactory-tf2077312s12275.html#a5721514
Sent from the Roller - Dev forum at Nabble.com.

RE: instanciation of RollerFactory

Posted by Anne <ho...@yahoo.fr>.
Thanks for the answer Eric. 
Effectively I had more than one JDk on the server.

Anne
-- 
View this message in context: http://www.nabble.com/instanciation-of-RollerFactory-tf2077312s12275.html#a5722467
Sent from the Roller - Dev forum at Nabble.com.


RE: instanciation of RollerFactory

Posted by Er...@sanofipasteur.com.
Hi Anne,

I think you are compiling with a java version, and executing with another one.

Regards.

Eric 

-----Message d'origine-----
De : Anne [mailto:hourra38@yahoo.fr] 
Envoyé : mercredi 9 août 2006 10:04
À : roller-dev@incubator.apache.org
Objet : instanciation of RollerFactory


Hello,

I m bulding a new task class and I need to instanciate RollerFactory but I got a problem with the instanciation, the code inside the class is :

RollerFactory.setRoller("org.apache.roller.business.hibernate.HibernateRollerImpl");

as in the classes SyncWebsitesTask and RefreshEntriesTask.
When I compiled no errors come up but when I start to run it, I get the following error :

2006-08-09 09:37:21,601 ERROR org.apache.roller.model.RollerFactory - Error instantiating org.apache.roller.business.hibernate.HibernateRollerImpl

with the following root cause:

java.lang.UnsupportedClassVersionError: org/hibernate/Session (Unsupported major.minor version 48.0).

My hibernate jar is hibernate3.jar, was there any upgrading about this class? does the problem come from another cause?
Does anyone know this error and can help me?

Thanks for helping

Anne
--
View this message in context: http://www.nabble.com/instanciation-of-RollerFactory-tf2077312s12275.html#a5721514
Sent from the Roller - Dev forum at Nabble.com.
-------------------------------------------------------------------------------------------
"Cette communication (y compris les pieces jointes) est reservee a l'usage exclusif du destinataire (des destinataires) et peut contenir des informations privilegiees, confidentielles, exemptees de divulgation selon la loi ou protegees par les droits d'auteur. Si vous n'etes pas un destinataire, toute utilisation, divulgation, distribution, reproduction, examen ou copie (totale ou partielle) est non-autorisee et peut etre illegale. Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Sanofi Pasteur decline toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message. Merci.
This transmission (including any attachments) is intended solely for the use of the addressee(s) and may contain confidential information including trade secrets which are privileged, confidential, exempt from disclosure under applicable law and/or subject to copyright. If you are not an intended recipient, any use, disclosure, distribution, reproduction, review or copying (either whole or partial) is unauthorized and may be unlawful. E-mails are susceptible to alteration and their integrity cannot be guaranteed.Sanofi Pasteur shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. Thank you."
**********************************************************************