Re: [OT] Tomcat Wiki Source Code Download

2020-03-24 Thread Mark Thomas
On 24/03/2020 22:00, Christopher Schultz wrote:
> On 3/24/20 17:54, Brian Burch wrote:



>>> So I had the source all along, but never thought to look there!
> 
>>> Seems like another case where the documentation is misleading to
>>> someone who isn't familiar with the current situation. (I'm used
>>> to two other apache projects where all their web site and wiki
>>> source is in one place, although updating it isn't trivial
>>> either!)
> 
> Does that project maintain 4 separate simultaneous releases? :)

Few do but we could still update the source page to make it clearer that
the tomcat-X.Y-docs pages are copies of the documentation web app from
the most recent X.Y release.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] Tomcat Wiki Source Code Download

2020-03-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Brian,

On 3/24/20 17:54, Brian Burch wrote:
> brian@schizo:~/sandboxApache/TOMCAT_8_5_53-dev/tomcat$ find .
> -iname "*.xml" | grep -i logging ./webapps/docs/logging.xml

This makes my heart ache. Try this instead:

brian@schizo:~/sandboxApache/TOMCAT_8_5_53-dev/tomcat$ find . -iname
"logging.xml"

No need to find all files and then grep the list.

>> So I had the source all along, but never thought to look there!
>
>> Seems like another case where the documentation is misleading to
>> someone who isn't familiar with the current situation. (I'm used
>> to two other apache projects where all their web site and wiki
>> source is in one place, although updating it isn't trivial
>> either!)

Does that project maintain 4 separate simultaneous releases? :)

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

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl56gv8ACgkQHPApP6U8
pFivBhAAiDpiUyCkzdVR6EfsRfVGytWppzrDssyF2ZpWDhERMmc9A4l4645Ujs+d
Hmbc8LtxFJBnaeWmXdDTil90zutG/Z9VgqaqFubYHC6g7ymtiyH4IVV0oL/Vs73V
nXSQBfiEClJcZn/2zdMHtnOo8L6tpBwTQYjWVCWRHsxdwLxf5aNBDYNPkYpsIdDV
2Igia3XArOA35tr8dB8m7SuFkQ+MfbLNZLkLMSWsf4O+p8G7uBU7h8j/KNucyYwp
IN8ZNRtw1QTb/fnzOFWeURyMMxApGKgB/tIsPh+NTS/rLfjrjnp8JFPKH+9XObXw
Zk38EuOKqbtdoUeJMkGjS3gCN9uv2cvHorUGF8BsjeiiUsOa1osXskch+sE7XemK
ZAp9apD7sFDepA2gCcOQkhpFVz282fLtDanSueT0gbEAW0vNwfVA4yqXjwzN7pya
iXFd6mPu+cR4xrpR4ravEyh+PvE6/fkwE0fnvQgyFWt9pMiwERYN7x+DoEA8Bc9K
LoB02QnIAVlJFaRPlBmJ8bFUQP82teEtcKFj4dZaSVWaNOkd8f8jQhxuyXrXzD4T
HZVGcGLN034zMalRgmWliluvjv1vFxwetVNKoiIbISby4hTWEDhBlRdARz0JR1OO
OF/CaooBk74EeHnKK3+OVOzEU8fk8LYaQtsiKORJQ76s4yBQYvY=
=8EYp
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Is it possible to programmatically compile jsp files?

2020-03-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Jonathan,

On 3/24/20 10:44, Jonathan Yom-Tov wrote:
> I have a set of jsp files. These jsps' compilation result changes
> whenever a variable in my cache changes. I want to compile them
> whenever that variable changes so they're ready to serve without
> going through the normal pipeline. Is that possible?

I completely agree with Olaf's response.

That being said, there is a spec-defined way to invoke compilation of
a JSP without evaluating it: make a request to
/context/path/to/my.jsp?jsp_precompile

This is defined in JSP 2.3 section 11.4.2. I wasn't able to find the
JSP spec 3.0 publication, but I'll bet it will be in there once it's
published (it may have been subsumed into Jakarta EE at this point).

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

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl56gpIACgkQHPApP6U8
pFjQRg//Sc+dmxwrmjtZEqiI6KIBsvBS6A3jpTPMhUb6akiYy9YqciuuLJnYu8EE
tTYHkAo+52lIU15csUTRhGXzj1YgLexg3pVEroVChYgg9uwg0hN3+yp0UhbAjgxs
tZ1eEbVJX5wEm7MiHEFZTxbkQnZ5nQXUGeQnM6cdVaZJKZs7Hu+unMiAKldz+zlP
oNnfnchf4QEmI+z1L3ktBdwGBXaKCKTkdXXcPJKqzq/pEl/32/ncZS5xYOK0hcK3
DK3pLLRxC9iBMKt5HSNMWAfiQMDtpVKpR4tLuwP+bB2rEKlkRYfslKzUHnWQlY0F
afT1dOSQvxEWFpMmnzU5H/d6/G9+xYKSlq/duCBm/7OZndXUe1A+HDr+CUQNbem6
hHSszZ4kZoyt6B8iIJKigduwY4GcZV2ZKTO334KTscXXNka0B3Um94UK1CQP4CWS
n0lChV/bkqNviwcsA/Zq4YxrENpisVCvC2n4fILQ2ftqIgXmYR4sdYp5h3+joiEx
64saVENrOaLO8gMtGF1nsUhuJlvld4VA9bkdRkHDfO63nvUN4x3McxPG7VxOplmh
Kws+axYpVekuHw0a7WkMQkPx0tIbIFuTs34KuoDifOjAoPGCCbOGKP9UlhndX9IR
S0oMMgDKuO6DupVTx28xX9qfjXnNRVSnaSETBhNO6qajiUZA7V4=
=ZiT1
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat Wiki Source Code Download

2020-03-24 Thread Brian Burch

On 25/3/20 7:41 am, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Brian,


Sorry about this semi-top-post!

Thanks very much Konstantin and Chris for pointing me in the correct 
direction.


The external url is:-

https://tomcat.apache.org/tomcat-8.0-doc/logging.html#Using_Log4j

Sure enough, this was successful:_

brian@schizo:~/sandboxApache/TOMCAT_8_5_53-dev/tomcat$ find . -iname 
"*.xml" | grep -i logging

./webapps/docs/logging.xml

So I had the source all along, but never thought to look there!

Seems like another case where the documentation is misleading to someone 
who isn't familiar with the current situation. (I'm used to two other 
apache projects where all their web site and wiki source is in one 
place, although updating it isn't trivial either!)


I'll get back to my main task now...

Brian

On 3/24/20 03:11, Brian Burch wrote:

I'm quite baffled!

http://tomcat.apache.org/source.html gives me the url:-

http://svn.apache.org/repos/asf/tomcat/site

I made a clean "svn checkout" and referred to the README.txt about
the source files being xml formatted. I have all the html files,
but the instructions tell me the real source is the xml. There are
a lot of xml files, but not for Logging.

Unfortunately, even after trying:-

svn update --set-depth infinity xdocs jk-xdocs native-xdocs

The directory tree does contain several xml files related to
logging with Tomcat 5, but not the page I want to update.

When I browse:-

http://svn.apache.org/repos/asf/tomcat/site/trunk/xdocs/

There are quite a few xml files, but not the one I would like to
modify - Logging.xml.


The site project is just the basic site. The release-specific files
for the Tomcat user's guide are in the individual branches which are
in git.

If you do a git-clone of e.g. tomcat-9.0.x you'll find logging.xml here:

tomcat-9.0.x$ ls -l webapps/xdocs/logging.xml
- -rw-r--r--  1 bburch  staff  18996 Feb 24 11:29 webapps/docs/logging.xml

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

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl56fnQACgkQHPApP6U8
pFi3eg/+MO9GKrcIrlesvTE+SMokOoLjpTonABTjdr+GS9524TpXQlT4e5T3unKA
MjXKlF63kzrrsqpDPXhMBOzaXN83N98XTSWPiP33NNmT375pq9c/ussxR/ECq/mI
pTbbjoFYYvvySp3S1WJHZKvFpCkWCzkZuGTqNzgoQ/LsKzIZ4uSSN5iDDvIINFoD
iT2bGEoE+XcRYgw0XGKs1b9idCewUXpfcPPiUW4Fh9AU1+DDBVFpl7cLKj5d0aD9
7/fAxuGundxzRWiX0PgnNxHX4Byd9iPgFtkvfWrzIkADv6gHu0wQzDlVr6k9xr18
5x+8reQKJlzIq+SfYBFXm5UZMSjjgI+ugKBoZ29X6mrLxk/+ug07Q/dJB3iFWMnX
1/zhm9PACufbaszYWOOBLmQ6xk7R3tImwZgJ/99GE+vpjeapulGhXNwzS/35roTz
P8dKMed1l+U6KdsFZKxZhHSOXvepiplSIYNmF3B25LfvtTXMC22CykAh2HmJAOl8
JeERxbbW0IV2jL47TeQpVTdMR8wDtIcNSUBbC6/5D69VGiwU4dorsnAiuiAQlTOv
pD6fGCaSQs9I2Ql98vW43H059fKg814XcnB2m3xzOl0iOpVLXiC6xiUIisws82on
/BACVOCnhS0WTd4Tq55/ZyZMw3M19+Bo3DFHXQ8vIeyvx4aLxHk=
=8OqE
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat Wiki Source Code Download

2020-03-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Brian,

On 3/24/20 03:11, Brian Burch wrote:
> I'm quite baffled!
>
> http://tomcat.apache.org/source.html gives me the url:-
>
> http://svn.apache.org/repos/asf/tomcat/site
>
> I made a clean "svn checkout" and referred to the README.txt about
> the source files being xml formatted. I have all the html files,
> but the instructions tell me the real source is the xml. There are
> a lot of xml files, but not for Logging.
>
> Unfortunately, even after trying:-
>
> svn update --set-depth infinity xdocs jk-xdocs native-xdocs
>
> The directory tree does contain several xml files related to
> logging with Tomcat 5, but not the page I want to update.
>
> When I browse:-
>
> http://svn.apache.org/repos/asf/tomcat/site/trunk/xdocs/
>
> There are quite a few xml files, but not the one I would like to
> modify - Logging.xml.

The site project is just the basic site. The release-specific files
for the Tomcat user's guide are in the individual branches which are
in git.

If you do a git-clone of e.g. tomcat-9.0.x you'll find logging.xml here:

tomcat-9.0.x$ ls -l webapps/xdocs/logging.xml
- -rw-r--r--  1 bburch  staff  18996 Feb 24 11:29 webapps/docs/logging.xml

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

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl56fnQACgkQHPApP6U8
pFi3eg/+MO9GKrcIrlesvTE+SMokOoLjpTonABTjdr+GS9524TpXQlT4e5T3unKA
MjXKlF63kzrrsqpDPXhMBOzaXN83N98XTSWPiP33NNmT375pq9c/ussxR/ECq/mI
pTbbjoFYYvvySp3S1WJHZKvFpCkWCzkZuGTqNzgoQ/LsKzIZ4uSSN5iDDvIINFoD
iT2bGEoE+XcRYgw0XGKs1b9idCewUXpfcPPiUW4Fh9AU1+DDBVFpl7cLKj5d0aD9
7/fAxuGundxzRWiX0PgnNxHX4Byd9iPgFtkvfWrzIkADv6gHu0wQzDlVr6k9xr18
5x+8reQKJlzIq+SfYBFXm5UZMSjjgI+ugKBoZ29X6mrLxk/+ug07Q/dJB3iFWMnX
1/zhm9PACufbaszYWOOBLmQ6xk7R3tImwZgJ/99GE+vpjeapulGhXNwzS/35roTz
P8dKMed1l+U6KdsFZKxZhHSOXvepiplSIYNmF3B25LfvtTXMC22CykAh2HmJAOl8
JeERxbbW0IV2jL47TeQpVTdMR8wDtIcNSUBbC6/5D69VGiwU4dorsnAiuiAQlTOv
pD6fGCaSQs9I2Ql98vW43H059fKg814XcnB2m3xzOl0iOpVLXiC6xiUIisws82on
/BACVOCnhS0WTd4Tq55/ZyZMw3M19+Bo3DFHXQ8vIeyvx4aLxHk=
=8OqE
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Strange side effect of "antiClickJackingOption" clause in "httpHeaderSecurity"

2020-03-24 Thread James H. H. Lampert

On 3/24/20 2:25 PM, Christopher Schultz wrote:
. . .

Your problem may stem from the same, related issues we were having. . .


Dear Mr. Schultz:

Thank you very much. I've passed on your reply to our webapp and 
mobile-app team.


--
JHHL

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Strange side effect of "antiClickJackingOption" clause in "httpHeaderSecurity"

2020-03-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

James,

On 3/23/20 18:10, James H. H. Lampert wrote:
> We recently enabled the httpHeaderSecurity filter globally (i.e.,
> in conf/web.xml) on several customer Tomcat servers, thusly:
>
>> 
>>
>>
>> httpHeaderSecurity
>>
>>
>> org.apache.catalina.filters.HttpHeaderSecurityFilter
>>
>>
>>  
>>
>>
>> antiClickJackingOption
>>
>>
>> SAMEORIGIN
>>
>>
>> 
>>
>>
>> true
>>  
>>
>
>
> and now, it seems to be having a side effect on our mobile app,
> such that the "dashboard" function of our product, while it
> continues to work when accessed from a browser, is failing when
> accessed from our mobile app. So far as we know, it's *only* the
> dashboard function (which is in turn based on BIRT).
>
> I know this sounds vague; it's vague because I haven't a clue
> what's going on. I was hoping that somebody here might have some
> insights I could pass on to our webapp/mobile app team.

As soon as I added sameSite=lax cookie policy to our development
server, our mobile app exploded. We have also had problems with CORS
which broke our mobile application as well.

Your problem may stem from the same, related issues we were having:
many mobile apps are actually web applications being "served" by a
"server" which responds to requests to "localhost". The site-origin
for the mobile application is therefore "localhost" and does not match
"example.com" whence the real data is being fetched.

I don't understand exactly how X-Frame-Options (which is what the
HttpHeaderSecurityFilter is configuring) is being used by your
application, but I believe X-Frame-Options is essentially being
replaced by various features of Content-Security-Policy. You may want
to talk to your engineers about using one of those versus the other;
you may want to discontinue using the "anti click-jacking" features of
this filter altogether in favor of something else.

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

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl56erMACgkQHPApP6U8
pFgAZQ//bGXQV4fkWh5uafyFKvS4Dp5NH6WGUx89ekaFvbyqf3r2lGr2CCGtfdBO
aETEhE8GoYDivibF/hsy7AixWjlYTdFnzqKDBDtTffj5tRhNact8LBBSx0LJH0cE
KBa/AnoNmll70n0XHnxtSh0q6iKvT6IClbyJOLBERXRRdm9LWgO9DG/0mZdetaTa
cIFYwle3N9uLhA9U7fwsrOZQpnVRvETjHsk9wuLYEdNBWLeCxfZCThU8pRvDvxfp
oV9pF729LYJ6zg5y8aMNOvG8le60MIkl2hEonfPmXht1zhq8wIOPO8aegCJ3qKpL
CSYMM8CfdeBC0LL5GBYSejxXkNG31GKRujcH73bi894avoLh1Mfg7ZBfSXzZV3Pk
K4t6P/ZIL/FpfSX49HiMYC60xfEl2JS8UJPtGpqz1jOaoOPUQdo1n3JcmO2Isgze
3S1IVOkcrlMgxoWJxundOJnnAmEygfueu6gi73CtDLa+G0LUieX0OduCG13MQXI2
2o/nTrut1Jf2aGIiMKBhD2ce9JOXsbd6DYkChTonsAlcz8PnzE2sdM+aRO3nHkdc
bS9jyJPtvvSLIdS4EAB2lOtnoj5vTXBwQa24DDTw3TRfBhgMaBsIt8uuInqVQPTg
EMinOLYTPPHihnDUu/cnZKPgpyTwFVw2XRJW62Ay3sfIFTdHG0M=
=5GlS
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Is it possible to programmatically compile jsp files?

2020-03-24 Thread Olaf Kock


On 24.03.20 15:44, Jonathan Yom-Tov wrote:
> I have a set of jsp files. These jsps' compilation result changes whenever
> a variable in my cache changes. I want to compile them whenever that
> variable changes so they're ready to serve without going through the normal
> pipeline. Is that possible?
>
Sounds a lot like you're runtime-generating JSPs. I'd rather recommend
to implement a taglib or some other means to generate output dependent
on your cache's content.

At least I can't come up with a different idea for why a compilation
result would depend on some runtime data.

With runtime generation, you might easily run into concurrency issues,
e.g. requesting a JSP while it's overwritten, and only half of the file
is generated (or the file is not yet readable). This would leave a
compiler error, and if the timestamp doesn't update any more, leave you
with a weird result.

Is it possible? Sure. Is it likely the right solution to your problem: I
doubt (until proven opposite)

Olaf


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Is it possible to programmatically compile jsp files?

2020-03-24 Thread Jonathan Yom-Tov
I have a set of jsp files. These jsps' compilation result changes whenever
a variable in my cache changes. I want to compile them whenever that
variable changes so they're ready to serve without going through the normal
pipeline. Is that possible?


Re: Tomcat Wiki Source Code Download

2020-03-24 Thread Konstantin Kolinko
вт, 24 мар. 2020 г. в 10:12, Brian Burch :
>
> I'm quite baffled!
>
> http://tomcat.apache.org/source.html gives me the url:-
>
> http://svn.apache.org/repos/asf/tomcat/site
>
> I made a clean "svn checkout" and referred to the README.txt about the
> source files being xml formatted. I have all the html files, but the
> instructions tell me the real source is the xml. There are a lot of xml
> files, but not for Logging.
>
> Unfortunately, even after trying:-
>
> svn update --set-depth infinity xdocs jk-xdocs native-xdocs
>
> The directory tree does contain several xml files related to logging
> with Tomcat 5, but not the page I want to update.
>
> When I browse:-
>
> http://svn.apache.org/repos/asf/tomcat/site/trunk/xdocs/
>
> There are quite a few xml files, but not the one I would like to modify
> - Logging.xml.
>
> What have I misunderstood?

It would be easier if you mentioned the actual public URL of the page
which source code you are looking for.

It looks that you are mixing up 3 different things:

(a) The Wiki site
(b) tomcat.apache.org web site
(c) Documentation for a specific version of Tomcat.

I guess that you are looking for "(c)". That is the "docs" web
application that is distributed with each release of Tomcat, and its
source code is in webapps/docs directory in Tomcat source code (in
Git).

For convenience, once a version of Tomcat is released, a copy of its
documentation is published under "tomcat-X.Y-doc" onto
tomcat.apache.org web site. E.g.

https://tomcat.apache.org/tomcat-9.0-doc/logging.html
https://github.com/apache/tomcat/blob/9.0.x/webapps/docs/logging.xml

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: invoke jmxproxy servlet using argument with a , is not a possible

2020-03-24 Thread Luis Rodríguez Fernández
Hello Arnaud,

If jmxproxy does not work for you perhaps you can give a try to jolokia
[1]. It accepts JSON POST requests [2] that can implement your scenario.
The installation is quite straight-forward, simply deploy it as a .war or
attach it as an agent to your JVM.

Hope it helps,

Luis

[1] https://jolokia.org

[2] https://jolokia.org/reference/html/protocol.html#post-request










El mar., 24 mar. 2020 a las 9:36, Martin Grigorov ()
escribió:

> Hi,
>
> On Mon, Mar 23, 2020 at 7:08 PM Arnaud Yahoo 
> wrote:
>
> > Hello
> >
> > I am trying to invoke a mbean through jmxproxy servlet. Arguments are
> > separated with , so when one argument itself is containing a coma, it
> > breaks the invocation.
> >
> > It seems there is no way to escape ,.
> >
> > For example trying to save a context configuration fails :
> >
> > curl -u user:pass -G "http://localhost:8080/manager/jmxproxy/;
> > --data-urlencode "invoke=Catalina:type=StoreConfig" --data-urlencode
> > "op=storeContext" --data-urlencode
> >
> "ps=Catalina:j2eeType=WebModule,name=//localhost/myContext,J2EEApplication=none,J2EEServer=none,true,true"
> >
> >
>
>
> https://github.com/apache/tomcat/blob/b9aff64f78740235a5565004423be40cadc740ac/java/org/apache/catalina/manager/JMXProxyServlet.java#L240
> splits
> the parameters by comma and in your case it finds 5 parameters, while
> StoreConfig#storeContext(String, boolean, boolean) expects 3 parameters.
> Without improvements in the parsing code I think your case is not supported
> at the moment.
>
> Martin
>
>
> >
> > of course it works from jconsole.
> >
> > (By the way as an alternative I tried
> >
> > curl -u user:pass
> > http://localhost:8080/manager/text/save?path=/myContext but it fails
> with
> >
> > FAIL - Encountered exception [javax.management.MBeanException: Cannot
> > find operation store] )
> >
> > Arnaud
> >
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> >
>


-- 

"Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better."

- Samuel Beckett


Re: Tomcat Wiki Source Code Download

2020-03-24 Thread Brian Burch

On 24/3/20 5:45 pm, Martin Grigorov wrote:

Hi,

On Tue, Mar 24, 2020 at 9:12 AM Brian Burch  wrote:


I'm quite baffled!

http://tomcat.apache.org/source.html gives me the url:-

http://svn.apache.org/repos/asf/tomcat/site

I made a clean "svn checkout" and referred to the README.txt about the
source files being xml formatted. I have all the html files, but the
instructions tell me the real source is the xml. There are a lot of xml
files, but not for Logging.

Unfortunately, even after trying:-

svn update --set-depth infinity xdocs jk-xdocs native-xdocs

The directory tree does contain several xml files related to logging
with Tomcat 5, but not the page I want to update.

When I browse:-

http://svn.apache.org/repos/asf/tomcat/site/trunk/xdocs/

There are quite a few xml files, but not the one I would like to modify
- Logging.xml.

What have I misunderstood?



$ grep -rnH 'Apache Tomcat uses JULI' .


./docs/tomcat-9.0-doc/logging.html:38:  The internal logging for Apache
Tomcat uses JULI, a packaged renamed fork
./docs/tomcat-8.5-doc/logging.html:38:  The internal logging for Apache
Tomcat uses JULI, a packaged renamed fork
./docs/tomcat-10.0-doc/logging.html:38:  The internal logging for
Apache Tomcat uses JULI, a packaged renamed fork
./docs/tomcat-8.0-doc/logging.html:38:  The internal logging for Apache
Tomcat uses JULI, a packaged renamed fork

grep also does not find the text in any .xml file. Only in .html.


Thanks for looking, Martin.

Here is a direct quote from the site (trunk) README.txt:-

  ***NOTE***
  DO NOT EDIT THE .html files in the docs directory.
  Please follow the directions below for updating the website.
  ***NOTE***
  The Tomcat web site is based on .xml files which are transformed
  into .html files using XSLT and Ant.

So where are the xml files, I wonder?

Brian


Martin



Brian

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org







-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: invoke jmxproxy servlet using argument with a , is not a possible

2020-03-24 Thread Martin Grigorov
Hi,

On Mon, Mar 23, 2020 at 7:08 PM Arnaud Yahoo 
wrote:

> Hello
>
> I am trying to invoke a mbean through jmxproxy servlet. Arguments are
> separated with , so when one argument itself is containing a coma, it
> breaks the invocation.
>
> It seems there is no way to escape ,.
>
> For example trying to save a context configuration fails :
>
> curl -u user:pass -G "http://localhost:8080/manager/jmxproxy/;
> --data-urlencode "invoke=Catalina:type=StoreConfig" --data-urlencode
> "op=storeContext" --data-urlencode
> "ps=Catalina:j2eeType=WebModule,name=//localhost/myContext,J2EEApplication=none,J2EEServer=none,true,true"
>
>

https://github.com/apache/tomcat/blob/b9aff64f78740235a5565004423be40cadc740ac/java/org/apache/catalina/manager/JMXProxyServlet.java#L240
splits
the parameters by comma and in your case it finds 5 parameters, while
StoreConfig#storeContext(String, boolean, boolean) expects 3 parameters.
Without improvements in the parsing code I think your case is not supported
at the moment.

Martin


>
> of course it works from jconsole.
>
> (By the way as an alternative I tried
>
> curl -u user:pass
> http://localhost:8080/manager/text/save?path=/myContext but it fails with
>
> FAIL - Encountered exception [javax.management.MBeanException: Cannot
> find operation store] )
>
> Arnaud
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Tomcat Wiki Source Code Download

2020-03-24 Thread Martin Grigorov
Hi,

On Tue, Mar 24, 2020 at 9:12 AM Brian Burch  wrote:

> I'm quite baffled!
>
> http://tomcat.apache.org/source.html gives me the url:-
>
> http://svn.apache.org/repos/asf/tomcat/site
>
> I made a clean "svn checkout" and referred to the README.txt about the
> source files being xml formatted. I have all the html files, but the
> instructions tell me the real source is the xml. There are a lot of xml
> files, but not for Logging.
>
> Unfortunately, even after trying:-
>
> svn update --set-depth infinity xdocs jk-xdocs native-xdocs
>
> The directory tree does contain several xml files related to logging
> with Tomcat 5, but not the page I want to update.
>
> When I browse:-
>
> http://svn.apache.org/repos/asf/tomcat/site/trunk/xdocs/
>
> There are quite a few xml files, but not the one I would like to modify
> - Logging.xml.
>
> What have I misunderstood?
>

$ grep -rnH 'Apache Tomcat uses JULI' .


./docs/tomcat-9.0-doc/logging.html:38:  The internal logging for Apache
Tomcat uses JULI, a packaged renamed fork
./docs/tomcat-8.5-doc/logging.html:38:  The internal logging for Apache
Tomcat uses JULI, a packaged renamed fork
./docs/tomcat-10.0-doc/logging.html:38:  The internal logging for
Apache Tomcat uses JULI, a packaged renamed fork
./docs/tomcat-8.0-doc/logging.html:38:  The internal logging for Apache
Tomcat uses JULI, a packaged renamed fork

grep also does not find the text in any .xml file. Only in .html.

Martin


> Brian
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Tomcat Wiki Source Code Download

2020-03-24 Thread Brian Burch

I'm quite baffled!

http://tomcat.apache.org/source.html gives me the url:-

http://svn.apache.org/repos/asf/tomcat/site

I made a clean "svn checkout" and referred to the README.txt about the 
source files being xml formatted. I have all the html files, but the 
instructions tell me the real source is the xml. There are a lot of xml 
files, but not for Logging.


Unfortunately, even after trying:-

svn update --set-depth infinity xdocs jk-xdocs native-xdocs

The directory tree does contain several xml files related to logging 
with Tomcat 5, but not the page I want to update.


When I browse:-

http://svn.apache.org/repos/asf/tomcat/site/trunk/xdocs/

There are quite a few xml files, but not the one I would like to modify 
- Logging.xml.


What have I misunderstood?

Brian

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org