I'll look into it.... I'm not sure exactly what the spec says, but I would assume that if your JSPs are referencing EJBs then they are clients of the EJBs and you should expect to ship EJB client jars with them, even if they are packaged in the same ear. I'll crosspost this to the JBoss list, perhaps we can get an answer. Jules Greg Wilkins wrote: > Eddie Chan wrote: > > > hi, > > The version I'm using is 'JBoss-2.4.0_Jetty-3.1.RC8-1'. I've managed to > > get it to work if I put the interface classes into the war file or if I out > > the jar in the jboss/lib/ext directory. So it appears that when Jetty > > calling Jasper to compile the JSP, it didn't include in the classpath any > > deployed EJBs (or am I totally wrong about this). > > You are quiet right! I should have remembered that before sorry. The > problem is that the java compiler is not being called with the > correct classpath. Jetty is unable to supply the correct classpath > as it does not know what JBoss's class path is - Jetty only has > a jboss class loader. > > This is just one of the many problems with JSPs. My recommendation > would be not use them :-), but if you have to, then precompile them > before putting them in a war/ear file. > > Jules - is there anyway that the jboss-jetty adaptor can find out > the actual classpath? If so we may be able to do a little better, > but I still think it will be problematic. > > regards > > > > > > >>-----Original Message----- > >>From: Greg Wilkins [mailto:[EMAIL PROTECTED]] > >>Sent: 15 September 2001 09:25 > >>To: [EMAIL PROTECTED]; Julian Gosnell; > >>[EMAIL PROTECTED] > >>Subject: Re: [jetty-support] Jetty/JBoss compiling JSP problem > >> > >> > >> > >>What versions are you using????? > >> > >>I think there have been some changes to the JBoss class loader that are > >>causing some problems lately. Jetty should use the JBoss loader as > >>it's parent loader for that context (so long as the context was > >>deployed by JBoss - not in the jetty.xml file) so you should be able > >>to see your bean. > >> > >>cheers > >> > >> > >>[EMAIL PROTECTED] wrote: > >> > >> > >>>hi all, > >>> I've created a Session Bean and packaged up into a jar file and > >>>deployed it on Jetty/JBoss ok. Then I created a JSP and package that > >>>up into a war file and deployed that ok. ie. all without error. > >>>However, when I access the JSP page on the web brwoser, Jetty trys to > >>>compile the JSP page and Jasper reports that the it can't find the > >>>classes of the Session Bean. Am I missing something with the config > >>>or is this a bug? > >>> > >>>thanks in advance, > >>> > >>>eddie > >>> > >>> > >>> > >>>For the latest information about Jetty, please see > >>> > > http://jetty.mortbay.com > > > >> > >> > >>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ > >> > >> > >> > > > > > > > > -- > > Greg Wilkins<[EMAIL PROTECTED]> GB Phone: +44-(0)7092063462 > > Mort Bay Consulting Australia and UK. Mbl Phone: +61-(0)4 17786631 > > http://www.mortbay.com AU Phone: +61-(0)2 98107029 > > > > > > > > For the latest information about Jetty, please see http://jetty.mortbay.com > > > > > > > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ > > > > > > > > ------------------------ Yahoo! Groups Sponsor ---------------------~--> > > Secure your servers with 128-bit SSL encryption! Grab your copy of VeriSign's FREE >Guide, "Securing Your Web > > site for Business" and learn all about serious security. Get it Now! > > http://us.click.yahoo.com/r0k.gC/oT7CAA/yigFAA/CefplB/TM > > ---------------------------------------------------------------------~-> > > > > For the latest information about Jetty, please see http://jetty.mortbay.com > > > > > > > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ > > > > > > -- > Greg Wilkins<[EMAIL PROTECTED]> GB Phone: +44-(0)7092063462 > Mort Bay Consulting Australia and UK. Mbl Phone: +61-(0)4 17786631 > http://www.mortbay.com AU Phone: +61-(0)2 98107029 _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
