You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Christian Defoy <ch...@gmail.com> on 2007/09/08 15:34:49 UTC
Ant enhancement
Hello!
I am enhancing my classes at build time and that works fine as far as
I know. My class files get a new timestamp so I guess they are
enhanced. However, when I launch my app, I get
Could not locate metadata for the class using alias "Shape".
Registered alias mappings: "{Shape=null}"
Do I have to run the javaagent even if my classes are enhanced at
build time? If I run the agent then everything is fine. Maybe that
means that my classes are not enhanced properly at build time. How do
I detect that?
Thanks in advance!
Christian
Re: Ant enhancement
Posted by Patrick Linskey <pl...@gmail.com>.
You can set the Tool log channel to TRACE, and you'll see what classes
get enhanced.
Or maybe that should be the Enhance log level. In any event, one of them.
-Patrick
On 9/8/07, Christian Defoy <ch...@gmail.com> wrote:
> Forget it! A condition in my build.xml was preventing the enhancer
> from running. Although I am getting a strange message that makes me
> wonder if it is running completely...
>
> [enhancer] 62 managed-asset INFO [main] openjpa.Tool - No targets
> were given. Running on all classes in your persistent classes list,
> or all metadata files in classpath directories if you have not listed
> your persistent classes. Use -help to display tool usage information.
>
> Is there a verbose mode that I could use to make sure the proper
> classes are enhanced?
>
> Thanks!
>
> Christian
>
> On 9/8/07, Christian Defoy <ch...@gmail.com> wrote:
> > Hello!
> >
> > I am enhancing my classes at build time and that works fine as far as
> > I know. My class files get a new timestamp so I guess they are
> > enhanced. However, when I launch my app, I get
> >
> > Could not locate metadata for the class using alias "Shape".
> > Registered alias mappings: "{Shape=null}"
> >
> > Do I have to run the javaagent even if my classes are enhanced at
> > build time? If I run the agent then everything is fine. Maybe that
> > means that my classes are not enhanced properly at build time. How do
> > I detect that?
> >
> > Thanks in advance!
> >
> > Christian
> >
>
--
Patrick Linskey
202 669 5907
Re: Ant enhancement
Posted by Christian Defoy <ch...@gmail.com>.
Forget it! A condition in my build.xml was preventing the enhancer
from running. Although I am getting a strange message that makes me
wonder if it is running completely...
[enhancer] 62 managed-asset INFO [main] openjpa.Tool - No targets
were given. Running on all classes in your persistent classes list,
or all metadata files in classpath directories if you have not listed
your persistent classes. Use -help to display tool usage information.
Is there a verbose mode that I could use to make sure the proper
classes are enhanced?
Thanks!
Christian
On 9/8/07, Christian Defoy <ch...@gmail.com> wrote:
> Hello!
>
> I am enhancing my classes at build time and that works fine as far as
> I know. My class files get a new timestamp so I guess they are
> enhanced. However, when I launch my app, I get
>
> Could not locate metadata for the class using alias "Shape".
> Registered alias mappings: "{Shape=null}"
>
> Do I have to run the javaagent even if my classes are enhanced at
> build time? If I run the agent then everything is fine. Maybe that
> means that my classes are not enhanced properly at build time. How do
> I detect that?
>
> Thanks in advance!
>
> Christian
>