perfectsense / brightspot-cms Goto Github PK
View Code? Open in Web Editor NEWBrightspot is an enterprise user experience platform built on top of the Dari Framework.
Home Page: http://www.brightspotcms.com
License: Other
Brightspot is an enterprise user experience platform built on top of the Dari Framework.
Home Page: http://www.brightspotcms.com
License: Other
Hi to all,
I am new to Dari & Brightspot CMS. I read most of Brightspot CMS documentation available on http://www.brightspot.com/docs and i find Dari+Brightspot framework to be very powerful in data modeling, accessing and rendering but surprisingly it is unclear how to deal with some basic common tasks related to webdevelopment.
One of them is forms handling - in documentation is described cms:form tag http://www.brightspot.com/docs/3.0/templating/tag-reference-guide#cms-form but javadoc http://public.psddev.com/javadoc/dari/com/psddev/dari/util/FormProcessor.html says that whole FormProcessor interface is deprecated without any replacement. There is no explanation in documentation about it. Documentation should be updated, please fix it.
I read also issue #88 As I understand it after reading it I should create my own HttpServlet and implement all form processing myself? I am surprised because Dari+Brightspot framework looks very exhaustive and form processing, validating and sending validation results back to browser is repetitive task so I consider it's already solved in framework. More explanation should be helpful.
Another common task is items pagination on webpage, as I understand this issue I should pass http request to Brightspot model (from jsp) and parse page number, run query and return appropriate result. Additionally i need to create my own code for rendering pagination links.
Is there some comprehensive sample application that show common way to deal with this tasks? If you some frontend framework it should be nice to describe integrations steps.
Many thanks for any guidance.
With best regards,
Ondrej Nemecek.
I would like to use the Bulk Upload list to upload a number of instances of a specific Content Class from a CSV file.
I have added the @ToolUi.BulkUpload decorator to the fields that I want to be populated.
The problem I have is that the Content Class itself is not appearing in the drop down list of content classes to select in the UI.
A subset of the Content Classes I have created do appear but I can't see what the common denominator is for them.
What do you need to do, or what determines, whether a given content class appears in the drop down list of content classes that can be uploaded using the bulk uploader?
Thanks
Environment:
Icarus:~ wiverson$ mvn -version
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T09:29:23-08:00)
Maven home: /Users/wiverson/devenv/apache-maven-3.2.5
Java version: 1.8.0_31, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.10.2", arch: "x86_64", family: "mac"
Repro steps:
Profile window generates following error:
Can't render /cms/WEB-INF/field/locale.jsp!
Unable to compile class for JSP:
An error occurred at line: 57 in the jsp file: /cms/WEB-INF/field/locale.jsp
The type new Comparator<Locale>(){} must implement the inherited abstract method Comparator<Locale>.thenComparing(Function<? super Locale,? extends U>, Comparator<? super U>)
54:
55: List<Locale> availableLocales = Arrays.<Locale>asList(Locale.getAvailableLocales());
56:
57: Collections.<Locale>sort(availableLocales, new Comparator<Locale>() {
58: @Override
59: public int compare(Locale o1, Locale o2) {
60: String dn1 = o1.getDisplayName(o1);
Error appears in user interface, but didn't see anything in the default log.
Thanks.
I want to get the TooliUi.NoteHtml value associated with the property of a subclass of Content class.
Is there a way to do this?
I know that the CMS does it (because we can see the annotated value for ToolUi.Note
for a proeprty in the interface).
I have been trying the below. And I am pretty sure itβs wrong hence need some guidance.
SubscriptionPlan extends Content {
@ToolUi.NoteHtml("THIS IS THE MESSAGE");
private boolean isActive;
}
//Some other piece of code
SubscriptionPlan plan = ...;
ObjectType type = plan.getState().getType();
String response = type.as(ToolUi.class).getEffectiveNoteHtml(plan);
/* The value for "response" above should be the NoteHtml associated with the "isActive" property
which is >>> THIS IS THE MESSAGE */
I am trying to build a simple command line utility where eventually we can pass a CSV and create from it CMS objects.
In the first instance all I am trying to do is create a CMS object of class Condition and persist it. No main method parameters, no CSV. Just get the plumbings right.
public static void main(String[] args) {
logger.info("Creating a new Condition CMS item");
Condition condition = new Condition();
condition.setTitle("foo bar");
condition.save();
}
When I execute this class I get a stack trace with a familiar No default database!
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.psddev.dari.util.SettingsException: No default database! (check [dari/defaultDatabase] setting)
at com.psddev.dari.util.Settings.checkValue(Settings.java:303)
at com.psddev.dari.util.Settings.getOrError(Settings.java:351)
at com.psddev.dari.db.Database$Static.getDefaultOriginal(Database.java:218)
at com.psddev.dari.db.Database$Static.getDefault(Database.java:207)
at com.psddev.dari.db.State.getDatabase(State.java:147)
at com.psddev.dari.db.State.save(State.java:2078)
at com.psddev.dari.db.Record.save(Record.java:358)
at com.wearefriday.utilities.ImportConditionUtility.main(ImportConditionUtility.java:16)
... 6 more
I need to be able to run this class with some configuration settings that point to the application database.
I am currently executing this class using the maven exec plugin
mvn exec:java -Dexec.mainClass="com.wearefriday.utilities.ImportConditionUtility"
Maybe there is a way to do this in the pom?
Many thanks,
Ioannis
We have a particular need that I wanted to ask if you had support for:
We have a piece of Content that contains a collection of some object. This object itself has 1-3 fields on it based on the context in which it is being used. We would like to dynamically display certain fields based on some condition so that the editor will only see the fields they are required to enter data in. We could create a model for each permutation, but would like to avoid creating too many classes for special cases.
According to your documentation, it looks like we should be able to do this using the @InputProcessorPath annotation. We have been able to successfully draw the required fields on the page based on some condition, but it is unclear how we should store the data to maintain state because when we put the objects in the State object, the values are not persisting after a publish. Is there a way to link the elements drawn on the page to the data? Should we be generating a UUID to achieve this? I also noticed a statement on your site that you are currently working on the Custom UI documentation. Is it still in progress or can you point me to it?
Thanks!
Are there any issues with setting Secure and HttpOnly flags for session cookies on brightspot cms?
CMS Tools Build 2.0-20130111...-1233.
The edit button at the top left of a page on the site is not present when running the CMS with production set to true in context.xml.
Is there another setting to enable the edit button when running the site in production?
Cached pages are being rendered for site CMS users.
The users need to clear their session cookies in order to show the updated version of the page that has been published.
Is there a way to prevent a user from deleting specific content?
[http://brightspot.com/docs/2.4/get-started/hello-world#custom-api] has the line:
public class CustomApi extends HttpServlet {
Should be
public class CustomApi extends PageServlet {
In CMS wysihtml5 editor we have one scenario like on copy & paste the data on editor so during this operations its adding
Means if we copy & paste next below three lines:-
SomeText1
SomeText2
It would be converted into below:-
As per current logic its fine but when we are simply writing multi line text its fine means we having
element and no
So wondering can we have same functionality on paste operation also means no
Please suggest.
Hi,
I have now another question - how to model tree structure and work with it in cms gui? I want to have folder tree and assign articles into it (so folders are hierarchical containers for articles). Basically parent property in Folder class should be enough to reailze this, but problem is with cms qui - it looks like that cms can display only flat list of items so there is no easy way how to find some folder. Miss I something?
Best regards,
Ondrej.
Our phone number is 1-320-42-0453
I can't find anything about user input controls and validation in documentation.
For example I created Article and want to allow user write comments.
How to implement it?
I see things like cms:input
with not clear attributes like object
and writer
. How to use them?
Also would be good to provide example application with most of functionality covered.
Thanks.
On this page:
https://github.com/perfectsense/brightspot-cms/blob/master/docs/documentation/database-backends.md
The link to:
https://github.com/perfectsense/dari/blob/master/etc/postgres/schema-11.sql
404s.
The MySQL one does the same:
https://github.com/perfectsense/dari/blob/master/etc/mysql/schema-11.sql
The Oracle ones work.
NOTE: Copied this from perfectsense/dari#79 since this repostiory seems to be a better place for this issue.
Hi I have never seen this behavior before from SEO object.
We have a Content
class called as Professor
& in the CMS when we edit this object we can see the "Search Engine Optimization" to be completely empty for title
& description
.
I have also annotated Professor
with @Content.LabelFields
.
Currently when I spit out ${seo.title}
in my JSP it comes out to be this above @Content.LabelFields
as opposed to empty string, which I was expecting.
Thing is we have a workflow in our system which looks for seo.title
& if it's empty it looks for alternative correct value.
But since seo.title
is not empty I am getting wrong values for some of the markup.
So essentially, I want to use seo.title
only when it is curated by some human & not the dynamically generated content.label
.
And I want to give preference to seo.title
when curated by human, even over the method we have in place for dynamically calculating the title.
JSON view on Edit Page or Edit Template screen does expand. Looks like CSS and some JavaScript Issue.
Hello,
How to run Brightspot CMS inside Osgi ?
I am trying to install the Brightspot's CMS to AEM Felix ( OSGI platform).
So, I start with cms-tools-ui war, and created the bundle to include the requirement Manifest.mf (OSGI-fy)
While installing it to OSGi, it is not making any error or warning, but when the request is received, it is not handling the request at all. Here is what I started with:
http://localhost:4502/cms
Installing logs:
telnetconsole.shell remote=/127.0.0.1:55772] org.ops4j.pax.web.service.internal.HttpServiceFactoryImpl Binding bundle: [Brightspot cms [417]] to http service
19.05.2015 05:54:23.769 INFO [telnetconsole.shell remote=/127.0.0.1:55772] Brightspot cms Service [2897] ServiceEvent REGISTERED
19.05.2015 05:54:23.776 INFO [pool-24-thread-1] org.ops4j.pax.web.service.jetty.internal.JettyServerWrapper will add org.apache.jasper.servlet.JasperInitializer to ServletContainerInitializers
19.05.2015 05:54:23.777 INFO [pool-24-thread-1] org.ops4j.pax.web.service.jetty.internal.JettyServerWrapper Skipt org.apache.jasper.servlet.JasperInitializer, because specialized handler will be present
19.05.2015 05:54:23.779 INFO [pool-24-thread-1] org.ops4j.pax.web.service.jetty.internal.HttpServiceContext registering context WebAppHttpContext{Brightspot cms - 417}, with context-name: cms
I have something similar to the following:
public class Bar extends Content
{
...
}
public class Foo extends Content
{
...
private Bar b;
...
}
And Bar is set to move through a workflow, where the first Status is "Pending". If I create a new Bar via the UI, move it through to the Pending status, set it on a published instance of Foo, and inspect the Foo instance, it's b field is null. I need to be able to query for Foo and fetch any of it's properties that are in a Pending status. How can this be achieved?
We're working on some code to import legacy data to our Brightspot instance and want to set up some unit tests to help drive the development.
When I've written similar tests for Application Frameworks in other languages, specifically Ruby on Rails and Python/Django, the framework has provided a mechanism for spinning up and tearing down a test database against which the Unit Tests are then run.
Does anything like this exist for Dari/Brightspot and if so could you please point me to it?
If not, do you have any suggestions/advice before I start on putting something together to support this?
Many Thanks
is there a way to count the page views for a high traffic site?
Similar to #70, regarding controller logic and routing.
I have a Hospital content type, to which Consultants are related. A hospital has a URL /my-hospital and I want to list consultants at /my-hospital/consultants. This listing does not need any bespoke managed content, all dynamic.
In something like Rails or Backbone I would have a route such as:
/:hospital_name/consultants
Where I can then map this pattern onto a controller to render the template that lists consultants for the given hospital.
Does Brightspot support dynamic routing such as this, so that CMS-generated URLs directly associated to a model can have child pages auto-generated?
I have a Modification
on the dari Site
class called ExtendedSiteConfig
. I was wondering if I can directly set an instance of a ExtendedSiteConfig
on a particular Site
via a setter or something similar?
Related to http://community.brightspotcms.com/discussions/questions/603-hide-content-types-from-search, how can I remove the SEO and URLs fields from certain content types? Is there an annotation I have not found?
Nick Dunn
Feb 23, 2015 @ 05:06 AM via web
Installing on Mac OS X (10.10.2) with the current JDK 1.8 (Java version: 1.8.0_25, vendor: Oracle Corporation) and Maven 3.2.5 leads to broken install.
Navigating to localhost:8080/cms/ leads to this error message:
Can't render /cms/index.jsp!
No default database! (check [dari/defaultDatabase] setting) (com.psddev.dari.util.SettingsException)
com.psddev.dari.util.Settings.checkValue(Settings.java:303)
com.psddev.dari.util.Settings.getOrError(Settings.java:351)
com.psddev.dari.db.Database$Static.getDefaultOriginal(Database.java:218)
I also noticed that there is a SNAPSHOT dependency, http://public.psddev.com/maven/com/psddev/cms-db/2.4-SNAPSHOT, which is Not Good(tm) for a variety of reasons.
Checking the docs briefly, the /src/main/resources directory is empty, but it looks like there should be a configuration file there?
Clicking a bit around in issues, it looks like down rev to JDK 1.7 is the only answer...? Java 1.8 came out in March 2014, so I'm a bit nervous that there is no 1.8 support yet, almost a year later...?
I clone your release/2.1 and follow the instructions on your website to build and run the project.
Building went fine but "mvn package cargo:run" failed.
Can you please advise? Thanks.
Β± |release/2.1 β| β mvn package cargo:run
[INFO] Scanning for projects...
Downloading: http://public.psddev.com/maven/com/psddev/dari-parent/2.1-SNAPSHOT/maven-metadata.xml
Downloaded: http://public.psddev.com/maven/com/psddev/dari-parent/2.1-SNAPSHOT/maven-metadata.xml (357 B at 0.6 KB/sec)
Downloading: http://public.psddev.com/maven/com/psddev/dari-grandparent/2.1-SNAPSHOT/maven-metadata.xml
Downloaded: http://public.psddev.com/maven/com/psddev/dari-grandparent/2.1-SNAPSHOT/maven-metadata.xml (362 B at 3.2 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] BrightSpot CMS
[INFO] Brightspot CMS: Application Archetype
[INFO] BrightSpot CMS: Database
[INFO] BrightSpot CMS: Tool UI
Downloading: http://public.psddev.com/maven/org/apache/maven/plugins/maven-metadata.xml
Downloading: http://public.psddev.com/maven/org/codehaus/mojo/maven-metadata.xml
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (12 KB at 76.1 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (22 KB at 146.9 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] BrightSpot CMS .................................... SKIPPED
[INFO] Brightspot CMS: Application Archetype ............. SKIPPED
[INFO] BrightSpot CMS: Database .......................... SKIPPED
[INFO] BrightSpot CMS: Tool UI ........................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.392s
[INFO] Finished at: Fri Aug 09 23:57:07 EDT 2013
[INFO] Final Memory: 6M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'cargo' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/Users/cqiu1/.m2/repository), public.psddev (http://public.psddev.com/maven), central (http://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException
When running over HTTPS, clicking "Publish" when saving an entry in a modal window (e.g. editing a related entry from its parent) the AJAX POST is made over HTTP. This works in Safari but Chrome and Firefox block the request:
Blocked loading mixed active content "http://.../cms/content/edit.jsp?action-publish=true&undefined&_frame=true&typeId=...&id=...&published=1436801042709
Is this a bug with the way that the AJAX request's URL is resolved?
Hi,
I am trying to implement the Site search functionality, but found that 'com.psddev.cms.db.Search' is deprecated.
It would be really helpful if you can assist on how to implement the Site Search functionality. The current BrightSpot documentation does not talk much on the Site Search.
I would really appreciate for your inputs.
Thanks,
Dev
Version: 2.4-SNAPSHOT
Description: I would like to use a custom search widget to sort not only by object type, but also by the value of a field on that object. When I annotate the field with @ToolUi.InputSearcherPath("/somePath/searchWidget.jsp"), the resource cannot be found (error 404). To verify that the file can be seen in other contexts, I replaced the annotation with @ToolUi.InputProcessorPath("/somePath/searchWidget.jsp"), and the resource was found successfully.
Hi,
Using the Brightspot documentation, for the search functionality, I am using the cms:form with some input as shown below. I have the following questions:
cms:form class="navbar-form navbar-right" id="searchForm" method="POST" processor="com.test.processor.SearchFormProcessor">
/cms:form"
Processor:
package com.test.processor;
import com.psddev.dari.util.FormProcessor;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class SearchFormProcessor implements FormProcessor {
@OverRide
public Object process(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws IOException {
return "testing now";
}
}
I would appreciate your response.
Thanks,
Dev
Hi,
We are looking at using alternatives to jsp to present the Content in our BrightSpot application.
We have created a new Servlet, mapped it's url pattern to match the @Renderer.Path for the Content and are seeing it run when the url for the content is requested in the browser from BrightSpot.
All good.
What is not clear is how in the Servlet you access the attributes of the Content for the Renderer to present.
Is anyone able to advise?
Looking at the Freemarker Example it looks like the ClassFinder class is involved.
Is there any documentation or examples of how to discover the context in which a Renderer is being invoked, i.e. what Content is the Renderer being asked to Render?
I'll keep digging through the Freemarker demo but if anyone is able to help in the meantime that would be greatly appreciated.
Thanks
Hi to all,
I study Hello world example http://www.brightspot.com/docs/3.0/overview/hello-world#render-content
I understand that any content type can be used to render page and I understand that content type instance is activated by its url. So when I hit url of some Article, appropriate instance is found and rendered via @Renderer.Path jsp. But what should I do when I want to show more items on page? For example I want:
Should I add these getters to Article class - even if Event is not related to any Article?
public class Article extends Content {
public List<Article> getArticles(){
return Query.from(Article.class).selectAll();
}
public List<Event> getEvents(){
return Query.from(Event.class).selectAll();
}
}
Because there is no controllers in Brightspot CMS I misunderstood content types concept. Is content type model for Article records itself or model for page which renders Article records? Please, clarify this.
Many thanks,
Ondrej.
I'm mapping out the URL structure for a site but I'm struggling to see where MVC-esque controller logic would live.
Imagine a content type "News" with permalinks such as /news/my-news-article
. I want to create a news listing page at /news
which has some content fields such as title and introduction I want authors to edit. A couple of options:
Page
model and an instance of it with a permalink of "/news"NewsListingPage
model, that would only ever have a single item, with a fixed permalink "/news"Either way, this page model would provide a getNews
method that returns a list of News items. However I'd like to provide several ways of filtering or sorting these items. In an MVC architecture it would be the roll of a controller to marshall querystring parameters (e.g. ?category=events&sort=date
into data accessors in a model.
Where does this logic live in Brightspot? And if I wanted these URLs to be permalinks instead of querystring parameters (e.g. /news/sort/date
) does Brightspot support dynamic routing to map patterns onto existing pages?
Nick Dunn
Feb 22, 2015 @ 02:31 PM via web
http://community.brightspotcms.com/discussions/questions/601-controller-logic
http://www.brightspot.com/docs/3.0/advanced-configuration/tomcat
The documentation of the cms/tool/isAutoCreateUser environment variable is lacking.
It should also be added to the production section as something that specifically should be disabled.
Hi,
Is there any way we can create scheduled job which reads data from file at runtime and execute accordingly.
Actually instead of creating job for each operation where only _id or _type is varying , what is the preferred way for creating dynamic job?
Please suggest.
Regards
Ajay
How do I get "dynamic content" which would be placed as database stuff? I'm tried to create "Raw HTML" with "/test" static url, but when I accessed with the url all of jsp tags rendered as (for example):
<%@include file="/WEB-INF/common/taglibs.jsp" %>
How to avoid printing <%%>
? Is it possible?
When I tried to generate and install the portal in OS X Yosemite here is appeared:
mvn archetype:generate -B \
-DarchetypeRepository=http://public.psddev.com/maven \
-DarchetypeGroupId=com.psddev \
-DarchetypeArtifactId=cms-content-common-archetype \
-DarchetypeVersion=2.4-SNAPSHOT \
-DgroupId=com.example \
-DartifactId=MyArtifactId \
-DclassPrefix=ClassPrefix \
-DnamespaceUri=example.com
mvn clean install
[INFO] Running "bower-install-simple" task
[INFO] Install Bower Dependencies
[INFO] bower error Arguments to path.join must be strings
[INFO]
[INFO] Stack trace:
[INFO] TypeError: Arguments to path.join must be strings
[INFO] at path.js:360:15
[INFO] at Array.filter (native)
[INFO] at Object.exports.join (path.js:358:36)
[INFO] at Project._readInstalled (..../node_modules/grunt-bower-install-simple/node_modules/bower/lib/core/Project.js:589:26)
[INFO] at Project._analyse (..../node_modules/grunt-bower-install-simple/node_modules/bower/lib/core/Project.js:461:14)
[INFO] at Project.install (..../node_modules/grunt-bower-install-simple/node_modules/bower/lib/core/Project.js:48:17)
[INFO] at install (..../node_modules/grunt-bower-install-simple/node_modules/bower/lib/commands/install.js:27:20)
[INFO] at ..../node_modules/grunt-bower-install-simple/node_modules/bower/lib/commands/index.js:21:32
[INFO] at Promise.apply (..../node_modules/grunt-bower-install-simple/node_modules/bower/node_modules/q/q.js:1078:26)
[INFO] at Promise.promise.promiseDispatch (..../node_modules/grunt-bower-install-simple/node_modules/bower/node_modules/q/q.js:741:41)
[INFO]
[INFO] Console trace:
[INFO] Trace
[INFO] at StandardRenderer.error (..../node_modules/grunt-bower-install-simple/node_modules/bower/lib/renderers/StandardRenderer.js:82:17)
[INFO] at Logger.<anonymous> (..../node_modules/grunt-bower-install-simple/tasks/grunt-bower-install-simple.js:81:22)
[INFO] at Logger.EventEmitter.emit (events.js:95:17)
[INFO] at Logger.emit (..../node_modules/grunt-bower-install-simple/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
[INFO] at ..../node_modules/grunt-bower-install-simple/node_modules/bower/lib/commands/index.js:40:20
[INFO] at _rejected (..../node_modules/grunt-bower-install-simple/node_modules/bower/node_modules/q/q.js:797:24)
[INFO] at ..../node_modules/grunt-bower-install-simple/node_modules/bower/node_modules/q/q.js:823:30
[INFO] at Promise.when (..../node_modules/grunt-bower-install-simple/node_modules/bower/node_modules/q/q.js:1035:31)
[INFO] at Promise.promise.promiseDispatch (..../node_modules/grunt-bower-install-simple/node_modules/bower/node_modules/q/q.js:741:41)
[INFO] at ..../node_modules/grunt-bower-install-simple/node_modules/bower/node_modules/q/q.js:509:49
[INFO]
[INFO] System info:
[INFO] Bower version: 1.3.12
[INFO] Node version: 0.10.26
[INFO] OS: Darwin 14.0.0 x64
[INFO] Warning: Task "bower-install-simple" failed. Use --force to continue.
[INFO]
[INFO] Aborted due to warnings.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
Any ideas?
can you add a new feature to create the content using webservice?
add a rest endpoint and the use can create the content remotely, thanks.
I ran:
mvn archetype:generate -B \
-DarchetypeRepository=http://public.psddev.com/maven \
-DarchetypeGroupId=com.psddev \
-DarchetypeArtifactId=cms-app-archetype \
-DarchetypeVersion=2.4-SNAPSHOT \
-DgroupId=us.fanmob \
-DartifactId=brightspot-example
This generated a package-info.java
containing:
package us.fanmob.brightspot-example;
This generated package name should have any hyphens (which are legal in Maven artifactIds) replaced with underscores, e.g. us.fanmob.brightspot_example
.
Hello,
Version 2.0
When creating a new object through enhancement.jsp, I'm noticing that the objects created are not defaulting to their automatic url paths -- they're being set to manual mode. Is there a way to make sure enhancements, like regular objects created in the cms, are defaulted to automatic?
Thanks!
Hi,
I am having a problem bringing up an instance of brightspot after seemingly having installed and configured an instance or a ubuntu 14.04 VM according to the documentation.
When I point to http://localhost:8080/cms I get the error above, "No default database!"
This is despite the fact that the database is correctly configured in context.xml.
I copy past the unusable playbook that I use to set-up and configure the VM:
- name: install Tomcat 7
apt: name={{ item }} state=present
with_items:
- tomcat7
- tomcat7-admin
- name: configure Tomcat 7 admin user
template: src=templates/tomcat-users.xml.j2 dest=/etc/tomcat7/tomcat-users.xml
- name: create brightspot media directory
file: path=/var/lib/tomcat7/webapps/media-files owner=tomcat7 group=tomcat7 state=directory
- name: replace context.xml
template: src=templates/context.xml.j2 dest=/var/lib/tomcat7/conf/context.xml
- name: reload Tomcat 7
service: name=tomcat7 state=restarted
- name: download Solr 3.6.2
get_url:
url=http://archive.apache.org/dist/lucene/solr/3.6.2/apache-solr-3.6.2.tgz
dest=/home/vagrant/apache-solr-3.6.2.tgz
- name: expand Solr 3.6.2
command:
tar -xf apache-solr-3.6.2.tgz
creates=/home/vagrant/apache-solr-3.6.2/README.txt
- name: place the solr.war file in the Tomcat webapps directory
command:
cp -r /home/vagrant/apache-solr-3.6.2/dist/apache-solr-3.6.2.war /var/lib/tomcat7/webapps/solr.war
creates=/var/lib/tomcat7/webapps/solr.war
- name: copy Solr home into the Tomcat root directory
command:
cp -r /home/vagrant/apache-solr-3.6.2/example/solr /var/lib/tomcat7
creates=/var/lib/tomcat7/solr/README.txt
- name: replace the solrconfig.xml with project-specific version
template: src=templates/solrconfig.xml.j2 dest=/var/lib/tomcat7/solr/conf/solrconfig.xml
- name: replace the schema.xml with project-specific version
template: src=templates/schema.xml.j2 dest=/var/lib/tomcat7/solr/conf/schema.xml
- name: set Solr home owner:group
file: path=/var/lib/tomcat7/solr owner=tomcat7 group=tomcat7 recurse=yes
- name: reload Tomcat 7
service: name=tomcat7 state=restarted
- name: install MySQL 5.5
apt: name=mysql-server-5.5 state=present
- name: install python-mysqldb, required by ansible
apt: name=python-mysqldb state=present
- name: create CMS DB
mysql_db: name=brightspot_db state=present
- name: create CMS DB user/password with all DB privileges and 'WITH GRANT OPTION'
mysql_user:
name=brightspot_user
password=12345678
priv=*.*:ALL,GRANT
state=present
- name: download mysql-connector
get_url:
url=http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.34.tar.gz
dest=/home/vagrant/mysql-connector-java-5.1.34.tar.gz
- name: expand mysql-connector
command:
tar -xf mysql-connector-java-5.1.34.tar.gz
creates=/home/vagrant/mysql-connector-java-5.1.34
- name: place the mysql-connector jar into the tomcat lib directory
command:
cp -r /home/vagrant/mysql-connector-java-5.1.34/mysql-connector-java-5.1.34-bin.jar /usr/share/tomcat7/lib/
creates=/usr/share/tomcat7/lib/mysql-connector-java-5.1.34-bin.jar
- name: generate a maven archetype
command: mvn archetype:generate -B -DarchetypeRepository=http://public.psddev.com/maven -DarchetypeGroupId=com.psddev -DarchetypeArtifactId=cms-app-archetype -DarchetypeVersion=2.4-SNAPSHOT -DgroupId=com.project -DartifactId=yourProject
args:
creates: /home/vagrant/yourProject/pom.xml
- name: build brightspot
command: mvn clean install
args:
chdir: /home/vagrant/yourProject/
- name: undeploy the existing ROOT.war file
command: rm -rf /var/lib/tomcat7/webapps/ROOT.war
- name: undeploy the existing ROOT directory
command: rm -rf /var/lib/tomcat7/webapps/ROOT
- name: deploy war file to tomcat webapps directory
command:
cp -r /home/vagrant/yourProject/target/yourProject-1.0.0-SNAPSHOT.war /var/lib/tomcat7/webapps/ROOT.war
- name: reload Tomcat 7
service: name=tomcat7 state=restarted
I also copy-paste the unusable context.xml template, so you can see that the MySQL configuration in the playbook and context.xml match
WEB-INF/web.xmlCan you reproduce this? Or perhaps spot a configuration error in the file paths for example? Everything seems ok to me.
Many thanks,
Ioannis
The map widget that the CMS creates for fields of type Location doesn't seem to be working.
To reproduce:
Setup and run a bare-bones instance of brightspot with the maven archetype and the maven cargo plugin as described.
Create a simple class with one field of type Location.
In the CMS dashboard try to create a new object of that class.
In the map widget search for any location and hit return.
The map widget simply refreshes back to its default state, instead of the expected result of a pin on the map.
Tried to debug this with firebug but can't spot anything obvious.
Many thanks,
Ioannis
Having trouble getting Brightspot working with PostgreSQL.
Have had no trouble getting it to work with MySQL but with PostgreSQL it appears to only create a handful of the tables and the ping doesn't work :-(
Here's my database config:
<!-- Default Database -->
<Environment name="dari/defaultDatabase" type="java.lang.String" value="branch_nuff_cms" override="false" />
<Environment name="dari/database/branch_nuff_cms/class" override="false" type="java.lang.String" value="com.psddev.dari.db.AggregateDatabase" />
<Environment name="dari/database/branch_nuff_cms/defaultDelegate" override="false" type="java.lang.String" value="sql" />
<Environment name="dari/database/branch_nuff_cms/delegate/sql/class" override="false" type="java.lang.String" value="com.psddev.dari.db.SqlDatabase" />
Here's my PostgreSQL database Resource:
<Resource name="dari/database/branch_nuff_cms/delegate/sql/dataSource"
auth="Container" driverClassName="org.postgresql.Driver"
logAbandoned="true" maxActive="100" maxIdle="30" maxWait="10000"
type="javax.sql.DataSource"
removeAbandoned="true" removeAbandonedTimeout="60"
username="nuffers" password="**********"
url="jdbc:postgresql://*********:5432/branch_nuff_cms"
testOnBorrow="true" validationQuery="SELECT 1"/>
And here's my working MySQL one:
<Resource name="dari/database/ci_nuff_db/delegate/sql/dataSource"
auth="Container" driverClassName="com.mysql.jdbc.Driver"
logAbandoned="true" maxActive="100" maxIdle="30" maxWait="10000"
type="javax.sql.DataSource"
removeAbandoned="true" removeAbandonedTimeout="60"
username="brightspot_user" password="***********"
url="jdbc:mysql://***********:3306/ci_nuff_db"
testOnBorrow="true" validationQuery="SELECT 1"/>
For MySQL it creates all the tables:
mysql> show tables;
+----------------------+
| Tables_in_ci_nuff_db |
+----------------------+
| Metric |
| MetricDimension |
| Metric_d |
| Metric_n |
| Record |
| RecordLocation3 |
| RecordLocation3_d |
| RecordNumber3 |
| RecordNumber3_d |
| RecordRegion2 |
| RecordRegion2_d |
| RecordString4 |
| RecordString4_d |
| RecordUpdate |
| RecordUpdate_d |
| RecordUuid3 |
| RecordUuid3_d |
| Record_d |
| Symbol |
+----------------------+
19 rows in set (0.00 sec)
But for PostgreSQL I only get a handful:
branch_nuff_cms=> \dt
List of relations
Schema | Name | Type | Owner
--------+-----------------+-------+----------
public | record | table | nuffers
public | recordlocation3 | table | nuffers
public | recordnumber3 | table | nuffers
public | spatial_ref_sys | table | rdsadmin
(4 rows)
With the PostgreSQL config, navigating to _debug
Gives the following error under Pings:
Error for com.psddev.dari.db.DefaultDatabasePing
ERROR: column "typeid" named in key does not exist Position: 145 (org.postgresql.util.PSQLException)
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2270)
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1998)
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:570)
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:406)
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:398)
com.psddev.dari.db.SqlVendor.setUp(SqlVendor.java:116)
com.psddev.dari.db.SqlDatabase.setDataSource(SqlDatabase.java:260)
com.psddev.dari.db.SqlDatabase.doInitialize(SqlDatabase.java:1636)
com.psddev.dari.db.AbstractDatabase.initialize(AbstractDatabase.java:377)
com.psddev.dari.util.Settings.newInstance(Settings.java:549)
com.psddev.dari.db.Database$Static$1.load(Database.java:165)
com.psddev.dari.db.Database$Static$1.load(Database.java:162)
com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
com.google.common.cache.LocalCache.get(LocalCache.java:4000)
com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4880)
com.psddev.dari.db.Database$Static.getInstance(Database.java:197)
com.psddev.dari.db.AggregateDatabase.createDelegates(AggregateDatabase.java:202)
com.psddev.dari.db.AggregateDatabase.initialize(AggregateDatabase.java:157)
com.psddev.dari.util.Settings.newInstance(Settings.java:549)
com.psddev.dari.db.Database$Static$1.load(Database.java:165)
com.psddev.dari.db.Database$Static$1.load(Database.java:162)
com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
com.google.common.cache.LocalCache.get(LocalCache.java:4000)
com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4880)
com.psddev.dari.db.Database$Static.getInstance(Database.java:197)
com.psddev.dari.db.Database$Static.getDefaultOriginal(Database.java:219)
com.psddev.dari.db.Database$Static.getDefault(Database.java:207)
com.psddev.dari.db.DefaultDatabasePing.ping(DefaultDatabasePing.java:11)
com.psddev.dari.util.Ping$Static.ping(Ping.java:25)
com.psddev.dari.util.Ping$Static.pingAll(Ping.java:41)
com.psddev.dari.util.DebugFilter$2.<init>(DebugFilter.java:335)
com.psddev.dari.util.DebugFilter.doRequest(DebugFilter.java:278)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.DebugFilter.doDispatch(DebugFilter.java:158)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.ResourceFilter.doRequest(ResourceFilter.java:64)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.DebugFilter$SettingsOverrideFilter.doRequest(DebugFilter.java:737)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.LogCaptureFilter.doRequest(LogCaptureFilter.java:43)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.HeaderResponseFilter.doRequest(HeaderResponseFilter.java:34)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.SourceFilter.doRequest(SourceFilter.java:373)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.SourceFilter.doDispatch(SourceFilter.java:271)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.Utf8Filter.doRequest(Utf8Filter.java:93)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
java.lang.Thread.run(Thread.java:745)
Can't check for required tables! (com.psddev.dari.db.SqlDatabaseException)
com.psddev.dari.db.SqlDatabase.setDataSource(SqlDatabase.java:269)
com.psddev.dari.db.SqlDatabase.doInitialize(SqlDatabase.java:1636)
com.psddev.dari.db.AbstractDatabase.initialize(AbstractDatabase.java:377)
com.psddev.dari.util.Settings.newInstance(Settings.java:549)
com.psddev.dari.db.Database$Static$1.load(Database.java:165)
com.psddev.dari.db.Database$Static$1.load(Database.java:162)
com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
com.google.common.cache.LocalCache.get(LocalCache.java:4000)
com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4880)
com.psddev.dari.db.Database$Static.getInstance(Database.java:197)
com.psddev.dari.db.AggregateDatabase.createDelegates(AggregateDatabase.java:202)
com.psddev.dari.db.AggregateDatabase.initialize(AggregateDatabase.java:157)
com.psddev.dari.util.Settings.newInstance(Settings.java:549)
com.psddev.dari.db.Database$Static$1.load(Database.java:165)
com.psddev.dari.db.Database$Static$1.load(Database.java:162)
com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
com.google.common.cache.LocalCache.get(LocalCache.java:4000)
com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4880)
com.psddev.dari.db.Database$Static.getInstance(Database.java:197)
com.psddev.dari.db.Database$Static.getDefaultOriginal(Database.java:219)
com.psddev.dari.db.Database$Static.getDefault(Database.java:207)
com.psddev.dari.db.DefaultDatabasePing.ping(DefaultDatabasePing.java:11)
com.psddev.dari.util.Ping$Static.ping(Ping.java:25)
com.psddev.dari.util.Ping$Static.pingAll(Ping.java:41)
com.psddev.dari.util.DebugFilter$2.<init>(DebugFilter.java:335)
com.psddev.dari.util.DebugFilter.doRequest(DebugFilter.java:278)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.DebugFilter.doDispatch(DebugFilter.java:158)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.ResourceFilter.doRequest(ResourceFilter.java:64)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.DebugFilter$SettingsOverrideFilter.doRequest(DebugFilter.java:737)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.LogCaptureFilter.doRequest(LogCaptureFilter.java:43)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.HeaderResponseFilter.doRequest(HeaderResponseFilter.java:34)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.SourceFilter.doRequest(SourceFilter.java:373)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.SourceFilter.doDispatch(SourceFilter.java:271)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.Utf8Filter.doRequest(Utf8Filter.java:93)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
java.lang.Thread.run(Thread.java:745)
com.psddev.dari.db.SqlDatabaseException: Can't check for required tables! (com.google.common.util.concurrent.UncheckedExecutionException)
com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2263)
com.google.common.cache.LocalCache.get(LocalCache.java:4000)
com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4880)
com.psddev.dari.db.Database$Static.getInstance(Database.java:197)
com.psddev.dari.db.AggregateDatabase.createDelegates(AggregateDatabase.java:202)
com.psddev.dari.db.AggregateDatabase.initialize(AggregateDatabase.java:157)
com.psddev.dari.util.Settings.newInstance(Settings.java:549)
com.psddev.dari.db.Database$Static$1.load(Database.java:165)
com.psddev.dari.db.Database$Static$1.load(Database.java:162)
com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
com.google.common.cache.LocalCache.get(LocalCache.java:4000)
com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4880)
com.psddev.dari.db.Database$Static.getInstance(Database.java:197)
com.psddev.dari.db.Database$Static.getDefaultOriginal(Database.java:219)
com.psddev.dari.db.Database$Static.getDefault(Database.java:207)
com.psddev.dari.db.DefaultDatabasePing.ping(DefaultDatabasePing.java:11)
com.psddev.dari.util.Ping$Static.ping(Ping.java:25)
com.psddev.dari.util.Ping$Static.pingAll(Ping.java:41)
com.psddev.dari.util.DebugFilter$2.<init>(DebugFilter.java:335)
com.psddev.dari.util.DebugFilter.doRequest(DebugFilter.java:278)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.DebugFilter.doDispatch(DebugFilter.java:158)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.ResourceFilter.doRequest(ResourceFilter.java:64)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.DebugFilter$SettingsOverrideFilter.doRequest(DebugFilter.java:737)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.LogCaptureFilter.doRequest(LogCaptureFilter.java:43)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.HeaderResponseFilter.doRequest(HeaderResponseFilter.java:34)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.SourceFilter.doRequest(SourceFilter.java:373)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.SourceFilter.doDispatch(SourceFilter.java:271)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.Utf8Filter.doRequest(Utf8Filter.java:93)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
java.lang.Thread.run(Thread.java:745)
com.google.common.util.concurrent.UncheckedExecutionException: com.psddev.dari.db.SqlDatabaseException: Can't check for required tables! (com.google.common.util.concurrent.UncheckedExecutionException)
com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2263)
com.google.common.cache.LocalCache.get(LocalCache.java:4000)
com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4880)
com.psddev.dari.db.Database$Static.getInstance(Database.java:197)
com.psddev.dari.db.Database$Static.getDefaultOriginal(Database.java:219)
com.psddev.dari.db.Database$Static.getDefault(Database.java:207)
com.psddev.dari.db.DefaultDatabasePing.ping(DefaultDatabasePing.java:11)
com.psddev.dari.util.Ping$Static.ping(Ping.java:25)
com.psddev.dari.util.Ping$Static.pingAll(Ping.java:41)
com.psddev.dari.util.DebugFilter$2.<init>(DebugFilter.java:335)
com.psddev.dari.util.DebugFilter.doRequest(DebugFilter.java:278)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.DebugFilter.doDispatch(DebugFilter.java:158)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.ResourceFilter.doRequest(ResourceFilter.java:64)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.DebugFilter$SettingsOverrideFilter.doRequest(DebugFilter.java:737)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.LogCaptureFilter.doRequest(LogCaptureFilter.java:43)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.HeaderResponseFilter.doRequest(HeaderResponseFilter.java:34)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.SourceFilter.doRequest(SourceFilter.java:373)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.SourceFilter.doDispatch(SourceFilter.java:271)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.Utf8Filter.doRequest(Utf8Filter.java:93)
com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
java.lang.Thread.run(Thread.java:745)
Here's what's in the catalina.out
log:
INFO: Found debug servlets: [build, code, db-bootstrap, db-bulk, db-odata, db-query-usages, db-schema, db-solr, db-sql, db-storage, db-web, init, query, settings, stats, task]
Mar 23, 2015 4:49:34 PM com.psddev.dari.db.SqlDatabase setDataSource
INFO: Initializing SQL vendor for [null]: [PostgreSQL] -> [class com.psddev.dari.db.SqlVendor$PostgreSQL]
Mar 23, 2015 4:49:40 PM com.psddev.dari.db.SqlDatabase setDataSource
INFO: Initializing SQL vendor for [null]: [PostgreSQL] -> [class com.psddev.dari.db.SqlVendor$PostgreSQL]
Mar 23, 2015 4:49:41 PM com.psddev.dari.util.Task run
WARNING: Error running [com.psddev.cms.tool.CmsTool$DariSettingsUpdater #1]!
com.google.common.util.concurrent.UncheckedExecutionException: com.google.common.util.concurrent.UncheckedExecutionException: com.psddev.dari.db.SqlDatabaseException: Can't check for required tables!
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2263)
at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4880)
at com.psddev.dari.db.Database$Static.getInstance(Database.java:197)
at com.psddev.dari.db.Database$Static.getDefaultOriginal(Database.java:219)
at com.psddev.dari.db.Database$Static.getDefault(Database.java:207)
at com.psddev.dari.db.Query.getDatabase(Query.java:277)
at com.psddev.dari.db.Query.lastUpdate(Query.java:1503)
at com.psddev.cms.tool.CmsTool$DariSettingsUpdater.doRepeatingTask(CmsTool.java:935)
at com.psddev.dari.util.RepeatingTask.doTask(RepeatingTask.java:51)
at com.psddev.dari.util.Task.run(Task.java:493)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.google.common.util.concurrent.UncheckedExecutionException: com.psddev.dari.db.SqlDatabaseException: Can't check for required tables!
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2263)
at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4880)
at com.psddev.dari.db.Database$Static.getInstance(Database.java:197)
at com.psddev.dari.db.AggregateDatabase.createDelegates(AggregateDatabase.java:202)
at com.psddev.dari.db.AggregateDatabase.initialize(AggregateDatabase.java:157)
at com.psddev.dari.util.Settings.newInstance(Settings.java:549)
at com.psddev.dari.db.Database$Static$1.load(Database.java:165)
at com.psddev.dari.db.Database$Static$1.load(Database.java:162)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
... 19 more
Caused by: com.psddev.dari.db.SqlDatabaseException: Can't check for required tables!
at com.psddev.dari.db.SqlDatabase.setDataSource(SqlDatabase.java:269)
at com.psddev.dari.db.SqlDatabase.doInitialize(SqlDatabase.java:1636)
at com.psddev.dari.db.AbstractDatabase.initialize(AbstractDatabase.java:377)
at com.psddev.dari.util.Settings.newInstance(Settings.java:549)
at com.psddev.dari.db.Database$Static$1.load(Database.java:165)
at com.psddev.dari.db.Database$Static$1.load(Database.java:162)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
... 33 more
Caused by: org.postgresql.util.PSQLException: ERROR: column "typeid" named in key does not exist
Position: 145
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2270)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1998)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:570)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:406)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:398)
at com.psddev.dari.db.SqlVendor.setUp(SqlVendor.java:116)
at com.psddev.dari.db.SqlDatabase.setDataSource(SqlDatabase.java:260)
... 42 more
Mar 23, 2015 4:49:50 PM com.psddev.dari.db.SqlDatabase setDataSource
INFO: Initializing SQL vendor for [null]: [PostgreSQL] -> [class com.psddev.dari.db.SqlVendor$PostgreSQL]
Mar 23, 2015 4:49:51 PM com.psddev.dari.util.Task run
WARNING: Error running [com.psddev.cms.tool.CmsTool$DariSettingsUpdater #1]!
com.google.common.util.concurrent.UncheckedExecutionException: com.google.common.util.concurrent.UncheckedExecutionException: com.psddev.dari.db.SqlDatabaseException: Can't check for required tables!
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2263)
at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4880)
at com.psddev.dari.db.Database$Static.getInstance(Database.java:197)
at com.psddev.dari.db.Database$Static.getDefaultOriginal(Database.java:219)
at com.psddev.dari.db.Database$Static.getDefault(Database.java:207)
at com.psddev.dari.db.Query.getDatabase(Query.java:277)
at com.psddev.dari.db.Query.lastUpdate(Query.java:1503)
at com.psddev.cms.tool.CmsTool$DariSettingsUpdater.doRepeatingTask(CmsTool.java:935)
at com.psddev.dari.util.RepeatingTask.doTask(RepeatingTask.java:51)
at com.psddev.dari.util.Task.run(Task.java:493)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.google.common.util.concurrent.UncheckedExecutionException: com.psddev.dari.db.SqlDatabaseException: Can't check for required tables!
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2263)
at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4880)
at com.psddev.dari.db.Database$Static.getInstance(Database.java:197)
at com.psddev.dari.db.AggregateDatabase.createDelegates(AggregateDatabase.java:202)
at com.psddev.dari.db.AggregateDatabase.initialize(AggregateDatabase.java:157)
at com.psddev.dari.util.Settings.newInstance(Settings.java:549)
at com.psddev.dari.db.Database$Static$1.load(Database.java:165)
at com.psddev.dari.db.Database$Static$1.load(Database.java:162)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4880)
at com.psddev.dari.db.Database$Static.getInstance(Database.java:197)
at com.psddev.dari.db.Database$Static.getDefaultOriginal(Database.java:219)
at com.psddev.dari.db.Database$Static.getDefault(Database.java:207)
at com.psddev.dari.db.DefaultDatabasePing.ping(DefaultDatabasePing.java:11)
at com.psddev.dari.util.Ping$Static.ping(Ping.java:25)
at com.psddev.dari.util.Ping$Static.pingAll(Ping.java:41)
at com.psddev.dari.util.DebugFilter$2.<init>(DebugFilter.java:335)
at com.psddev.dari.util.DebugFilter.doRequest(DebugFilter.java:278)
at com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
at com.psddev.dari.util.DebugFilter.doDispatch(DebugFilter.java:158)
at com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
at com.psddev.dari.util.ResourceFilter.doRequest(ResourceFilter.java:64)
at com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
at com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
at com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
at com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
at com.psddev.dari.util.DebugFilter$SettingsOverrideFilter.doRequest(DebugFilter.java:737)
at com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
at com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
at com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
at com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
at com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
at com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
at com.psddev.dari.util.LogCaptureFilter.doRequest(LogCaptureFilter.java:43)
at com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
at com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
at com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
at com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
at com.psddev.dari.util.HeaderResponseFilter.doRequest(HeaderResponseFilter.java:34)
at com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
at com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
at com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
at com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
at com.psddev.dari.util.SourceFilter.doRequest(SourceFilter.java:373)
at com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
at com.psddev.dari.util.SourceFilter.doDispatch(SourceFilter.java:271)
at com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
at com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
at com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
at com.psddev.dari.util.Utf8Filter.doRequest(Utf8Filter.java:93)
at com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:403)
at com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:565)
at com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
at com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
at com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
at com.psddev.dari.util.AbstractFilter$DependencyFilterChain.doFilter(AbstractFilter.java:558)
at com.psddev.dari.util.AbstractFilter.doFilter(AbstractFilter.java:274)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
... 3 more
Caused by: com.psddev.dari.db.SqlDatabaseException: Can't check for required tables!
at com.psddev.dari.db.SqlDatabase.setDataSource(SqlDatabase.java:269)
at com.psddev.dari.db.SqlDatabase.doInitialize(SqlDatabase.java:1636)
at com.psddev.dari.db.AbstractDatabase.initialize(AbstractDatabase.java:377)
at com.psddev.dari.util.Settings.newInstance(Settings.java:549)
at com.psddev.dari.db.Database$Static$1.load(Database.java:165)
at com.psddev.dari.db.Database$Static$1.load(Database.java:162)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
... 81 more
Caused by: org.postgresql.util.PSQLException: ERROR: column "typeid" named in key does not exist
Position: 145
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2270)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1998)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:570)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:406)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:398)
at com.psddev.dari.db.SqlVendor.setUp(SqlVendor.java:116)
at com.psddev.dari.db.SqlDatabase.setDataSource(SqlDatabase.java:260)
... 90 more
Can anyone see what I'm doing wrong? Is there some PostgreSQL specific config item that needs to be set?
Thanks
Chris
I am following the documentation for the development installation of brightspot,from here
http://www.brightspot.com/docs/2.4/get-started/installation#development-installation
I have had problems with the brightspot solrconfig.xml file.
A request to http://localhost:8080/solr/admin/ returns an HTTP Status 404 - missing core name in path.
At the same time the tomcat logs have a stack trace complaining about this value
LUCENE_40
SEVERE: org.apache.solr.common.SolrException: Invalid luceneMatchVersion 'LUCENE_40', valid values are: [LUCENE_20, LUCENE_21, LUCENE_22, LUCENE_23, LUCENE_24, LU
CENE_29, LUCENE_30, LUCENE_31, LUCENE_32, LUCENE_33, LUCENE_34, LUCENE_35, LUCENE_36, LUCENE_CURRENT] or a string in format 'V.V'
I replaced the value with 36 and then I got the same 404 error and this time another stack trace about a ClassNotFoundException
SEVERE: org.apache.solr.common.SolrException: Error loading class 'solr.RealTimeGetHandler'
...
Caused by: java.lang.ClassNotFoundException: solr.RealTimeGetHandler
When I comment out the xml that loads the class in the solrconfig.xml, and load tomcat I finally get the Solr service running.
Maybe this solrconfig.xml file is Solr4 specific, and 3.6 does not have that class, and it doesn't support values above 36 in luceneMatchVersion?
Many thanks,
Ioannis
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.