You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2020/03/03 20:31:23 UTC

Trouble building and running Tomcat 10 unit tests

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

All,

I'm up-to-date with git master, using ant 1.9.13, JDK 13.

$ ant test

[...]

test-compile:
    [javac] Compiling 1 source file to
/Users/christopherschultz/git/tomcat-trunk/output/testclasses
    [javac] Ignoring source, target and bootclasspath as release has
been set
    [javac]
/Users/christopherschultz/git/tomcat-trunk/test/org/apache/catalina/ant/
TestDeployTask.java:37:
error: cannot access BuildException
    [javac]             public void execute(String command,
InputStream istream, String contentType, long contentLength)
    [javac]                         ^
    [javac]   class file for BuildException not found
    [javac] 1 error

Ant has this class. Not sure why it can't access it. Okay, fine, I'll
just delete the file and move on:

$ rm test/org/apache/catalina/ant/TestDeployTask.java
$ ant test

[...]

add-osgi:
     [echo] add-osgi
/Users/christopherschultz/git/tomcat-trunk/output/build/lib/catalina.jar
true
  [bndwrap] 1 ERRORS
  [bndwrap]  The default package '.' is not permitted by the
Import-Package syntax.
  [bndwrap]  This can be caused by compile errors in Eclipse because
Eclipse creates
  [bndwrap] valid class files regardless of compile errors.
  [bndwrap] The following package(s) import from the default package
[org.apache.naming.factory.webservices, org.apache.catalina.startup]

BUILD FAILED
/Users/christopherschultz/git/tomcat-trunk/build.xml:852: The
following error occurred while executing this line:
/Users/christopherschultz/git/tomcat-trunk/build.xml:3372: The
following error occurred while executing this line:
/Users/christopherschultz/git/tomcat-trunk/build.xml:3381: Failed to
wrap jar file

Downgrading to Java 8 (as per Tomcat 10 build instructions) yields the
same result.

What am I missing?

Thanks,
- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl5evpsACgkQHPApP6U8
pFiGcRAAkaGS2G+/DCXQbByimPYmCWbWWtq3pZPICjW4CpZA12Gx03Kr9Jo5jJTe
3ygSN8WxZTkfArtrcg0bop44FuYJZU7owPbP5ppDt38q7R3bI0einB+KKTsBuu4l
tsfDipRV6ItzjbIY/UJNJho4/go0vaIcmkQU8KtQf5CI/zZiDWJq1RkQmxSQkc0r
hMWy2YLAigsSikR1Aah8fOn8WICNEKYOylsUmFVr119Ps6SgkYQ+Vq0+UGSo1UWW
+yP6hhCqJaK/WIyJBr3n4As8QRzZ9w+n+H6BZmUiH+iQMgURYkTvicTqkcewFOPE
r6lh5AGDYKJiGRtA8k0uqweOT1mwtIEN7T2OeDG4axXAIVeW5PSAT6O5ZibWRL7p
ZDITx8ZpZpNvzixOaGm1Nqy7xzd5c/vXwyckvM/phZp/UnLxnFYkZkjqtO14tYQc
FcNjeBZjIJxP7lPhfLXpMRI1Lf5sQy1lnhZOg3dqVChJEWCabpz/wZscsUSV1LCa
G05RbMj9JsrDo3Y9jI+9ixWy6t+C3HFGJ4WqayVwd+ErdDjanEIsUO48lTKwD+be
iz07aP8LMUVSholwhu1kR1YsaWb6mL+Y3f5AeitCBnkiAW2ZvBSAX9knsAFkrhUq
EkAm9brjvmz44QJ+eUdVJLEY1GXAIUt1rAELtdjt/n/3E1cdvPw=
=N/et
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: Trouble building and running Tomcat 10 unit tests

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Martin,

On 3/4/20 04:22, Martin Grigorov wrote:
> Hi Chris,
>
> Travis CI (ARM64 tests) uses Ant 1.10.7 and OpenJDK 8 b232 and the
> build passes fine:
> https://travis-ci.org/apache/tomcat/jobs/657777889/config On my VM
> I use Ant 1.9.14 and OpenJDK 8 b242 and again everything is
green.
> BuildBot is also stable:
> https://ci.apache.org/builders/tomcat-trunk

Looks like a completely clean build got things working again: both the
normal and the test build.

- -chris

> On Tue, Mar 3, 2020 at 10:31 PM Christopher Schultz
> <chris@christopherschultz.net
> <ma...@christopherschultz.net>>
wrote:
>
> All,
>
> I'm up-to-date with git master, using ant 1.9.13, JDK 13.
>
> $ ant test
>
> [...]
>
> test-compile: [javac] Compiling 1 source file to
> /Users/christopherschultz/git/tomcat-trunk/output/testclasses
> [javac] Ignoring source, target and bootclasspath as release has
> been set [javac]
> /Users/christopherschultz/git/tomcat-trunk/test/org/apache/catalina/an
t/
>
>
TestDeployTask.java:37:
> error: cannot access BuildException [javac]             public void
> execute(String command, InputStream istream, String contentType,
> long contentLength) [javac]                         ^ [javac]
> class file for BuildException not found [javac] 1 error
>
> Ant has this class. Not sure why it can't access it. Okay, fine,
> I'll just delete the file and move on:
>
> $ rm test/org/apache/catalina/ant/TestDeployTask.java $ ant test
>
> [...]
>
> add-osgi: [echo] add-osgi
> /Users/christopherschultz/git/tomcat-trunk/output/build/lib/catalina.j
ar
>
>
true
> [bndwrap] 1 ERRORS [bndwrap]  The default package '.' is not
> permitted by the Import-Package syntax. [bndwrap]  This can be
> caused by compile errors in Eclipse because Eclipse creates
> [bndwrap] valid class files regardless of compile errors. [bndwrap]
> The following package(s) import from the default package
> [org.apache.naming.factory.webservices,
> org.apache.catalina.startup]
>
> BUILD FAILED
> /Users/christopherschultz/git/tomcat-trunk/build.xml:852: The
> following error occurred while executing this line:
> /Users/christopherschultz/git/tomcat-trunk/build.xml:3372: The
> following error occurred while executing this line:
> /Users/christopherschultz/git/tomcat-trunk/build.xml:3381: Failed
> to wrap jar file
>
> Downgrading to Java 8 (as per Tomcat 10 build instructions) yields
> the same result.
>
> What am I missing?
>
> Thanks, -chris
>
>
- ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> <ma...@tomcat.apache.org> For additional commands,
> e-mail: dev-help@tomcat.apache.org
> <ma...@tomcat.apache.org>
>
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl5f9G8ACgkQHPApP6U8
pFh5VBAAs/Trxz0ML8C5R37QVwzAJwrF7s/Xqfe5eNuzABkzE0TpotPk9UEa1k/F
5nV62lCAah2lYpqWlPLwNx5GLrVG90PXn9Ta3p7bmK70dJLI4WsfMO4WRq5UmSy3
lrV3LmxZdygE6T/EjHxpfKDv0otjSVs34GP7W3WWdqKsSbSi4AOz844INo7k03Hx
pnoZ2m1DevZjqUt2y/3TVbVX2Yz54N7D7C6Vr6OMewM7FGWQkRuJUjqNM9ux4u73
zZYtwqDzcHJv62EYDGK7N1IF53gEAtk6fqZSkQZYedqzeuzpQ1eKNUm7+uhEiWr2
7qi1h0ZV1MLBHM/FDoMo0uco5+gwHcOD8B9nXSXdS/OCDUbSjoD0xRtjjva2S94G
/4HGUTaSDEkcofvxldNp90NxgZLvpSIokHwE+KOaOftdf17e7WdC5iqgeeo0Bz6G
qt/+dW8k0Qp1XYKVREeBDeMb9yIulzUYiYTJc7u6jtDEBCyHt/XH3+vhcNV2fe6c
XjRrqxiCRdcR5ice+FrzcUlRqiaqjrA0s7Y2nnPy5XdsaZE5etOOncVEpAmHPhm9
5WfNh4gfr87ji8i6+EjYPbsCubV+AUsZELmKdgXdO+JT7s9qyWPf/YaMWnRaEJVk
RZC4R0+GHMITPZ5gXD8O0qQoty6oqMrnwfyron+mIEbXt5FZhog=
=soEZ
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: Trouble building and running Tomcat 10 unit tests

Posted by Martin Grigorov <mg...@apache.org>.
Hi Chris,

Travis CI (ARM64 tests) uses Ant 1.10.7 and OpenJDK 8 b232 and the build
passes fine: https://travis-ci.org/apache/tomcat/jobs/657777889/config
On my VM I use Ant 1.9.14 and OpenJDK 8 b242 and again everything is green.
BuildBot is also stable: https://ci.apache.org/builders/tomcat-trunk


Martin

On Tue, Mar 3, 2020 at 10:31 PM Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> All,
>
> I'm up-to-date with git master, using ant 1.9.13, JDK 13.
>
> $ ant test
>
> [...]
>
> test-compile:
>     [javac] Compiling 1 source file to
> /Users/christopherschultz/git/tomcat-trunk/output/testclasses
>     [javac] Ignoring source, target and bootclasspath as release has
> been set
>     [javac]
> /Users/christopherschultz/git/tomcat-trunk/test/org/apache/catalina/ant/
> TestDeployTask.java:37:
> error: cannot access BuildException
>     [javac]             public void execute(String command,
> InputStream istream, String contentType, long contentLength)
>     [javac]                         ^
>     [javac]   class file for BuildException not found
>     [javac] 1 error
>
> Ant has this class. Not sure why it can't access it. Okay, fine, I'll
> just delete the file and move on:
>
> $ rm test/org/apache/catalina/ant/TestDeployTask.java
> $ ant test
>
> [...]
>
> add-osgi:
>      [echo] add-osgi
> /Users/christopherschultz/git/tomcat-trunk/output/build/lib/catalina.jar
> true
>   [bndwrap] 1 ERRORS
>   [bndwrap]  The default package '.' is not permitted by the
> Import-Package syntax.
>   [bndwrap]  This can be caused by compile errors in Eclipse because
> Eclipse creates
>   [bndwrap] valid class files regardless of compile errors.
>   [bndwrap] The following package(s) import from the default package
> [org.apache.naming.factory.webservices, org.apache.catalina.startup]
>
> BUILD FAILED
> /Users/christopherschultz/git/tomcat-trunk/build.xml:852: The
> following error occurred while executing this line:
> /Users/christopherschultz/git/tomcat-trunk/build.xml:3372: The
> following error occurred while executing this line:
> /Users/christopherschultz/git/tomcat-trunk/build.xml:3381: Failed to
> wrap jar file
>
> Downgrading to Java 8 (as per Tomcat 10 build instructions) yields the
> same result.
>
> What am I missing?
>
> Thanks,
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl5evpsACgkQHPApP6U8
> pFiGcRAAkaGS2G+/DCXQbByimPYmCWbWWtq3pZPICjW4CpZA12Gx03Kr9Jo5jJTe
> 3ygSN8WxZTkfArtrcg0bop44FuYJZU7owPbP5ppDt38q7R3bI0einB+KKTsBuu4l
> tsfDipRV6ItzjbIY/UJNJho4/go0vaIcmkQU8KtQf5CI/zZiDWJq1RkQmxSQkc0r
> hMWy2YLAigsSikR1Aah8fOn8WICNEKYOylsUmFVr119Ps6SgkYQ+Vq0+UGSo1UWW
> +yP6hhCqJaK/WIyJBr3n4As8QRzZ9w+n+H6BZmUiH+iQMgURYkTvicTqkcewFOPE
> r6lh5AGDYKJiGRtA8k0uqweOT1mwtIEN7T2OeDG4axXAIVeW5PSAT6O5ZibWRL7p
> ZDITx8ZpZpNvzixOaGm1Nqy7xzd5c/vXwyckvM/phZp/UnLxnFYkZkjqtO14tYQc
> FcNjeBZjIJxP7lPhfLXpMRI1Lf5sQy1lnhZOg3dqVChJEWCabpz/wZscsUSV1LCa
> G05RbMj9JsrDo3Y9jI+9ixWy6t+C3HFGJ4WqayVwd+ErdDjanEIsUO48lTKwD+be
> iz07aP8LMUVSholwhu1kR1YsaWb6mL+Y3f5AeitCBnkiAW2ZvBSAX9knsAFkrhUq
> EkAm9brjvmz44QJ+eUdVJLEY1GXAIUt1rAELtdjt/n/3E1cdvPw=
> =N/et
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>