Re: BeanShell and Class: x not in namespace

"Rebel Geek" <[email protected]> Fri, 16 Jun 2006 09:51:50 -0400
Newsgroups gmane.comp.java.jpublish.devel
Message-ID <[email protected]>
--===============0000449094==
Content-Type: multipart/alternative; 
	boundary="----=_Part_25657_17766282.1150465910344"

------=_Part_25657_17766282.1150465910344
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Thanks Florin,

The bsh-2.0.jar is in WEB-INF/lib of my JPublish project which is in a WAR
which is in an EAR which is archived. <smile> The version of JBoss is
3.2and the version if JPublish is
3.0.

I did notice that BeanShell *will* find classes if they have been deployed
independantly in their own jar file in the deploy directory as well as the
all/lib of JBoss, but this is not the desired effect. All the dependancies
are in the WEB-INF/lib of the individual project so if we need to deploy all
the relevant jars separately, then it becomes a management nightmare.

I tried using the addClassPath in the startup bsh action (which, btw,
doesn't seem to be running at startup, so I had to use global-action, but
that's another topic) but beanshell complained that addClassPath is not a
known action.

Do you have a solution to this? Thanks again.



On 6/15/06, Florin T.PATRASCU <[email protected]> wrote:
>
> good old JBoss and the classpath saga:)
> Where exactly do you have the bsh-....jar? Is in your EAR repository (EAR
> is expanded or archived?) or is it in the JBoss server/[default|all]/lib?
> JBoss 4.x or 3.x? And which version of JPublish are you running there?
>
> I know, is not exactly an answer ;)
> -florin
>
>
> On 15-Jun-06, at 9:48 AM, Rebel Geek wrote:
>
> Where I work, I have to deploy my application as an EAR file in a
> modified JBoss installation (the company that I work for is quite
> large and therefore capable of modifying a perfectly working app and
> making it worse <smile>). Anyway, everything works fine except when I
> call one of my classes in a bsh script, BeanShell tells me that the
> class is not in the namespace. How do I set the classpath for
> BeanShell via JPublish?
>
> Thanks.
>
>
> --
> Rebel Geek
> [email protected]
> 954-839-6234
> _______________________________________________
> Jpublish-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jpublish-developer
>
>
>
>
> _______________________________________________
> Jpublish-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jpublish-developer
>
>
>


-- 
Rebel Geek
[email protected]
954-839-6234

------=_Part_25657_17766282.1150465910344
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Thanks Florin,<br><br>The bsh-2.0.jar is in WEB-INF/lib of my JPublish project which is in a WAR which is in an EAR which is archived. &lt;smile&gt; The version of JBoss is 3.2 and the version if JPublish is 3.0. <br><br>I did notice that BeanShell *will* find classes if they have been deployed independantly in their own jar file in the deploy directory as well as the all/lib of JBoss, but this is not the desired effect. All the dependancies are in the WEB-INF/lib of the individual project so if we need to deploy all the relevant jars separately, then it becomes a management nightmare. 
<br><br>I tried using the addClassPath in the startup bsh action (which, btw, doesn't seem to be running at startup, so I had to use global-action, but that's another topic) but beanshell complained that addClassPath is not a known action.
<br><br>Do you have a solution to this? Thanks again. <br><br><br><br><div><span class="gmail_quote">On 6/15/06, <b class="gmail_sendername">Florin T.PATRASCU</b> &lt;<a href="mailto:[email protected]">[email protected]</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="">good old JBoss and the classpath saga:)<div><br></div><div>Where exactly do you have the bsh-....jar? Is in your EAR repository (EAR is expanded or archived?) or is it in the JBoss server/[default|all]/lib? JBoss 
4.x or 3.x? And which version of JPublish are you running there?</div><div><br></div><div>I know, is not exactly an answer ;)</div><div><div><span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<div>-florin</div><br></span> </div><br><div></div><div><span class="e" id="q_10bdaf51d65cf649_1"><div>On 15-Jun-06, at 9:48 AM, Rebel Geek wrote:</div><br></span></div><div><blockquote type="cite"></blockquote></div><div>
<span class="e" id="q_10bdaf51d65cf649_3">Where I work, I have to deploy my application as an EAR file in a<br>modified JBoss installation (the company that I work for is quite<br>large and therefore capable of modifying a perfectly working app and
<br>making it worse &lt;smile&gt;). Anyway, everything works fine except when I <br>call one of my classes in a bsh script, BeanShell tells me that the<br>class is not in the namespace. How do I set the classpath for<br>BeanShell via JPublish?
<br clear="all"><br>Thanks.<br><br><br>-- <br>Rebel Geek<br> <a href="mailto:[email protected]" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">[email protected]</a><br>954-839-6234</span></div>
<div><div style="margin: 0px;">_______________________________________________</div><div style="margin: 0px;">Jpublish-developer mailing list</div><div style="margin: 0px;"><a href="mailto:[email protected]" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
[email protected]</a></div><div style="margin: 0px;"><a href="https://lists.sourceforge.net/lists/listinfo/jpublish-developer" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
https://lists.sourceforge.net/lists/listinfo/jpublish-developer</a></div> </div><br></div></div>
</div><br><br><br>_______________________________________________<br>Jpublish-developer mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:[email protected]">[email protected]
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/jpublish-developer" target="_blank">https://lists.sourceforge.net/lists/listinfo/jpublish-developer</a><br>
<br><br></blockquote></div><br><br clear="all"><br>-- <br>Rebel Geek<br><a href="mailto:[email protected]">[email protected]</a><br>954-839-6234

------=_Part_25657_17766282.1150465910344--


--===============0000449094==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============0000449094==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Jpublish-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jpublish-developer

--===============0000449094==--