Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Aphorismen
Applications
Business Economics & Admin.
My Computers
Cooking
Devices
Folders
Food
Hardware
Infos
Software Development
Sports
Operation Instructions
Todos
Test
Help
Glossary
Community portal
adaptions
Sidebar anpassen
Wiki RB4
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Tomcat
Page
Discussion
English
Read
Edit
View history
Toolbox
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Introduction== The Tomcat server is a Java-based Web Application container that was created to run Servlet and JavaServer Page web applications. Thus it is a Servlet/JSP container and not an EJB container. ===Installation=== Installationsort steht in [[Computer]]. ===Start Parameter=== Sie werden übergeben mit '''-D'''<ParamenterName>'''='''<Value>. {| border=1 cellpadding=2 cellspacing=0 |catalina.base |This is the directory that generally contains the /conf, /logs, /temp, /work, and /webapps directories. |} ==Konfiguration== {| border=1 cellpadding=2 cellspacing=0 |- |server.xml |\tomcat\conf\ |hier werden webapps eingetragen (obwohl in server.xml steht, daß dies nur notwendig ist, wenn vom default abweichende Einstellungen konfiguriert werden sollen).\\\\Beispiel: uwe heuer\\\\Wenn man server.xml editiert und ein Fehler produziert kann man tomcat mit dem Batch '''tomcat run''' aufrufen, und sieht dann die Exceptions. |- |tomcat-users.xml |\tomcat\conf\ |User und Passworte für Admin-Bereich |- |Web.xml |<Context>\Web-Inf\ |Konfigurationen für eine Web-Application |} ===Starten als Applikation=== über ''Start-Menü Start->Programme->Apache Tomcat 4.1->Start Tomcat'' ===Stoppen der Applikation=== über ''Start-Menü Start->Programme->Apache Tomcat 4.1->Stop Tomcat'' ===Als NT-Service=== Über die Systemsteuerung kann der Dienst angehalten werden, z.B. um die Log-Files zu löschen. ===Tomcat testen=== '''http://localhost:'''<PortNr> führt auf local Home. ===Einbinden externer Packages bzw. Libs=== Alle jar-Files unter <TOMCAT_HOME>/common/lib/ werden automatisch eingebunden. Dort liegt aus diesem Grund auch das MySQL-JDBC Package. ===Port umstellen=== in <TOMCAT_HOME>\conf\Server.xml '''<Connector''' ... '''port='''<PortNr>'''>''' einstellen, aktuell ist 8888 ===Debugging=== ====Tomcat6==== =====Konfiguration===== In Konsole (C:\Uwes\xampp\tomcat\bin\tomcat6w //ES//Tomcat6) im Java-Tab das folgende ergänzen: -DJPDA_ADDRESS=3999 -DJPDA_TRANSPORT=dt_socket =====Aufruf===== #Tomcat-Service beenden #C:\Uwes\xampp\tomcat\bin\catalina.bat jpda start aufrufen ==Aus JSP generierten java files behalten== In WEB.XML wurde ein Eintrag aus FAQ übernommen. Bei Änderungen an der JSP-Datei wird die JSP-Datei neu kompiliert. Die Quell- und Class-Files werden unter <code> <TOMCAT_HOME>\work\Catalina\localhost\<WebApp>\org\apache\jsp</code> mit dem Namen <code> <JSPFileName>_jsp.java</code> bzw. <code>.class</code> aufgehoben. ==HTML-Dateiablage== in <TOMCAT_HOME>\webapps\root\ ==JSP-Dateiablage== http://localhost:<port>/<Verzeichnisse unter webapps>/<JSPBasename>.jsp ==Servlet- und Classes-Dateiablage== <TOMCAT_HOME>\webapps\root\Web-Inf\classes Die Files werden bei Aktualisierung neu geladen, wenn im zugehörigen Context-Eintrag in der Konfigurationsdatei server.xml reloadable auf true gesetzt ist. Alle Servlets hier können über http://localhost:<port>/servlet/<ServletBaseName> aufgerufen werden. Wenn Servlets in packages organisiert sind, dann können die Klassen in <TOMCAT_HOME>\webapps\root\Web-Inf\classes\<PackageName> liegen und der Aufruf erfolgt über http://localhost:<port>/servlet/<PackageName>.<ServletBaseName> Es geht auch unter <TOMCAT_HOME>\webapps\<YourWebApp>\Web-Inf\classes Diese Servlets werden über http://localhost:<port>/<YourWebApp>/servlet/<ServletBaseName> aufgerufen werden. ==WAR-File== *alle Dateien eines <Context> als <Context>.war zusammen jaren *in webapps directory kopieren *der WAR-File wird bei Bedarf (offensichtlich beim Hochfahren von Tomcat) extrahiert und die Verzeichnisstruktur hergestellt *Aufruf http://localhost:<port>/<WebAppName> ==Logging== ===Tomcat 5.5=== ==Zusammenspiel mit Apache HTTP-Server== s. [[Apache#Apache_Webserver_und_Tomcat|Apache]] ==Literatur== *Internet.doc *MyConfiguration.doc 1
Summary:
Please note that all contributions to Wiki RB4 may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Uwe Heuer Wiki New:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width