java - can't access servlet, 404 not found -
edit 10/8/10 @ 8:20am est - since can't make work in prod, i'll try make fail in test.
edit 10/8/10 @ 4:30pm est - having great time!!! not. ok, hell continues. learned earlier today we're running apache httpd separate process. we're thinking maybe we're not forwarding request tomcat somehow. not running httpd in test environment.
edit 10/8/10 @ 8:20pm - found out server had httpd running on it. httpd forwarding jsp requests tomcat. apache eating servlet requests, trying serve static pages (?) , failing of course. hacked bajezus out of worker2.properties make httpd forward requests. ouch.
tomcat 5.5, redhat linux.
i created servlet of course runs fine in our test environment. moved production , fail 404 error. according catalina log servlet seems load properly.
i'm @ wits end - don't know how troubleshoot this. it's have misspelled servlet name somewhere.
here's web.xml
<?xml version="1.0" encoding="utf-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <display-name>pdf servlet</display-name> <servlet> <servlet-name>pdf</servlet-name> <servlet-class>com.thop.exp.pdfservlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>pdf</servlet-name> <url-pattern>/pdf</url-pattern> </servlet-mapping> <session-config> <session-timeout> 30 </session-timeout> </session-config> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app>
i browsing www.myurl.net/pdfservlet/pdf
. believe have rooted correctly. , name of war file pdfservlet.war.
any ideas on problem, or ideas on can idea?
here's log.
info: installing web application @ context path /pdfservlet url file:/mnt/san00/aaadata_root/root/pdfservlet oct 7, 2010 11:32:50 pm org.apache.catalina.core.standardhost start info: xml validation disabled oct 7, 2010 11:32:50 pm org.apache.catalina.startup.contextconfig applicationconfig info: missing application web.xml, using defaults standardengine[catalina].standardhost[aaa.net].standardcontext[] oct 7, 2010 11:32:50 pm org.apache.catalina.core.standardhost getdeployer info: create host deployer direct deployment ( non-jmx ) oct 7, 2010 11:32:50 pm org.apache.coyote.http11.http11protocol start info: starting coyote http/1.1 on http-8080 oct 7, 2010 11:32:50 pm org.apache.jk.common.channelsocket init info: jk2: ajp13 listening on /0.0.0.0:8009 oct 7, 2010 11:32:50 pm org.apache.jk.server.jkmain start info: jk running id=0 time=0/25 config=/usr/share/tomcat5/conf/jk2.properties oct 7, 2010 11:32:50 pm org.apache.catalina.startup.catalina start info: server startup in 4325 ms
i'd recommend trying package web app war file - name pdfservlet.war.
put tomcat /webapps directory.
the url in question http://www.myurl.net:8080/pdfservlet/pdf
.
i'm assuming you've got tomcat listening on port 8080; if not, add own port number.
is there no way specify pdf user wants? or same pdf?
Comments
Post a Comment