|I think that the best that we can do is to make a best effort approach |to determine a file classpath that we can pass to the JspServlet. |We should also provide good override mechanisms to allow a deployer (or ear |developer) to explicitly set the classpath passed to the JspServlet
but in the case we are deploying from a URL, we are essentially saying that JSP compilation is broken. If you have pre-compiled classes then you can do it but if you need to compile then you are screwed. For that to be possible you would need the use of CL with URL in the Javac stack hence that solution again. We need a hacked javac :) |So I think we should stop trying to solve JSPs problems - take a best |guess at a file classpath and then suggest pre-compilation if they |get any deployment problems. right bundling deployment and compilation is tricky, I understand, maybe we can do it though. Using files from their 'file' origin in the classpath sense is a silly thing. I can't believe there is no support for CL context usage and that it would be that hard to do. Again any javac we can get our hands on? marcf |cheers | | |marc fleury wrote: | |> |Yeap, jikes is not java -- it is C++. Also, it may very well be so that |> |even Sun's compiler can't do this. In Tomcat they configure a |command line |> |for sun.tools.javac which has a special -classpath switch. Don't know if |> |the jvm uses it or javac itself reads the entries in the classpath and |> |loads classes from there bypassing CL mechanisms. |> | |> |This sucks big time, because if you don't precompile JSPs, you end up |> |having to trag all the necessary .class files into the WAR. No |> |integration... |> |> well then FUCK it ! |> |> we use the invm javac, we tweak it to be in process with the right CL and |> VOILA! |> |> If ANT can do it we can do it, and don't give me the "speed" booboo, the |> speed of javac in process is diabolical. It takes what 20 seconds to |> compile the WHOLE of JBOSS? so your 2-3 little JSP are not going |to impress |> Javac invm |> |> marcf |> |> | |> | |> |> |> |> -dain |> |> |> |> _______________________________________________ |> |> Jboss-development mailing list |> |> [EMAIL PROTECTED] |> |> https://lists.sourceforge.net/lists/listinfo/jboss-development |> |> |> | |> | | | |-- |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 | | |_______________________________________________ |Jboss-development mailing list |[EMAIL PROTECTED] |https://lists.sourceforge.net/lists/listinfo/jboss-development _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development