RE: Unable to unpack war under webapps

2014-05-06 Thread Jeffrey Janner
> -Original Message-
> From: Rahul R [mailto:rahul.ra...@gmail.com]
> Sent: Tuesday, May 06, 2014 8:25 AM
> To: users@tomcat.apache.org
> Subject: Unable to unpack war under webapps
> 
> Hi
> 
> I have put ROOT.war under webapps folder of tomcat. When I start the
> instance I am getting the below error on catalina.out.
> 
> INFO: Deploying web application archive /opt/tomcat-
> proxy/webapps/ROOT.war
> May 06, 2014 6:28:22 PM org.apache.catalina.startup.ContextConfig
> beforeStart
> SEVERE: Exception fixing docBase for context [/ROOT]
> java.io.IOException: Unable to create the directory [/opt/tomcat-
> proxy/webapps/ROOT]
> 
> I am not sure why this is happening. Checked the permissions on webapps
> folder as well as the war file. Its 755.
> 
> P.S: I am able to use jar to unpack it manually under webapps.

Who is listed as owner/group on the webapps directory?
What user is Tomcat running under?


RE: Unable to unpack war under webapps

2014-05-06 Thread Caldarale, Charles R
> From: Rahul R [mailto:rahul.ra...@gmail.com] 
> Subject: Re: Unable to unpack war under webapps

> tomcat was running as a different user and I tried to start using root.

Do not *ever* run Tomcat as root.  Read this:

http://wiki.apache.org/tomcat/HowTo#How_to_run_Tomcat_without_root_privileges.3F

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Unable to unpack war under webapps

2014-05-06 Thread Rahul R
Thanks Daniel.. That clue helped... tomcat was running as a different user
and I tried to start using root.


On Tue, May 6, 2014 at 7:38 PM, Daniel Mikusa  wrote:

> On May 6, 2014, at 9:25 AM, Rahul R  wrote:
>
> > Hi
> >
> > I have put ROOT.war under webapps folder of tomcat. When I start the
> > instance I am getting the below error on catalina.out.
> >
> > INFO: Deploying web application archive
> /opt/tomcat-proxy/webapps/ROOT.war
> > May 06, 2014 6:28:22 PM org.apache.catalina.startup.ContextConfig
> > beforeStart
> > SEVERE: Exception fixing docBase for context [/ROOT]
> > java.io.IOException: Unable to create the directory
> > [/opt/tomcat-proxy/webapps/ROOT]
> >
> > I am not sure why this is happening. Checked the permissions on webapps
> > folder as well as the war file. Its 755.
> >
> > P.S: I am able to use jar to unpack it manually under webapps.
>
> What about the owner of webapps?  Is that the same as the user you’re
> using to run Tomcat?  Can that user extract the files?
>
> Dan
>
> >
> > Any help would be much appreciated.
> >
> >
> > --
> > Thanks,
> > Regards,
> > Rahul R
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Thanks,
Regards,
Rahul R

  .~.
  /V\
 // \\
/(   )\
 ^`~'^

Mob: 09008030921


Re: Unable to unpack war under webapps

2014-05-06 Thread Daniel Mikusa
On May 6, 2014, at 9:25 AM, Rahul R  wrote:

> Hi
> 
> I have put ROOT.war under webapps folder of tomcat. When I start the
> instance I am getting the below error on catalina.out.
> 
> INFO: Deploying web application archive /opt/tomcat-proxy/webapps/ROOT.war
> May 06, 2014 6:28:22 PM org.apache.catalina.startup.ContextConfig
> beforeStart
> SEVERE: Exception fixing docBase for context [/ROOT]
> java.io.IOException: Unable to create the directory
> [/opt/tomcat-proxy/webapps/ROOT]
> 
> I am not sure why this is happening. Checked the permissions on webapps
> folder as well as the war file. Its 755.
> 
> P.S: I am able to use jar to unpack it manually under webapps.

What about the owner of webapps?  Is that the same as the user you’re using to 
run Tomcat?  Can that user extract the files?

Dan

> 
> Any help would be much appreciated.
> 
> 
> -- 
> Thanks,
> Regards,
> Rahul R


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org