tomcat kullanıcı sorunu

Başlatan zeusmaster, 01 Eylül 2012 - 15:29:00

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

zeusmaster

Herkese Merhaba.
Tomcat ayarlarını yapmak istedim. Bunu için kullanıcı oluşturdum. Ama tarayıcımdan localhost:8080'i açtığımda şifremi kabul etmiyor. Ayar dosyasında mı hata yapıyorum?
tomcat-users.xml;
<?xml version='1.0' encoding='utf-8'?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<tomcat-users>
<!--
  NOTE:  By default, no user is included in the "manager-gui" role required
  to operate the "/manager/html" web application.  If you wish to use this app,
  you must define such a user - the username and password are arbitrary.
-->
<!--
  NOTE:  The sample user and role entries below are wrapped in a comment
  and thus are ignored when reading this file. Do not forget to remove
  <!.. ..> that surrounds them.
-->
<!--
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
-->
</tomcat-users>
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
Up and Running...

burk

@bahdem bu iş için hangi anlatım sitesini takip ettiniz?

cagriemer

tomcat-users.xml dosyasinin icerigini asagidaki sekilde degistirip sureci yeniden baslatmayi dener misiniz?

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="manager"/>
  <role rolename="admin"/>
  <user username="kullanici_adi" password="sifre" roles="admin,manager"/>
</tomcat-users>


zeusmaster

@burk, analatım olarak kendi uyarısını takip ettim.
You are not authorized to view this page. If you have not changed any configuration files, please examine the file conf/tomcat-users.xml in your installation. That file must contain the credentials to let you use this webapp.

For example, to add the admin-gui role to a user named tomcat with a password of s3cret, add the following to the config file listed above.

<role rolename="admin-gui"/>
<user username="tomcat" password="s3cret" roles="admin-gui"/>
Note that for Tomcat 7 onwards, the roles required to use the host manager application were changed from the single admin role to the following two roles. You will need to assign the role(s) required for the functionality you wish to access.

admin-gui - allows access to the HTML GUI
admin-script - allows access to the text interface
The HTML interface is protected against CSRF but the text interface is not. To maintain the CSRF protection:

Users with the admin-gui role should not be granted the admin-script role.
If the text interface is accessed through a browser (e.g. for testing since this interface is intended for tools not humans) then the browser must be closed afterwards to terminate the session.

@cagriemer, hocam olmadı. Server status, Manager App,  Host Manager 3 ünden de giriş yapmayı denedim ama sonuç aynı.
Up and Running...

cagriemer

bahdem son durumda tomcat-users.xml ciktisini gorebilir miyim? Uzerinde sifre disinda bir oynama yapmadan ucbirim ciktisini, verdiginiz komutla birlikte aktarirsaniz cok iyi olur. Bir de bu son gectiginiz uyariya gore Tomcat 7 ile admin-gui ve admin-script diye ikiye ayrilmis roller. Benim yukarida verdigim tek admin rolu Tomcat 6 icindi. O yuzden erisememis olabilirsiniz.

Bu arada daha once hic Tomcat kurup yapilandirmadim. Okuduklarimi aktariyorum buraya.

zeusmaster

#5
Şimdide çalışan şey çalışmaz oldu;
urity.core.context.SecurityContextImpl] (value [org.springframework.security.core.context.SecurityContextImpl@ffffffff: Null authentication]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2012-09-26 15:03:01,673 [pool-2-thread-1] ERROR org.apache.catalina.loader.WebappClassLoader - The web application [/OpenKM] created a ThreadLocal with key of type [org.apache.lucene.document.DateTools$1] (value [org.apache.lucene.document.DateTools$1@7c4afb60]) and a value of type [org.apache.lucene.document.DateTools.DateFormats] (value [org.apache.lucene.document.DateTools$DateFormats@1ebd9b60]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2012-09-26 15:03:01,674 [pool-2-thread-1] ERROR org.apache.catalina.loader.WebappClassLoader - The web application [/OpenKM] created a ThreadLocal with key of type [org.apache.ws.commons.schema.utils.CollectionFactory$1] (value [org.apache.ws.commons.schema.utils.CollectionFactory$1@3223cb64]) and a value of type [java.lang.Boolean] (value [false]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2012-09-26 15:03:01,679 [    main] INFO  org.apache.coyote.http11.Http11Protocol - Stopping ProtocolHandler ["http-bio-8080"]
2012-09-26 15:03:01,680 [    main] INFO  org.apache.coyote.http11.Http11Protocol - Destroying ProtocolHandler ["http-bio-8080"]
2012-09-26 15:03:01,680 [    main] INFO  org.apache.coyote.ajp.AjpProtocol - Stopping ProtocolHandler ["ajp-bio-8009"]
2012-09-26 15:03:01,680 [    main] INFO  org.apache.coyote.ajp.AjpProtocol - Destroying ProtocolHandler ["ajp-bio-8009"]



Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 26 Eylül 2012 - 15:17:56

Tarayıcıya localhost:8080 yazıldığında verdiği hata;
Alıntı YapOops! This link appears to be broken.
Up and Running...

heartsmagic

Herhangi bir şey değişti mi sistemde? Tomcat, Java sürümü falan?
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

zeusmaster

Sadece sisteme phpmyadmin kurulumu gerçekleştirdim.
Up and Running...

heartsmagic

Hemen ondan sonra olduysa tesadüfe veremeyiz sanırım :) Hani Google'da falan hatayı aratıyorum da konuya da çok hakim olmadığım için pek bir şey çıkartamadım.
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

if


zeusmaster

phpmyadmin i kaldırdım ve kalıntıları temizledikten sonra kurulumu tekrardan yaptım ve sorun kalmadı :) ama ikisinide kullanmak için ne yapmam lazım acaba :)
Up and Running...

heartsmagic

Tomcat ile aralarında bir uyuşmazlık mı var acaba? Eğer çok zahmetli değilse düzeltmesi tekrar kurmayı dene Phpmyadmin'i. Eğer yine olursa bu ikili arasında ne var diye bakınılır o zaman.
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.