[GLASSFISH-17358] Embedded GF started using instanceRoot fails to compile JSPs in WAR Created: 27/Sep/11  Updated: 01/Mar/12

Status: Reopened
Project: glassfish
Component/s: embedded
Affects Version/s: 3.1.2
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Amy Roh Assignee: Bhavanishankar
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File hello.war     Java Source File JspTest.java    

 Description   

Embedded GF started using instanceRoot fails to compile JSPs in WAR.

If instanceRoot isn't set using GlassFishProperties, JSPs work fine.

/* IF YOU START THIS WAY, JSPS WORK
GlassFishProperties props = new GlassFishProperties();
props.setPort("http-listener", 8080);

GlassFish glassfish = GlassFishRuntime.bootstrap().newGlassFish(props);
glassfish.start();
*/

// JSPS DON'T WORK IF YOU SET INSTANCEROOT
String instanceRoot = "/glassfish3/glassfish/domains/domain1";
GlassFishProperties gfProps = new GlassFishProperties();
gfProps.setInstanceRoot(instanceRoot);

This happens with glassfish-embedded-all.jar and -web.jar.



 Comments   
Comment by Amy Roh [ 21/Oct/11 ]

When using installRoot, glassfish-embedded-static-shell.jar needs to be in CLASSPATH instead of glassfish-embedded-web.jar.

Comment by Amy Roh [ 01/Mar/12 ]

According to Bhavani, setting instanceRoot should work with all-in-one.jar for JSP compilation.

Generated at Mon Aug 31 08:48:47 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.