This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSP and the fly likes m getting follwoing exception : java.lang.IllegalArgumentException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "m getting follwoing exception : java.lang.IllegalArgumentException" Watch "m getting follwoing exception : java.lang.IllegalArgumentException" New topic
Author

m getting follwoing exception : java.lang.IllegalArgumentException

Vishal Mali
Greenhorn

Joined: Jul 10, 2009
Posts: 3
Hi friends,
I am using MyEclipse and tomcat 6.0.20. I have deleted my project folder namely Icat(deployed) from tomcat's webapps folder which was my old project, now i developed new project and when I deploy new project and start tomcat...

m getting follwoing exception : java.lang.IllegalArgumentException: Document base C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.20\webapps\Icat.myeclipse.bak does not exist or is not a readable directory

Actually my new project is working fine, but y its giving exception for my old project though i ve deleted it
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

I guess MyEclipse added some information into tomcat for your old application. In the future undeploy the application from MyEclipse before deleting its folder (this is how it works in Netbeans). You might find the entry of your older application in C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.20\conf\Catalina\localhost directory (an xml file) or in conf\server.xml (although chances of the latter are less because defining web app information in server.xml is not suggested as given here)...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Vishal Mali
Greenhorn

Joined: Jul 10, 2009
Posts: 3
thanks for your quick reply

I got solution, actually there are entries in

C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.20\work\Catalina\localhost

and

C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.20\conf\Catalina\localhost

if you will remove these entries, tomcat will work smoothly.

thanks once again
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: m getting follwoing exception : java.lang.IllegalArgumentException