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...
Type: Posts; User: nyname00; Keyword(s):
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...
Hi,
try
...
<bean id="inner" class="innerbeans.Outer$Inner">
<property name="innername" value="helloinner"/>
</bean>
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...
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...
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...
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...
Hi,
something like this should do the job (in your applicationContext.xml):
<bean id="dataSource" class="...dbcp.BasicDataSource">
<property...
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...
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...
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
Hi,
I think the problem here is the setFunction(true). Try setting it to false when calling the procedure.
Mario
Hi, your config looks ok. How are you obtaining your Contract(DAO) bean from the BeanFactory?
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
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...
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,...
Hi,
using placeholders in your <import ... definition won't work, cause PropertyPlaceholderConfigurer only checks
Mario
Hi,
take a look at http://www.mchange.com/projects/c3p0/index.html.
Mario
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...
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...
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,...
...
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...
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. ...
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() throws Exception {
super.setUp();
...
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();
Session ses =...
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.