Hi Charles,

It sounds like you have a problem with access rights as Michael pointed
out.
http://stackoverflow.com/questions/1421288/what-causes-the-fail-deploy-u
pload-failed-exception-null-error-message-in

You can 'cd' into the directory where you installed Tomcat.
When you do 'ls -al', it will tell you who the owner is for the files.
On my linux installation, I run Tomcat under a user named openmrs, and
my permissions are as follows...
drwxrwxr-x  9 openmrs users 4096 Jul 23  2009 apache-tomcat-6.0.20

You can use the 'chown' command like this to set the owner of the files
recursively...
chown the_username_that_tomcat_runs_as -R
/yourpath/apache-tomcat-6.whatever

Hope this helps.

Thanks,
James

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Charles C. Chou
Sent: Wednesday, February 08, 2012 11:01 AM
To: [email protected]
Subject: [OPENMRS-IMPLEMENTERS] Linux server installation

Hi,
     I am trying to install OpenMRS on a Linux server. I successfully
installed tomcat6 and mysql. I was able to bring up the tomcat
application manager but when I tried to deploy openmrs.war I get the
following error in my tomcat log (manager.2012-02-07.log):

Feb 7, 2012 10:17:09 AM org.apache.catalina.core.ApplicationContext log
SEVERE: HTMLManager: FAIL - Deploy Upload Failed, Exception: null
java.lang.NullPointerException
         at
org.apache.tomcat.util.http.fileupload.DefaultFileItem.write(DefaultFile
Item.java:398)
         at
org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet
.java:250)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)
         at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
         at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:233)
         at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
         at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:563)
         at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:127)
         at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:102)
         at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
         at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
98)
         at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:85
9)
         at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:588)
         at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
         at java.lang.Thread.run(Thread.java:679)

At first I thought it was a permissions problem due to SELinux but the
error persists even after I disabled SELinux. Can anyone tell me what
the problem was? Thanks!

Regards,
Charles Chou

_________________________________________

To unsubscribe from OpenMRS Implementers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-implement-l" in the  body 
(not the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l]

Reply via email to