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]
RE: JSP Compiler
Well, I should say before 2.0, as the appserver plugin can be released separately and is currently tagged 2.0-dev :) In other words, I'll roll my enhancements into war/appserver/webserver as soon as I can and release them. - Brett > -Original Message- > From: Brett Porter > Sent: Tuesday, 21 October 2003 8:27 AM > To: 'Maven Users List' > Subject: RE: JSP Compiler > > > I'll try and get that into the appserver plugin before 1.0. > > But for now, I've added it to te wiki. This may or may not > work for you as I have cut and pasted and edited some of the > variable names. > http://wiki.codehaus.org/maven/CreatingWebApplications#head-2b0c6db33bd58f8f 93de3b6ff49263e574447731 - Brett > -Original Message- > From: Bateman Pat UK MYT [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 21 October 2003 2:31 AM > To: Maven Users List > Subject: JSP Compiler > > > Does anyone know how to run Jasper as part of the WAR build. > > I don't want to ship the generated Java files, just use it as > a syntax checker. > > Thanks > > Pat > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
RE: JSP Compiler
I'll try and get that into the appserver plugin before 1.0. But for now, I've added it to te wiki. This may or may not work for you as I have cut and pasted and edited some of the variable names. http://wiki.codehaus.org/maven/CreatingWebApplications#head-2b0c6db33bd58f8f 93de3b6ff49263e574447731 - Brett > -Original Message- > From: Bateman Pat UK MYT [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 21 October 2003 2:31 AM > To: Maven Users List > Subject: JSP Compiler > > > Does anyone know how to run Jasper as part of the WAR build. > > I don't want to ship the generated Java files, just use it as > a syntax checker. > > Thanks > > Pat > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
JSP Compiler
Does anyone know how to run Jasper as part of the WAR build. I don't want to ship the generated Java files, just use it as a syntax checker. Thanks Pat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]