Re: JSP compiler plugin
Another advantage of pre-compiling JSPs during Maven compile/package phase is that you get a nice compile-time check on the JSP file before wasting time deploying your EAR/WAR only to find out a JSP is missing a semi-colon or something equally dumb when the app server gets around to compiling it for the first time... Wayne On 6/23/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote: Just to complete my answer, usually you would pack your precompiled jsp pages in a jar respecting a naming convention according to your application server so it can link them as servlets. I prefer to link my pages as servlet at compile time to be sure my package will work on any app server. Anyway, I hate JSP. I much prefer Veloticy or Facelets in the JSF world :) On 6/23/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote: > > Sorry if this is a banal question (I haven't done jsp precompiling yet), > > so the jsp's get precompiled and exposed as servlets in the web.xml? > > Why?? In production it is usally the recommended approach. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP compiler plugin
Just to complete my answer, usually you would pack your precompiled jsp pages in a jar respecting a naming convention according to your application server so it can link them as servlets. I prefer to link my pages as servlet at compile time to be sure my package will work on any app server. Anyway, I hate JSP. I much prefer Veloticy or Facelets in the JSF world :) On 6/23/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote: > Sorry if this is a banal question (I haven't done jsp precompiling yet), > so the jsp's get precompiled and exposed as servlets in the web.xml? Why?? In production it is usally the recommended approach. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP compiler plugin
Sorry if this is a banal question (I haven't done jsp precompiling yet), so the jsp's get precompiled and exposed as servlets in the web.xml? Why?? In production it is usally the recommended approach. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP compiler plugin
Max Cooper wrote: Did I read that correctly that . is your warSourceDirectory? I would expect many issues with that directory structure, though I am not sure if your current issue is related. -Max Alexandre Poitras wrote: Is c.tld located in src/main/resources/WEB-INF/tld? On 6/7/06, Eugeny N Dzhurinsky <[EMAIL PROTECTED]> wrote: org.codehaus.mojo jspc-maven-plugin jspc compile compile ./WEB-INF/web.xml nonexistent /dev/null . jsp-compile for soem reason I'm getting this error: [INFO] [jspc:compile {execution: jspc}] [INFO] Built File: /MML/index.jsp [WARN] Internal Error: File /WEB-INF/web.xml not found [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error Embedded error: File "/WEB-INF/tld/c.tld" not found But there is WEB-INF/tld directory inside module and it contains c.tld file. Also WEB-INF/web.xml exists. Any ideas what needs to be specified? -- Eugene N Dzhurinsky Sorry if this is a banal question (I haven't done jsp precompiling yet), so the jsp's get precompiled and exposed as servlets in the web.xml? Sounds a bit dirty, can't the container precompile the jsps on deploy? Srgjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP compiler plugin
Did I read that correctly that . is your warSourceDirectory? I would expect many issues with that directory structure, though I am not sure if your current issue is related. -Max Alexandre Poitras wrote: Is c.tld located in src/main/resources/WEB-INF/tld? On 6/7/06, Eugeny N Dzhurinsky <[EMAIL PROTECTED]> wrote: org.codehaus.mojo jspc-maven-plugin jspc compile compile ./WEB-INF/web.xml nonexistent /dev/null . jsp-compile for soem reason I'm getting this error: [INFO] [jspc:compile {execution: jspc}] [INFO] Built File: /MML/index.jsp [WARN] Internal Error: File /WEB-INF/web.xml not found [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error Embedded error: File "/WEB-INF/tld/c.tld" not found But there is WEB-INF/tld directory inside module and it contains c.tld file. Also WEB-INF/web.xml exists. Any ideas what needs to be specified? -- Eugene N Dzhurinsky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP compiler plugin
Is c.tld located in src/main/resources/WEB-INF/tld? On 6/7/06, Eugeny N Dzhurinsky <[EMAIL PROTECTED]> wrote: org.codehaus.mojo jspc-maven-plugin jspc compile compile ./WEB-INF/web.xml nonexistent /dev/null . jsp-compile for soem reason I'm getting this error: [INFO] [jspc:compile {execution: jspc}] [INFO] Built File: /MML/index.jsp [WARN] Internal Error: File /WEB-INF/web.xml not found [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error Embedded error: File "/WEB-INF/tld/c.tld" not found But there is WEB-INF/tld directory inside module and it contains c.tld file. Also WEB-INF/web.xml exists. Any ideas what needs to be specified? -- Eugene N Dzhurinsky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP compiler plugin
org.codehaus.mojo jspc-maven-plugin jspc compile compile ./WEB-INF/web.xml nonexistent /dev/null . jsp-compile for soem reason I'm getting this error: [INFO] [jspc:compile {execution: jspc}] [INFO] Built File: /MML/index.jsp [WARN] Internal Error: File /WEB-INF/web.xml not found [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error Embedded error: File "/WEB-INF/tld/c.tld" not found But there is WEB-INF/tld directory inside module and it contains c.tld file. Also WEB-INF/web.xml exists. Any ideas what needs to be specified? -- Eugene N Dzhurinsky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]