Jetty environment variables


(vivek prasad) #1

How to define the jetty environment variable in build.gradle to configure jetty for my project


(vivek prasad) #2

AnyBody please reply


(René Groeschke) #3

the jetty plugin does not fork the jvm so you have to define your environment variables used in your jetty app either in the environment where you run gradle from or define them in the gradle start scripts.

cheers, René


(vivek prasad) #4

Hi Rene , I am getting

an error of

java.lang.NoClassDefFoundError: javax/transaction/UserTransaction

when i run my application on jetty .

However , there is no issue while compiling the codes .

how should i define the class defination for jetty . I know the jar where the class exists.


(vivek prasad) #5

Any body please reply

I am unable to run my project on jetty server

I have added

webAppDirName = ‘WebContent’

all my Jsp files are in the WebContent folder but my jetty server is unable to run them . The error message i am getting is

java.lang.NoClassDefFoundError: javax/transaction/UserTransaction

Please help