Date: Tue, 13 Jul 2004 13:26:48 +0700 From: "Mohammad Reza" <reza@mra.co.id> To: <freebsd-java@freebsd.org> Subject: servlet via apache Message-ID: <D9E6E4026B15A14BAF6DDBF1E74F49247F2914@exchange.mra-holding.net>
next in thread | raw e-mail | index | archive | help
Dear Lists; =20 Recently I configure my FreeBSD-4.10 Release box to host jsp page via Tomcat-5.0, Apache-2.0 and mod_jk2.and java-mysql-conector Everything is install form ports except Tomcat-5.0. Now I can serve *.jsp page via Apache-2.0, but I have some trouble when try to serve servlet page.=20 Everytime I execute servlets-examples, ie: Hello World (taken from servlet Tomcat source), I'm ending with "the page cannot be found". But success with jsp-examples. Please help me to configure my apache-tomcat so it's can serve servlet. This is my server.xml. =20 ns2# cat server.xml <Server port=3D"8005" shutdown=3D"SHUTDOWN" debug=3D"0"> <Listener className=3D"org.apache.catalina.mbeans.ServerLifecycleListener" debug=3D"0"/> <Listener className=3D"org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"= debug=3D"0"/> =20 <!-- Global JNDI resources --> <GlobalNamingResources> =20 <!-- Test entry for demonstration purposes --> <Environment name=3D"simpleValue" type=3D"java.lang.Integer" value=3D"30"/> =20 <!-- Editable user database that can also be used by UserDatabaseRealm to authenticate users --> <Resource name=3D"UserDatabase" auth=3D"Container" type=3D"org.apache.catalina.UserDatabase" description=3D"User database that can be updated and saved"> </Resource> <ResourceParams name=3D"UserDatabase"> <parameter> <name>factory</name> =20 <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value> </parameter> <parameter> <name>pathname</name> <value>conf/tomcat-users.xml</value> </parameter> </ResourceParams> =20 </GlobalNamingResources> =20 =20 <!-- Define the Tomcat Stand-Alone Service --> <Service name=3D"Catalina"> =20 =20 <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --> <Connector port=3D"8080" maxThreads=3D"150" minSpareThreads=3D"25" maxSpareThreads=3D"75" enableLookups=3D"false" redirectPort=3D"8443" acceptCount=3D"100" debug=3D"0" connectionTimeout=3D"20000" disableUploadTimeout=3D"true" /> <!-- Note : To disable connection timeouts, set connectionTimeout value to 0 --> =20 <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --> <Connector port=3D"8009" enableLookups=3D"false" redirectPort=3D"8443" debug=3D"0" protocol=3D"AJP/1.3" /> =20 <!-- Define the top level container in our container hierarchy --> <Engine name=3D"Catalina" defaultHost=3D"localhost" debug=3D"0"> =20 =20 <!-- Global logger unless overridden at lower levels --> <Logger className=3D"org.apache.catalina.logger.FileLogger" prefix=3D"catalina_log." suffix=3D".txt" timestamp=3D"true"/> =20 <!-- Because this Realm is here, an instance will be shared globally --> =20 <Realm className=3D"org.apache.catalina.realm.UserDatabaseRealm" debug=3D"0" resourceName=3D"UserDatabase"/> =20 =20 <!-- default virtual host --> <Host name=3D"localhost" debug=3D"0" appBase=3D"webapps" unpackWARs=3D"true" autoDeploy=3D"true" xmlValidation=3D"false" xmlNamespaceAware=3D"false"> <Context path=3D"" docBase=3D"/usr/local/jakarta-tomcat-5.0.25/webapps/ROOT/" debug=3D"0" reloadable=3D"true" crossContext=3D"true"/> <Logger className=3D"org.apache.catalina.logger.FileLogger" directory=3D"logs" prefix=3D"localhost_log." = suffix=3D".txt" timestamp=3D"true"/> </Host> =20 <!-- dev.mra.co.id --> <Host name=3D"dev.mra.co.id" debug=3D"0" appBase=3D"/usr/local/www/data/" unpackWARs=3D"true"> <Context path=3D"" docBase=3D"" debug=3D"1"/> <Logger className=3D"org.apache.catalina.logger.FileLogger" directory=3D"logs" prefix=3D"dev_log." suffix=3D".txt" timestamp=3D"true"/> </Host> =20 <!-- java.mra.co.id --> <Host name=3D"java.mra.co.id" debug=3D"0" appBase=3D"/usr/local/www/data/java.mra.co.id" unpackWARs=3D"true"> <Context path=3D"" = docBase=3D"/usr/local/www/data/java.mra.co.id" debug=3D"1"/> <Logger className=3D"org.apache.catalina.logger.FileLogger" directory=3D"logs" prefix=3D"java_log." = suffix=3D".txt" timestamp=3D"true"/> </Host> =20 </Engine> =20 </Service> =20 </Server> ns2# =20 =20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D9E6E4026B15A14BAF6DDBF1E74F49247F2914>