Re: Newbie Question - Topic: Accessing Tomcat Manager

2015-01-25 Thread Konstantin Kolinko
2015-01-25 9:57 GMT+03:00 Thess Bermudez thessbermu...@gmail.com:
 Hi,

 This may sound very simple. This is surely a newbie question.

 I have installed Tomcat and accessed localhost:8080 and showed that
 installation was successful. I am exploring on the Tomcat Manager but the
 username and password that was defined for manager-gui role is not
 accepted. Is there another step that I may have missed?

 Thank you for your attention,


1. Tomcat reads tomcat-users.xml only once - at startup. Have you
restarted it after making the changes?

2. Check that the file is correct XML.

3. Read Tomcat log files for any unexpected messages.

Best regards,
Konstantin Kolinko

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



Re: Which context.xml have higher priority?

2015-01-25 Thread Konstantin Kolinko
2015-01-25 7:39 GMT+03:00 杨华杰 yhj...@gmail.com:
 Now I have context.xml in three locations:

 A:  in app: meta-info/context.xml
 B:  in conf: context.xml
 C:  in conf/Catalina/**.xml  --- seems like no longer copied to here.


 If I am going to define the same resources in these context.xml, which one
 will going to take effect eventually.


 I could try it myself but I would like a official answer and it consistent
 in further version.


C is used,

A is ignored when C is present, the file name is META-INF/context.xml
(proper naming mappers, case-sensitively)

B provides defaults for all web applications.

The docs are out there... (config/context.html).

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



Re: Newbie Question - Topic: Accessing Tomcat Manager

2015-01-25 Thread André Warnier

Konstantin Kolinko wrote:

2015-01-25 9:57 GMT+03:00 Thess Bermudez thessbermu...@gmail.com:

Hi,

This may sound very simple. This is surely a newbie question.

I have installed Tomcat and accessed localhost:8080 and showed that
installation was successful. I am exploring on the Tomcat Manager but the
username and password that was defined for manager-gui role is not
accepted. Is there another step that I may have missed?

Thank you for your attention,



1. Tomcat reads tomcat-users.xml only once - at startup. Have you
restarted it after making the changes?

2. Check that the file is correct XML.


2.1 : check that the corresponding section is not surrounded by !-- ... --
   (in other words : that it is not an XML comment)



3. Read Tomcat log files for any unexpected messages.




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



Re: JSp dynamic include in tomcat 8.0.15

2015-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Srikanth,

On 1/24/15 12:03 AM, Srikanth Hugar wrote:
 When i include jsp:include page=/WEB-INF//countries.jsp
 /
 
 It does not work in tomcat 8.0.15.

I think there are too many dots in there. It that just an example?

What do you mean it does not work?

 and my included jsp file contents are something like :
 
 div class=txt form:select path=country form:option
 value=US label=US - UNITED STATES OF AMERICA / 
 ...

 
/form:select
 /div
 
 
 What could be the problem?

That depends on what happens when you try the above.

I'm not a JSP expert, but you might need to use %@ include instead
of jsp:include if you want to include files from within /WEB-INF/.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUxWztAAoJEBzwKT+lPKRYFWMP/1zd5tzdCmDXEc6nPHuAL8s0
d2726rQNGrCKuPVjWrZ9/2TJWhwLrP5ZYspH5STgL0wf4ja/Z0M4CFt4uw8nNNjT
btadOioVkNykElTAtEDQiL+ZNHh8pushE+CIh5twEzQoVRny1WNvN8IeKe/Sg/BZ
sa0qbQP1UhZ4Tcp+UO3esrxyLoyTLRx+/ZSGQlr7+7qpQCIR80z986f2QkALXVff
rgxzV3tcz+U4b05Vs41bE/BCSdcF5LqiUrGjaR61A53VkICpFpyrb1xU0kupKxNW
mq2Vvo7X2hyCNNbdSA/mCTovwKrx84q+uKcOVXzTPAu7S1+nSV6Q9eT8+sDlejro
zGdMZ6JZLdggPq2Cm5ecnhEOKIBgsYDAe/S34qmJLAjOCCysShvIW121Hvj01hb0
6c4l0hHRMErWcLgFIKvt7Wr4LYOVkMJ9dJV7UqUPILRoLPd3OYnnMAfTxV9sTuRF
mUga+V1SnuGiT9rDEndMDAwBSfLOg98pYWxDMSCuRGhSR5uMvSROWerEK51NQbTz
OanOU4ktfwXlA7LVJmlBi/1lMQ11Rb32SlX0Ev0StHRLj3LQOtFNC4kc3HYVMOt0
viXsa1sx0eOjtJ+e1Jv5mAaMvixB1N8hbS8r1NSo63XKaxoHQDZ4Aodpf+d7q+pr
ipZSRTiV3s25QPXOv8qb
=jE7/
-END PGP SIGNATURE-

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



Re: [OT] Tomcat 8 encoding issues: unable to change the default encoding iso-8859-1 to utf-8 in http header

2015-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

André,

On 1/24/15 7:52 AM, André Warnier wrote:
 Christopher Schultz wrote:
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA256
 
 André,
 
 ...
 
 
 Morality : in web applications, always specify the
 content-type (and character set, if applicable) of what you are
 returning.
 
 To André: the word you are looking for is Moral, not
 Morality. A moral is the essential message of a story, while
 morality is being able to tell the difference between right and
 wrong. ;)
 
 
 Thanks for the vocabulary note.  I my defense, I would say that
 this family of English terms is a bit confusing, for a native
 French-speaker.

Oh, English is a cluster-@#$*)% because the sentence structure is
insane and the vocabulary has been robbed from every other language in
history. I don't envy anyone trying to learn English.. it must seem to
chaotic compared to German or Latin-based languages (both of which I
have studied, and they have a certain beautiful order to them ... most
of the time).

You usually have impeccable English (better than most Americans, at
least), which is why I went ahead and gave you the short lesson.

 There are many such things between different - but related -
 languages, some of them often leading to amusing situations.  For
 example, the word in spanish for suffering from a cold is
 constipado, which is very close to the french word for being
 incapable to go to the toilet (constipé).

Hah. I would have assumed both of those words were the latter
(gastrointestinal distress).

 And the English adjective embarassed (also imported from the
 French embarassé(e), and with the same meaning), is very close to
 the Spanish embarassada, which means pregnant.
 
 This all just in case someone was wondering about my interest in 
 character set issues on the WWW..

Just don't be embarrassed. Of pregnant. Or whatever. :)

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUxW5BAAoJEBzwKT+lPKRYQroP/AsixSYWCRXHQV/LcesD/gT2
N4fRHr16+vDnFW2w+kXPz9PWg/9sa8BN4k6McZ+Ts2yV7BBps0SPFqtSiKPxCsby
JW1j5HH2lPAq38DdUS50OtwXWkd04qs3lZVJ2bLG9kt8MVgxJP4avgXtuQvu9Cd8
7EeNrfJ5LHkljZfpO7ctTG/Qgu+4AnTJDHDMbI6fQqR+t0860wqAJ/1fanVbe5/+
b8FyyV6NvMki2Rhgblx8NVeCTQqHdbjlDcf1279yYwTafJGVHof68DFkWC5D9PUD
6BkfPDPm1lmVHTkp794d+wQPUuNqUT1+S0se6WcVNgGebbgGI0lfX8LhviBRejKY
CIdTu/Oc28pTjDWfbXJvQfpP3ZWuuiHb0vwcKAxQPj49cxPs4O6LTUB5gj+9mcT9
VuFMJHpSDr8MXgE11WeEbkPlt+Q32xV4BXTSu291U9/GBIpf9PFBtwCI8PqewT34
vpFvLyUIfu8zT2sXeMAF5GpTW6cEiMMthTKi1T2RpEI9tz1+ANXFW1RferqfMFKE
gOdL5yKFa8f2DO7ODCO0RH2t7kpNfJJSe9EDCTyf1CDo/ZkGbExdBoEnwB6kK3vP
B756P9gsS/DMFILWV9rfchGChLzANb5TRSquDHmQAgnLEKaqiVwWganZhrqknJd+
q4nls6bq4FD6qiKq2zHZ
=Ac3v
-END PGP SIGNATURE-

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



Re: Which context.xml have higher priority?

2015-01-25 Thread Jose Monreal
Under what server.xml configuration is that true? Because when I deploy my
app, tomcat uses artifactId-version as the context instead of my config in
META-INF/context.xml
On 25 Jan 2015 06:22, Konstantin Kolinko knst.koli...@gmail.com wrote:

 2015-01-25 7:39 GMT+03:00 杨华杰 yhj...@gmail.com:
  Now I have context.xml in three locations:
 
  A:  in app: meta-info/context.xml
  B:  in conf: context.xml
  C:  in conf/Catalina/**.xml  --- seems like no longer copied to here.
 
 
  If I am going to define the same resources in these context.xml, which
 one
  will going to take effect eventually.
 
 
  I could try it myself but I would like a official answer and it
 consistent
  in further version.


 C is used,

 A is ignored when C is present, the file name is META-INF/context.xml
 (proper naming mappers, case-sensitively)

 B provides defaults for all web applications.

 The docs are out there... (config/context.html).

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




Re: Mod_jk Configuration

2015-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Chris,

On 1/23/15 7:49 PM, Chris Arnold wrote:
 
 *sigh*
 
 If you only want to proxy for one VirtualHost, then only set up 
 JkMounts in that one VirtualHost.
 
 Like this:
 
 VirtualHost *:80 ServerName share2..xxx
 
 JkMount /* worker1 (or balancer, whichever you want) 
 /VirtualHost
 
 Maybe I wasn't clear in my other reply, the above jkmount /*
 worker1 sends all requests to the tomcat app. So a request to
 http://domain.tld would get you to the tomcat app (not what we
 want)

Then your virtual hosts are not set up correctly. If you have a
VirtualHost for share2.xxx.xxx and a separate VirtualHost for .xxx
then the settings should not bleed across.

 If you want to map / to /share it's a giant pain in the neck and
 I don't think you will actually be able to accomplish. Best to
 proxy /share to /share, or, better yet, re-name your application
 to ROOT.war and proxy / to /.
 
 Renaming the war would, I believe, will break everything.

Why?

 You should not have needed to change workers.properties.
 
 Maybe not but u doing so, I have eliminated all the extra clutter
 in workers.properties as being the problem
 
 and the vhost:
 
 JkMount /share2/* worker1 but this gives a 404 *sigh*:
 
 For what URL?
 
 If I understand your question, https://share2.domain.tld. I found 
 that the /share2/* part of jkmount /share2/* worker1 should be
 just /share/*. Changed to just /share/* and now
 https://share2.domain.tld takes you to the root (/srv/www/hotdogs)
 and that is not even where our sites are hosted
 (/srv/www/htdocs/sites).

Then your DocumentRoot is not set correctly. I highly recommend that
you have an expert take a look at your httpd configuration... it
sounds severely mis-configured.

 However, if I put a port 80 redirect to port 443 in the vhost and
 go to http://share2.domain.tld, that gets me to the correct tomcat
 app (https://share2.domain.tld/share)
 
 Don't mess with the Tomcat configuration. Basically, stop
 touching things.
 
 My replies have not alluded to any messing with tomcat config.
 
 What URL can you use to get to the application *without* httpd in
 the middle?
 
 https://share2.domain.tld:8443/share
 
 You can see why we need users to be able to type share2.domain.tld 
 and arrive at the tomcat app. If you contact me off list I will be 
 happy to give you the complete url so you can see exactly the
 address that is need to get to. I don't want that info on a
 publicly index mailing list.

If you won't re-name the web application, I think redirects will be
your best bet. If a client requests http(s)://share2.domain.tld/, you
should redirect them to https://share2.domain.tld/share/ and then
JkMount /share/* worker1. You can redirect using RedirectPermanant
or a few other things like having an index.html with an HTTP-EQUIV
header in it.

At this point, you seem to be able to successfully connect httpd -
Tomcat. If you don't want to follow our advice for a more robust
configuration, you don't have to.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUxWvNAAoJEBzwKT+lPKRYq/8QAMqpMDnEtqvY6irKXI+vCBs9
ZHfVw/93bflr91yc1tN3/EKVFQDLu9qlvkMX+AbG72u4nHRlcq/rtWQbkSA+X3W7
+2Pdx6CXHbYcbGjxN0Z60OZs9GWuWmQ6Fwm/pz70ZKEhsaRfEzUgdsdpY9eR9IKd
Rdczw75EJara2jJfFQE9zs24g0I7N2nL+xTL2EMz5VzUyGRiiJnFCat2CPsw0QJU
broRMy5leXfi5MQFR58BhPT6GZVFS5xP83RlJzlcCanIipCh6oWI8aKJ2ZJNvslY
bJJAzem0JJ0U9exx+5wGKoKMUAC3XFeCWaB1anuVBmHJkQ/TSEcBM8HdwdGIlMu6
LemtQ5vj8ECfiCJnjVLR7AW+zRNwRM5dSVyMpcEYHz3jkzxZf2wMuEoihdkKEVC4
B95PqVkEC8qTCEPOCIupaod+HsJnl6F2Am8dWpjlWO0u2v0bVaFhs/3ss4yivNq7
F1YR5yh3Jkk2xtcsBx5wx4uwlPfdRtIDtHzTkE0SYPs3yobq+T3x5KdNVX0oZh/Q
pL+1sDwnixKA4rFbzscXxVxJ1P/4keYQbHamsQnyENpXyWJYCUQaKLCoY3aftNz2
HlKMlsNb4DFF9ZnClPes+SikCJPtnVgS6ckZKc00m0kc9L4tlcgged5AMANpwT8r
cApDaCCt2V1FXBUWJ2Pc
=Yqys
-END PGP SIGNATURE-

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



Re: Mod_jk Configuration

2015-01-25 Thread Chris Arnold

 If you won't re-name the web application, I think redirects will be
 your best bet. If a client requests http(s)://share2.domain.tld/, you
 should redirect them to https://share2.domain.tld/share/ and then
 JkMount /share/* worker1. You can redirect using RedirectPermanant
 or a few other things like having an index.html with an HTTP-EQUIV
 header in it.
 
 At this point, you seem to be able to successfully connect httpd -
 Tomcat. If you don't want to follow our advice for a more robust
 configuration, you don't have 

You know what Chris, I am trying to follow your advice! Forgive me if I am not 
a tomcat expert like you and others on this list! I keep inviting you or 
anybody else that would, to either contact me off list for all the full 
links/info or maybe a remote session. I know I have a working config on a 
server that I am trying to upgrade using, what looks like , Apache mod_rewrite 
and mod_jk but this is expensive and I heard mod_jk is much better. The offer 
still stands for either a off list contact or teamviewer session (I am willing 
to pay).
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org