Title: RE: [JBoss-user] getClass().getClassLoader().getResourceAsStream() not working in web-app

I downloaded jboss-3.0.6, it works now.
looks like it was a Jetty ClassLoader problem

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 24 March 2003 05:15
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user]
> getClass().getClassLoader().getResourceAsStream() not working
> in web-app
>
>
> Hi Herve,
>        I'd to do something like this using Jboss 2.4.1. It's quite
> strange that there isn't someway of referencing the extra file in the
> manifest file but there ye go. As with your problem I was initially
> trying to encapsulate everything in a jar file. I think if
> you find that
> you encapsulate the jar file minus the xsl file into an ear file and
> then you put the xsl file at the in the ear file at the root or maybe
> some META-INF directory you should be able to find it. The name of the
> directory i.e. META-INF doesn't really matter, I just used it for
> convention.
> Hope that helps.
>
>
> Thanks,
> Mark.
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of Herve
> Tchepannou
> Sent: 24 March 2003 04:53
> To: jboss
> Subject: [JBoss-user]
> getClass().getClassLoader().getResourceAsStream()
> not working in web-app
>
> I create rss.jar with a this structure:
>   RSSPortlet.class
>   rss2html.xsl
>
> in RSSPortlet, I need to access the xsl file, so Im doing:
> void foo()
> {
>    InputStream in =
> this.getClass.getClassLoader().getResourceAsStream(
> "rss2html.xsl" )
>    ...
> }
>
> I put rss.jar in WEB-INF/lib a rss.war.
> When the RSSServlet try to call the function foo(), the
> rss2html.xsl is
> not found ( the inputstream is null ).
> Is this normal???
>
> I'm using JBoss-3.0.4
> --
>
> Herve Tchepannou
> mailto:[EMAIL PROTECTED]
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge is now open!
> Get cracking and register here for some mind boggling fun and
> the chance of winning an Apple iPod:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>

Reply via email to