Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Content Zone
locationtop
typelist
separatorbrackets

Starting up the Reader Application

The tail command is very useful when administering the reader application (the corresponding command in the Windows operating system is WinTail). That command makes it possible to monitor Apache Tomcat log files. In the root directory of the Apache Tomcat program, enter

Uruchomienie Aplikacji Czytelnika

Bardzo przydatnym poleceniem przy administrowaniu aplikacją czytelnika jest tail (tail posiada swój windowsowy odpowiednik WinTail). Polecenie to pozwala śledzić pliki logów Apache Tomcat. Będąc w katalogu głównym Tomcata należy wpisać

: tail -f logs/catalina.out.

Jeżeli plik

If the catalina.out

nie istnieje możemy go samodzielnie utworzyć. Należy teraz uruchomić Apache Tomcat i śledzić postęp uruchomienia na konsoli gdzie wydane zostało polecenie tail. Gdy inicjalizacja serwera Tomcat zostanie zakończona : "server started up in" w pasku adresowym przeglądarki wpisujemy adres strony WWW portalu i werfikujemy jej funkcjonowanie.

file does not exist, you can create it. Next, run Apache Tomcat software and monitor the progress of the start-up on the console where the “tail” command has been run. When the software initialization has finished (“server started up in”), enter the address of the website in the address bar of the browser and verify the functioning of the website.

The Most Frequent Startup Problems with the Reader Application

Errors during the

Najczęstsze problemy występujące w czasie uruchamiania Aplikacji Czytelnika

Błędy podczas startu

Apache Tomcat 7.0

Przy próbie uruchomienia Aplikacji Czytelnika może zdarzyć się aplikacja nie będzie działała poprawnie, a w logach Tomcata znajdą się komunikaty o błędach zbliżone do poniższych

Startup

Problems may occur during an attempt at running the reader application, and Tomcat logs will have error messages like the following ones:

No Format
...
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.net.MalformedURLException: no protocol: Files/Apache
...

Przyczyną takiej sytuacji jest błąd w JRE, który uniemożliwia wykorzystanie technologii RMI w aplikacjach uruchamianych w Tomcacie, jeżeli jest on zainstalowany w katalogu, który zawiera spacje (np. The reason for that is an error in JRE which prevents the use of the RMI technology in applications run in the Tomcat software if it is installed in a directory which contains spaces (for example, C:\Program Files\Apache Group\Jakarta Tomcat 7.0). Niestety obecnie jedyną znanym wyjściem z tej sytuacji jest ponowna instalacja Tomcata w katalogu, którego ścieżka nie zawiera znaków spacji. Szczegółowe informacje można znaleźć pod adresem: Unfortunately, at this moment, the only known solution to that problem is reinstalling the Tomcat program in a directory the path of which does not include space characters. For detailed information about it, see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4273532

Nie można się zalogować do panelu administracyjnego

Próba zalogowania lub wejscia na stronę admin kończy się niepowodzeniem, przeglądarka wyświetla komunikat o odrzuceniu połączenia. W takiej sytuacji należy sprawdzić czy konfiguracja HTTPS została przeprowadzona poprawnie.
Najczęstsze błędy popełniane podczas konfiguracji HTTPS to:

The User Cannot Log into the Administration Panel


An attempt at logging into or entering the “admin” page is unsuccessful, and the browser displays a message saying that the connection has been rejected. In such a situation, the user should check if HTTPS has been configured correctly.
The most frequent errors made during a HTTPS configuration are:

  1. the HTTPS Connector in the nie odkomentowany Connector HTTPS w pliku tomcat/conf/server.xml ,
  2. w katalogu domowym użytkownika, który uruchamiał Apache Tomcat nie ma pliku .keystore,
    1. należy pamiętać, że polecenie wygenerowania certyfikatu dla Apache Tomcat musi być wydane przez tego samego użytkownika, który będzie uruchamiał AT.
  3. file has not been uncommented;
  4. there is no .keystore file in the home directory of the user who has run the Apache Tomcat software;
    1. it should be remembered that a command to generate a certificate for the Apache Tomcat software must be run by the same user who will run AT;
  5. the password entered during the creation of a certificate for AT is not “changeit”;
    1. the “changeit” value is the standard password used by AT to access the .keystore file; if the user has decided to use a different password, the user should enter the password used as the value of the keystorePass attribute in the
    hasło podawane przy tworzeniu certyfikatu dla AT jest inne niż "changeit"
    1. Wartość "changeit" jest standardowym hasłem wykorzystywanym przez AT do dostępu do pliku .keystore, jeżeli zdecydowaliśmy się użyć innego należy w pliku tomcat/conf/server.xml w znaczniku Connector (odpowiedzialnym za HTTPS) podać hasło którego użyliśmy jako wartość atrybutu keystorePassfile, in the tag “Connector” (responsible for HTTPS).