JDO && OJB

2005-03-19 Thread Markus Wolf
Are there any advanced tutorials for JDOQL available?
Or has someone some links to good resources about JDOQL?
Regards
Markus Wolf
--
emedia-solutions wolf
Wedeler Landstrasse 63
22559 Hamburg
(040) 550 083 70
 web: http://www.emedia-solutions-wolf.de
mail: [EMAIL PROTECTED]
 pgp: http://wwwkeys.de.pgp.net




signature.asc
Description: OpenPGP digital signature


Re: Excalibur Integration

2005-03-17 Thread Markus Wolf
Martin Kalén wrote:
Markus Wolf wrote:
So doesn't this log output mean the files are not found?...
Am I missing something here? Can anybody give me a hint how to 
successful load the repository.xml from a jar-file?
As Charles Harvey just pointed out, if your are using a repository with 
a HTTP dtd-declaration the XML-parses might try Internet access to get 
the DTD. What you want is this:


And to make sure repository.dtd is in the CLASSPATH.
OJB error-reporting should definately be improved here, it was way too 
complicated to get to the point...

Thanks for your help,
When the dtd is in the jar also (in the same directory) then it works.
For convinience my setup is a standalone Excalibur server. No tomcat 
(webapp) nor J2EE container. I'm using simply Excalibur and Avalon.

When specifying then ConnectionFactoryManagedImpl then each and every 
connection attempt is going through the factory? I tried with an own 
ConnectionFactory implementation and that needs a 
jdbc-connection-descriptor in the repository.xml.
I was looking for a way around specifying two points where I have to put 
database connecton definitions. One for the avalon pool and one for OJB. 
I decided to drop the avalon one now.

Once again thanks for all your help
Markus Wolf
--
>
> emedia-solutions wolf
> Wedeler Landstrasse 63
> 22559 Hamburg
> (040) 550 083 70
>
>>  web: http://www.emedia-solutions-wolf.de
>> mail: [EMAIL PROTECTED]
>>  pgp: http://wwwkeys.de.pgp.net
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Excalibur Integration

2005-03-17 Thread Markus Wolf
Martin Kalén wrote:
 Markus Wolf wrote:
> is there a way to reuse existing connections for the whole OJB
> setup? I've implemented a ConnectionFactory for OJB as Excalibur
> component, but when I create a new database and open it (as stated
> in the tutorials) the repository_database.xml part is always
> expected. Are there any workarounds? (Best would be a complete
> reuse of existing connections without having to specify a
> repository_database.xml) Or maybe is there some way to put the
> repository_database.xml in a jar-file (which is possible for the
> entiry repository.xml but only for the whole file...)
 Without going into the re-use issue I can just report that there is
 no problem placing the different repository*.xml files in a JAR. Just
 make sure the DTD is there to make XML-validation possible.
 The files are loaded without path so place the in the root of your
 JAR.
So doesn't this log output mean the files are not found?...
Am I missing something here? Can anybody give me a hint how to 
successful load the repository.xml from a jar-file?
I have all repository parts in the root (default-package) of my jar-file.

[snip console-output]
...
[org.apache.ojb.broker.metadata.RepositoryPersistor] INFO: OJB 
Descriptor Repository: 
jar:file:/home/markusw/temp/jservices/jservices-server-0.0.1.jar!/repository.xml
[org.apache.ojb.broker.metadata.RepositoryPersistor] INFO: Building 
repository from 
:jar:file:/home/markusw/temp/jservices/jservices-server-0.0.1.jar!/repository.xml
[org.apache.ojb.broker.metadata.RepositoryPersistor] DEBUG: 
RespostoryPersistor using SAXParser : org.apache.xerces.jaxp.SAXParserImpl
[org.apache.ojb.broker.metadata.RepositoryXmlHandler] DEBUG: startDoc
[org.apache.ojb.broker.metadata.MetadataManager] INFO: No repository.xml 
file found, starting with empty metadata and connection configuration
[org.apache.ojb.broker.metadata.MetadataManager] INFO: No 
'default-connection' attribute set in jdbc-connection-descriptors, thus 
it's currently not possible to use 'defaultPersistenceBroker()'  
convenience method to lookup PersistenceBroker instances. But it's 
possible to enable this at runtime using 'setDefaultKey' method.
...
[/snip]

Regards
Markus Wolf
--
emedia-solutions wolf
Wedeler Landstrasse 63
22559 Hamburg
(040) 550 083 70
 web: http://www.emedia-solutions-wolf.de
mail: [EMAIL PROTECTED]
 pgp: http://wwwkeys.de.pgp.net




signature.asc
Description: OpenPGP digital signature


Excalibur Integration

2005-03-16 Thread Markus Wolf
Hi,
is there a way to reuse existing connections for the whole OJB setup?
I've implemented a ConnectionFactory for OJB as Excalibur component, but 
when I create a new database and open it (as stated in the tutorials)  
the repository_database.xml part is always expected.
Are there any workarounds? (Best would be a complete reuse of existing 
connections without having to specify a repository_database.xml)
Or maybe is there some way to put the repository_database.xml in a 
jar-file (which is possible for the entiry repository.xml but only for 
the whole file...)

Regards
Markus Wolf
--
emedia-solutions wolf
Wedeler Landstrasse 63
22559 Hamburg
(040) 550 083 70
 web: http://www.emedia-solutions-wolf.de
mail: [EMAIL PROTECTED]
 pgp: http://wwwkeys.de.pgp.net




signature.asc
Description: OpenPGP digital signature


Re: ojbdoclet and empty result files again

2005-03-14 Thread Markus Wolf
 Could you please post the relevant part of the Feature class? Also,
 you could try running Maven in verbose or debug mode (I don't know
 anything about Maven, with Ant you would run it with the -v or -debug
 options).
I found my mistake. I've written @obj.class instead of @ojb.class in the 
doclet-tag.

Sorry for inconvinience...
Markus
--
emedia-solutions wolf
Wedeler Landstrasse 63
22559 Hamburg
(040) 550 083 70
 web: http://www.emedia-solutions-wolf.de
mail: [EMAIL PROTECTED]
 pgp: http://wwwkeys.de.pgp.net




signature.asc
Description: OpenPGP digital signature


ojbdoclet and empty result files again

2005-03-14 Thread Markus Wolf
Hi users,
I want to evaluate OJB for my project and have setup successfully (I 
think so) a maven task.
All classes could be found and everything seems to run fine, but the 
result files (repository_user.xml) are empty...
Anything I miss here? (See the post below are my maven goal definitions 
and console output)
I searched the mailing list before posting here and found a posting very 
close to my problem, but that was not solving mine. :-(

[snip maven.xml]
   
   name="provide-ojb-meta"
   description="Parse ojb meta data and generate ojb files">
  
   
   name="ojbdoclet"
   classname="xdoclet.modules.ojb.OjbDocletTask"
   >
   
   
   
   
  
   
   
   
   
   
[/snip]

[snip console-output]
Generating ojb repository descriptor (repository_user.xml)
Type de.esw.services.server.ojb.Feature
Processed 1 types
Processed 1 types
[/snip]
Any idea what could be wrong?
Thanks
Markus Wolf
--
emedia-solutions wolf
Wedeler Landstrasse 63
22559 Hamburg
(040) 550 083 70
 web: http://www.emedia-solutions-wolf.de
mail: [EMAIL PROTECTED]
 pgp: http://wwwkeys.de.pgp.net




signature.asc
Description: OpenPGP digital signature