[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [m2e-users] M2E + ear + weblogic = NoClassDefFoundError
|
Hi there,
Are you using the Oracle Enterprise Pack for Eclipse?
On 18/10/2011, at 9:00 PM, János Háber wrote:
> Hi!
>
> - Yes WTP plugin installed... (I see the ear option in maven preferences)
> - I not found generated ear, now I try with unpacked mode. And what
> the surprise... the result is totally chaos.
>
> The directily dependent modules is ok. but the modules dependencies
> (which same local projects and their dependencies which contain
> another local maven projects) is deployed under to APP-INF (the
> generated ear deploy everything to defaultLibBundleDir, but m2e not.
> (only the direct module dependencis deployed to the
> defaultLibBundleDir, their local projects and it's dependencies
> deployed to APP-INF/lib, it's not a problem... but one of the project
> is not deployed the hiearchy:
> demo.ejb,demo.war,demo.ws -> demo.model -> waf.model -> waf.base
>
> Any project deployed, except waf.model (so the waf.base deployed too!!!)
>
> My pomfile contains password, I can delete it if you want...
> My demo projects contain a parent project, named with demo.
>
> - demo ===> parent project for demo.*
>
> - demo.model -> waf.model
> - demo.war -> waf.war, demo.model
> - demo.ejb -> waf.ejb, demo.model
> - demo.ws -> waf.ws, demo.model
> - demo.ear (for ear build)
>
> and helper projects (all is standalone jar project, do not have parent project)
> - waf.war -> waf.model
> - waf.ejb -> waf.model
> - waf.ws -> waf.model
> - waf.model -> waf.base
> - waf.base
>
> in the demo.ear project:
> .... Dependencies ....
> <dependency>
> <groupId>hu.dk</groupId>
> <artifactId>demo.ejb</artifactId>
> <version>0.0.1-SNAPSHOT</version>
> <type>ejb</type>
> </dependency>
> <dependency>
> <groupId>hu.dk</groupId>
> <artifactId>demo.web</artifactId>
> <version>0.0.1-SNAPSHOT</version>
> <type>war</type>
> </dependency>
> <dependency>
> <groupId>hu.dk</groupId>
> <artifactId>demo.ws</artifactId>
> <version>0.0.1-SNAPSHOT</version>
> <type>war</type>
> </dependency>
> <dependency>
> <groupId>hu.dk</groupId>
> <artifactId>demo.model</artifactId>
> <version>0.0.1-SNAPSHOT</version>
> </dependency>
>
> .... Plugins...
> <plugin>
> <artifactId>maven-ear-plugin</artifactId>
> <version>2.6</version>
> <configuration>
> <version>5</version>
> <defaultLibBundleDir>APP-INF/lib</defaultLibBundleDir>
> <fileNameMapping>full</fileNameMapping>
> <modules>
> <webModule>
> <groupId>hu.dk</groupId>
> <artifactId>demo.web</artifactId>
> <contextRoot>/${deploy.name}</contextRoot>
> <bundleFileName>demo.web.jar</bundleFileName>
> </webModule>
> <ejbModule>
> <groupId>hu.dk</groupId>
> <artifactId>demo.ejb</artifactId>
> <bundleFileName>demo.ejb.jar</bundleFileName>
> </ejbModule>
> <webModule>
> <groupId>hu.dk</groupId>
> <artifactId>demo.ws</artifactId>
> <bundleFileName>demo.ws.jar</bundleFileName>
> <contextRoot>/${deploy.name}/ws</contextRoot>
> </webModule>
> </modules>
> </configuration>
> </plugin>
> </plugins>
>
>
> b0c1
>
> On Tue, Oct 18, 2011 at 10:08 AM, Fred Bricon <fbricon@xxxxxxxxx> wrote:
>> Without much informations on your setup, it's gonna be hard to know what's
>> going on.
>> - First things first : Have you installed the m2e-wtp integration plugin
>> (see https://github.com/sonatype/m2eclipse-wtp/wiki)?
>> - Check the differences between the deployed project contents and the maven
>> generated .ear.
>> - posting the contents of your poms might be helpful troubleshooting your
>> issue.
>> Regards,
>> Fred Bricon
>>
>> 2011/10/18 János Háber <janos.haber@xxxxxxxxxxxxx>
>>>
>>> Hi!
>>>
>>> I have a little problem with my projects. I created an ear project
>>> with one ejb, one war and one webservice project.
>>> The project depend some subproject ( ejb -> model and war -> model,
>>> wsr -> model).
>>> When I build ear with maven, the ear file is correct, but when I add
>>> the ear project in eclipse to weblogic it's not work.
>>> The project is deployed, and it's try to start, but it's can't. I get
>>> NoClassDefFoundError (the class is in the model project).
>>>
>>> I dunno why. I miss something in ear plugin?
>>> Dependency:
>>> ear -> ejb,war,wsr -> model
>>>
>>> Please help.
>>> Thanks
>>> b0c1
>>> _______________________________________________
>>> m2e-users mailing list
>>> m2e-users@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>>
>>
>>
>> --
>> "Have you tried turning it off and on again" - The IT Crowd
>>
>> _______________________________________________
>> m2e-users mailing list
>> m2e-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>>
>>
> _______________________________________________
> m2e-users mailing list
> m2e-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/m2e-users