Starting openfire in dev-mode (openfire-dev.bat/sh). Error in console

Good morning:

I want to use development mode to start openfire in unix.

I have copied the classpaths, etc of openfire-dev.bat to openfire-dev.sh.

Openfire starts correctly, everything works fine, BUT the administration console doesn’t work.

The sript starts openfire this way:


exec /usr/lib/jvm/java-6-sun/bin/java -DdevelopmentMode=true -Dgateway.classes=/usr/local/src/openfire/work/plugins-dev/gateway/target/class es -server -DopenfireHome=/usr/local/openfire -Dopenfire.lib.dir=/usr/local/openfire/lib -classpath /usr/local/openfire/lib/startup.jar:/usr/lib/jvm/java-6-sun/lib/tools.jar:/usr/ local/src/openfire/build/lib/ant.jar:/usr/local/src/openfire/build/lib/ant-contr ib.jar:/usr/local/openfire/lib/activation.jar:/usr/local/openfire/lib/bouncycast le.jar:/usr/local/openfire/lib/commons-el.jar:/usr/local/openfire/lib/hsqldb.jar :/usr/local/openfire/lib/jasper-compiler.jar:/usr/local/openfire/lib/jasper-runt ime.jar:/usr/local/openfire/lib/jtds.jar:/usr/local/openfire/lib/mail.jar:/usr/l ocal/openfire/lib/mysql.jar:/usr/local/openfire/lib/postgres.jar:/usr/local/open fire/lib/servlet.jar:/usr/local/openfire/lib/startup.jar:/usr/local/openfire/lib /openfire.jar -jar /usr/local/openfire/lib/startup.jar


Openfire 3.3.2

Using development mode

Admin console listening at:

http://host:9090

https://host:9091

Plugin gateway is running in development mode.

When i try to log into http://host:9090 the following page appears:


HTTP ERROR 500

Unable to compile class for JSP

Generated servlet error: /tmp/Jetty_0_0_0_0_9090_web____-sqxj4x/jsp/org/apache/jsp/index_jsp.java:3: package javax.servlet does not exist import javax.servlet.*; ^ Generated servlet error: /tmp/Jetty_0_0_0_0_9090_web____-sqxj4x/jsp/org/apache/jsp/index_jsp.java:4: package javax.servlet.http does not exist import javax.servlet.http.*;

And in the error logs, it says:


2007.09.12 11:30:00 [org.jivesoftware.util.log.util.CommonsLogFactory2007.09.12 11:30:00 --org.jivesoftware.util.log.util.CommonsLogFactory$1.error(CommonsLogFactory.java:87)-- Env: Compile: javaFileName=/tmp/Jetty_0_0 _0_0_9090_web____-sqxj4x/jsp//org/apache/jsp/index_jsp.java     classpath=/home/gvillate/code/workspace/openfire_src/src/web/WEB-INF/classes/:/home/gvillate/code/workspace/openfire_src/src/web/WEB-INF/lib/dw r.jar:/tmp/Jetty_0_0_0_0_9090_web____-sqxj4x/jsp:null     cp=/usr/local/openfire/lib/startup.jar     cp=/home/gvillate/code/workspace/openfire_src/src/web/WEB-INF/classes     cp=/home/gvillate/code/workspace/openfire_src/src/web/WEB-INF/lib/dwr.jar     cp=/tmp/Jetty_0_0_0_0_9090_web____-sqxj4x/jsp     cp=null     work dir=/tmp/Jetty_0_0_0_0_9090_web____-sqxj4x/jsp     extension dir=/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/ext:/usr/java/packages/lib/ext     srcDir=/tmp/Jetty_0_0_0_0_9090_web____-sqxj4x/jsp    compilerTargetVM=1.5    compilerSourceVM=1.5     include=org/apache/jsp/index_jsp.java 2007.09.12 11:30:00 --org.jivesoftware.util.log.util.CommonsLogFactory$1.error(CommonsLogFactory.java:87)-- Error compiling file: /tmp/Jetty_0_0_0_0_ 9090_web____-sqxj4x/jsp//org/apache/jsp/index_jsp.java     [javac] Compiling 1 source file /tmp/Jetty_0_0_0_0_9090_web____-sqxj4x/jsp/org/apache/jsp/index_jsp.java:3: package javax.servlet does not exist import javax.servlet.*; .error(CommonsLogFactory.java:87)] Env: Compile: javaFileName=/tmp/Jetty_0_0 _0_0_9090_web____-sqxj4x/jsp//org/apache/jsp/index_jsp.java     classpath=/home/gvillate/code/workspace/openfire_src/src/web/WEB-INF/classes/:/home/gvillate/code/workspace/openfire_src/src/web/WEB-INF/lib/dw r.jar:/tmp/Jetty_0_0_0_0_9090_web____-sqxj4x/jsp:null     cp=/usr/local/openfire/lib/startup.jar     cp=/home/gvillate/code/workspace/openfire_src/src/web/WEB-INF/classes     cp=/home/gvillate/code/workspace/openfire_src/src/web/WEB-INF/lib/dwr.jar     cp=/tmp/Jetty_0_0_0_0_9090_web____-sqxj4x/jsp     cp=null     work dir=/tmp/Jetty_0_0_0_0_9090_web____-sqxj4x/jsp     extension dir=/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/ext:/usr/java/packages/lib/ext     srcDir=/tmp/Jetty_0_0_0_0_9090_web____-sqxj4x/jsp    compilerTargetVM=1.5    compilerSourceVM=1.5     include=org/apache/jsp/index_jsp.java 2007.09.12 11:30:00 [org.jivesoftware.util.log.util.CommonsLogFactory2007.09.12 11:30:00 --org.jivesoftware.util.log.util.CommonsLogFactory$1.error(CommonsLogFactory.java:87)-- Env: Compile: javaFileName=/tmp/Jetty_0_0 _0_0_9090_web____-sqxj4x/jsp//org/apache/jsp/index_jsp.java     classpath=/home/gvillate/code/workspace/openfire_src/src/web/WEB-INF/classes/:/home/gvillate/code/workspace/openfire_src/src/web/WEB-INF/lib/dw r.jar:/tmp/Jetty_0_0_0_0_9090_web____-sqxj4x/jsp:null     cp=/usr/local/openfire/lib/startup.jar     cp=/home/gvillate/code/workspace/openfire_src/src/web/WEB-INF/classes     cp=/home/gvillate/code/workspace/openfire_src/src/web/WEB-INF/lib/dwr.jar     cp=/tmp/Jetty_0_0_0_0_9090_web____-sqxj4x/jsp     cp=null     work dir=/tmp/Jetty_0_0_0_0_9090_web____-sqxj4x/jsp     extension dir=/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/ext:/usr/java/packages/lib/ext     srcDir=/tmp/Jetty_0_0_0_0_9090_web____-sqxj4x/jsp    compilerTargetVM=1.5    compilerSourceVM=1.5     include=org/apache/jsp/index_jsp.java 2007.09.12 11:30:00 --org.jivesoftware.util.log.util.CommonsLogFactory$1.error(CommonsLogFactory.java:87)-- Error compiling file: /tmp/Jetty_0_0_0_0_ 9090_web____-sqxj4x/jsp//org/apache/jsp/index_jsp.java     [javac] Compiling 1 source file /tmp/Jetty_0_0_0_0_9090_web____-sqxj4x/jsp/org/apache/jsp/index_jsp.java:3: package javax.servlet does not exist import javax.servlet.*; .error(CommonsLogFactory.java:87)] Error compiling file: /tmp/Jetty_0_0_0_0_ 9090_web____-sqxj4x/jsp//org/apache/jsp/index_jsp.java     [javac] Compiling 1 source file /tmp/Jetty_0_0_0_0_9090_web____-sqxj4x/jsp/org/apache/jsp/index_jsp.java:3: package javax.servlet does not exist import javax.servlet.*;

It looks like the compile-on-demand of admin pages is not taking the correct classpath.

Does anyone have an idea of where to try to fix it? I just need a little clue, and i will try to fix it.

Thanks!!