[
https://issues.jboss.org/browse/ARTIF-718?page=com.atlassian.jira.plugin....
]
Brett Meyer commented on ARTIF-718:
-----------------------------------
By default, artificer.properties uses:
'hibernate.search.default.indexBase = lucene/indexes'
But that's entirely dependent on the location from which you start EAP/Wildfly.
Realistically, there is *not* a good default to use that will work for everyone. Instead,
I've better highlighted this property in the doc's "Server
Configuration" section.
hibernate.search.default.indexBase default uses relative path
-------------------------------------------------------------
Key: ARTIF-718
URL:
https://issues.jboss.org/browse/ARTIF-718
Project: Artificer
Issue Type: Bug
Affects Versions: 1.0.0.Beta1
Environment: EAP 6.4
Reporter: Brett Meyer
Assignee: Brett Meyer
Fix For: 1.0.0.Beta2
11:54:21,034 INFO [org.hibernate.search.store.impl.DirectoryProviderHelper]
(http-/127.0.0.1:8080-8) HSEARCH000041: Index directory not found, creating:
'/home/sbunciak/runtimes/artificer-jboss-eap-6.4/bin/lucene/indexes'
11:54:21,034 INFO [org.hibernate.search.store.impl.DirectoryProviderHelper]
(http-/127.0.0.1:8080-7) HSEARCH000041: Index directory not found, creating:
'/home/sbunciak/runtimes/artificer-jboss-eap-6.4/bin/lucene/indexes'
11:54:21,035 INFO [org.hibernate.search.store.impl.DirectoryProviderHelper]
(http-/127.0.0.1:8080-8) HSEARCH000041: Index directory not found, creating:
'/home/sbunciak/runtimes/artificer-jboss-eap-6.4/bin/lucene/indexes/org.artificer.repository.hibernate.entity.ArtificerArtifact'
11:54:21,037 ERROR [org.artificer.server.atom.workspaces.StoredQueryWorkspace]
(http-/127.0.0.1:8080-7) Error getting the list of stored queries.:
org.artificer.common.error.ArtificerServerException: org.hibernate.search.SearchException:
HSEARCH000103: Unable to initialize IndexManager
org.artificer.repository.hibernate.entity.ArtificerArtifact
at
org.artificer.repository.hibernate.HibernateUtil$HibernateTask.execute(HibernateUtil.java:87)
[artificer-repository-hibernate-1.0.0.Beta1.jar:1.0.0.Beta1]
at
org.artificer.repository.hibernate.HibernatePersistenceManager.getStoredQueries(HibernatePersistenceManager.java:468)
[artificer-repository-hibernate-1.0.0.Beta1.jar:1.0.0.Beta1]
at
org.artificer.server.atom.workspaces.StoredQueryWorkspace.configureWorkspace(StoredQueryWorkspace.java:57)
[classes:]
at
org.artificer.server.atom.workspaces.AbstractWorkspace.<init>(AbstractWorkspace.java:51)
[classes:]
at
org.artificer.server.atom.workspaces.StoredQueryWorkspace.<init>(StoredQueryWorkspace.java:46)
[classes:]
at
org.artificer.server.atom.services.ServiceDocumentResource.get(ServiceDocumentResource.java:88)
[classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_76]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_76]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_76]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_76]
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:168)
[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269)
[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227)
[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216)
[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:541)
[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:523)
[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:125)
[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
at
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at
org.artificer.repository.filter.ServletCredentialsFilter.doFilter(ServletCredentialsFilter.java:45)
[artificer-repository-1.0.0.Beta1.jar:1.0.0.Beta1]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at
org.overlord.commons.auth.filters.SamlBearerTokenAuthFilter.doFilterChain(SamlBearerTokenAuthFilter.java:264)
[overlord-commons-auth-2.0.14.Final.jar:2.0.14.Final]
at
org.overlord.commons.auth.filters.SamlBearerTokenAuthFilter.doFilter(SamlBearerTokenAuthFilter.java:238)
[overlord-commons-auth-2.0.14.Final.jar:2.0.14.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.artificer.server.filters.LocaleFilter.doFilter(LocaleFilter.java:59)
[classes:]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)
[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:512)
[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at
org.jboss.as.web.session.ClusteredSessionValve.handleRequest(ClusteredSessionValve.java:134)
[jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at
org.jboss.as.web.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:99)
[jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at org.jboss.as.web.session.JvmRouteValve.invoke(JvmRouteValve.java:92)
[jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at org.jboss.as.web.session.LockingValve.invoke(LockingValve.java:64)
[jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at
org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
[jboss-as-jpa-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at
org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
[jboss-as-jpa-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
[jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150)
[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)
[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854)
[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)
[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_76]
Caused by: org.hibernate.search.SearchException: HSEARCH000103: Unable to initialize
IndexManager org.artificer.repository.hibernate.entity.ArtificerArtifact
at
org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:265)
[hibernate-search-engine-4.6.0.Final-redhat-2.jar:4.6.0.Final-redhat-2]
at
org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:528)
[hibernate-search-engine-4.6.0.Final-redhat-2.jar:4.6.0.Final-redhat-2]
at
org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManagers(IndexManagerHolder.java:495)
[hibernate-search-engine-4.6.0.Final-redhat-2.jar:4.6.0.Final-redhat-2]
at
org.hibernate.search.indexes.impl.IndexManagerHolder.buildEntityIndexBinding(IndexManagerHolder.java:104)
[hibernate-search-engine-4.6.0.Final-redhat-2.jar:4.6.0.Final-redhat-2]
at
org.hibernate.search.spi.SearchFactoryBuilder.initDocumentBuilders(SearchFactoryBuilder.java:364)
[hibernate-search-engine-4.6.0.Final-redhat-2.jar:4.6.0.Final-redhat-2]
at
org.hibernate.search.spi.SearchFactoryBuilder.buildNewSearchFactory(SearchFactoryBuilder.java:219)
[hibernate-search-engine-4.6.0.Final-redhat-2.jar:4.6.0.Final-redhat-2]
at
org.hibernate.search.spi.SearchFactoryBuilder.buildSearchFactory(SearchFactoryBuilder.java:143)
[hibernate-search-engine-4.6.0.Final-redhat-2.jar:4.6.0.Final-redhat-2]
at
org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver.sessionFactoryCreated(HibernateSearchSessionFactoryObserver.java:74)
[hibernate-search-orm-4.6.0.Final-redhat-2.jar:4.6.0.Final-redhat-2]
at
org.hibernate.internal.SessionFactoryObserverChain.sessionFactoryCreated(SessionFactoryObserverChain.java:52)
[hibernate-core-4.2.18.Final-redhat-2.jar:4.2.18.Final-redhat-2]
at
org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:575)
[hibernate-core-4.2.18.Final-redhat-2.jar:4.2.18.Final-redhat-2]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1799)
[hibernate-core-4.2.18.Final-redhat-2.jar:4.2.18.Final-redhat-2]
at
org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:96)
[hibernate-entitymanager-4.2.18.Final-redhat-2.jar:4.2.18.Final-redhat-2]
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915)
[hibernate-entitymanager-4.2.18.Final-redhat-2.jar:4.2.18.Final-redhat-2]
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:900)
[hibernate-entitymanager-4.2.18.Final-redhat-2.jar:4.2.18.Final-redhat-2]
at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:59)
[hibernate-entitymanager-4.2.18.Final-redhat-2.jar:4.2.18.Final-redhat-2]
at
org.artificer.repository.hibernate.HibernateUtil.entityManager(HibernateUtil.java:109)
[artificer-repository-hibernate-1.0.0.Beta1.jar:1.0.0.Beta1]
at
org.artificer.repository.hibernate.HibernateUtil.access$000(HibernateUtil.java:48)
[artificer-repository-hibernate-1.0.0.Beta1.jar:1.0.0.Beta1]
at
org.artificer.repository.hibernate.HibernateUtil$HibernateTask.execute(HibernateUtil.java:62)
[artificer-repository-hibernate-1.0.0.Beta1.jar:1.0.0.Beta1]
... 50 more
Caused by: org.hibernate.search.SearchException: Unable to initialize directory
provider: org.artificer.repository.hibernate.entity.ArtificerArtifact
at
org.hibernate.search.store.impl.DirectoryProviderFactory.createDirectoryProvider(DirectoryProviderFactory.java:91)
[hibernate-search-engine-4.6.0.Final-redhat-2.jar:4.6.0.Final-redhat-2]
at
org.hibernate.search.indexes.impl.DirectoryBasedIndexManager.createDirectoryProvider(DirectoryBasedIndexManager.java:212)
[hibernate-search-engine-4.6.0.Final-redhat-2.jar:4.6.0.Final-redhat-2]
at
org.hibernate.search.indexes.impl.DirectoryBasedIndexManager.initialize(DirectoryBasedIndexManager.java:99)
[hibernate-search-engine-4.6.0.Final-redhat-2.jar:4.6.0.Final-redhat-2]
at
org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:261)
[hibernate-search-engine-4.6.0.Final-redhat-2.jar:4.6.0.Final-redhat-2]
... 67 more
Caused by: org.hibernate.search.SearchException: Unable to create index directory:
/home/sbunciak/runtimes/artificer-jboss-eap-6.4/bin/lucene/indexes for index
org.artificer.repository.hibernate.entity.ArtificerArtifact
at
org.hibernate.search.store.impl.DirectoryProviderHelper.makeSanityCheckedDirectory(DirectoryProviderHelper.java:276)
[hibernate-search-engine-4.6.0.Final-redhat-2.jar:4.6.0.Final-redhat-2]
at
org.hibernate.search.store.impl.DirectoryProviderHelper.getVerifiedIndexDir(DirectoryProviderHelper.java:258)
[hibernate-search-engine-4.6.0.Final-redhat-2.jar:4.6.0.Final-redhat-2]
at
org.hibernate.search.store.impl.FSDirectoryProvider.initialize(FSDirectoryProvider.java:66)
[hibernate-search-engine-4.6.0.Final-redhat-2.jar:4.6.0.Final-redhat-2]
at
org.hibernate.search.store.impl.DirectoryProviderFactory.createDirectoryProvider(DirectoryProviderFactory.java:88)
[hibernate-search-engine-4.6.0.Final-redhat-2.jar:4.6.0.Final-redhat-2]
... 70 more
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)