your log shows
> [org.apache.ojb.broker.metadata.RepositoryXmlHandler] > >>>DEBUG: proxy-prefetching-limit: null >> ... >> > [org.apache.ojb.broker.metadata.RepositoryXmlHandler] > >>>DEBUG: isolation-level: null
hmm, something wrong with your repository.xml file. Because when repository.xml looks like
... >>.... >><descriptor-repository version="1.0" >>isolation-level="read-uncommitted" >> proxy-prefetching-limit="50"> >> >> <!-- include all used database connections --> >> &database; ...
OJB should find these properties.
regards, Armin
ZZZ Liu wrote:
Armin,
Thanks for your reply.
Here is a portion of my repository.xml. I am not sure whether the missing attribute for proxy-prefetching-limit causes the problem?
<descriptor-repository version="1.0" isolation-level="read-uncommitted"> <!-- include all used database connections --> &database; <!-- include ojb internal mappings here --> &internal;
Thanks, Zhe
org.apache.ojb.broker.metadata.RepositoryXmlHandler.getIsoLevel(Unknown
-----Original Message----- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 3:28 AM To: OJB Users List Subject: Re: deploy OJB with web application
Hi,
ZZZ Liu wrote:
I am using OJB rc5. Everything is fine when I use
it
for stand alone program. But when I try to use it
in a
web application (applciation server is resin
2.1.10),
I got following error. From the log, we can see
that
there is a NullPointerException at
file:/D:/gsnx/builds/hourly/dist/gsnx/conf/repository.xmlSource) and from the debug message we can see that isolation-level: null.
hmm, think something wrong with your >
file.=======================================================
Should be something like that:
.... <descriptor-repository version="1.0" isolation-level="read-uncommitted" proxy-prefetching-limit="50">
<!-- include all used database connections --> &database;
<!-- include ojb internal mappings here --> &internal;
<!-- include user defined mappings here --> &user; </descriptor-repository>
regards, Armin
If I manually add isolation-level attribute to
each
class descriptor element in
repository_internal.xml
and all included repository_user.xml's, then it
works.
I don't think there is any document saying that we need to change repository_internal.xml. I am
wondering
whether anybody has ever had the same problem and what's the real cause and the soultion for it.
Thanks in advance.
Zhe
file:/D:/gsnx/builds/hourly/dist/gsnx/conf/repository.xml84938 DEBUG [tcpConnection-9003-0]
util.RequestUtils -
Get module name for path /core/domain/party/partySearchReport.jsp 84938 DEBUG [tcpConnection-9003-0]
util.RequestUtils -
Module name found: default 84953 DEBUG [tcpConnection-9003-0] tiles.InsertTag
-
insert page='/core/fwk/mainLayout.jsp'. 88953 INFO [tcpConnection-9003-0] util.PropertyMessageResources - Initializing,
config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true
[org.apache.ojb.broker.metadata.RepositoryPersistor]
INFO: OJB Descriptor Repository:
[org.apache.ojb.broker.metadata.RepositoryXmlHandler]
[org.apache.ojb.broker.metadata.RepositoryXmlHandler]DEBUG: startDoc
[org.apache.ojb.broker.metadata.RepositoryXmlHandler]DEBUG: proxy-prefetching-limit: null
[org.apache.ojb.broker.metadata.RepositoryXmlHandler]DEBUG: > descriptor-repository
[org.apache.ojb.broker.metadata.RepositoryXmlHandler]DEBUG: < documentation
[org.apache.ojb.broker.metadata.RepositoryXmlHandler]DEBUG: > class-descriptor
org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.getDefaultKey(UnDEBUG: isolation-level: null 89719 DEBUG [tcpConnection-9003-0] tiles.InsertTag
-
[ServletException in:/core/fwk/mainLayout.jsp]
null'
java.lang.ExceptionInInitializerError at
knownorg.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.defaultPersisten
Source) at
ceBroker(Unknownorg.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(Unkn
Source) at
owncom.gsnx.core.server.persistence.ojb.OjbPersistenceManager.<init>(OjbPersist
Source) at
enceManager.java)com.gsnx.core.server.persistence.PersistenceManagerFactory.getPersistenceMan
at
ager(PersistenceManagerFactory.java)com.gsnx.core.server.util.lang.TranslationUtil.cacheTranslation(TranslationU
at
til.java)com.gsnx.core.server.util.lang.TranslationUtil.getTranslation(TranslationUti
at
l.java)com.gsnx.core.server.util.lang.TranslationUtil.message(TranslationUtil.java)
at
com.gsnx.core.server.util.lang.TranslationUtil.message(TranslationUtil.java)at
com.gsnx.core.webui.fwk.util.HtmlUtil.resolveLabel(HtmlUtil.java)at
_core._fwk._mainlayout__jsp._jspService(_mainlayout__jsp.java:73)at
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)at
com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.subservice(Page.java:506) at
com.caucho.server.http.Invocation.service(Invocation.java:315)at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)at
com.caucho.server.http.QRequestDispatcher.include(QRequestDispatcher.java:36at
2)com.caucho.server.http.QRequestDispatcher.include(QRequestDispatcher.java:27
at
4)com.caucho.jsp.QPageContext.include(QPageContext.java:547)
at
org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)at
org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)at
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.jaat
va:881)org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
at
_core._domain._party._partysearchreport__jsp._jspService(_partysearchreport_at
_jsp.java:82)
=== message truncated ===
__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
