vahidhedayati / grails-wschat-plugin

Grails websocket chat Plugin provides a multi-chat room add-on to an existing grails based site. provides: Private Messaging/WebRTC/Offline PM + room booking/reservations. Websocket TicTactoe. Add Live Chat to your Grails application
http://grails.org/plugin/wschat
Apache License 2.0
22 stars 10 forks source link

cannot install wschat:3.0.3 #9

Closed akiong closed 8 years ago

akiong commented 8 years ago

hi... i am trying to install websocket chat. i am using grails 3.0.5.. like this..

compile "org.grails.plugins:wschat:3.0.3"

but i get this error when run-app

Total time: 3.967 secs
| Error Could not resolve all dependencies for configuration ':testRuntime'. Type 'gradle dependencies' for more information

what must i do?

vahidhedayati commented 8 years ago

Just tried it under grails 3.0.9 and it worked fine. I suspect it may be related to your cache folders.

Try moving/removing .grails and .m2 folders from your users home folder and then go back into the project and try grails run-app

You will also require a configuration file, once you create an app and put in the dependency put this config file in place:

wget https://raw.githubusercontent.com/vahidhedayati/testwschat3/master/grails-app/conf/application.groovy -O grails-app/conf/application.groovy

akiong commented 8 years ago

hmm..it strange..

http://www.4shared.com/video/CZTr3Hfgce/newfile.html

look this...i already try to delete folder .grails'and .m2 ..but still cannot download that plugin

vahidhedayati commented 8 years ago

http://stackoverflow.com/questions/33345663/grails-3-0-with-wschat-web-socket-chat-plugin if you still have it application.yml. try putting it in build.gradle

akiong commented 8 years ago

oh ...sorry..thats my fault...just a mistype...you will get it after see my video from http://www.4shared.com/video/CZTr3Hfgce/newfile.html

i still don't know why i cannot install wschat plugin..

i tried to create a new project and put this line in to build.gradle compile "org.grails.plugins:wschat:3.0.3" but still get the same error

akyong commented 8 years ago

i get the same error too..i cannot install websocket chat plugin 3.0.3..

vahidhedayati commented 8 years ago

Coudn't watch that video it requires exe to be able to be executed .. that's not gonna work under linux.

https://www.youtube.com/watch?v=dkKmMaSjjeU here is a video showing it working under 3.0.5 on my local pc..

akiong commented 8 years ago

it's strange.... https://www.youtube.com/watch?v=3XWmrKI5WdQ&feature=youtu.be

i still confuse with that...or its because i am using windows?

https://youtu.be/AmnUCJpxGRI

vahidhedayati commented 8 years ago

Very much doubt it is anything related to your OS. It's most likely something related to your local setup.

I would suggest creating a new work space under intelij and trying again.

Have you tried exporting out the grails java/gradle environment config for dos and attempting to manually launch grails run app without reliance on intelij ?

I would also highly recommend testing it under another windows user account since as mentioned why would it work in my case and not yours (regardless of OS)

Also I highlighted my version of gradle right at the on the video I think its 2.6. Try updating your local gradle see if that also make a diff

I think there is also a .gradle folder in your users home folder. If updating to 2.6 hasn't done it then also try removing .gradle folder too

akiong commented 8 years ago

Have you tried exporting out the grails java/gradle environment config for dos and attempting to manually launch grails run app without reliance on intelij ? i tried,.. and i get the same error..

after i remove folder .gradle ..and run-app .. it will download again...but still using gradle 2.3...

now i am trying to update to gradle 2.6...but how?

akiong commented 8 years ago

i tried at another user windows account...a create a first grails application...to try install wschat ...but i got the same error.. and i try to update gradle to 2.8...but still get that error

C:\Users\User\Documents\ChatV3>grails run-app

Configuring > 0/1 projects > root project > Resolving dependencies ':classpath 1/1 projects > Resolving dependencies ':agent' > Resolving dependencies ':version

BUILD SUCCESSFUL

Total time: 1.531 secs

Resolving dependencies ':testRuntime' > Resolving dependencies 'detachedConfig | Error Could not resolve all dependencies for configuration ':testRuntime'. Typ e 'gradle dependencies' for more information

vahidhedayati commented 8 years ago

http://stackoverflow.com/questions/17473842/gradle-not-able-to-find-dependencies-from-maven-repo " I'm not sure what went wrong, but try to check if maven and gradle are using the same .m2 repository path. It should be clearly displayed with these options:

mvn -X gradle --debug

"

Also something similar relating to proxy:

http://stackoverflow.com/questions/29536278/how-to-resolve-the-dependency-and-compile-the-junit-test-classes-using-gradle-bu

That problem is not really any errors related to the actual plugin code, its a gradle issue,

vahidhedayati commented 8 years ago

Try running gradle dependencies (use ./gradlew or gradlew.bat) for more information

akiong commented 8 years ago

| | | | +--- io.projectreactor:reactor-stream:2.0.3.RELEASE (*)

| | | | +--- org.slf4j:slf4j-api:1.7.7 -> 1.7.12 | | | | +--- org.springframework:spring-beans:4.1.5.RELEASE -> 4.1.7.RELEASE (*) | | | | +--- org.springframework:spring-context:4.1.5.RELEASE -

4.1.7.RELEASE () | | | | +--- org.springframework:spring-core:4.1.5.RELEASE -> 4 .1.7.RELEASE () | | | | --- org.springframework:spring-expression:4.1.5.RELEAS E -> 4.1.7.RELEASE () | | | +--- org.slf4j:slf4j-api:1.7.7 -> 1.7.12 | | | --- org.springframework:spring-context-support:4.1.5.RELEAS E -> 4.1.7.RELEASE () | | --- io.projectreactor:reactor-bus:2.0.3.RELEASE | | +--- com.goldmansachs:gs-collections:5.1.0 | | | --- com.goldmansachs:gs-collections-api:5.1.0 | | --- io.projectreactor:reactor-core:2.0.3.RELEASE () | +--- org.grails:grails-plugin-url-mappings:3.0.5 | | +--- org.codehaus.groovy:groovy:2.4.4 | | +--- org.slf4j:slf4j-api:1.7.10 -> 1.7.12 | | +--- org.slf4j:jcl-over-slf4j:1.7.10 -> 1.7.12 () | | +--- commons-lang:commons-lang:2.6 | | +--- com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lr u:1.4 | | +--- org.grails:grails-web:3.0.5 () | | +--- org.grails:grails-plugin-controllers:3.0.5 () | | --- org.grails:grails-validation:3.0.5 () | +--- org.grails:grails-plugin-interceptors:3.0.5 | | +--- org.codehaus.groovy:groovy:2.4.4 | | +--- org.slf4j:slf4j-api:1.7.10 -> 1.7.12 | | +--- org.slf4j:jcl-over-slf4j:1.7.10 -> 1.7.12 () | | +--- org.grails:grails-plugin-controllers:3.0.5 () | | --- org.grails:grails-plugin-url-mappings:3.0.5 () | +--- org.grails:grails-plugin-async:3.0.5 | | +--- org.codehaus.groovy:groovy:2.4.4 | | +--- org.slf4j:slf4j-api:1.7.10 -> 1.7.12 | | +--- org.slf4j:jcl-over-slf4j:1.7.10 -> 1.7.12 () | | +--- org.grails:grails-plugin-controllers:3.0.5 () | | --- org.grails:grails-plugin-events:3.0.5 () | --- com.h2database:h2:1.3.176 +--- org.grails:grails-web-boot: -> 3.0.5 | +--- org.codehaus.groovy:groovy:2.4.4 | +--- org.slf4j:slf4j-api:1.7.10 -> 1.7.12 | +--- org.slf4j:jcl-over-slf4j:1.7.10 -> 1.7.12 () | --- org.grails:grails-web-common:3.0.5 () +--- org.grails.plugins:hibernate: -> 4.3.10.4 | --- org.grails:grails-datastore-gorm-hibernate4:4.0.4.RELEASE | +--- dom4j:dom4j:1.6.1 | | --- xml-apis:xml-apis:1.0.b2 -> 1.4.01 | +--- org.codehaus.groovy:groovy:2.4.3 -> 2.4.4 | +--- org.grails:grails-datastore-gorm-hibernate-core:4.0.4.RELEASE | | +--- antlr:antlr:2.7.7 | | +--- org.codehaus.groovy:groovy:2.4.3 -> 2.4.4 | | +--- org.grails:grails-async:3.0.1 -> 3.0.5 () | | +--- org.grails:grails-core:3.0.1 -> 3.0.5 () | | +--- org.grails:grails-bootstrap:3.0.1 -> 3.0.5 () | | +--- org.grails:grails-datastore-gorm:4.0.4.RELEASE () | | +--- org.grails:grails-datastore-gorm-plugin-support:4.0.4.RELEAS E | | | +--- org.codehaus.groovy:groovy:2.4.3 -> 2.4.4 | | | +--- org.grails:grails-datastore-gorm:4.0.4.RELEASE () | | | +--- org.grails:grails-datastore-web:4.0.4.RELEASE | | | | +--- org.codehaus.groovy:groovy:2.4.3 -> 2.4.4 | | | | +--- org.grails:grails-datastore-core:4.0.4.RELEASE (*)

| | | | +--- org.springframework:spring-web:4.1.6.RELEASE -> 4. 1.7.RELEASE (*) | | | | --- org.springframework:spring-context:4.1.6.RELEASE -

4.1.7.RELEASE () | | | +--- org.grails:grails-spring:3.0.1 -> 3.0.5 () | | | +--- org.grails:grails-core:3.0.1 -> 3.0.5 () | | | --- org.grails:grails-bootstrap:3.0.1 -> 3.0.5 () | | +--- org.grails:grails-datastore-core:4.0.4.RELEASE () | | +--- org.springframework:spring-core:4.1.6.RELEASE -> 4.1.7.RELEA SE () | | +--- org.springframework:spring-jdbc:4.1.6.RELEASE -> 4.1.7.RELEA SE () | | +--- org.springframework:spring-orm:4.1.6.RELEASE -> 4.1.7.RELEAS E | | | +--- org.springframework:spring-beans:4.1.7.RELEASE () | | | +--- org.springframework:spring-core:4.1.7.RELEASE () | | | +--- org.springframework:spring-jdbc:4.1.7.RELEASE () | | | --- org.springframework:spring-tx:4.1.7.RELEASE (*) | | +--- org.springframework:spring-tx:4.1.6.RELEASE -> 4.1.7.RELEASE

(*) | | +--- javax.transaction:jta:1.1 | | +--- org.javassist:javassist:3.17.1-GA -> 3.18.1-GA | | +--- org.hibernate:hibernate-core:3.6.10.Final -> 4.3.10.Final | | | +--- org.jboss.logging:jboss-logging:3.1.3.GA | | | +--- org.jboss.logging:jboss-logging-annotations:1.2.0.Beta1

| | | +--- org.jboss.spec.javax.transaction:jboss-transaction-api_ 1.2spec:1.0.0.Final | | | +--- dom4j:dom4j:1.6.1 () | | | +--- org.hibernate.common:hibernate-commons-annotations:4.0. 5.Final | | | | +--- org.jboss.logging:jboss-logging:3.1.3.GA | | | | --- org.jboss.logging:jboss-logging-annotations:1.2.0. Beta1 | | | +--- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1 .0.0.Final | | | +--- org.javassist:javassist:3.18.1-GA | | | +--- antlr:antlr:2.7.7 | | | --- org.jboss:jandex:1.1.0.Final | | +--- dom4j:dom4j:1.6.1 () | | --- org.hibernate:hibernate-commons-annotations:3.2.0.Final | +--- org.hibernate:hibernate-core:4.3.10.Final () | +--- org.hibernate.common:hibernate-commons-annotations:4.0.5.Final (_ ) | --- org.hibernate:hibernate-validator:5.0.3.Final | +--- javax.validation:validation-api:1.1.0.Final | +--- org.jboss.logging:jboss-logging:3.1.1.GA -> 3.1.3.GA | --- com.fasterxml:classmate:1.0.0 +--- org.grails.plugins:cache: -> 3.0.1 | +--- com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4

| --- org.javassist:javassist:3.17.1-GA -> 3.18.1-GA +--- org.hibernate:hibernate-ehcache: -> 4.3.10.Final | +--- org.jboss.logging:jboss-logging:3.1.3.GA | +--- org.jboss.logging:jboss-logging-annotations:1.2.0.Beta1 | +--- org.hibernate:hibernate-core:4.3.10.Final () | --- net.sf.ehcache:ehcache-core:2.4.3 | --- org.slf4j:slf4j-api:1.6.1 -> 1.7.12 +--- org.grails.plugins:scaffolding: -> 3.1.1 | --- org.grails.plugins:fields:2.0.3 -> 2.1.0 +--- org.grails.plugins:spring-security-core:3.0.0.M1 | +--- org.springframework.security:spring-security-core:3.2.8.RELEASE | +--- org.springframework.security:spring-security-web:3.2.8.RELEASE | --- net.sf.ehcache:ehcache:2.9.0 | --- org.slf4j:slf4j-api:1.7.7 -> 1.7.12 +--- org.grails.plugins:jms:2.0.0.M1 | +--- org.springframework:spring-jms:4.1.6.RELEASE -> 4.1.7.RELEASE | | +--- org.springframework:spring-aop:4.1.7.RELEASE () | | +--- org.springframework:spring-beans:4.1.7.RELEASE () | | +--- org.springframework:spring-context:4.1.7.RELEASE () | | +--- org.springframework:spring-core:4.1.7.RELEASE () | | +--- org.springframework:spring-messaging:4.1.7.RELEASE | | | +--- org.springframework:spring-beans:4.1.7.RELEASE () | | | +--- org.springframework:spring-context:4.1.7.RELEASE () | | | --- org.springframework:spring-core:4.1.7.RELEASE () | | --- org.springframework:spring-tx:4.1.7.RELEASE (_) | --- org.apache.geronimo.specs:geronimo-jms_1.1spec:1.1.1 +--- javax.mail:javax.mail-api:1.5.1 | --- javax.activation:activation:1.1 +--- com.sun.mail:javax.mail:1.5.1 | --- javax.activation:activation:1.1 +--- org.grails.plugins:mail:2.0.0.RC2 | +--- javax.mail:javax.mail-api:1.5.1 () | --- com.sun.mail:javax.mail:1.5.1 (_) +--- org.grails.plugins:wschat:3.0.3 FAILED +--- org.grails.plugins:asset-pipeline: -> 3.0.8 | +--- org.mozilla:rhino:1.7R4 | --- com.bertramlabs.plugins:asset-pipeline-core:2.5.0 | +--- org.mozilla:rhino:1.7R4 | +--- com.google.javascript:closure-compiler:v20141023 | | +--- com.google.javascript:closure-compiler-externs:v20141023 | | +--- args4j:args4j:2.0.26 | | +--- com.google.guava:guava:18.0 | | +--- com.google.protobuf:protobuf-java:2.5.0 | | +--- com.google.code.gson:gson:2.2.4 -> 2.3 | | --- com.google.code.findbugs:jsr305:1.3.9 | --- commons-logging:commons-logging:1.1.1 -> 1.2 +--- mysql:mysql-connector-java:5.1.20 +--- org.apache.activemq:activemq-spring:5.11.1 | +--- org.slf4j:slf4j-api:1.7.10 -> 1.7.12 | +--- org.apache.xbean:xbean-spring:3.18 | | --- commons-logging:commons-logging:1.0.3 -> 1.2 | +--- org.apache.activemq:activemq-broker:5.11.1 | | +--- org.apache.activemq:activemq-client:5.11.1 | | | +--- org.slf4j:slf4j-api:1.7.10 -> 1.7.12 | | | +--- org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.1.1 | | | +--- org.fusesource.hawtbuf:hawtbuf:1.11 | | | --- org.apache.geronimo.specs:geronimo-j2ee-management_1.1spec: 1.0.1 | | --- org.apache.activemq:activemq-openwire-legacy:5.11.1 | | --- org.apache.activemq:activemq-client:5.11.1 () | +--- org.apache.activemq:activemq-pool:5.11.1 | | +--- org.slf4j:slf4j-api:1.7.10 -> 1.7.12 | | +--- org.apache.activemq:activemq-jms-pool:5.11.1 | | | +--- org.slf4j:slf4j-api:1.7.10 -> 1.7.12 | | | +--- org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.1.1 | | | +--- org.apache.geronimo.specs:geronimo-jta_1.0.1Bspec:1.0.1 | | | --- commons-pool:commons-pool:1.6 | | +--- org.apache.activemq:activemq-client:5.11.1 () | | +--- org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:1.0.1 | | --- commons-pool:commons-pool:1.6 | +--- org.apache.geronimo.specs:geronimo-jta_1.0.1Bspec:1.0.1 | --- commons-pool:commons-pool:1.6 +--- org.grails:grails-plugin-testing: -> 3.0.5 | +--- cglib:cglib:2.2.2 | | --- asm:asm:3.3.1 | +--- org.codehaus.groovy:groovy:2.4.4 | +--- org.slf4j:slf4j-api:1.7.10 -> 1.7.12 | +--- org.slf4j:jcl-over-slf4j:1.7.10 -> 1.7.12 () | +--- org.grails:grails-plugin-url-mappings:3.0.5 () | +--- org.grails:grails-plugin-databinding:3.0.5 () | +--- org.grails:grails-plugin-controllers:3.0.5 () | +--- org.grails:grails-plugin-domain-class:3.0.5 () | +--- org.grails:grails-plugin-gsp:3.0.5 () | +--- org.grails:grails-plugin-filters:3.0.5 () | +--- org.grails:grails-plugin-interceptors:3.0.5 () | +--- org.grails:grails-plugin-mimetypes:3.0.5 () | +--- org.grails:grails-plugin-converters:3.0.5 () | +--- org.grails:grails-plugin-rest:3.0.5 () | +--- org.grails:grails-plugin-codecs:3.0.5 () | +--- org.grails:grails-test:3.0.5 | | +--- org.codehaus.groovy:groovy:2.4.4 | | +--- org.slf4j:slf4j-api:1.7.10 -> 1.7.12 | | +--- org.slf4j:jcl-over-slf4j:1.7.10 -> 1.7.12 () | | +--- org.springframework:spring-tx:4.1.7.RELEASE () | | +--- org.codehaus.groovy:groovy-test:2.4.4 | | +--- junit:junit:4.12 | | | --- org.hamcrest:hamcrest-core:1.3 | | +--- org.spockframework:spock-core:1.0-groovy-2.4 | | | --- junit:junit:4.12 () | | +--- org.grails:grails-plugin-converters:3.0.5 () | | +--- org.grails:grails-plugin-mimetypes:3.0.5 () | | +--- org.grails:grails-web:3.0.5 () | | --- org.objenesis:objenesis:1.4 -> 2.1 | +--- org.springframework.boot:spring-boot-starter-test:1.2.5.RELEASE | | +--- junit:junit:4.12 () | | +--- org.mockito:mockito-core:1.10.19 | | | +--- org.hamcrest:hamcrest-core:1.1 -> 1.3 | | | --- org.objenesis:objenesis:2.1 | | +--- org.hamcrest:hamcrest-core:1.3 | | +--- org.hamcrest:hamcrest-library:1.3 | | | --- org.hamcrest:hamcrest-core:1.3 | | +--- org.springframework:spring-core:4.1.7.RELEASE () | | --- org.springframework:spring-test:4.1.7.RELEASE | | --- org.springframework:spring-core:4.1.7.RELEASE () | +--- org.spockframework:spock-spring:1.0-groovy-2.4 | | --- org.spockframework:spock-core:1.0-groovy-2.4 () | +--- org.spockframework:spock-core:1.0-groovy-2.4 () | --- junit:junit:4.12 (_) +--- org.grails.plugins:geb: -> 1.0.0 | +--- org.gebish:geb-spock:0.10.0 | | --- org.gebish:geb-core:0.10.0 | | +--- org.gebish:geb-ast:0.10.0 | | --- org.gebish:geb-waiting:0.10.0 | | --- org.gebish:geb-implicit-assertions:0.10.0 | --- org.seleniumhq.selenium:selenium-support:2.43.1 | --- org.seleniumhq.selenium:selenium-remote-driver:2.43.1 -> 2.44.0 | +--- cglib:cglib-nodep:2.13 | +--- com.google.code.gson:gson:2.3 | +--- org.seleniumhq.selenium:selenium-api:2.44.0 | | +--- com.google.guava:guava:18.0 | | --- com.google.code.gson:gson:2.3 | +--- org.apache.httpcomponents:httpclient:4.3.4 | | +--- org.apache.httpcomponents:httpcore:4.3.2 | | +--- commons-logging:commons-logging:1.1.3 -> 1.2 | | --- commons-codec:commons-codec:1.6 -> 1.9 | +--- com.google.guava:guava:18.0 | +--- org.apache.commons:commons-exec:1.1 | +--- net.java.dev.jna:jna:3.4.0 | --- net.java.dev.jna:platform:3.4.0 --- org.seleniumhq.selenium:selenium-htmlunit-driver:2.44.0 +--- org.seleniumhq.selenium:selenium-remote-driver:2.44.0 () +--- net.sourceforge.htmlunit:htmlunit:2.15 | +--- xalan:xalan:2.7.1 | | --- xalan:serializer:2.7.1 -> 2.7.2 () | +--- commons-collections:commons-collections:3.2.1 | +--- org.apache.commons:commons-lang3:3.3.2 | +--- org.apache.httpcomponents:httpclient:4.3.3 -> 4.3.4 () | +--- org.apache.httpcomponents:httpmime:4.3.3 | | --- org.apache.httpcomponents:httpclient:4.3.3 -> 4.3.4 () | +--- commons-codec:commons-codec:1.9 | +--- net.sourceforge.htmlunit:htmlunit-core-js:2.15 | +--- xerces:xercesImpl:2.11.0 | | --- xml-apis:xml-apis:1.4.01 | +--- net.sourceforge.nekohtml:nekohtml:1.9.21 | +--- net.sourceforge.cssparser:cssparser:0.9.14 | | --- org.w3c.css:sac:1.3 | +--- commons-io:commons-io:2.4 | +--- commons-logging:commons-logging:1.1.3 -> 1.2 | --- org.eclipse.jetty:jetty-websocket:8.1.15.v20140411 | +--- org.eclipse.jetty:jetty-util:8.1.15.v20140411 | +--- org.eclipse.jetty:jetty-io:8.1.15.v20140411 | | --- org.eclipse.jetty:jetty-util:8.1.15.v20140411 | --- org.eclipse.jetty:jetty-http:8.1.15.v20140411 | --- org.eclipse.jetty:jetty-io:8.1.15.v20140411 () --- org.apache.httpcomponents:httpclient:4.3.4 (*)

versionManagement No dependencies

BUILD SUCCESSFUL

Total time: 15.449 secs C:\Users\User\Documents\ChatV3>

akiong commented 8 years ago

that is what i get after i run gradle dependencies...i already update my gradle from 2.3 to 2.8

if i tried install other plugin...it works...but if i try to install wschat ...i still get error...althougt i want to try chat :(

or must i try install gradle version to 2.6?

vahidhedayati commented 8 years ago

2.8 worked fine for me. Its not that. Are you doing it in a new project. I would suggest doing the entire thing using msdos

grails create-app testchat cd testchat edit build.gradle add in line and grails run-app

If this is still failing look up : https://gist.github.com/vahidhedayati/46006e815cf31134d4ff

And try downloading the source of the grails 3 codebase and then using settings.gradle in the parent folder containing your wschat plugin and code:

To set up a multi project build create an appliation and a plugin in a parent directory:

$ grails create-app myapp $ grails create-plugin myplugin Then create a settings.gradle file in the parent directory specifying the location of your application and plugin:

include 'testchat', 'wschat' Finally add a dependency in your application's build.gradle on the plugin:

compile project(':wschat')

When you download hte plugin in the parent folder rename it from grails-wschat-plugin to wschat

and then try grails run-app

akiong commented 8 years ago

did you mean i create a new plugin....then that plugin fill wschat...?

after that...i use compile project(:wschat) <== that plugin?

| Are you doing it in a new project. I would suggest doing the entire thing using msdos

| grails create-app testchat | cd testchat | edit build.gradle add in line and | grails run-app

i tried this..but still fail

and i never success get wschat plugin

i get this error when running gradle dependencies

testCompile - Compile classpath for source set 'test'. +--- org.grails.plugins:wschat:3.0.3 FAILED <<== FAILED
+--- org.springframework.boot:spring-boot-starter-logging: -> 1.2.5.RELEASE | +--- org.slf4j:jcl-over-slf4j:1.7.12 | | --- org.slf4j:slf4j-api:1.7.12 | +--- org.slf4j:jul-to-slf4j:1.7.12 | | --- org.slf4j:slf4j-api:1.7.12 | +--- org.slf4j:log4j-over-slf4j:1.7.12

vahidhedayati commented 8 years ago

download:

https://github.com/vahidhedayati/grails-wschat-plugin/archive/master.zip unzip and call folder: wschat

or git clone https://github.com/vahidhedayati/grails-wschat-plugin and when cloned move grails-wschat-plugin to wschat

so the contents of https://github.com/vahidhedayati/grails-wschat-plugin sits inside a folder called wschat

grails create-app testchat | cd testchat | edit build.gradle add in line https://github.com/vahidhedayati/testwschat3/blob/master/build.gradle#L75 save file

now cd .. from teschat in this folder you (parent folder) you should have

both testchat and wschat folders

create a new file called settings.gradle add this inside it:

include 'testchat', 'wschat'

save the file

go back into testchat

grails run-app

that is a local plugin like an inline plugin on grails 2

akiong commented 8 years ago

C:\Users\User\Documents\indonesia>grails run-app

Configuring > 0/3 projects > root project > Resolving dependencies ':classpath 1/3 projects > Resolving dependencies ':agent' > Resolving dependencies ':versio 2/3 projects > Resolving dependencies ':agent' > Resolving dependencies 'detache

BUILD SUCCESSFUL

Total time: 5.666 secs

Resolving dependencies ':testRuntime' > Resolving dependencies 'detachedConfig | Error Could not resolve all dependencies for configuration ':testRuntime'. Typ e 'gradle dependencies' for more information

C:\Users\User\Documents\indonesia>

whats step i do :

whats wrong with my step?it strange

akiong commented 8 years ago

last error what i get..

C:\Users\User\Documents\indonesia>grails run-app

Configuring > 0/3 projects > root project > Resolving dependencies ':classpath 1/3 projects > Resolving dependencies ':agent' > Resolving dependencies ':versio Cannot resolve reloading agent JAR: Could not resolve all dependencies for confi guration ':agent'. Configuring > 2/3 projects > :indonesia > Resolving dependencies ':indonesia:c

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 1.894 secs | Error Error initializing classpath: Plugin 'io.spring.dependency-management' i s already on the script classpath. Plugins on the script classpath cannot be app lied in the plugins {} block. Add "apply plugin: 'io.spring.dependency-manageme nt'" to the body of the script to use the plugin. (Use --stacktrace to see the f ull trace)

my settings.gradle, i set include 'indonesia',wschat

akiong commented 8 years ago

buildscript { ext { grailsVersion = project.grailsVersion } repositories { mavenLocal() maven { url "https://repo.grails.org/grails/core" } } dependencies { classpath "org.grails:grails-gradle-plugin:$grailsVersion" classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:2.5.0' } }

plugins { id "io.spring.dependency-management" version "0.5.2.RELEASE" }

version "0.1" group "indonesia"

apply plugin: "spring-boot" apply plugin: "war" apply plugin: "asset-pipeline" apply plugin: 'eclipse' apply plugin: 'idea' apply plugin: "org.grails.grails-web" apply plugin: "org.grails.grails-gsp"

ext { grailsVersion = project.grailsVersion gradleWrapperVersion = project.gradleWrapperVersion }

assets { minifyJs = true minifyCss = true }

repositories { mavenLocal() maven { url "https://repo.grails.org/grails/core" } }

dependencyManagement { imports { mavenBom "org.grails:grails-bom:$grailsVersion" } applyMavenExclusions false }

dependencies { compile "org.springframework.boot:spring-boot-starter-logging" compile "org.springframework.boot:spring-boot-starter-actuator" compile "org.springframework.boot:spring-boot-autoconfigure" compile "org.springframework.boot:spring-boot-starter-tomcat" compile "org.grails:grails-dependencies" compile "org.grails:grails-web-boot"

compile "org.grails.plugins:hibernate"
compile "org.grails.plugins:cache"
compile "org.hibernate:hibernate-ehcache"
compile "org.grails.plugins:scaffolding"

runtime "org.grails.plugins:asset-pipeline"

testCompile "org.grails:grails-plugin-testing"
testCompile "org.grails.plugins:geb"

// Note: It is recommended to update to a more robust driver (Chrome, Firefox etc.)
testRuntime 'org.seleniumhq.selenium:selenium-htmlunit-driver:2.44.0'

console "org.grails:grails-console"

//compile "org.grails.plugins:wschat:3.0.3"
compile project(":wschat")

}

task wrapper(type: Wrapper) { gradleVersion = gradleWrapperVersion }

my build.gradle

vahidhedayati commented 8 years ago

testwschat$ ./gradlew dependencies --configuration testRuntime > 2.txt 2.txt

produced above file - its worth doing the same command on your local one and comparing the difference between two files.

It may be worth doing a full dependency comparison too if that don't help.

Your gonna need to google those errors. Not been here before.

akiong commented 8 years ago

Cannot resolve reloading agent JAR: Could not resolve all dependencies for configuration ':agent'..in file 2.txt okay

vahidhedayati commented 8 years ago

Are you behind a proxy ? (y/n) ? There appears to be something mentioned that matches a similar error above:

https://jira.grails.org/browse/GRAILS-12084

In regards to my .agent files, that is all fine, since that is the report from the working app locally. I think you need to try some gradle commands and one may work: (you may find gradle below is same as gradlew.bat locally)

gradle clean
gradle build --refresh-dependencies

grails run-app

Still failing try:

gradle run
./gradlew.bat run
akiong commented 8 years ago

Are you behind a proxy ? no...i amnot use proxy

vahidhedayati commented 8 years ago

Ok well beyond here means really trying to reconstruct the plugin at your end to figure out what or where is going wrong.

You already have the plugin locally so you can just copy the content's across, I will provide web links so its easier to understand:

For a start I would create a brand new app and start adding in the plugin dependencies locally to see if any of them are the cause:

https://github.com/vahidhedayati/grails-wschat-plugin/blob/master/build.gradle#L68-L70

   compile 'org.grails.plugins:ajax-tags:1.0.0.BUILD-SNAPSHOT'
   compile 'javax.websocket:javax.websocket-api:1.0'
   compile 'org.grails.plugins:mail:2.0.0.RC1'

If you can add them to a local app and grails run-app works. Then we could try pulling in the rest of the plugin into a the project:

https://github.com/vahidhedayati/grails-wschat-plugin/blob/master/src/main/groovy/wschat/DefaultWsChatConfig.groovy#L15-L26

@Bean
    public ServletContextInitializer myInitializer() {
        return new ServletContextInitializer() {
            @Override
            public void onStartup(ServletContext servletContext) throws ServletException {
                servletContext.addListener(WsChatEndpoint)
                servletContext.addListener(WsCamEndpoint)
                servletContext.addListener(WsChatFileEndpoint)
                servletContext.addListener(TicTacToeServer)
            }
        }
    }

You want to add above to your local apps init/{appName}/Application.groovy file:

https://github.com/vahidhedayati/testwebsocket-grails3/blob/master/grails-app/init/testsocket/Application.groovy

Then copy content of

https://github.com/vahidhedayati/grails-wschat-plugin/tree/master/grails-app

to your grails-app folder of your local app:

Copy content of: https://github.com/vahidhedayati/grails-wschat-plugin/tree/master/src/main/groovy/grails/plugin/wschat

to your src/groovy folder. {same path structure as plugin /src/main/groovy/grails/plugin/wschat}

Then try trigger run-app this should now be plugin running locally as an app.

If you can't make it work I will take a look later tonight into making the plugin into a grails 3.5 stand alone app

akiong commented 8 years ago

i already put this into build.gradle

compile 'org.grails.plugins:ajax-tags:1.0.0.BUILD-SNAPSHOT' compile 'javax.websocket:javax.websocket-api:1.0' compile 'org.grails.plugins:mail:2.0.0.RC1'

and run correctly

after i copy content to application.groovy .. i get this error

or am i missing other plugin?

C:\Users\User\Documents\indonesia\grails-app\init\indonesia\Application.groovy: 10: unable to resolve class org.springframework.web.socket.config.annotation.Web SocketConfigurer @ line 10, column 1. import org.springframework.web.socket.config.annotation.WebSocketConfigurer ^

C:\Users\User\Documents\indonesia\grails-app\init\indonesia\Application.groovy: 9: unable to resolve class org.springframework.web.socket.config.annotation.Enab leWebSocket @ line 9, column 1. import org.springframework.web.socket.config.annotation.EnableWebSocket ^

C:\Users\User\Documents\indonesia\grails-app\init\indonesia\Application.groovy: 12: unable to resolve class org.springframework.web.socket.handler.PerConnection WebSocketHandler @ line 12, column 1. import org.springframework.web.socket.handler.PerConnectionWebSocketHandler ^

C:\Users\User\Documents\indonesia\grails-app\init\indonesia\Application.groovy: 20: unable to resolve class ServletContextInitializer @ line 20, column 2. @Bean ^

C:\Users\User\Documents\indonesia\grails-app\init\indonesia\Application.groovy: 32: unable to resolve class WebSocketHandlerRegistry @ line 32, column 40. public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) { ^

C:\Users\User\Documents\indonesia\grails-app\init\indonesia\Application.groovy: 33: unable to resolve class HttpSessionHandshakeInterceptor @ line 33, column 41. tpSessionHandshakeInterceptor intercepto ^

C:\Users\User\Documents\indonesia\grails-app\init\indonesia\Application.groovy: 33: unable to resolve class HttpSessionHandshakeInterceptor @ line 33, column 55. hakeInterceptor interceptor = new HttpSe ^

C:\Users\User\Documents\indonesia\grails-app\init\indonesia\Application.groovy: 38: unable to resolve class AnotherWebSocketHandler @ line 38, column 44. rvletListenerRegistrationBean<AnotherWeb ^

C:\Users\User\Documents\indonesia\grails-app\init\indonesia\Application.groovy: 39: unable to resolve class AnotherWebSocketHandler @ line 39, column 52. rvletListenerRegistrationBean<AnotherWeb ^

C:\Users\User\Documents\indonesia\grails-app\init\indonesia\Application.groovy: 39: unable to resolve class AnotherWebSocketHandler @ line 39, column 77. Bean(new Anothe ^

C:\Users\User\Documents\indonesia\grails-app\init\indonesia\Application.groovy: 42: unable to resolve class WebSocketHandler @ line 42, column 5. @Bean ^

C:\Users\User\Documents\indonesia\grails-app\init\indonesia\Application.groovy: 22: unable to resolve class ServletContextInitializer @ line 22, column 48. w ServletContextInitializer() { ^

C:\Users\User\Documents\indonesia\grails-app\init\indonesia\Application.groovy: 24: unable to resolve class ServletContext @ line 24, column 35. public void onStartup(ServletContext servletContext) throws Servl etException { ^

C:\Users\User\Documents\indonesia\grails-app\init\indonesia\Application.groovy: 23: unable to resolve class ServletException @ line 23, column 13. @Override ^

akiong commented 8 years ago

its look like this errorr only happen for windows user ..

my friend tried too and get the same error with me..

i cannot import this

import org.springframework.boot.context.embedded.ServletListenerRegistrationBean import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import org.springframework.web.socket.WebSocketHandler import org.springframework.web.socket.config.annotation.EnableWebSocket import org.springframework.web.socket.config.annotation.WebSocketConfigurer import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry import org.springframework.web.socket.handler.PerConnectionWebSocketHandler import org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor

i cannot copy that code to init/{appName}/application.groovy

but i try to run...i get a page like yours...i can set nickname and login..then page will redirect to http://localhost:8080/wsChat/chat

then

Error.... fasd disconnecting from server...

vahidhedayati commented 8 years ago

The above errors relate to imports take a look at https://github.com/vahidhedayati/grails-wschat-plugin/blob/master/src/main/groovy/wschat/DefaultWsChatConfig.groovy#L3-L8 you need to include the imports also take a look at the https://github.com/vahidhedayati/testwebsocket-grails3/ read me (or main page) and try to understand how you are registering those listeners.

If you can't get it working I will give it a go later and make it into an app. Later this evening

akiong commented 8 years ago

okay..and thank you.. 06:37 PM here :+1:

btw ... i dont have this plugin/ class

import grails.plugin.wschat.TicTacToeServer import grails.plugin.wschat.WsCamEndpoint import grails.plugin.wschat.WsChatEndpoint import grails.plugin.wschat.WsChatFileEndpoint

vahidhedayati commented 8 years ago

Its 12:13 pm here so my time later will be in the evening around 7:00 pm my time.. I will update this with the new github project you can download from

https://github.com/vahidhedayati/grails-wschat-plugin/blob/master/src/main/groovy/grails/plugin/wschat/TicTacToeServer.groovy ? that should be the file that then becomes the websocket listener.

I presume you have no use / time for tic tac toe games so you could just leave it out and also exclude the line that adds the listener as part of instructions..

akiong commented 8 years ago

i am trying in linux...with fedora 22 i get this error

grails> run-app | Running application...

FAILURE: Build failed with an exception.

after i that i use grails stacktrace..then i get this error..

grails> --stacktrace | Error Caught exception null (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) java.lang.NullPointerException at org.grails.build.parsing.ScriptNameResolver.resolvesTo(ScriptNameResolver.groovy:34) at org.grails.cli.profile.DefaultProfile$_handleCommand_closure4.doCall(DefaultProfile.groovy:183) at org.grails.cli.profile.DefaultProfile.handleCommand(DefaultProfile.groovy:182) at org.grails.cli.GrailsCli.handleCommand(GrailsCli.groovy:239) at org.grails.cli.GrailsCli$_handleCommandWithCancellationSupport_closure4.doCall(GrailsCli.groovy:309) at org.grails.cli.GrailsCli$_handleCommandWithCancellationSupport_closure4.call(GrailsCli.groovy) | Error Caught exception null

vahidhedayati commented 8 years ago

what does

grails -version 

return ? it is trying to access: https://repo.grails.org/grails/core/org/grails/plugins/wschat/3.0.3/wschat-3.0.3.pom which does not exist yes.. but I wonder if you are pointing to right grails version under linux..

have a look here for some hacks in order to run any version of grails under linux:

https://github.com/vahidhedayati/documentation/blob/master/grails/.bashrc

you need a new shell connection to your console if you update this file or

. ~/.bashrc 

after updating

akiong commented 8 years ago

i am using grails 3.0.5 and groovy 2.4.4 in linux via virtualBox

i tried in another notebook with windows 7.. download grails 3.0.5

create-app testting

then run.. it will success compiled and i can access localhost:8080

then i tried put compile "org.grails.plugins:wschat:3.0.3" in to build.gradle

i get the same error...

its look like this problem only in windows user

akiong commented 8 years ago

i am trying to run your plugin (https://github.com/vahidhedayati/grails-wschat-plugin) and grails run-app

i get this error...may be because of this.. i cannot get wschat?

| Enter a command name to run. Use TAB for completion: grails> --stacktrace | Error Caught exception null (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) java.lang.NullPointerException at org.grails.build.parsing.ScriptNameResolver.resolvesTo(ScriptNameResolver.groovy:34) at org.grails.cli.profile.DefaultProfile$_handleCommand_closure4.doCall(DefaultProfile.groovy:183) at org.grails.cli.profile.DefaultProfile.handleCommand(DefaultProfile.groovy:182) at org.grails.cli.GrailsCli.handleCommand(GrailsCli.groovy:239) at org.grails.cli.GrailsCli$_handleCommandWithCancellationSupport_closure4.doCall(GrailsCli.groovy:309) at org.grails.cli.GrailsCli$_handleCommandWithCancellationSupport_closure4.call(GrailsCli.groovy) | Error Caught exception null

vahidhedayati commented 8 years ago

I don't understand ?

i am trying to run your plugin (grails-wschat-plugin-master) and grails run-app

Please explain ?

You have downloaded the plugin as a zip file, extracted it now it is called :

grails-wschat-plugin-master ?

from there I don't understand ? you have then gone in there and running

grails run-app ?

This is I presume Linux ?

akiong commented 8 years ago

i mean this https://github.com/vahidhedayati/grails-wschat-plugin..

i download as zip and extract it..then i try to grails run-app..

vahidhedayati commented 8 years ago

you can't do that, its the actual plugin ?

All you should need to do is create a new app and then to include the compile line inside your build.gradle for Grails 3 + or BuildConfig.groovy if grails 2 ..

If you download the plugin i.e. above, if its as a zip I presume it will be for grails 3, so refer to aboves information on having a settings.gradle outside of your created app and to include the wschat plugin with that other compile line..

https://github.com/vahidhedayati/grails-wschat-plugin/issues/9#issuecomment-151510405

akiong commented 8 years ago

oh i see...then my error is not that..

because i am using grails 3.0.5...its already 2 days.. i still cannot use wschat :(

i will try again to create-app using compile project(':wschat')

akiong commented 8 years ago

i try this step again :

i always get this error: FAILURE: Build failed with an exception.

its look like something wrong with this id "io.spring.dependency-management" version "0.5.2.RELEASE" in build.gradle

akiong commented 8 years ago

hi..i got something..

please download this zip's file

then see /haha/wschat/build.gradle

that project run well after i remove

its look like my project -->haha/build.gradle already have //id "io.spring.dependency-management" version "0.5.2.RELEASE"

but i try to access localhost:8080 .. localhost:8080 image

vahidhedayati commented 8 years ago

i checked your build.gradle you have:

//compile project(':wschat')

Its commented out..

you need to remove the // from the start of the line...

You can also try commenting out either the plugin or your local apps io.spring.dependency to see if makes a difference.

akiong commented 8 years ago

ah ..i forget that...

i get this error..after re-run

image's link

is this the correct path? file:/C:/Users/User/.m2/repository/org/grails/grails-web-boot//grails-web-boot-.pom

file:/C:/Users/User/.m2/repository/org/grails/grails-web-boot with double slash // grails-web-boot-.pom

vahidhedayati commented 8 years ago

right I am unsure why you are getting those issues, you could try clearing out the .m2 and .gradle and .grails folders..

Grails plugins can also be locally installed and then you can refer to them as you would normally i.e. the usual typical line as described here:

https://gist.github.com/vahidhedayati/46006e815cf31134d4ff

in the plugin you run:

grails install

This then installs it to

~/.m2/repository/org/grails/plugins/wschat/

Then you add:

compile "org.grails.plugins:wschat:3.0.3"

This calls in local .m2 folder but you be back to square 1.

I am now going to put my other disk in and install a grails app that consists of the plugin, then give you a link to download a

3.0.5 grails app that will be the plugin

Hold on

But

akiong commented 8 years ago

Configuring > 2/3 projects > Resolving dependencies ':agent' > 1 KB/1 KB downl Download https://repo.grails.org/grails/core/org/springframework/springloaded/1. 2.4.RELEASE/springloaded-1.2.4.RELEASE.jar :wschat:generatePomFileForMavenPublication FAILED

FAILURE: Build failed with an exception.

vahidhedayati commented 8 years ago

try again, it does that sometimes, you can also try commenting these out:

https://github.com/vahidhedayati/grails-wschat-plugin/blob/master/build.gradle#L30-L31

akiong commented 8 years ago

i get this error

FAILURE: Build failed with an exception.

vahidhedayati commented 8 years ago

https://github.com/vahidhedayati/testwschatapp created, this is now the plugin as of this current version 3.0.3 and matching ":wschat:1.24-SNAPSHOT2" for grails 2 version. The latest changed to be a grails application:

git clone https://github.com/vahidhedayati/testwschatapp

cd testwschatapp
grails run-app

or

wget https://github.com/vahidhedayati/testwschatapp/archive/master.zip -O testwschatapp.zip
unzip testwschatapp.zip
cd testwschatapp
grails run-app

This is now the plugin converted and tested/working as a grails 3.0.5 application. I hope it all works for you

akiong commented 8 years ago

wow..thank you... it works for me...

but i still wonder why i cannot download wschat

by the way...it look like cannot deploy..

i test to build a war from testwschatapp...
INFO: Deploying web application archive /root/apache7/webapps/ROOT.war
Oct 29, 2015 11:30:02 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/root/apache7/webapps/ROOT/WEB-INF/lib/tomcat-embed-core-8.0.23.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
Oct 29, 2015 11:30:02 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/root/apache7/webapps/ROOT/WEB-INF/lib/tomcat-embed-el-8.0.23.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/el/Expression.class
Oct 29, 2015 11:30:02 AM org.apache.catalina.deploy.WebXml setVersion
WARNING: Unknown version string [3.1]. Default version will be used.
Oct 29, 2015 11:30:09 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Oct 29, 2015 11:30:09 AM org.apache.catalina.core.ContainerBase addChildInternal
SEVERE: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1930)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    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: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String;
    at org.apache.tomcat.websocket.server.WsServerContainer.<init>(WsServerContainer.java:147)
    at org.apache.tomcat.websocket.server.WsSci.init(WsSci.java:131)
    at org.apache.tomcat.websocket.server.WsSci.onStartup(WsSci.java:47)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5506)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 10 more

Oct 29, 2015 11:30:09 AM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive /root/apache7/webapps/ROOT.war
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:905)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1930)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    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)```
vahidhedayati commented 8 years ago

The major difference between grails 2 and 3 is that 2 relied on tomcat container, and in the case of this plugin or any other plugin I have written that uses websockets. Under grails 2 it specifically registered tomcat websocket listeners.

Under grails 3, things change to spring boot. The configuration has been changed to work with spring boot.

In theory under grails 3 you no longer need tomcat and whilst in most cases it should work fine, in the case of this plugin/app attempting to register listeners it may not go well together.

So your choices are to downgrade to grails 2.4.XX 2.5 or to use as is and refer to:

http://grails.github.io/grails-doc/3.0.8/guide/deployment.html

$ grails package

You can then run either the WAR file or the JAR using your Java installation:

java -Dgrails.env=prod -jar build/libs/mywar-0.1.jar

This will run without a tomcat container

akiong commented 8 years ago

oh i see...btw because i cannot download plugin by compile "org.grails.plugins:wschat:3.0.3" you create https://github.com/vahidhedayati/testwschatapp, after i run it..it run without any error...

but can i use this tutorial like other?

i want to create a chatting without chat Room but personality chat...like many to one..