This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem using Spring 3.0.2 & Atomikos

 
Duffman Be
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Duffman Be
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic