org.jboss.deployment.DeploymentException: Parameter class not found:String

本文介绍了一种将配置文件中的所有String数据类型修改为java.lang.String的方法,并展示了一个具体的例子,涉及方法参数类型更改和EJB-QL查询语句。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

配置文件所有数据类型String改为java.lang.String

         <query>

            <query-method>

               <method-name>find</method-name>

               <method-params>

                  <method-param>java.lang.String</method-param>

               </method-params>

            </query-method>

            <result-type-mapping>Local</result-type-mapping>

            <ejb-ql><![CDATA[select object(a) from customer a where a.customerId like ?1]]></ejb-ql>

         </query>
16:51:33,561 ERROR [URLDeploymentScanner] Incomplete Deployment listing: --- Incompletely deployed packages --- org.jboss.deployment.DeploymentInfo@ebb24ee4 { url=file:/opt/jboss-4.2.2.GA/server/default/deploy/acs.ear } deployer: org.jboss.deployment.EARDeployer@225b1b status: Deployment FAILED reason: URL file:/opt/jboss-4.2.2.GA/server/default/tmp/deploy/tmp3003181215135402123acs.ear-contents/acs-war-exp.war/ deployment failed state: FAILED watch: file:/opt/jboss-4.2.2.GA/server/default/deploy/acs.ear altDD: null lastDeployed: 1742892691824 lastModified: 1742892691617 mbeans: --- MBeans waiting for other MBeans --- ObjectName: jboss.j2ee:service=EjbModule,module=acs-ejb.jar State: FAILED Reason: org.jboss.deployment.DeploymentException: Error while fixing table name; - nested throwable: (org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver)))) ObjectName: jboss.web.deployment:war=acs-war.war,id=225351972 State: FAILED Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.2.2.GA/server/default/tmp/deploy/tmp3003181215135402123acs.ear-contents/acs-war-exp.war/ deployment failed --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- ObjectName: jboss.j2ee:service=EjbModule,module=acs-ejb.jar State: FAILED Reason: org.jboss.deployment.DeploymentException: Error while fixing table name; - nested throwable: (org.jboss.util.NestedSQLException: Could not create connection; - nested t
最新发布
03-26
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值