tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathias Herberts <>
Subject Problem with -p option of
Date Sun, 18 Nov 2001 23:42:32 GMT

I ran into a problem using with tomcat 3.2.3 when using the -p
<package> option.

It seems all the java files generated indeed include a 'package
<package>;' statement,

but the web.xml fragment generated is wrong for all jsp files which are
in the main webapp dir (at the same level as WEB-INF).

>From the source it appears JspC is using the getPackageName method of
the CommandLineCompiler class to retrieve the package name to include in
the servlet definition. But the CommandLineCompiler class in its
computePackageName method ignores
the package set with the -p option for all jsp files in the main webapp

The impact tis that the web.xml fragment must be modified manually in
order for it to
function properly.

Has anyone seen a solution for this problem ?


To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message