Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7278091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:49:41+00:00 2026-05-28T22:49:41+00:00

I have grails application on heroku. I use MongoSessionManager which allows, to share session

  • 0

I have grails application on heroku. I use MongoSessionManager which allows, to share session data between heroku cluster nodes.
I also use a custom bootstrap class to configure jetty instance, for grails application.

The problem with MongoSessionManager, that when jetty tries to deserialize object from Mondodb, it throws ClassNotFoundException:

2012-01-30T15:23:56+00:00 app[web.2]: 2012-01-30 15:23:56.121:WARN:oejnm.MongoSessionManager:
2012-01-30T15:23:56+00:00 app[web.2]: at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
2012-01-30T15:23:56+00:00 app[web.2]: at java.security.AccessController.doPrivileged(Native Method)
2012-01-30T15:23:56+00:00 app[web.2]: at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
2012-01-30T15:23:56+00:00 app[web.2]: at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
2012-01-30T15:23:56+00:00 app[web.2]: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
2012-01-30T15:23:56+00:00 app[web.2]: java.lang.ClassNotFoundException: org.codehaus.groovy.grails.web.servlet.GrailsFlashScope
2012-01-30T15:23:56+00:00 app[web.2]: at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:621)
2012-01-30T15:23:56+00:00 app[web.2]: at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1592)
2012-01-30T15:23:56+00:00 app[web.2]: at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1513)
2012-01-30T15:23:56+00:00 app[web.2]: at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1749)
2012-01-30T15:23:56+00:00 app[web.2]: at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
2012-01-30T15:23:56+00:00 app[web.2]: at org.eclipse.jetty.nosql.mongodb.MongoSessionManager.decodeValue(MongoSessionManager.java:447)
2012-01-30T15:23:56+00:00 app[web.2]: at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
2012-01-30T15:23:56+00:00 app[web.2]: at java.lang.Class.forName0(Native Method)

It seems that jetty uses other classloader, which can’t find class specific for my web application.
Is there the way to configure jetty instance, that it could find all classes, which my application uses?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T22:49:41+00:00Added an answer on May 28, 2026 at 10:49 pm

    If you only want to deploy your libraries in the webapp then not easily. Normally you could put it under $jetty.home/lib/ext or the like and get it in the larger scoped classloader. In this embedded mode you could muck with the system and server classes methods on the WebAppContext but then I don’t know for a fact how the heroku jetty instance is setup so I can promise that would work.

    Thanks to David though who opened an issue in bugzilla (bugs.eclipse.org under RT/Jetty) on this issue (with a fix even, we like that), I’ll apply the fix and it should be available in 7.6.1 and 8.1.1 releases in a few weeks or on master and jetty-8 branches later today.

    cheers

    [edit] fix for this has been applied to master and jetty-8 and will appear in 7.6.1 and 8.1.1 releases of jetty

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created grails application and uploaded it in heroku. If I use 'heroku
I have build a grails application, which on login redirects users to different URLs
I have defined a layout, 'mainTemplate' for my grails application. I use g:layoutHead (so
In my grails application I have an sql query that selects column data from
I have developed a grails/groovy application for a legacy database which has user maintenance
I have integrated spring security plugin with my grails application, which has hibernate as
I have a grails application which works with a legacy database. I have in
How to maintain session in my grails application. Here is my requirement. I have
In my grails application, I have implemented the interface HttpSessionListener to listen for session
i use webflow in a my grails application, i have 2 tables with relation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.