I usually run using the script that's part of the blog.
I hope you have done a mvn install before running. You should run
hk2:run from the module that provides ModuleStartup service. That's why
that tutorial had the following command in its README:
mvn -f hello-startup/pom.xml hk2:run
Thanks,
Sahoo
David Van Couvering wrote:
> Yes, I went through both your tutorials, Sahoo, thank you. I
> carefully put all the modules in the parent pom, made all of the
> modules hk2-jar files, added the hk2 maven plugin, use hk2:compile and
> hk2:run, used @Service and ModuleStartup for my startup module, etc.
>
> Was there something specific in that blog that you think I'm missing?
>
> David
>
> Sahoo wrote:
>> Have you looked at
>> http://weblogs.java.net/blog/ss141213/archive/2008/01/getting_started_1.html
>>
>>
>> Thanks,
>> Sahoo
>>
>> David Van Couvering wrote:
>>> I am looking for some guidance here. I have a parent pom and three
>>> modules, and everything seems to be configured correctly. One of
>>> the modules definitely has a class that implements ModuleStartup.
>>> But when I try to run I get
>>>
>>> Embedded error: No module has ModuleStartup
>>>
>>> I haven't changed the startup code at all but as a single module
>>> system I used to be able to do mvn hk2:run just fine from that
>>> single module. But now even from the subdirectory of that one
>>> module I get the same error.
>>>
>>> If you need it, I'm happy to send you more info, including a zip of
>>> the project - it's quite small right now, just trying to get started.
>>>
>>> Thanks,
>>>
>>> David
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>