Deployed Applications can't access file system
Deployed Applications can't access file system
- Subject: Deployed Applications can't access file system
- From: Louis Demers <email@hidden>
- Date: Fri, 16 Jan 2009 14:31:28 -0500
Hi,
my webobjects/wonder app needs to access/create files/directories in
a directory of the server where it runs. When I debug in eclipse the
application on my powerbook it works correctly but once installed on
the server I get the message below. I assume that the applications
runs as _appserver so, In Workgroup Manager, I added this user to the
group who has access to this directory. but still does not works.
Any advice ? Is there any special procedures in Java or WebObjects to
access files ?
Jan 16 14:08:32 Obzerv[2001] DEBUG com.obzerv.eo.Spec - making
directories /Obzerv/Spec & Parts/ASM/ASM-0117/Spec/Dot/
java.io.FileNotFoundException: /Obzerv/Spec & Parts/DotPreamble
(Permission denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileReader.<init>(FileReader.java:55)
at com.obzerv.Obzerv.getContents(Obzerv.java:82)
at com.obzerv.eo.Spec.createDotFiles(Spec.java:189)
at
com.obzerv.component.SpecHierarchy.appendToResponse(SpecHierarchy.java:
38)
at
com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1381)
at
er.extensions.appserver.ERXSession.appendToResponse(ERXSession.java:536)
at
com
.webobjects
.appserver.WOApplication.appendToResponse(WOApplication.java:1785)
at
er
.extensions
.appserver.ERXApplication.appendToResponse(ERXApplication.java:1546)
at
com
.webobjects
.appserver
._private
.WOComponentRequestHandler
._dispatchWithPreparedPage(WOComponentRequestHandler.java:242)
at
com
.webobjects
.appserver
._private
.WOComponentRequestHandler
._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
at
com
.webobjects
.appserver
._private
.WOComponentRequestHandler
._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
at
com
.webobjects
.appserver
._private
.WOComponentRequestHandler
._handleRequest(WOComponentRequestHandler.java:369)
at
com
.webobjects
.appserver
._private
.WOComponentRequestHandler
.handleRequest(WOComponentRequestHandler.java:442)
at
com
.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:
1678)
at
er
.extensions
.appserver
.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1646)
at
er
.extensions
.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1610)
at
com
.webobjects
.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at
com
.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:
226)
at java.lang.Thread.run(Thread.java:613)
Jan 16 14:05:02 Obzerv[2001] ERROR com.obzerv.eo.Spec - Error: dot:
can't open /Obzerv/Spec & Parts/ASM/ASM-0117/Spec/Dot/ASM-0117.BH.dot
Jan 16 14:05:02 Obzerv[2001] ERROR com.obzerv.eo.Spec - Error: dot:
can't open /Obzerv/Spec & Parts/ASM/ASM-0117/Spec/Dot/ASM-0117.BH.dot
java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:850)
at com.obzerv.Obzerv.setContents(Obzerv.java:128)
at com.obzerv.eo.Spec.createDotFiles(Spec.java:212)
at
com.obzerv.component.SpecHierarchy.appendToResponse(SpecHierarchy.java:
38)
at
com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1381)
at
er.extensions.appserver.ERXSession.appendToResponse(ERXSession.java:536)
at
com
.webobjects
.appserver.WOApplication.appendToResponse(WOApplication.java:1785)
at
er
.extensions
.appserver.ERXApplication.appendToResponse(ERXApplication.java:1546)
at
com
.webobjects
.appserver
._private
.WOComponentRequestHandler
._dispatchWithPreparedPage(WOComponentRequestHandler.java:242)
at
com
.webobjects
.appserver
._private
.WOComponentRequestHandler
._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
at
com
.webobjects
.appserver
._private
.WOComponentRequestHandler
._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
at
com
.webobjects
.appserver
._private
.WOComponentRequestHandler
._handleRequest(WOComponentRequestHandler.java:369)
at
com
.webobjects
.appserver
._private
.WOComponentRequestHandler
.handleRequest(WOComponentRequestHandler.java:442)
at
com
.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:
1678)
at
er
.extensions
.appserver
.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1646)
at
er
.extensions
.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1610)
at
com
.webobjects
.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at
com
.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:
226)
at java.lang.Thread.run(Thread.java:613)
Jan 16 14:05:02 Obzerv[2001] ERROR com.obzerv.eo.Spec - Error: dot:
can't open /Obzerv/Spec & Parts/ASM/ASM-0117/Spec/Dot/ASM-0117.HH.dot
Jan 16 14:05:02 Obzerv[2001] ERROR com.obzerv.eo.Spec - Error: dot:
can't open /Obzerv/Spec & Parts/ASM/ASM-0117/Spec/Dot/ASM-0117.HH.dot
PS: I know there are spaces in the name but these are escaped and work
properly when executed locally on my portable.
PPS: I'm new to this part of Java io...
Louis Demers eng.
www.obzerv.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden