Put OJB.properties and repository.xml in a directory named classes in your WEB-INF directory

WEB-INF
   + classes
       - OJB.properties
       - repository.xml

Regards
Franz

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



-- Franz-Josef Herpers Puschkinallee 9A 12435 Berlin 030/53 21 33 02 0173/54 23 666 [EMAIL PROTECTED]


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



Reply via email to