users@glassfish.java.net

Re: JSP will not compile in GlassFish v3 (build 47.4)

From: <glassfish_at_javadesktop.org>
Date: Mon, 07 Dec 2009 10:11:23 PST

hello Jan,

Thank you for your quick response.

I put Class-Path: EJBTest2.jar in my war MANIFEST.MF file and the jsp will still not compile ie. same result.

I also tried putting the EJBTest2.jar in the lib directory in the application.xml file and that did not work either ie. same compiler problem.

I don't know if the following link says that my current problem is a current bug. It seems very similar to my problem. Although I am not using WAB files.

http://forums.java.net/jive/thread.jspa?messageID=373758&#373758

I am now trying to compile the jsps and put the compiled jsps in my war file. I hope this works, although this has not been an easy task to compile the jsps ie. I am still working on it. I will have to link the jsp with the compiled jsp in my web.xml file. But I wonder if glassfish will still try to compile it anyway and ignore the already compiled jsps ?

Bottom line: the jsp compiler cannot find a class that is in another jar, my EJBTest.jar.

Is there anyone else out there who is using JSPs, JSFs or struts and has been successful in the compiling of these components with classes that are in other jars.

I must be doing something really wrong given that many frontend of glassfish use JSPs, JSFs and struts. This is a show stopper for me. Sigh...

Thank you very much for any help.

Michale Z
[Message sent by forum member 'michaelzzz' ]

http://forums.java.net/jive/thread.jspa?messageID=375203