dcsimg
Error on using org.apache.struts.util.OJBMessageResources (Jakarte - Utils - MessageResources Impls) - Can't get any message value - Exception
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Michael_Decker
Posted On:   Thursday, October 7, 2004 07:12 AM

Hello! I try to implement MessageResources Impls ... To get message_values from database instead of resource file... I've read the install manuel from StrutsMessageResourcesFromDatabase - Apache Struts Wiki and the readme file from the Impl files. I get this error: 15:28:59,519 INFO [PropertyMessageResources] Initializing, config='org.apache.struts.taglib.logic.LocalStrings', returnNull=true 15:28:59,679 INFO [PropertyMessageResources] Initializing, config='org.apache.struts.taglib.bean.LocalStrings', returnNull=true 15:28:59,820 INFO [STDOUT] [BOOT] INFO: 15:28:59,820 INFO [STDOUT] OJB.properties: file:/C:/jboss-3.2.6/server/default/deploy/myweb.ear/m   More>>

Hello!


I try to implement MessageResources Impls ... To get message_values from database instead of resource file... I've read the install manuel from StrutsMessageResourcesFromDatabase - Apache Struts Wiki and the readme file from the Impl files.


I get this error:


			15:28:59,519 INFO  [PropertyMessageResources] Initializing, config='org.apache.struts.taglib.logic.LocalStrings', returnNull=true
			
15:28:59,679 INFO [PropertyMessageResources] Initializing, config='org.apache.struts.taglib.bean.LocalStrings', returnNull=true
15:28:59,820 INFO [STDOUT] [BOOT] INFO:
15:28:59,820 INFO [STDOUT] OJB.properties: file:/C:/jboss-3.2.6/server/default/deploy/myweb.ear/myweb.war/WEB-INF/classes/OJB.properties
15:28:59,940 ERROR [Engine] ApplicationDispatcher[/ImageBrowser] Servlet.service() for servlet jsp threw exception
java.lang.NoClassDefFoundError: org/apache/commons/pool/PoolableObjectFactory
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl.getClass(Unknown Source)
at org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl.getClass(Unknown Source)
at org.apache.ojb.broker.util.configuration.impl.OjbConfiguration.load(Unknown Source)
at org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl. (Unknown Source)
at org.apache.ojb.broker.util.configuration.impl.OjbConfiguration. (Unknown Source)
at org.apache.ojb.broker.util.configuration.impl.OjbConfigurator. (Unknown Source)
at org.apache.ojb.broker.ta.PersistenceBrokerFactoryFactory. (Unknown Source)
at org.apache.ojb.broker.PersistenceBrokerFactory.createPersistenceBroker(Unknown Source)
at org.apache.struts.util.OJBMessageResources.getMsg(OJBMessageResources.java:202)
at org.apache.struts.util.OJBMessageResources.getMessage(OJBMessageResources.java:163)
at org.apache.struts.util.MessageResources.getMessage(MessageResources.java:339)
at org.apache.struts.util.RequestUtils.message(RequestUtils.java:1051)
at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
at org.apache.jsp.pages.Welcome_jsp._jspx_meth_bean_message_0(Welcome_jsp.java:181)
at org.apache.jsp.pages.Welcome_jsp._jspx_meth_tiles_put_0(Welcome_jsp.java:154)
at org.apache.jsp.pages.Welcome_jsp._jspx_meth_tiles_insert_0(Welcome_jsp.java:99)
at org.apache.jsp.pages.Welcome_jsp._jspService(Welcome_jsp.java:70)



I don't understand why...


I'm using jBoss 3.2 with Tomcat 5 and MySQl 4.0.


I use the standard

OJB.properties
.

This modification on


			
platform="MySQL"
jdbc-level="2.0"
driver="org.gjt.mm.mysql.Driver"
protocol="jdbc"
subprotocol="mysql"
dbalias="//localhost:3306/practical"
username="foo"
password="bar"
/>

I've change nothing on

and .

This is my changing on :


			
factory="org.apache.struts.util.OJBMessageResourcesFactory"
parameter="."
>


Can anybody tell me, what's going wrong here?

   <<Less
About | Sitemap | Contact