Re: BeanShell and Class: x not in namespace

Lateef Jackson <[email protected]> Mon, 19 Jun 2006 09:13:50 -0400
Newsgroups gmane.comp.java.jpublish.devel
Message-ID <[email protected]>
--===============1128976124==
Content-Type: multipart/alternative; boundary=Apple-Mail-1-616938739


--Apple-Mail-1-616938739
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed


On Jun 16, 2006, at 9:31 PM, Florin T.PATRASCU wrote:

> Yes this is the way it always works. The shared classloader  
> architecture used by JBoss is not so friendly. Except the method 4)  
> suggested by Lateef, there is also one which always works, a not so  
> well known method: using the MANIFEST.MF/Class-Path. The  
> MANIFEST.MF referred to is the one inside the ejb or war archive  
> and NOT the one directly in the ear archive. You may want to read  
> more by following this link: http://java.sun.com/docs/books/ 
> tutorial/deployment/jar/

I didn't get this working via the MANIFEST.MF/Class-Path. My memory  
was that I didn't spend a lot of time on it either. The main problem  
I had was the classloader higher-achy, it did not work as advertised  
in the JBoss docs. I was at a training with Mark F. when he explained  
the classloader and the internals to JBoss and to this day I have no  
idea why I had so many attempts fail (problem is probably between my  
ears... sorry bad joke).


Lateef Jackson
[email protected]




--Apple-Mail-1-616938739
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=ISO-8859-1

<HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
-khtml-line-break: after-white-space; "><BR><DIV><DIV>On Jun 16, 2006, =
at 9:31 PM, Florin T.PATRASCU wrote:</DIV><BR =
class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite"><SPAN =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; ">Yes this is the way =
it always works. The shared classloader architecture used by JBoss is =
not so friendly. Except the method 4) suggested by Lateef, there is also =
one which always works, a not so well known method: using =
the=A0MANIFEST.MF/Class-Path.=A0The MANIFEST.MF referred to is the one =
inside the ejb or war archive and NOT the one directly in the ear =
archive. You may want to read more by following this link:=A0<FONT =
class=3D"Apple-style-span" face=3D"Helvetica" size=3D"3"><SPAN =
class=3D"Apple-style-span" style=3D"font-size: 12px;"><A =
href=3D"http://java.sun.com/docs/books/tutorial/deployment/jar/"><SPAN =
class=3D"Apple-style-span" style=3D"color: rgb(0, 0, 238); =
-khtml-text-decorations-in-effect: underline; =
">http://java.sun.com/docs/books/tutorial/deployment/jar/</SPAN></A></SPAN=
></FONT></SPAN></BLOCKQUOTE></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>I didn't get this working =
via the MANIFEST.MF/Class-Path. My memory was that I didn't spend a lot =
of time on it either. The main problem I had was the =
classloader=A0higher-achy, it did not work as advertised in the JBoss =
docs. I was at a training with Mark F. when he explained the classloader =
and the internals to JBoss and to this day I have no idea why I had so =
many attempts fail (problem is probably between my ears... sorry bad =
joke).</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><BR><DIV> =
<SPAN class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><SPAN =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><SPAN =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><SPAN =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Lateef =
Jackson</DIV><DIV><A =
href=3D"mailto:[email protected]">[email protected]</A></DIV></SPAN></SP=
AN><BR class=3D"Apple-interchange-newline"></SPAN><SPAN></SPAN><SPAN =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><SPAN =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><SPAN =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><BR =
class=3D"Apple-interchange-newline"></SPAN><SPAN></SPAN></SPAN></SPAN></SP=
AN> </DIV><BR></BODY></HTML>=

--Apple-Mail-1-616938739--


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


--===============1128976124==
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

--===============1128976124==--