Scala-compiler-2.10.0 failed process

Good night everyone,

When run on Tomcat 7 server , a warning appears. I can access my resource ( http: // localhost: 8080 / CountryCode / v1 / E212 / 33) but it shows me a blank page ( knowing I just displays a String) . I wonder if it's not this warning ...

Log

 déc. 31, 2015 8:40:57 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
AVERTISSEMENT: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:CountryCode' did not     find a matching property.
déc. 31, 2015 8:40:57 PM  org.apache.catalina.startup.VersionLoggerListener log
INFOS: Server version: Apache Tomcat/7.0.65
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Server built:          Oct 9 2015 08:36:58 UTC
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Server number:         7.0.65.0
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: OS Name:               Windows 7
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: OS Version:            6.1
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Architecture:          x86
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Java Home:             C:\Program Files\Java\jre7
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: JVM Version:           1.7.0_60-b19
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: JVM Vendor:            Oracle Corporation
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: CATALINA_BASE:             C:\Users\MAJORELLE\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: CATALINA_HOME:         C:\Users\MAJORELLE\Desktop\apache-tomcat-7.0.65
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Command line argument: - Dcatalina.base=C:\Users\MAJORELLE\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Command line argument: -Dcatalina.home=C:\Users\MAJORELLE\Desktop\apache-tomcat-7.0.65
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Command line argument:  -Dwtp.deploy=C:\Users\MAJORELLE\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Command line argument: -Djava.endorsed.dirs=C:\Users\MAJORELLE\Desktop\apache-tomcat-7.0.65\endorsed
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Command line argument: -Dfile.encoding=Cp1252
déc. 31, 2015 8:40:57 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFOS: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program  Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_31/bin/client;C:/Program Files/Java/jre1.8.0_31/bin;C:/Program Files/Java/jre1.8.0_31/lib/i386;C:\Program Files\WinRAR;D:\app\MAJORELLE\product\11.2.0\dbhome_1\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;C:\Users\MAJORELLE\AppData\Local\Smartbar\Application\;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\MiKTeX 2.9\miktex\bin\;C:\Program Files\erl6.2\bin;C:\Program Files\doxygen\bin;C:\Program Files\Skype\Phone\;;C:\Users\MAJORE~1\AppData\Local\Temp\Rar$EX66.272\eclipse;;.
déc. 31, 2015 8:40:57 PM org.apache.coyote.AbstractProtocol init 
INFOS: Initializing ProtocolHandler ["http-bio-8080"]
déc. 31, 2015 8:40:57 PM org.apache.coyote.AbstractProtocol init
INFOS: Initializing ProtocolHandler ["ajp-bio-8009"]
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.Catalina load
INFOS: Initialization processed in 775 ms
déc. 31, 2015 8:40:57 PM org.apache.catalina.core.StandardService startInternal
INFOS: Démarrage du service Catalina
déc. 31, 2015 8:40:57 PM org.apache.catalina.core.StandardEngine startInternal
INFOS: Starting Servlet Engine: Apache Tomcat/7.0.65
déc. 31, 2015 8:40:58 PM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
INFOS: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [276] milliseconds.
déc. 31, 2015 8:40:58 PM org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
INFOS: validateJarFile(C:\Users\MAJORELLE\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\CountryCode\WEB-INF\lib\javax.servlet-api-3.0.1.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
 déc. 31, 2015 8:40:58 PM org.apache.tomcat.util.scan.StandardJarScanner scan

 déc. 31, 2015 8:41:15 PM org.apache.catalina.startup.ContextConfig processResourceJARs
 GRAVE: Failed to processes JAR found at URL [jar:file:/C:/Users/MAJORELLE/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/CountryCode/WEB-INF/lib/scala-compiler-2.10.0.jar!/] for static resources to be included in context with name [jar:file:/C:/Users/MAJORELLE/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/CountryCode/WEB-INF/lib/scala-compiler-2.10.0.jar!/]
déc. 31, 2015 8:41:15 PM org.apache.catalina.startup.TldConfig tldScanJar
AVERTISSEMENT: Failed to process JAR [jar:file:/C:/Users/MAJORELLE/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/CountryCode/WEB-INF/lib/scala-compiler-2.10.0.jar!/] for TLD files
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.<init>(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
at sun.net.www.protocol.jar.JarURLConnection.getJarFile(Unknown Source)
at org.apache.tomcat.util.scan.FileUrlJar.<init>(FileUrlJar.java:41)
at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:34)
at org.apache.catalina.startup.TldConfig.tldScanJar(TldConfig.java:502)
at org.apache.catalina.startup.TldConfig.access$200(TldConfig.java:61)
at  org.apache.catalina.startup.TldConfig$TldJarScannerCallback.scan(TldConfig.java:300)
at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:258)
at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:177)
at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:271)
at org.apache.catalina.startup.TldConfig.lifecycleEvent(TldConfig.java:590)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5405)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:4020)
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:425)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1344)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1545)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1555)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1555)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1523)
at java.lang.Thread.run(Unknown Source)

déc. 31, 2015 8:41:15 PM org.apache.catalina.startup.TldConfig execute
INFOS: 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.
0 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO main.java.CountriesUtil  - 
déc. 31, 2015 8:41:16 PM org.apache.catalina.core.StandardContext reload
INFOS: Le rechargement de ce contexte est terminé
496 [http-bio-8080-exec-4] DEBUG org.jboss.resteasy.core.SynchronousDispatcher  - PathInfo: /e212/33
496 [http-bio-8080-exec-6] DEBUG org.jboss.resteasy.core.SynchronousDispatcher  - PathInfo: /e212/33
512 [http-bio-8080-exec-6] INFO main.java.e212  - start
512 [http-bio-8080-exec-4] INFO main.java.e212  - start
512 [http-bio-8080-exec-4] DEBUG main.java.e212  - Start getSomething
513 [http-bio-8080-exec-4] DEBUG main.java.e212  - data: '33'
512 [http-bio-8080-exec-6] DEBUG main.java.e212  - Start getSomething
513 [http-bio-8080-exec-6] DEBUG main.java.e212  - data: '33'
513 [http-bio-8080-exec-6] INFO main.java.CountriesUtil  - i: 3, number: 2, key: 33
513 [http-bio-8080-exec-6] INFO main.java.CountriesUtil  - i: 2, number: 2, key: 3
513 [http-bio-8080-exec-6] INFO main.java.CountriesUtil  - i: 1, number: 2, key: 
513 [http-bio-8080-exec-4] INFO main.java.CountriesUtil  - i: 3, number: 2, key: 33
513 [http-bio-8080-exec-4] INFO main.java.CountriesUtil  - i: 2, number: 2, key: 3
513 [http-bio-8080-exec-4] INFO main.java.CountriesUtil  - i: 1, number: 2, key:

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<listener>
    <listener-class>main.java.ContextListener</listener-class>
</listener>
<context-param>
    <param-name>resteasy.resources</param-name>
    <param-value>
   main.java.e212
  </param-value>
</context-param>

<listener>
    <listener-class>
        org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
        </listener-class>
</listener>

<servlet-mapping>
    <servlet-name>resteasy-servlet</servlet-name>
    <url-pattern>/v1/*</url-pattern>
</servlet-mapping>

<servlet>
    <servlet-name>resteasy-servlet</servlet-name>
    <servlet-class>
        org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
    </servlet-class>
</servlet>


<!-- this should be the same URL pattern as the servlet-mapping property -->
<context-param>
    <param-name>resteasy.servlet.mapping.prefix</param-name>
    <param-value>/v1</param-value>
</context-param>



<welcome-file-list>
    <welcome-file>index.html</welcome-file>
</welcome-file-list>

pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.javacodegeeks.enterprise.rest.resteasy</groupId>
<artifactId>CountryCode</artifactId>
<version>0.0.1-SNAPSHOT</version>

<repositories>
    <repository>
        <id>JBoss repository</id>
        <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>javassist</groupId>
        <artifactId>javassist</artifactId>
        <version>3.12.1.GA</version>
    </dependency>
    <dependency>
        <groupId>com.wordnik</groupId>
        <artifactId>swagger-jaxrs_2.10</artifactId>
        <version>1.3.12</version>
    </dependency>
    <dependency>
        <groupId>com.wordnik</groupId>
        <artifactId>swagger-annotations</artifactId>
        <version>1.5.3-M1</version>
    </dependency>
    <dependency>
        <groupId>org.jboss.resteasy</groupId>
        <artifactId>resteasy-jackson2-provider</artifactId>
        <version>3.0.1.Final</version>
    </dependency>
    <dependency>
        <groupId>javax.ws.rs</groupId>
        <artifactId>jsr311-api</artifactId>
        <version>1.1.1</version>
    </dependency>
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>javax.servlet-api</artifactId>
        <version>3.0.1</version>
    </dependency>
    <dependency>
        <groupId>org.scala-lang</groupId>
        <artifactId>scala-compiler</artifactId>
        <version>2.10.0</version>
    </dependency>
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
        <version>1.5.8</version>
    </dependency>
    <dependency>
        <groupId>com.googlecode.json-simple</groupId>
        <artifactId>json-simple</artifactId>
        <version>1.1</version>
    </dependency>
    <dependency>
        <groupId>org.jboss.resteasy</groupId>
        <artifactId>resteasy-jaxrs</artifactId>
        <version>3.0.1.Final</version>
    </dependency>
</dependencies>

Thanks a lot and good year.

Scala-compiler-2.10.0 failed process

Good night everyone,

When run on Tomcat 7 server , a warning appears. I can access my resource ( http: // localhost: 8080 / CountryCode / v1 / E212 / 33) but it shows me a blank page ( knowing I just displays a String) . I wonder if it's not this warning ...

Log

 déc. 31, 2015 8:40:57 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
AVERTISSEMENT: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:CountryCode' did not     find a matching property.
déc. 31, 2015 8:40:57 PM  org.apache.catalina.startup.VersionLoggerListener log
INFOS: Server version: Apache Tomcat/7.0.65
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Server built:          Oct 9 2015 08:36:58 UTC
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Server number:         7.0.65.0
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: OS Name:               Windows 7
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: OS Version:            6.1
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Architecture:          x86
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Java Home:             C:\Program Files\Java\jre7
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: JVM Version:           1.7.0_60-b19
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: JVM Vendor:            Oracle Corporation
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: CATALINA_BASE:             C:\Users\MAJORELLE\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: CATALINA_HOME:         C:\Users\MAJORELLE\Desktop\apache-tomcat-7.0.65
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Command line argument: - Dcatalina.base=C:\Users\MAJORELLE\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Command line argument: -Dcatalina.home=C:\Users\MAJORELLE\Desktop\apache-tomcat-7.0.65
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Command line argument:  -Dwtp.deploy=C:\Users\MAJORELLE\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Command line argument: -Djava.endorsed.dirs=C:\Users\MAJORELLE\Desktop\apache-tomcat-7.0.65\endorsed
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Command line argument: -Dfile.encoding=Cp1252
déc. 31, 2015 8:40:57 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFOS: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program  Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_31/bin/client;C:/Program Files/Java/jre1.8.0_31/bin;C:/Program Files/Java/jre1.8.0_31/lib/i386;C:\Program Files\WinRAR;D:\app\MAJORELLE\product\11.2.0\dbhome_1\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;C:\Users\MAJORELLE\AppData\Local\Smartbar\Application\;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\MiKTeX 2.9\miktex\bin\;C:\Program Files\erl6.2\bin;C:\Program Files\doxygen\bin;C:\Program Files\Skype\Phone\;;C:\Users\MAJORE~1\AppData\Local\Temp\Rar$EX66.272\eclipse;;.
déc. 31, 2015 8:40:57 PM org.apache.coyote.AbstractProtocol init 
INFOS: Initializing ProtocolHandler ["http-bio-8080"]
déc. 31, 2015 8:40:57 PM org.apache.coyote.AbstractProtocol init
INFOS: Initializing ProtocolHandler ["ajp-bio-8009"]
déc. 31, 2015 8:40:57 PM org.apache.catalina.startup.Catalina load
INFOS: Initialization processed in 775 ms
déc. 31, 2015 8:40:57 PM org.apache.catalina.core.StandardService startInternal
INFOS: Démarrage du service Catalina
déc. 31, 2015 8:40:57 PM org.apache.catalina.core.StandardEngine startInternal
INFOS: Starting Servlet Engine: Apache Tomcat/7.0.65
déc. 31, 2015 8:40:58 PM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
INFOS: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [276] milliseconds.
déc. 31, 2015 8:40:58 PM org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
INFOS: validateJarFile(C:\Users\MAJORELLE\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\CountryCode\WEB-INF\lib\javax.servlet-api-3.0.1.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
 déc. 31, 2015 8:40:58 PM org.apache.tomcat.util.scan.StandardJarScanner scan

 déc. 31, 2015 8:41:15 PM org.apache.catalina.startup.ContextConfig processResourceJARs
 GRAVE: Failed to processes JAR found at URL [jar:file:/C:/Users/MAJORELLE/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/CountryCode/WEB-INF/lib/scala-compiler-2.10.0.jar!/] for static resources to be included in context with name [jar:file:/C:/Users/MAJORELLE/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/CountryCode/WEB-INF/lib/scala-compiler-2.10.0.jar!/]
déc. 31, 2015 8:41:15 PM org.apache.catalina.startup.TldConfig tldScanJar
AVERTISSEMENT: Failed to process JAR [jar:file:/C:/Users/MAJORELLE/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/CountryCode/WEB-INF/lib/scala-compiler-2.10.0.jar!/] for TLD files
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.<init>(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
at sun.net.www.protocol.jar.JarURLConnection.getJarFile(Unknown Source)
at org.apache.tomcat.util.scan.FileUrlJar.<init>(FileUrlJar.java:41)
at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:34)
at org.apache.catalina.startup.TldConfig.tldScanJar(TldConfig.java:502)
at org.apache.catalina.startup.TldConfig.access$200(TldConfig.java:61)
at  org.apache.catalina.startup.TldConfig$TldJarScannerCallback.scan(TldConfig.java:300)
at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:258)
at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:177)
at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:271)
at org.apache.catalina.startup.TldConfig.lifecycleEvent(TldConfig.java:590)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5405)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:4020)
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:425)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1344)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1545)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1555)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1555)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1523)
at java.lang.Thread.run(Unknown Source)

déc. 31, 2015 8:41:15 PM org.apache.catalina.startup.TldConfig execute
INFOS: 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.
0 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO main.java.CountriesUtil  - 
déc. 31, 2015 8:41:16 PM org.apache.catalina.core.StandardContext reload
INFOS: Le rechargement de ce contexte est terminé
496 [http-bio-8080-exec-4] DEBUG org.jboss.resteasy.core.SynchronousDispatcher  - PathInfo: /e212/33
496 [http-bio-8080-exec-6] DEBUG org.jboss.resteasy.core.SynchronousDispatcher  - PathInfo: /e212/33
512 [http-bio-8080-exec-6] INFO main.java.e212  - start
512 [http-bio-8080-exec-4] INFO main.java.e212  - start
512 [http-bio-8080-exec-4] DEBUG main.java.e212  - Start getSomething
513 [http-bio-8080-exec-4] DEBUG main.java.e212  - data: '33'
512 [http-bio-8080-exec-6] DEBUG main.java.e212  - Start getSomething
513 [http-bio-8080-exec-6] DEBUG main.java.e212  - data: '33'
513 [http-bio-8080-exec-6] INFO main.java.CountriesUtil  - i: 3, number: 2, key: 33
513 [http-bio-8080-exec-6] INFO main.java.CountriesUtil  - i: 2, number: 2, key: 3
513 [http-bio-8080-exec-6] INFO main.java.CountriesUtil  - i: 1, number: 2, key: 
513 [http-bio-8080-exec-4] INFO main.java.CountriesUtil  - i: 3, number: 2, key: 33
513 [http-bio-8080-exec-4] INFO main.java.CountriesUtil  - i: 2, number: 2, key: 3
513 [http-bio-8080-exec-4] INFO main.java.CountriesUtil  - i: 1, number: 2, key:

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<listener>
    <listener-class>main.java.ContextListener</listener-class>
</listener>
<context-param>
    <param-name>resteasy.resources</param-name>
    <param-value>
   main.java.e212
  </param-value>
</context-param>

<listener>
    <listener-class>
        org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
        </listener-class>
</listener>

<servlet-mapping>
    <servlet-name>resteasy-servlet</servlet-name>
    <url-pattern>/v1/*</url-pattern>
</servlet-mapping>

<servlet>
    <servlet-name>resteasy-servlet</servlet-name>
    <servlet-class>
        org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
    </servlet-class>
</servlet>


<!-- this should be the same URL pattern as the servlet-mapping property -->
<context-param>
    <param-name>resteasy.servlet.mapping.prefix</param-name>
    <param-value>/v1</param-value>
</context-param>



<welcome-file-list>
    <welcome-file>index.html</welcome-file>
</welcome-file-list>

pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.javacodegeeks.enterprise.rest.resteasy</groupId>
<artifactId>CountryCode</artifactId>
<version>0.0.1-SNAPSHOT</version>

<repositories>
    <repository>
        <id>JBoss repository</id>
        <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>javassist</groupId>
        <artifactId>javassist</artifactId>
        <version>3.12.1.GA</version>
    </dependency>
    <dependency>
        <groupId>com.wordnik</groupId>
        <artifactId>swagger-jaxrs_2.10</artifactId>
        <version>1.3.12</version>
    </dependency>
    <dependency>
        <groupId>com.wordnik</groupId>
        <artifactId>swagger-annotations</artifactId>
        <version>1.5.3-M1</version>
    </dependency>
    <dependency>
        <groupId>org.jboss.resteasy</groupId>
        <artifactId>resteasy-jackson2-provider</artifactId>
        <version>3.0.1.Final</version>
    </dependency>
    <dependency>
        <groupId>javax.ws.rs</groupId>
        <artifactId>jsr311-api</artifactId>
        <version>1.1.1</version>
    </dependency>
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>javax.servlet-api</artifactId>
        <version>3.0.1</version>
    </dependency>
    <dependency>
        <groupId>org.scala-lang</groupId>
        <artifactId>scala-compiler</artifactId>
        <version>2.10.0</version>
    </dependency>
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
        <version>1.5.8</version>
    </dependency>
    <dependency>
        <groupId>com.googlecode.json-simple</groupId>
        <artifactId>json-simple</artifactId>
        <version>1.1</version>
    </dependency>
    <dependency>
        <groupId>org.jboss.resteasy</groupId>
        <artifactId>resteasy-jaxrs</artifactId>
        <version>3.0.1.Final</version>
    </dependency>
</dependencies>

Thanks a lot and good year.

Enable mod_rewrite Apache 2.4 on Ubuntu 14.04

So I've gone through most of the questions on this topic, but I still seem to having issues. I can't seem to rewrite any URLs using an htaccess.

Details: Using Apache 2.4 and Ubuntu 14.04 I do have mod_rewrite enabled as can be seen by the following two pieces of information:

$: apachectl -M
Loaded Modules:
 ....
 rewrite_module (shared)
 ....
$: ls /etc/apache2/mods-enabled/
.... rewrite.load ....

I tried restarting apache using the following three methods:

$: service apache2 restart
$: apachectl restart
$: apachectl graceful

And nothing is working. In order to test things fully, I added a log level in /etc/apache2/apache2.conf as follows:

LogLevel notice rewrite:trace8

Which if I understand correctly means that almost all information on rewrite should be going to my error logs, BUT I am not getting any log information.

Finally, the rewrite portion in my .htaccess is as follows:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
RewriteRule ^(.*)$ http://www2.%{HTTP_HOST}/$1 [L,R=301]

I put www2 instead of www because for some reason it's already redirecting website.com to www.website.com so I'm wondering if it's the browser that's automatically doing it. Oddly, it also automatically changes website.com/index.php to www.website.com

Is there anything I might be missing that might be causing this? It seems like it's rewriting something (or it's the browser doing something), but when I try and rewrite it to a bad url for it to fail, it doesn't fail and instead goes to the proper url.

Any thoughts?


Edit Forgot to include that, I have the following in my directory:

<Directory />
        Options FollowSymLinks
        AllowOverride None
        Require all denied
</Directory>

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

So I do have AllowOverride set to All for the directory that everything lives in.

Enable mod_rewrite Apache 2.4 on Ubuntu 14.04

So I've gone through most of the questions on this topic, but I still seem to having issues. I can't seem to rewrite any URLs using an htaccess.

Details: Using Apache 2.4 and Ubuntu 14.04 I do have mod_rewrite enabled as can be seen by the following two pieces of information:

$: apachectl -M
Loaded Modules:
 ....
 rewrite_module (shared)
 ....
$: ls /etc/apache2/mods-enabled/
.... rewrite.load ....

I tried restarting apache using the following three methods:

$: service apache2 restart
$: apachectl restart
$: apachectl graceful

And nothing is working. In order to test things fully, I added a log level in /etc/apache2/apache2.conf as follows:

LogLevel notice rewrite:trace8

Which if I understand correctly means that almost all information on rewrite should be going to my error logs, BUT I am not getting any log information.

Finally, the rewrite portion in my .htaccess is as follows:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
RewriteRule ^(.*)$ http://www2.%{HTTP_HOST}/$1 [L,R=301]

I put www2 instead of www because for some reason it's already redirecting website.com to www.website.com so I'm wondering if it's the browser that's automatically doing it. Oddly, it also automatically changes website.com/index.php to www.website.com

Is there anything I might be missing that might be causing this? It seems like it's rewriting something (or it's the browser doing something), but when I try and rewrite it to a bad url for it to fail, it doesn't fail and instead goes to the proper url.

Any thoughts?


Edit Forgot to include that, I have the following in my directory:

<Directory />
        Options FollowSymLinks
        AllowOverride None
        Require all denied
</Directory>

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

So I do have AllowOverride set to All for the directory that everything lives in.

Broken pipe when bootstrapping or repair node

I got 2 node "A" and "B" in two datacenter,

A in DC1, B in DC2.

Replication factor for DC1 = 3, for DC2 = 1.

I try join new node "C" to the DC1 but i got this error message on node "A":

ERROR [STREAM-OUT-/X.X.XX.XXX] 2015-12-31 02:39:05,252 StreamSession.java:524 - [Stream #a74ecdc0-af67-11e5-8429-a94b3a1b0e16] Streaming error occurred
org.apache.cassandra.io.FSReadError: java.io.IOException: Broken pipe
        at org.apache.cassandra.io.util.ChannelProxy.transferTo(ChannelProxy.java:144) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.streaming.compress.CompressedStreamWriter$1.apply(CompressedStreamWriter.java:79) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.streaming.compress.CompressedStreamWriter$1.apply(CompressedStreamWriter.java:76) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.io.util.BufferedDataOutputStreamPlus.applyToChannel(BufferedDataOutputStreamPlus.java:297) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.streaming.compress.CompressedStreamWriter.write(CompressedStreamWriter.java:75) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.streaming.messages.OutgoingFileMessage.serialize(OutgoingFileMessage.java:90) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.streaming.messages.OutgoingFileMessage$1.serialize(OutgoingFileMessage.java:48) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.streaming.messages.OutgoingFileMessage$1.serialize(OutgoingFileMessage.java:40) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.streaming.messages.StreamMessage.serialize(StreamMessage.java:47) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.streaming.ConnectionHandler$OutgoingMessageHandler.sendMessage(ConnectionHandler.java:363) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.streaming.ConnectionHandler$OutgoingMessageHandler.run(ConnectionHandler.java:335) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_65]
Caused by: java.io.IOException: Broken pipe
        at sun.nio.ch.FileChannelImpl.transferTo0(Native Method) ~[na:1.8.0_65]
        at sun.nio.ch.FileChannelImpl.transferToDirectlyInternal(FileChannelImpl.java:427) ~[na:1.8.0_65]
        at sun.nio.ch.FileChannelImpl.transferToDirectly(FileChannelImpl.java:492) ~[na:1.8.0_65]
        at sun.nio.ch.FileChannelImpl.transferTo(FileChannelImpl.java:607) ~[na:1.8.0_65]
        at org.apache.cassandra.io.util.ChannelProxy.transferTo(ChannelProxy.java:140) ~[apache-cassandra-2.2.4.jar:2.2.4]
        ... 11 common frames omitted

I try to run nodetool repair on node A, but i get:

Repair session xxx for range xx xx failed with error Stream failed

[2015-12-31 14:36:12,722] Repair session 75e93060-af4c-11e5-8429-a94b3a1b0e16 for range (-4171974372789419026,-4027636102743839484] failed with error Stream failed (progress: 9%)
[2015-12-31 16:48:26,913] Repair session 75f76130-af4c-11e5-8429-a94b3a1b0e16 for range (-1477833652511894033,-1464467586067376161] finished (progress: 12%)
[2015-12-31 17:19:40,353] Repair session 75f82483-af4c-11e5-8429-a94b3a1b0e16 for range (4136345906437366778,4261334469649078197] failed with error Stream failed (progress: 12%)

and in log the same Broken pipe error occur

I found some information that can be a network problem, i check connection between nodes with mtr, is enough?

Is any possibility to retry repair just on failed range?

Please advice,

HAPPY NEW YEAR!!!

Broken pipe when bootstrapping or repair node

I got 2 node "A" and "B" in two datacenter,

A in DC1, B in DC2.

Replication factor for DC1 = 3, for DC2 = 1.

I try join new node "C" to the DC1 but i got this error message on node "A":

ERROR [STREAM-OUT-/X.X.XX.XXX] 2015-12-31 02:39:05,252 StreamSession.java:524 - [Stream #a74ecdc0-af67-11e5-8429-a94b3a1b0e16] Streaming error occurred
org.apache.cassandra.io.FSReadError: java.io.IOException: Broken pipe
        at org.apache.cassandra.io.util.ChannelProxy.transferTo(ChannelProxy.java:144) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.streaming.compress.CompressedStreamWriter$1.apply(CompressedStreamWriter.java:79) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.streaming.compress.CompressedStreamWriter$1.apply(CompressedStreamWriter.java:76) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.io.util.BufferedDataOutputStreamPlus.applyToChannel(BufferedDataOutputStreamPlus.java:297) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.streaming.compress.CompressedStreamWriter.write(CompressedStreamWriter.java:75) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.streaming.messages.OutgoingFileMessage.serialize(OutgoingFileMessage.java:90) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.streaming.messages.OutgoingFileMessage$1.serialize(OutgoingFileMessage.java:48) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.streaming.messages.OutgoingFileMessage$1.serialize(OutgoingFileMessage.java:40) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.streaming.messages.StreamMessage.serialize(StreamMessage.java:47) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.streaming.ConnectionHandler$OutgoingMessageHandler.sendMessage(ConnectionHandler.java:363) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at org.apache.cassandra.streaming.ConnectionHandler$OutgoingMessageHandler.run(ConnectionHandler.java:335) ~[apache-cassandra-2.2.4.jar:2.2.4]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_65]
Caused by: java.io.IOException: Broken pipe
        at sun.nio.ch.FileChannelImpl.transferTo0(Native Method) ~[na:1.8.0_65]
        at sun.nio.ch.FileChannelImpl.transferToDirectlyInternal(FileChannelImpl.java:427) ~[na:1.8.0_65]
        at sun.nio.ch.FileChannelImpl.transferToDirectly(FileChannelImpl.java:492) ~[na:1.8.0_65]
        at sun.nio.ch.FileChannelImpl.transferTo(FileChannelImpl.java:607) ~[na:1.8.0_65]
        at org.apache.cassandra.io.util.ChannelProxy.transferTo(ChannelProxy.java:140) ~[apache-cassandra-2.2.4.jar:2.2.4]
        ... 11 common frames omitted

I try to run nodetool repair on node A, but i get:

Repair session xxx for range xx xx failed with error Stream failed

[2015-12-31 14:36:12,722] Repair session 75e93060-af4c-11e5-8429-a94b3a1b0e16 for range (-4171974372789419026,-4027636102743839484] failed with error Stream failed (progress: 9%)
[2015-12-31 16:48:26,913] Repair session 75f76130-af4c-11e5-8429-a94b3a1b0e16 for range (-1477833652511894033,-1464467586067376161] finished (progress: 12%)
[2015-12-31 17:19:40,353] Repair session 75f82483-af4c-11e5-8429-a94b3a1b0e16 for range (4136345906437366778,4261334469649078197] failed with error Stream failed (progress: 12%)

and in log the same Broken pipe error occur

I found some information that can be a network problem, i check connection between nodes with mtr, is enough?

Is any possibility to retry repair just on failed range?

Please advice,

HAPPY NEW YEAR!!!

PHP: difference between getenv() and apache_getenv()

I'm using an Apache 2 server and hosting a web app there. I'm setting some environment variables in my vhost by using the Apache SetEnv VARIABLE value command.

When looking to retrieve the value in PHP, I've some across two methods. getenv() and apache_getenv().

Is there any real difference? Is there a reason to prefer one over the other? Not sure what the point of have the apache_getenv() method is if getenv() works the same and allows your code to be server agnostic.

Cannot deploy to laravel with ww-data:ww-data

I have a deploy task as such:

@task('deploy', ['on' => 'web'])
    cd personal_site
    git pull origin master
    composer update
    php artisan migrate
@endtask

Super basic and super simple. The personal_site is set up to be:

drwxrwxr-x 3 www-data www-data 4.0K Dec 31 16:51 personal_site

its the only way the site will work. For security and example sake the user who logs in and does these commands is bob.

If I set the directory to:

drwxrwxr-x 3 bob bob 4.0K Dec 31 16:51 personal_site

Then the site fails to load because of permissions. This all boils down to permissions.

So how do I deploy and still have the site continue to be served? Can I do something like www-data:bob or bob:www-data ?? So that bob can still deploy but the site is still served?

CentOS Apache .htaccess: Options not allowed here (500 – Internal Server Error)

I am installing Apache in CentOS 7 and this is my httpd.conf - http://pastebin.com/raw/YeiLn7GN

This is my document root: /home/host/public_html

To test if .htaccess file works & if mod_rewrite is enabled, I've uploaded the sample .htaccess from a laravel project into /home/host/public_html/.htaccess, which has the following contents:

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

I then uploaded the following php script: /home/host/public_html/index.php

<?php echo '<pre>'; print_r($_SERVER); ?>

When I visit http://<my-server-ip>/index.php, I get the following error:

500 Internal Server Error

I got found the following in /var/log/httpd/apache_error_log file:

[Thu Dec 31 15:50:43.696465 2015] [core:alert] [pid 23807] [client xxx.xxx.xxx.xxx:56536] /home/host/public_html/.htaccess: Options not allowed here

If I remove the following lines from the .htaccess file:

<IfModule mod_negotiation.c>
    Options -MultiViews
</IfModule>

The script appears to load and no 500 error.

Any ideas what might be wrong?

Laravel routes not working on production

My .htaccess

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

For my subdomain my virtual configuration:

<VirtualHost *:80>

    ServerAdmin [email protected]
    ServerName  blog.adambalan.com
    ServerAlias blog
        DocumentRoot /var/www/adambalan.com/

        <Directory /var/www/adambalan.com/>
         Options Indexes FollowSymLinks MultiViews
         AllowOverride All
         Order allow,deny
         Allow from all
        </Directory>        

    ErrorLog ${APACHE_LOG_DIR}/error_blog_adambalan_com.log
    CustomLog ${APACHE_LOG_DIR}/access_blog_adambalan_com.log combined
</VirtualHost>

My main site virtual host file

<VirtualHost *:80>

    ServerAdmin [email protected]
    ServerName adambalan.com
    DocumentRoot /var/www/adambalan.com/


        <Directory /var/www/adambalan.com/>
          Options Indexes FollowSymLinks MultiViews
          AllowOverride All
          Order allow,deny
          Allow from all
        </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error_adambalan_com.log
    CustomLog ${APACHE_LOG_DIR}/access_adambalan_com.log combined

</VirtualHost>

So as you can see I have my main site and my "blog" site all going to the same directory. Why do I get:

Not Found

The requested URL /blogs was not found on this server.

Apache/2.4.12 (Ubuntu) Server at blog.adambalan.com Port 80

When I try and go to any route thats not the index?