Skip to content
Advertisement

Tag: dependencies

Gradle build – add module path

My question: How do I set a module path for gradle build? I’ve become comfortable working with Java modules from the command line. I do a frequent exercise in Powershell which results in these source files. appMod/module-info appMod/appPack.Entry greetMod/module-info greetMod/greetPack.Hello Since the appMod module requires greetMod, I compile and jar greetMod first. Then I compile and jar appMod, but as

xml-apis JAR file necessary?

I’m using a (Maven) dependency which itself depends on xml-apis. Unfortunately, the presence of this package now causes conflicts in our OSGi environment (see below in case it should be relevant). Looking at the JAR content, I find classes which seem to be present in a current JRE anyways. So, my question: Is it safe to exclude this dependency? In

NoClassDefFoundError: org/apache/commons/lang3/StringUtils

I’m trying to run the sample project with this library and I get the following error: I’ve added commons-lang-2.6.jar & commons-lang3-3.1-sources.jar in libs and classpath Main class: I have referred to the following links: java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils from BaseClassLoader Struts 2 framework demo http://apache-commons.680414.n4.nabble.com/lang-java-lang-NoClassDefFoundError-org-apache-commons-lang-StringUtils-Exception-td3735881.html Answer I have added commons-lang-2.6.jar & commons-lang3-3.1-sources.jar… Here’s your problem: commons-lang-2.6.jar doesn’t contain the org.apache.commons.lang3 package, since

Wildfly configuration with DataSource

this is the first time I am trying to setup datasource in my Wildfly server. I tried to follow some tutorials which I found on Google but it still doesn’t work. I am working on a web service but I keep getting some errors when I deploy my .war file. Here is the latest log when app is deployed: persistence.xml

SPRING java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext

It seems people have had similar problems, but on IDE’s. I am not using an IDE. I installed Spring using a Maven dependency as you will see in my build.xml file. I get the following stacktrace that says org.springframework.context is not found: run-decouple: BUILD SUCCESSFUL Total time: 4 seconds Here is my client (java file: DecoupledDataReaderClient.java): Here is my build.xml

How to add Java JAR files to Grails project?

I have a few Java/Maven projects that I want to use in a Grails 2.0.4 project. I have tried various approaches, such as: Installing the JAR files in my local maven repository, and executing grails install-dependency com.foo:my-project:0.0.1-SNAPSHOT Copying the JAR files into the lib folder of grails. Adding compile com.foo:my-project:0.0.1-SNAPSHOT to the dependencies section of BuildConfig.groovy Uncommenting mavenLocal() and passing

Advertisement