Search:

Type: Posts; User: sunfun; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. OutOfMemoryError with multiple deploys of Spring based application

    This seems to be common error:

    I see OutOfMemoryError when I deploy a spring based application in an app server. AspectJ type classes are not getting garbage collected. By looking at other...
  2. Replies
    2
    Views
    1,392

    Echo Example for beginner- without autowiring, annotation etc.

    I made some modifications to the sample code to make it work for me. It might help a new starter. Following are the steps:

    Create a project (e.g. Dynamic Web Project) e.g. MyEcho. So the context...
  3. Replies
    2
    Views
    1,392

    Help with echo example

    Trying my first Spring web service, downloaded the sample code. Have a few questions.

    \WEB-INF\spring-ws-servlet.xml


    <?xml version="1.0" encoding="UTF-8"?>
    <beans...
  4. If parent XSD imports many other XSD, is it sufficient to only include parent XSD?

    I have a scenario where a XSD (e.g. A.xsd) imports many other (children) XSDs. The child XSDs have different namespace. Source of all the XSDs(parent and many childern) is avialable and under the...
  5. Arguments and return type from org.aspectj.lang.Signature, or ProceedingJoinPoint

    I would like to find the return type of the method from org.aspectj.lang.Signature and org.aspectj.lang.ProceedingJoinPoint classes.

    My code is like:



    Object myTargetClass =...
  6. Renamed "ehcache.xml" to "my.xml"-Cannot find the declaration of element 'ehcache'

    Using ehcache1.5 and Spring 2.5.

    The code works successfully, as long as I keep the name of the XML as default "ehcache.xml". I can load it using code:



    CacheManager.create()


    However,...
  7. ClassCastException: $Proxy21 incompatible-run JUnit-migrate from Spring 2.5 to 3.0.2

    I migrated my Spring 2.5 app to 3.0.2 jar and JUnit 4.7 jar. I have the latest jar files, as obtained from Spring 3.0.2, including their latest CGLIB jar.

    I am running the JUnit, that I ran...
  8. Documentation/Roadmap for migrating Spring 2.5 app to 3.0.2

    I originally posted this question under Spring Integration. I was suggested that I post this question in Spring Core.

    I am not sure if Spring core is the correct forum either for this question.
    ...
  9. Added com.ibm.ws.runtime_6.1.0.jar in classpath, still same exception

    I added com.ibm.ws.uow.UOWManagerin the classpath, verified that com.ibm.ws.uow.UOWManager is indeed available in that com.ibm.ws.uow.UOWManager and still see the exact same exception as:


    ...
  10. BeanCreationException Invalid Implementation Key, com.ibm.ws.uow.UOWManager

    I am switching from Spring 2.5 to Spring 3.0.2. The JUnit code ran before with Spring 2.0.5. After switching jars to Spring 3.0.2, the same JUnit is throwing exception when I run it. I do not have...
  11. Documentation on migrating Spring 2.5 app to Spring 3.0.2

    Could you please point me to some documentation, or road map, or URL containing comprehensive documentation on how to migrate Spring 2.5 application to Spring 3.0.2?

    In addition, any...
  12. UnsatisfiedDependencyException after changing to Spring 3.0.2 jar files (from 2.5)

    My project was using Spring 2.5 jar files. I migrated that project to use Spring 3.0.2 jar files and got rid of compilation erros. I am using org.springframework.. jar files. But I kept old I got...
  13. UnsatisfiedDependencyException after changing to Spring 3.0.2 jar files (from 2.5)

    My project was using Spring 2.5 jar files. I migrated that project to use Spring 3.0.2 jar files and got rid of compilation erros. I am using org.springframework.. jar files. But I kept old I got...
  14. Is it a unreasobale question to ask for reference for migrating Spring 2.5 to 3.0.2?

    I could not find anything substantial in Spring forum. Google search does not bring anything meaningful either. Oh, forgot to tell you that Google search brought several hits on migratory birds.
    ...
  15. Documentation on migrating Spring 2.5 app to Spring 3.0.2

    Could you please point me to some documentation and user guide on how to migrate Spring 2.5 application to Spring 3.0.2?
  16. How to count the number of Spring bean instances that are live?

    How to count the number of singleton Spring bean instances that are live? Any help with code sample?
  17. Implication of NOT specifying timeout in tx:method

    I would like to know the implication of not specifying timeout in tx:method. For example, the code below does not have any timeout specified e..g, as timeout="5"



    <tx:method
    ...
  18. Replies
    4
    Views
    2,527

    AbstractApplicationContext.close() not destroying beans, nor making the contxt null

    if(applicationContext instanceof AbstractApplicationContext){
    //This condition is true and the code below is executed
    AbstractApplicationContext abstractApplicationContext =...
  19. Replies
    4
    Views
    2,527

    Destroy bean and terminate Spring container

    I cannot terminate the JVM (e.g. by calling System.exit(1) for stand-alone) as such, any code written in registerShutdownHook will not get invoked.

    On the contrary, if an exception condition is...
  20. Define enum as Spring Bean and dependency inject it into another Spring Bean

    I am getting exception when I define an enum class as a Spring bean.



    package org.poc;

    public enum MyEnum {
    VAL1,
    VAL2;
    }
  21. Is there any Spring exception that can be thrown to stop an app mid-way in its start

    I want to programmatically shut down the application from starting, e.g., mid-way, if a certain condition is raised. I do not want code as System.exit(1) as it will terminate the entire JVM and more...
  22. How to stop Spring container mid-way in its start programmatically

    I may want to programmatically shut down the spring container e.g. mid-way, if a certain condition is raised. I do not want code as System.exit(1) as it will terminate the entire JVM and more than 1...
  23. static member variable in a singleton Spring bean

    public class MySpringBean {

    private static MyDIClass myDIClass;
    // setter for myDIClass

    static{

    // myDIClass is referenced here
    }
    }
  24. I stand corrected. I can have argument in...

    I stand corrected.

    I can have argument in MyDao update method as update(IDomain xyz) using the configuration that I posted.
  25. args(myObj) forces me to name variable as myObj

    If the exact name of the argument (which is myObj) from aroundUpdate is passed in as args(myObj) in my pointcut, then aroundUpdate successfully gets the corresponding object inside the body of...
Results 1 to 25 of 51
Page 1 of 3 1 2 3