WebSphere Application Server - websphere properties file permission problem

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > February 2005 > websphere properties file permission problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author websphere properties file permission problem
uskulkarni

2005-02-11, 8:08 am

Hello

I installed websphere 5.1 on Windows 2003 Server Ent. Edition.

I deployed my saminbs.war application successfully.

I put the Horizon.properties file in D:\Documents and Settings\Administrator\Horizon.properties.

I am able to open home page using http plugin. (myserver/saminbs/jsp/login.jsp)
But while i am opening my home page i got the Permission error in my log file. WebSphere are able to read my .properties file.
I am not able to click on any single home page link.


I got the following error in my systemerr.log file.

at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
java.security.AccessControlException: access denied (java.io.FilePermission D:\Documents and Settings\NetworkService\JHorizonv1r1.properties read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java(Compiled Code))
at java.security.AccessController.checkPermission(AccessController.java(Compiled Code))
at java.lang.SecurityManager.checkPermission(SecurityManager.java(Compiled Code))
at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java(Compiled Code))
at java.lang.SecurityManager.checkRead(SecurityManager.java(Compiled Code))
at java.io.FileInputStream.<init>(FileInputStream.java:120)
at org.apache.jsp._Login.jspInit(_Login.java:32)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.init(HttpJspBase.java:59)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)


I am using Administrator Login.
I think it could problem of websphere permission as per the log shown.

Your help more appreciate me.

Regards
Uday
CharlyOz

2005-02-14, 2:52 am

Hi Uday,

The WebSphere process is looking for a file in the following location:
D:\Documents and Settings\NetworkService\JHorizonv1r1.properties

You stated that you placed the file under:
D:\Documents and Settings\Administrator\Horizon.properties

You could try creating a new directory structure (Example:
D:\ibmapp\saminbs\properties\ ) and then place the properties file in there.
Also, the referenced properties file also has what appears to be a version
number in it.

You will also need to change any references for the properties file to
reflect the new location.

regards,

Charly Oz.

"uskulkarni" <uskulkarni.1kbcd7@mail.webservertalk.com> wrote in message
news:uskulkarni.1kbcd7@mail.webservertalk.com...
>
> Hello
>
> I installed websphere 5.1 on Windows 2003 Server Ent. Edition.
>
> I deployed my saminbs.war application successfully.
>
> I put the Horizon.properties file in D:\Documents and
> Settings\Administrator\Horizon.properties.
>
> I am able to open home page using http plugin.
> (myserver/saminbs/jsp/login.jsp)
> But while i am opening my home page i got the Permission error in my
> log file. WebSphere are able to read my .properties file.
> I am not able to click on any single home page link.
>
>
> I got the following error in my systemerr.log file.
>
> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
> java.security.AccessControlException: access denied
> (java.io.FilePermission D:\Documents and
> Settings\NetworkService\JHorizonv1r1.properties read)
> at
> java.security.AccessControlContext.checkPermission(AccessControlContext.java(Compiled
> Code))
> at
> java.security.AccessController.checkPermission(AccessController.java(Compiled
> Code))
> at
> java.lang.SecurityManager.checkPermission(SecurityManager.java(Compiled
> Code))
> at
> com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java(Compiled
> Code))
> at java.lang.SecurityManager.checkRead(SecurityManager.java(Compiled
> Code))
> at java.io.FileInputStream.<init>(FileInputStream.java:120)
> at org.apache.jsp._Login.jspInit(_Login.java:32)
> at
> com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.init(HttpJspBase.java:59)
> at
> com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
> at
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
> at
> com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
> at
> com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
> at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
>
>
> I am using Administrator Login.
> I think it could problem of websphere permission as per the log shown.
>
> Your help more appreciate me.
>
> Regards
> Uday
>
>
>
> --
> uskulkarni
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message916508.html
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com