One more theory: the exception I get in loading the app has to do w/ CSS parsing.  Fop comes w/ "xml-apis.jar" - this jar is referenced in the MANIFEST of fop.jar.  Flex comes w/ "xmlParserAPIs.jar" - this jar is referenced in the aforementioned " fdb.jar" manifest.  Both jars share CSS parsing classes (i.e. CSSRule).  The flex version is a later version than the fop version.  I'm going to try removing "xml-apis.jar" from the build and see what happens.

On 12/11/05, Jaime Bermudez <[EMAIL PROTECTED]> wrote:
Hold on a sec.  There is no other version of the fop.jar anywhere in flex, so I couldn't follow your suggestion.  Flex comes w/ some jar called " fdb.jar" - it's MANIFEST file sets a classpath w/ the various "batik-***.jar" files that flex comes w/, as well as xercesImpl.jar.  My version of fop (0.20.5 I believe) has a manifest w/ "batik.jar" and " xercesImpl-2.2.1.jar".  I don't understand how/why BEA's classloader is confusing jars w/ different names.


On 12/10/05, Dave Wolf <[EMAIL PROTECTED]> wrote:

I want to do a little further explaination here too.  Its not an issue
that there is a different version of fop.jar.  Even if the jars were
100% identical this issue would occur.

Class loaders are tricky little buggers.  For instance

// loaded by loader 1
String foo = "bar";

// loaded by loader 2
String bar = "foo";

// Now try this

bar = (String) foo;

BOOM!  ClassCastException.

Say huh?  Yep.  Even the same class, same version, loaded by different
loaders are incompatable.

Nice eh?

For lesson #2 we can talk about singleton patterns and class loaders.
<wink>

--
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email: [EMAIL PROTECTED]
Office: 866-CYNERGY


--- In [email protected] , "Dave Wolf" <[EMAIL PROTECTED]> wrote:
>
> After like ten years of this, I gotta tell you I'm never amazed at how
> big a PITA class loaders can be in general, and how incredibly ugly
> they are in server environments.
>
> I am with Carson.  I would split the Flex portion of this into a
> different web app.  BEA should suppport SSO across web-apps
implicitly.
>
> The other option in my mind is to remove fop.jar from
>
> web-inf/flex/lib
>
> The rationale is that fop.jar would have been loaded by the web-apps
> loader.  Since the server-side of Flex is honestly nothing but a
> couple of servlets and filters, the web-inf/lib loaded version of the
> jar would be cached in the loader already and loaded from there.
>
> From your friendly neighborhood J2EE apologist.....
>
> --
> Dave Wolf
> Cynergy Systems, Inc.
> Macromedia Flex Alliance Partner
> http://www.cynergysystems.com
>
> Email: [EMAIL PROTECTED]
> Office: 866-CYNERGY
>
>
> --- In [email protected], "Carson Hager" <[EMAIL PROTECTED]>
> wrote:
> >
> > Frankly, I was a little confused about that. I didn't think that
WLS had
> > that but some app servers do.  If you don't have one, just ignore that
> > part of it.  I now understand what you are getting at. You have
fop.jar,
> > etc. in web-inf/lib and these also exist in the flex subfolders under
> > web-inf. This is going to be tricky. The one in web-inf/lib is gonna
> > have to go if you need to have al of this in the same web
application. I
> > would look at breaking this up into two different web applications and
> > implementing SSO across the two.
> >
> >
> >
> >
> >
> > Carson
> >
> >
> >
> > ____________________________________________
> >
> > Carson Hager
> > Cynergy Systems, Inc.
> > http://www.cynergysystems.com
> >
> > Email:   [EMAIL PROTECTED]
> > Office:  866-CYNERGY
> > Mobile: 1.703.489.6466
> >
> >
> > ________________________________
> >
> > From: [email protected]
[mailto: [email protected]] On
> > Behalf Of Jaime Bermudez
> > Sent: Saturday, December 10, 2005 6:14 PM
> > To: [email protected]
> > Subject: Re: [flexcoders] URGENT Problem on Flex installed on BEA
> > WebLogic
> >
> >
> >
> > I didn't know the server had a web-inf... the only web-inf I see is in
> > my deployed war directory.  Just to clarify, I deploy an EAR that has
> > separate ejb and war deployments.  The only web-inf directory I see is
> > under user_projects -> domain -> mydomain -> applications ->
{myapp} ->
> > {war}.  Where should there be another web-inf?
> >
> > On 12/10/05, Carson Hager <[EMAIL PROTECTED]> wrote:
> >
> > I would definitely load those at the web app level.  I tend to
load most
> > everything at the web app level to avoid integration issues just like
> > the one you're dealing with right now. When you say fop.jar is in
> > web-inf, is it in the server web-inf ( shared for all web apps )
or the
> > web app's web-inf?
> >
> >
> >
> >
> > Carson
> >
> > ____________________________________________
> >
> > Carson Hager
> > Cynergy Systems, Inc.
> > http://www.cynergysystems.com < http://www.cynergysystems.com/>
> >
> > Email:  [EMAIL PROTECTED]
> > Office:  866-CYNERGY
> > Mobile : 1.703.489.6466
> >
> >
> > ________________________________
> >
> > From: [email protected]
[mailto: [email protected]] On
> > Behalf Of Jaime Bermudez
> > Sent: Saturday, December 10, 2005 1:03 PM
> > To: [email protected]
> > Subject: Re: [flexcoders] URGENT Problem on Flex installed on BEA
> > WebLogic
> >
> >
> >
> > I couldn't find a way to turn on classloader tracing (at least I
didn't
> > see anything in the weblogic 8.1 docs), however I think the
problem may
> > be in the setup.  My fop.jar, batik.jar and other supporting files
(i.e.
> > avalon-framework-cvs*.jar) are in the WEB-INF/lib directory of the app
> > server.  The flex jars, including all of the batik-*** files, are
> > located under WEB-INF/flex/jars.  From what I understand about the
> > prefer-web-inf-classes parameter, it loads jars under the WEB-INF
> > directory before loading jars that are part of the weblogic server
> > classpath - in my case the fop jars are NOT in weblogic's startup
> > classpath.  So, I'm guessing the fact that both sets of batik jars are
> > under the WEB-INF directory, albeit in different subdirectories,
is why
> > the app still has a problem loading.
> >
> >
> >
> > Does that sound right?  Where do you keep your fop related jars and do
> > you load them at the server level as opposed to the application level?
> >
> >
> >
> > On 12/9/05, Carson Hager < [EMAIL PROTECTED]
> > <mailto: [EMAIL PROTECTED]...> > wrote:
> >
> > Interesting.  The next thing I would do is verify where the css parser
> > errors are getting loaded from.  WLS should have a way to turn on
> > classloader tracing so that it will log out the physical location from
> > where it loaded the classes. See if you can enable that and let me
know
> > what it says.
> >
> >
> >
> >
> > Carson
> >
> >
> >
> > ____________________________________________
> >
> > Carson Hager
> > Cynergy Systems, Inc.
> > http://www.cynergysystems.com < http://www.cynergysystems.com/>
> >
> > Email:   [EMAIL PROTECTED]
> > Office:  866-CYNERGY
> > Mobile : 1.703.489.6466
> >
> >
> > ________________________________
> >
> > From: [email protected]
[mailto:[email protected] ] On
> > Behalf Of Jaime Bermudez
> > Sent: Thursday, December 08, 2005 11:58 AM
> > To: [email protected]
> > Subject: Re: [flexcoders] URGENT Problem on Flex installed on BEA
> > WebLogic
> >
> >
> >
> > Hey Carson,
> >
> >
> >
> > I'm trying out your technique, but I'm still getting LocatorParser
> > errors... here's a snippet of my weblogic.xml:
> >
> >
> >
> > <weblogic-web-app>
> >   <security-role-assignment>
> >      ...
> >
> >   </security-role-assignment>
> >
> >   <jsp-descriptor>
> >      ...
> >  </jsp-descriptor>
> >
> >  <container-descriptor>
> >   <prefer-web-inf-classes>true</prefer-web-inf-classes>
> >  </container-descriptor>
> > </weblogic-web-app>
> >
> >
> >
> > This solution worked for you guys?
> >
> >
> >
> > On 9/16/05, Carson Hager < [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]...> > wrote:
> >
> > My pleasure.  The only impact will be a small increase in memory
> > utilization by the server at startup. Basically, appservers like WLS
> > like to use hierarchical classloaders so that classes which are shared
> > by multiple web applications are not loaded for each web app.  By
using
> > a shared classloader, there is savings in memory and ( to a small
degree
> > ) runtime performance due to the need to only load/verify the class a
> > single time. The reality is that these things are basically
negligible.
> > The kicker with hierarchical classloaders is exactly what you're
seeing
> > here...the need to override at a child level.  I'm sure you'll
find this
> > to be a good solution.
> >
> >
> >
> >
> >
> > Carson
> >
> >
> >
> > ____________________________________________
> >
> > Carson Hager
> > Cynergy Systems, Inc.
> > http://www.cynergysystems.com < http://www.cynergysystems.com/>
> >
> > Email:  [EMAIL PROTECTED]
> > <mailto: [EMAIL PROTECTED] ...>
> > Office:  866-CYNERGY ext. 89
> > Mobile: 1.703.489.6466
> >
> > Take PowerBuilder to the Web with EAF 4.0
> > http://www.cynergysystems.com/public/products/eaf
> >
> >
> >
> >
> >
> >
> >
> > ________________________________
> >
> > From: [email protected] [mailto: [email protected]
> > <mailto: [email protected]> ] On Behalf Of Kevin Towes (New
> > Toronto Group)
> > Sent: Friday, September 16, 2005 1:22 PM
> > To: [email protected] ; [email protected]
> >
> >
> > Subject: RE: [flexcoders] URGENT Problem on Flex installed on BEA
> > WebLogic
> >
> >
> >
> >
> > Thanks, Carson -
> >
> > We're looking into the impact of this.   It might be the best
solution.
> > I'll let you (and the list) know.
> >
> > kev.
> >
> >
> > Kevin Towes, Sr. Consultant
> > New Toronto Group, [EMAIL PROTECTED]
> > Office: 905-897-7790 x4018 Mobile: 416-882-4445
> > [onRemote]
> >
> > ________________________________
> >
> > From : "Carson Hager" <[EMAIL PROTECTED]>
> > Sent: Friday, September 16, 2005 12:42 PM
> > To: [email protected]
> > Subject: RE: [flexcoders] URGENT Problem on Flex installed on BEA
> > WebLogic
> >
> > Kevin,
> >
> >
> >
> > This is a classloader issue.  Check out prefer-web-inf-classes in the
> > following URL to turn off the default behavior of the WLS
classloader to
> > allow for classes in web apps to be loaded in preference of the server
> > level classloader.
> >
> >
> >
> > http://e-docs.bea.com/wls/docs81/programming/classloading.html
> >
> >
> >
> >
> >
> > Carson
> >
> > ____________________________________________
> >
> > Carson Hager
> > Cynergy Systems, Inc.
> > http://www.cynergysystems.com < http://www.cynergysystems.com/>
> >
> > Email:  [EMAIL PROTECTED]
> > <mailto: [EMAIL PROTECTED] ...>
> > Office:  866-CYNERGY ext. 89
> > Mobile: 1.703.489.6466
> >
> > Take PowerBuilder to the Web with EAF 4.0
> > http://www.cynergysystems.com/public/products/eaf
> >
> >
> >
> >
> >
> >
> >
> > ________________________________
> >
> > From: [email protected] [mailto: [email protected]
> > <mailto: [email protected]> ] On Behalf Of Kevin Towes (New
> > Toronto Group)
> > Sent: Friday, September 16, 2005 12:29 PM
> > To: [email protected]
> > Subject: [flexcoders] URGENT Problem on Flex installed on BEA WebLogic
> >
> >
> >
> > Hey Gang -
> >
> > We're having a bit of an urgent issue with a Flex installation on BEA
> > Weblogic Portal Server.   I know there were some threads a while
back on
> > this issue, so I'll explain it below.
> >
> > The issue relates to the fop.jar file that is used in the BEA Portal
> > Server (WebLogic).   The BEA jar file overrides the FLEX package that
> > parses css .  The manifest file included in the fop.jar defines "
> > batik.jar" in the class path. The Batik.jar file installed with BEA is
> > an older version then is required by FLEX to parse CSS.
> > (css.locater.parser)
> >
> > We've found information on FlexCoders to remove the fop.jar file from
> > BEA, which works, but is not a solution that our customer is
comfortable
> > with.
> >
> > Does anyone know anything about this, or better, how to get around the
> > issue?
> >
> > I've tried going through "official" Macromedia Support on this, and
> > they're timing for support doesn't fit our customer, so here's a
chance
> > for the FlexCoders list to shine.
> >
> > Who ever helps me solve it gets a couple drinks on me at MAX in a
couple
> > weeks.
> >
> > Kevin Towes.
> >
> >
> >
> >
> >
> > Kevin Towes, Sr. Consultant
> > New Toronto Group, [EMAIL PROTECTED]
> > Office: 905-897-7790 x4018 Mobile: 416-882-4445
> > [onRemote]
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >
> >
> >
> > ________________________________
> >
> > YAHOO! GROUPS LINKS
> >
> >
> >
> > *    Visit your group "flexcoders
> > <http://groups.yahoo.com/group/flexcoders> " on the web.
> >
> > *    To unsubscribe from this group, send an email to:
> >       [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED] ?subject=Unsubscribe>
> >
> > *    Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> > Service < http://docs.yahoo.com/info/terms/ > .
> >
> >
> >
> > ________________________________
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >
> >
> >
> >
> >
> > SPONSORED LINKS
> >
> > Web site design development
> >
< http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+
> >
site+design+development&w2=Computer+software+development&w3=Software+des
> >
ign+and+development&w4=Macromedia+flex&w5=Software+development+best+prac
> > tice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>
> >
> > Computer software development
> >
< http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=We
> >
b+site+design+development&w2=Computer+software+development&w3=Software+d
> >
esign+and+development&w4=Macromedia+flex&w5=Software+development+best+pr
> > actice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>
> >
> > Software design and development
> >
< http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=
> >
Web+site+design+development&w2=Computer+software+development&w3=Software
> >
+design+and+development&w4=Macromedia+flex&w5=Software+development+best+
> > practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>
> >
> >
> >
> >
> >
> >
> >
> > Macromedia flex
> >
< http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+
> >
development&w2=Computer+software+development&w3=Software+design+and+deve
> >
lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=1
> > 66&.sig=OO6nPIrz7_EpZI36cYzBjw>
> >
> > Software development best practice
> >
< http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&
> >
w1=Web+site+design+development&w2=Computer+software+development&w3=Softw
> >
are+design+and+development&w4=Macromedia+flex&w5=Software+development+be
> > st+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>
> >
> >
> >
> >
> >
> > ________________________________
> >
> > YAHOO! GROUPS LINKS
> >
> >
> >
> > *    Visit your group "flexcoders
> > < http://groups.yahoo.com/group/flexcoders> " on the web.
> >
> > *    To unsubscribe from this group, send an email to:
> >       [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED] ?subject=Unsubscribe>
> >
> > *    Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> > Service < http://docs.yahoo.com/info/terms/ > .
> >
> >
> >
> > ________________________________
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >
> >
> >
> > ________________________________
> >
> > YAHOO! GROUPS LINKS
> >
> >
> >
> > *    Visit your group "flexcoders
> > <http://groups.yahoo.com/group/flexcoders> " on the web.
> >
> > *    To unsubscribe from this group, send an email to:
> >       [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED] ?subject=Unsubscribe>
> >
> > *    Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> > Service < http://docs.yahoo.com/info/terms/ > .
> >
> >
> >
> > ________________________________
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >
> >
> >
> >
> > ________________________________
> >
> > YAHOO! GROUPS LINKS
> >
> >
> >
> > *    Visit your group "flexcoders
> > <http://groups.yahoo.com/group/flexcoders> " on the web.
> >
> > *    To unsubscribe from this group, send an email to:
> >      [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED] ?subject=Unsubscribe>
> >
> > *    Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> > Service < http://docs.yahoo.com/info/terms/ > .
> >
> >
> >
> > ________________________________
> >
>






------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links

<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
   [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
   http://docs.yahoo.com/info/terms/







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to