#268
Compile works when deployed, but not during precompilation when referring to 'session' in SSP
-
-
Created on:
Thu, Oct 20 2011 (7 months ago)
-
Reported by:
patrick.kua
-
Assigned to:
-
-
Milestone:
-
-
Estimate:
None/Small/Medium/Large
None
-
Status:
New
-
Priority:
Normal (3)
-
Component:
maven-scalate-plugin
-
Permission type:
Private
-
-
Followers

patrick.kua
No file chosen
You have an empty file field. Please select or remove it.
Associations
| # |
Relation |
Summary |
Status |
Action |
| No tickets |
No associations
Time Expenditure
Loading
We've been using SSPs in our project, and want to precompile them before deploying them. We ran into an issue where the SSP would compile fine when deployed using scalatra in a container but fail to compile.
We investigated this and we were using some objects made available by org.scalatra.ScalatraContext (specifically "session"). When running the pre-compile, I think it must only use the object instances made available by ServletRenderContext.
Steps to reproduce:
This is not a blocking issues as there are some workarounds. Namely, instead of in the SSP referring to session directly, we can use "request.getSession"
Let me know if you need any more information. Not sure if this is an intentional thing or not.