Hi!

We found the solution. The problem: Maven not set the source dir in
deployment assembly (I dunno why). I add it by hand, and now
everything is work fine.

Thanks..
b0c1


On Wed, Oct 19, 2011 at 8:45 AM, János Háber <[email protected]> wrote:
> Hi!
> In this case you not lose the debugging ability ? (Breakpoints etc)
> (Breakpoints etc)
>
> b0c1
>
> On Wed, Oct 19, 2011 at 3:10 AM, Stephen Coy <[email protected]> wrote:
>> OK, we found that until a few weeks ago that this combination did not work 
>> at all. It has started to work better with the later releases of m2e/wtp but 
>> is still somewhat flaky.
>>
>> What we're doing at the moment is using OEPE to run WLS from eclipse, but 
>> using the weblogic-maven-plugin to deploy apps from the command line (or 
>> eclipse Run As… if you like). This is the Oracle implementation, not the old 
>> codehaus one. There is documentation for it at 
>> <http://download.oracle.com/docs/cd/E21764_01/web.1111/e13702/maven_deployer.htm#DEPGD379>.
>>
>> Our large non trivial app generally deploys and starts in under 20 seconds 
>> this way, so it's not too bad as far as dev->deploy->dev cycles go.
>>
>> Cheers,
>>
>> Steve C
>>
>>
>> On 19/10/2011, at 10:35 AM, János Háber wrote:
>>
>>> Hi!
>>>
>>> Yes. Version:
>>>
>>> Oracle WebLogic Server Tools
>>> Part of Oracle Enterprise Pack for Eclipse 11.1.1.7.3
>>>
>>> Tools for developing applications for Oracle WebLogic Server (versions
>>> 11gR1, 10gR3, 10.0, 9.x and 8.1).
>>>
>>> b0c1
>>>
>>> On Wed, Oct 19, 2011 at 1:33 AM, Stephen Coy <[email protected]> wrote:
>>>> 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 <[email protected]> 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 <[email protected]>
>>>>>>>
>>>>>>> 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
>>>>>>> [email protected]
>>>>>>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> "Have you tried turning it off and on again" - The IT Crowd
>>>>>>
>>>>>> _______________________________________________
>>>>>> m2e-users mailing list
>>>>>> [email protected]
>>>>>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>>>>>>
>>>>>>
>>>>> _______________________________________________
>>>>> m2e-users mailing list
>>>>> [email protected]
>>>>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>>>>
>>>> _______________________________________________
>>>> m2e-users mailing list
>>>> [email protected]
>>>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>>>>
>>> _______________________________________________
>>> m2e-users mailing list
>>> [email protected]
>>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>>
>> _______________________________________________
>> m2e-users mailing list
>> [email protected]
>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>>
>
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to