users@glassfish.java.net

TopLink issue on Tomcat 6.0.10

From: <glassfish_at_javadesktop.org>
Date: Fri, 20 Apr 2007 08:40:22 PDT

Hi, I am using Spring 2.0.3, tomcat 6.0.10 and Toplink Essentials 2 build 38. My JPA application works very well in the eclipse environment and I am able to execute all the JUnit tests with the AbstractJpaTests class. But when I deply the app to Tomcat, I am getting the following error.

java.lang.UnsupportedOperationException: Class oracle.toplink.essentials.exceptions.DatabaseExcep tion does not provide an accessor ('getter') method for property 'hasBeenLogged'.
org.apache.tapestry.ioc.internal.services.Property AdapterImpl.get(PropertyAdapterImpl.java:85)
org.apache.tapestry.ioc.internal.services.ClassPro pertyAdapterImpl.get(ClassPropertyAdapterImpl.java :75)
org.apache.tapestry.ioc.internal.services.Exceptio nAnalyzerImpl.extractInfo(ExceptionAnalyzerImpl.ja va:113)
org.apache.tapestry.ioc.internal.services.Exceptio nAnalyzerImpl.analyze(ExceptionAnalyzerImpl.java:5 7)
$ExceptionAnalyzer_11204a3f480.analyze($ExceptionA nalyzer_11204a3f480.java)
org.apache.tapestry.corelib.pages.ExceptionReport. reportException(ExceptionReport.java:51)
org.apache.tapestry.internal.services.DefaultReque stExceptionHandler.handleRequestException(DefaultR equestExceptionHandler.java:58)
$RequestExceptionHandler_11204a3f418.handleRequest Exception($RequestExceptionHandler_11204a3f418.jav a)
org.apache.tapestry.services.TapestryModule$3.serv ice(TapestryModule.java:745)
$RequestHandler_11204a3f437.service($RequestHandle r_11204a3f437.java)
org.apache.tapestry.internal.services.StaticFilesF ilter.service(StaticFilesFilter.java:63)
$RequestHandler_11204a3f437.service($RequestHandle r_11204a3f437.java)
org.apache.tapestry.internal.services.CheckForUpda tesFilter$2.invoke(CheckForUpdatesFilter.java:91)
org.apache.tapestry.internal.services.CheckForUpda tesFilter$2.invoke(CheckForUpdatesFilter.java:82)
org.apache.tapestry.ioc.internal.util.ConcurrentBa rrier.withRead(ConcurrentBarrier.java:77)
org.apache.tapestry.internal.services.CheckForUpda tesFilter.service(CheckForUpdatesFilter.java:104)
$RequestHandler_11204a3f437.service($RequestHandle r_11204a3f437.java)
$RequestHandler_11204a3f433.service($RequestHandle r_11204a3f433.java)
org.apache.tapestry.services.TapestryModule$11.ser vice(TapestryModule.java:1179)
$HttpServletRequestHandler_11204a3f432.service($Ht tpServletRequestHandler_11204a3f432.java)
org.apache.tapestry.TapestryFilter.doFilter(Tapest ryFilter.java:115)



I am using the InstrumentationLoadTimeWeaver in my applicationContext.xml file for spring and also have placed the following context.xml file under $CATALINA_HOME/conf. I have placed the spring-agent.jar file under $CATALINA_HOME/lib directory.

<Context>
<Loader loaderClass="org.springframework.instrument.classl oading.tomcat.TomcatInstrumentableClassLoader"/>
</Context>

Any help/suggestions are appreciated.
[Message sent by forum member 'rameshb241' (rameshb241)]

http://forums.java.net/jive/thread.jspa?messageID=213412