Just like it says. There is no "default" descriptor.
Somewhere in repository.xml there are <jdbc-connection-descriptor>s. One of them
must have: default="true". If not, OJB complains.



Charlie



WHIRLYCOTT said the following on 6/23/2004 4:00 PM:

Greetings,

I'm working away quite happily here with some code using OJB from inside Eclipse. However, now that I've started integrating this code into a webapp using Struts, I'm getting an exception that indicates that OJB is having some trouble reading the OJB.properties file.

It's located in $TOMCAT/webapps/appname/WEB-INF/classes/OJB.properties, which I believe is correct. I also have my repository.xml file in the same directory.

Ideas?

phil.

2004-06-23 15:51:40 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception
org.apache.ojb.broker.PBFactoryException: There was no default-PBKey specified
at org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.defaultPersistenceBroker(Unknown Source)
at org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(Unknown Source)
at com.something.lst.AbstractBaseFacade.<init>(Unknown Source)
at com.something.lst.LetterDefinitionFacade.<init>(Unknown Source)
at com.something.appname.actions.LetterLibraryAction.execute(Unknown Source)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)


at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)

at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)



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



Reply via email to