Re: problems with hot redeployment under jetty6 (maven2)
Hi Jan, Jan Bartel schrieb: > Burkhard, > > First, as someone else mentioned, please post this on the > [EMAIL PROTECTED] Because of the statement "jetty6 will not hot-deploy webapps after it has started. You must stop and then restart jetty6 to pick up the new webapp. If you are interested in using hot-deployment, take a look at the jetty6 maven2 plugin" on http://docs.codehaus.org/display/JETTY/Running I thought that this place would be the right one - but ok, I'll post this mail on [EMAIL PROTECTED] too... > However, while we're all here ;-) > What is going on inside the login jsp? Oh, nothing special. In the meantime I was able to create a very small web application producing the same exception when redeployed. > Looks like some instance of a > class that is loaded by the webapp class loader is being set on > a class that is loaded from the system classpath. This would mean > that the class that is loaded via the system classpath never changes > with a webapp reload, but the class from your webapp > will change with every restart (because the classloader is > different, so you'll get ClassCast exceptions). > > regards > Jan Yes, I think, that's the problem. But I suppose that it only occurs when using jakartas standard tag library 1.1 implementation under jetty6 - so here's my mini-webapp: [EMAIL PROTECTED]:~/tmp/my-webapp$ tree . |-- pom.xml `-- src `-- main |-- java | `-- test | `-- MyBean.java |-- resources `-- webapp |-- WEB-INF | |-- c.tld | `-- web.xml `-- index.jsp I'm not sure if it's possible to use attachments in this mailing list - but I'll give it a try - attached my-webapp.tar.gz... ;-) [EMAIL PROTECTED]:~/tmp/my-webapp$ mvn clean compile jetty6:run works fine - http://localhost:8080/my-webapp/index.jsp produces the output "Hello World! test". After changing and compiling MyBean.java the mini-webapp get's redeployed and (when surfed to) produces the following exception Caused by: javax.el.ELException: java.lang.IllegalArgumentException: object is not an instance of declaring class at javax.el.BeanELResolver.getValue(BeanELResolver.java:68) at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:51) at org.apache.el.parser.AstValue.getValue(AstValue.java:97) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:185) at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:944) at org.apache.jsp.index_jsp._jspx_meth_c_out_0(index_jsp.java:99) at org.apache.jsp.index_jsp._jspService(index_jsp.java:72) By the way: Repeatedly hot deployment of the war file produced by "mvn clean compile war:war" under tomcat (5.5.12) is absolutely trouble-free. But of course - a working jetty6-plugin would be much more comfortable! ;-) Regards Burkhard > Burkhard Graves wrote: >> Hi folks, >> >> I'm using the maven-jetty6-plugin (6.0.0beta14), usual Maven defaults. >> >> "mvn jetty6:run" works fine, but if my webapp is redeployed (due to some >> compiler run) I get the following exception(s): [...] >> Caused by: javax.el.ELException: java.lang.IllegalArgumentException: >> [EMAIL PROTECTED] >> at javax.el.BeanELResolver.getValue(BeanELResolver.java:68) >> at >> javax.el.CompositeELResolver.getValue(CompositeELResolver.java:51) >> at org.apache.el.parser.AstValue.getValue(AstValue.java:97) >> at >> org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:185) >> at >> org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:944) >> >> at >> org.apache.jsp.pages.login_jsp._jspx_meth_c_out_0(login_jsp.java:247) >> at org.apache.jsp.pages.login_jsp._jspService(login_jsp.java:117) >> at >> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) [...] my-webapp.tar.gz Description: application/gzip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with hot redeployment under jetty6 (maven2)
Burkhard, First, as someone else mentioned, please post this on the [EMAIL PROTECTED] However, while we're all here What is going on inside the login jsp? Looks like some instance of a class that is loaded by the webapp class loader is being set on a class that is loaded from the system classpath. This would mean that the class that is loaded via the system classpath never changes with a webapp reload, but the class from your webapp will change with every restart (because the classloader is different, so you'll get ClassCast exceptions). regards Jan Burkhard Graves wrote: Hi folks, I'm using the maven-jetty6-plugin (6.0.0beta14), usual Maven defaults. "mvn jetty6:run" works fine, but if my webapp is redeployed (due to some compiler run) I get the following exception(s): [sorry for the long posting] Any hints? Classloader-stuff? Regards, Burkhard [INFO] restarting [EMAIL PROTECTED] /hhs:INFO: Closing WebApplicationContext of Spring FrameworkServlet 'hhs' /hhs:INFO: Closing Spring root WebApplicationContext [INFO] Webapp source directory = /home/ego/workspace/hhs/src/main/webapp [INFO] web.xml file = /home/ego/workspace/hhs/src/main/webapp/WEB-INF/web.xml [INFO] Classes = /home/ego/workspace/hhs/target/classes [INFO] Context path = /hhs [INFO] Tmp directory = /home/ego/workspace/hhs/target/work [INFO] Web defaults = jetty default [INFO] Webapp directory = /home/ego/workspace/hhs/src/main/webapp [INFO] Classpath = file:/home/ego/.m2/repository/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar,file:/home/ego/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar,file:/home/ego/.m2/repository/taglibs/string/1.1.0/string-1.1.0.jar,file:/home/ego/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar,file:/home/ego/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar,file:/home/ego/.m2/repository/commons-dbutils/commons-dbutils/1.0/commons-dbutils-1.0.jar,file:/home/ego/.m2/repository/hibernate/hibernate/3.1.3/hibernate-3.1.3.jar,file:/home/ego/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar,file:/home/ego/.m2/repository/javax/servlet/jstl/1.1.2/jstl-1.1.2.jar,file:/home/ego/.m2/repository/log4j/log4j/1.2.13/log4j-1.2.13.jar,file:/home/ego/.m2/repository/asm/asm/1.5.3/asm-1.5.3.jar,file:/home/ego/.m2/repository/commons-dbcp/commons-dbcp/1.2 .1/commons-dbcp-1.2.1.jar,file:/home/ego/.m2/repository/com/lowagie/itext/1.3.1/itext-1.3. 1.jar,file:/home/ego/.m2/repository/taglibs/standard/1.1.2/standard-1.1.2.jar,file:/home/ego/.m2/repository/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar,file:/home/ego/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar,file:/home/ego/.m2/repository/mysql/mysql-connector-java/3.1.12/mysql-connector-java-3.1.12.jar,file:/home/ego/.m2/repository/commons-digester/commons-digester/1.7/commons-digester-1.7.jar,file:/home/ego/.m2/repository/pure_struts/struts/1.2.9/struts-1.2.9.jar,file:/home/ego/.m2/repository/c3p0/c3p0/0.9.0/c3p0-0.9.0.jar,file:/home/ego/.m2/repository/commons-fileupload/commons-fileupload/1.1/commons-fileupload-1.1.jar,file:/home/ego/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar,file:/home/ego/.m2/repository/ehcache/ehcache/1.1/ehcache-1.1.jar,file:/home/ego/.m2/repository/asm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar,file:/home/ego/.m2/repository/javax/sql/jdbc-std ext/2.0/jdbc-stdext-2.0.jar,file:/home/ego/.m2/repository/commons-collections/commons-coll ections/2.1.1/commons-collections-2.1.1.jar,file:/home/ego/.m2/repository/cglib/cglib/2.1.3/cglib-2.1.3.jar,file:/home/ego/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar,file:/home/ego/.m2/repository/commons-io/commons-io/1.0/commons-io-1.0.jar,file:/home/ego/.m2/repository/org/springframework/spring/1.2.7/spring-1.2.7.jar,file:/home/ego/.m2/repository/commons-pool/commons-pool/1.2/commons-pool-1.2.jar,file:/home/ego/workspace/hhs/target/classes/ :INFO: Finding env entries: size=0 :INFO: Finding env entries: size=0 Sprint MVC:INFO: Loading Spring root WebApplicationContext Sprint MVC:INFO: Loading WebApplicationContext for Spring FrameworkServlet 'hhs' [INFO] Restart completed at Fri Apr 14 22:07:24 CEST 2006 :WARN: EXCEPTION org.apache.jasper.JasperException: javax.el.ELException: java.lang.IllegalArgumentException: [EMAIL PROTECTED] at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:285) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:239) at javax.servlet.http.HttpServlet.service(HttpServlet.java:860) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:350) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:221) at
Re: problems with hot redeployment under jetty6 (maven2)
On 4/14/06, Burkhard Graves <[EMAIL PROTECTED]> wrote: > Hi folks, > > I'm using the maven-jetty6-plugin (6.0.0beta14), usual Maven defaults. You should report this to the jetty mailing lists. Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems with hot redeployment under jetty6 (maven2)
Hi folks, I'm using the maven-jetty6-plugin (6.0.0beta14), usual Maven defaults. "mvn jetty6:run" works fine, but if my webapp is redeployed (due to some compiler run) I get the following exception(s): [sorry for the long posting] Any hints? Classloader-stuff? Regards, Burkhard [INFO] restarting [EMAIL PROTECTED] /hhs:INFO: Closing WebApplicationContext of Spring FrameworkServlet 'hhs' /hhs:INFO: Closing Spring root WebApplicationContext [INFO] Webapp source directory = /home/ego/workspace/hhs/src/main/webapp [INFO] web.xml file = /home/ego/workspace/hhs/src/main/webapp/WEB-INF/web.xml [INFO] Classes = /home/ego/workspace/hhs/target/classes [INFO] Context path = /hhs [INFO] Tmp directory = /home/ego/workspace/hhs/target/work [INFO] Web defaults = jetty default [INFO] Webapp directory = /home/ego/workspace/hhs/src/main/webapp [INFO] Classpath = file:/home/ego/.m2/repository/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar,file:/home/ego/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar,file:/home/ego/.m2/repository/taglibs/string/1.1.0/string-1.1.0.jar,file:/home/ego/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar,file:/home/ego/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar,file:/home/ego/.m2/repository/commons-dbutils/commons-dbutils/1.0/commons-dbutils-1.0.jar,file:/home/ego/.m2/repository/hibernate/hibernate/3.1.3/hibernate-3.1.3.jar,file:/home/ego/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar,file:/home/ego/.m2/repository/javax/servlet/jstl/1.1.2/jstl-1.1.2.jar,file:/home/ego/.m2/repository/log4j/log4j/1.2.13/log4j-1.2.13.jar,file:/home/ego/.m2/repository/asm/asm/1.5.3/asm-1.5.3.jar,file:/home/ego/.m2/repository/commons-dbcp/commons-dbcp/1.2.1/commons-dbcp-1.2.1.jar,file:/home/ego/.m2/repository/com/lowagie/itext/1.3.1/itext-1.3. 1.jar,file:/home/ego/.m2/repository/taglibs/standard/1.1.2/standard-1.1.2.jar,file:/home/ego/.m2/repository/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar,file:/home/ego/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar,file:/home/ego/.m2/repository/mysql/mysql-connector-java/3.1.12/mysql-connector-java-3.1.12.jar,file:/home/ego/.m2/repository/commons-digester/commons-digester/1.7/commons-digester-1.7.jar,file:/home/ego/.m2/repository/pure_struts/struts/1.2.9/struts-1.2.9.jar,file:/home/ego/.m2/repository/c3p0/c3p0/0.9.0/c3p0-0.9.0.jar,file:/home/ego/.m2/repository/commons-fileupload/commons-fileupload/1.1/commons-fileupload-1.1.jar,file:/home/ego/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar,file:/home/ego/.m2/repository/ehcache/ehcache/1.1/ehcache-1.1.jar,file:/home/ego/.m2/repository/asm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar,file:/home/ego/.m2/repository/javax/sql/jdbc-stdext/2.0/jdbc-stdext-2.0.jar,file:/home/ego/.m2/repository/commons-collections/commons-coll ections/2.1.1/commons-collections-2.1.1.jar,file:/home/ego/.m2/repository/cglib/cglib/2.1.3/cglib-2.1.3.jar,file:/home/ego/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar,file:/home/ego/.m2/repository/commons-io/commons-io/1.0/commons-io-1.0.jar,file:/home/ego/.m2/repository/org/springframework/spring/1.2.7/spring-1.2.7.jar,file:/home/ego/.m2/repository/commons-pool/commons-pool/1.2/commons-pool-1.2.jar,file:/home/ego/workspace/hhs/target/classes/ :INFO: Finding env entries: size=0 :INFO: Finding env entries: size=0 Sprint MVC:INFO: Loading Spring root WebApplicationContext Sprint MVC:INFO: Loading WebApplicationContext for Spring FrameworkServlet 'hhs' [INFO] Restart completed at Fri Apr 14 22:07:24 CEST 2006 :WARN: EXCEPTION org.apache.jasper.JasperException: javax.el.ELException: java.lang.IllegalArgumentException: [EMAIL PROTECTED] at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:285) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:239) at javax.servlet.http.HttpServlet.service(HttpServlet.java:860) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:350) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:221) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:539) at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:190) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:626) at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:99) at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:135) at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:760) at org.apache.struts.tag