起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2202|回复: 7

[结贴] 在模块"/GCERP"下获取数据库连接出错,提示guanchu没有绑定

[复制链接]

17

主题

61

帖子

115

积分

初级会员

Rank: 2

积分
115
QQ
发表于 2016-4-12 08:51:12 | 显示全部楼层 |阅读模式
版本: 小版本号:
数据库: 服务器操作系统: 应用服务器:
客户端操作系统: 浏览器:
<action direct-execute="false" process="/GCERP/chargeManage/process/tasking/taskingProcess" activity="takingActivity" action-flag="__action_0__" executor="" execute-context="" name="queryTableC_taskingByExactConditionAction"><parameters xmlns:xbiz="http://www.justep.com/xbiz#"><parameter name="billNo"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></parameter><parameter name="taskingTypeId"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></parameter><parameter name="taskingTypeName"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></parameter><parameter name="noticeDate"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></parameter><parameter name="ownerName"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></parameter><parameter name="IdNo"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></parameter><parameter name="districtGradeId"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></parameter><parameter name="districtGrade"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></parameter><parameter name="unit"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></parameter><parameter name="roomNumber"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></parameter><parameter name="executorName"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></parameter><parameter name="billMakeDate"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></parameter></parameters></action>
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at com.justep.system.action.Engine.invokeActions(Native Method)
        at com.justep.system.action.Engine.invokeActions(Unknown Source)
        at com.justep.business.server.BusinessServer.doAction(Unknown Source)
        at com.justep.business.server.BusinessServer.doExcute(Unknown Source)
        at com.justep.business.server.BusinessServer.excute(Unknown Source)
        at com.justep.business.server.BusinessServer.excute(Unknown Source)
        at com.justep.business.server.BusinessServerServlet.execService(Unknown Source)
        at com.justep.business.server.BusinessServerServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at com.justep.x.bs.BusinessServerServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
Caused by: com.justep.exception.BusinessException: 编码: JUSTEP150210; 提示: 执行KSQL出错, KSQL: select c from C_districtGrade c where c.superDistrictGradeId in('')
--> sql:
--> binds: []
        at com.justep.exception.BusinessException.create(Unknown Source)
        at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
        at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
        at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
        at com.justep.system.data.KSQL.select(Unknown Source)
        at ChargeManage.getSubdistrictGradeIdsBySuperIds(ChargeManage.java:2347)
        at ChargeManage.getAllDistrictGradeIds(ChargeManage.java:2325)
        at ChargeManage.queryTableC_taskingByExactCondition(ChargeManage.java:5514)
        ... 27 more
Caused by: com.justep.exception.BusinessException: 编码: JUSTEP150055; 提示: 在模块"/GCERP"下获取数据库连接出错
        at com.justep.exception.BusinessException.create(Unknown Source)
        at com.justep.system.data.Transaction.getConnection(Unknown Source)
        at com.justep.system.data.Transaction.getConnection(Unknown Source)
        at com.justep.model.ModelUtils.getConnection(Unknown Source)
        ... 34 more
Caused by: javax.naming.NameNotFoundException: Name guanchu is not bound in this Context
        at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
        at org.apache.naming.SelectorContext.lookup(SelectorContext.java:152)
        at javax.naming.InitialContext.lookup(InitialContext.java:411)
        at com.justep.system.data.Transaction.getConnectionWithJndi(Unknown Source)
        ... 37 more

17

主题

61

帖子

115

积分

初级会员

Rank: 2

积分
115
QQ
 楼主| 发表于 2016-4-12 08:56:09 | 显示全部楼层

RE: 在模块&quot;/GCERP&quot;下获取数据库连接出错,提示guanchu没有绑定

我的数据源配置是成功的,而且/BIZ/GCERP/db.config.m文件中

<?xml version="1.0" encoding="utf-8"?>
<model xmlns="http://www.justep.com/model">
        <config name="dataSource" value="java:comp/env/guanchu"/>
</model>
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35920
发表于 2016-4-12 11:16:57 | 显示全部楼层
studio的“窗口——首选项——Studio配置——数据源”中配置了guanchu吗?配置后tomcat重启了吗?
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

17

主题

61

帖子

115

积分

初级会员

Rank: 2

积分
115
QQ
 楼主| 发表于 2016-4-12 15:11:12 | 显示全部楼层
配置了,重启了n多遍,都没有用
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35920
发表于 2016-4-12 16:42:50 | 显示全部楼层
apache-tomcat\conf\context.xml中有这个数据源的配置吗?
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

50

主题

483

帖子

1163

积分

金牌会员

Rank: 6Rank: 6

积分
1163
QQ
发表于 2016-4-24 15:12:06 | 显示全部楼层
jishuang 发表于 2016-4-12 16:42
apache-tomcat\conf\context.xml中有这个数据源的配置吗?

怎么解决的?我这边也出现这个问题,一直没有找到原因
回复 支持 反对

使用道具 举报

50

主题

483

帖子

1163

积分

金牌会员

Rank: 6Rank: 6

积分
1163
QQ
发表于 2016-4-24 15:12:45 | 显示全部楼层
jishuang 发表于 2016-4-12 16:42
apache-tomcat\conf\context.xml中有这个数据源的配置吗?

你说的方法我都试了都没什么效果
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35920
发表于 2016-4-25 11:54:30 | 显示全部楼层
如果是这个错误就是没有找到数据源的配置,确认tomcat读取的数据源配置文件中是否有这个数据源配置,X5具体用的什么版本?
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-5-2 14:51 , Processed in 0.091472 second(s), 25 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表