<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Classloader woes"]]></title>
		<link>http://forums.terracotta.org/forums/posts/list/5.page</link>
		<description><![CDATA[Latest messages posted in the topic "Classloader woes"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Classloader woes</title>
				<description><![CDATA[ Howdy all!

We're now getting closer to deployment and we're testing in a more realistic way (always dangerous :-)).
Now problems are cropping up. 

In our design we have several jboss nodes that use tc to communicate with a server (<i>eh</i>. We use LBQ:s for the communication.
We have 3 different (the default webapp, <i>ws</i> & <i>bnet</i>)  webapps deployed in jboss. In production there is only one app running on each node (the other disabled in application.xml) but in testing we want allt three to be enabled on the same node. 
We've got it working with the default sending messages to eh but when we try to enable bnet we get a ClassNotFoundException on the class we use as a LBQ wrapper (which is shared and accessible from a root). 
To alleviate the problem we found the <app-groups> tag and added this: 
<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">
        &lt;dso&gt;
            &lt;app-groups&gt;
                &lt;app-group name="eventHorizon"&gt;
                    &lt;web-application&gt;ROOT&lt;/web-application&gt;
                    &lt;web-application&gt;bnet&lt;/web-application&gt;
                    &lt;web-application&gt;ws&lt;/web-application&gt;
                    &lt;named-classloader&gt;Standard.system&lt;/named-classloader&gt;
                &lt;/app-group&gt;
            &lt;/app-groups&gt;
    </pre>
		</div>

And suddenly nothing works. Now we can't send from ws either and I'm a bit lost here.
I'm pretty certain it is a class-loader thing, the debug printouts and exceptions point to it. Any pointers to a solution would be greatly appreciated.

Full tc-config here:


]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/2628.page#15603</guid>
				<link>http://forums.terracotta.org/forums/posts/list/2628.page#15603</link>
				<pubDate><![CDATA[Thu, 22 Oct 2009 02:57:02]]> GMT</pubDate>
				<author><![CDATA[ erik_s]]></author>
			</item>
			<item>
				<title>Re:Classloader woes</title>
				<description><![CDATA[ An even simpler formulation of this app-group/classloader issue:

Two web apps A and B are running on different web servers.
Both need to communicate with a POJO application on a third server. How should this be configured? 

One attempt: On host running A:

<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">
&lt;app-groups&gt;
   &lt;app-group name="myGroup"&gt;
      &lt;web-application&gt;A&lt;/web-application&gt;
      &lt;named-classloader&gt;Standard.system&lt;/named-classloader&gt;
   &lt;/app-group&gt;
&lt;/app-groups&gt;
</pre>
		</div>

On host running B:

<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">
&lt;app-groups&gt;
   &lt;app-group name="myGroup"&gt;
      &lt;web-application&gt;B&lt;/web-application&gt;
      &lt;named-classloader&gt;Standard.system&lt;/named-classloader&gt;
   &lt;/app-group&gt;
&lt;/app-groups&gt;
</pre>
		</div>

Another alternative, on both hosts:

<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">
&lt;app-groups&gt;
   &lt;app-group name="myGroup"&gt;
      &lt;web-application&gt;A&lt;/web-application&gt;
      &lt;web-application&gt;B&lt;/web-application&gt;
      &lt;named-classloader&gt;Standard.system&lt;/named-classloader&gt;
   &lt;/app-group&gt;
&lt;/app-groups&gt;
</pre>
		</div>

All applications communicate objects declared in a jar library shared between all applications, e.g. in WEB-INF/lib of the web apps, and in the classpath of the POJO app.

The app-group documentation isn't clear beyond the two basic cases covered there -  multiple web-apps, and web-app+pojo, so any help appreciated!

Regards

Anders

]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/2628.page#15613</guid>
				<link>http://forums.terracotta.org/forums/posts/list/2628.page#15613</link>
				<pubDate><![CDATA[Thu, 22 Oct 2009 08:02:17]]> GMT</pubDate>
				<author><![CDATA[ a_forsgren]]></author>
			</item>
			<item>
				<title>Re:Classloader woes</title>
				<description><![CDATA[ Howdy again!

Now we've gotten a bit further and actually got it to work. We renamed the named webapp so that we now have the following:

Two webapps, A and B. Different webapps but now both named '/' in application.xml.
A pojoapp C.

The app-group part of tc-config looks like this :
<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">
&lt;app-groups&gt;
    &lt;app-group name="myGroup1"&gt;
       &lt;named-classloader&gt;Standard.system&lt;/named-classloader&gt;
   &lt;/app-group&gt;
    &lt;app-group name="myGroup2"&gt;
       &lt;web-application&gt;ROOT&lt;/web-application&gt;
       &lt;named-classloader&gt;Standard.system&lt;/named-classloader&gt;
    &lt;/app-group&gt;
 &lt;/app-groups&gt;
</pre>
		</div>

This one is deployed on all 3 nodes. 
This seems to work so far.

This is not ideal, however. We would like to change the context of the webb-apps.

As before, any hints greatly appreciated. 

Btw, the app-group named myGroup1, is it meaningful in any way?

cheer
Erik Svensson, Memnon]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/2628.page#15618</guid>
				<link>http://forums.terracotta.org/forums/posts/list/2628.page#15618</link>
				<pubDate><![CDATA[Thu, 22 Oct 2009 09:12:55]]> GMT</pubDate>
				<author><![CDATA[ erik_s]]></author>
			</item>
			<item>
				<title>Re:Classloader woes</title>
				<description><![CDATA[ Hi,

There is an existing issue that is applicable to some of the questions in this thread.

https://jira.terracotta.org/jira/browse/CDV-1306

It points to the fact that multiple webapps with a POJO app currently are not supported within the same app-group.

Chris]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/2628.page#15680</guid>
				<link>http://forums.terracotta.org/forums/posts/list/2628.page#15680</link>
				<pubDate><![CDATA[Mon, 26 Oct 2009 08:11:56]]> GMT</pubDate>
				<author><![CDATA[ cpopp]]></author>
			</item>
			<item>
				<title>Re:Classloader woes</title>
				<description><![CDATA[ Thanx for the heads-up.

The work-around I've posted above works for us up to a point. 
We've got several webb-apps that we would like to be able to use terracotta but we don't want to be forced to deploy them separately.

Any information on wether this is scheduled to be fixed?

cheers
Erik Svensson, Memnon]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/2628.page#15685</guid>
				<link>http://forums.terracotta.org/forums/posts/list/2628.page#15685</link>
				<pubDate><![CDATA[Mon, 26 Oct 2009 08:39:01]]> GMT</pubDate>
				<author><![CDATA[ erik_s]]></author>
			</item>
			<item>
				<title>Re:Classloader woes</title>
				<description><![CDATA[ Is this still an issue?]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/2628.page#21367</guid>
				<link>http://forums.terracotta.org/forums/posts/list/2628.page#21367</link>
				<pubDate><![CDATA[Mon, 12 Jul 2010 09:36:54]]> GMT</pubDate>
				<author><![CDATA[ apaliwal]]></author>
			</item>
			<item>
				<title>Re:Classloader woes</title>
				<description><![CDATA[ <p></p>

		<cite>apaliwal wrote:</cite><br>
		<blockquote>Is this still an issue?&nbsp;
		</blockquote>

Very much so.

cheers
Erik Svensson, Memnon Networks AB]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/2628.page#21428</guid>
				<link>http://forums.terracotta.org/forums/posts/list/2628.page#21428</link>
				<pubDate><![CDATA[Tue, 13 Jul 2010 14:15:32]]> GMT</pubDate>
				<author><![CDATA[ erik_s]]></author>
			</item>
	</channel>
</rss>