users@glassfish.java.net

SEVERE: UTIL6550: Error in local string manager - resource bundle is probably

From: <forums_at_java.net>
Date: Fri, 13 May 2011 09:14:14 -0500 (CDT)

Hi All,   I am having trouble declaring a resource in glassfish-resource.xml
correctly after having copy-and-past from another simple working JMS
application. Below is the entry in the glassfish-resource.xml:   [code]<?xml
version="1.0" encoding="UTF-8"?> <!DOCTYPE resources PUBLIC "-//Sun
Microsystems, Inc.//DTD Application Server 9.0 Resource Definitions //EN"
"http://www.sun.com/software/appserver/dtds/sun-resources_1_3.dtd">
<resources>  <jdbc-resource enabled="true" jndi-name="MySQLDB"
object-type="user" pool-name="mysqlPool"/>  <admin-object-resource
enabled="true" jndi-name="jms/vehicleQueue" object-type="user"
res-adapter="jmsra" res-type="javax.jms.Queue">     <description/>    
<property name="Name" value="vehicleQueue"/>  </admin-object-resource>
 <connector-resource enabled="true"
jndi-name="jms/vehicleQueueConnectionFactory" object-type="user"
pool-name="jms/vehicleQueueConnectionFactory">     <description/>
 </connector-resource>  <jdbc-connection-pool
allow-non-component-callers="false" associate-with-thread="false"
connection-creation-retry-attempts="0"
connection-creation-retry-interval-in-seconds="10"
connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0"
connection-validation-method="auto-commit"
datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource"
fail-all-connections="false" idle-timeout-in-seconds="300"
is-connection-validation-required="false"
is-isolation-level-guaranteed="true" lazy-connection-association="false"
lazy-connection-enlistment="false" match-connections="false"
max-connection-usage-count="0" max-pool-size="32"
max-wait-time-in-millis="60000" name="mysqlPool"
non-transactional-connections="false" pool-resize-quantity="2"
res-type="javax.sql.DataSource" statement-timeout-in-seconds="-1"
steady-pool-size="8" validate-atmost-once-period-in-seconds="0"
wrap-jdbc-objects="false">     <property name="databaseName"
value="vehicleDB"/>     <property name="serverName" value="localhost"/>
    <property name="portNumber" value="3306"/>     <property
name="User" value="applicationuser"/>     <property name="Password"
value="abc123"/>     <property name="URL"
value="jdbc:mysql://localhost:3306/vehicleDB"/>     <property
name="driverClass" value="com.mysql.jdbc.Driver"/>  </jdbc-connection-pool>
 <connector-connection-pool associate-with-thread="false"
connection-creation-retry-attempts="0"
connection-creation-retry-interval-in-seconds="10"
connection-definition-name="javax.jms.QueueConnectionFactory"
connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0"
fail-all-connections="false" idle-timeout-in-seconds="300"
is-connection-validation-required="false" lazy-connection-association="false"
lazy-connection-enlistment="false" match-connections="true"
max-connection-usage-count="0" max-pool-size="32"
max-wait-time-in-millis="60000" name="jms/vehicleQueueFactoryPool"
ping="false" pool-resize-quantity="2" pooling="true"
resource-adapter-name="jmsra" steady-pool-size="8"
validate-atmost-once-period-in-seconds="0"/>  <connector-resource
enabled="true" jndi-name="jms/vehicleQueueFactory" object-type="user"
pool-name="jms/vehicleQueueFactoryPool"/>  <connector-connection-pool
associate-with-thread="false" connection-creation-retry-attempts="0"
connection-creation-retry-interval-in-seconds="10"
connection-definition-name="javax.jms.ConnectionFactory"
connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0"
fail-all-connections="false" idle-timeout-in-seconds="300"
is-connection-validation-required="false" lazy-connection-association="false"
lazy-connection-enlistment="false" match-connections="true"
max-connection-usage-count="0" max-pool-size="32"
max-wait-time-in-millis="60000" name="jms/vehicleQueueConnectionFactory"
ping="false" pool-resize-quantity="2" pooling="true"
resource-adapter-name="jmsra" steady-pool-size="8"
validate-atmost-once-period-in-seconds="0"/>  </resources>[/code]  
However, deployment failed with the following initialization error:  
[code]SEVERE: Something went wrong in add-resources java.lang.Exception:
Attribute "ping" must be declared for element type
"connector-connection-pool".   SEVERE: UTIL6550: Error in local string
manager - resource bundle is probably missing.
java.util.MissingResourceException: Can't find bundle for base name
com.sun.enterprise.connectors.jms.system.LocalStrings, locale en_US  
SEVERE: MDB00017: [JmsVehicleMDB]: Exception in creating message-driven bean
container:
[com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: No local
string defined] SEVERE:
com.sun.appserv.connectors.internal.api.ConnectorRuntimeException
com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: No local
string defined   SEVERE: Exception while invoking class
org.glassfish.ejb.startup.EjbDeployer load method java.lang.RuntimeException:
EJB Container initialization error   SEVERE: Exception while loading the app
: EJB Container initialization error
com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: No local
string defined[/code]   These errors look suspiciously similar to the one
from an existing bug GLASSFISH-15981 but would appreciate another pair of eye
to ensure that glassfish-resource.xml is declared correctly. Is there a
workaround in the meantime if it is a bug?   I am running JDK1.6.0_25, GF3.1
bundled with Netbeans 7.0 on Windows 7.   Thanks in advance,   Crystal

--
[Message sent by forum member 'crytal123']
View Post: http://forums.java.net/node/801806