tag:blogger.com,1999:blog-2995744.post114318660403049208..comments2023-11-09T06:23:49.913+00:00Comments on Deepanjan Nag's Magnum Opus: A question on TomcatDeepanjanhttp://www.blogger.com/profile/11313106810885221711noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-2995744.post-1143452832542720492006-03-27T10:47:00.000+01:002006-03-27T10:47:00.000+01:00Deepanjan I work on WebLogic so i may not be sure ...Deepanjan I work on WebLogic so i may not be sure of the exact reason but i guess:<BR/>Case 1: <BR/>Since the Tomcat Comes with default settings there is a specific area(WEB-INF) under which you should put your files. So when you created an file it tries to fetch from those ocurrences.<BR/>Now you rectified it by copying the entire directory structure, This is because now tomcat treats your directory as project in which you have all your files,and mapping is done.<BR/>case 2:<BR/>The way Sittu was talking about.. The web.xml.. Explicitly specifying the area of your files ton start from will also work..<BR/><BR/>-Welcome to J2EE Community...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2995744.post-1143200882451621402006-03-24T11:48:00.000+00:002006-03-24T11:48:00.000+00:00conf/web.xml is HUGE.Anyway, I hope to demystify t...conf/web.xml is HUGE.<BR/>Anyway, I hope to demystify the anomalies in the days to come.<BR/>Thnx!Deepanjanhttps://www.blogger.com/profile/11313106810885221711noreply@blogger.comtag:blogger.com,1999:blog-2995744.post-1143198003301366822006-03-24T11:00:00.000+00:002006-03-24T11:00:00.000+00:00Can u plz from conf/web.xml, tell what is written ...Can u plz from conf/web.xml, tell what is written in servlet tag and servlet-mapping tag. there may be more than one occurance of such tags.saurabhhttps://www.blogger.com/profile/18089396131832330206noreply@blogger.comtag:blogger.com,1999:blog-2995744.post-1143196794323852902006-03-24T10:39:00.000+00:002006-03-24T10:39:00.000+00:00This is what I type in the address bar of my brows...This is what I type in the address bar of my browser:<BR/><B>http://localhost:8080/deepanjan/myhtml.html</B><BR/>(It's not working)<BR/><BR/>However, when I write:<BR/><B>http://localhost:8080/servlets-examples/myhtml.html</B><BR/>it works fine.Deepanjanhttps://www.blogger.com/profile/11313106810885221711noreply@blogger.comtag:blogger.com,1999:blog-2995744.post-1143195698845284352006-03-24T10:21:00.000+00:002006-03-24T10:21:00.000+00:00suppose u have deepanjan folder under webapps, wha...suppose u have deepanjan folder under webapps, what url r u typing to access, say test.jsp which is directly inside deepanjan?saurabhhttps://www.blogger.com/profile/18089396131832330206noreply@blogger.comtag:blogger.com,1999:blog-2995744.post-1143188325496077352006-03-24T08:18:00.000+00:002006-03-24T08:18:00.000+00:00The Deployment Descriptor exists inC:\Program File...The Deployment Descriptor exists in<BR/><B>C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\deepanjan\WEB-INF folder. It lies within the deepanjan\WEB-INF</B> folder...so we're back 2 square 1!<BR/><BR/>Anyway, the problem is solved if I replicate my directory structure under <B>deepanjan</B> under a pre-existing directory like <B>servlets-examples</B>. Obviously the problem lies with deepanjan's visibility to Tomcat.Deepanjanhttps://www.blogger.com/profile/11313106810885221711noreply@blogger.comtag:blogger.com,1999:blog-2995744.post-1143187540265706772006-03-24T08:05:00.000+00:002006-03-24T08:05:00.000+00:00Try to do something in the deployment descriptor f...Try to do something in the deployment descriptor file i.e the xml file or something like that.Anonymousnoreply@blogger.com