On Fri, Jan 30, 2009 at 4:04 PM, Christine Tran
<christine.tran at gmail.com> wrote:
> On Thu, Jan 29, 2009 at 2:41 PM, Dileep Kumar <Dileep.Kumar at sun.com> wrote:
>> Please follow these steps appropriately and should get you started:
>>
>> Create domian directories with the jack login
>> ? mkdir /export/home/jack/apache-tomcat-5.5
>> ? create a softlink to /var/apache/tomcat/conf in /usr/apache/tomcat/
>> ? ln -s /var/apache/tomcat/conf /usr/apache/tomcat/conf
>> ? copy server-minimal.xml file to server.xml
>> ? pfexec cp /usr/apache/tomcat/conf/server-minimal.xml
>> /usr/apache/tomcat/conf/server.xml
>> ? Right Click on the Severs in the netbeans and Click on the "Add Server"
>> ? Select "Tomcat 5.5" and Click Next.
>> ? set "/usr/apache/tomcat" as Catalina Home.
>> ? Check on "Use Private Configuration Folder (Catalina Base)" and set
>> Catalina base to
>> "/export/home/jack/apache-tomcat-5.5".
>> ? Enter Credential of an exisitng user in the "manager" role
>> ? Username: tomcat
>> ? Password: tomcat
>> ? check on the "Create user if it does not exist".
>> ? Click on the finish. This will create domain for the Tomcat.
>> ? Close the netbeans.
>

One more question .  Can I integrate NetBeans with a tomcat server on
non-global zone in the same box?  That is, instead fo ln -s
/var/apache/tomcat/conf /usr/apache/tomcat/conf in the nonglobal zone,
I zlogin into "myzone" and run it there.  Effectively,
/zones/web/root/var/apache/tomcat/conf is symlinked to
/zones/web/root/usr/apache/tomcat/conf.

There might be some problem with absolute paths, as from within the
zone, there's no such thing as /zones/blah/...

I've tried several combination, including using relative path to
/usr/apache/tomcat/conf, but so far it does not work.

I think this is worth pesuing, since I may not want to deploy my
tomcat server in the global zone; I'd rather run it in a non-global
zone, and have its CATALINA_HOME accessible to my IDE, which runs in
the global zone.

Does this make sense?

Thanks.

CT

Reply via email to