0 Replies Latest reply on Oct 28, 2010 6:55 AM by rigazilla

    troubles with examples (gettingstarted example + jboss)

    rigazilla Newbie

      Dear All,

       

      I need some help with the examples.

       

      I'm trying to mix up the modeshape-2.3.0.Final-jbossas-dist.zip with the gettingstarted examples. I'm interested in: federated repositories + webDAV access.

       

      I will use the result as baseline for a multimedia store. (Actually I hope that)

       

      Basically I deployed the modeshape-jboss.zip with the configRepository.xml of the gettingstarted/repositories example.

       

      Here's what I did on my JBoss 5.1.0:

       

      #creating the new server configuration

      cd server/
      cp default/ test-case -rf
      cd test-case/
      unzip ~/Downloads/modeshape-2.3.0.Final-jbossas-dist.zip

       

      #copying the repositories example configuration

      cp ~/Downloads/examples/repositories/src/main/resources/configRepository.xml test-case/deploy/modeshape-services.jar/modeshape-config.xml

       

      #copying some needed hibernate connection jars

      cp trial/lib/c3p0-0.9.1.2.jar smark/lib/hibernate-c3p0-3.3.1.GA.jar trial/lib/

       

      #run jboss

      cd ..

      cd bin

      ./run.sh -c test-case

       

      Then with the browser I can navigate the three repository (UFOs, Cars, Aircraft) but when I try to access the federated repository Vehicles JBoss give me the exception down below (attached the full log from the jboss start).

       

      Hope someone can help me in fixing my configuration.

       

      Ciao,

      Vittorio

       

      ps: thanks to all the people involved in jboss-modeshape project

       

       

      12:43:21,510 INFO  [SettingsFactory] RDBMS: HSQL Database Engine, version: 1.8.0
      12:43:21,510 INFO  [SettingsFactory] JDBC driver: HSQL Database Engine Driver, version: 1.8.0
      12:43:21,515 INFO  [Dialect] Using dialect: org.hibernate.dialect.HSQLDialect
      12:43:21,516 INFO  [TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
      12:43:21,517 INFO  [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
      12:43:21,517 INFO  [SettingsFactory] Automatic flush during beforeCompletion(): disabled
      12:43:21,517 INFO  [SettingsFactory] Automatic session close at end of transaction: disabled
      12:43:21,517 INFO  [SettingsFactory] JDBC batch size: 15
      12:43:21,517 INFO  [SettingsFactory] JDBC batch updates for versioned data: disabled
      12:43:21,517 INFO  [SettingsFactory] Scrollable result sets: enabled
      12:43:21,517 INFO  [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
      12:43:21,517 INFO  [SettingsFactory] Connection release mode: auto
      12:43:21,517 INFO  [SettingsFactory] Default batch fetch size: 1
      12:43:21,517 INFO  [SettingsFactory] Generate SQL with comments: enabled
      12:43:21,517 INFO  [SettingsFactory] Order SQL updates by primary key: disabled
      12:43:21,517 INFO  [SettingsFactory] Order SQL inserts for batching: disabled
      12:43:21,517 INFO  [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      12:43:21,518 INFO  [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
      12:43:21,519 INFO  [SettingsFactory] Query language substitutions: {}
      12:43:21,519 INFO  [SettingsFactory] JPA-QL strict compliance: enabled
      12:43:21,519 INFO  [SettingsFactory] Second-level cache: enabled
      12:43:21,519 INFO  [SettingsFactory] Query cache: disabled
      12:43:21,519 INFO  [SettingsFactory] Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
      12:43:21,520 INFO  [RegionFactoryCacheProviderBridge] Cache provider: org.hibernate.cache.NoCacheProvider
      12:43:21,520 INFO  [SettingsFactory] Optimize cache for minimal puts: disabled
      12:43:21,521 INFO  [SettingsFactory] Structured second-level cache entries: disabled
      12:43:21,521 INFO  [SettingsFactory] Statistics: disabled
      12:43:21,521 INFO  [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
      12:43:21,521 INFO  [SettingsFactory] Default entity-mode: pojo
      12:43:21,521 INFO  [SettingsFactory] Named query checking : enabled
      12:43:21,525 INFO  [SessionFactoryImpl] building session factory
      12:43:21,657 INFO  [PojoInstantiator] no default (no-argument) constructor for class: org.modeshape.connector.store.jpa.model.simple.SubgraphQueryEntity (class must be instantiated by Interceptor)
      12:43:21,788 INFO  [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
      12:43:21,820 INFO  [SchemaExport] Running hbm2ddl schema export
      12:43:21,821 INFO  [SchemaExport] exporting generated schema to database
      12:43:21,852 INFO  [SchemaExport] schema export complete
      12:43:23,372 ERROR [WebDavServletBean] Exception: java.lang.NullPointerException
              at org.modeshape.graph.search.SearchEngineIndexer.indexSubgraph(SearchEngineIndexer.java:349)
              at org.modeshape.graph.search.SearchEngineIndexer.index(SearchEngineIndexer.java:229)
              at org.modeshape.graph.search.SearchEngineIndexer.index(SearchEngineIndexer.java:137)
              at org.modeshape.jcr.RepositoryQueryManager$SelfContained.reindexContent(RepositoryQueryManager.java:416)
              at org.modeshape.jcr.RepositoryQueryManager$SelfContained.<init>(RepositoryQueryManager.java:362)
              at org.modeshape.jcr.JcrRepository.<init>(JcrRepository.java:650)
              at org.modeshape.jcr.JcrEngine.doCreateJcrRepository(JcrEngine.java:370)
              at org.modeshape.jcr.JcrEngine.getRepository(JcrEngine.java:270)
              at org.modeshape.jboss.managed.JNDIManagedRepositories.getRepository(JNDIManagedRepositories.java:87)
              at org.modeshape.web.jcr.spi.FactoryRepositoryProvider.getRepository(FactoryRepositoryProvider.java:71)
              at org.modeshape.web.jcr.spi.FactoryRepositoryProvider.getSession(FactoryRepositoryProvider.java:108)
              at org.modeshape.web.jcr.RepositoryFactory.getSession(RepositoryFactory.java:90)
              at org.modeshape.web.jcr.webdav.ModeShapeWebdavStore$JcrSessionTransaction.childrenFor(ModeShapeWebdavStore.java:731)
              at org.modeshape.web.jcr.webdav.ModeShapeWebdavStore.childrenFor(ModeShapeWebdavStore.java:630)
              at org.modeshape.web.jcr.webdav.ModeShapeWebdavStore.getChildrenNames(ModeShapeWebdavStore.java:292)
              at net.sf.webdav.methods.DoGet.folderBody(DoGet.java:110)
              at net.sf.webdav.methods.DoHead.execute(DoHead.java:153)
              at net.sf.webdav.WebDavServletBean.service(WebDavServletBean.java:128)
              at org.modeshape.web.jcr.webdav.ModeShapeWebdavServlet.service(ModeShapeWebdavServlet.java:110)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Thread.java:662)