From: SourceForge.net <no...@so...> - 2008-02-23 10:35:47
|
Bugs item #1893649, was opened at 2008-02-14 16:02 Message generated for change (Comment added) made by blucecio You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=586478&aid=1893649&group_id=88385 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Setup Group: v3.0 Status: Open Resolution: None Priority: 7 Private: No Submitted By: Sebastian Stein (steinchen) Assigned to: Nobody/Anonymous (nobody) Summary: JSP compile error Initial Comment: I'm trying to deploy the 3.0 RC2 on Windows XP SP2 using Tomcat 6.0.16 and SUN JDK 1.6.0_04. Deployment and startup of Tomcat works, but I can't access the setup page. I get a JSP exception in Tomcat's log file: 14.02.2008 15:47:26 org.apache.catalina.core.StandardWrapperValve invoke SCHWERWIEGEND: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 22 in the generated java file The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory Stacktrace: at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:316) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:294) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:281) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.contineo.web.LocaleFilter.doFilter(LocaleFilter.java:38) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) This error doesn't allow me to release 3.0 RC2. ---------------------------------------------------------------------- >Comment By: Alessandro Gasparini (blucecio) Date: 2008-02-23 11:35 Message: Logged In: YES user_id=1656888 Originator: NO To make a good build you have to launch the following maven commands from the Contineo project root directory (the one that contains the master .pom): mvn -o clean mvn -Dmaven.test.skip=true install In the meantime i've uploaded my latest build (made 23/02/2008) to the contineo webspace. The url of this file is: http://contineo.sourceforge.net/contineo-web-3.0.0rc2.war As usual this has been tested with Tomcat 6.0.16, jdk 1.6.0_03 ---------------------------------------------------------------------- Comment By: Sebastian Stein (steinchen) Date: 2008-02-20 20:12 Message: Logged In: YES user_id=79775 Originator: YES Your latest change helped a little bit, because I now can deploy it again under Linux with Java 1.5 and Tomcat 5.5. However, it is still impossible to deploy it on Windows with Java 1.6 and Tomcat 6. I still get the exception I posted at the beginning of the bug report. I checked everything like memory and stuff. I created the WAR under Linux as you said (also ensuring mvn -o -Dmaven.test.skip=true clean) and I have ant 1.7 under Linux. Any other ideas? Maybe, can you build a war, upload it to the contineo webspace and I try your war again? ---------------------------------------------------------------------- Comment By: Alessandro Gasparini (blucecio) Date: 2008-02-20 10:50 Message: Logged In: YES user_id=1656888 Originator: NO File Added: Tomcat5 - Rename el-api-1.0.jpg ---------------------------------------------------------------------- Comment By: Alessandro Gasparini (blucecio) Date: 2008-02-20 10:49 Message: Logged In: YES user_id=1656888 Originator: NO Ok, in the process of creating build. War I discovered another problem ... In practice to create properly the contineo-plugins need to use Ant 1.7.0, on Windows XP SP2. If you have an older version (for example the 1.6.5), some commands behave in a different way and this produces plugins without .jspx files within them. Having realized the .war of web-application start tomcat. If running is gearing Tomcat 5.5.25 at the end of the boot procedure stop Tomcat 5.5.25. Locate the file el-bee-1.0.jar.tomcat5 and rename it to el-bee-1.0.jar As attached to an image (rename el-bee-1.0.jpg) Restart Tomcat 5.5.25 ---------------------------------------------------------------------- Comment By: Alessandro Gasparini (blucecio) Date: 2008-02-20 10:08 Message: Logged In: YES user_id=1656888 Originator: NO Hi Sebastian, have you successfully executed the command: mvn -o clean Parhaps the maven-antrun-plugin is not correctly installed... If this is the case download the antrun-plugin with the command: mvn clean The build process produces some .jar and some artifacts .zip (of various modules) and install them in the local maven repository. These jar are then used as dependencies by the various modules, for example the module contineo-web has a dependency from the contineo-core jar (which contains the core classes of application). For these reasons, perhaps the first attempt to create the war is better than you execute the command: mvn -Dmaven.test.skip=true install Anyway before launch the WAR build process, make sure you have the latest sources (take a checkout) because just this morning I correct an error in the definition of the contineo-core plugins (file: plugin.xml in module contineo-core) ---------------------------------------------------------------------- Comment By: Sebastian Stein (steinchen) Date: 2008-02-19 21:34 Message: Logged In: YES user_id=79775 Originator: YES I followed exactly your description, but it can't be started on Tomcat 5 and 6 anymore. In both cases I get the following entry in catalina.out: Added repository file:/usr/local/share/tomcat/webapps/contineo/WEB-INF/.plugins/contineo-core@3.0.0/lib/poi-3.0.1-FINAL.jar to org.apache.catalina.loader.WebappClassLoader Activated plugin contineo-core 19.02.2008 19:28:15 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Error listenerStart 19.02.2008 19:28:15 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Context [/contineo] startup failed due to previous errors log4j:WARN No appenders could be found for logger (com.icesoft.faces.util.event.servlet.ContextEventRepeater). log4j:WARN Please initialize the log4j system properly. The war I created has a similar size to yours. I can't execute the following command: mvn -o -Dmaven.test.skip=true install It says parts can't be found and I have to run it in online mode. It seems to download the different contineo plugins. It seems the build process is broken. ---------------------------------------------------------------------- Comment By: Alessandro Gasparini (blucecio) Date: 2008-02-15 09:28 Message: Logged In: YES user_id=1656888 Originator: NO File Added: 06_tomcat_GoodMemorySetting.jpg ---------------------------------------------------------------------- Comment By: Alessandro Gasparini (blucecio) Date: 2008-02-15 09:28 Message: Logged In: YES user_id=1656888 Originator: NO File Added: 05b_tomcat_lowMemory.jpg ---------------------------------------------------------------------- Comment By: Alessandro Gasparini (blucecio) Date: 2008-02-15 09:27 Message: Logged In: YES user_id=1656888 Originator: NO File Added: 05_tomcat_OutofMemory.jpg ---------------------------------------------------------------------- Comment By: Alessandro Gasparini (blucecio) Date: 2008-02-15 09:27 Message: Logged In: YES user_id=1656888 Originator: NO File Added: 03_war_release_size.jpg ---------------------------------------------------------------------- Comment By: Alessandro Gasparini (blucecio) Date: 2008-02-15 09:26 Message: Logged In: YES user_id=1656888 Originator: NO Hi Sebastian, i think that you have made a mistake at some point of the release process. Today I've successfully deployed the application on my system with Tomcat-6.0.16 and jdk1.6.0_03. So there are my release steps. 0) Close Eclipse 1) From the root project dir clean all the target directories of the modules mvn -o -Dmaven.test.skip=true clean 2) check that all the target dir of the various modules are cleaned/empty or deleted 3) compile, make the libraries jar, install them and build the web-application mvn -o -Dmaven.test.skip=true install 4) verify the size of the war produced: it should be around 45.703 KB 5) ensure that the System variable JAVA_HOME point at the jdk1.6 dir: ex: C:\Programmi\Java\jdk1.6.0_03 6) add at least 512MB for tomcat installation into the file catalina.bat rem Guess CATALINA_HOME if not defined set JAVA_OPTS=%JAVA_OPTS% -Xmx512m set CURRENT_DIR=%cd% 7) lauch tomcat and verify the assigned ram http://localhost:8080/manager/status JVM Free memory: 31.43 MB Total memory: 141.91 MB Max memory: 508.06 MB 8) Shutdown tomcat 9) copy the produced war (contineo-web-3.0.0rc2.war) into the tomct web-app dir C:\JavaSuite\apache-tomcat-6.0.16\webapps 10) restart tomcat and enjoy Contineo 3.0rc2 I've made some screen-shot of the relevant steps involved. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=586478&aid=1893649&group_id=88385 |