tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47467] New: Deployment of the war file by URL when contextpath is not specified in Manager Application.
Date Thu, 02 Jul 2009 12:50:16 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47467

           Summary: Deployment of the war file by URL when contextpath is
                    not specified in Manager Application.
           Product: Tomcat 6
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Manager application
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: meetaarora3007@gmail.com


I have seen a problem in Tomact manager application. According to the Tomcat
documentation6.0 

Deploy a Directory or WAR by URL
Deploy a web application directory or ".war" file located on the Tomcat server.
If no path is specified, the directory name or the war file name without the
".war" extension is used as the path. The war parameter specifies a URL
(including the file: scheme) for either a directory or a web application
archive (WAR) file. The supported syntax for a URL referring to a WAR file is
described on the Javadocs page for the java.net.JarURLConnection class. Use
only URLs that refer to the entire WAR file.

In this example the web application located in the directory /path/to/foo on
the Tomcat server is deployed as the web application context named /footoo. 


 http://localhost:8080/manager/deploy?path=/footoo&war=file:/path/to/foo





In this example the ".war" file /path/to/bar.war on the Tomcat server is
deployed as the web application context named /bar. Notice that there is no
path parameter so the context path defaults to the name of the web application
archive file without the ".war" extension. 


 http://localhost:8080/manager/deploy?war=jar:file:/path/to/bar.war!/


In the last paragraph, it is written that it is not mandatory to specify path
in the manager application i.e it should be by default deployed. But it gives
me an error as " Invalid context path null specified".

Steps to reproduce the scanerio:
1. Open manager application
2. Do not specify anything in ContextPath field.
3. Enter the path to the war file in the third field.

Result: It gives me the error reported above. Also my application contains an
explicit path to it in context.xml.All the settings are default only. 
Here if I give an explicit path in ContextPath field in Manager application it
will be deployed successfully.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


Mime
View raw message