From: Jérôme Gaulin on 8 Apr 2010 12:10 Hello ! I cant get working tomcat5.5 on apache2 via mod_jk on debian lenny 64 up to date. When i try to reach a .jsp file i've got an 400 error. The dpkg -l ii libtomcat5.5-java 5.5.26-5 Java Servlet engine -- core libraries ii solr-tomcat5.5 1.2.0+ds1-3+lenny1 enterprise search server based on Lucene - Tomcat integration ii tomcat5.5 5.5.26-5 Servlet and JSP engine ii tomcat5.5-admin 5.5.26-5 Java Servlet engine -- admin & manager web interfaces ii tomcat5.5-webapps 5.5.26-5 Java Servlet engine -- documentation and example web applicati ii apache2-mpm-prefork 2.2.9-10+lenny6 Apache HTTP Server - traditional non-threaded model ii apache2-utils 2.2.9-10+lenny6 utility programs for webservers ii apache2.2-common 2.2.9-10+lenny6 Apache HTTP Server common files ii libapache-mod-jk-doc 1:1.2.26-2+lenny1 Documentation of libapache2-mod-jk package ii libapache2-mod-jk 1:1.2.26-2+lenny1 Apache 2 connector for the Tomcat Java servlet engine ii libapache2-mod-php5 5.2.13-0.dotdeb.0 server-side, HTML-embedded scripting language (Apache 2 module The config files: root@ [/etc/apache2] 0 # cat workers.properties workers.tomcat_home=/usr/share/tomcat5.5 workers.java_home=/usr/lib/jvm/java-6-sun ps=/ worker.list=tomcat1 worker.tomcat1.port=8009 # le port d'ecoute worker.tomcat1.host=localhost # L'adresse IP ou nom d'hôte de la machine hebergeant tomcat. worker.tomcat1.type=ajp13 # le type de worker. worker.default.lbfactor=1 root@ [/etc/apache2] 0 # cat conf.d/jk.conf <ifmodule mod_jk.c> JkWorkersFile /etc/apache2/workers.properties JkLogFile /var/log/apache2/mod_jk.log JkLogLevel info JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" JkRequestLogFormat "%w %V %T" JkOptions +ForwardKeySize +ForwardURICompat JkshmFile /var/log/apache2/jk.shm JkshmSize 1 </ifmodule> root@ [/etc/apache2] 0 # cat mods-enabled/jk.load LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so root@ [/etc/apache2] 0 # cat /etc/tomcat5.5/server.xml <Server port="8005" shutdown="SHUTDOWN"> <Listener className="org.apache.catalina.core.AprLifecycleListener" /> <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/> <GlobalNamingResources> <Environment name="simpleValue" type="java.lang.Integer" value="30"/> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> <Service name="Catalina"> <Connector port="8180" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" /> <Connector port="8009" enableLookups="false" redirectPort="8180" protocol="AJP/1.3" jvmRoute="tomcat1"/> <Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat1"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> <Host name="clientsite.mydomain.fr" appBase="/var/www/clientsite.mydomain.fr" unpackWARs="true" autoDeploy="true"> <context path="" docBase="htdocs" debug="1" reloadable="true"/> <valve className="org.apache.catalina.valves.AccessLogValve" directory="/var/www/clientsite.mydomain.fr/logs" prefix="tomcat_access_" suffix=".log" pattern="common" resolveHosts="false"/> </Host> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> </Host> </Engine> </Service> </Server> root@ [/etc/apache2] 0 # cat sites-enabled/clientsite.mydomain.fr <VirtualHost *:80> JkMount /*.jsp tomcat1 ServerName clientsite.mydomain.fr ServerAdmin me(a)mydomain.com DocumentRoot /var/www/clientsite.mydomain.fr/htdocs ErrorLog /var/log/apache2/clientsite.mydomain.fr_error.log CustomLog /var/log/apache2/clientsite.mydomain.fr_access.log common LogLevel debug <directory /var/www/clientsite.mydomain.fr/htdocs> Options -Indexes </directory> </Virtualhost> The DATA & test side : root@ [/etc/apache2] 1 # sudo cat /var/www/clientsite.mydomain.fr/htdocs/index.jsp <html> <head> <title>Hello World</title> </head> <body> <h1>Hello World</h1> Today is: <%= new java.util.Date().toString() %> </body> </html> The LOG side: When i try to reach the index.jsp file, i ve got a white page and in the log files: ==> /var/log/apache2/mod_jk.log <== [Thu Apr 08 17:33:40 2010]tomcat1 clientsite.mydomain.fr 0.000687 ==> /var/log/apache2/clientsite.mydomain.fr_access.log <== 93.187.41.193 - - [08/Apr/2010:17:33:40 +0200] "GET /index.jsp HTTP/1.1" 400 - I am on it since hours. Help! -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/BECC0E2B-46E0-4EF4-B2DD-3E21AF62A639(a)gmail.com
|
Pages: 1 Prev: (solved) Re: Google Maps keeps "loading... still loading?" Next: Console font turned cyan |