Re: Setup Question.

2005-04-04 Thread Martin Kalén
Charles Anthony wrote:
Dear Mr/Ms List Admin - could you please remove this address from the
mailing list.
In progress...
Geir Magnusson Jr. (of the infrastructure team) has fixed this.
Regards,
 Martin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Setup Question.

2005-04-04 Thread Martin Kalén
Philip Denno wrote:
I gave up as I ran into a bug with the implementation.
I am sure the OJB JDO developers will want to hear your feedback,
although the JDO layer is known not to be complete.
I then found an article which used the PersistenceBroker
> (instead of the PersistenceManager) and it worked fine.
Since I am not very familiar with this framework,
> what is the difference between these classes?
For a quick overview of the different APIs see the "Flexibility"
section of the homepage:
 http://db.apache.org/ojb/index.html
For a more hands-on description of the differences, see the FAQ:
 http://db.apache.org/ojb/docu/faq.html#apis
(There you will also find hints as to how you can start using the
production-ready ODMG layer, without moving away from a future JDO
migration path.)
Regards,
 Martin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Setup Question.

2005-04-04 Thread Martin Kalén
Charles Anthony wrote:
Dear Mr/Ms List Admin - could you please remove this address from the
mailing list.
In progress... Also see your welcome mail from the list and the footer
of every post for how to get in touch with the list owner directly.
It's beginning to get on my nerves - I don't think I could put up with it
until the beginning of may ! (Especially since I don't get a holiday until
Christmas...)
:)
Regards,
 Martin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: RE: Re: Re: Re: Re: Re: RE: Setup Question.

2005-04-01 Thread r . alt
Ich bin bis 01.05.2005 nicht zu erreichen. In dringenden Fällen kontaktieren 
Sie bitte:

[EMAIL PROTECTED]


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



Re: Re: Re: Re: Re: Re: Re: Re: RE: Setup Question.

2005-04-01 Thread r . alt
Ich bin bis 01.05.2005 nicht zu erreichen. In dringenden Fällen kontaktieren 
Sie bitte:

[EMAIL PROTECTED]


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



RE: Re: Re: Re: Re: Re: RE: Setup Question.

2005-04-01 Thread Charles Anthony
Dear Mr/Ms List Admin - could you please remove this address from the
mailing list.

It's beginning to get on my nerves - I don't think I could put up with it
until the beginning of may ! (Especially since I don't get a holiday until
Christmas...)

Cheers,

Charles.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 01 April 2005 17:15
To: ojb-user@db.apache.org
Subject: Re: Re: Re: Re: Re: Re: RE: Setup Question.


Ich bin bis 01.05.2005 nicht zu erreichen. In dringenden Fällen kontaktieren
Sie bitte:

[EMAIL PROTECTED]


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



___
HPD Software Ltd. - Helping Business Finance Business
Email terms and conditions: www.hpdsoftware.com/disclaimer 



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



Re: Re: Re: Re: Re: Re: Re: RE: Setup Question.

2005-04-01 Thread r . alt
Ich bin bis 01.05.2005 nicht zu erreichen. In dringenden Fällen kontaktieren 
Sie bitte:

[EMAIL PROTECTED]


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



Re: Re: Re: Re: Re: Re: RE: Setup Question.

2005-04-01 Thread r . alt
Ich bin bis 01.05.2005 nicht zu erreichen. In dringenden Fällen kontaktieren 
Sie bitte:

[EMAIL PROTECTED]


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



Re: Re: Re: Re: Re: RE: Setup Question.

2005-04-01 Thread r . alt
Ich bin bis 01.05.2005 nicht zu erreichen. In dringenden Fällen kontaktieren 
Sie bitte:

[EMAIL PROTECTED]


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



Re: Re: Re: Re: RE: Setup Question.

2005-04-01 Thread r . alt
Ich bin bis 01.05.2005 nicht zu erreichen. In dringenden Fällen kontaktieren 
Sie bitte:

[EMAIL PROTECTED]


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



Re: Re: Re: RE: Setup Question.

2005-04-01 Thread r . alt
Ich bin bis 01.05.2005 nicht zu erreichen. In dringenden Fällen kontaktieren 
Sie bitte:

[EMAIL PROTECTED]


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



Re: Re: RE: Setup Question.

2005-04-01 Thread r . alt
Ich bin bis 01.05.2005 nicht zu erreichen. In dringenden Fällen kontaktieren 
Sie bitte:

[EMAIL PROTECTED]


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



Re: RE: Setup Question.

2005-04-01 Thread r . alt
Ich bin bis 01.05.2005 nicht zu erreichen. In dringenden Fällen kontaktieren 
Sie bitte:

[EMAIL PROTECTED]


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



RE: Setup Question.

2005-04-01 Thread Philip Denno
I discovered that by experience. I gave up as I ran into a bug with the 
implementation.

I then found an article which used the PersistenceBroker (instead of the 
PersistenceManager) and it worked fine.

Since I am not very familiar with this framework, what is the difference 
between these classes?

Cheers,
Philip.

-Original Message-
From: Martin Kalén [mailto:[EMAIL PROTECTED] 
Sent: March 31, 2005 10:53 PM
To: OJB Users List
Subject: Re: Setup Question.


Philip Denno wrote:
> Actually, I found the jar file, but now I get NullPointerExceptions.

Did you check the JDO tutorial?

http://db.apache.org/ojb/docu/tutorials/jdo-tutorial.html

Regards,
  Martin

P.S. JDO support in OJB is not yet production-ready, or as stated on the 
homepage: "A full JDO implementation is scheduled for OJB 2.0"

-
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]



Re: Setup Question.

2005-03-31 Thread Martin Kalén
Philip Denno wrote:
Actually, I found the jar file, but now I get NullPointerExceptions.
Did you check the JDO tutorial?
http://db.apache.org/ojb/docu/tutorials/jdo-tutorial.html
Regards,
 Martin
P.S. JDO support in OJB is not yet production-ready, or as stated
on the homepage: "A full JDO implementation is scheduled for OJB 2.0"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Setup Question.

2005-03-30 Thread Philip Denno
Actually, I found the jar file, but now I get NullPointerExceptions. I
traced this through to the QueryImpl class and a member variable
Collection which is never set. The offending member is the 
"imports" Collection which I assume is where the package names which are
to be instansiated and returned are stored.

The exact error is:

java.lang.NullPointerException
at
org.apache.ojb.jdo.jdoql.QueryTreeResolver.checkImports(QueryTreeResolve
r.java:117)
at
org.apache.ojb.jdo.jdoql.QueryTreeResolver.resolveAndCheck(QueryTreeReso
lver.java:86)
at org.apache.ojb.jdo.QueryImpl.compile(QueryImpl.java:302)
at org.apache.ojb.jdo.QueryImpl.execute(QueryImpl.java:323)
at com.tsi.test.jdo.JDOTest.(JDOTest.java:72)
at com.tsi.test.jdo.JDOTest.main(JDOTest.java:79)
Exception in thread "main" 

The code which generates this problem is:

public JDOTest(int garbage)
{
Properties props = new Properties();
props.put("javax.jdo.PersistenceManagerFactoryClass",
"org.apache.ojb.jdo.PersistenceManagerFactoryImpl");

// PersistenceManagerFactory pmf = new
PersistenceManagerFactoryImpl();
PersistenceManagerFactory pmf =
JDOHelper.getPersistenceManagerFactory(props);
pmf.setConnectionUserName("guest");
pmf.setConnectionPassword("guest");
pmf.setConnectionDriverName("com.mysql.jdbc.Driver");
pmf.setConnectionURL("jdbc:mysql://localhost/tsi");
PersistenceManager pm = pmf.getPersistenceManager();

// 2. Build a query to look up product by the id
int id = 1;
Query query = pm.newQuery(Product.class);

// 3. execute query
Collection result = (Collection) query.execute();
Product x = (Product) result.iterator().next(); 
} 

Is there another call I have to make in order to populate the "imports"
Collection?

Cheers,
Philip. 

-Original Message-
From: Philip Denno [mailto:[EMAIL PROTECTED] 
Sent: March 30, 2005 2:19 PM
To: OJB Users List
Subject: RE: Setup Question.


I have created a demo program which allows me to persist my data to
mysql but when I read the data back out I get the following error:

java.lang.NoClassDefFoundError: antlr/TokenStreamException
at org.apache.ojb.jdo.QueryImpl.setFilter(QueryImpl.java:145)
at
org.apache.ojb.jdo.PersistenceManagerImpl.newQuery(PersistenceManagerImp
l.java:364)
at com.tsi.test.jdo.JDOTest.(JDOTest.java:68)
at com.tsi.test.jdo.JDOTest.main(JDOTest.java:78)
Exception in thread "main" 

Does anybody know which jar file this package is in?

Thanks for all your help so far.

Cheers,
Philip. 

-Original Message-
From: Philip Denno [mailto:[EMAIL PROTECTED] 
Sent: March 30, 2005 11:34 AM
To: OJB Users List; Thomas Dudziak
Subject: RE: Setup Question.


Thanks Thomas, changing the platform="mysql" to platform="MySQL" works.

Cheers,
Philip.

-Original Message-----
From: Thomas Dudziak [mailto:[EMAIL PROTECTED] 
Sent: March 30, 2005 11:13 AM
To: OJB Users List
Subject: Re: Setup Question.


On Wed, 30 Mar 2005 11:09:52 -0800, Philip Denno <[EMAIL PROTECTED]>
wrote:
> Thanks, that makes sense.
> 
> I replaced the jar file to be 1.0.2 and it now loads fine. Now I get 
> the following problem when I launch related to the 
> repository_database.xml
> 
> Once again I took the defaults from the apache website and attempted 
> to customize them. The exact warning from OJB is:
> 
> [DEFAULT] WARN: [PlatformFactory] problems with platform
> org.apache.ojb.broker.platforms.PlatformMysqlImpl:
> org.apache.ojb.broker.platforms.PlatformMysqlImpl
> [DEFAULT] WARN: [PlatformFactory] OJB will use PlatformDefaultImpl 
> instead
> 
> I modified the default file so that it looks like the following:
> 
>  jcd-alias="default"
> default-connection="true"
> platform="mysql"
> jdbc-level="2.0"
> driver="com.mysql.jdbc.Driver"
> protocol="jdbc"
> subprotocol="mysql"
> dbalias="tsi"
> username="guest"
> password="guest"
> batch-mode="false"
> useAutoCommit="1"
> ignoreAutoCommitExceptions="false"
>  >
> 
> Are any of these settings incorrect? What exactly is wrong with the 
> mysql platform class?

The platform setting is case sensitive, if you use "MySQL&quo

RE: Setup Question.

2005-03-30 Thread Philip Denno
I have created a demo program which allows me to persist my data to
mysql but when I read
the data back out I get the following error:

java.lang.NoClassDefFoundError: antlr/TokenStreamException
at org.apache.ojb.jdo.QueryImpl.setFilter(QueryImpl.java:145)
at
org.apache.ojb.jdo.PersistenceManagerImpl.newQuery(PersistenceManagerImp
l.java:364)
at com.tsi.test.jdo.JDOTest.(JDOTest.java:68)
at com.tsi.test.jdo.JDOTest.main(JDOTest.java:78)
Exception in thread "main" 

Does anybody know which jar file this package is in?

Thanks for all your help so far.

Cheers,
Philip. 

-Original Message-
From: Philip Denno [mailto:[EMAIL PROTECTED] 
Sent: March 30, 2005 11:34 AM
To: OJB Users List; Thomas Dudziak
Subject: RE: Setup Question.


Thanks Thomas, changing the platform="mysql" to platform="MySQL" works.

Cheers,
Philip.

-Original Message-
From: Thomas Dudziak [mailto:[EMAIL PROTECTED] 
Sent: March 30, 2005 11:13 AM
To: OJB Users List
Subject: Re: Setup Question.


On Wed, 30 Mar 2005 11:09:52 -0800, Philip Denno <[EMAIL PROTECTED]>
wrote:
> Thanks, that makes sense.
> 
> I replaced the jar file to be 1.0.2 and it now loads fine. Now I get
> the following problem when I launch related to the 
> repository_database.xml
> 
> Once again I took the defaults from the apache website and attempted
> to customize them. The exact warning from OJB is:
> 
> [DEFAULT] WARN: [PlatformFactory] problems with platform
> org.apache.ojb.broker.platforms.PlatformMysqlImpl:
> org.apache.ojb.broker.platforms.PlatformMysqlImpl
> [DEFAULT] WARN: [PlatformFactory] OJB will use PlatformDefaultImpl
> instead
> 
> I modified the default file so that it looks like the following:
> 
>  jcd-alias="default"
> default-connection="true"
> platform="mysql"
> jdbc-level="2.0"
> driver="com.mysql.jdbc.Driver"
> protocol="jdbc"
> subprotocol="mysql"
> dbalias="tsi"
> username="guest"
> password="guest"
> batch-mode="false"
> useAutoCommit="1"
> ignoreAutoCommitExceptions="false"
>  >
> 
> Are any of these settings incorrect? What exactly is wrong with the
> mysql platform class?

The platform setting is case sensitive, if you use "MySQL" as the value,
then it should work.

Tom

-
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]



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



RE: Setup Question.

2005-03-30 Thread Philip Denno
Thanks Thomas, changing the platform="mysql" to platform="MySQL" works.

Cheers,
Philip.

-Original Message-
From: Thomas Dudziak [mailto:[EMAIL PROTECTED] 
Sent: March 30, 2005 11:13 AM
To: OJB Users List
Subject: Re: Setup Question.


On Wed, 30 Mar 2005 11:09:52 -0800, Philip Denno <[EMAIL PROTECTED]>
wrote:
> Thanks, that makes sense.
> 
> I replaced the jar file to be 1.0.2 and it now loads fine. Now I get 
> the following problem when I launch related to the 
> repository_database.xml
> 
> Once again I took the defaults from the apache website and attempted 
> to customize them. The exact warning from OJB is:
> 
> [DEFAULT] WARN: [PlatformFactory] problems with platform
> org.apache.ojb.broker.platforms.PlatformMysqlImpl:
> org.apache.ojb.broker.platforms.PlatformMysqlImpl
> [DEFAULT] WARN: [PlatformFactory] OJB will use PlatformDefaultImpl 
> instead
> 
> I modified the default file so that it looks like the following:
> 
>  jcd-alias="default"
> default-connection="true"
> platform="mysql"
> jdbc-level="2.0"
> driver="com.mysql.jdbc.Driver"
> protocol="jdbc"
> subprotocol="mysql"
> dbalias="tsi"
> username="guest"
> password="guest"
> batch-mode="false"
> useAutoCommit="1"
> ignoreAutoCommitExceptions="false"
>  >
> 
> Are any of these settings incorrect? What exactly is wrong with the 
> mysql platform class?

The platform setting is case sensitive, if you use "MySQL" as the value,
then it should work.

Tom

-
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]



Re: Setup Question.

2005-03-30 Thread Armin Waibel
Philip Denno wrote:
Thanks, that makes sense.
I replaced the jar file to be 1.0.2 and it now loads fine. Now I get the
following problem when
I launch related to the repository_database.xml
Once again I took the defaults from the apache website and attempted to
customize them. The exact warning from OJB is:
[DEFAULT] WARN: [PlatformFactory] problems with platform
org.apache.ojb.broker.platforms.PlatformMysqlImpl:
org.apache.ojb.broker.platforms.PlatformMysqlImpl
[DEFAULT] WARN: [PlatformFactory] OJB will use PlatformDefaultImpl
instead
hmm, are you sure that all old OJB jars removed from the classpath?
regards,
Armin

I modified the default file so that it looks like the following:

Are any of these settings incorrect? What exactly is wrong with the
mysql platform class?
Cheers,
Philip.
-Original Message-
From: Armin Waibel [mailto:[EMAIL PROTECTED] 
Sent: March 30, 2005 8:44 AM
To: OJB Users List
Subject: Re: Setup Question.

Hi Philip,
seems you mixed OJB 1.0.1 with 1.0.2 OJB.properties file. The website 
always based on the latest release.

regards,
Armin
Philip Denno wrote:
I am trying to configure OJB to examine if it is suitable for my 
persistence problems but am having some problems. I copied an example 
OJB.properties file from apache.org and get the following message when

I launch my test program.
[BOOT] WARN: Value 
"org.apache.ojb.broker.locking.LockManagerCommonsImpl" is illegal for 
key "LockManagerClass" (should be a class, using default value class
org.apache.ojb.odmg.locking.LockManagerDefaultImpl)

 
The application then crashes with a NullPointerException.

My project depends on the following jar files:
jdo.jar
jdori.jar
db-ojb-1.0.1.jar
commons-lang-2.0.jar
commons-dbcp-1.1.jar
commons-pool-1.1.jar
commons-collections-2.1.1.jar
mysql-connector-java-3.1.7-bin.jar
I can't seem to find any class called 
"org.apache.ojb.broker.locking.LockManagerCommonsImpl" which I assume 
is what causes the NullPointerException.

Does anybody know where to find said class?
Cheers,
Philip.
The stack trace is given below:
java.lang.NullPointerException
	at 
org.apache.ojb.broker.util.BrokerHelper.crossCheckPBKey(BrokerHelper.j
av
a:124)
	at

org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.createPer
sistenceBroker(PersistenceBrokerFactoryDefaultImpl.java:92)
at
org.apache.ojb.broker.PersistenceBrokerFactory.createPersistenceBroker(P
ersistenceBrokerFactory.java:86)
at
org.apache.ojb.otm.core.BaseConnection.(BaseConnection.java:65)
at
org.apache.ojb.otm.transaction.LocalTransactionFactory$LocalConnection.<
init>(LocalTransactionFactory.java:94)
	at 
org.apache.ojb.otm.transaction.LocalTransactionFactory.acquireConnecti
on
(LocalTransactionFactory.java:76)
	at org.apache.ojb.otm.OTMKit.acquireConnection(OTMKit.java:43)
	at

org.apache.ojb.jdo.PersistenceManagerImpl.(PersistenceManagerImpl.
java:67)
at
org.apache.ojb.jdo.PersistenceManagerFactoryImpl.getPersistenceManager(P
ersistenceManagerFactoryImpl.java:177)
at
org.apache.ojb.jdo.PersistenceManagerFactoryImpl.getPersistenceManager(P
ersistenceManagerFactoryImpl.java:167)
at com.tsi.test.jdo.JDOTest.(JDOTest.java:34)
at com.tsi.test.jdo.JDOTest.main(JDOTest.java:44)
-
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]

-
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]


Re: Setup Question.

2005-03-30 Thread Thomas Dudziak
On Wed, 30 Mar 2005 11:09:52 -0800, Philip Denno <[EMAIL PROTECTED]> wrote:
> Thanks, that makes sense.
> 
> I replaced the jar file to be 1.0.2 and it now loads fine. Now I get the
> following problem when
> I launch related to the repository_database.xml
> 
> Once again I took the defaults from the apache website and attempted to
> customize them. The exact warning from OJB is:
> 
> [DEFAULT] WARN: [PlatformFactory] problems with platform
> org.apache.ojb.broker.platforms.PlatformMysqlImpl:
> org.apache.ojb.broker.platforms.PlatformMysqlImpl
> [DEFAULT] WARN: [PlatformFactory] OJB will use PlatformDefaultImpl
> instead
> 
> I modified the default file so that it looks like the following:
> 
>  jcd-alias="default"
> default-connection="true"
> platform="mysql"
> jdbc-level="2.0"
> driver="com.mysql.jdbc.Driver"
> protocol="jdbc"
> subprotocol="mysql"
> dbalias="tsi"
> username="guest"
> password="guest"
> batch-mode="false"
> useAutoCommit="1"
> ignoreAutoCommitExceptions="false"
>  >
> 
> Are any of these settings incorrect? What exactly is wrong with the
> mysql platform class?

The platform setting is case sensitive, if you use "MySQL" as the
value, then it should work.

Tom

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



RE: Setup Question.

2005-03-30 Thread Philip Denno
Thanks, that makes sense.

I replaced the jar file to be 1.0.2 and it now loads fine. Now I get the
following problem when
I launch related to the repository_database.xml

Once again I took the defaults from the apache website and attempted to
customize them. The exact warning from OJB is:

[DEFAULT] WARN: [PlatformFactory] problems with platform
org.apache.ojb.broker.platforms.PlatformMysqlImpl:
org.apache.ojb.broker.platforms.PlatformMysqlImpl
[DEFAULT] WARN: [PlatformFactory] OJB will use PlatformDefaultImpl
instead

I modified the default file so that it looks like the following:



Are any of these settings incorrect? What exactly is wrong with the
mysql platform class?

Cheers,
Philip.


-Original Message-
From: Armin Waibel [mailto:[EMAIL PROTECTED] 
Sent: March 30, 2005 8:44 AM
To: OJB Users List
Subject: Re: Setup Question.


Hi Philip,

seems you mixed OJB 1.0.1 with 1.0.2 OJB.properties file. The website 
always based on the latest release.

regards,
Armin


Philip Denno wrote:
> I am trying to configure OJB to examine if it is suitable for my 
> persistence problems but am having some problems. I copied an example 
> OJB.properties file from apache.org and get the following message when

> I launch my test program.
> 
> [BOOT] WARN: Value 
> "org.apache.ojb.broker.locking.LockManagerCommonsImpl" is illegal for 
> key "LockManagerClass" (should be a class, using default value class
> org.apache.ojb.odmg.locking.LockManagerDefaultImpl)
> 
>   
> The application then crashes with a NullPointerException.
> 
> My project depends on the following jar files:
> 
>   jdo.jar
>   jdori.jar
>   db-ojb-1.0.1.jar
>   commons-lang-2.0.jar
>   commons-dbcp-1.1.jar
>   commons-pool-1.1.jar
>   commons-collections-2.1.1.jar
>   mysql-connector-java-3.1.7-bin.jar
> 
> I can't seem to find any class called 
> "org.apache.ojb.broker.locking.LockManagerCommonsImpl" which I assume 
> is what causes the NullPointerException.
> 
> Does anybody know where to find said class?
> 
> Cheers,
> Philip.
> 
> 
> The stack trace is given below:
> 
> java.lang.NullPointerException
>   at 
> org.apache.ojb.broker.util.BrokerHelper.crossCheckPBKey(BrokerHelper.j
> av
> a:124)
>   at
>
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.createPer
> sistenceBroker(PersistenceBrokerFactoryDefaultImpl.java:92)
>   at
>
org.apache.ojb.broker.PersistenceBrokerFactory.createPersistenceBroker(P
> ersistenceBrokerFactory.java:86)
>   at
> org.apache.ojb.otm.core.BaseConnection.(BaseConnection.java:65)
>   at
>
org.apache.ojb.otm.transaction.LocalTransactionFactory$LocalConnection.<
> init>(LocalTransactionFactory.java:94)
>   at 
> org.apache.ojb.otm.transaction.LocalTransactionFactory.acquireConnecti
> on
> (LocalTransactionFactory.java:76)
>   at org.apache.ojb.otm.OTMKit.acquireConnection(OTMKit.java:43)
>   at
>
org.apache.ojb.jdo.PersistenceManagerImpl.(PersistenceManagerImpl.
> java:67)
>   at
>
org.apache.ojb.jdo.PersistenceManagerFactoryImpl.getPersistenceManager(P
> ersistenceManagerFactoryImpl.java:177)
>   at
>
org.apache.ojb.jdo.PersistenceManagerFactoryImpl.getPersistenceManager(P
> ersistenceManagerFactoryImpl.java:167)
>   at com.tsi.test.jdo.JDOTest.(JDOTest.java:34)
>   at com.tsi.test.jdo.JDOTest.main(JDOTest.java:44)
> 
> -
> 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]



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



Re: Setup Question.

2005-03-30 Thread Armin Waibel
Hi Philip,
seems you mixed OJB 1.0.1 with 1.0.2 OJB.properties file. The website 
always based on the latest release.

regards,
Armin
Philip Denno wrote:
I am trying to configure OJB to examine if it is suitable for my
persistence problems but am having some problems. I copied an example
OJB.properties file from apache.org and get the following message when I
launch my test program. 

[BOOT] WARN: Value
"org.apache.ojb.broker.locking.LockManagerCommonsImpl" is illegal for
key "LockManagerClass" (should be a class, using default value class
org.apache.ojb.odmg.locking.LockManagerDefaultImpl)
  
The application then crashes with a NullPointerException.

My project depends on the following jar files:
jdo.jar
jdori.jar
db-ojb-1.0.1.jar
commons-lang-2.0.jar
commons-dbcp-1.1.jar
commons-pool-1.1.jar
commons-collections-2.1.1.jar
mysql-connector-java-3.1.7-bin.jar
I can't seem to find any class called
"org.apache.ojb.broker.locking.LockManagerCommonsImpl" which I assume is
what causes the NullPointerException.
Does anybody know where to find said class?
Cheers,
Philip.
The stack trace is given below:
java.lang.NullPointerException
at
org.apache.ojb.broker.util.BrokerHelper.crossCheckPBKey(BrokerHelper.jav
a:124)
at
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.createPer
sistenceBroker(PersistenceBrokerFactoryDefaultImpl.java:92)
at
org.apache.ojb.broker.PersistenceBrokerFactory.createPersistenceBroker(P
ersistenceBrokerFactory.java:86)
at
org.apache.ojb.otm.core.BaseConnection.(BaseConnection.java:65)
at
org.apache.ojb.otm.transaction.LocalTransactionFactory$LocalConnection.<
init>(LocalTransactionFactory.java:94)
at
org.apache.ojb.otm.transaction.LocalTransactionFactory.acquireConnection
(LocalTransactionFactory.java:76)
at org.apache.ojb.otm.OTMKit.acquireConnection(OTMKit.java:43)
at
org.apache.ojb.jdo.PersistenceManagerImpl.(PersistenceManagerImpl.
java:67)
at
org.apache.ojb.jdo.PersistenceManagerFactoryImpl.getPersistenceManager(P
ersistenceManagerFactoryImpl.java:177)
at
org.apache.ojb.jdo.PersistenceManagerFactoryImpl.getPersistenceManager(P
ersistenceManagerFactoryImpl.java:167)
at com.tsi.test.jdo.JDOTest.(JDOTest.java:34)
at com.tsi.test.jdo.JDOTest.main(JDOTest.java:44)
-
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]


Re: Setup Question - a bit further along

2003-07-30 Thread Thomas Mahler
Hi Ross,

[EMAIL PROTECTED] wrote:
I have moved further along.

Now I get Class not found in reference to one of my classes from
repository_user.xml
Am I correct in thinking that I need to create these classes by hand, that
they are not generated by OJB as I had thought.
YES! Ojb does not generate persistent classes on the fly!
Please refer to http://db.apache.org/ojb/howto-build-mappings.html for 
details.

Also are these simply bean type objects with getter and  setter methods for
each field.
OJB supports POJO-style entity objects. getters and setters would be 
nice, but we'll do without them.

cheers,
Thomas
Regards

Ross Rotherham
- Original Message - 
From: "Alen Ribic" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 1:37 PM
Subject: Re: Setup Question



place your class descriptors there.
in other words you should define there class fields to DB table field
mappings for persistence, etc.
--Alen
- Original Message -
From: "Durham David Contr 805 CSS/SCBE" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 7:17 PM
Subject: RE: Setup Question
what's in the file: repository_user.xml?




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 11:31 AM
To: OJB Users List; Armin Waibel
Subject: Re: Setup Question
Have put junit.jar in class path and the following is the
repository.xml. Still get same error.














]>




&database;



&internal;








&user;











Regards

Ross Rotherham
- Original Message -
From: "Armin Waibel" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 12:07 PM
Subject: Re: Setup Question


Hi,

- Original Message -
From: <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 5:32 PM
Subject: Setup Question


Am having various issues with setting up OJB.

Currently have built cofig files
db-ojb-1.0.rc3/schema/project-schema.xml
db-ojb-1.0.rc3/docs/user_repository.xml
   copy of same src/test/org/apache/ojb/user_repository.xml
have removed junit, ejb and jdo from repository.xml

I don't think so, because MetadataManager try to load

org.apache.ojb.broker.Article
which is part of junit_repository.xml.
So take care not to include "unkown" classes in
repository, or add junit jar to classpath.
regards,
Armin

prepare-testdb generates db without issue

when I move the class files to my project (struts in
tomcat4.1),  I

get the

following error which seems to say that the ant main is still
reading
in

some of the tutorial/test version?

Need help to move past this point.

Thanks

java.lang.ExceptionInInitializerError:
java.lang.ClassNotFoundException:

org.apache.ojb.broker.Article
at

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoad

er
.jav
a:1428)
at

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoad

er
.jav
a:1274)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at
org.apache.ojb.broker.util.ClassHelper.getClass(ClassHelper.java:19)

at
org.apache.ojb.broker.util.ClassHelper.getClass(ClassHelper.java:53)

at


org.apache.ojb.broker.metadata.RepositoryXmlHandler.startElement(Repos

it
oryX
mlHandler.java:224)
at

org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXPa

rs
er.j
ava:459)
at

org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBin

de
r.ja
va:572)
at

org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidato

r.
java
:727)
at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement

(X
MLDo
cumentFragmentScannerImpl.java:759)
at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentD

is
patc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XML

Do
cume
ntFragmentScannerImpl.java:329)
at

org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java

:5
25)
at


org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java

:5
81)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at

org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.ja

va
:111
4)
at

org.apache.ojb.broker.metadata.RepositoryPersistor.buildRepository(Rep

os
itor
yPersistor.java:296)
at

org.apache.ojb.broker.metadata.RepositoryPersistor.readDescriptorRepos

it
ory(
RepositoryPersistor.java:207)
at

org.apache.ojb.broker.metadata.MetadataManager.init(MetadataManager.ja

va
:85)
at

org.apache.ojb.broker.metadata.MetadataManager.(MetadataManager.java:7

6)

at

org.apache.ojb.broker.metadata.MetadataManager.(Metada

Re: Setup Question - a bit further along

2003-07-30 Thread ross
I have moved further along.

Now I get Class not found in reference to one of my classes from
repository_user.xml

Am I correct in thinking that I need to create these classes by hand, that
they are not generated by OJB as I had thought.

Also are these simply bean type objects with getter and  setter methods for
each field.

Regards

Ross Rotherham
- Original Message - 
From: "Alen Ribic" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 1:37 PM
Subject: Re: Setup Question


> place your class descriptors there.
> in other words you should define there class fields to DB table field
> mappings for persistence, etc.
> --Alen
>
> - Original Message -
> From: "Durham David Contr 805 CSS/SCBE" <[EMAIL PROTECTED]>
> To: "OJB Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 30, 2003 7:17 PM
> Subject: RE: Setup Question
>
>
> what's in the file: repository_user.xml?
>
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 30, 2003 11:31 AM
> > To: OJB Users List; Armin Waibel
> > Subject: Re: Setup Question
> >
> >
> > Have put junit.jar in class path and the following is the
> > repository.xml. Still get same error.
> >
> > 
> >
> > 
> >
> > 
> >
> >  >
> > 
> >
> > 
> >
> > 
> >
> > ]>
> >
> >  > isolation-level="read-uncommitted">
> >
> > 
> >
> > &database;
> >
> > 
> >
> > &internal;
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > &user;
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > Regards
> >
> > Ross Rotherham
> > - Original Message -
> > From: "Armin Waibel" <[EMAIL PROTECTED]>
> > To: "OJB Users List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 30, 2003 12:07 PM
> > Subject: Re: Setup Question
> >
> >
> > > Hi,
> > >
> > > - Original Message -
> > > From: <[EMAIL PROTECTED]>
> > > To: "OJB Users List" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, July 30, 2003 5:32 PM
> > > Subject: Setup Question
> > >
> > >
> > > > Am having various issues with setting up OJB.
> > > >
> > > > Currently have built cofig files
> > > > db-ojb-1.0.rc3/schema/project-schema.xml
> > > > db-ojb-1.0.rc3/docs/user_repository.xml
> > > > copy of same src/test/org/apache/ojb/user_repository.xml
> > > >
> > > > have removed junit, ejb and jdo from repository.xml
> > > >
> > >
> > > I don't think so, because MetadataManager try to load
> > > > org.apache.ojb.broker.Article
> > > which is part of junit_repository.xml.
> > > So take care not to include "unkown" classes in
> > > repository, or add junit jar to classpath.
> > >
> > > regards,
> > > Armin
> > >
> > > > prepare-testdb generates db without issue
> > > >
> > > > when I move the class files to my project (struts in
> > tomcat4.1),  I
> > > get the
> > > > following error which seems to say that the ant main is still
> > > > reading
> > > in
> > > > some of the tutorial/test version?
> > > >
> > > > Need help to move past this point.
> > > >
> > > > Thanks
> > > >
> > > > java.lang.ExceptionInInitializerError:
> > > java.lang.ClassNotFoundException:
> > > > org.apache.ojb.broker.Article
> > > > at
> > > >
> > >
> > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoad
> > > er
> > > .jav
> > > > a:1428)
> > > > at
> > > >
> > >
> > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoad
> > > er
> > > .jav
> > > > a:1274)
> > > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
> > > > at java.lang.Class.forName0(Native Method)
> > > > at java.lang.Class.forName(Class.java:190)
> > > > at
> > > org.apache.ojb.broker.util.ClassHelper.getClass(ClassHelper.java:19)
&

Re: Setup Question

2003-07-30 Thread Alen Ribic
place your class descriptors there.
in other words you should define there class fields to DB table field
mappings for persistence, etc.
--Alen

- Original Message -
From: "Durham David Contr 805 CSS/SCBE" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 7:17 PM
Subject: RE: Setup Question


what's in the file: repository_user.xml?



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 11:31 AM
> To: OJB Users List; Armin Waibel
> Subject: Re: Setup Question
>
>
> Have put junit.jar in class path and the following is the
> repository.xml. Still get same error.
>
> 
>
> 
>
> 
>
> 
> 
>
> 
>
> 
>
> ]>
>
>  isolation-level="read-uncommitted">
>
> 
>
> &database;
>
> 
>
> &internal;
>
> 
>
> 
>
> 
>
> 
>
> &user;
>
> 
>
> 
>
> 
>
> 
>
> 
>
> Regards
>
> Ross Rotherham
> - Original Message -
> From: "Armin Waibel" <[EMAIL PROTECTED]>
> To: "OJB Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 30, 2003 12:07 PM
> Subject: Re: Setup Question
>
>
> > Hi,
> >
> > - Original Message -
> > From: <[EMAIL PROTECTED]>
> > To: "OJB Users List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 30, 2003 5:32 PM
> > Subject: Setup Question
> >
> >
> > > Am having various issues with setting up OJB.
> > >
> > > Currently have built cofig files
> > > db-ojb-1.0.rc3/schema/project-schema.xml
> > > db-ojb-1.0.rc3/docs/user_repository.xml
> > > copy of same src/test/org/apache/ojb/user_repository.xml
> > >
> > > have removed junit, ejb and jdo from repository.xml
> > >
> >
> > I don't think so, because MetadataManager try to load
> > > org.apache.ojb.broker.Article
> > which is part of junit_repository.xml.
> > So take care not to include "unkown" classes in
> > repository, or add junit jar to classpath.
> >
> > regards,
> > Armin
> >
> > > prepare-testdb generates db without issue
> > >
> > > when I move the class files to my project (struts in
> tomcat4.1),  I
> > get the
> > > following error which seems to say that the ant main is still
> > > reading
> > in
> > > some of the tutorial/test version?
> > >
> > > Need help to move past this point.
> > >
> > > Thanks
> > >
> > > java.lang.ExceptionInInitializerError:
> > java.lang.ClassNotFoundException:
> > > org.apache.ojb.broker.Article
> > > at
> > >
> >
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoad
> > er
> > .jav
> > > a:1428)
> > > at
> > >
> >
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoad
> > er
> > .jav
> > > a:1274)
> > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
> > > at java.lang.Class.forName0(Native Method)
> > > at java.lang.Class.forName(Class.java:190)
> > > at
> > org.apache.ojb.broker.util.ClassHelper.getClass(ClassHelper.java:19)
> > > at
> > org.apache.ojb.broker.util.ClassHelper.getClass(ClassHelper.java:53)
> > > at
> > >
> >
> org.apache.ojb.broker.metadata.RepositoryXmlHandler.startElement(Repos
> > it
> > oryX
> > > mlHandler.java:224)
> > > at
> > >
> >
> org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXPa
> > rs
> > er.j
> > > ava:459)
> > > at
> > >
> >
> org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBin
> > de
> > r.ja
> > > va:572)
> > > at
> > >
> >
> org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidato
> > r.
> > java
> > > :727)
> > > at
> > >
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement
> > (X
> > MLDo
> > > cumentFragmentScannerImpl.java:759)
> > > at
> > >
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentD
> > is
> > patc
> > > her.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
> > > at
> > >
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XML
> > Do

RE: Setup Question

2003-07-30 Thread Durham David Contr 805 CSS/SCBE
what's in the file: repository_user.xml?



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 30, 2003 11:31 AM
> To: OJB Users List; Armin Waibel
> Subject: Re: Setup Question
> 
> 
> Have put junit.jar in class path and the following is the 
> repository.xml. Still get same error.
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
> 
> 
> 
> ]>
> 
>  isolation-level="read-uncommitted">
> 
> 
> 
> &database;
> 
> 
> 
> &internal;
> 
> 
> 
> 
> 
> 
> 
> 
> 
> &user;
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Regards
> 
> Ross Rotherham
> - Original Message - 
> From: "Armin Waibel" <[EMAIL PROTECTED]>
> To: "OJB Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 30, 2003 12:07 PM
> Subject: Re: Setup Question
> 
> 
> > Hi,
> >
> > - Original Message -
> > From: <[EMAIL PROTECTED]>
> > To: "OJB Users List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 30, 2003 5:32 PM
> > Subject: Setup Question
> >
> >
> > > Am having various issues with setting up OJB.
> > >
> > > Currently have built cofig files 
> > > db-ojb-1.0.rc3/schema/project-schema.xml
> > > db-ojb-1.0.rc3/docs/user_repository.xml
> > > copy of same src/test/org/apache/ojb/user_repository.xml
> > >
> > > have removed junit, ejb and jdo from repository.xml
> > >
> >
> > I don't think so, because MetadataManager try to load
> > > org.apache.ojb.broker.Article
> > which is part of junit_repository.xml.
> > So take care not to include "unkown" classes in
> > repository, or add junit jar to classpath.
> >
> > regards,
> > Armin
> >
> > > prepare-testdb generates db without issue
> > >
> > > when I move the class files to my project (struts in 
> tomcat4.1),  I
> > get the
> > > following error which seems to say that the ant main is still 
> > > reading
> > in
> > > some of the tutorial/test version?
> > >
> > > Need help to move past this point.
> > >
> > > Thanks
> > >
> > > java.lang.ExceptionInInitializerError:
> > java.lang.ClassNotFoundException:
> > > org.apache.ojb.broker.Article
> > > at
> > >
> > 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoad
> > er
> > .jav
> > > a:1428)
> > > at
> > >
> > 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoad
> > er
> > .jav
> > > a:1274)
> > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
> > > at java.lang.Class.forName0(Native Method)
> > > at java.lang.Class.forName(Class.java:190)
> > > at
> > org.apache.ojb.broker.util.ClassHelper.getClass(ClassHelper.java:19)
> > > at
> > org.apache.ojb.broker.util.ClassHelper.getClass(ClassHelper.java:53)
> > > at
> > >
> > 
> org.apache.ojb.broker.metadata.RepositoryXmlHandler.startElement(Repos
> > it
> > oryX
> > > mlHandler.java:224)
> > > at
> > >
> > 
> org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXPa
> > rs
> > er.j
> > > ava:459)
> > > at
> > >
> > 
> org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBin
> > de
> > r.ja
> > > va:572)
> > > at
> > >
> > 
> org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidato
> > r.
> > java
> > > :727)
> > > at
> > >
> > 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement
> > (X
> > MLDo
> > > cumentFragmentScannerImpl.java:759)
> > > at
> > >
> > 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentD
> > is
> > patc
> > > her.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
> > > at
> > >
> > 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XML
> > Do
> > cume
> > > ntFragmentScannerImpl.java:329)
> > > at
> > >
> > 
> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java
> > :5
> > 25)
> > > at
> > >
> > 
> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java
> > :5
> >

Re: Setup Question

2003-07-30 Thread ross
Have put junit.jar in class path and the following is the repository.xml.
Still get same error.













]>





&database;



&internal;









&user;











Regards

Ross Rotherham
- Original Message - 
From: "Armin Waibel" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 12:07 PM
Subject: Re: Setup Question


> Hi,
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "OJB Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 30, 2003 5:32 PM
> Subject: Setup Question
>
>
> > Am having various issues with setting up OJB.
> >
> > Currently have built cofig files
> > db-ojb-1.0.rc3/schema/project-schema.xml
> > db-ojb-1.0.rc3/docs/user_repository.xml
> > copy of same src/test/org/apache/ojb/user_repository.xml
> >
> > have removed junit, ejb and jdo from repository.xml
> >
>
> I don't think so, because MetadataManager try to load
> > org.apache.ojb.broker.Article
> which is part of junit_repository.xml.
> So take care not to include "unkown" classes in
> repository, or add junit jar to classpath.
>
> regards,
> Armin
>
> > prepare-testdb generates db without issue
> >
> > when I move the class files to my project (struts in tomcat4.1),  I
> get the
> > following error which seems to say that the ant main is still reading
> in
> > some of the tutorial/test version?
> >
> > Need help to move past this point.
> >
> > Thanks
> >
> > java.lang.ExceptionInInitializerError:
> java.lang.ClassNotFoundException:
> > org.apache.ojb.broker.Article
> > at
> >
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
> .jav
> > a:1428)
> > at
> >
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
> .jav
> > a:1274)
> > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Class.java:190)
> > at
> org.apache.ojb.broker.util.ClassHelper.getClass(ClassHelper.java:19)
> > at
> org.apache.ojb.broker.util.ClassHelper.getClass(ClassHelper.java:53)
> > at
> >
> org.apache.ojb.broker.metadata.RepositoryXmlHandler.startElement(Reposit
> oryX
> > mlHandler.java:224)
> > at
> >
> org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXPars
> er.j
> > ava:459)
> > at
> >
> org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinde
> r.ja
> > va:572)
> > at
> >
> org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.
> java
> > :727)
> > at
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(X
> MLDo
> > cumentFragmentScannerImpl.java:759)
> > at
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
> patc
> > her.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
> > at
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo
> cume
> > ntFragmentScannerImpl.java:329)
> > at
> >
> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
> 25)
> > at
> >
> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
> 81)
> > at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
> > at
> >
> org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java
> :111
> > 4)
> > at
> >
> org.apache.ojb.broker.metadata.RepositoryPersistor.buildRepository(Repos
> itor
> > yPersistor.java:296)
> > at
> >
> org.apache.ojb.broker.metadata.RepositoryPersistor.readDescriptorReposit
> ory(
> > RepositoryPersistor.java:207)
> > at
> >
> org.apache.ojb.broker.metadata.MetadataManager.init(MetadataManager.java
> :85)
> > at
> org.apache.ojb.broker.metadata.MetadataManager.(MetadataManager.java:76)
> > at
> org.apache.ojb.broker.metadata.MetadataManager.(MetadataManager.java:67)
> > at
> >
> org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.buildDefa
> ultK
> > ey(PersistenceBrokerFactoryDefaultImpl.java:139)
> > at
> >
> org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.(Persiste
> nceB
> > rokerFactoryDefaultImpl.java:110)
> > at java.lang.Class.newInstance0(Native Method)
> > at java.lang.Class.newInstance(Class.java:232)
> > at
> >
> org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.init(Persiste
>

Re: Setup Question

2003-07-30 Thread Armin Waibel
Hi,

- Original Message -
From: <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 5:32 PM
Subject: Setup Question


> Am having various issues with setting up OJB.
>
> Currently have built cofig files
> db-ojb-1.0.rc3/schema/project-schema.xml
> db-ojb-1.0.rc3/docs/user_repository.xml
> copy of same src/test/org/apache/ojb/user_repository.xml
>
> have removed junit, ejb and jdo from repository.xml
>

I don't think so, because MetadataManager try to load
> org.apache.ojb.broker.Article
which is part of junit_repository.xml.
So take care not to include "unkown" classes in
repository, or add junit jar to classpath.

regards,
Armin

> prepare-testdb generates db without issue
>
> when I move the class files to my project (struts in tomcat4.1),  I
get the
> following error which seems to say that the ant main is still reading
in
> some of the tutorial/test version?
>
> Need help to move past this point.
>
> Thanks
>
> java.lang.ExceptionInInitializerError:
java.lang.ClassNotFoundException:
> org.apache.ojb.broker.Article
> at
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.jav
> a:1428)
> at
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.jav
> a:1274)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:190)
> at
org.apache.ojb.broker.util.ClassHelper.getClass(ClassHelper.java:19)
> at
org.apache.ojb.broker.util.ClassHelper.getClass(ClassHelper.java:53)
> at
>
org.apache.ojb.broker.metadata.RepositoryXmlHandler.startElement(Reposit
oryX
> mlHandler.java:224)
> at
>
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXPars
er.j
> ava:459)
> at
>
org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinde
r.ja
> va:572)
> at
>
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.
java
> :727)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(X
MLDo
> cumentFragmentScannerImpl.java:759)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patc
> her.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo
cume
> ntFragmentScannerImpl.java:329)
> at
>
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
25)
> at
>
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
81)
> at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
> at
>
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java
:111
> 4)
> at
>
org.apache.ojb.broker.metadata.RepositoryPersistor.buildRepository(Repos
itor
> yPersistor.java:296)
> at
>
org.apache.ojb.broker.metadata.RepositoryPersistor.readDescriptorReposit
ory(
> RepositoryPersistor.java:207)
> at
>
org.apache.ojb.broker.metadata.MetadataManager.init(MetadataManager.java
:85)
> at
org.apache.ojb.broker.metadata.MetadataManager.(MetadataManager.java:76)
> at
org.apache.ojb.broker.metadata.MetadataManager.(MetadataManager.java:67)
> at
>
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.buildDefa
ultK
> ey(PersistenceBrokerFactoryDefaultImpl.java:139)
> at
>
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.(Persiste
nceB
> rokerFactoryDefaultImpl.java:110)
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:232)
> at
>
org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.init(Persiste
nceB
> rokerFactoryFactory.java:94)
> at
>
org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.(PersistenceB
roke
> rFactoryFactory.java:71)
> at
>
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(
Pers
> istenceBrokerFactory.java:102)
> at
>
com.bowtech.web.actions.SeminarAddAction.execute(SeminarAddAction.java:3
4)
>
> Regards
>
> Ross
>
>
>
> -
> 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]



Re: Setup Question

2003-07-30 Thread ross
Yes.

It wouldn't see the following otherwise I would think.

org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.buildDefaultK
ey(PersistenceBrokerFactoryDefaultImpl.java:139)

Regards

Ross Rotherham
- Original Message - 
From: "Durham David Contr 805 CSS/SCBE" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 11:37 AM
Subject: RE: Setup Question


> java.lang.ExceptionInInitializerError:
> java.lang.ClassNotFoundException: org.apache.ojb.broker.Article

Do you have the db-ojb-*.jar in the WEB-INF/lib folder?

Dave

-
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]



RE: Setup Question

2003-07-30 Thread Durham David Contr 805 CSS/SCBE
> java.lang.ExceptionInInitializerError: 
> java.lang.ClassNotFoundException: org.apache.ojb.broker.Article

Do you have the db-ojb-*.jar in the WEB-INF/lib folder?

Dave

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