2014-09-16 12:19 GMT+02:00 Jan Bartel <[email protected]>:
> 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
> difference.
>
Hi Jan,
thanks for your reply
I tried adding --module=annotations in start.ini, and reloaded the jetty
instance, but the error is the same
Following the new configuration
Jetty All Available Modules:
----------------------------
* Module: annotations
Depend: plus
LIB: lib/jetty-annotations-${jetty.version}.jar
LIB: lib/annotations/*.jar
XML: etc/jetty-annotations.xml
Enabled: <via> /var/jolie/webreserv/jetty-instances-enabled/jft/start.ini
- Module: client
LIB: lib/jetty-client-${jetty.version}.jar
Enabled: <not enabled in this configuration>
- Module: continuation
LIB: lib/jetty-continuation-${jetty.version}.jar
Enabled: <not enabled in this configuration>
- Module: debug
Depend: server
XML: etc/jetty-debug.xml
Enabled: <not enabled in this configuration>
* Module: deploy
Depend: webapp
LIB: lib/jetty-deploy-${jetty.version}.jar
XML: etc/jetty-deploy.xml
Enabled: <via> /var/jolie/webreserv/jetty-instances-enabled/jft/start.ini
- Module: ext
LIB: lib/ext/**.jar
Enabled: <not enabled in this configuration>
- Module: fcgi
Depend: client
Depend: servlet
LIB: lib/jetty-proxy-${jetty.version}.jar
LIB: lib/fcgi/*.jar
Enabled: <not enabled in this configuration>
* Module: http
Depend: server
XML: etc/jetty-http.xml
Enabled: <via> /var/jolie/webreserv/jetty-instances-enabled/jft/start.ini
- Module: https
Depend: ssl
XML: etc/jetty-https.xml
Enabled: <not enabled in this configuration>
- Module: ipaccess
Depend: server
XML: etc/jetty-ipaccess.xml
Enabled: <not enabled in this configuration>
- Module: jaas
Depend: server
LIB: lib/jetty-jaas-${jetty.version}.jar
XML: etc/jetty-jaas.xml
Enabled: <not enabled in this configuration>
- Module: jaspi
Depend: security
LIB: lib/jetty-jaspi-${jetty.version}.jar
LIB: lib/jaspi/*.jar
Enabled: <not enabled in this configuration>
- Module: jmx
Depend: server
LIB: lib/jetty-jmx-${jetty.version}.jar
XML: etc/jetty-jmx.xml
Enabled: <not enabled in this configuration>
- Module: jmx-remote
Depend: jmx
XML: etc/jetty-jmx-remote.xml
Enabled: <not enabled in this configuration>
+ Module: jndi
Depend: server
LIB: lib/jetty-jndi-${jetty.version}.jar
LIB: lib/jndi/*.jar
Enabled: <via transitive reference>
* Module: jsp
Depend: jsp-impl
Depend: servlet
Enabled: <via> /var/jolie/webreserv/jetty-instances-enabled/jft/start.ini
+ Module: jsp-impl
Ref: jsp-impl/apache-jsp
LIB: lib/apache-jsp/*.jar
Enabled: <via transitive reference>
- Module: jstl-impl
Ref: jsp-impl/apache-jstl
LIB: lib/apache-jstl/*.jar
Enabled: <not enabled in this configuration>
- Module: jstl
Depend: jsp
Depend: jstl-impl
Enabled: <not enabled in this configuration>
- Module: jvm
Enabled: <not enabled in this configuration>
- Module: logging
LIB: lib/logging/**.jar
LIB: resources/
XML: etc/jetty-logging.xml
Enabled: <not enabled in this configuration>
- Module: lowresources
Depend: server
XML: etc/jetty-lowresources.xml
Enabled: <not enabled in this configuration>
- Module: monitor
Depend: client
Depend: server
LIB: lib/monitor/jetty-monitor-${jetty.version}.jar
XML: etc/jetty-monitor.xml
Enabled: <not enabled in this configuration>
+ Module: plus
Depend: webapp
Depend: server
Depend: security
Depend: jndi
LIB: lib/jetty-plus-${jetty.version}.jar
XML: etc/jetty-plus.xml
Enabled: <via transitive reference>
- Module: protonego
Depend: protonego-impl/${protonego}
Enabled: <not enabled in this configuration>
- Module: proxy
Depend: client
Depend: servlet
LIB: lib/jetty-proxy-${jetty.version}.jar
XML: etc/jetty-proxy.xml
Enabled: <not enabled in this configuration>
- Module: quickstart
Depend: plus
Depend: server
Depend: annotations
LIB: lib/jetty-quickstart-${jetty.version}.jar
Enabled: <not enabled in this configuration>
- Module: requestlog
Depend: server
XML: etc/jetty-requestlog.xml
Enabled: <not enabled in this configuration>
- Module: resources
LIB: resources/
Enabled: <not enabled in this configuration>
- Module: rewrite
Depend: server
LIB: lib/jetty-rewrite-${jetty.version}.jar
XML: etc/jetty-rewrite.xml
Enabled: <not enabled in this configuration>
+ Module: security
Depend: server
LIB: lib/jetty-security-${jetty.version}.jar
Enabled: <via transitive reference>
* Module: server
LIB: lib/servlet-api-3.1.jar
LIB: lib/jetty-schemas-3.1.jar
LIB: lib/jetty-http-${jetty.version}.jar
LIB: lib/jetty-server-${jetty.version}.jar
LIB: lib/jetty-xml-${jetty.version}.jar
LIB: lib/jetty-util-${jetty.version}.jar
LIB: lib/jetty-io-${jetty.version}.jar
XML: etc/jetty.xml
Enabled: <via> /var/jolie/webreserv/jetty-instances-enabled/jft/start.ini
+ Module: servlet
Depend: server
LIB: lib/jetty-servlet-${jetty.version}.jar
Enabled: <via transitive reference>
- Module: servlets
Depend: servlet
LIB: lib/jetty-servlets-${jetty.version}.jar
Enabled: <not enabled in this configuration>
- Module: setuid
Depend: server
LIB: lib/setuid/jetty-setuid-java-1.0.1.jar
XML: etc/jetty-setuid.xml
Enabled: <not enabled in this configuration>
- Module: spdy
Depend: protonego
Depend: ssl
LIB: lib/spdy/*.jar
XML: etc/jetty-ssl.xml
XML: etc/jetty-spdy.xml
Enabled: <not enabled in this configuration>
- Module: ssl
Depend: server
XML: etc/jetty-ssl.xml
Enabled: <not enabled in this configuration>
- Module: stats
Depend: server
XML: etc/jetty-stats.xml
Enabled: <not enabled in this configuration>
+ Module: webapp
Depend: security
Depend: servlet
LIB: lib/jetty-webapp-${jetty.version}.jar
Enabled: <via transitive reference>
- Module: websocket
Depend: annotations
LIB: lib/websocket/*.jar
Enabled: <not enabled in this configuration>
- Module: xinetd
Depend: server
XML: etc/jetty-xinetd.xml
Enabled: <not enabled in this configuration>
Jetty Active Module Tree:
-------------------------
+ Module: jsp-impl [transitive]
+ Module: server [enabled]
+ Module: http [enabled]
+ Module: jndi [transitive]
+ Module: security [transitive]
+ Module: servlet [transitive]
+ Module: jsp [enabled]
+ Module: webapp [transitive]
+ Module: deploy [enabled]
+ Module: plus [transitive]
+ Module: annotations [enabled]
Java Environment:
-----------------
java.home = /var/jdk1.7.0_51/jre
java.vm.vendor = Oracle Corporation
java.vm.version = 24.51-b03
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_51-b13
java.io.tmpdir = /var/tmp
user.dir = /var/jolie/logs
user.language = it
user.country = IT
Jetty Environment:
-----------------
jetty.version = 9.2.1.v20140609
jetty.home = /var/jetty_9.2.1
jetty.base = /var/www/myapp
Config Search Order:
--------------------
<command-line>
${jetty.base} -> /var/www/myapp
${jetty.home} -> /var/jetty_9.2.1
JVM Arguments:
--------------
(no jvm args specified)
System Properties:
------------------
(no system properties specified)
Properties:
-----------
http.timeout = 15000
jetty.deploy.monitoredDirName = /var/www
jetty.dump.start = false
jetty.dump.stop = false
jetty.port = 8099
jsp-impl = apache
threads.max = 100
threads.min = 10
threads.timeout = 20000
Jetty Server Classpath:
-----------------------
Version Information on 24 entries in the classpath.
Note: order presented here is how they would appear on the classpath.
changes to the --module=name command line options will be reflected
here.
0: 2.3.1 |
${jetty.home}/lib/apache-jsp/javax.servlet.jsp.javax.servlet.jsp-api-2.3.1.jar
1: 9.2.1.v20140609 |
${jetty.home}/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.2.1.v20140609.jar
2: 3.8.2.v20130121-145325 |
${jetty.home}/lib/apache-jsp/org.eclipse.jetty.orbit.org.eclipse.jdt.core-3.8.2.v20130121.jar
3: 8.0.3.v20140313 |
${jetty.home}/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.3.v20140313.jar
4: 2.3 |
${jetty.home}/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.3.v20140313.jar
5: 3.1.0 | ${jetty.home}/lib/servlet-api-3.1.jar
6: 3.1.0.M0 | ${jetty.home}/lib/jetty-schemas-3.1.jar
7: 9.2.1.v20140609 |
${jetty.home}/lib/jetty-http-9.2.1.v20140609.jar
8: 9.2.1.v20140609 |
${jetty.home}/lib/jetty-server-9.2.1.v20140609.jar
9: 9.2.1.v20140609 |
${jetty.home}/lib/jetty-xml-9.2.1.v20140609.jar
10: 9.2.1.v20140609 |
${jetty.home}/lib/jetty-util-9.2.1.v20140609.jar
11: 9.2.1.v20140609 |
${jetty.home}/lib/jetty-io-9.2.1.v20140609.jar
12: 9.2.1.v20140609 |
${jetty.home}/lib/jetty-jndi-9.2.1.v20140609.jar
13: 1.4.1.v201005082020 |
${jetty.home}/lib/jndi/javax.mail.glassfish-1.4.1.v201005082020.jar
14: 1.2 |
${jetty.home}/lib/jndi/javax.transaction-api-1.2.jar
15: 9.2.1.v20140609 |
${jetty.home}/lib/jetty-security-9.2.1.v20140609.jar
16: 9.2.1.v20140609 |
${jetty.home}/lib/jetty-servlet-9.2.1.v20140609.jar
17: 9.2.1.v20140609 |
${jetty.home}/lib/jetty-webapp-9.2.1.v20140609.jar
18: 9.2.1.v20140609 |
${jetty.home}/lib/jetty-deploy-9.2.1.v20140609.jar
19: 9.2.1.v20140609 |
${jetty.home}/lib/jetty-plus-9.2.1.v20140609.jar
20: 9.2.1.v20140609 |
${jetty.home}/lib/jetty-annotations-9.2.1.v20140609.jar
21: 5.0.1 | ${jetty.home}/lib/annotations/asm-5.0.1.jar
22: 5.0.1 |
${jetty.home}/lib/annotations/asm-commons-5.0.1.jar
23: 1.2 |
${jetty.home}/lib/annotations/javax.annotation-api-1.2.jar
Jetty Active XMLs:
------------------
${jetty.home}/etc/jetty.xml
${jetty.home}/etc/jetty-http.xml
${jetty.home}/etc/jetty-deploy.xml
${jetty.home}/etc/jetty-plus.xml
${jetty.home}/etc/jetty-annotations.xml
I can notice that the variabile java.home (which I didn't set, so there is
setted inside jetty) point to
java.home = /var/jdk1.7.0_51/jre
which is the jre, not the JDK (as the error suggest)
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
If I try to add -Djava.home=/var/jdk1.7.0_51 jetty doens't start saying
java.lang.InternalError
at java.util.Currency$1.run(Currency.java:224)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.Currency.<clinit>(Currency.java:192)
at java.text.DecimalFormatSymbols.initialize(DecimalFormatSymbols.java:566)
at java.text.DecimalFormatSymbols.<init>(DecimalFormatSymbols.java:94)
at java.text.DecimalFormatSymbols.getInstance(DecimalFormatSymbols.java:157)
at java.util.Formatter.getZero(Formatter.java:2251)
at java.util.Formatter.<init>(Formatter.java:1877)
at java.util.Formatter.<init>(Formatter.java:1898)
at java.lang.String.format(String.java:2797)
at org.eclipse.jetty.start.BaseHome.toShortForm(BaseHome.java:446)
at org.eclipse.jetty.start.Modules.registerModule(Modules.java:443)
at org.eclipse.jetty.start.Modules.registerAll(Modules.java:397)
at org.eclipse.jetty.start.Main.processCommandLine(Main.java:578)
at org.eclipse.jetty.start.Main.main(Main.java:107)
Caused by: java.io.FileNotFoundException:
/var/jdk1.7.0_51/lib/currency.data (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:146)
at java.io.FileInputStream.<init>(FileInputStream.java:101)
at java.util.Currency$1.run(Currency.java:198)
... 14 more
So I suppose this is not the right way.....
Maybe I'm using the wrong java runtime? I download it from oracle website,
Java SE jdk
Thanks
--
Andrea Cappelli
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users