Hi Carlos !

You should not need to import the class explicitly when
addressing it via packages.

Another question, though: Do you also have the "HibernateFactory"
class in WEB-INF/classes/hib ?

If so, please post the source codes of both to have a look.

Greetings,
Johannes

Carlos M. S. Bento Nogueira schrieb:

hi mike,

that's a good point. i just tried it with the same result. Yes i restarted
tomcat before doing it...

Greetings,
CarlosN.

On Sun, 22 May 2005, Michel Erard wrote:

hi carlos,

did you made an import like this "importClass(Packages.ch.bfh.hti.elquerito.User);" in your flowscript file?

regards,

Mike


Am 22.05.2005 um 19:07 schrieb Carlos M. S. Bento Nogueira:

Hello!

I'm using cocoon 2.1.7 on tomcat 5.5 and in my
flowscript when i do:
cocoon.getComponent(Packages.hib.PersistenceFactory.ROLE)

i always get this exception:
java.lang.NoClassDefFoundError: hib/PersistenceFactory$1 .

This PersistenceFactory class is in
\Web-inf\classes\hib\

and the role is declared on
\Web-inf\cocoon.xconf
as
<component class="hib.HibernateFactory" role="hib.PersistenceFactory"/>


What can be the problem here??
The PersistenceFactory is an interface class and Role is a string of this
type:
 String ROLE = PersistenceFactory.class.getName();


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to