-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work for me. #9
Comments
Are you using Windows? If so, how did you install Neo4j? |
I am using Windows 7 Enterprise. I installed Neo4j with the usual defaults except on the D drive instead of the C as I didn't want to stomp over the previous version, just in case.
Are you using Windows? If so, how did you install Neo4j?— |
Try running the standalone Windows version from ZIP (just unpack it to a directory and start it with "neo4j.bat console" from cmd.exe) and let me know how it works. Also, can you provide me the full path of the plugins directory that the config dialog button opens? |
Didn't know the zip existed, I'll try that next
Try running the standalone Windows version from ZIP (just unpack it to a directory and start it with "neo4j.bat console" from cmd.exe) and let me know how it works.Also, can you provide me the full path of the plugins directory that the config dialog button opens?— |
Could you also check if you have a secondary plugins directory under your user's appdata, maybe something like C:\Users\yourusername\AppData\Roaming\Neo4j Community Edition\plugins? If you can find such a directory, could you try putting the JAR file in that directory instead of the one indicated in the dialog? |
Ok so I can run it from console. It claims to be loading the unmanaged extension, but nothing shows up in the "extensions" part of :GET db/data
Didn't know the zip existed, I'll try that next
Try running the standalone Windows version from ZIP (just unpack it to a directory and start it with "neo4j.bat console" from cmd.exe) and let me know how it works.Also, can you provide me the full path of the plugins directory that the config dialog button opens?— |
There is a "C:\Users\yourusername\AppData\Roaming\Neo4j Community Edition" directory, but no plugins subdirectory.
Ok so I can run it from console. It claims to be loading the unmanaged extension, but nothing shows up in the "extensions" part of :GET db/data
Didn't know the zip existed, I'll try that next
Try running the standalone Windows version from ZIP (just unpack it to a directory and start it with "neo4j.bat console" from cmd.exe) and let me know how it works.Also, can you provide me the full path of the plugins directory that the config dialog button opens?— |
You could give it a shot. Did you manage to get it working from the ZIP installation? |
The zip installation doesn't crash with the extension installed (copied to plugin directory & setting set in neo4j.conf), but it also doesn't show up when neo4j is running.
You could give it a shot. Did you manage to get it working from the ZIP installation?— |
Finally found the log file where the startup/mounting error is being thrown. Here is the trace:
The zip installation doesn't crash with the extension installed (copied to plugin directory & setting set in neo4j.conf), but it also doesn't show up when neo4j is running.
You could give it a shot. Did you manage to get it working from the ZIP installation?— |
Can you paste the package name you're using in your extension and the full config setting for the extensions in neo4j.conf? This template uses the com.neo4j.example.extension package, so the setting should be something like: dbms.unmanaged_extension_classes=com.neo4j.example.extension=/example/ext You should then be able to browse to http://localhost:7474/example/ext/service/helloworld |
The package name is "org.neo4j.examples.server.unmanaged" Does it matter that they start with "org" instead of "com"? I would have thought that wouldn't matter as long as they match.
Can you paste the package name you're using in your extension and the full config setting for the extensions in neo4j.conf? This template uses the com.neo4j.example.extension package, so the setting should be something like:dbms.unmanaged_extension_classes=com.neo4j.example.extension=/example/extYou should then be able to browse to http://localhost:7474/example/ext/service/helloworld— |
Ah, yeah, unfortunately the value in the file doesn't match the package name in my example package. You need to change the org.... part to the com.... part I pasted above. Try it out and see if you can get the extension mounted. |
Didn't help. I still get this error in the neo4j.log:SEVERE: The ResourceConfig instance does not contain any root resource classes.
Ah, yeah, unfortunately the value in the file doesn't match the package name in my example package. You need to change the org.... part to the com.... part I pasted above. Try it out and see if you can get the extension mounted.— |
Odd. Can you recount to me the steps you take to build and deploy it, from scratch? |
I downloaded the zip file, unzipped it and cd into it. Then I close and save that file, and start Neo4j. In the neo4j.log file I get the following trace:2016-06-21 16:37:24.561+0000 INFO [o.n.s.m.ThirdPartyJAXRSModule] Mounted unmanaged extension [com.neo4j.example.extension] at [/example]Jun 21, 2016 12:37:24 PM com.sun.jersey.api.core.PackagesResourceConfig initINFO: Scanning for root resource and provider classes in the packages: com.neo4j.example.extensionJun 21, 2016 12:37:24 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiateINFO: Initiating Jersey application, version 'Jersey: 1.19 02/11/2015 03:25 AM'Jun 21, 2016 12:37:24 PM com.sun.jersey.server.impl.application.RootResourceUriRules SEVERE: The ResourceConfig instance does not contain any root resource classes.2016-06-21 16:37:24.824+0000 ERROR [o.n.s.CommunityNeoServer] Failed to start Neo4j on arl15031.arl.psu.edu:7474: org.neo4j.server.web.NeoServletContainer-5eac703a@5a92f5ed==org.neo4j.server.web.NeoServletContainer,-1,false
Odd. Can you recount to me the steps you take to build and deploy it, from scratch?— |
The build process for the extension looks fine, as does the configuration. Did you try this with a ZIP installation of Neo4j though? Download Neo4j as a ZIP for Windows, unpack it, put the extension JAR file into the plugins directory in the unpacked ZIP, update the config in conf\neo4j.com, and then start Neo4j using "bin\Neo4j.bat console". Does that still give you an error? |
I just tried that and it seems to work. No idea why the "real" installation doesn't.
The build process for the extension looks fine, as does the configuration. Did you try this with a ZIP installation of Neo4j though? Download Neo4j as a ZIP for Windows, unpack it, put the extension JAR file into the plugins directory in the unpacked ZIP, update the config in conf\neo4j.com, and then start Neo4j using "bin\Neo4j.bat console". Does that still give you an error?— |
I believe there are some fixes coming in the next version around this. The resource /db/data/ext is somewhat confusingly named, as it shows server plugins loaded and not extensions. Server plugins are a deprecated code loading mechanism in Neo4j that should not be used any more. The correct way to load code in Neo4j is via extensions and/or stored procedures. |
Using this code, and following the directions exactly, I get the following error on server startup:
Starting Neo4j failed: org.neo4j.server.web.NeoServletContainer-38f50e36@4455cbe0==org.neo4j.server.web.NeoServletContainer,-1,false
The text was updated successfully, but these errors were encountered: