You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by pierrepinon <pp...@smaeur.eu> on 2013/06/03 11:37:00 UTC
Tomee Plus and EAR debugging in Eclipse
Hello,
I added Tomcat 7 Server Runtime Environment for debug my EAR and webapps but
it seems impossible to deploy EAR directly from Eclipse.
I read "http://tomee.apache.org/tomee-and-eclipse.html" but it's only for
WAR.
Is there a solution to deploy my EAR and debug my application in Eclipse.
I haven't found any documentation for that.
Thanks.
--
View this message in context: http://openejb.979440.n4.nabble.com/Tomee-Plus-and-EAR-debugging-in-Eclipse-tp4663415.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Tomee Plus and EAR debugging in Eclipse
Posted by Romain Manni-Bucau <rm...@gmail.com>.
hmm,
you find eclipse easier but tomee mvn plugin is far better to work in a
team because you share in your project your tomee.xml in a standard place
and calling mvn tomee:run it is automatically used where in eclipse you
need to put it manually in the right server project. Then that's just
habits i think.
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/6/3 pierrepinon <pp...@smaeur.eu>
> Hi,
>
> Thank you for your message,
>
> But it's annoying to not have integrated solution (Eclipse Server Adapter)
> to deploy on TomEE like we have with Tomcat, Glassfish, ...
>
> Because I have TomEE server with a custom ActiveMQ Broker (activemq.xml),
> queues, connection pool, SSL connector, custom JVM options and it's easier
> to work with adapter linked to a local TomEE server.
>
> But it is not clear to work with several people with this solution.
>
> Maybe in the future...
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Tomee-Plus-and-EAR-debugging-in-Eclipse-tp4663415p4663429.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: Tomee Plus and EAR debugging in Eclipse
Posted by pierrepinon <pp...@smaeur.eu>.
Hi,
Thank you for your message,
But it's annoying to not have integrated solution (Eclipse Server Adapter)
to deploy on TomEE like we have with Tomcat, Glassfish, ...
Because I have TomEE server with a custom ActiveMQ Broker (activemq.xml),
queues, connection pool, SSL connector, custom JVM options and it's easier
to work with adapter linked to a local TomEE server.
But it is not clear to work with several people with this solution.
Maybe in the future...
--
View this message in context: http://openejb.979440.n4.nabble.com/Tomee-Plus-and-EAR-debugging-in-Eclipse-tp4663415p4663429.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Tomee Plus and EAR debugging in Eclipse
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,
you copy your ear in <tomee>/apps then set environment variables
JPDA_ADDRESS=5005 and JPDA_SUSPEND=y. Finally in eclipse add to the JVM
args: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005.
Start tomee, create a remote debug configuration in eclipse on port 5005
and you are done.
PS: tomee mvn plugin is easier since it got the goal tomee:debug but it
only works if you use mvn.
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/6/3 pierrepinon <pp...@smaeur.eu>
> Hello,
>
> I added Tomcat 7 Server Runtime Environment for debug my EAR and webapps
> but
> it seems impossible to deploy EAR directly from Eclipse.
>
> I read "http://tomee.apache.org/tomee-and-eclipse.html" but it's only for
> WAR.
>
> Is there a solution to deploy my EAR and debug my application in Eclipse.
>
> I haven't found any documentation for that.
>
> Thanks.
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Tomee-Plus-and-EAR-debugging-in-Eclipse-tp4663415.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: Tomee Plus and EAR debugging in Eclipse
Posted by Jean-Louis MONTEIRO <je...@gmail.com>.
Using TomEE maven plugin is pretty simple.
Just use tomee:debug target instead of tomee:run and attach the debugger to
5005 port.
JLouis
2013/6/3 pierrepinon <pp...@smaeur.eu>
> Hello,
>
> I added Tomcat 7 Server Runtime Environment for debug my EAR and webapps
> but
> it seems impossible to deploy EAR directly from Eclipse.
>
> I read "http://tomee.apache.org/tomee-and-eclipse.html" but it's only for
> WAR.
>
> Is there a solution to deploy my EAR and debug my application in Eclipse.
>
> I haven't found any documentation for that.
>
> Thanks.
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Tomee-Plus-and-EAR-debugging-in-Eclipse-tp4663415.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
--
Jean-Louis