Why Playframework database configuration error in application.conf - postgresql

I have have correct PostgreSQL installed and I can use this by other framework such as Spring. When I tried write some code for Play 2.1 that should use postgresql 9.4.1. I'm also using Slick 3.0.
I have following in the application.conf
db.default.driver="org.postgresql.Driver"
db.default.url="jdbc:postgresql:mydb"
db.default.user=myuser

db.default.password=mypass
When I start application it give error:-
Missing configuration [db.ansiDump.driver]
I added
db.ansiDump.driver="org.postgresql.Driver"
db.ansiDump.url="jdbc:postgresql:mydb"
Then I get error:-
Missing configuration [db.unicodeDump.driver]
I added
db.unicodeDump.driver="org.postgresql.Driver"

db.unicodeDump.url="jdbc:postgresql:mydb"
Then I get error:-
Missing configuration [db.dumpPaths.driver]
So again I added:-
db.dumpPaths.driver="org.postgresql.Driver"
db.dumpPaths.url="jdbc:postgresql:mydb"
After all these sequence of driver and url, It worked. I am sure, I am doing something wrong to configure drive o url.
Please tell me what is wrong and how it should be done.
Updated infromation:-
Additional information.
Sorry I can't keep correct format for the whole application.conf file content. So I uploaded it in Google Drive. Please check the link enter link description here
To reproduce the error I had to comment line number 45 #db.ansiDump.driver="org.postgresql.Driver"
After comment I get this exception:-
Configuration error
Missing configuration [db.ansiDump.driver]
In /Users/ma/work/app/conf/application.conf:45

I think the url should be
db.default.url="jdbc:postgresql://localhost:5432/dbName"

Related

Got com.google.inject.ProvisionExceptionerror when using PostgreSQL JDBC on GraphDB - dependency issue?

I'm getting a provision error when using PostgreSQL JDBC on GraphDB. Actually, I created a connection between postgresql and Graphdb by a virtual repository, and I made a ODBC file which includes the RDF mapping information.
Expected: Normaly I can browse PostgreSQL data's hierarchy and so on in GraphDB.
Error: The connection was fine and the repository was created successfully, but when I tried to browse the data, I got this error:
Actions that I did: I did go /opt/graphdb-free/app/lib/plugins/dependencies-plugin/dependencies-plugin.jar to modify the dependency parameter, but it didn't change anything. I did checked the syntax of ODBC file and I don't see anything wrong there.
Anyone have been though this? Was I in the right place to modify the dependency? Or it's something else?

Config.yml Using Plugin LobbyCompass giving error

I am having this problem: I have configured my config.yml on a plugin called LobbyCompass, its a plugin on minecraft for my server and its version v2.5
This is the error I am getting when I try to open up the compass:
[.17:27:58 INFO]: [LobbyCompass] A open-compass error has been thrown. Please check your config or contact a developer if the problem persist.
I do not think this is a problem with the plugin and I think this is a problem with my config.yml. Could somebody fix this for me?
https://hastebin.com/iqegomegam.coffeescript
I think I know how to help you, there are multiple situations, if none of them described here help then please comment on what your situation is
1) If you have a plugin you will have to go to the plugin.yml and in that file you will have to add this line
dependent: LobbyCompass
2) If you have a server then in the server.properties you will have to add this line of code
depend: [LobbyCompass]
3) If none of those work then go in the game with that error and type in /plugins. If LobbyCompass is there then you must contact the developers because there is an error, or you can download a different version of the plugin. If it is not there then you must delete the plugin, delete all cache and then reinstall the plugin.
For all of those solution you must remove all other plugins and their configs temporarily

Configuring PostgreSQL on Play! 2.6

I have a PostgreSQL(v9.6) instance running on my machine. The database is called 'postgres'. I've managed to open the application in pgAdmin 3 using localhost:5432. In my Play! application(v2.6.2) I have added the driver and the url to the application.conf file following the tutorial here and I have added the javaJdbc dependency to my build.sbt file. So I have the following:
db.default.driver=org.postgresql.Driver
db.default.url="jdbc:postgresql://localhost:5432/postgres"
db.default.username = "user"
db.default.password = "pass"
When I run the application though I get this error in the console:
Cannot connect to database [default]
Could somebody explain to me why this is the case? I can provide more information if I need to.
So after quite a bit of digging, it turns out the problem was actually me missing the postgres dependency. If anyone encounters this problem I would suggest checking your build.sbt file and adding the org.postgres dependency if you are missing it.
This documentation on the play website doesn't explain this step.

How to connect mongodb to neo4j

I am trying to connect mongodb data to neo4j.
I tried with this code "CALL apoc.mongodb.get('mongodb://localhost:27017','test','test',{name:'testDocument'})" in Neo4j.
But I get an error as
There is no procedure with the name apoc.mongodb.get registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.
I had added APOC jar files in Neo4j plugins and I gone through this link http://indexoutofrange.com/Neo4jStoredProceduresWindows/
still Iam unable to connect.
can someone please explain what shall i do to get this started.
Thanks
In addition to copying the APOC jar file to $NEO4J_HOME/plugins you'll also need to copy the mongo specific jar files into $NEO4J_HOME/plugins. For example:
mvn dependency:copy-dependencies
cp target/dependency/mongodb*.jar target/dependency/bson*.jar $NEO4J_HOME/plugins/
More information available in the docs here
I know this was made 5 years ago but this is for anyone else (like myself) who's looking for an answer.
The URI should look something like this:
CALL apoc.mongo.find("mongodb://localhost:port/databaseName.collectionName")

Problems with zend-tool reporting that providers are not valid

I have recently setup XAMPP 1.7.3 and ZendFramework 1.10.4 on a new computer and many of the commands that I normally use now fail.
Here are the steps I used to setup and test ZF.
First I added the ZF library folder (C:\xampp\php\ZendFramework-1.10.4\library) to the include path in php.ini.
Then I added the ZF bin folder (C:\xampp\php\ZendFramework-1.10.4\bin) to my Path system variable.
To test that everything is configured correctly I ran the command "zf show version" from the command line. The result is "Zend Framework Version: 1.9.6".
Immediately something appears to be wrong. The file that is downloaded is "ZendFramework-1.10.4.zip" and the reported version is 1.9.6. I have re-downloaded the latest version (1.10.4) and removed old copy. Still the incorrect version number problem persisted.
Having done some research there is a bug in the ZF knowledgebase that version 1.10.3 reports a wrong version number. So that may explain the version number problem.
Moving forward I tried to run some zf-tool commands and certain commands reports that the action or provider is not valid.
Example:
C:\xampp\htdocs>zf create project test
Creating project at C:/xampp/htdocs/test
C:\xampp\htdocs>cd test
C:\xampp\htdocs\test>zf create controller Test
Creating a controller at C:\xampp\htdocs\test/application/controllers/TestController.php
...
Updating project profile 'C:\xampp\htdocs\test/.zfproject.xml'
C:\xampp\htdocs\test>zf create action test Test
Creating an action named test inside controller at C:\xampp\htdocs\test/application/controllers/TestController.php
...
Updating project profile 'C:\xampp\htdocs\test/.zfproject.xml'
C:\xampp\htdocs\test>zf enable layout
An Error Has Occurred
Action 'enable' is not a valid action.
...
C:\xampp\htdocs\test>zf create form Test
An Error Has Occurred
Provider 'form' is not a valid provider.
...
Can any one provide insight into these errors and how to correct them?
I had a similar issue, it turned out that I needed to manually update the zf.bat and zf.php files that came included with xampp after updating to the latest zend framework.
I got them from the zend svn here: http://framework.zend.com/svn/framework/standard/trunk/bin/
the simple way if you are using xampp, just go to the path "xampp\php\PEAR" an replace the older Zend directory with all included files by a new one zend 1.10... dir and your porblems are lost :)
i think your problem is, that Zend Tool is shipped with xampp since some versions.
Try to find zf.bat in your Xampp directory and remove it ;)
ZF friends have written the worst kind of docs. For XAMPP user, it is more difficult. I have learning ZF and posting error getting on the path. I am also using XAMPP.
Your error list is very big. I hope I can help you.
Solution for error "An Error Has Occurred
Action 'enable' is not a valid action." is XAMPP's Zend Tool installation. Delete that.
Check here for more details about the solution and other possible errors: http://www.satya-weblog.com/2010/11/zend-framework-creating-layout.html.