i get this error when i run the test cases:
Error: [ng:areq] Argument 'testcont' is not a function, got undefined
This is my ControllerSpec.js
describe('controllers', function(){
var scope;
beforeEach(angular.module('myapp.test'));
beforeEach(inject(function($controller, $rootScope){
scope = $rootScope.$new();
$controller('testcont', {$scope:scope});
}));
it('should', function(){
expect(scope.a).toBe(10)
})
});
This is my controllers.js
angular.module('myapp.test', [], function () {
}).controller('testcont', function($scope) {
$scope.a = 10;
});
Log Content
DEBUG [plugin]: Loading plugin karma-junit-reporter.
DEBUG [plugin]: Loading plugin karma-chrome-launcher.
DEBUG [plugin]: Loading plugin karma-firefox-launcher.
DEBUG [plugin]: Loading plugin karma-jasmine.
DEBUG [plugin]: Loading inlined plugin (defining ).
INFO [karma]: Karma v0.10.2 server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
DEBUG [launcher]: Creating temp dir at C:\Users\RAJSUB~1\AppData\Local\Temp\karma-48416683
DEBUG [launcher]: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe --user-data-dir=C:\Users\RAJSUB~1\AppData\Local\Temp\karma-48416683 --no-default-browser-check --no-first-run --disable-default-apps --start-maximized http://localh
DEBUG [watcher]: Resolved files:
C:/inetpub/wwwroot/seed/node_modules/karma-jasmine/lib/jasmine.js
C:/inetpub/wwwroot/seed/node_modules/karma-jasmine/lib/adapter.js
C:/inetpub/wwwroot/seed/app/lib/angular/angular.js
C:/inetpub/wwwroot/seed/test/lib/angular/angular-mocks.js
C:/inetpub/wwwroot/seed/app/js/app.js
C:/inetpub/wwwroot/seed/app/js/controllers.js
C:/inetpub/wwwroot/seed/app/js/directives.js
C:/inetpub/wwwroot/seed/app/js/filters.js
C:/inetpub/wwwroot/seed/app/js/services.js
C:/inetpub/wwwroot/seed/test/unit/controllersSpec.js
C:/inetpub/wwwroot/seed/test/unit/directivesSpec.js
C:/inetpub/wwwroot/seed/test/unit/filtersSpec.js
C:/inetpub/wwwroot/seed/test/unit/servicesSpec.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/test/lib/angular/angular-scenario.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/config/karma.conf.js
DEBUG [watcher]: Watching "C:/inetpub/wwwroot/seed/app/lib/angular/angular.js"
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/test/lib/angular/angular-scenario.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/config/karma.conf.js
DEBUG [watcher]: Watching "C:/inetpub/wwwroot/seed/test/lib/angular/angular-mocks.js"
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/test/lib/angular/angular-scenario.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/config/karma.conf.js
DEBUG [watcher]: Watching "C:/inetpub/wwwroot/seed/app/js"
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/test/lib/angular/angular-scenario.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/config/karma.conf.js
DEBUG [watcher]: Watching "C:/inetpub/wwwroot/seed/test/unit"
DEBUG [watcher]: Add file "C:/inetpub/wwwroot/seed/app/lib/angular/angular.js" ignored. Already in the list.
DEBUG [watcher]: Add file "C:/inetpub/wwwroot/seed/test/lib/angular/angular-mocks.js" ignored. Already in the list.
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/test/lib/angular/angular-scenario.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/config/karma.conf.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/test/lib/angular/angular-scenario.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/config/karma.conf.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/test/lib/angular/angular-scenario.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/config/karma.conf.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/test/lib/angular/angular-scenario.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/config/karma.conf.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/test/lib/angular/angular-scenario.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/config/karma.conf.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/test/lib/angular/angular-scenario.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/config/karma.conf.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/test/lib/angular/angular-scenario.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/config/karma.conf.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/test/lib/angular/angular-scenario.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/config/karma.conf.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/test/lib/angular/angular-scenario.js
DEBUG [watcher]: Excluding C:/inetpub/wwwroot/seed/config/karma.conf.js
DEBUG [watcher]: Add file "C:/inetpub/wwwroot/seed/app/js/filters.js" ignored. Already in the list.
DEBUG [watcher]: Add file "C:/inetpub/wwwroot/seed/app/js/controllers.js" ignored. Already in the list.
DEBUG [watcher]: Add file "C:/inetpub/wwwroot/seed/app/js/app.js" ignored. Already in the list.
DEBUG [watcher]: Add file "C:/inetpub/wwwroot/seed/app/js/services.js" ignored. Already in the list.
DEBUG [watcher]: Add file "C:/inetpub/wwwroot/seed/test/unit/directivesSpec.js" ignored. Already in the list.
DEBUG [watcher]: Add file "C:/inetpub/wwwroot/seed/test/unit/filtersSpec.js" ignored. Already in the list.
DEBUG [watcher]: Add file "C:/inetpub/wwwroot/seed/app/js/directives.js" ignored. Already in the list.
DEBUG [watcher]: Add file "C:/inetpub/wwwroot/seed/test/unit/controllersSpec.js" ignored. Already in the list.
DEBUG [watcher]: Add file "C:/inetpub/wwwroot/seed/test/unit/servicesSpec.js" ignored. Already in the list.
DEBUG [web-server]: serving: C:\inetpub\wwwroot\seed\node_modules\karma\static/client.html
DEBUG [web-server]: serving: C:\inetpub\wwwroot\seed\node_modules\karma\static/karma.js
DEBUG [karma]: A browser has connected on socket Uj4-OIYPhAr0oyLxH6vm
INFO [Chrome 30.0.1599 (Windows 7)]: Connected on socket Uj4-OIYPhAr0oyLxH6vm
DEBUG [karma]: All browsers are ready, executing
DEBUG [web-server]: serving: C:\inetpub\wwwroot\seed\node_modules\karma\static/context.html
DEBUG [web-server]: serving: C:/inetpub/wwwroot/seed/node_modules/karma-jasmine/lib/jasmine.js
DEBUG [web-server]: serving: C:/inetpub/wwwroot/seed/node_modules/karma-jasmine/lib/adapter.js
DEBUG [web-server]: serving: C:/inetpub/wwwroot/seed/test/lib/angular/angular-mocks.js
DEBUG [web-server]: serving: C:/inetpub/wwwroot/seed/app/js/app.js
DEBUG [web-server]: serving: C:/inetpub/wwwroot/seed/app/js/controllers.js
DEBUG [web-server]: serving: C:/inetpub/wwwroot/seed/app/lib/angular/angular.js
DEBUG [web-server]: serving: C:/inetpub/wwwroot/seed/test/unit/controllersSpec.js
DEBUG [web-server]: serving: C:/inetpub/wwwroot/seed/app/js/filters.js
DEBUG [web-server]: serving: C:/inetpub/wwwroot/seed/app/js/directives.js
DEBUG [web-server]: serving: C:/inetpub/wwwroot/seed/test/unit/filtersSpec.js
DEBUG [web-server]: serving: C:/inetpub/wwwroot/seed/app/js/services.js
DEBUG [web-server]: serving: C:/inetpub/wwwroot/seed/test/unit/directivesSpec.js
DEBUG [web-server]: serving: C:/inetpub/wwwroot/seed/test/unit/servicesSpec.js
Chrome 30.0.1599 (Windows 7) controllers should FAILED
Error: [ng:areq] Argument 'testcont' is not a function, got undefined
http://errors.angularjs.org/1.2.0-rc.3/ng/areq?p0=testcont&p1=not%20a%20function%2C%20got%20undefined
at C:/inetpub/wwwroot/seed/app/lib/angular/angular.js:78:12
at assertArg (C:/inetpub/wwwroot/seed/app/lib/angular/angular.js:1246:11)
at assertArgFn (C:/inetpub/wwwroot/seed/app/lib/angular/angular.js:1256:3)
at C:/inetpub/wwwroot/seed/app/lib/angular/angular.js:5899:9
at null.<anonymous> (C:/inetpub/wwwroot/seed/test/unit/controllersSpec.js:14:5)
at Object.invoke (C:/inetpub/wwwroot/seed/app/lib/angular/angular.js:3374:28)
at workFn (C:/inetpub/wwwroot/seed/test/lib/angular/angular-mocks.js:2082:20)
Error: Declaration Location
at window.inject.angular.mock.inject (C:/inetpub/wwwroot/seed/test/lib/angular/angular-mocks.js:2068:25)
at null.<anonymous> (C:/inetpub/wwwroot/seed/test/unit/controllersSpec.js:12:16)
at C:/inetpub/wwwroot/seed/test/unit/controllersSpec.js:5:1
Chrome 30.0.1599 (Windows 7): Executed 1 of 1 (1 FAILED) ERROR (0.26 secs / 0.028 secs)
Using angular.module redefines the module myapp.test.
You should use angular.mock.module (which is also set on the window object), i.e.:
beforeEach(module('myapp.test'));
Check the AngularJS docs on injecting a module here.
Also, heere's more info on What is a Module?
When declaring your module in a unit test you dont use the anglar. prefix since you're using module from angular-mocks.js, not the same angular.module you normally use for defining controllers, services, etc.
Your unit test code line 3 should look like this:
beforeEach(module('myapp.test'));
Related
I am getting below error while creating package in intellij. I have case class with many parameters around 240 columns.
Error:
s
cala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5423)
[error] at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5370)
[error] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5374)
[error] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5472)
[error] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5478)
[error] at scala.tools.nsc.typechecker.Typers$Typer.typedSelectOrSuperCall$1(Typers.scala:4812)
[error] (compile:compileIncremental) java.lang.StackOverflowError
[error] Total time: 31 s, completed Jan 12, 2019 11:00:53 PM
I have already updated vmoption file as below but this error is still coming.
# custom IntelliJ IDEA VM options
-Xms30G
-Xmx30G
-Xss30G
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
I already updated my vmoption file with below parameters and updated Xss and Xmx in settings.
# custom IntelliJ IDEA VM options
-Xms30G
-Xmx30G
-Xss30G
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
I have compiled the code and I am not getting any error in compile but when I create package I am getting this error.
I got he answer I have to update sbt file in my program file with -Xss2G and -Xmx2G and it worked.
I was confused earlier by Pawan's answer but what I believe he meant is this setting in IDEA Intellij ( and not the SBT file itself )
Intellij IDEA > Preferences > Build,Execution,Deployment > Build Tools > sbt
you can set following:
-Xss8m
The most confusing thing here is that it seems that this is different from Scala Compiler Server ( for which I tried a lot of combinations and even tried changing the underlying JDK and what not ) but the key was that that the sbt shell was not getting affected by those changes
/Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home/bin/java -server -Xmx1536M -Dsbt.supershell=false -Xss8m -Didea.managed=true -Dfile.encoding=UTF-8 ....
thus i searched for SBT properties.
I have hawtio standalone application (hawtio-app-1.4.52.jar).
I wanted to deploy the simple plugin, but I wasn't successful at building it alone, so I downloaded the hawtio application from github and built the "simple plugin" without changing it. (I opened the whole project and used build artifact in IntelliJ idea.) - Building was without warning or errors and I got the .WAR file of this plugin.
I created "plugins" directory next to the hawtio.jar and put the war inside.
There is no new tab in hawtio or no other sign of this plugin running.
I can access plugin's folder on http://0.0.0.0:8090/simple-plugin-1.5-SNAPSHOT/ but it only shows folder structures and plain text of source files.
In this question is mentioned PluginServlet, but I have no idea, how to import it to the simple plugin.
Does anyone know, how to make plugin visible and usable?
Thanks.
When I run the hawtio jar in terminal, this shows up:
[main] INFO jetty - using temp directory for jetty: /Users/mcejka/.hawtio/tmp
[main] INFO jetty - Scanning for 3rd party plugins in directory: plugins
[main] INFO org.eclipse.jetty.webapp.StandardDescriptorProcessor - NO JSP Support for /simple-plugin-1.5-SNAPSHOT, did not find org.apache.jasper.servlet.JspServlet
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/mcejka/.hawtio/tmp/simple-plugin-1.5-SNAPSHOT.war/webapp/WEB-INF/lib/slf4j-log4j12-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/mcejka/Downloads/hawtio-app-1.4.52.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
log4j:WARN No appenders could be found for logger (io.hawt.web.plugin.HawtioPlugin).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[main] INFO org.eclipse.jetty.webapp.WebAppContext - hawt.io simple plugin at http://0.0.0.0:8090/simple-plugin-1.5-SNAPSHOT
[main] INFO jetty - Added 3rd party plugin with context-path: /simple-plugin-1.5-SNAPSHOT
Added 3rd party plugin with context-path: /simple-plugin-1.5-SNAPSHOT
Embedded hawtio: You can use --help to show usage
Using options [
war=/private/var/folders/bm/gscmy_6d5f52xz038twpwymjfjz5kl/T/hawtio-1582436603468747864.war
contextPath=/hawtio
port=8090
extraClassPath=file:/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/lib/tools.jar
plugins=plugins
jointServerThread=false
help=false]
About to start hawtio /private/var/folders/bm/gscmy_6d5f52xz038twpwymjfjz5kl/T/hawtio-1582436603468747864.war
[main] INFO org.eclipse.jetty.server.Server - jetty-8.y.z-SNAPSHOT
[main] INFO org.eclipse.jetty.webapp.WebInfConfiguration - Extract jar:file:/private/var/folders/bm/gscmy_6d5f52xz038twpwymjfjz5kl/T/hawtio-1582436603468747864.war!/ to /Users/mcejka/.hawtio/tmp/webapp
[main] INFO org.eclipse.jetty.webapp.StandardDescriptorProcessor - NO JSP Support for /hawtio, did not find org.apache.jasper.servlet.JspServlet
[main] INFO io.hawt.system.ConfigManager - Configuration will be discovered via system properties
[main] INFO io.hawt.jmx.JmxTreeWatcher - Welcome to hawtio 1.4.52 : http://hawt.io/ : Don't cha wish your console was hawt like me? ;-)
[main] INFO io.hawt.jmx.UploadManager - Using file upload directory: /var/folders/bm/gscmy_6d5f52xz038twpwymjfjz5kl/T//uploads
[main] INFO /hawtio - Loading Blueprint contexts [file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/classes/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-aether-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-core-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-git-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-ide-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-json-schema-mbean-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-kubernetes-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-local-jvm-mbean-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml]
[main] INFO io.hawt.git.GitFacade - hawtio using config directory: /Users/mcejka/.hawtio/config
[main] INFO io.hawt.git.GitFacade - Performing a pull in git repository /Users/mcejka/.hawtio/config on remote URL: https://github.com/hawtio/hawtio-config.git. Subsequent pull attempts will use debug logging
[main] INFO io.hawt.web.AuthenticationFilter - Starting hawtio authentication filter, JAAS authentication disabled
[main] INFO /hawtio - jolokia-agent: Using access restrictor classpath:/jolokia-access.xml
[main] INFO org.eclipse.jetty.webapp.WebAppContext - hawtio at http://0.0.0.0:8090/hawtio
[main] INFO org.eclipse.jetty.server.AbstractConnector - Started SelectChannelConnector#0.0.0.0:8090
hawtio: Don't cha wish your console was hawt like me!
=====================================================
http://localhost:8090/hawtio
[qtp1501587365-23] INFO io.hawt.web.keycloak.KeycloakServlet - Keycloak integration is disabled
Solved by properly renaming the plugin. It has to be "simple-plugin" instead of "simple-plugin-1.42" or anything else.
Hello I'm upgrading my gwt from 2.4.0 to 2.7.0 with gxt 2.3.1a. Everything was looking alright ultil I try to debug the application. I start the debug using superdev mode without any problems aparently. Here is the end of my debug start.
"
[INFO] Unification traversed 108163 fields and methods and 8186 types. 8146 are considered part of the current module and 8146 had all of their fields and methods traversed.
[INFO] Compiling 1 permutation
[INFO] Compiling permutation 0...
[INFO] Linking per-type JS with 8130 new types.
[INFO] prelink JS size = 26317582
[INFO] prelink sourcemap = 26317582 bytes and 534648 lines
[INFO] postlink JS size = 26027857
[INFO] postlink sourcemap = 26027857 bytes and 528723 lines
[INFO] Source Maps Enabled
[INFO] Compile of permutations succeeded
[INFO] Compilation succeeded -- 128,510s
[INFO] Linking into C:\Users\ALEXAN~1.RIS\AppData\Local\Temp\gwt-codeserver-3435183735990420589.tmp\br.com.webb.ria.Application\compile-2\war\br.com.webb.ria.Application; Writing extras to C:\Users\ALEXAN~1.RIS\AppData\Local\Temp\gwt-codeserver-3435183735990420589.tmp\br.com.webb.ria.Application\compile-2\extras\br.com.webb.ria.Application
[INFO] Link succeeded
[INFO] Linking succeeded -- 11,742s
[INFO] 147,211s total -- Compile completed
"
After I start the remote debug I get the normal gray window of gwt debug plugin. Everything is processed without any errors. When I copy the generated link on my browser I get the following message.
"Compiling br.com.webb.ria.Application" My gwt module.
The problem is that after the message vanishes I get nothing but the plain html. The module is not loaded on screen and I can't see my application.
I've tried using the "Dev Mode On" button from my bookmark, nothing happens. I tried to stop using "Dev Mode Off" and then clicking on "Dev Mode On" again, nothing happens.
I also tried enabling https support and <set-property name="user.agent" value="safari" />. Nothing seems to help. Any ideas?
Unlike convencional debug mode, superdev mode requires a full compilation before debuging to work. If you are using maven and face the same problem, perform a mvn clean package before trying to debug.
I've download sample crux projects from https://code.google.com/p/crux-framework/source/checkout
and compile subproject crux-site but i've this error:
crux-site $ mvn clean package
[INFO] BUILD SUCCESSFUL
crux-site $ mvn gwt:compile
[INFO] Scanning for projects...
...
[INFO] Compiling module org.cruxframework.cruxsite.CruxSite
[ERROR] mar 17, 2015 6:17:02 PM org.cruxframework.crux.core.rebind.DevelopmentScanners initializeScanners
[ERROR] INFORMAZIONI: Registering scanners for crux compilation...
[ERROR] mar 17, 2015 6:17:03 PM org.cruxframework.crux.core.server.CruxBridge handleCriticalError
[ERROR] GRAVE: CruxBridge critical error: Error getting lastPageRequestedFile.
[ERROR] java.io.FileNotFoundException: /tmp/screenRequestedBridgeFile (No such file or directory)
[ERROR] at java.io.FileInputStream.open(Native Method)
....
i've not modify initial sources, the error is java.io.FileNotFoundException: /tmp/screenRequestedBridgeFile
my system is: ubuntu 14.04, maven 2, jdk oracle 7
any idea?
ok Thiago, now i compile app and view it on browser, but the problem is while recompile in super dev mode. I got same problem
Compiling module org.cruxframework.cruxsite.CruxSite
mar 18, 2015 11:31:38 PM
org.cruxframework.crux.core.rebind.DevelopmentScanners initializeScanners
INFORMAZIONI: Registering scanners for crux compilation...
mar 18, 2015 11:31:39 PM org.cruxframework.crux.core.server.CruxBridge handleCriticalError
GRAVE: CruxBridge critical error: Error getting lastPageRequestedFile.
java.io.FileNotFoundException: /tmp/screenRequestedBridgeFile (No such file or directory)
at java.io.FileInputStream.open(Native Method)
(compile in super dev mode is on browser, refreshing page when java source is modified)
To compile a crux application with maven, you can not use the gwt:compile goal.
To generate the war file, try to call mvn install instead.
For debug, you can try the eclipse launch files StartCodeServer.launch and StartJetty.launch (on Eclipse IDE) and then open the url (http://localhost:8080/cruxsite/index.html) on browser.
EDIT
I could not reproduce your problem. Anyway, can you try to change the cruxVersion property on pom.xml to point to 5.3.0-SNAPSHOT?
The reason for this is that CodeServer should not was trying to read this file. On 5.3.0 version we fix this behaviour. This file is only used when application is using the old GWT DevMode now.
5.3.0, however was not released yet, but will be very soon, in the next few days. So, you will need to use this SNAPSHOT for the moment.
I have been using eclim for the past month and I was loving it.
Yesterday it all changed and now it doesn't work, the only things that changed on my machine are:
Sysadmin installed an encrypted partition not encroaching on any of the eclim or vim installation.
I Tried running another instance of eclipse on the same project from a different work space.
Eclim starts up, and performs basic functions, I can PingEclim etc.. but as soon as I try performing a save operation which is assumably exercising some java component it fails,
The output from starting eclim to the error is as follows:
java -jar "/home/user/dev/apps/eclipse/plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar" -debug -clean -refresh -application org.eclim.application_headless
Install location:
file:/home/user/dev/apps/eclipse/
Configuration file:
file:/home/user/dev/apps/eclipse/configuration/config.ini loaded
Configuration location:
file:/home/user/dev/apps/eclipse/configuration/
Framework located:
file:/home/user/dev/apps/eclipse/plugins/org.eclipse.osgi_3.6.2.R36x_v20110210.jar
Framework classpath:
file:/home/user/dev/apps/eclipse/plugins/org.eclipse.osgi_3.6.2.R36x_v20110210.jar
Debug options:
file:/home/user/dev/apps/eclipse/.options not found
Time to load bundles: 57
Starting application: 7989
2011-04-08 15:52:25,102 INFO [org.eclim.eclipse.AbstractEclimApplication] Workspace: /home/user/workspace
2011-04-08 15:52:25,103 INFO [org.eclim.eclipse.AbstractEclimApplication] Starting eclim...
Application Started: 9416
2011-04-08 15:52:26,132 INFO [org.eclim.eclipse.AbstractEclimApplication] Loading plugin org.eclim
2011-04-08 15:52:26,159 INFO [org.eclim.eclipse.AbstractEclimApplication] Loading plugin org.eclim.core
2011-04-08 15:52:26,467 INFO [org.eclim.plugin.core.CorePlugin] Loading eclim plugins...
2011-04-08 15:52:26,473 INFO [org.eclim.plugin.core.CorePlugin] Loading plugin org.eclim.maven
2011-04-08 15:52:26,475 INFO [org.eclim.plugin.core.CorePlugin] Loading plugin org.eclim.ant
2011-04-08 15:52:26,477 INFO [org.eclim.plugin.core.CorePlugin] Loading plugin org.eclim.jdt
2011-04-08 15:52:26,484 INFO [org.eclim.plugin.core.CorePlugin] Plugins loaded.
2011-04-08 15:52:26,485 INFO [org.eclim.eclipse.AbstractEclimApplication] Loaded plugin org.eclim.core
2011-04-08 15:52:26,489 INFO [org.eclim.eclipse.AbstractEclimApplication] Eclim Server Started on port 9091.
2011-04-08 15:52:26,580 WARN [org.eclim.plugin.jdt.PluginResources] Unable to locate jre src.zip for JAVA_HOME: /usr/lib/jvm/java-6-sun-1.6.0.24/jre
NGSession 1: 127.0.0.1: org.eclim.command.Main exited with status 1
NGSession 2: 127.0.0.1: org.eclim.command.Main exited with status 1
NGSession 1: 127.0.0.1: org.eclim.command.Main exited with status 1
With the error part beign:
NGSession 1: 127.0.0.1: org.eclim.command.Main exited with status 1
NGSession 2: 127.0.0.1: org.eclim.command.Main exited with status 1
NGSession 1: 127.0.0.1: org.eclim.command.Main exited with status 1
I have tried re-installing eclim and have tried it on a differentnew version of eclipse.
If someone could give me a clue about what is going on or point me in the direction of how I might debug then it would help.
I had the exact same error, which was caused by the .project folder in my code folder. I got on track of this after reading this post. After deleting the .project folder, eclimd started up just fine.
When using emacs with eclim, the *Messages*-buffer can give you hints as to what could be wrong with the process, if the problem arises after eclimd has started. In vim it should be :Messages, although I'm not sure about this as I am no vim user.