I did as you suggested. I loaded the app under tomcat, and it works as
usual. Then I shutdown tomcat and ran it under jetty and got this
exception:
7233 [main] INFO com.tcspring.DistributableBeanFactoryMixin - ptAppsRoot
registering transient fields for tc-cache-map-factory
com.protrade.common.cache.CacheFactory
com.tc.exception.TCClassNotFoundException:
java.lang.ClassNotFoundException: No registered loader for description:
Tomcat.Catalina:localhost:/fbracket, trying to load
com.tcspring.ComplexBeanId
at
com.tc.object.ClientObjectManagerImpl.lookupOrCreateRoot(ClientObjectManagerImpl.java:600)
at
com.tc.object.bytecode.ManagerImpl.lookupOrCreateRoot(ManagerImpl.java:287)
at
com.tc.object.bytecode.ManagerImpl.lookupOrCreateRoot(ManagerImpl.java:266)
at
com.tc.object.bytecode.ManagerUtil.lookupOrCreateRoot(ManagerUtil.java:130)
at
com.tcspring.DistributableBeanFactoryMixin$ManagerUtilWrapperImpl.lookupOrCreateRoot(DistributableBeanFactoryMixin.java:419)
at
com.tcspring.DistributableBeanFactoryMixin.registerBeanDefinitions(DistributableBeanFactoryMixin.java:221)
at
org.springframework.beans.factory.support.AbstractBeanFactory.registerBeanDefinitions(AbstractBeanFactory.java)
....
...
Eugene Kuleshov wrote:
> Hi Fernando,
>
> By default Terracotta for Spring is naming those roots using synthetic
> name derived from the matching web application name and matching spring
> config names. There is a FAQ entry about that in the "Troubleshooting
> Guide" linked from the on Terracotta home page. See
>
https://terracotta.org/confluence/display/wiki/Troubleshooting+Guide#TroubleshootingGuide-TerracottaforSpring...
>
> So you can override that root name in your tc-config.xml using
> <root-name> element:
>
> ...
> <application>
> <spring>
> <jee-application>
> <application-contexts>
> <application-context>
> <root-name>myClusteredSpringContext</root-name>
> ...
>
> regards,
> Eugene Kuleshov
>
> PS: it feels like I am the only one answering all the questions today,
> but by strange coincidence those happens to be from my area of expertise
>
>
> Fernando Padilla wrote:
>> I want to run my webapp through tomcat, jetty and mvn jetty:run, but
>> when I did, I noticed that terracotta was generating unique roots for
>> different ways that I launch the web application; and for each different
>> context path that I launch my webapp under.. ( so developers can't share
>> roots )
>>
>> This is very disappointing. How can I get this working?
>>
>> -------
>> tc:spring_info.appName is coming up with different things:
>>
>> fbracket
>> Jetty.path=/fbracket
>> Jetty.path=/fannetwork
>>
>
>
>
> _______________________________________________
> tc-users mailing list
>
tc-users@...
>
http://lists.terracotta.org/mailman/listinfo/tc-users_______________________________________________
tc-users mailing list
tc-users@...
http://lists.terracotta.org/mailman/listinfo/tc-users