tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Propes, Barry L" <barry.l.pro...@citigroup.com>
Subject RE: tomcat not finding servlet....
Date Fri, 01 Sep 2006 14:35:05 GMT
Have you checked to see how your servlets are mapped in the web.xml file?
i.e.
  <servlet>  
        <servlet-name>chngctrl.ChangeControlApprovalServlet</servlet-name>
        <servlet-class>chngctrl.ChangeControlApprovalServlet</servlet-class>
  </servlet>

<servlet-mapping>
<servlet-name>chngctrl.ChangeControlApprovalServlet</servlet-name>
 <url-pattern>/chngctrl/ChangeControlApproval.jsp</url-pattern>
</servlet-mapping>


in other words within the web-app tags you first declare a servlet by name, then mapped. Do
your's match correctly?

-----Original Message-----
From: jmensinger@stmarkshs.net [mailto:jmensinger@stmarkshs.net]
Sent: Thursday, August 31, 2006 6:28 PM
To: Tomcat Users List
Subject: Re: tomcat not finding servlet....


OK i fixed the warning.  The second.xml file located in the >>> C:\Program
Files\Apache Software Foundation\Tomcat 5.5\conf\Catalina\localhost\second

needed to be changed to just say:
<Context path="/second" />


Restarted Tomcat (no error message) but I am still getting a 404 on my
servlets.

I also wanted to mention that my example servlets that came with tomcat
work fine in their example context.

THanks


Jim


>
>>WARNING: A docBase C:\Program Files\Apache Software Foundation\Tomcat
>>5.5\webapps\second inside the host appBase has been specified, and will
>> be
>>ignored
>
>
> try correcting the above error first, then continue your troubleshooting
>
> jmensinger@stmarkshs.net wrote:
>> The only entries that look abnormal in the logs are as follows:
>>
>> >From catalina.xxxxxxx
>>
>> NFO: The Apache Tomcat Native library which allows optimal performance
>> in
>> production environments was not found on the java.library.path:
>> C:\Program
>> Files\Apache Software Foundation\Tomcat
>> 5.5\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
>>
>>
>> WARNING: A docBase C:\Program Files\Apache Software Foundation\Tomcat
>> 5.5\webapps\second inside the host appBase has been specified, and will
>> be
>> ignored
>>
>>
>> Aug 31, 2006 5:27:41 PM org.apache.jk.server.JkMain start
>> INFO: Jk running ID=0 time=0/16  config=null
>>
>>
>>
>> Other than that I do not see any SAX related errors...
>>
>>
>>
>>
>>> are you getting any kind of SAX error when you start up tomcat?
>>>
>>> -----Original Message-----
>>> From: jmensinger@stmarkshs.net [mailto:jmensinger@stmarkshs.net]
>>> Sent: Thursday, August 31, 2006 4:19 PM
>>> To: users@tomcat.apache.org
>>> Subject: tomcat not finding servlet....
>>>
>>>
>>> Hello everyone....
>>>
>>> I am running windows xp, tomcat 5.5.17, java jdk1.5.0_08.
>>>
>>> I have created an webapp called "second"
>>>
>>> have created the file:
>>> C:\Program Files\Apache Software Foundation\Tomcat
>>> 5.5\conf\Catalina\localhost\second
>>>
>>> which contains:
>>> <Context path="/second" reloadable="true" docBase="C:\Program
>>> Files\Apache
>>> Software Foundation\Tomcat 5.5\webapps\second" workDir="C:\Program
>>> Files\Apache Software Foundation\Tomcat 5.5\webapps\second\work" />
>>>
>>>
>>> In /webapps/second I have a index.jsp file which works fine.
>>>
>>> In /webapps/second/WEB-INF/classes I have a "three.class" file which I
>>> compiled in Eclipse 3.2 without error.
>>>
>>> In /webapps/second/WEB-INF/ I have a "web.xml" file which contains...
>>>
>>> <servlet>
>>>     <servlet-name>three</servlet-name>
>>>     <servlet-class>three</servlet-class>
>>>   </servlet>
>>>
>>>   <servlet-mapping>
>>>     <servlet-name>three</servlet-name>
>>>     <url-pattern>/three</url-pattern>
>>>   </servlet-mapping>
>>>
>>> As I said when I go to localhost/second the .jsp file shows up
>>> perfectly.
>>> When I try localhost/second/three I am getting a 404 error.  I have
>>> tried
>>> everything and am starting to get frustrated.
>>>
>>>
>>> Any ideas?? Thanks in advance...
>>>
>>>
>>> Jim
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message