This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243049 - TomEE: Debugging via maven doesn't work as expected
Summary: TomEE: Debugging via maven doesn't work as expected
Status: NEW
Alias: None
Product: serverplugins
Classification: Unclassified
Component: TomEE (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: issues@serverplugins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-19 11:22 UTC by tandraschko
Modified: 2014-03-19 11:22 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tandraschko 2014-03-19 11:22:00 UTC
Maven Plugin:
        <plugins>
            <plugin>
                <groupId>org.apache.openejb.maven</groupId>
                <artifactId>tomee-maven-plugin</artifactId>
                <version>1.6.0</version>
                <configuration>
                    <tomeeVersion>1.6.0</tomeeVersion>
                    <tomeeClassifier>plus</tomeeClassifier>
                </configuration>
            </plugin>
        </plugins>

NetBeans action:

    Goals: clean package tomee:debug
    Properties: jpda.listen=maven


If you start now, NetBeans/Maven console prints:

NetBeans: JPDA Listening Start...
JPDA Address: Dev-4:58262
Port:58262
..... maven build process...
Listening for transport dt_socket at address: 5005


As the port is different, it can't work.

It's possible to synchronize the ports via:
        <plugins>
            <plugin>
                <groupId>org.apache.openejb.maven</groupId>
                <artifactId>tomee-maven-plugin</artifactId>
                <version>1.6.0</version>
                <configuration>
                    <tomeeVersion>1.6.0</tomeeVersion>
                    <tomeeClassifier>plus</tomeeClassifier>
                    <debugPort>${jpda.address}</debugPort>
                </configuration>
            </plugin>
        </plugins>


So AFAICS, NetBeans listens to right port and TomEE openend the right but it doesn't work.
If you now connect to TomEE via: Menu -> Debug -> Attach Debugger, with the right port, it works.