You are right, it's more than unit testing. I had the problem to enshure that some pre defined SOAP requests could be processed.
Feel free to use it.
MfG Mirko
Type: Posts; User: mzeibig; Keyword(s):
You are right, it's more than unit testing. I had the problem to enshure that some pre defined SOAP requests could be processed.
Feel free to use it.
MfG Mirko
I had the same problem. Here is my solution.
Subclass AbstractMessageContext:
package xy;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
If you have control over the WebSphere installation, you can also try this:
locate the jre lib directory of your application server (/IBM/WebSphere/AppServer/java/jre/lib)
create a directory...
Try to define your alias on your 'signatureKeyStoreHandler':
<bean id="signatureKeyStoreHandler" class="org.springframework.ws.soap.security.xwss.callback.KeyStoreCallbackHandler">
<property...
Did you add jars into the classpath of your tomcat?
Don't do it.
All additional jars have to bin inside of your app (war file), in the 'WEB-INF/lib' directory. Otherwise you will get strange...
Download spring-framework-x.x.x-with-dependencies.zip and add the asm-*.jar files from the lib/asm dir to your app.
You need asm for cglib.
Did you include the asm-*.jar in your application?
Which versions of Spring and Tomcat are you using?
... or have a look at this
http://support.bea.com/application_content/product_portlets/support_patterns/wls/InvestigatingTransactionProblemsPattern.html
You can also switch on some tx-logging in wls with:
-Dweblogic.Debug=weblogic.JTAXA,weblogic.JTA2PC,weblogic.JTAJDBC
You can control this behavior with the property 'globalRollbackOnParticipationFailure' of 'AbstractPlatformTransactionManager'.
MfG Mirko
We have an application which creates some data in the database using
HibernateTemplate.persist(..) and looks up for this data with
HibernateTemplate.find(..) later within the same transaction.
...
Instead of calling EJBs remotely you can use Spring Remoting (with Spring HTTP Invoker). You will need a combination of HttpInvokerServiceExporter and HttpInvokerProxyFactoryBean.
MfG Mirko
It depends on the features you are using. HSQLDB does not support all the datatypes of oracle. You will also have some problems with Oracle specific selects (rowid, functions, ...).
So I ended up...
Try to start your server with:
-Dlog4j.debug
MfG Mirko
Have a look at this:
http://forum.hibernate.org/viewtopic.php?t=934050
You will need a newer JDBC-Driver.
MfG Mirko
Check the name of the datasource property in ProductJDBCDAO.
The one You use is 'ds'. Are You sure it is not called 'dataSource'?
<bean id="productJDBCDAO"...
Have a look at @SuppressWarnings("unchecked"). This will do what its name says.
In the compiler settings section of Your project properties You can also fine tune, what will be reported as error or...
I had to use the model of another system without the option to extend it. To make it persistent I needed a primary key which is not exposed outside my code (real problem but only an example of what...
I can tell You about a real problem I had:
Let's declare a class A:
public class A {
private String a;
private String b;
public void setA(final String a) {
I would prefer the first code. The second can result in some trouble (in my experience).
MfG Mirko
... or Your hava a classloading problem.
MfG Mirko
It is included in Spring Modules
https://springmodules.dev.java.net/
MfG Mirko
Depends on Your compiler.
You can suppress warnings with something like:
@SuppressWarnings("unchecked")
MfG Mirko
You can switch on some debugging output:
-Dweblogic.Debug=weblogic.JTAXA,weblogic.JTA2PC,weblogic.JTAJDBC
Or have a look at this document:...