tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keppel Yin <Keppel....@microfocus.com>
Subject RE: servlet not working on tomcat 4.1.18 - help please!!!
Date Tue, 11 Feb 2003 14:44:51 GMT
Could you check if all necessary files have been deployed correctly?

-----Original Message-----
From: derrick.robertson@bt.com [mailto:derrick.robertson@bt.com]
Sent: Tuesday, February 11, 2003 9:39 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!


It doesnt seem to make a difference.
Still not working?

2003-02-11 14:20:24 StandardContext[/intranettv]: Resources start failed:
2003-02-11 14:20:24 StandardContext[/intranettv]: Context startup failed due
to previous errors
2003-02-11 14:20:24 StandardContext[/intranettv]: Exception during cleanup
after start failed
LifecycleException:  Container StandardContext[/intranettv] has not been
started
	at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)

This is the first couple of error lines reported by catalina log reports.
(Resources start failed)
Does anybody know how to get around this??? or even what makes it be thrown
would be nice!

-----Original Message-----
From: Keppel Yin [mailto:Keppel.Yin@microfocus.com]
Sent: Tuesday, February 11, 2003 2:19 PM
To: Tomcat Users List
Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!


Hi,

Should you include a '/' in the url-pattern?
Could you try to remove it ?

Thanks,

-----Original Message-----
From: derrick.robertson@bt.com [mailto:derrick.robertson@bt.com]
Sent: Tuesday, February 11, 2003 8:21 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!


I thought the "intranettv" is a path default (an alias) whereas the
IntranetTV is a classname and also the name that you are calling the
servlet.
Hence if i was to call a function in the servlet, would look something like:
http://localhost:8080/intranettv/IntranetTV?func=CreateEmbedVideoWindow&arg=
942

Where intranettv is the path and IntranetTV is the servlet. (that was the
way it worked in tomcat 3.2.1. Please tell me if that is wrong!)

-----Original Message-----
From: Larry Isaacs [mailto:Larry.Isaacs@sas.com]
Sent: Tuesday, February 11, 2003 1:17 PM
To: Tomcat Users List
Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!


Is it a typo that "localhost:8080/intranettv" doesn't match the
case in "<url-pattern>/IntranetTV</url-pattern>"?  It needs
to in order to work.

Cheers,
Larry

> -----Original Message-----
> From: derrick.robertson@bt.com [mailto:derrick.robertson@bt.com] 
> Sent: Tuesday, February 11, 2003 8:08 AM
> To: tomcat-user@jakarta.apache.org
> Subject: servlet not working on tomcat 4.1.18 - help please!!!
> 
> 
> Im trying to migrate from tomcat 3.2.1 to tomcat 4.1.18.
> 
> Basically, Ive got the tomcat 4.1.18 to start up and the 
> localhost:8080 runs
> as do the examples such as jsp pages and servlet examples.
> 
> Ive added context to the server.xml like:
> 	<!--derrick added this line -->
> 	<Context 	path="/intranettv" 
> 			docBase="D:\internettv\admin\public_site"
> 			debug="0"
>                  	reloadable="true" 
> 			crossContext="false">
> 	</Context>
> 
> In the folder public_site, i have a Web-inf folder with a 
> web.xml in it.
> My web.xml looks like this:
> <!DOCTYPE web-app 
>     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" 
>     "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> 
> <web-app>
> 
>     <display-name>IntranetTV</display-name>
>     <description>
> 	This is the IntranetTV application with a source code 
> organization
> 	based on the recommendations of the Application 
> Developer's Guide.
>     </description>
> 
>     <servlet>
>         <servlet-name>IntranetTV</servlet-name>
>         
> <servlet-class>com.bt.intranettv.view.IntranetTV</servlet-class>
> 	<init-param>
>             <param-name>root</param-name>
>             
> <param-value>D:\intranettv\admin\public_site\</param-value>
>         </init-param>
>         <load-on-startup>-100</load-on-startup>
>     </servlet>
> 
>     <servlet-mapping>
>         <servlet-name>IntranetTV</servlet-name>
>         <url-pattern>/IntranetTV</url-pattern>
>     </servlet-mapping>
> </web-app>
> 
> My problem is that when i then go to url localhost:8080/intranettv
> the browser displays a 404 error - intranet. 
> The requested resource (/intranet) is not available.
> 
> what have I done wrong, or what can i do to put it right??
> 
> (PS I have compiled the classes with java 1.2 but the tomcat 
> is running with
> java 1.4 - will this cause any problems - it should be 
> backwards compatible)
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message