ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abdullah <comming_k...@yahoo.com>
Subject Ibatis access denied with tomcat
Date Thu, 16 Aug 2007 11:19:23 GMT

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? 

com/cliniccruise/db/sqlMap/xml/config/DownloadCenter_MySQL_SQLMapConfig.xml
com/spectraflare/model/db/prop/DownloadCenter_MySQL_globalPreferences.properties
reader ==> java.io.InputStreamReader@13179e3
databaseUrl==>jdbc:mysql://h50mysql19.secureserver.net/pharmaclinic?useUnicode=true&characterEncoding=UTF-8&blobSendChunkSize=16000000
java.lang.RuntimeException: Error occurred.  Cause:
com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause:
java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. 
Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause:
java.lang.RuntimeException: Error parsing XPath '/sqlMap/resultMap/end()'. 
Cause: java.security.AccessControlException: access denied
(java.lang.RuntimePermission accessDeclaredMembers)
	at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:89)
	at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:75)
	at
com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:79)
	at
com.spectraflare.model.db.SpectraDaoManager.loadSqlMapInstance(SpectraDaoManager.java:48)
	at
com.downloadCenter.loading.ResourceServlet.loadIbatis(ResourceServlet.java:111)
	at
com.downloadCenter.loading.ResourceServlet.doGet(ResourceServlet.java:127)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at sun.reflect.GeneratedMethodAccessor227.invoke(Unknown Source)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:266)
	at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
	at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:140)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:136)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
	at
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:417)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
	at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
	at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
	at java.lang.Thread.run(Thread.java:595)
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. 
Cause: java.lang.RuntimeException: Error parsing XPath
'/sqlMapConfig/sqlMap'.  Cause: com.ibatis.common.xml.NodeletException:
Error parsing XML.  Cause: java.lang.RuntimeException: Error parsing XPath
'/sqlMap/resultMap/end()'.  Cause: java.security.AccessControlException:
access denied (java.lang.RuntimePermission accessDeclaredMembers)
	at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:53)
	at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:86)
	... 48 more
Caused by: java.lang.RuntimeException: Error parsing XPath
'/sqlMapConfig/sqlMap'.  Cause: com.ibatis.common.xml.NodeletException:
Error parsing XML.  Cause: java.lang.RuntimeException: Error parsing XPath
'/sqlMap/resultMap/end()'.  Cause: java.security.AccessControlException:
access denied (java.lang.RuntimePermission accessDeclaredMembers)
	at
com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:123)
	at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:84)
	at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:102)
	at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:72)
	at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:51)
	... 49 more
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. 
Cause: java.lang.RuntimeException: Error parsing XPath
'/sqlMap/resultMap/end()'.  Cause: java.security.AccessControlException:
access denied (java.lang.RuntimePermission accessDeclaredMembers)
	at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:53)
	at
com.ibatis.sqlmap.engine.builder.xml.SqlMapParser.parse(SqlMapParser.java:51)
	at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser$11.process(SqlMapConfigParser.java:410)
	at
com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:121)
	... 53 more
Caused by: java.lang.RuntimeException: Error parsing XPath
'/sqlMap/resultMap/end()'.  Cause: java.security.AccessControlException:
access denied (java.lang.RuntimePermission accessDeclaredMembers)
	at
com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:123)
	at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:105)
	at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:102)
	at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:72)
	at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:51)
	... 56 more
Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimePermission accessDeclaredMembers)
	at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
	at
java.security.AccessController.checkPermission(AccessController.java:427)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
	at java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1662)
	at java.lang.Class.checkMemberAccess(Class.java:2125)
	at java.lang.Class.getDeclaredMethods(Class.java:1762)
	at com.ibatis.common.beans.ClassInfo.getClassMethods(ClassInfo.java:145)
	at
com.ibatis.common.beans.ClassInfo.getAllMethodsForClass(ClassInfo.java:128)
	at com.ibatis.common.beans.ClassInfo.addMethods(ClassInfo.java:88)
	at com.ibatis.common.beans.ClassInfo.<init>(ClassInfo.java:82)
	at com.ibatis.common.beans.ClassInfo.getInstance(ClassInfo.java:365)
	at
com.ibatis.sqlmap.engine.accessplan.BaseAccessPlan.<init>(BaseAccessPlan.java:34)
	at
com.ibatis.sqlmap.engine.accessplan.ComplexAccessPlan.<init>(ComplexAccessPlan.java:29)
	at
com.ibatis.sqlmap.engine.accessplan.AccessPlanFactory.getAccessPlan(AccessPlanFactory.java:74)
	at
com.ibatis.sqlmap.engine.exchange.JavaBeanDataExchange.initialize(JavaBeanDataExchange.java:84)
	at
com.ibatis.sqlmap.engine.mapping.result.BasicResultMap.setResultMappingList(BasicResultMap.java:287)
	at
com.ibatis.sqlmap.engine.builder.xml.SqlMapParser$13.process(SqlMapParser.java:332)
	at
com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:121)
	... 60 more

-- 
View this message in context: http://www.nabble.com/Ibatis-access-denied-with-tomcat-tf4278994.html#a12179362
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Mime
View raw message