Try moving the OBJ.properties and repository.xml into .../WEB-INF/classes/
rather than directly under WEB-INF.


Rogerio Tambellini wrote:


I'm using Tomcat 4.1.29 and OJB 1.0 rc4.

I've tested my class using JUnit and it's correct, but when I deploy to Tomcat this message happens when trying to create a Persistence Broker.

java.lang.NoClassDefFoundError
at org.apache.ojb.broker.PersistenceBrokerFactory.createPersistenceBroker(Unknown Source)


This is my directory structure simplified.

TOMCAT_HOME -+
            +--WEB-INF-+
                       +--OBJ.properties
                       +--repository.xml
                       +--lib-+
                              +--db-obj-1.0-rc4.jar

As my class is running perfeclty standalone but no when I deploy, anyone knows what is missing?

Regards,
Rog�rio




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



Reply via email to