Actually, there is a default descriptor in my repository.xml file.
I know that these files are well formed and contain valid information because I'm using them as-is within my dev environment without any problems.
It seems to be some kind of an issue of the files not being loaded properly...?
_________________________________________________________________ <descriptor-repository version="1.0" isolation-level="read-uncommitted">
<!-- The Default JDBC Connection. If a class-descriptor does not specify its own JDBC Connection, the Connection specified here will be used. -->
<jdbc-connection-descriptor jcd-alias="xxx" default-connection="true" platform="MsSQLServer" jdbc-level="2.0" driver="com.microsoft.jdbc.sqlserver.SQLServerDriver" protocol="jdbc" subprotocol="microsoft:sqlserver"
dbalias="//xxx:1433" username="xxx" password="xxx">
<sequence-manager className="org.apache.ojb.broker.util.sequence.SequenceManagerNativeImpl"/>
</jdbc-connection-descriptor> _________________________________________________________________
phil.
Charles N. Harvey III wrote:
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]
-- Whirlycott Philip Jacob [EMAIL PROTECTED] http://www.whirlycott.com/phil/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
