In your $TOMCAT_HOME/conf/server.xml you can simply create a context:
<Context path=""
   docBase="/path/to/your/jsp"
   debug="0"
   reloadable="true" >
</Context>

That should do it for you.

I'm not sure if there is a -D parameter you can use to override the change
in server.xml

Christian Billen
HyperQuest Solutions, Inc.
Principal Architect
[EMAIL PROTECTED]


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 23, 2001 2:35 AM
> To: [EMAIL PROTECTED]
> Subject: setting docBase in JBuilder to run/debug
>
>
>
>
>
> Hello,
>
> it's only slightly related to Struts, but I hope to find a
> JBuilder user who can
> help me
> with the  following problem:
>
> I use JBuilder 4 Enterprise Trial with Tomcat 3.2 and Struts. If
> I want to run
> the application,
> the Tomcat docBase is always set to D:\ instead of D:\TOMCAT.
>
> The same problem occured with the tomcat.home / install setting
> but could be
> solved
> by setting the correct path to the JVM via the -D.. parameter.
>
> The project properties for docBase etc. are set correctly.
>
> Here's the related output from JBuilder:
>
> ------------------------------------------------------------------
> ------------------------------------------------------
>
> Setting home to D:\
> Starting tomcat. Check logs/tomcat.log for error messages
>
> Context log: path="" Adding context path=""  docBase="D:\"
> Context log: path="/vip-gallery" Adding context path="/vip-gallery"
> docBase="D:\"
> Starting tomcat install="d:\tomcat\" home="D:\"
> classPath="C:\Programme\JBuilder4\tomcat\lib\webserver.jar;C:\Prog
> ramme\JBuilder4\tomcat\lib\jasper.jar;C:\Programme\JBuilder4\tomca
> t\lib\xml.jar;C:\Programme\JBuilder4\lib\servlet.jar;D:\tomcat\vip
> shop\classes;C:\Programme\Oracle\JDeveloper
>
> 3.2\myclasses\struts.jar;C:\Programme\JBuilder4\lib\webserverglue.
> jar;D:\tomcat\webapps\vip-gallery\WEB-INF\classes;C:\Programme\Ora
> cle\JDeveloper
>
> 3.2\myclasses\struts.jar;C:\Programme\JBuilder4\lib\servlet.jar;D:
> \tomcat\vipshop\classes;C:\Programme\JBuilder4\lib\jbuilder.jar;C:
> \Programme\JBuilder4\lib\help.jar;C:\Programme\JBuilder4\lib\gnure
gexp.jar;C:\Programme\JBuilder4\jdk1.3\demo\jfc\Java2D\Java2Demo.jar;C:>
\Programme\JBuilder4\jdk1.3\jre\lib\i18n.jar;C:\Programme\JBuilder
> 4\jdk1.3\jre\lib\jaws.jar;C:\Programme\JBuilder4\jdk1.3\jre\lib\rt
> .jar;C:\Programme\JBuilder4\jdk1.3\jre\lib\sunrsasign.jar;C:\Progr
> amme\JBuilder4\jdk1.3\lib\dt.jar;C:\Programme\JBuilder4\jdk1.3\lib
> \tools.jar;C:\Programme\Oracle\JDeveloper
>
> 3.2\java1.2;
> C:\Programme\Oracle\JDeveloper
> 3.2\java1.2\jre;C:\Programme\Oracle\JDeveloper
> 3.2\java1.2\lib"
> JSP Servlet Started
> ...
>
> ------------------------------------------------------------------
> ------------------------------------------------------
>
>
> Do you have a suggestion how to set the docBase correctly?
>
> Regards
>
> Michael
>
>
>
>
>
>

Reply via email to