WTP 1.0 + Eclipse 3.1.2 - problems running webapps with Tomcat 5.0 [message #158652] |
Tue, 31 January 2006 22:59 |
Eclipse User |
|
|
|
Originally posted by: tpp+eclipsezone.iki.fi
I have no problems creating WTP projects or publishing them onto my Tomcat 5.0 server.
However, when I try and start the Tomcat 5.0 instance, this is what I get:
java.lang.IllegalArgumentException: Document base C:\develop\workspace\.metadata\.plugins\org.eclipse.wst.serv er.core\tmp0\.\wtp-test does not exist or is not a readable directory
The wtp-test web application has properly been published into:
C:\develop\workspace\.metadata\.plugins\org.eclipse.wst.serv er.core\tmp0\webapps\wtp-test
Why is Eclipse omitting the "webapps" directory from the document base? I couldn't find a similar bug described in this forum, on Eclipse Bugzilla or by googling it.
Any ideas for an (easy) workaround?
-TPP
|
|
|
|
Re: WTP 1.0 + Eclipse 3.1.2 - problems running webapps with Tomcat 5.0 [message #158711 is a reply to message #158702] |
Wed, 01 February 2006 18:39 |
Eclipse User |
|
|
|
Originally posted by: tpp+eclipsezone.iki.fi
My WTP 1.0 installation is fresh, but Eclipse 3.1.2 was installed over 3.1.1 using the 3.1.x update site. Maybe that's the problem, who knows.
The context is as follows:
<Context docBase="wtp-test" path="/wtp" reloadable="true" source="org.eclipse.jst.j2ee.server:wtp-test"/>
Thanks for the tip. I didn't figure to look into that. I changed docBase to "webapps/wtp-test" and it works like wonders. I wonder why it's not doing that thing right the first time though.
Thanks for your help!
-TPP
|
|
|
|
Re: WTP 1.0 + Eclipse 3.1.2 - problems running webapps with Tomcat 5.0 [message #158727 is a reply to message #158719] |
Wed, 01 February 2006 21:00 |
Eclipse User |
|
|
|
Originally posted by: tpp+eclipsezone.iki.fi
appBase is unset in server.xml.
catalina.base passed onto the server from an Eclipse launch configuration created for the Tomcat server is:
C:\develop\workspace\.metadata\.plugins\org.eclipse.wst.serv er.core\tmp0
I suspect this is where it's getting it wrong. I can't change this value. Everytime I do, it's automatically changed back whenever I start the server.
-TPP
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03531 seconds