Announcement Announcement Module
Collapse
No announcement yet.
Stack Overflow Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stack Overflow

    Hi all. This is my first time using Spring. I have this problem with Spring, which I have no idea how to solve it. Please help me out.

    My system config.:
    - JBoss 4.0.1
    - Spring-framework-1.1.5-with-dependencies
    - aopalliance.jar


    I was trying to build a simple app. to try using Spring. I have an MDB to call another stateless session bean.

    Here is the MDB.

    .
    .
    .
    public void onMessage(Message inMessage) {
    System.out.println("***** Loading Application Context");
    ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(new String[] {"applicationContext.xml"});
    System.out.print("***** Calling writeLog");
    writeLog((ApplicationContext)ctx, inMessage.toString());
    }

    public void writeLog(ApplicationContext ctx, String logMessage) {
    System.out.println("***** Loading logService Bean");
    LogService service = (LogService)ctx.getBean("logService");
    System.out.println("***** Calling logService.log()");
    service.log(logMessage);
    }


    Here is the ApplicationContext.xml.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

    <!--
    - Root application context for the Countries application.
    - Web-specific beans are defined in "countries-servlet.xml".
    -->
    <beans>

    <bean id="messageSource"
    class="org.springframework.context.support.Resourc eBundleMessageSource">
    <property name="basenames">
    <list>
    <value>format</value>
    <value>exceptions</value>
    <value>windows</value>
    </list>
    </property>
    </bean>

    <bean id="logService"
    class="org.springframework.ejb.access.LocalStatele ssSessionProxyFactoryBean">
    <property name="jndiName">
    <value>java:logService</value>
    </property>
    <property name="resourceRef">
    <value>true</value>
    </property>
    <property name="businessInterface">
    <value>com.taifook.datasync.ejb.LogService</value>
    </property>
    </bean>

    </beans>



    When I tried to run my app., it can load the logService bean. But when it starts to call the log() method, it keeps loading classes until it throws a java.lang.StackOverflowError exception.


    Here is the log.

    2005-05-13 18:35:20,553 INFO [STDOUT] ***** Loading Application Context
    2005-05-13 18:35:20,553 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] AbstractWebContainer.parseWebAppDescriptors, End
    2005-05-13 18:35:20,663 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Using session cookies default setting
    2005-05-13 18:35:20,663 DEBUG [tomcat.localhost./jmx-console.Context] Starting tomcat.localhost./jmx-console.Context
    2005-05-13 18:35:20,663 DEBUG [tomcat.localhost./jmx-console.Context] Configuring default Resources
    2005-05-13 18:35:20,678 DEBUG [tomcat.localhost./jmx-console.Context] Processing standard container startup
    2005-05-13 18:35:20,678 DEBUG [tomcat.localhost./jmx-console.Context] Setting deployment descriptor public ID to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
    2005-05-13 18:35:20,710 DEBUG [tomcat.localhost./jmx-console.Context] Setting deployment descriptor public ID to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
    2005-05-13 18:35:20,710 DEBUG [tomcat.localhost./jmx-console.Context] Posting standard context attributes
    2005-05-13 18:35:20,710 DEBUG [tomcat.localhost./jmx-console.Context] Configuring application event listeners
    2005-05-13 18:35:20,725 DEBUG [tomcat.localhost./jmx-console.Context] Sending application start events
    2005-05-13 18:35:20,725 DEBUG [tomcat.localhost./jmx-console.Context] Starting filters
    2005-05-13 18:35:20,725 DEBUG [tomcat.localhost./jmx-console.Context] Starting filter 'CommonHeadersFilter'
    2005-05-13 18:35:20,725 DEBUG [org.jboss.web.tomcat.filters.ReplyHeaderFilter] Adding header name: X-Powered-By='Servlet 2.4; Tomcat-5.0.28/JBoss-4.0.1sp1 (build: CVSTag=JBoss_4_0_1_SP1 date=200502160314)'
    2005-05-13 18:35:20,725 DEBUG [tomcat.localhost./jmx-console.Context] Starting completed
    2005-05-13 18:35:20,725 DEBUG [tomcat.localhost./jmx-console.Context] Checking for jboss.web:J2EEApplication=none,J2EEServer=none,j2e eType=WebModule,name=//localhost/jmx-console
    2005-05-13 18:35:20,725 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Initialized: {WebApplication: /C:/jboss-4.0.1/server/DataSync/deploy/jmx-console.war/, URL: file:/C:/jboss-4.0.1/server/DataSync/deploy/jmx-console.war/, classLoader: java.net.FactoryURLClassLoader@14a616:1353238} jboss.web:J2EEApplication=none,J2EEServer=none,j2e eType=WebModule,name=//localhost/jmx-console
    2005-05-13 18:35:20,725 DEBUG [org.jboss.web.WebModule] Started jboss.web.deployment:id=991790598,war=jmx-console.war
    2005-05-13 18:35:20,725 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.web.deployment:id=991790598,war=jmx-console.war dependent components: []
    2005-05-13 18:35:20,741 INFO [org.springframework.beans.factory.xml.XmlBeanDefin itionReader] Loading XML bean definitions from class path resource [applicationContext.xml]
    2005-05-13 18:35:20,741 DEBUG [org.springframework.beans.factory.xml.XmlBeanDefin itionReader] Using JAXP implementation [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@ 930120]
    2005-05-13 18:35:20,757 DEBUG [org.springframework.context.support.ResourceEntity Resolver] Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd]
    2005-05-13 18:35:20,757 DEBUG [org.springframework.context.support.ResourceEntity Resolver] Trying to locate [spring-beans.dtd] under [/org/springframework/beans/factory/xml/]
    2005-05-13 18:35:20,757 DEBUG [org.springframework.context.support.ResourceEntity Resolver] Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath
    2005-05-13 18:35:20,772 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: jmx-console.war
    2005-05-13 18:35:20,772 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/jboss-4.0.1/server/DataSync/deploy/jmx-console.war/
    2005-05-13 18:35:20,772 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/C:/jboss-4.0.1/server/DataSync/deploy/jmx-console.war/ -> file:/C:/jboss-4.0.1/server/DataSync/deploy/jmx-console.war/WEB-INF/web.xml
    2005-05-13 18:35:20,772 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/C:/jboss-4.0.1/server/DataSync/deploy/management/web-console.war/
    2005-05-13 18:35:20,772 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/C:/jboss-4.0.1/server/DataSync/deploy/management/web-console.war/
    2005-05-13 18:35:20,772 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.web.tomcat.tc5.Tomcat5@15dc37d
    2005-05-13 18:35:20,772 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] Begin init
    2005-05-13 18:35:20,772 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] webContext: null
    2005-05-13 18:35:20,772 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] warURL: file:/C:/jboss-4.0.1/server/DataSync/deploy/management/web-console.war/
    2005-05-13 18:35:20,772 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Loading bean definitions
    2005-05-13 18:35:20,772 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Default lazy init 'false'
    2005-05-13 18:35:20,772 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Default dependency check 'none'
    2005-05-13 18:35:20,772 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Default autowire 'no'
    2005-05-13 18:35:20,788 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] End init
    2005-05-13 18:35:20,788 DEBUG [org.jboss.deployment.DeploymentInfo] createLoaderRepository from config: LoaderRepositoryConfig(repositoryName: jboss.console:sar=console-mgr.sar, repositoryClassName: org.jboss.mx.loading.HeirarchicalLoaderRepository3 , configParserClassName: org.jboss.mx.loading.HeirarchicalLoaderRepository3 ConfigParser, repositoryConfig: java2ParentDelegation=true)
    2005-05-13 18:35:20,788 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url file:/C:/jboss-4.0.1/server/DataSync/deploy/management/web-console.war/
    2005-05-13 18:35:20,788 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoader Repository3@153113d, cl=org.jboss.mx.loading.UnifiedClassLoader3@17757a d{ url=file:/C:/jboss-4.0.1/server/DataSync/deploy/management/web-console.war/ ,addedOrder=0}
    2005-05-13 18:35:20,788 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoader Repository3@153113d, cl=org.jboss.mx.loading.UnifiedClassLoader3@17757a d{ url=file:/C:/jboss-4.0.1/server/DataSync/deploy/management/web-console.war/ ,addedOrder=0}
    2005-05-13 18:35:20,788 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] Adding org.jboss.mx.loading.UnifiedClassLoader3@17757ad{ url=file:/C:/jboss-4.0.1/server/DataSync/deploy/management/web-console.war/ ,addedOrder=0}
    2005-05-13 18:35:20,788 DEBUG [org.jboss.mx.loading.ClassLoaderUtils] Multiple class loaders found for pkg:
    2005-05-13 18:35:20,819 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/C:/jboss-4.0.1/server/DataSync/deploy/management/web-console.war/
    2005-05-13 18:35:20,819 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/C:/jboss-4.0.1/server/DataSync/deploy/management/web-console.war/
    2005-05-13 18:35:20,819 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/jboss-4.0.1/server/DataSync/deploy/management/web-console.war/
    2005-05-13 18:35:20,819 DEBUG [org.jboss.system.ServiceController] Creating service jboss.web.deployment:id=790160425,war=web-console.war
    2005-05-13 18:35:20,819 DEBUG [org.jboss.system.ServiceController] adding depends in ServiceController.register: []
    2005-05-13 18:35:20,819 DEBUG [org.jboss.web.WebModule] Creating jboss.web.deployment:id=790160425,war=web-console.war
    2005-05-13 18:35:20,819 DEBUG [org.jboss.web.WebModule] Created jboss.web.deployment:id=790160425,war=web-console.war
    2005-05-13 18:35:20,819 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.web.deployment:id=790160425,war=web-console.war dependents are: []
    2005-05-13 18:35:20,819 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying web-console.war
    2005-05-13 18:35:20,819 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/C:/jboss-4.0.1/server/DataSync/deploy/management/web-console.war/
    2005-05-13 18:35:20,819 DEBUG [org.jboss.system.ServiceController] starting service jboss.web.deployment:id=790160425,war=web-console.war
    2005-05-13 18:35:20,819 DEBUG [org.jboss.web.WebModule] Starting jboss.web.deployment:id=790160425,war=web-console.war
    2005-05-13 18:35:20,819 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] webContext: null
    2005-05-13 18:35:20,819 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] warURL: file:/C:/jboss-4.0.1/server/DataSync/deploy/management/web-console.war/
    2005-05-13 18:35:20,819 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] webAppParser: org.jboss.web.AbstractWebDeployer$DescriptorParser @1e852be
    2005-05-13 18:35:20,819 INFO [org.jboss.web.tomcat.tc5.TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/C:/jboss-4.0.1/server/DataSync/deploy/management/web-console.war/
    2005-05-13 18:35:20,835 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] Added url: file:/C:/jboss-4.0.1/server/DataSync/deploy/management/web-console.war/WEB-INF/classes/, to ucl: org.jboss.mx.loading.UnifiedClassLoader3@17757ad{ url=file:/C:/jboss-4.0.1/server/DataSync/deploy/management/web-console.war/ ,addedOrder=40}
    2005-05-13 18:35:20,835 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] AbstractWebContainer.parseWebAppDescriptors, Begin
    2005-05-13 18:35:20,835 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Creating ENC using ClassLoader: java.net.FactoryURLClassLoader@1697d14
    2005-05-13 18:35:20,835 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] ..org.jboss.mx.loading.UnifiedClassLoader3@17757ad { url=file:/C:/jboss-4.0.1/server/DataSync/deploy/management/web-console.war/ ,addedOrder=40}
    2005-05-13 18:35:20,835 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] ..org.jboss.system.server.NoAnnotationURLClassLoad er@1f1fba0
    2005-05-13 18:35:20,835 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] ..sun.misc.Launcher$AppClassLoader@17172ea
    2005-05-13 18:35:20,835 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] ..sun.misc.Launcher$ExtClassLoader@12f6684
    2005-05-13 18:35:20,835 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Unable to retrieve orbjavax.management.InstanceNotFoundException: jboss:service=CorbaORB is not registered.
    2005-05-13 18:35:20,835 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Linked java:comp/UserTransaction to JNDI name: UserTransaction
    2005-05-13 18:35:20,835 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] addEnvEntries
    2005-05-13 18:35:20,835 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkResourceEnvRefs
    2005-05-13 18:35:20,835 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkResourceRefs
    2005-05-13 18:35:20,835 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkMessageDestinationRefs
    2005-05-13 18:35:20,835 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkEjbRefs
    2005-05-13 18:35:20,835 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkEjbLocalRefs
    2005-05-13 18:35:20,835 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkServiceRefs
    2005-05-13 18:35:20,835 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkSecurityDomain
    2005-05-13 18:35:20,835 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] No security-domain given, using default: java:/jaas/other
    2005-05-13 18:35:20,835 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Linking security/securityMgr to JNDI name: java:/jaas/other
    2005-05-13 18:35:20,850 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] AbstractWebContainer.parseWebAppDescriptors, End
    2005-05-13 18:35:20,850 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Found 2 <bean> elements defining beans
    2005-05-13 18:35:20,850 INFO [org.springframework.context.support.ClassPathXmlAp plicationContext] Bean factory for application context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=30386533]: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [messageSource,logService]; root of BeanFactory hierarchy
    2005-05-13 18:35:20,882 INFO [org.springframework.context.support.ClassPathXmlAp plicationContext] 2 beans defined in application context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=30386533]
    2005-05-13 18:35:20,882 INFO [org.springframework.core.CollectionFactory] Using JDK 1.4 collections
    2005-05-13 18:35:20,882 DEBUG [org.springframework.core.CollectionFactory] Creating java.util.LinkedHashMap
    2005-05-13 18:35:20,897 DEBUG [org.springframework.core.CollectionFactory] Creating java.util.LinkedHashMap
    2005-05-13 18:35:20,897 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating shared instance of singleton bean 'messageSource'
    2005-05-13 18:35:20,897 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating instance of bean 'messageSource' with merged definition [Root bean with class [org.springframework.context.support.ResourceBundle MessageSource] defined in class path resource [applicationContext.xml]]
    2005-05-13 18:35:20,944 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Using session cookies default setting
    2005-05-13 18:35:20,944 DEBUG [tomcat.localhost./web-console.Context] Starting tomcat.localhost./web-console.Context
    2005-05-13 18:35:20,944 DEBUG [tomcat.localhost./web-console.Context] Configuring default Resources
    2005-05-13 18:35:20,960 DEBUG [tomcat.localhost./web-console.Context] Processing standard container startup
    2005-05-13 18:35:20,960 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Getting BeanInfo for class [org.springframework.context.support.ResourceBundle MessageSource]
    2005-05-13 18:35:20,975 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Caching PropertyDescriptors for class [org.springframework.context.support.ResourceBundle MessageSource]
    2005-05-13 18:35:20,975 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'basename' of type [java.lang.String]
    2005-05-13 18:35:20,975 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'basenames' of type [[Ljava.lang.String;]
    2005-05-13 18:35:20,975 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'class' of type [java.lang.Class]
    2005-05-13 18:35:20,975 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'classLoader' of type [java.lang.ClassLoader]
    2005-05-13 18:35:20,975 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'parentMessageSource' of type [org.springframework.context.MessageSource]
    2005-05-13 18:35:20,975 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'useCodeAsDefaultMessage' of type [boolean]
    2005-05-13 18:35:20,975 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Class [org.springframework.context.support.ResourceBundle MessageSource] is cache-safe
    2005-05-13 18:35:20,975 DEBUG [org.springframework.beans.BeanWrapperImpl] About to invoke write method [public void org.springframework.context.support.ResourceBundle MessageSource.setBasenames(java.lang.String[])] on object of class [org.springframework.context.support.ResourceBundle MessageSource]
    2005-05-13 18:35:20,975 DEBUG [org.springframework.beans.BeanWrapperImpl] Invoked write method [public void org.springframework.context.support.ResourceBundle MessageSource.setBasenames(java.lang.String[])] with value [[Ljava.lang.String;@722969]
    2005-05-13 18:35:20,975 DEBUG [tomcat.localhost./web-console.Context] Setting deployment descriptor public ID to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
    2005-05-13 18:35:20,975 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking BeanPostProcessors before initialization of bean 'messageSource'
    2005-05-13 18:35:20,991 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking BeanPostProcessors after initialization of bean 'messageSource'
    2005-05-13 18:35:20,991 INFO [org.springframework.context.support.ClassPathXmlAp plicationContext] Using MessageSource [org.springframework.context.support.ResourceBundle MessageSource: basenames=[format,exceptions,windows]]
    2005-05-13 18:35:20,991 INFO [org.springframework.context.support.ClassPathXmlAp plicationContext] Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicatio nEventMulticaster@10e0eb5]
    2005-05-13 18:35:20,991 DEBUG [org.springframework.context.support.ClassPathXmlAp plicationContext] Refreshing listeners
    2005-05-13 18:35:20,991 DEBUG [org.springframework.core.CollectionFactory] Creating java.util.LinkedHashMap
    2005-05-13 18:35:20,991 DEBUG [org.springframework.context.support.ClassPathXmlAp plicationContext] Found 0 listeners in bean factory
    2005-05-13 18:35:20,991 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [messageSource,logService]; root of BeanFactory hierarchy]
    2005-05-13 18:35:20,991 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Returning cached instance of singleton bean 'messageSource'
    2005-05-13 18:35:20,991 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating shared instance of singleton bean 'logService'
    2005-05-13 18:35:20,991 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating instance of bean 'logService' with merged definition [Root bean with class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] defined in class path resource [applicationContext.xml]]
    2005-05-13 18:35:21,007 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Getting BeanInfo for class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2005-05-13 18:35:21,007 DEBUG [tomcat.localhost./web-console.Context] Setting deployment descriptor public ID to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
    2005-05-13 18:35:21,022 DEBUG [tomcat.localhost./web-console.Context] Posting standard context attributes
    2005-05-13 18:35:21,022 DEBUG [tomcat.localhost./web-console.Context] Configuring application event listeners
    2005-05-13 18:35:21,022 DEBUG [tomcat.localhost./web-console.Context] Sending application start events
    2005-05-13 18:35:21,022 DEBUG [tomcat.localhost./web-console.Context] Starting filters
    2005-05-13 18:35:21,022 DEBUG [tomcat.localhost./web-console.Context] Starting filter 'CommonHeadersFilter'
    2005-05-13 18:35:21,022 DEBUG [org.jboss.web.tomcat.filters.ReplyHeaderFilter] Adding header name: X-Powered-By='Servlet 2.4; Tomcat-5.0.28/JBoss-4.0.1sp1 (build: CVSTag=JBoss_4_0_1_SP1 date=200502160314)'
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Caching PropertyDescriptors for class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'businessInterface' of type [java.lang.Class]
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'cacheHome' of type [boolean]
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'class' of type [java.lang.Class]
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'jndiEnvironment' of type [java.util.Properties]
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'jndiName' of type [java.lang.String]
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'jndiTemplate' of type [org.springframework.jndi.JndiTemplate]
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'lookupHomeOnStartup' of type [boolean]
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'object' of type [java.lang.Object]
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'objectType' of type [java.lang.Class]
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'resourceRef' of type [boolean]
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'singleton' of type [boolean]
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] is cache-safe
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.BeanWrapperImpl] About to invoke write method [public void org.springframework.jndi.JndiObjectLocator.setJndi Name(java.lang.String)] on object of class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.BeanWrapperImpl] Invoked write method [public void org.springframework.jndi.JndiObjectLocator.setJndi Name(java.lang.String)] with value [java:logService]
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.BeanWrapperImpl] Converting String to [boolean] using property editor [sun.beans.editors.BoolEditor@7e479a]
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.BeanWrapperImpl] About to invoke write method [public void org.springframework.jndi.JndiLocatorSupport.setRes ourceRef(boolean)] on object of class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.BeanWrapperImpl] Invoked write method [public void org.springframework.jndi.JndiLocatorSupport.setRes ourceRef(boolean)] with value [true]
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.BeanWrapperImpl] Converting String to [class java.lang.Class] using property editor [org.springframework.beans.propertyeditors.ClassEdi tor@8eed76]
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.BeanWrapperImpl] About to invoke write method [public void org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean.setBusinessInterface(java.lang. Class)] on object of class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2005-05-13 18:35:21,022 DEBUG [org.springframework.beans.BeanWrapperImpl] Invoked write method [public void org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean.setBusinessInterface(java.lang. Class)] with value [interface com.taifook.datasync.ejb.LogService]
    2005-05-13 18:35:21,038 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking BeanPostProcessors before initialization of bean 'logService'
    2005-05-13 18:35:21,038 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking afterPropertiesSet() on bean with beanName 'logService'
    2005-05-13 18:35:21,038 DEBUG [org.springframework.jndi.JndiTemplate] Looking up JNDI object with name [java:logService]
    2005-05-13 18:35:21,038 DEBUG [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] Located object with JNDI name [java:logService]
    2005-05-13 18:35:21,288 INFO [org.springframework.aop.framework.DefaultAopProxyF actory] CGLIB2 available: proxyTargetClass feature enabled
    2005-05-13 18:35:21,288 DEBUG [org.springframework.core.CollectionFactory] Creating java.util.IdentityHashMap
    2005-05-13 18:35:21,288 DEBUG [org.springframework.aop.framework.ProxyFactory] Added new aspect interface: com.taifook.datasync.ejb.LogService
    2005-05-13 18:35:21,303 DEBUG [org.springframework.aop.framework.JdkDynamicAopPro xy] Creating JDK dynamic proxy
    2005-05-13 18:35:21,335 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking BeanPostProcessors after initialization of bean 'logService'
    2005-05-13 18:35:21,335 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Calling code asked for FactoryBean instance for name 'logService'
    2005-05-13 18:35:21,335 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Returning cached instance of singleton bean 'logService'
    2005-05-13 18:35:21,335 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Bean with name 'logService' is a factory bean
    2005-05-13 18:35:21,335 DEBUG [org.springframework.context.support.ClassPathXmlAp plicationContext] Publishing event in context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=30386533]: org.springframework.context.event.ContextRefreshed Event[source=org.springframework.context.support.ClassPa thXmlApplicationContext: display name [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=30386533]; startup date [Fri May 13 18:35:20 GMT+08:00 2005]; root of context hierarchy]
    2005-05-13 18:35:21,335 INFO [STDOUT] ***** Calling writeLog
    2005-05-13 18:35:21,335 INFO [STDOUT] ***** Loading logService Bean
    2005-05-13 18:35:21,335 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Returning cached instance of singleton bean 'logService'
    2005-05-13 18:35:21,335 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Bean with name 'logService' is a factory bean
    2005-05-13 18:35:21,335 INFO [STDOUT] ***** Calling logService.log()
    2005-05-13 18:35:21,397 DEBUG [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] Trying to create reference to local EJB
    2005-05-13 18:35:21,460 DEBUG [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] Obtained reference to local EJB: java:logService:Stateless
    2005-05-13 18:35:21,475 DEBUG [org.springframework.jndi.JndiTemplate] Looking up JNDI object with name [java:comp/env/ejb/BeanFactoryPath]
    2005-05-13 18:35:21,475 INFO [org.springframework.context.access.ContextJndiBean FactoryLocator] BeanFactoryPath from JNDI is [applicationContext.xml]
    2005-05-13 18:35:21,475 INFO [org.springframework.beans.factory.xml.XmlBeanDefin itionReader] Loading XML bean definitions from class path resource [applicationContext.xml]
    2005-05-13 18:35:21,475 DEBUG [org.springframework.beans.factory.xml.XmlBeanDefin itionReader] Using JAXP implementation [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@ 1115a61]
    2005-05-13 18:35:21,475 DEBUG [org.springframework.context.support.ResourceEntity Resolver] Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd]
    2005-05-13 18:35:21,475 DEBUG [org.springframework.context.support.ResourceEntity Resolver] Trying to locate [spring-beans.dtd] under [/org/springframework/beans/factory/xml/]
    2005-05-13 18:35:21,475 DEBUG [org.springframework.context.support.ResourceEntity Resolver] Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Loading bean definitions
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Default lazy init 'false'
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Default dependency check 'none'
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Default autowire 'no'
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Found 2 <bean> elements defining beans
    2005-05-13 18:35:21,491 INFO [org.springframework.context.support.ClassPathXmlAp plicationContext] Bean factory for application context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=31636903]: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [messageSource,logService]; root of BeanFactory hierarchy
    2005-05-13 18:35:21,491 INFO [org.springframework.context.support.ClassPathXmlAp plicationContext] 2 beans defined in application context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=31636903]
    2005-05-13 18:35:21,491 DEBUG [org.springframework.core.CollectionFactory] Creating java.util.LinkedHashMap
    2005-05-13 18:35:21,491 DEBUG [org.springframework.core.CollectionFactory] Creating java.util.LinkedHashMap
    2005-05-13 18:35:21,491 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating shared instance of singleton bean 'messageSource'
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating instance of bean 'messageSource' with merged definition [Root bean with class [org.springframework.context.support.ResourceBundle MessageSource] defined in class path resource [applicationContext.xml]]
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Using cached introspection results for class [org.springframework.context.support.ResourceBundle MessageSource]
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.BeanWrapperImpl] About to invoke write method [public void org.springframework.context.support.ResourceBundle MessageSource.setBasenames(java.lang.String[])] on object of class [org.springframework.context.support.ResourceBundle MessageSource]
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.BeanWrapperImpl] Invoked write method [public void org.springframework.context.support.ResourceBundle MessageSource.setBasenames(java.lang.String[])] with value [[Ljava.lang.String;@44ac5e]
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking BeanPostProcessors before initialization of bean 'messageSource'
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking BeanPostProcessors after initialization of bean 'messageSource'
    2005-05-13 18:35:21,491 INFO [org.springframework.context.support.ClassPathXmlAp plicationContext] Using MessageSource [org.springframework.context.support.ResourceBundle MessageSource: basenames=[format,exceptions,windows]]
    2005-05-13 18:35:21,491 INFO [org.springframework.context.support.ClassPathXmlAp plicationContext] Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicatio nEventMulticaster@904f75]
    2005-05-13 18:35:21,491 DEBUG [org.springframework.context.support.ClassPathXmlAp plicationContext] Refreshing listeners
    2005-05-13 18:35:21,491 DEBUG [org.springframework.core.CollectionFactory] Creating java.util.LinkedHashMap
    2005-05-13 18:35:21,491 DEBUG [org.springframework.context.support.ClassPathXmlAp plicationContext] Found 0 listeners in bean factory
    2005-05-13 18:35:21,491 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [messageSource,logService]; root of BeanFactory hierarchy]
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Returning cached instance of singleton bean 'messageSource'
    2005-05-13 18:35:21,491 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating shared instance of singleton bean 'logService'
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating instance of bean 'logService' with merged definition [Root bean with class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] defined in class path resource [applicationContext.xml]]
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Using cached introspection results for class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.BeanWrapperImpl] About to invoke write method [public void org.springframework.jndi.JndiObjectLocator.setJndi Name(java.lang.String)] on object of class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.BeanWrapperImpl] Invoked write method [public void org.springframework.jndi.JndiObjectLocator.setJndi Name(java.lang.String)] with value [java:logService]
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.BeanWrapperImpl] Converting String to [boolean] using property editor [sun.beans.editors.BoolEditor@16b277f]
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.BeanWrapperImpl] About to invoke write method [public void org.springframework.jndi.JndiLocatorSupport.setRes ourceRef(boolean)] on object of class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.BeanWrapperImpl] Invoked write method [public void org.springframework.jndi.JndiLocatorSupport.setRes ourceRef(boolean)] with value [true]
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.BeanWrapperImpl] Converting String to [class java.lang.Class] using property editor [org.springframework.beans.propertyeditors.ClassEdi tor@1ee2ea8]
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.BeanWrapperImpl] About to invoke write method [public void org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean.setBusinessInterface(java.lang. Class)] on object of class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.BeanWrapperImpl] Invoked write method [public void org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean.setBusinessInterface(java.lang. Class)] with value [interface com.taifook.datasync.ejb.LogService]
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking BeanPostProcessors before initialization of bean 'logService'
    2005-05-13 18:35:21,491 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking afterPropertiesSet() on bean with beanName 'logService'
    2005-05-13 18:35:21,491 DEBUG [org.springframework.jndi.JndiTemplate] Looking up JNDI object with name [java:logService]
    2005-05-13 18:35:21,491 DEBUG [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] Located object with JNDI name [java:logService]
    2005-05-13 18:35:21,491 DEBUG [org.springframework.core.CollectionFactory] Creating java.util.IdentityHashMap
    2005-05-13 18:35:21,491 DEBUG [org.springframework.aop.framework.ProxyFactory] Added new aspect interface: com.taifook.datasync.ejb.LogService
    2005-05-13 18:35:21,491 DEBUG [org.springframework.aop.framework.JdkDynamicAopPro xy] Creating JDK dynamic proxy
    2005-05-13 18:35:21,522 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking BeanPostProcessors after initialization of bean 'logService'
    2005-05-13 18:35:21,522 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Calling code asked for FactoryBean instance for name 'logService'
    2005-05-13 18:35:21,522 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Returning cached instance of singleton bean 'logService'
    2005-05-13 18:35:21,522 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Bean with name 'logService' is a factory bean
    2005-05-13 18:35:21,522 DEBUG [org.springframework.context.support.ClassPathXmlAp plicationContext] Publishing event in context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=31636903]: org.springframework.context.event.ContextRefreshed Event[source=org.springframework.context.support.ClassPa thXmlApplicationContext: display name [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=31636903]; startup date [Fri May 13 18:35:21 GMT+08:00 2005]; root of context hierarchy]
    2005-05-13 18:35:21,522 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Returning cached instance of singleton bean 'logService'
    2005-05-13 18:35:21,522 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Bean with name 'logService' is a factory bean
    2005-05-13 18:35:21,522 DEBUG [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] Trying to create reference to local EJB
    2005-05-13 18:35:21,522 DEBUG [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] Obtained reference to local EJB: java:logService:Stateless
    2005-05-13 18:35:21,522 DEBUG [org.springframework.jndi.JndiTemplate] Looking up JNDI object with name [java:comp/env/ejb/BeanFactoryPath]
    2005-05-13 18:35:21,522 INFO [org.springframework.context.access.ContextJndiBean FactoryLocator] BeanFactoryPath from JNDI is [applicationContext.xml]
    2005-05-13 18:35:21,522 INFO [org.springframework.beans.factory.xml.XmlBeanDefin itionReader] Loading XML bean definitions from class path resource [applicationContext.xml]
    2005-05-13 18:35:21,522 DEBUG [org.springframework.beans.factory.xml.XmlBeanDefin itionReader] Using JAXP implementation [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@ 14c7deb]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.context.support.ResourceEntity Resolver] Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.context.support.ResourceEntity Resolver] Trying to locate [spring-beans.dtd] under [/org/springframework/beans/factory/xml/]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.context.support.ResourceEntity Resolver] Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Loading bean definitions
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Default lazy init 'false'
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Default dependency check 'none'
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Default autowire 'no'
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Found 2 <bean> elements defining beans
    2005-05-13 18:35:21,538 INFO [org.springframework.context.support.ClassPathXmlAp plicationContext] Bean factory for application context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=30507140]: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [messageSource,logService]; root of BeanFactory hierarchy
    2005-05-13 18:35:21,538 INFO [org.springframework.context.support.ClassPathXmlAp plicationContext] 2 beans defined in application context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=30507140]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.core.CollectionFactory] Creating java.util.LinkedHashMap
    2005-05-13 18:35:21,538 DEBUG [org.springframework.core.CollectionFactory] Creating java.util.LinkedHashMap
    2005-05-13 18:35:21,538 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating shared instance of singleton bean 'messageSource'
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating instance of bean 'messageSource' with merged definition [Root bean with class [org.springframework.context.support.ResourceBundle MessageSource] defined in class path resource [applicationContext.xml]]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Using cached introspection results for class [org.springframework.context.support.ResourceBundle MessageSource]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.BeanWrapperImpl] About to invoke write method [public void org.springframework.context.support.ResourceBundle MessageSource.setBasenames(java.lang.String[])] on object of class [org.springframework.context.support.ResourceBundle MessageSource]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.BeanWrapperImpl] Invoked write method [public void org.springframework.context.support.ResourceBundle MessageSource.setBasenames(java.lang.String[])] with value [[Ljava.lang.String;@17e6064]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking BeanPostProcessors before initialization of bean 'messageSource'
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking BeanPostProcessors after initialization of bean 'messageSource'
    2005-05-13 18:35:21,538 INFO [org.springframework.context.support.ClassPathXmlAp plicationContext] Using MessageSource [org.springframework.context.support.ResourceBundle MessageSource: basenames=[format,exceptions,windows]]
    2005-05-13 18:35:21,538 INFO [org.springframework.context.support.ClassPathXmlAp plicationContext] Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicatio nEventMulticaster@1ea817f]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.context.support.ClassPathXmlAp plicationContext] Refreshing listeners
    2005-05-13 18:35:21,538 DEBUG [org.springframework.core.CollectionFactory] Creating java.util.LinkedHashMap
    2005-05-13 18:35:21,538 DEBUG [org.springframework.context.support.ClassPathXmlAp plicationContext] Found 0 listeners in bean factory
    2005-05-13 18:35:21,538 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [messageSource,logService]; root of BeanFactory hierarchy]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Returning cached instance of singleton bean 'messageSource'
    2005-05-13 18:35:21,538 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating shared instance of singleton bean 'logService'
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating instance of bean 'logService' with merged definition [Root bean with class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] defined in class path resource [applicationContext.xml]]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Using cached introspection results for class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.BeanWrapperImpl] About to invoke write method [public void org.springframework.jndi.JndiObjectLocator.setJndi Name(java.lang.String)] on object of class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.BeanWrapperImpl] Invoked write method [public void org.springframework.jndi.JndiObjectLocator.setJndi Name(java.lang.String)] with value [java:logService]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.BeanWrapperImpl] Converting String to [boolean] using property editor [sun.beans.editors.BoolEditor@1264666]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.BeanWrapperImpl] About to invoke write method [public void org.springframework.jndi.JndiLocatorSupport.setRes ourceRef(boolean)] on object of class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.BeanWrapperImpl] Invoked write method [public void org.springframework.jndi.JndiLocatorSupport.setRes ourceRef(boolean)] with value [true]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.BeanWrapperImpl] Converting String to [class java.lang.Class] using property editor [org.springframework.beans.propertyeditors.ClassEdi tor@1d7f3f4]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.BeanWrapperImpl] About to invoke write method [public void org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean.setBusinessInterface(java.lang. Class)] on object of class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.BeanWrapperImpl] Invoked write method [public void org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean.setBusinessInterface(java.lang. Class)] with value [interface com.taifook.datasync.ejb.LogService]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking BeanPostProcessors before initialization of bean 'logService'
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking afterPropertiesSet() on bean with beanName 'logService'
    2005-05-13 18:35:21,538 DEBUG [org.springframework.jndi.JndiTemplate] Looking up JNDI object with name [java:logService]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] Located object with JNDI name [java:logService]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.core.CollectionFactory] Creating java.util.IdentityHashMap
    2005-05-13 18:35:21,538 DEBUG [org.springframework.aop.framework.ProxyFactory] Added new aspect interface: com.taifook.datasync.ejb.LogService
    2005-05-13 18:35:21,538 DEBUG [org.springframework.aop.framework.JdkDynamicAopPro xy] Creating JDK dynamic proxy
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking BeanPostProcessors after initialization of bean 'logService'
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Calling code asked for FactoryBean instance for name 'logService'
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Returning cached instance of singleton bean 'logService'
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Bean with name 'logService' is a factory bean
    2005-05-13 18:35:21,538 DEBUG [org.springframework.context.support.ClassPathXmlAp plicationContext] Publishing event in context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=30507140]: org.springframework.context.event.ContextRefreshed Event[source=org.springframework.context.support.ClassPa thXmlApplicationContext: display name [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=30507140]; startup date [Fri May 13 18:35:21 GMT+08:00 2005]; root of context hierarchy]
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Returning cached instance of singleton bean 'logService'
    2005-05-13 18:35:21,538 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Bean with name 'logService' is a factory bean
    2005-05-13 18:35:21,538 DEBUG [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] Trying to create reference to local EJB
    2005-05-13 18:35:21,538 DEBUG [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] Obtained reference to local EJB: java:logService:Stateless
    2005-05-13 18:35:21,538 DEBUG [org.springframework.jndi.JndiTemplate] Looking up JNDI object with name [java:comp/env/ejb/BeanFactoryPath]
    2005-05-13 18:35:21,553 INFO [org.springframework.context.access.ContextJndiBean FactoryLocator] BeanFactoryPath from JNDI is [applicationContext.xml]
    2005-05-13 18:35:21,553 INFO [org.springframework.beans.factory.xml.XmlBeanDefin itionReader] Loading XML bean definitions from class path resource [applicationContext.xml]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.factory.xml.XmlBeanDefin itionReader] Using JAXP implementation [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@ 81b83c]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.context.support.ResourceEntity Resolver] Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.context.support.ResourceEntity Resolver] Trying to locate [spring-beans.dtd] under [/org/springframework/beans/factory/xml/]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.context.support.ResourceEntity Resolver] Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Loading bean definitions
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Default lazy init 'false'
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Default dependency check 'none'
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Default autowire 'no'
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Found 2 <bean> elements defining beans
    2005-05-13 18:35:21,553 INFO [org.springframework.context.support.ClassPathXmlAp plicationContext] Bean factory for application context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=26465010]: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [messageSource,logService]; root of BeanFactory hierarchy
    2005-05-13 18:35:21,553 INFO [org.springframework.context.support.ClassPathXmlAp plicationContext] 2 beans defined in application context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=26465010]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.core.CollectionFactory] Creating java.util.LinkedHashMap
    2005-05-13 18:35:21,553 DEBUG [org.springframework.core.CollectionFactory] Creating java.util.LinkedHashMap
    2005-05-13 18:35:21,553 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating shared instance of singleton bean 'messageSource'
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating instance of bean 'messageSource' with merged definition [Root bean with class [org.springframework.context.support.ResourceBundle MessageSource] defined in class path resource [applicationContext.xml]]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Using cached introspection results for class [org.springframework.context.support.ResourceBundle MessageSource]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.BeanWrapperImpl] About to invoke write method [public void org.springframework.context.support.ResourceBundle MessageSource.setBasenames(java.lang.String[])] on object of class [org.springframework.context.support.ResourceBundle MessageSource]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.BeanWrapperImpl] Invoked write method [public void org.springframework.context.support.ResourceBundle MessageSource.setBasenames(java.lang.String[])] with value [[Ljava.lang.String;@4683c2]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking BeanPostProcessors before initialization of bean 'messageSource'
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking BeanPostProcessors after initialization of bean 'messageSource'
    2005-05-13 18:35:21,553 INFO [org.springframework.context.support.ClassPathXmlAp plicationContext] Using MessageSource [org.springframework.context.support.ResourceBundle MessageSource: basenames=[format,exceptions,windows]]
    2005-05-13 18:35:21,553 INFO [org.springframework.context.support.ClassPathXmlAp plicationContext] Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicatio nEventMulticaster@1743ff4]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.context.support.ClassPathXmlAp plicationContext] Refreshing listeners
    2005-05-13 18:35:21,553 DEBUG [org.springframework.core.CollectionFactory] Creating java.util.LinkedHashMap
    2005-05-13 18:35:21,553 DEBUG [org.springframework.context.support.ClassPathXmlAp plicationContext] Found 0 listeners in bean factory
    2005-05-13 18:35:21,553 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [messageSource,logService]; root of BeanFactory hierarchy]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Returning cached instance of singleton bean 'messageSource'
    2005-05-13 18:35:21,553 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating shared instance of singleton bean 'logService'
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating instance of bean 'logService' with merged definition [Root bean with class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] defined in class path resource [applicationContext.xml]]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Using cached introspection results for class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.BeanWrapperImpl] About to invoke write method [public void org.springframework.jndi.JndiObjectLocator.setJndi Name(java.lang.String)] on object of class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.BeanWrapperImpl] Invoked write method [public void org.springframework.jndi.JndiObjectLocator.setJndi Name(java.lang.String)] with value [java:logService]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.BeanWrapperImpl] Converting String to [boolean] using property editor [sun.beans.editors.BoolEditor@112bd54]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.BeanWrapperImpl] About to invoke write method [public void org.springframework.jndi.JndiLocatorSupport.setRes ourceRef(boolean)] on object of class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.BeanWrapperImpl] Invoked write method [public void org.springframework.jndi.JndiLocatorSupport.setRes ourceRef(boolean)] with value [true]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.BeanWrapperImpl] Converting String to [class java.lang.Class] using property editor [org.springframework.beans.propertyeditors.ClassEdi tor@14c0275]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.BeanWrapperImpl] About to invoke write method [public void org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean.setBusinessInterface(java.lang. Class)] on object of class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.BeanWrapperImpl] Invoked write method [public void org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean.setBusinessInterface(java.lang. Class)] with value [interface com.taifook.datasync.ejb.LogService]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking BeanPostProcessors before initialization of bean 'logService'
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking afterPropertiesSet() on bean with beanName 'logService'
    2005-05-13 18:35:21,553 DEBUG [org.springframework.jndi.JndiTemplate] Looking up JNDI object with name [java:logService]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] Located object with JNDI name [java:logService]
    2005-05-13 18:35:21,553 DEBUG [org.springframework.core.CollectionFactory] Creating java.util.IdentityHashMap
    2005-05-13 18:35:21,553 DEBUG [org.springframework.aop.framework.ProxyFactory] Added new aspect interface: com.taifook.datasync.ejb.LogService
    2005-05-13 18:35:21,553 DEBUG [org.springframework.aop.framework.JdkDynamicAopPro xy] Creating JDK dynamic proxy
    2005-05-13 18:35:21,553 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking BeanPostProcessors after initialization of bean 'logService'
    2005-05-13 18:35:21,569 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Calling code asked for FactoryBean instance for name 'logService'
    2005-05-13 18:35:21,569 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Returning cached instance of singleton bean 'logService'
    2005-05-13 18:35:21,569 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Bean with name 'logService' is a factory bean
    2005-05-13 18:35:21,569 DEBUG [org.springframework.context.support.ClassPathXmlAp plicationContext] Publishing event in context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=26465010]: org.springframework.context.event.ContextRefreshed Event[source=org.springframework.context.support.ClassPa thXmlApplicationContext: display name [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=26465010]; startup date [Fri May 13 18:35:21 GMT+08:00 2005]; root of context hierarchy]
    2005-05-13 18:35:21,569 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Returning cached instance of singleton bean 'logService'
    2005-05-13 18:35:21,569 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Bean with name 'logService' is a factory bean
    2005-05-13 18:35:21,569 DEBUG [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] Trying to create reference to local EJB
    2005-05-13 18:35:21,569 DEBUG [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] Obtained reference to local EJB: java:logService:Stateless
    2005-05-13 18:35:21,569 DEBUG [org.springframework.jndi.JndiTemplate] Looking up JNDI object with name [java:comp/env/ejb/BeanFactoryPath]
    2005-05-13 18:35:21,569 INFO [org.springframework.context.access.ContextJndiBean FactoryLocator] BeanFactoryPath from JNDI is [applicationContext.xml]
    2005-05-13 18:35:21,569 INFO [org.springframework.beans.factory.xml.XmlBeanDefin itionReader] Loading XML bean definitions from class path resource [applicationContext.xml]
    2005-05-13 18:35:21,569 DEBUG [org.springframework.beans.factory.xml.XmlBeanDefin itionReader] Using JAXP implementation [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@ 52f73e]
    2005-05-13 18:35:21,569 DEBUG [org.springframework.context.support.ResourceEntity Resolver] Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd]
    2005-05-13 18:35:21,569 DEBUG [org.springframework.context.support.ResourceEntity Resolver] Trying to locate [spring-beans.dtd] under [/org/springframework/beans/factory/xml/]
    2005-05-13 18:35:21,569 DEBUG [org.springframework.context.support.ResourceEntity Resolver] Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath
    2005-05-13 18:35:21,569 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Loading bean definitions
    2005-05-13 18:35:21,569 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Default lazy init 'false'
    2005-05-13 18:35:21,569 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Default dependency check 'none'
    2005-05-13 18:35:21,569 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Default autowire 'no'
    2005-05-13 18:35:21,569 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Found 2 <bean> elements defining beans
    2005-05-13 18:35:21,569 INFO [org.springframework.context.support.ClassPathXmlAp plicationContext] Bean factory for application context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=4630104]: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [messageSource,logService]; root of BeanFactory hierarchy
    2005-05-13 18:35:21,569 INFO [org.springframework.context.support.ClassPathXmlAp plicationContext] 2 beans defined in application context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=4630104]
    2005-05-13 18:35:21,569 DEBUG [org.springframework.core.CollectionFactory] Creating java.util.LinkedHashMap
    2005-05-13 18:35:21,569 DEBUG [org.springframework.core.CollectionFactory] Creating java.util.LinkedHashMap
    2005-05-13 18:35:21,569 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating shared instance of singleton bean 'messageSource'
    2005-05-13 18:35:21,569 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating instance of bean 'messageSource' with merged definition [Root bean with class [org.springframework.context.support.ResourceBundle MessageSource] defined in class path resource [applicationContext.xml]]
    2005-05-13 18:35:21,569 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Using cached introspection results for class [org.springframework.context.support.ResourceBundle MessageSource]
    2005-05-13 18:35:21,569 DEBUG [org.springframework.beans.BeanWrapperImpl] About to invoke write method [public void org.springframework.context.support.ResourceBundle MessageSource.setBasenames(java.lang.String[])] on object of class [org.springframework.context.support.ResourceBundle MessageSource]
    2005-05-13 18:35:21,569 DEBUG [org.springframework.beans.BeanWrapperImpl] Invoked write method [public void org.springframework.context.support.ResourceBundle MessageSource.setBasenames(java.lang.String[])] with value [[Ljava.lang.String;@8bfdea]
    2005-05-13 18:35:21,569 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking BeanPostProcessors before initialization of bean 'messageSour

  • #2
    Loading the ctx in the mdb does not sound correct to me.

    Comment


    • #3
      I couldn't find anything relevant inside the logs. The stackoverflow is caused by an infinte loop - it's very wierd that you are loading the context each time a message is received. I think this is where the problem occurs - probably by loading the context or retrieving the bean your bean gets called again which does the whole loop again.

      Comment


      • #4
        Btw, spring-with-dependencies should include aopalliance.

        Comment


        • #5
          Thanks Costin, I'll try it again.

          Originally posted by costin
          Btw, spring-with-dependencies should include aopalliance.
          BTW, I got this ClassNotFoundException if I did not include the aopalliance.jar in my lib. This seems odd to me.

          Here is the log.

          2005-05-17 09:52:26,871 INFO [org.springframework.beans.factory.xml.XmlBeanDefin itionReader] Loading XML bean definitions from class path resource [applicationContext.xml]
          2005-05-17 09:52:26,871 DEBUG [org.springframework.beans.factory.xml.XmlBeanDefin itionReader] Using JAXP implementation [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@ 1135cd9]
          2005-05-17 09:52:26,871 DEBUG [org.springframework.context.support.ResourceEntity Resolver] Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd]
          2005-05-17 09:52:26,871 DEBUG [org.springframework.context.support.ResourceEntity Resolver] Trying to locate [spring-beans.dtd] under [/org/springframework/beans/factory/xml/]
          2005-05-17 09:52:26,871 DEBUG [org.springframework.context.support.ResourceEntity Resolver] Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath
          2005-05-17 09:52:26,871 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Loading bean definitions
          2005-05-17 09:52:26,871 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Default lazy init 'false'
          2005-05-17 09:52:26,871 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Default dependency check 'none'
          2005-05-17 09:52:26,871 DEBUG [org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser] Default autowire 'no'
          2005-05-17 09:52:26,887 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException in method: public abstract void javax.jms.MessageListener.onMessage(javax.jms.Mess age), causedBy:
          org.springframework.beans.factory.BeanDefinitionSt oreException: Error registering bean with name 'logService' defined in class path resource [applicationContext.xml]: Bean class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] not found; nested exception is java.lang.ClassNotFoundException: Unexpected error during load of: org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean, msg=org/springframework/ejb/access/LocalSlsbInvokerInterceptor
          java.lang.ClassNotFoundException: Unexpected error during load of: org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean, msg=org/springframework/ejb/access/LocalSlsbInvokerInterceptor
          at org.jboss.mx.loading.RepositoryClassLoader.loadCla ssImpl(RepositoryClassLoader.java:501)
          at org.jboss.mx.loading.RepositoryClassLoader.loadCla ss(RepositoryClassLoader.java:374)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:2 35)
          at org.jboss.util.loading.DelegatingClassLoader.loadC lass(DelegatingClassLoader.java:77)
          at org.jboss.mx.loading.LoaderRepositoryClassLoader.l oadClass(LoaderRepositoryClassLoader.java:78)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:2 35)
          at org.jboss.util.loading.DelegatingClassLoader.loadC lass(DelegatingClassLoader.java:77)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:2 35)
          at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:302)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:219)
          at org.springframework.beans.factory.support.BeanDefi nitionReaderUtils.createBeanDefinition(BeanDefinit ionReaderUtils.java:60)
          at org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser.parseBeanDefinition(DefaultXmlB eanDefinitionParser.java:306)
          at org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser.parseBeanDefinition(DefaultXmlB eanDefinitionParser.java:274)
          at org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser.registerBeanDefinitions(Default XmlBeanDefinitionParser.java:186)
          at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.registerBeanDefinitions(XmlBeanDefinit ionReader.java:175)
          at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:133)
          at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:99)
          at org.springframework.context.support.AbstractXmlApp licationContext.loadBeanDefinitions(AbstractXmlApp licationContext.java:102)
          at org.springframework.context.support.AbstractXmlApp licationContext.loadBeanDefinitions(AbstractXmlApp licationContext.java:70)
          at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:87)
          at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:262)
          at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:80)
          at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:65)
          at com.taifook.datasync.mdb.MISLogMessageBean.onMessa ge(MISLogMessageBean.java:75)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.invocation.Invocation.performCall(Invoca tion.java:345)
          at org.jboss.ejb.MessageDrivenContainer$ContainerInte rceptor.invoke(MessageDrivenContainer.java:475)
          at org.jboss.resource.connectionmanager.CachedConnect ionInterceptor.invoke(CachedConnectionInterceptor. java:185)
          at org.jboss.ejb.plugins.MessageDrivenInstanceInterce ptor.invoke(MessageDrivenInstanceInterceptor.java: 87)
          at org.jboss.ejb.plugins.CallValidationInterceptor.in voke(CallValidationInterceptor.java:48)
          at org.jboss.ejb.plugins.AbstractTxInterceptor.invoke Next(AbstractTxInterceptor.java:105)
          at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTran sactions(TxInterceptorCMT.java:313)
          at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxIn terceptorCMT.java:146)
          at org.jboss.ejb.plugins.RunAsSecurityInterceptor.inv oke(RunAsSecurityInterceptor.java:94)
          at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInt erceptor.java:192)
          at org.jboss.ejb.plugins.ProxyFactoryFinderIntercepto r.invoke(ProxyFactoryFinderInterceptor.java:122)
          at org.jboss.ejb.MessageDrivenContainer.internalInvok e(MessageDrivenContainer.java:389)
          at org.jboss.ejb.Container.invoke(Container.java:870)
          at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invo ke(JMSContainerInvoker.java:967)
          at org.jboss.ejb.plugins.jms.JMSContainerInvoker$Mess ageListenerImpl.onMessage(JMSContainerInvoker.java :1253)
          at org.jboss.jms.asf.StdServerSession.onMessage(StdSe rverSession.java:256)
          at org.jboss.mq.SpyMessageConsumer.sessionConsumerPro cessMessage(SpyMessageConsumer.java:904)
          at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMess ageConsumer.java:159)
          at org.jboss.mq.SpySession.run(SpySession.java:351)
          at org.jboss.jms.asf.StdServerSession.run(StdServerSe ssion.java:180)
          at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(PooledExecutor.java:748)
          at java.lang.Thread.run(Thread.java:534)
          2005-05-17 09:52:26,887 ERROR [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Exception in JMSCI message listener
          javax.ejb.TransactionRolledbackLocalException: Error registering bean with name 'logService' defined in class path resource [applicationContext.xml]: Bean class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] not found; nested exception is java.lang.ClassNotFoundException: Unexpected error during load of: org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean, msg=org/springframework/ejb/access/LocalSlsbInvokerInterceptor; CausedByException is:
          Error registering bean with name 'logService' defined in class path resource [applicationContext.xml]: Bean class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] not found; nested exception is java.lang.ClassNotFoundException: Unexpected error during load of: org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean, msg=org/springframework/ejb/access/LocalSlsbInvokerInterceptor
          at org.jboss.ejb.plugins.AbstractTxInterceptor.invoke Next(AbstractTxInterceptor.java:232)
          at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTran sactions(TxInterceptorCMT.java:313)
          at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxIn terceptorCMT.java:146)
          at org.jboss.ejb.plugins.RunAsSecurityInterceptor.inv oke(RunAsSecurityInterceptor.java:94)
          at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInt erceptor.java:192)
          at org.jboss.ejb.plugins.ProxyFactoryFinderIntercepto r.invoke(ProxyFactoryFinderInterceptor.java:122)
          at org.jboss.ejb.MessageDrivenContainer.internalInvok e(MessageDrivenContainer.java:389)
          at org.jboss.ejb.Container.invoke(Container.java:870)
          at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invo ke(JMSContainerInvoker.java:967)
          at org.jboss.ejb.plugins.jms.JMSContainerInvoker$Mess ageListenerImpl.onMessage(JMSContainerInvoker.java :1253)
          at org.jboss.jms.asf.StdServerSession.onMessage(StdSe rverSession.java:256)
          at org.jboss.mq.SpyMessageConsumer.sessionConsumerPro cessMessage(SpyMessageConsumer.java:904)
          at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMess ageConsumer.java:159)
          at org.jboss.mq.SpySession.run(SpySession.java:351)
          at org.jboss.jms.asf.StdServerSession.run(StdServerSe ssion.java:180)
          at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(PooledExecutor.java:748)
          at java.lang.Thread.run(Thread.java:534)
          org.springframework.beans.factory.BeanDefinitionSt oreException: Error registering bean with name 'logService' defined in class path resource [applicationContext.xml]: Bean class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] not found; nested exception is java.lang.ClassNotFoundException: Unexpected error during load of: org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean, msg=org/springframework/ejb/access/LocalSlsbInvokerInterceptor
          java.lang.ClassNotFoundException: Unexpected error during load of: org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean, msg=org/springframework/ejb/access/LocalSlsbInvokerInterceptor
          at org.jboss.mx.loading.RepositoryClassLoader.loadCla ssImpl(RepositoryClassLoader.java:501)
          at org.jboss.mx.loading.RepositoryClassLoader.loadCla ss(RepositoryClassLoader.java:374)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:2 35)
          at org.jboss.util.loading.DelegatingClassLoader.loadC lass(DelegatingClassLoader.java:77)
          at org.jboss.mx.loading.LoaderRepositoryClassLoader.l oadClass(LoaderRepositoryClassLoader.java:78)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:2 35)
          at org.jboss.util.loading.DelegatingClassLoader.loadC lass(DelegatingClassLoader.java:77)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:2 35)
          at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:302)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:219)
          at org.springframework.beans.factory.support.BeanDefi nitionReaderUtils.createBeanDefinition(BeanDefinit ionReaderUtils.java:60)
          at org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser.parseBeanDefinition(DefaultXmlB eanDefinitionParser.java:306)
          at org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser.parseBeanDefinition(DefaultXmlB eanDefinitionParser.java:274)
          at org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser.registerBeanDefinitions(Default XmlBeanDefinitionParser.java:186)
          at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.registerBeanDefinitions(XmlBeanDefinit ionReader.java:175)
          at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:133)
          at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:99)
          at org.springframework.context.support.AbstractXmlApp licationContext.loadBeanDefinitions(AbstractXmlApp licationContext.java:102)
          at org.springframework.context.support.AbstractXmlApp licationContext.loadBeanDefinitions(AbstractXmlApp licationContext.java:70)
          at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:87)
          at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:262)
          at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:80)
          at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:65)
          at com.taifook.datasync.mdb.MISLogMessageBean.onMessa ge(MISLogMessageBean.java:75)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.invocation.Invocation.performCall(Invoca tion.java:345)
          at org.jboss.ejb.MessageDrivenContainer$ContainerInte rceptor.invoke(MessageDrivenContainer.java:475)
          at org.jboss.resource.connectionmanager.CachedConnect ionInterceptor.invoke(CachedConnectionInterceptor. java:185)
          at org.jboss.ejb.plugins.MessageDrivenInstanceInterce ptor.invoke(MessageDrivenInstanceInterceptor.java: 87)
          at org.jboss.ejb.plugins.CallValidationInterceptor.in voke(CallValidationInterceptor.java:48)
          at org.jboss.ejb.plugins.AbstractTxInterceptor.invoke Next(AbstractTxInterceptor.java:105)
          at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTran sactions(TxInterceptorCMT.java:313)
          at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxIn terceptorCMT.java:146)
          at org.jboss.ejb.plugins.RunAsSecurityInterceptor.inv oke(RunAsSecurityInterceptor.java:94)
          at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInt erceptor.java:192)
          at org.jboss.ejb.plugins.ProxyFactoryFinderIntercepto r.invoke(ProxyFactoryFinderInterceptor.java:122)
          at org.jboss.ejb.MessageDrivenContainer.internalInvok e(MessageDrivenContainer.java:389)
          at org.jboss.ejb.Container.invoke(Container.java:870)
          at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invo ke(JMSContainerInvoker.java:967)
          at org.jboss.ejb.plugins.jms.JMSContainerInvoker$Mess ageListenerImpl.onMessage(JMSContainerInvoker.java :1253)
          at org.jboss.jms.asf.StdServerSession.onMessage(StdSe rverSession.java:256)
          at org.jboss.mq.SpyMessageConsumer.sessionConsumerPro cessMessage(SpyMessageConsumer.java:904)
          at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMess ageConsumer.java:159)
          at org.jboss.mq.SpySession.run(SpySession.java:351)
          at org.jboss.jms.asf.StdServerSession.run(StdServerSe ssion.java:180)
          at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(PooledExecutor.java:748)
          at java.lang.Thread.run(Thread.java:534)

          Comment


          • #6
            Btw, spring-with-dependencies should include aopalliance.
            I made a small mistake: spring-with-dependencies is the distribution archive which contains inside the dependency jars and several spring jars (the full one but also the pieces with specific functionality).
            In my times of working with JBoss, I copied the spring.jar (the full one) inside JBOSS_SERVER/server/default/lib along with the needed dependecies.
            In your case the ClassNotFoundException doesn't point to any aopalliance classes but rather org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean (which is part of the spring distribution).

            Comment


            • #7
              Btw, spring-with-dependencies should include aopalliance.
              Just to be clear, the aopalliance JAR is required for AOP with spring 1.1.5. They are included in spring-aop.jar and spring.jar since 1.2 RC1.

              I got this ClassNotFoundException if I did not include the aopalliance.jar in my lib
              This appears to be a class-loading issue. Note that EJBs are normally higher in the classloading hierarchy, so it may not be able to see the spring.jar if it is deployed in the web. app.

              You can try packaging these dependencies in the EAR, and adding them to your EJB JAR manifest:
              Code:
              Class-Path&#58; spring.jar aopalliance.jar

              Comment

              Working...
              X