[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
starting a spring application  XML
Forum Index -> Terracotta for Spring
Author Message
jmc42

neo

Joined: 07/15/2010 08:08:42
Messages: 2
Offline


I am trying to start a spring application and get this error message:

1) Reconfigure to include the unshareable classes
* edit your tc-config.xml file
* locate the <dso> element
* add this snippet inside the <dso> element

<instrumented-classes>
<include>
<class-expression>org.springframework.aop.framework.JdkDynamicAopProx
y</class-expression>
</include>
</instrumented-classes>

I guess this is because it is analysing all my instrumented classes and has found the dao layer. I tried to fix this by specifying the dao to be transient but this does not work.

How do I get round this?

James
ilevy

consul

Joined: 04/16/2008 10:26:42
Messages: 357
Offline

One thing to ask first is do you need to use DSO? If you haven't looked at the standard (aka "express"), see the Terracotta product docs. Start at www.terracotta.org/documentation.
jmc42

neo

Joined: 07/15/2010 08:08:42
Messages: 2
Offline


I found another reference to the dao layer which references the spring jpatemplate and fixed the first problem and everything now starts up correctly.

I now have a problem when a method in a clustered object gets invoked.

The class is definitely included in the instrumentation and i have an
autolock on a method higher up in the execution process.

Does terrocatta recognise synchronized(this) as a boundary?

Do locks have to be configured for every method or just for the top level invocation?

James

The cause may be one or more of the following:
* Terracotta locking was not configured for the shared code.
* The code itself does not have synchronization that Terracotta
can use as a boundary.
* The class doing the locking must be included for instrumentation.
* The object was first locked, then shared.

at com.tc.object.tx.ClientTransactionManagerImpl.getTransaction(ClientTr
ansactionManagerImpl.java:202)
at com.tc.object.tx.ClientTransactionManagerImpl.fieldChanged(ClientTran
sactionManagerImpl.java:405)
at com.tc.object.TCObjectImpl.objectFieldChanged(TCObjectImpl.java:331)
manimoor

neo

Joined: 08/10/2011 00:50:45
Messages: 3
Offline

Hi..i provides hello world spring applications here,

Required fields:-

1)class name: A class name is the implementation of the bean class that is described in the bean definition.
2)bean behavioral configuration elements: Here we define the bean behavior that is bean initialization, dependency checking mode, destruction methods etc.
3)constructor arguments and property values efines the no of arguments and the property values that are to be set in the newly created bean.

applicationContext.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.abc.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.abc.org/schema/p"
xmlns:aop="http://www.abc.org/schema/aop"
xmlns:tx="http://www.abc.org/schema/tx"
xsi:schemaLocation="http://www.abc.org/schema/beans
http://www.abc.org/schema/beans/spring-beans-2.5.xsd
http://www.abc.org/schema/aop
http://www.abc.org/schema/aop/spring-aop-2.5.xsd
http://www.abc.org/schema/tx
http://www.abc.org/schema/tx/spring-tx-2.5.xsd">
</beans>


Cegonsoft
hachiush

neo

Joined: 02/15/2012 02:47:11
Messages: 4
Offline

I watch all the errors i think manimoor fix all as well if you thinks their are more then feel free to tell me i am here for help you.


tantric massage london
 
Forum Index -> Terracotta for Spring
Go to:   
Powered by JForum 2.1.7 © JForum Team