NoClassDefFoundError: org/apache/commons/lang3/StringUtils

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 that’s part of version 3, and commons-lang3-3.1-sources.jar contains the source code, not the byte code. You need to include commons-lang3-3.1.jar instead.

How to use the setEnv variable in apache?

SetEnv sets a particular variable to some value, so you need something like SetEnv varname varvalue If this is for a specific virtual host, and you have access to the Apache configuration files, this would go inside the <VirtualHost> directive for that virtual host. If you don’t have control of the config files, you’ll need … Read more

Access virtual host from another machine over LAN

In addition to danp’s answer, you can access the virtual host without having to change the client machine’s etc/hosts file by assigning a port to the virtual host. This is ideal if you want to access the server with a mobile or tablet device: Edit server’s httpd.conf file at: \wamp\bin\apache\apache2.2.x\conf\httpd.conf Search for “Listen” (around line … Read more

How to generate fields of type String instead of CharSequence using Avro?

If you want all you string fields be instances of java.lang.String then you only have to configure the compiler: java -jar /path/to/avro-tools-1.7.7.jar compile -string schema or if you are using the Maven plugin <plugin> <groupId>org.apache.avro</groupId> <artifactId>avro-maven-plugin</artifactId> <version>1.7.7</version> <configuration> <stringType>String</stringType> </configuration> […] </plugin> If you want one specific field to be of type java.lang.String then… you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)