Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jan 2013 19:06:23 +0400
From:      Valentin Popov <valentin.po@gmail.com>
To:        "Ronald Klop" <ronald-freebsd8@klop.yi.org>
Cc:        freebsd-java@freebsd.org
Subject:   Re: Adding remote debugging to tomcat7
Message-ID:  <33E97205-7286-453C-A316-A7B7D3A2395B@gmail.com>
In-Reply-To: <op.wrbirli48527sy@ronaldradial.versatec.local>
References:  <50FE368E.2010404@gmail.com> <op.wrbirli48527sy@ronaldradial.versatec.local>

next in thread | previous in thread | raw e-mail | index | archive | help

ln -s /usr/local/openjdk7/jre/lib/amd64/libnpt.so =
/usr/local/lib/libnpt.so=20

http://forums.freebsd.org/showthread.php?t=3D32248

> On Tue, 22 Jan 2013 07:49:50 +0100, David Demelier =
<demelier.david@gmail.com> wrote:
>=20
>> Hello there,
>>=20
>> Sorry for cross posting, I'm not on the freebsd-java list.
>>=20
>> I would like to enable remote debugging to tomcat, as seen here
>> http://wiki.apache.org/tomcat/FAQ/Developing#Q1 it is said to add the
>> following options to the JVM :
>>=20
>> -Xdebug -Xrunjdwp:transport=3Ddt_socket,address=3D8000,server=3Dy,suspe=
nd=3Dn
>>=20
>> So I have added to the rc.conf
>>=20
>> tomcat7_enable=3D"YES"
>> tomcat7_java_opts=3D"-XX:MaxPermSize=3D512m -Xdebug
>> -Xrunjdwp:transport=3Ddt_socket,address=3D8000,server=3Dy,suspend=3Dn"
>>=20
>> Note that the first option is only to prevent a PermGen out of space
>> error. With that setup, tomcat fails to starts with:
>>=20
>> /usr/local/etc/rc.d/tomcat7: WARNING: failed to start tomcat7
>>=20
>> And in the tomcat logs:
>>=20
>> NPT ERROR: Cannot open library
>> Service exit with a return value of 1
>>=20
>> I am using tomcat-7.0.34 on FreeBSD 9-STABLE amd64.
>>=20
>> Cheers,
>=20
>=20
> What java version are you using?
>=20
> Ronald.
> _______________________________________________
> freebsd-java@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to =
"freebsd-java-unsubscribe@freebsd.org"


 =D0=A1 =D0=A3=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC,
=D0=92=D0=B0=D0=BB=D0=B5=D0=BD=D1=82=D0=B8=D0=BD =D0=9F=D0=BE=D0=BF=D0=BE=D0=
=B2








Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33E97205-7286-453C-A316-A7B7D3A2395B>