Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 17775 invoked from network); 30 Sep 2005 06:24:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Sep 2005 06:24:55 -0000 Received: (qmail 69728 invoked by uid 500); 30 Sep 2005 06:24:53 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 69510 invoked by uid 500); 30 Sep 2005 06:24:52 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 69499 invoked by uid 99); 30 Sep 2005 06:24:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2005 23:24:52 -0700 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=HTML_20_30,HTML_MESSAGE,HTML_TEXT_AFTER_BODY,HTML_TEXT_AFTER_HTML X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [202.0.15.8] (HELO perexc64.doir.wa.gov.au) (202.0.15.8) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2005 23:24:56 -0700 Received: from perexc14.internal.dom ([172.20.51.14]) by perexc64.doir.wa.gov.au with InterScan Messaging Security Suite; Fri, 30 Sep 2005 14:23:54 +0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5C587.99BDC928" Subject: odd java.io.FilePermission problem in Tomcat - please help Date: Fri, 30 Sep 2005 14:24:24 +0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: odd java.io.FilePermission problem in Tomcat - please help Thread-Index: AcXFgWx486PZodSUQimdDTJj+sRPWgABc9OA From: "LI, Michelle" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C5C587.99BDC928 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Experts there, =0D =0D I created a web application running in Tomcat, I use ibatis to do database operation, everything works very well on my own machine. After publish to the hosting server, I met a n odd problem, which is reporting a java.io.FilePermission problem, however, none of my code writes anything to the server, I'm very confused and have no idea. who can help? following is the error message when I tried to access one of the pages: http://www.winw8lossprogram.com/shapeworks/listWinners.jsp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Error initializing MyAppSqlConfig class. Cause: com.ibatis.common.exception.NestedRuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXException: java.security.AccessControlException: access denied (java.io.FilePermission /web/tomcat/work/hosting/www.winw8lossprogram.com/shapeworks/loader/META -INF write) Caused by: org.xml.sax.SAXException: java.security.AccessControlException: access denied (java.io.FilePermission /web/tomcat/work/hosting/www.winw8lossprogram.com/shapeworks/loader/META -INF write) Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXException: java.security.AccessControlException: access denied (java.io.FilePermission /web/tomcat/work/hosting/www.winw8lossprogram.com/shapeworks/loader/META -INF write) Caused by: org.xml.sax.SAXException: java.security.AccessControlException: access denied (java.io.FilePermission /web/tomcat/work/hosting/www.winw8lossprogram.com/shapeworks/loader/META -INF write) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:372) 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:802) sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:517) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:266) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.jav a:157) root cause java.lang.RuntimeException: Error initializing MyAppSqlConfig class. Cause: com.ibatis.common.exception.NestedRuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXException: java.security.AccessControlException: access denied (java.io.FilePermission /web/tomcat/work/hosting/www.winw8lossprogram.com/shapeworks/loader/META -INF write) Caused by: org.xml.sax.SAXException: java.security.AccessControlException: access denied (java.io.FilePermission /web/tomcat/work/hosting/www.winw8lossprogram.com/shapeworks/loader/META -INF write) Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXException: java.security.AccessControlException: access denied (java.io.FilePermission /web/tomcat/work/hosting/www.winw8lossprogram.com/shapeworks/loader/META -INF write) Caused by: org.xml.sax.SAXException: java.security.AccessControlException: access denied (java.io.FilePermission /web/tomcat/work/hosting/www.winw8lossprogram.com/shapeworks/loader/META -INF write) com.herbalife.shapeworks.perth.dao.BaseSqlMapDao.getSqlMapInstance(BaseS qlMapDao.java:132) com.herbalife.shapeworks.perth.dao.BaseSqlMapDao.executeQueryForList(Bas eSqlMapDao.java:36) com.herbalife.shapeworks.perth.dao.ShapeWorksDao.findAllWinners(ShapeWor ksDao.java:93) org.apache.jsp.listWinners_jsp._jspService(listWinners_jsp.java:198) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:324) 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:802) sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:517) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:266) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.jav a:157) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs. Apache Tomcat/5.0.27=0D "DISCLAIMER: This email, including any attachments, is intended only for= use by the addressee(s) and may contain confidential and/or personal= information and may also be the subject of legal privilege. If you are not= the intended recipient, you must not disclose or use the information= contained in it. In this case, please let me know by return email, delete= the message permanently from your system and destroy any copies.=0D Before you take any action based upon advice and/or information contained= in this email you should carefully consider the advice and information and= consider obtaining relevant independent advice. ------_=_NextPart_001_01C5C587.99BDC928 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
 Experts= there,   
 
 I created a web= application=0D running in Tomcat, I use ibatis to do database operation, everything works= very=0D well on my own machine. After publish to the hosting server, I met a n odd= =0D problem, which is reporting a java.io.FilePermission problem, however, none= of=0D my code writes anything to the server, I'm very confused and have no idea.= who=0D can help? following is the error message when I tried to access one of the= =0D pages:
http://www.winw8lossprogram.com/shapeworks/listWinners.jsp


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

HTTP=0D Status 500 -

type Exception report

message

description= The=0D server encountered an internal error () that prevented it from fulfilling= this=0D request.

exception

org.apache.jasper.JasperException: Error=0D initializing MyAppSqlConfig class. Cause:=0D com.ibatis.common.exception.NestedRuntimeException: Error occurred. Cause:= =0D com.ibatis.common.xml.NodeletException: Error parsing XML. Cause:=0D org.xml.sax.SAXException: java.security.AccessControlException: access= denied=0D (java.io.FilePermission=0D /web/tomcat/work/hosting/www.winw8lossprogram.com/shapeworks/loader/META-IN= F=0D write)
Caused by: org.xml.sax.SAXException:=0D java.security.AccessControlException: access denied (java.io.FilePermission= =0D /web/tomcat/work/hosting/www.winw8lossprogram.com/shapeworks/loader/META-IN= F=0D write)
Caused by: com.ibatis.common.xml.NodeletException: Error parsing= XML.=0D Cause: org.xml.sax.SAXException: java.security.AccessControlException:= access=0D denied (java.io.FilePermission=0D /web/tomcat/work/hosting/www.winw8lossprogram.com/shapeworks/loader/META-IN= F=0D write)
Caused by: org.xml.sax.SAXException:=0D java.security.AccessControlException: access denied (java.io.FilePermission= =0D /web/tomcat/work/hosting/www.winw8lossprogram.com/shapeworks/loader/META-IN= F=0D write)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWra= pper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspSe= rvlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.= java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)sun.reflect.GeneratedMethodAccessor69.invoke(Unknown=0D Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod= AccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)java.security.AccessController.doPrivileged(Native=0D Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
= org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:266)org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:= 157)

root=0D cause

java.lang.RuntimeException: Error initializing MyAppSqlConfig= =0D class. Cause: com.ibatis.common.exception.NestedRuntimeException: Error=0D occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.= =0D Cause: org.xml.sax.SAXException: java.security.AccessControlException:= access=0D denied (java.io.FilePermission=0D /web/tomcat/work/hosting/www.winw8lossprogram.com/shapeworks/loader/META-IN= F=0D write)
Caused by: org.xml.sax.SAXException:=0D java.security.AccessControlException: access denied (java.io.FilePermission= =0D /web/tomcat/work/hosting/www.winw8lossprogram.com/shapeworks/loader/META-IN= F=0D write)
Caused by: com.ibatis.common.xml.NodeletException: Error parsing= XML.=0D Cause: org.xml.sax.SAXException: java.security.AccessControlException:= access=0D denied (java.io.FilePermission=0D /web/tomcat/work/hosting/www.winw8lossprogram.com/shapeworks/loader/META-IN= F=0D write)
Caused by: org.xml.sax.SAXException:=0D java.security.AccessControlException: access denied (java.io.FilePermission= =0D /web/tomcat/work/hosting/www.winw8lossprogram.com/shapeworks/loader/META-IN= F=0D write)
com.herbalife.shapeworks.perth.dao.BaseSqlMapDao.getSqlMapInstanc= e(BaseSqlMapDao.java:132)
com.herbalife.shapeworks.perth.dao.BaseSqlMapD= ao.executeQueryForList(BaseSqlMapDao.java:36)
com.herbalife.shapeworks.p= erth.dao.ShapeWorksDao.findAllWinners(ShapeWorksDao.java:93)
org.apache.= jsp.listWinners_jsp._jspService(listWinners_jsp.java:198)
org.apache.jas= per.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.= HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspS= ervletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.serv= let.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.ser= vlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServ= let.service(HttpServlet.java:802)
sun.reflect.GeneratedMethodAccessor69.= invoke(Unknown=0D Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod= AccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)java.security.AccessController.doPrivileged(Native=0D Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
= org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:266)org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:= 157)

note=0D The full stack trace of the root cause is available in the Apache= Tomcat/5.0.27=0D logs.
Apache Tomcat/5.0.27
"DISCLAIMER: This= email, including any attachments, is intended only for use by the= addressee(s) and may contain confidential and/or personal information and= may also be the subject of legal privilege. If you are not the intended= recipient, you must not disclose or use the information contained in it.= In this case, please let me know by return email, delete the message= permanently from your system and destroy any copies.

Before you= take any action based upon advice and/or information contained in this= email you should carefully consider the advice and information and= consider obtaining relevant independent= advice.
------_=_NextPart_001_01C5C587.99BDC928--