Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3414

JSF layer with Mongo causes SEVERE: Exception starting filter Spring OpenEntityManagerInViewFilter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.2.3.RELEASE
    • Fix Version/s: None
    • Component/s: JSF
    • Labels:
    • Environment:
      Ubuntu 12.04 (64) STS

      Description

      When JSF is generated instead of MVC, there is the run-time error SEVERE: Exception starting filter Spring OpenEntityManagerInViewFilter. With MVC it works excellent.

      Script is as following:

      project --topLevelPackage org.dp.shortnotes.jsf --projectName shortnotes.jsf --java 7 --packaging JAR
      // Spring Roo 1.2.3.RELEASE [rev 7fd62b6] log closed at 2013-05-23 20:40:54
      // Spring Roo 1.2.3.RELEASE [rev 7fd62b6] log opened at 2013-05-23 20:41:00
      mongo setup --databaseName shortnotes --host localhost --port 27017
      entity mongo --class ~.domain.Notebook --testAutomatically
      entity mongo --class ~.domain.Note --testAutomatically
      focus --class ~.domain.Notebook
      field string --fieldName name --notNull
      field string --fieldName author --notNull
      field date --fieldName created --type java.util.Date --notNull
      focus --class ~.domain.Note
      field string --fieldName title --notNull
      field string --fieldName content --notNull --sizeMax 4000
      field date --fieldName created --type java.util.Date --notNull
      field reference --type ~.domain.Notebook --fieldName notebook --notNull
      repository mongo --interface ~.repository.NotebookRepository --entity ~.domain.Notebook
      repository mongo --interface ~.repository.NoteRepository --entity ~.domain.Note
      service --interface ~.service.NotebookService --entity ~.domain.Notebook
      service --interface ~.service.NoteService --entity ~.domain.Note
      web jsf setup
      web jsf all --package ~.jsf

      Stacktrace:
      SEVERE: Exception starting filter Spring OpenEntityManagerInViewFilter
      java.lang.ClassNotFoundException: org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
      at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
      at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
      at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)
      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:256)
      at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382)
      at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:103)
      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4650)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5306)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
      at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:655)
      at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1628)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)

      May 23, 2013 8:44:06 PM org.apache.catalina.core.StandardContext startInternal
      SEVERE: Error filterStart

        Attachments

          Activity

            People

            Assignee:
            stewarta Alan Stewart
            Reporter:
            golfp-96 Dmitry
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3d
                3d
                Remaining:
                Remaining Estimate - 3d
                3d
                Logged:
                Time Spent - Not Specified
                Not Specified