You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Michael Mogley <mm...@adelphia.net> on 2004/02/18 06:17:45 UTC

can't compile ejb examples

I just  did a cvs update and I get a build error after doing 'ant ejb-samples'.  I've included the latest xdoclet-1.2 jars in db-ojb/lib.  The stack complains:

org.apache.ojb.jboss package does not exist

Is this is a bug in the build?

MIchael

Re: can't compile ejb examples

Posted by Michael Mogley <mm...@adelphia.net>.
The problem was I didn't have jboss-system.jar and jboss-jmx.jar linked into
db-ojb/lib.  After I did that, everything went smooth.

Thanks for your quick replies, Armin.

Michael

----- Original Message ----- 
From: "Armin Waibel" <ar...@apache.org>
To: "OJB Developers List" <oj...@db.apache.org>
Sent: Wednesday, February 18, 2004 10:19 AM
Subject: Re: can't compile ejb examples


> Michael Mogley wrote:
>
> > Hi Armin,
> >
> > Here's what I do:
> >
> > 1) ant prepare-jboss
> > 2) ant all
> > 3) ant jar-debug
> > 4) ant ejb-examples
>
> If I do
>
> ant prepare-jboss jar ejb-examples
>
> all passed without problems. Think "ant all" will be the problem. Where
> in docs do we request this target to run the ejb-examples (should be
fixed)
>
> regards,
> Armin
>
> >
> > And I get:
> >
> > compile_beans:
> >    [delete] Deleting directory
/usr/java/jakarta/ojb/target/classesejb/bean
> >     [mkdir] Created dir: /usr/java/jakarta/ojb/target/classesejb/bean
> >     [mkdir] Created dir:
> > /usr/java/jakarta/ojb/target/classesejb/bean/META-INF
> >     [javac] Compiling 47 source files to
> > /usr/java/jakarta/ojb/target/classesejb/bean
> >     [javac]
> >
/usr/java/jakarta/ojb/target/srcejb/beans/org/apache/ojb/ejb/ODMGBaseBeanImp
> > l.java:64: package org.apache.ojb.jboss does not exist
> >     [javac] import org.apache.ojb.jboss.ODMGFactory;
> >     [javac]                             ^
> >     [javac]
> >
/usr/java/jakarta/ojb/target/srcejb/beans/org/apache/ojb/ejb/ODMGSessionBean
> > .java:75: package org.apache.ojb.jboss does not exist
> >     [javac] import org.apache.ojb.jboss.ODMGFactory;
> >     [javac]                             ^
> >     [javac]
> >
/usr/java/jakarta/ojb/target/srcejb/beans/org/apache/ojb/ejb/ODMGBaseBeanImp
> > l.java:235: cannot resolve symbol
> >     [javac] symbol  : class ODMGFactory
> >     [javac] location: class org.apache.ojb.ejb.ODMGBaseBeanImpl
> >     [javac]         ODMGFactory factory = null;
> >     [javac]         ^
> >     [javac]
> >
/usr/java/jakarta/ojb/target/srcejb/beans/org/apache/ojb/ejb/ODMGBaseBeanImp
> > l.java:238: cannot resolve symbol
> >     [javac] symbol  : class ODMGFactory
> >     [javac] location: class org.apache.ojb.ejb.ODMGBaseBeanImpl
> >     [javac]             factory = (ODMGFactory)
> > context.lookup(BeanConstants.ODMG_FACTORY_LOOKUP);
> >     [javac]                        ^
> >     [javac]
> >
/usr/java/jakarta/ojb/target/srcejb/beans/org/apache/ojb/ejb/ODMGSessionBean
> > .java:163: cannot resolve symbol
> >     [javac] symbol  : class ODMGFactory
> >     [javac] location: class org.apache.ojb.ejb.ODMGSessionBean
> >     [javac]             ODMGFactory factory = (ODMGFactory)
> > context.lookup(BeanConstants.ODMG_FACTORY_LOOKUP);
> >     [javac]             ^
> >     [javac]
> >
/usr/java/jakarta/ojb/target/srcejb/beans/org/apache/ojb/ejb/ODMGSessionBean
> > .java:163: cannot resolve symbol
> >     [javac] symbol  : class ODMGFactory
> >     [javac] location: class org.apache.ojb.ejb.ODMGSessionBean
> >     [javac]             ODMGFactory factory = (ODMGFactory)
> > context.lookup(BeanConstants.ODMG_FACTORY_LOOKUP);
> >     [javac]                                    ^
> >     [javac] 6 errors
> >
> > BUILD FAILED
> > /usr/java/jakarta/ojb/build.xml:1292: Following error occured while
> > executing this line
> > /usr/java/jakarta/ojb/build-xdoclet.xml:103: Compile failed; see the
> > compiler error output for details.
> >
> >
> > Am I still missing a step?  Thanks for your help.
> >
> > Michael
> >
> > ----- Original Message ----- 
> > From: "Armin Waibel" <ar...@apache.org>
> > To: "OJB Developers List" <oj...@db.apache.org>
> > Sent: Wednesday, February 18, 2004 1:00 AM
> > Subject: Re: can't compile ejb examples
> >
> >
> >
> >>Hi Michael,
> >>
> >>I don't have problems to build the examples.
> >>Did you call the 'prepare-jboss' and 'jar' one time before the
> >>'ejb-examples' target?
> >>
> >>regards,
> >>Armin
> >>
> >>Michael Mogley wrote:
> >>
> >>>I just  did a cvs update and I get a build error after doing 'ant
> >
> > ejb-samples'.  I've included the latest xdoclet-1.2 jars in db-ojb/lib.
The
> > stack complains:
> >
> >>>org.apache.ojb.jboss package does not exist
> >>>
> >>>Is this is a bug in the build?
> >>>
> >>>MIchael
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> >>For additional commands, e-mail: ojb-dev-help@db.apache.org
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> > For additional commands, e-mail: ojb-dev-help@db.apache.org
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
>


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


Re: can't compile ejb examples

Posted by Armin Waibel <ar...@apache.org>.
Michael Mogley wrote:

> Hi Armin,
> 
> Here's what I do:
> 
> 1) ant prepare-jboss
> 2) ant all
> 3) ant jar-debug
> 4) ant ejb-examples

If I do

ant prepare-jboss jar ejb-examples

all passed without problems. Think "ant all" will be the problem. Where 
in docs do we request this target to run the ejb-examples (should be fixed)

regards,
Armin

> 
> And I get:
> 
> compile_beans:
>    [delete] Deleting directory /usr/java/jakarta/ojb/target/classesejb/bean
>     [mkdir] Created dir: /usr/java/jakarta/ojb/target/classesejb/bean
>     [mkdir] Created dir:
> /usr/java/jakarta/ojb/target/classesejb/bean/META-INF
>     [javac] Compiling 47 source files to
> /usr/java/jakarta/ojb/target/classesejb/bean
>     [javac]
> /usr/java/jakarta/ojb/target/srcejb/beans/org/apache/ojb/ejb/ODMGBaseBeanImp
> l.java:64: package org.apache.ojb.jboss does not exist
>     [javac] import org.apache.ojb.jboss.ODMGFactory;
>     [javac]                             ^
>     [javac]
> /usr/java/jakarta/ojb/target/srcejb/beans/org/apache/ojb/ejb/ODMGSessionBean
> .java:75: package org.apache.ojb.jboss does not exist
>     [javac] import org.apache.ojb.jboss.ODMGFactory;
>     [javac]                             ^
>     [javac]
> /usr/java/jakarta/ojb/target/srcejb/beans/org/apache/ojb/ejb/ODMGBaseBeanImp
> l.java:235: cannot resolve symbol
>     [javac] symbol  : class ODMGFactory
>     [javac] location: class org.apache.ojb.ejb.ODMGBaseBeanImpl
>     [javac]         ODMGFactory factory = null;
>     [javac]         ^
>     [javac]
> /usr/java/jakarta/ojb/target/srcejb/beans/org/apache/ojb/ejb/ODMGBaseBeanImp
> l.java:238: cannot resolve symbol
>     [javac] symbol  : class ODMGFactory
>     [javac] location: class org.apache.ojb.ejb.ODMGBaseBeanImpl
>     [javac]             factory = (ODMGFactory)
> context.lookup(BeanConstants.ODMG_FACTORY_LOOKUP);
>     [javac]                        ^
>     [javac]
> /usr/java/jakarta/ojb/target/srcejb/beans/org/apache/ojb/ejb/ODMGSessionBean
> .java:163: cannot resolve symbol
>     [javac] symbol  : class ODMGFactory
>     [javac] location: class org.apache.ojb.ejb.ODMGSessionBean
>     [javac]             ODMGFactory factory = (ODMGFactory)
> context.lookup(BeanConstants.ODMG_FACTORY_LOOKUP);
>     [javac]             ^
>     [javac]
> /usr/java/jakarta/ojb/target/srcejb/beans/org/apache/ojb/ejb/ODMGSessionBean
> .java:163: cannot resolve symbol
>     [javac] symbol  : class ODMGFactory
>     [javac] location: class org.apache.ojb.ejb.ODMGSessionBean
>     [javac]             ODMGFactory factory = (ODMGFactory)
> context.lookup(BeanConstants.ODMG_FACTORY_LOOKUP);
>     [javac]                                    ^
>     [javac] 6 errors
> 
> BUILD FAILED
> /usr/java/jakarta/ojb/build.xml:1292: Following error occured while
> executing this line
> /usr/java/jakarta/ojb/build-xdoclet.xml:103: Compile failed; see the
> compiler error output for details.
> 
> 
> Am I still missing a step?  Thanks for your help.
> 
> Michael
> 
> ----- Original Message ----- 
> From: "Armin Waibel" <ar...@apache.org>
> To: "OJB Developers List" <oj...@db.apache.org>
> Sent: Wednesday, February 18, 2004 1:00 AM
> Subject: Re: can't compile ejb examples
> 
> 
> 
>>Hi Michael,
>>
>>I don't have problems to build the examples.
>>Did you call the 'prepare-jboss' and 'jar' one time before the
>>'ejb-examples' target?
>>
>>regards,
>>Armin
>>
>>Michael Mogley wrote:
>>
>>>I just  did a cvs update and I get a build error after doing 'ant
> 
> ejb-samples'.  I've included the latest xdoclet-1.2 jars in db-ojb/lib.  The
> stack complains:
> 
>>>org.apache.ojb.jboss package does not exist
>>>
>>>Is this is a bug in the build?
>>>
>>>MIchael
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
>>For additional commands, e-mail: ojb-dev-help@db.apache.org
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
> 
> 
> 

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


Re: can't compile ejb examples

Posted by Michael Mogley <mm...@adelphia.net>.
Hi Armin,

Here's what I do:

1) ant prepare-jboss
2) ant all
3) ant jar-debug
4) ant ejb-examples

And I get:

compile_beans:
   [delete] Deleting directory /usr/java/jakarta/ojb/target/classesejb/bean
    [mkdir] Created dir: /usr/java/jakarta/ojb/target/classesejb/bean
    [mkdir] Created dir:
/usr/java/jakarta/ojb/target/classesejb/bean/META-INF
    [javac] Compiling 47 source files to
/usr/java/jakarta/ojb/target/classesejb/bean
    [javac]
/usr/java/jakarta/ojb/target/srcejb/beans/org/apache/ojb/ejb/ODMGBaseBeanImp
l.java:64: package org.apache.ojb.jboss does not exist
    [javac] import org.apache.ojb.jboss.ODMGFactory;
    [javac]                             ^
    [javac]
/usr/java/jakarta/ojb/target/srcejb/beans/org/apache/ojb/ejb/ODMGSessionBean
.java:75: package org.apache.ojb.jboss does not exist
    [javac] import org.apache.ojb.jboss.ODMGFactory;
    [javac]                             ^
    [javac]
/usr/java/jakarta/ojb/target/srcejb/beans/org/apache/ojb/ejb/ODMGBaseBeanImp
l.java:235: cannot resolve symbol
    [javac] symbol  : class ODMGFactory
    [javac] location: class org.apache.ojb.ejb.ODMGBaseBeanImpl
    [javac]         ODMGFactory factory = null;
    [javac]         ^
    [javac]
/usr/java/jakarta/ojb/target/srcejb/beans/org/apache/ojb/ejb/ODMGBaseBeanImp
l.java:238: cannot resolve symbol
    [javac] symbol  : class ODMGFactory
    [javac] location: class org.apache.ojb.ejb.ODMGBaseBeanImpl
    [javac]             factory = (ODMGFactory)
context.lookup(BeanConstants.ODMG_FACTORY_LOOKUP);
    [javac]                        ^
    [javac]
/usr/java/jakarta/ojb/target/srcejb/beans/org/apache/ojb/ejb/ODMGSessionBean
.java:163: cannot resolve symbol
    [javac] symbol  : class ODMGFactory
    [javac] location: class org.apache.ojb.ejb.ODMGSessionBean
    [javac]             ODMGFactory factory = (ODMGFactory)
context.lookup(BeanConstants.ODMG_FACTORY_LOOKUP);
    [javac]             ^
    [javac]
/usr/java/jakarta/ojb/target/srcejb/beans/org/apache/ojb/ejb/ODMGSessionBean
.java:163: cannot resolve symbol
    [javac] symbol  : class ODMGFactory
    [javac] location: class org.apache.ojb.ejb.ODMGSessionBean
    [javac]             ODMGFactory factory = (ODMGFactory)
context.lookup(BeanConstants.ODMG_FACTORY_LOOKUP);
    [javac]                                    ^
    [javac] 6 errors

BUILD FAILED
/usr/java/jakarta/ojb/build.xml:1292: Following error occured while
executing this line
/usr/java/jakarta/ojb/build-xdoclet.xml:103: Compile failed; see the
compiler error output for details.


Am I still missing a step?  Thanks for your help.

Michael

----- Original Message ----- 
From: "Armin Waibel" <ar...@apache.org>
To: "OJB Developers List" <oj...@db.apache.org>
Sent: Wednesday, February 18, 2004 1:00 AM
Subject: Re: can't compile ejb examples


> Hi Michael,
>
> I don't have problems to build the examples.
> Did you call the 'prepare-jboss' and 'jar' one time before the
> 'ejb-examples' target?
>
> regards,
> Armin
>
> Michael Mogley wrote:
> > I just  did a cvs update and I get a build error after doing 'ant
ejb-samples'.  I've included the latest xdoclet-1.2 jars in db-ojb/lib.  The
stack complains:
> >
> > org.apache.ojb.jboss package does not exist
> >
> > Is this is a bug in the build?
> >
> > MIchael
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
>


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


Re: can't compile ejb examples

Posted by Armin Waibel <ar...@apache.org>.
Hi Michael,

I don't have problems to build the examples.
Did you call the 'prepare-jboss' and 'jar' one time before the 
'ejb-examples' target?

regards,
Armin

Michael Mogley wrote:
> I just  did a cvs update and I get a build error after doing 'ant ejb-samples'.  I've included the latest xdoclet-1.2 jars in db-ojb/lib.  The stack complains:
> 
> org.apache.ojb.jboss package does not exist
> 
> Is this is a bug in the build?
> 
> MIchael

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