Your upstart says ...

JAVA="/usr/lib/jvm/java-1.7.0-oracle/bin/java"

However, Jetty is actually running with ...

 java.home = /usr/lib/jvm/jdk1.7.0_45/jre

You are using the JRE, even though you think you are using the oracle JVM.
You might want to use update-alternatives to ensure you are using the
openjdk / jdk version of java-1.7.0-oracle
In most installations of Ubuntu i've seen /usr/lib/jvm/java-1.7.0-oracle is
a symlink to an actual installation managed by the alternatives system.

Take look at the following ...

$ ls -la /usr/lib/jvm

$ update-alternatives --list

$ sudo update-alternatives --config java

Also, make sure your upstart configures JAVA_HOME and puts your selection
of java first on the path (aka PATH=$JAVA_HOME/bin:$PATH)



--
Joakim Erdfelt <[email protected]>
webtide.com <http://www.webtide.com/> - intalio.com/jetty
Expert advice, services and support from from the Jetty & CometD experts
eclipse.org/jetty - cometd.org


On Fri, Feb 14, 2014 at 1:41 AM, Andrea Cappelli <[email protected]>wrote:

> Il 14/02/2014 00:38, Joakim Erdfelt ha scritto:
>
>  Also note that default installation of Java on most distributions is to
>> use the JRE as your JAVA_HOME.
>>
>
> That's my case, as showed in the previous mail
>
>
> Java Environment:
> -----------------
>  java.home = /usr/lib/jvm/jdk1.7.0_45/jre
>  java.vm.vendor = Oracle Corporation
>  java.vm.version = 24.45-b08
>  java.vm.name = Java HotSpot(TM) 64-Bit Server VM
>  java.vm.info = mixed mode
>  java.runtime.name = Java(TM) SE Runtime Environment
>  java.runtime.version = 1.7.0_45-b18
>  java.io.tmpdir = /tmp
>
>
>  If you opt to not use the internal compiler,
>>
>
> My problem is that I tried to use the internalcompiler, but for some
> reason (taht I don't know :) ) it doesn't works
>
> I follow instructions here
>
> http://www.eclipse.org/jetty/documentation/current/configuring-jsp.html#
> compiling-jsps
>
> but without success
>
> The solution was to add tools.jar (from jdk) to the classpath as you
> pointed out
>
> I also try to change the JAVA_HOME to point to JDK, but I did something
> wrong in the Upstart script, because it doesn't change, so I changed the
> classpath to include the jar
>
>
> --
> Andrea Cappelli
>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to