You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Hale India <ha...@yahoo.com> on 2005/05/22 10:01:05 UTC

Pb to compile from CVS

Hi

I use db-ojb 1.0.1.
I downloaded this morning from CVS because I would
like to take advantage the org.apache.ojb.broker.OJB
object.

I failed to compile using ant or maven.

With ant I get :
BUILD FAILED
/home/rcs/Master/extern/java/db-ojb/build.xml:840: The
following error occurred while executing this line:
/Master/extern/java/apache-forrest-0.6/src/core/targets/validate.xml:143:
Could not validate document
/home/rcs/Master/extern/java/db-ojb/target/doc/src/documentation/content/xdocs/code-standards.xml

With maven
The build cannot continue because of the following
unsatisfied dependencies:

antlr-2.7.3.jar (try downloading from
http://www.antlr.org/)
ejb.jar (try downloading from
http://java.sun.com/j2ee/)
J2EE-2.x.jar (try downloading from
http://java.sun.com/products/j2ee/)
xalan-2.4.jar (try downloading from
http://xml.apache.org/xalan-j/)

Downloads of dependencies failed, for example :
INFO: Attempting to download xalan-2.4.jar.
May 22, 2005 10:57:00 AM
org.apache.maven.verifier.DependencyVerifier
getDependencies
WARNING: WARNING: Failed to download xalan-2.4.jar.

Any help welcome.

Andre Legendre

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


PBLifeCycleListener

Posted by Nils Liebelt <ni...@candor.co.za>.
Hi all,
Is there a way that you can fire PBLifeCycleEvents for your nested objects?
Probably an example explains more what I want: 

I got an businessobject Account which has a Collection of Documents. The
Account extends an AbstractClass which provides store() and delete()
functions as well as an implementation of the PBLifeCycleListener. The
Account also has a collection of "documents" which needs to be written on
the disk (beforeInsert). If I make changes to the Account and its Documents
storing through the Account the Accounts beforeInsert method gets called.
But the nested stuff needs to be called too. Right now I just call the
methods manually. But for the future I would like to register the listeners
more properly. Has anyone a "blueprint" for such a model? 


GreetZ

Nils


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: Pb to compile from CVS

Posted by Martin Kalén <mk...@apache.org>.
Hale India wrote:
> I use db-ojb 1.0.1.
> I downloaded this morning from CVS because I would
> like to take advantage the org.apache.ojb.broker.OJB
> object.

FYI, that's OJB 1.1 in CVS HEAD.

> I failed to compile using ant or maven.
> 
> With ant I get :
> BUILD FAILED
> /home/rcs/Master/extern/java/db-ojb/build.xml:840: The
> following error occurred while executing this line:
> /Master/extern/java/apache-forrest-0.6/src/core/targets/validate.xml:143:
> Could not validate document

The OJB build script is not yet Mavenized.

Use Ant to build, try target "jar".

Forrest is only used to generate HTML for the db-ojb website and
I doubt you are really interested in that.

(The build.xml structure is pretty much the same as for current
OJB releases, so also see the documentation at
  http://db.apache.org/ojb/docu/getting-started.html)

Regards,
  Martin


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org