Search:

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

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    0
    Views
    799

    getFormErrors() creating formObject

    Hi,

    I had the following "problem" with pr5 and the latest nightly build...

    when calling getFormErrors() before any setupForm() call, getFormErrors will create a new formObject. So far, no...
  2. Replies
    2
    Views
    1,230

    Hi, try ...

    Hi,

    try


    ...
    <bean id="inner" class="innerbeans.Outer$Inner">
    <property name="innername" value="helloinner"/>
    </bean>
  3. Hi, the shared/lib directory should be the...

    Hi,

    the shared/lib directory should be the right place to put your libs in.
    Take a look at your .../Tomcat/conf/catalina.properties. You should
    find an entry like the following at the end of...
  4. Replies
    6
    Views
    1,219

    Rakesh, for pool specific properties just add...

    Rakesh,

    for pool specific properties just add another property. For example


    <property name="maxActive"><value>10</value></property>

    Take a look the BasicDataSource api docs for available...
  5. Replies
    6
    Views
    1,219

    Hi apyles, I'm not sure if i'm getting your...

    Hi apyles,

    I'm not sure if i'm getting your point, but BasicDataSource is a pooling datasource.
    When replacing BasicDataSource with PoolingDriver in the example above,
    how do you provide the...
  6. Replies
    2
    Views
    2,235

    Hi, for lazy loading to work in a webapp you...

    Hi,

    for lazy loading to work in a webapp you will have to put a OpenSessionInViewFilter/OpenSessionInViewInterceptor into your web.xml.
    If you're not in a webapp you will have to init it...
  7. Replies
    6
    Views
    1,219

    Hi, something like this should do the job (in...

    Hi,
    something like this should do the job (in your applicationContext.xml):


    <bean id="dataSource" class="...dbcp.BasicDataSource">
    <property...
  8. Take a look at the spring reference docs 1.2,...

    Take a look at the spring reference docs 1.2, chapter 7.4. Declarative transaction management.
    I couldn't find the transaction attributes and isolation levels there, but they are documented in the...
  9. Hi, it doesn't matter what causes the...

    Hi,

    it doesn't matter what causes the exception (hibernate, mailapi,...). Check your sendMail.send(..) function, if it throws a checked Exception you have to tell spring to rollback the...
  10. Hi, are you using the Oracle 9i drivers...

    Hi,
    are you using the Oracle 9i drivers (odbc14.jar)?. If so, try to switch to the Oracle 10 drivers, as far as i know there should not be such a 4K limit.

    regards,
    Mario
  11. Replies
    3
    Views
    1,183

    Hi, I think the problem here is the...

    Hi,
    I think the problem here is the setFunction(true). Try setting it to false when calling the procedure.

    Mario
  12. Replies
    2
    Views
    1,199

    Hi, your config looks ok. How are you obtaining...

    Hi, your config looks ok. How are you obtaining your Contract(DAO) bean from the BeanFactory?
  13. Thread: Get Resources

    by nyname00
    Replies
    1
    Views
    1,020

    Hi, you have to move your reports file to the...

    Hi,
    you have to move your reports file to the WEB-INF/classes dirctory in your webapp.
    Or you just use FileSystemResource with the full path (or relative from TOMCAT_HOME/bin)

    regards,
    Mario
  14. Using spring 1.2-rc1 it should work. But you will...

    Using spring 1.2-rc1 it should work. But you will have to specify an ignoreList containing the missing properties in your target class, else spring will raise an exception.
    Another problem could be...
  15. Hi, up to spring 1.1.1, the source and target...

    Hi,
    up to spring 1.1.1, the source and target for BeanUtils#copyProperties have to be an instance of the same class.
    Maybe this has been changed in later versions, but if commons BeanUtils work,...
  16. Hi, using placeholders in your

    Hi,
    using placeholders in your <import ... definition won't work, cause PropertyPlaceholderConfigurer only checks


    Mario
  17. Replies
    2
    Views
    1,813

    Hi, take a look at...

    Hi,
    take a look at http://www.mchange.com/projects/c3p0/index.html.

    Mario
  18. Ok, i can now reproduce the error. I found out...

    Ok, i can now reproduce the error. I found out that when you move the InputStreamSource#getInputStream() to Resource and
    kick the InputStreamSource interface, the toString() works (i have no clue...
  19. hmmm... thats strange. Cause the Resource classes...

    hmmm... thats strange. Cause the Resource classes do implement the toString() method - see AbstractResource. And even if they wouldn't it should work anyway.
    I tried to create a Resource and...
  20. Hi, i don't think spring or the logger is the...

    Hi,
    i don't think spring or the logger is the problem here. try to find out the differences between your local and your server environment, including tomcat version, lib versions, jvm version,...
    ...
  21. Replies
    7
    Views
    2,925

    You can of course use a simple JUnit TestCase...

    You can of course use a simple JUnit TestCase here (thats what i'm doing). According to the javadoc "you should not normally use the Spring container for unit tests".

    I'm not sure if there would...
  22. Replies
    7
    Views
    2,925

    Oh, you're right - sorry. In this case you could...

    Oh, you're right - sorry.
    In this case you could try to extend AbstractDependencyInjectionSpringContextTests and override onSetUp() and onTearDown(). But then you'd have to rollback manually. ...
  23. Replies
    7
    Views
    2,925

    Hi I tried the following and it works fine for...

    Hi
    I tried the following and it works fine for me. I don't know if it will work in your case or if you've already tried it ...


    public void setUp&#40;&#41; throws Exception &#123;
    super.setUp&#40;&#41;;
    ...
  24. Replies
    5
    Views
    1,333

    The LocalSessionFactoryBean should be the right...

    The LocalSessionFactoryBean should be the right place to do this. As an alternative you can try to assign the filter manually:


    Interceptor intercept = new LobCleanUpInterceptor&#40;&#41;;
    Session ses =...
  25. Replies
    5
    Views
    1,333

    But your update works without the interceptor? ...

    But your update works without the interceptor?

    In which method do you clean your lobs (onSave, postFlush, ...)? Make sure not to clean up before the session is flushed.
Results 1 to 25 of 33
Page 1 of 2 1 2