Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty 9.2.1 and JSP

You'll want to fix your environment (as in your OS environment) before you attempt to start / run java.

 1) get rid of the --lib and -Djava.home hacks, those are both improper.
 2) set the following in your environment.

    $ export JAVA_HOME=/var/jdk1.7.0_51
    $ export PATH=$JAVA_HOME/bin:$PATH

 3) now start jetty normally.

   $ cd /var/jwww/myapp
   $ java -jar /var/jetty_9.2.1/start.jar

Note: the setting of your environment AND the execution of jetty should be in the same process.

You seem to be using a manually installed java, so you'll want to make sure these steps all occur together for your upstart scenario.
Either that, or use the java packaged by ubuntu and update-alternatives to set the java default that you want to use.

Joakim Erdfelt <joakim@xxxxxxxxxxx>
Expert advice, services and support from from the Jetty & CometD experts

On Tue, Sep 16, 2014 at 5:54 AM, Andrea Cappelli <a.cappelli@xxxxxxxxx> wrote:

2014-09-16 14:16 GMT+02:00 Andrea Cappelli <a.cappelli@xxxxxxxxx>:

2014-09-16 12:19 GMT+02:00 Jan Bartel <janb@xxxxxxxxxxx>:
Hi Andrea,

I haven't seen that particular error before, however in order to
really properly initialize the apache jsp engine, you need to enable
the annotations module.  Try doing that and see if it makes a

Hi Jan,
thanks for your reply

I made some other test and seems that adding

--lib=/var//jdk1.7.0_51/lib/tools.jar to classpath solve the problem.....

Any idea?
Andrea Cappelli

jetty-users mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top