w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
I import a project using Grails 2.2.1 and tried to use it in a 2.1.1 Grails app. It failed with an error
That particular error is usually due to something that has a transitive dependency on xml-apis (which has not been necessary since Java 5), and can be fixed by looking at the results of grails dependency-report and adding the relevant excludes to your BuildConfig dependencies.

Categories : Grails

Project loaded error after debugging
Don't #include "convertion.cpp" in any file. By including it, you are replacing that include line with the contents of the file, so you have declared non10num twice in the same program: once in "converter.cpp" (because of the include line) and once in "convertion.cpp". I hope this helps.

Categories : C++

Groovy/Grails project run error
It's probably an issue with the Spring-Loaded reload agent. Try disabling it with the noreloading flag YOUR_GRAILS_COMMAND_HERE -noreloading Also check JIRA issues for potential bug fixes, etc.

Categories : Grails

How can I compile a Grails App including a Grails Plugin-Project on my Webserver?
grails maven-install //in plugin project if you have .m2 <local maven repo> compile ':my-plugin:0.1' //in Grails app BuildConfig plugin section grails war //in grails app Deploy the war wherever you want. If this is what you want then you would need nothing else. Grails will package all compiled files into the war file. The Grails app would pull the plugin artifact from the maven repo (in this case your local maven repo) while building the war file. If you are building the war on the same machine that you did maven install for the plugin your grails app will find it and you should be good.

Categories : Grails

Grails with GORM only on some domain classes or Grails project with multiple DBs
You can configure this with the mapWith option in the domain class. Related SO question: Is it possible in grails to disable persistence of a domain class?

Categories : Hibernate

css effects sometimes missing when debugging grails
I don't know how is your .gsp code, but i passed for a problem similar with your. I solve my problem updating the resource plugins version, like you can see in the post above: Grails: Images / CSS missing from time to time

Categories : HTML

Debugging a grails application with intellij IDEA 12.1.4
This could be being caused by forked tomcat execution settings in your BuildConfig.groovy file. I think what happens is that Intellij gets confused about which Java process to attach to when Grails spins up. You could try disabling execution forking by replacing the grails.project.fork settings with: grails.project.fork = [ test: false, run: false, war: false, console: false ]

Categories : Debugging

Grails Spring Security plugin - "Cannot invoke isLoggedIn() on null object" error in grails-2.3.0.RC1
Obviously, this problem is related to an issue with grails-2.3.0.RC1 not injecting service bean for plugins correctly. I was able to fix my problem by adding this to grails-app/conf/resources.groovy beans = { springConfig.addAlias "springSecurityService", "springSecurityCoreSpringSecurityService" } This makes grails to inject the service first before anything. If you have similar problems using grails-2.3.0RC1, you can add an alias to the resources.groovy file to fix this error. For example: beans={ springConfig.addAlias "serviceName","pluginNameServiceName" } You can see the jira that was opened for this problem here http://jira.grails.org/browse/GRAILS-10301 Hope this helps anyone with similar issues.

Categories : Java

Very slow debugging ASP.NET MVC 3 project
Visual Studio IDE settings Go to Tools - Options and set the following: Projects and Solutions - Build and Run. Check "Only build startup projects and dependencies on Run" This will prevent it building all the projects all the time! Environment – General Uncheck "Automatically adjust visual experience based on client performance" Uncheck "Enable rich client visual experience" Uncheck "Use hardware graphics acceleration if available" IntelliTrace – General Uncheck "Enable IntelliTrace” This disables a specific tracing technology most people don't use, that adds major overhead. Environment - Startup Set "At Startup" to "Show empty environment" Disable "Download content every..." PC setup Get an SSD! We use an Intel SSD caching system, which is improves our build times by

Categories : Asp Net Mvc

Debugging Zend project
You could be experiencing one of the Backward incompatibility issues with PHP versions >= 5.3. The most probable cause is the : The new mysqlnd library necessitates the use of MySQL 4.1's newer 41-byte password format. Continued use of the old 16-byte passwords will cause mysql_connect() and similar functions to emit the error, "mysqlnd cannot connect to MySQL 4.1+ using old authentication." Check your MySQL server version. Then check your MySQL password store. This answer provides more insight.

Categories : Debugging

Debugging a VC++ 6 Project in Visual Studio 10
Make sure you 'Rebuild' to ensure your binaries are fresh before you start the debug session. If you get build errors, you will need to fix the code or project settings. [Added] Make sure you're building and debugging a Debug build configuration. A Release build usually won't include debug information. If you have VC 6 available, you could instead install VC6 and Daffodil, then set the project's Platform Target to v60. This way you're building with VC6 build tools, thus minimizing the need for code changes.

Categories : Visual Studio 2010

Debugging a Scala project (IntelliJ Idea 12 and sbt)
IMO, you are best off keeping SBT and Intellij separate, as they are two different concerns. One is for building, and the other is for developing. Here are the steps that I typically go through to get a solid Scala/Intellij development environment up and running for a new Scala project. Step 1: Install Scala Intellij Plugin Step 2: Create a simple sbt project - details here Step 3: Add the fantastic sbt-idea plugin to your sbt config Step 4: sbt gen-idea Step 5: Open project in Intellij 12 Enjoy debugging, syntax highlighting, code assist and all of the other nice IJ features. On the sbt side, I typically keep a terminal open, with sbt running so that I can rapidly test things outside the context of Intellij. HTH

Categories : Debugging

Debugging a Tutorial Hadoop Pipes-Project
The exception : at org.apache.hadoop.mapred.pipes.Application.<init>(Application.java:103) Is caused by the following lines in the source: //Add token to the environment if security is enabled Token<JobTokenIdentifier> jobToken = TokenCache.getJobToken(conf .getCredentials()); // This password is used as shared secret key between this application and // child pipes process byte[] password = jobToken.getPassword(); The actual NPE is throw in the final line as jobToken is null. As you're using local mode (local job tracker and local file system), i'm not sure that security should be 'enabled' - do you have either of the following properties configured in your core-site.xml, or hdfs-site.xml coniguration files (if so, what are their values): hadoop.security.authentic

Categories : Hadoop

tracking the flow of classes called while debugging the project
Probably the best thing is to log the relevant information you need. Logs have the advantage of recording exactly what you need (So not only the names of the class you traverse but also relevant variable values) and you can run them even outside from Eclipse, which it is sometimes useful when you have to track down bugs in the production environment.

Categories : Java

How to install grails project
If you are creating a grails "plugin", you should be referring to this information instead. The one you are referring is for creating a Grails Application. Gist: Grails app (one you are referring to) creates a deployable component which can be deploed to any container and accessed. On the other hand, grails plugins are extension/modules that are created and maintained separately. packaged as zip and are plugged to any Grails Application when required. If you are creating a grails plugin and want to push it to local/remote repositories, you need to use the release plugin which comes inside a plugin by default. grails maven-install The command is taken from release plugin to push your plugin to local maven repositories, if you have any.

Categories : Grails

Is there any way to know which groovy version used in grails project?
You can look in the install directory under lib. For example in Grails 2.2.3 it's lib/org.codehaus.groovy/groovy-all/jars/groovy-all-2.0.8.jar so the version is 2.0.8. If you want to find the value programmatically at runtime, call GroovySystem.getVersion() to get the current version string.

Categories : Grails

How can I integrate Fuel UX into a Grails project?
I have not used FuelUX but integrating such libraries is as simple as including their resources into your app and include them into your pages. If you are using resources plugin in your application, it will take care of it for you. This is what twitter bootstrap and other plugins do for you. Copy all the required resources (js/css) from FuelUX into web-app folder and define them in your YourResource.groovy file. Example: YourResource.groovy modules = { fuelux { dependsOn 'jquery, resource url:'/js/core.js', disposition: 'head' resource url:'/js/ui.js' resource url:'/css/main.css', resource url:'/css/branding.css' } } In your pages you can import the fuelux module, which you defined to be your required css and js. If it depends on jquery you can dependsOn it if

Categories : Grails

Using EmberJS in Grails project with a layout
By default ember use the body as root element, then the contents of templates will be inserted and replaced in that element. So by default ember is a single page application. If you need ember just for some piece of html, use by example: Javacript YourAppNamespace.rootElement = "#myEmberApp"; Html <body> <div id="wrap"> <!-- render normally contents from server --> <g:layoutBody/> </div> <div id="myEmberApp"> <!-- all content here is controlled by ember --> </div> <div id="footer> My company all rights reserved </div> </r:layoutResources/> </body> Hope it helps

Categories : Javascript

Grails 2.3 - New Sample Project not working
Add the Jars to the Lib folder in your App; you can download the Jars from http://central.maven.org/maven2/org/apache/tomcat/tomcat-catalina-ant/7.0.42.

Categories : Grails

Adding a custom jar to grails project
If a jar isn't available in a Maven repo and you can't add a dependency in BuildConfig.groovy, you can add it to the lib directory, but it's not automatically discovered. Run grails compile --refresh-dependencies to get it added to the classpath.

Categories : Spring

Symbol file not loading for debugging custom project in Visual Studio 2012
I tried a few tools to check if the pdb and the dll actually matched, and using chkmatch I could see that the GUIDs in the dll being run and the pdb in the obj folder didn't match. So it turns out that although the dll and pdb in the project's obj folder are a match, the dll that was actually getting copied to the application's destination folder by a post-build event was the old dll from the previous build. The post-build event was running before that particular project had built, or at least finished building, and was copying in the existing dll from the bin which was subsequently overwritten by the continuing build. I have resolved the problem by editing the project dependencies for the solution and ensuring that the project with the post-build event is dependent on the project that

Categories : C#

Visual Studio 2008 C++ - Remote Debugging - "Could not load symbols" only for main project
I figured out that I missed a setting for the main project that was done for all other projects. I had to set "Project -> Properties -> C/C++ -> General -> Debug Information Format" to "Program Database (/Zi)".

Categories : C++

MongoDB and mysqlDB using together in grails cause issue in my project
Associations across mappings are probably not going to work. The reason the id works is because of a sneaky trick grails does on associated lazy objects to prevent overhead. If all that is needed is the id of an association its normally stored in the User object (for the example above) in a field probably similar to address_id. If you only request userInstance.address.id than GORM is smart enough not to go fetch the entire address record (lazy) unless its really needed.

Categories : Grails

What is the right way to add apache-tika dependency into grails project
This may or may not be the issue you're seeing -- we're working with tika 1.5 (snapshot). That version pulls in asm-debug-all, which was the cause of our troubles (similar stacktrace to yours). Try using 'asm-debug-all' in your tika-parsers excludes instead of 'tika-core'.

Categories : Grails

Which StatsD client should I use for a java/grails project?
After sleeping on this for a week I think I'm going to go ahead and use the existing grails StatsD plugin. The rationale for this being that although I could achieve a similar effect using an Executor for handling concurrency, without using an object pool this would still be bound to a single client/socket instance, in theory a rather obvious bottleneck in the application. Therefore if I need a pool anyway, I may as well use one where someone else has done all the hard work :)

Categories : Java

Disable HTML5 form validation in Grails Project
You need to customize renderEditor.template this file is responsible for render the form fields according to the Domain Class. As example I changed the isRequired() method: private boolean isRequired() { //!isOptional() return false //always return false, not including the required='' in the field. }

Categories : HTML

How to add project dependency (classes from another module/folder) in Grails?
You can use every possible library which is in a maven repository. So transform your java project to a maven or gradle project. Install your builded jar to maven repo and then you can add dependency in grails-app/conf/BuildConfig.groovy. dependencies { compile "your.group:your.artifact:1.0" }

Categories : Grails

GGTS 3.2 console timout failure on new Grails project
The "Execute Grails Command" function wasn't designed to support persistent processes. It worked previously by chance, but no longer does. The recommended way to execute long-running grails processes in Eclipse/STS/GGTS is to configure an eclipse run configuration to execute the long-running grails commands. (Run -> Run Configurations...)

Categories : Eclipse

Grails Project missing Java library at runtime
The question you refer to is 5 years old. You should use newer resources :) The preferred approach now is to use dependencies in BuildConfig.groovy, and let Grails (via Ivy or Maven) download the jars for you once and reuse them for various projects. It's not always obvious what the syntax is, and I find that http://mvnrepository.com/ is a great resource. For example if you search for "commons math" and click through to http://mvnrepository.com/artifact/org.apache.commons/commons-math you'll see a few versions. Click on version 2.2 and you'll see the Maven dependency XML but you can click on the Gradle tab and it's going to be similar to what you need for Grails. So I'd add dependencies { compile 'org.apache.commons:commons-math:2.2' } and if necessary change compile to runtime, bu

Categories : Grails

php based application to make request to grails plugin project
You can try grails web services, for example; REST can be used and you can call your grails application through a url and can pass parameter to it through POST, GET and handle them on grails controller you can call a URL and handle the url paramters on the URL mapping: for example if you call your grails app through some URL: product/ then you will be able to handle the request on your grails app as: "/product/$id"(controller: "product", parseRequest: true) { action = [GET: "show", PUT: "update", DELETE: "delete", POST: "save"] and in your controller you can parse the request like: if( request.method == "GET" ){ println( "GET REQUEST RECEIVED" ) <......Some Code........> render resultList as JSON }else if( request.method == "POST" ){

Categories : Web Services

jenkins build tells my project is not a part of grails application
You need to be in the context of the desired grails app to run the build. Seems like /scratch/jenkins/workspace/cloudbees_doofry_jenkins_2/your-grails-app should be the base directory structure where you should kick of the build.

Categories : Grails

Grails project running in eclipse but not in intellij-idea due to org.apache.catalina.LifecycleException:
Phew! I finally solved it!. Actually the following line in the stacktrace: Caused by NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig; ->> 334 | innerRun in java.util.concurrent.FutureTask$Sync Points out about something pathogenic with the javax.servlet.ServletContext.getSessionCookieConfig() function. I scanned out the external libraries to find out such similar matching functions and realized that there are two such occurences: Under grails-2.2.1 there is a jar called servlet-api-2.4.jar There was another jar called socialauth-cmd-utility-1.1.jar Actually the error was due to the second jar. So I removed it from the external libraries using the following steps: Right click on the socialauth-cmd-utility-1.1.jar G

Categories : Tomcat

How to access a user defined Grails Project Package Name using the domain class string name
Untested but assuming that your class names between 'sub-applications' are different, you might be able to use grailsapplication lookup methods(untested getartefactbylogicalpropertyname) http://grails.org/doc/latest/api/org/codehaus/groovy/grails/commons/GrailsApplication.html#getArtefactByLogicalPropertyName(java.lang.String,%20java.lang.String) You could lookup grailsapplication via applicationholder.

Categories : Grails

Using Google Drive API with service account in Google Apps Engine python project with local debugging
Yes - you can use SignedJwtAssertionCredentials to connect to Google Services. I wrote code which do that at one time and it work great. Using that class is one problem. On GAE is provided PyCrypto library like you wrote but on local you must install it manually. GAE have his own changed version of this library so they didn't provide her source code. Second problem with that library is that she is compiled for specified machine which will use her. If you look in source code of that class you will see that she needs some dependencies to work. If they didn't meet the requirements of that class she will be not accessible from outside code. About problems with import in old and new dev_server i can't write anything because i don't know anything about that.

Categories : Google App Engine

Maven error: Failed to execute goal on project : Could not resolve dependencies for project
The first thing is you are having the wrong credentials for the repository ...(http://www.jets3t.org/maven2): Access denied to: http://www.jets3t.org/maven2/org/... Apart from that the repository does not look like Maven repository. And also the http://ericbottard.github.com/cloudfoundry-tomcat-7 gives a page not found which gives me the impression this is not a valid repository. Furthermore i would suggest first to use Maven Central only which means no repository entries in your pom.xml files which is the wrong way at all. Just check if it works without the repository definition. If you really need to define other repository better use a repository manager (Artifactory, Nexus, Archiva). One other thing is that i see in your pom the version which is a released versions already in c

Categories : Maven

Failed to import Gradle project error creating new project with Android Studio
I had same issue with the latest Android Studio () today, and I finally found that configuring a https proxy for Gradle can solve the issue. I only set a http proxy at the beginning. Gradle needs to sync some files via HTTPS. Use IP address instead if hostname of proxy can't work.

Categories : Android

Getting error while running AppFuse project: "Failed to execute goal on project"
As you said you are using modular appfuse application. In appfuse modular application two module exists: core and web. Web module depends to core module. So you should first install the core module. Try this code in your core module directory: mvn install

Categories : Java

Trying to create a project in a sub folder gives " overlaps the location of another project" error
1-Take for workspace "MyBook" 2-In eclipse, create a "Java project" ch-01. 3-right click on ch-01 , new, project "MyExampleApple" for each folder like ch-01 do number 2 and 3. :) This will create a subFolder in your Workspace and a project inside this subFolder. workspace subfolder project MyBook Ch-01 MyExampleApple :D

Categories : Java

VS2012 Project Xaml reports cannot find namespace error, but project compiles fine
Try download the assembly from http://scsf2012.codeplex.com/Download/AttachmentDownload.ashx?ProjectName=scsf2012&WorkItemId=1&FileAttachmentId=630895 (the link can be found at http://scsf2012.codeplex.com/workitem/1 ). PS: just copied error message to google.

Categories : C#

debugging a php.ini syntax error
Short answer: Don't trust the line numbers, look for a syntax error in the lines before the line mentioned in the error. Long answer: I had this error too, turned out I was missing a quotation mark around the timezone. My orignal error was: PHP: syntax error, unexpected BOOL_FALSE in /etc/php5/cli/php.ini on line 929 On line 876 I had: [Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone date.timezone = Europe/Madrid" After that were lots of commented out lines, the next uncommented line was on 938. The original error said that there was an error on line 929, which made things nicely cryptic. I presume that the difference in line numbers has something to do with the way the php.ini file is parsed, but the point is that the line number

Categories : PHP



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.