You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Quasar <qu...@speakeasy.net> on 2003/07/02 22:14:47 UTC
Problem starting Webapp with Ant
Trying to install a webapp on tomcat 4.1.24 with Ant using the install task, here is what my build file looks like:
<target name="install" depends="build">
<install url="${manager.url}" username="${manager.username}" password="${manager.password}" path="${app.context}" war="file:///${basedir}/${build.dir}"/>
</target>
This action builds great on my local Win2k box, but when I try to run the same exact file setup on a linux box this what I get from Tomcat:
2003-07-02 08:03:36 HTMLManager: start: Starting web application at '/salesweb'
2003-07-02 08:03:36 StandardHost[localhost]: standardHost.start /salesweb
2003-07-02 08:03:36 StandardContext[/salesweb]: Resources start failed:
java.lang.IllegalArgumentException: Document base /var/tomcat4/webapps/home/david/salesweb/build does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(Unknown Source)
Any idea what in the world it would be trying to reference the document base at /var/tomcat4/webapps/XXX for? It should be referencing the document base at /home/david/salesweb/build like the manager is sending it...
Any idea what could be causing this?
thanks
RE: calling a servlet...from a .jsp (HTTP Status 404 )
Posted by Mike Curwen <gb...@gb-im.com>.
Looks like you forgot to put /servlet
> HTTP Status 404 - /careerCenter/StudentRegistrationServlet
> -----Original Message-----
> From: Naveen My [mailto:perlnaveen@yahoo.com]
> Sent: Wednesday, July 02, 2003 3:26 PM
> To: Tomcat Users List
> Subject: calling a servlet...from a .jsp (HTTP Status 404 )
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
calling a servlet...from a .jsp (HTTP Status 404 )
Posted by Naveen My <pe...@yahoo.com>.
I am unable to call servlet from my jsp....I get the folowing mesg
HTTP Status 404 - /careerCenter/StudentRegistrationServlet
But am able to call the servlet if I type
http://localhost:80/careerCenter/servlet/StudentRegistrationServlet
My directory structure....
D:\Tomcat 4.1\webapps\careerCenter\*jsp files....
D:\Tomcat 4.1\webapps\careerCenter\WEB-INF\*.class files
http://localhost:80/careerCenter/servlet/StudentRegistrationServlet
This is my entry in web.xml
<servlet>
<servlet-name>StudentRegistrationServlet</servlet-name>
<servlet-class>StudentRegistrationServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
Any advice...
thanks for the help....
naveen
---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!