Hi Matthias, this was a known bug in 0.9.9, was fixed:
----- Original Message ----- From: "Armin Waibel" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 10:57 AM Subject: [patch] Re: PBKey and OJB 0.9.9 > Hi Jason, Shannon, > > I currently checked in the fix. > To update version 0.9.9 check out > src/java/org/apache/ojb/broker/metadata/ConnectionRepository.java > src/java/org/apache/ojb/broker/ta/PersistenceBrokerFactoryDefaultImpl.ja > va > src/java/org/apache/ojb/broker/util BrokerHelper.java > > http://cvs.apache.org/viewcvs/jakarta-ojb/src/java/org/apache/ojb/broker > / > > > > regards, > Armin ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 8:22 AM Subject: Problem with start broker with OJB 0.9.9 with MsSQLServer > Hi, > > I had following error: > > java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for > JDBC][SQLServer]Login failed for user '(null)'. Reason: Not associated > with a trusted SQL Server connection. > > The reason was that I start the broker with following code: > > broker = PersistenceBrokerFactory.createPersistenceBroker(new > PBKey("MyDB")); > > this calls the method > org.apache.ojb.broker.metadata.JdbcConnectionDescriptor.setUserName(Stri > ng str) > > two times!!?? One time with the proper username from the repository and > one time with NULL. > > It seams to be an error in the framework. Or should there be a new method > like > PersistenceBrokerFactory.getKey("MyDB")? > > Work around: > > broker = > PersistenceBrokerFactory.createPersistenceBroker( > PersistenceBrokerFactory.getDefaultKey()); > > > > my jdbc-connection-descriptor looks like: > > <jdbc-connection-descriptor > jcd-alias="MyDB" > default-connection="true" > platform="MsSQLServer" > jdbc-level="2.0" > driver="com.microsoft.jdbc.sqlserver.SQLServerDriver" > protocol="jdbc" > subprotocol="microsoft:sqlserver" > dbalias="//localhost:1433;DatabaseName=java" > username="java" > password="java" > batch-mode="false" > > > > > > regards > > Matthias > > > > Matthias Roth > Dipl. Ing. HTL > in Wirtschaftsinformatik > > impart Software Engineering GmbH > Chasseralstrasse 13 > Postfach > CH-3063 Ittigen > > > Phone +41 (0)31 922 39 25 > Fax +41 (0)31 922 39 18 > EMail mailto:[EMAIL PROTECTED] > Homepage http://www.impart.ch > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
