File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Problem using Spring 3.0.2 & Atomikos Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Problem using Spring 3.0.2 & Atomikos" Watch "Problem using Spring 3.0.2 & Atomikos" New topic
Author

Problem using Spring 3.0.2 & Atomikos

Duffman Be
Greenhorn

Joined: Nov 14, 2009
Posts: 7
Hello,

I need to implement 2 phase commit into my application. To get started, I tried making this tutorial:
http://doitifucan.wordpress.com/2010/03/23/distributed-transactions-with-springatomikos-and-tomcat/

When I try to define a bean of the class "TransactionProxyFactoryBean" however, I can't set the "target" attribute. Does anyone know how to fix this problem or why it seems to be deleted from the TransactionProxyFactoryBean-class? I upload my source code to this address: click here. I also added a screenshot of the libraries I'm using.

Greetz,
Duffman-

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17256
    
    6

Why not?

The class extends another class that defines the target attribute and a setter method for it called setTarget()

and you are saying adding

<property name="target" ref=""/>

is not working at all?

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Duffman Be
Greenhorn

Joined: Nov 14, 2009
Posts: 7
Hi,

what I mean is, is that my intelliJ marks the "target"-attribute in red saying: cannot resolve property "target.
Does anyone maybe have a working source of that tutorial?

When I try running it, I get these errors:
cmd /c C:\apache-tomcat-6.0.24\bin\catalina.bat run
Using CATALINA_BASE: C:\Users\Simon\.IntelliJIdea90\system\tomcat\Unnamed_testAtomikos1c53a02b
Using CATALINA_HOME: C:\apache-tomcat-6.0.24
Using CATALINA_TMPDIR: C:\apache-tomcat-6.0.24\temp
Using JRE_HOME: C:\Program Files\Java\jdk1.6.0_18
Using CLASSPATH: C:\apache-tomcat-6.0.24\bin\bootstrap.jar
5-mei-2010 22:53:27 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_18\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\CollabNet\Subversion Client;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\libs\apache-maven-2.2.1\bin;c:\program files\jetbrains\intellij idea 9.0.1\jre\jre\bin
5-mei-2010 22:53:28 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
5-mei-2010 22:53:28 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 517 ms
5-mei-2010 22:53:28 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
5-mei-2010 22:53:28 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.24
5-mei-2010 22:53:28 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
5-mei-2010 22:53:28 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
5-mei-2010 22:53:28 org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
5-mei-2010 22:53:28 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
5-mei-2010 22:53:28 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
5-mei-2010 22:53:28 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
5-mei-2010 22:53:29 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory host-manager
5-mei-2010 22:53:29 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
5-mei-2010 22:53:29 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
5-mei-2010 22:53:29 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
5-mei-2010 22:53:29 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/28 config=null
5-mei-2010 22:53:29 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1165 ms
Connected to server



Greetz
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17256
    
    6

I had similar issues when dealing with Spring Security, in which I later found out the xsd in my xml header part was the wrong version. The other possibility is the correct version of the class not being in the projects classpath.

Mark
 
wood burning stoves
 
subject: Problem using Spring 3.0.2 & Atomikos