3 Replies Latest reply on Jun 13, 2007 8:14 AM by Uros Milivojevic

    Just Seam - no ORM

    Uros Milivojevic Newbie

      Hi,

      I want to add Seam to our application which has UI implemented in JSF-RI-1.1 + Facelets.

      - Plan is to use Seam capabilities only in UI in 1st step and in 2nd to connect it with ORM layer (implemented throw Hibernate 3).
      - We deploy app on Tomcat 5.5.

      I have created test project fot tomcat without JBoss Microcontainer libs. Test app works without problems but I get error:

      Jun 13, 2007 9:51:15 AM org.jboss.seam.servlet.SeamExceptionFilter doFilter
      SEVERE: could not roll back transaction
      javax.naming.NamingException: Cannot create resource instance
      at org.apache.naming.factory.TransactionFactory.getObjectInstance(TransactionFactory.java:112)
      at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
      at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
      at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
      at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
      at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
      at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
      at javax.naming.InitialContext.lookup(Unknown Source)
      at org.jboss.seam.util.Transactions.getUserTransaction(Transactions.java:153)
      at org.jboss.seam.util.Transactions.isUTTransactionActiveOrMarkedRollback(Transactions.java:122)
      at org.jboss.seam.util.Transactions.isTransactionActiveOrMarkedRollback(Transactions.java:50)
      at org.jboss.seam.servlet.SeamExceptionFilter.rollbackTransactionIfNecessary(SeamExceptionFilter.java:92)
      at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:52)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      at java.lang.Thread.run(Unknown Source).

      When "org.jboss.seam.servlet.SeamExceptionFilter" filter mapping from web.xml is removed there is no Exception.

      All config files for data persistence are removed and other config files are set as required (parameters for data persistence removed from component.xml, ... ).
      What is actually happening? Are Exceptions still there but just not showed in console?
      Is it possible to achieve what I want?

      IMPORTANT: even with Exceptions app works all time as expected!

      Thanks,
      Uros.