Sorry for the delay. Was off line for a few days. Fat fingers and in a rush
to get out the door. You are correct it is chown. You need to apply it to
the tomcat home directory. I do not recommend the chmod 777. Opens things up
to much. Okay for testing.

Doug


----- Original Message ----- 
From: "Fernando Fernandez" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, June 21, 2004 10:52 PM
Subject: RE: Setup problem with Tomcat 5.0.25 running as a daemon under jsvc


> Hi Doug,
>
> Thanks for your suggestion. For some reason, my Linux (7.2) doesn't like
> the "chusr" command. Is that the same function provided by the "chown -R
> tomcat.tomcat /opt/jakarta-tomcat-5.0.25" command? If so, I already had
> that applied. Here is what you see in the directory structure:
>
> drwxrwxrwx    3 tomcat   tomcat       1024 Jun 17 23:27 ./
> drwxrwxrwx   11 tomcat   tomcat       1024 Jun 17 23:27 ../
> drwxrwxrwx    2 tomcat   tomcat       1024 Jun 18 00:19 _/
> [EMAIL PROTECTED]
> [/opt/jakarta-tomcat-5.0.25/work/Catalina/subdomain.domain.com]#
>
> There is nothing under the "_" directory except for a "tldCache.ser"
> file. If I manually create the
> /opt/jakarta-tomcat-5.0.25/work/Catalina/subdomain.domain.com/_/org/apac
> he/jsp directory structure and change the ownership using "chown -R
> tomcat.tomcat
> /opt/jakarta-tomcat-5.0.25/work/Catalina/subdomain.domain.com/_/org"
> then the page starts working. So, I'm pretty sure Tomcat cannot define
> those directories and therefore the jsp compile fails.
>
> Any help will be very much appreciated.
>
> Thanks,
>
> Fernando.
>
>
> -----Original Message-----
> From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
>
> Sent: Sunday, June 20, 2004 3:54 PM
> To: Tomcat Users List
> Subject: Re: Setup problem with Tomcat 5.0.25 running as a daemon under
> jsvc
>
> Do a
> chgrp -R youruser tomcatBaseDir
>
> and a
>
> chusr -R youruser tomcatBaseDir
>
> To have the tomcat directory structure that is owned and belongs to the
> user
> specified in jsvc.
>
> Doug
> www.parsonstechnical.com
>
>
> ----- Original Message ----- 
> From: "Fernando Fernandez" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Sunday, June 20, 2004 1:28 PM
> Subject: Setup problem with Tomcat 5.0.25 running as a daemon under jsvc
>
>
> > Hi all,
> >
> > I found a problem that might be more of a jsvc problem than a tomcat
> > issue. But perhaps someone has had the same issue and knows the
> > solution. When a user creates a new subdomain (e.g.
> > http://subdomain.mydomain.com) and publishes a new Java Server Page,
> > they get the following error:
> >
> > java.io.FileNotFoundException:
> >
> /opt/jakarta-tomcat-5.0.25/work/Catalina/subdomain.mydomain.com/_/org/ap
> > ache/jsp/test_jsp.java
> > java.io.FileOutputStream.open(Native Method)
> > java.io.FileOutputStream.<init>(FileOutputStream.java:179)
> > java.io.FileOutputStream.<init>(FileOutputStream.java:70)
> >
> > org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:188)
> > org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
> > org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
> > org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
> >
> >
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
> > va:511)
> >
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
> > va:274)
> >
> >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> >
> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> >
> > It looks like the problem has something to do with Tomcat trying to
> > create the new directory structure under Tomcat's 'work' directory,
> > because I don't see part of the directory path mentioned in the
> message.
> > And when I start Tomcat using /bin/startup.sh as root, the page runs
> > fine and the directory structure is created. After that, any new page
> > published works fine in the original setup.
> >
> > I tried 'chmod -R 777 work' to allow changes to that directory by
> > anyone, but it still doesn't work. I tried specifying root as the user
> > in the jsvc call, and it doesn't make a difference. Is this behaviour
> by
> > design or is it a problem, probably in jsvc? If a solution is not
> > possible using jsvc to run Tomcat as a daemon, is there another way to
> > run it (I'm a newbie to Tomcat, and I first tried the recommendation
> in
> > Apache's web site).
> >
> > Thanks for your help,
> >
> > Fernando.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to