Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] How can I debug jetty using the ant plugin?

Is there a fork option in the jetty ant plugin? This doesn't work:

    <jetty tempDirectory="target/work" fork="false">
      <webApp
        name="myapp"
        warfile="target/myapp"
        contextpath="/myapp" />
    </jetty>

Thanks for your help.

On Sat, May 28, 2011 at 1:50 PM, Christian Grobmeier <grobmeier@xxxxxxxxx> wrote:
Hi,

just a guess - are you using fork in your ant-skript? Probably your
options are not passed on. Probably fork is passing only the memory
options on.

Cheers
Christian

On Sat, May 28, 2011 at 7:10 PM, Ra Carter <spacemonkeyiv@xxxxxxxxx> wrote:
> Please see this question I posted to stack
> overflow: http://stackoverflow.com/questions/6160033
> I am able to run the jetty plugin from ant but I would also like to debug
> the server. I tried updating ANT_OPTS with this command on Windows:
>
> set "ANT_OPTS=-Xms256m -Xmx1024m -XX:MaxPermSize=256m
> -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Xdebug
> -Xnoagent"
>
> However when I try to configure Eclipse with remote debugging on
> localhost:8000 I get an error.
>
> Failed to connect to remote VM. Connection timed out.
> org.eclipse.jdi.TimeoutException
>
> My app won't even start up without increasing the memory so I am led to
> believe that the jetty server is respecting the memory options, so why
> wouldn't it accept the debug options? How can I enable remote debugging with
> this setup?
> Thanks!
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
>



--
http://www.grobmeier.de
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top