You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Bill Holloway <bi...@gmail.com> on 2007/10/28 19:56:41 UTC

New maven create archetype issues

There are some warnings thrown at the end of the new maven create
archetype run, given by Howard in the tapestryjava blog entry titled
"Big improvement to quickstart archetype."  I'm on an Intel Core Duo
iMac with Maven version 2.0.7:

[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 14,column 22]
: ${tapestry-release-version} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 80,column 26]
: ${tapestry-release-version} is not a valid reference.
[INFO] ********************* End of debug info from resources from
generated POM ***********************
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/src/main/webapp/Start.tml
[line 11,column 34] : ${currentTime} is not a valid reference.

In my eclipse jetty run, I have eclipse version: 3.3.0, Build id
M20070921-1145 under JDK 1.5.0_07-87.  My jetty is 5.1.11.  For the
project I create a standard Java Project and "Create project from
existing source".  I set up the Jetty launch as normal, and when I hit
either / or /start, I get

HTTP ERROR: 500
org.apache.log4j.Logger.isTraceEnabled()Z
RequestURI=/start
Powered by Jetty://

The first few lines of the stack trace read

[ERROR] RequestExceptionHandler Processing of request failed with
uncaught exception: org.apache.log4j.Logger.isTraceEnabled()Z
java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z
	at org.slf4j.impl.Log4jLoggerAdapter.isTraceEnabled(Log4jLoggerAdapter.java:81)
	at org.apache.tapestry.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:45)
	at org.apache.tapestry.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:40)

Is that capital "Z" at the end of the method name a typo?

Bill H.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: New maven create archetype issues

Posted by Bill Holloway <bi...@gmail.com>.
That got it.  It was the "inside jetty" part of the log4j impl I
didn't realize.  Very cool quickstart, Howard.

Bill H.

On 10/28/07, Howard Lewis Ship <hl...@gmail.com> wrote:
> It is necessary that you upgrade the copy of log4j inside Jetty to version
> 1.2.14.  That adds the isTraceEnabled():boolean method that SL4J expects.
>
> On 10/28/07, Bill Holloway <bi...@gmail.com> wrote:
> >
> > There are some warnings thrown at the end of the new maven create
> > archetype run, given by Howard in the tapestryjava blog entry titled
> > "Big improvement to quickstart archetype."  I'm on an Intel Core Duo
> > iMac with Maven version 2.0.7:
> >
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference : template = archetype-resources/pom.xml [line 14,column 22]
> > : ${tapestry-release-version} is not a valid reference.
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference : template = archetype-resources/pom.xml [line 80,column 26]
> > : ${tapestry-release-version} is not a valid reference.
> > [INFO] ********************* End of debug info from resources from
> > generated POM ***********************
> > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> > reference : template = archetype-resources/src/main/webapp/Start.tml
> > [line 11,column 34] : ${currentTime} is not a valid reference.
> >
> > In my eclipse jetty run, I have eclipse version: 3.3.0, Build id
> > M20070921-1145 under JDK 1.5.0_07-87.  My jetty is 5.1.11.  For the
> > project I create a standard Java Project and "Create project from
> > existing source".  I set up the Jetty launch as normal, and when I hit
> > either / or /start, I get
> >
> > HTTP ERROR: 500
> > org.apache.log4j.Logger.isTraceEnabled()Z
> > RequestURI=/start
> > Powered by Jetty://
> >
> > The first few lines of the stack trace read
> >
> > [ERROR] RequestExceptionHandler Processing of request failed with
> > uncaught exception: org.apache.log4j.Logger.isTraceEnabled()Z
> > java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z
> >         at org.slf4j.impl.Log4jLoggerAdapter.isTraceEnabled(
> > Log4jLoggerAdapter.java:81)
> >         at org.apache.tapestry.internal.services.RenderQueueImpl.run(
> > RenderQueueImpl.java:45)
> >         at
> > org.apache.tapestry.internal.services.PageMarkupRendererImpl.renderPageMarkup
> > (PageMarkupRendererImpl.java:40)
> >
> > Is that capital "Z" at the end of the method name a typo?
> >
> > Bill H.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Howard M. Lewis Ship
> Partner and Senior Architect at Feature50
>
> Creator Apache Tapestry and Apache HiveMind
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: New maven create archetype issues

Posted by Howard Lewis Ship <hl...@gmail.com>.
It is necessary that you upgrade the copy of log4j inside Jetty to version
1.2.14.  That adds the isTraceEnabled():boolean method that SL4J expects.

On 10/28/07, Bill Holloway <bi...@gmail.com> wrote:
>
> There are some warnings thrown at the end of the new maven create
> archetype run, given by Howard in the tapestryjava blog entry titled
> "Big improvement to quickstart archetype."  I'm on an Intel Core Duo
> iMac with Maven version 2.0.7:
>
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> reference : template = archetype-resources/pom.xml [line 14,column 22]
> : ${tapestry-release-version} is not a valid reference.
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> reference : template = archetype-resources/pom.xml [line 80,column 26]
> : ${tapestry-release-version} is not a valid reference.
> [INFO] ********************* End of debug info from resources from
> generated POM ***********************
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> reference : template = archetype-resources/src/main/webapp/Start.tml
> [line 11,column 34] : ${currentTime} is not a valid reference.
>
> In my eclipse jetty run, I have eclipse version: 3.3.0, Build id
> M20070921-1145 under JDK 1.5.0_07-87.  My jetty is 5.1.11.  For the
> project I create a standard Java Project and "Create project from
> existing source".  I set up the Jetty launch as normal, and when I hit
> either / or /start, I get
>
> HTTP ERROR: 500
> org.apache.log4j.Logger.isTraceEnabled()Z
> RequestURI=/start
> Powered by Jetty://
>
> The first few lines of the stack trace read
>
> [ERROR] RequestExceptionHandler Processing of request failed with
> uncaught exception: org.apache.log4j.Logger.isTraceEnabled()Z
> java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z
>         at org.slf4j.impl.Log4jLoggerAdapter.isTraceEnabled(
> Log4jLoggerAdapter.java:81)
>         at org.apache.tapestry.internal.services.RenderQueueImpl.run(
> RenderQueueImpl.java:45)
>         at
> org.apache.tapestry.internal.services.PageMarkupRendererImpl.renderPageMarkup
> (PageMarkupRendererImpl.java:40)
>
> Is that capital "Z" at the end of the method name a typo?
>
> Bill H.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Howard M. Lewis Ship
Partner and Senior Architect at Feature50

Creator Apache Tapestry and Apache HiveMind

Re: New maven create archetype issues

Posted by Howard Lewis Ship <hl...@gmail.com>.
The other warnings about unexpected symbols are caused by Tapestry and the
Maven archetype both using ${...} syntax.  Fortunately, the archetype code
leaves ${...} it doesn't recognize alone.

On 10/28/07, Bill Holloway <bi...@gmail.com> wrote:
>
> There are some warnings thrown at the end of the new maven create
> archetype run, given by Howard in the tapestryjava blog entry titled
> "Big improvement to quickstart archetype."  I'm on an Intel Core Duo
> iMac with Maven version 2.0.7:
>
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> reference : template = archetype-resources/pom.xml [line 14,column 22]
> : ${tapestry-release-version} is not a valid reference.
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> reference : template = archetype-resources/pom.xml [line 80,column 26]
> : ${tapestry-release-version} is not a valid reference.
> [INFO] ********************* End of debug info from resources from
> generated POM ***********************
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> reference : template = archetype-resources/src/main/webapp/Start.tml
> [line 11,column 34] : ${currentTime} is not a valid reference.
>
> In my eclipse jetty run, I have eclipse version: 3.3.0, Build id
> M20070921-1145 under JDK 1.5.0_07-87.  My jetty is 5.1.11.  For the
> project I create a standard Java Project and "Create project from
> existing source".  I set up the Jetty launch as normal, and when I hit
> either / or /start, I get
>
> HTTP ERROR: 500
> org.apache.log4j.Logger.isTraceEnabled()Z
> RequestURI=/start
> Powered by Jetty://
>
> The first few lines of the stack trace read
>
> [ERROR] RequestExceptionHandler Processing of request failed with
> uncaught exception: org.apache.log4j.Logger.isTraceEnabled()Z
> java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z
>         at org.slf4j.impl.Log4jLoggerAdapter.isTraceEnabled(
> Log4jLoggerAdapter.java:81)
>         at org.apache.tapestry.internal.services.RenderQueueImpl.run(
> RenderQueueImpl.java:45)
>         at
> org.apache.tapestry.internal.services.PageMarkupRendererImpl.renderPageMarkup
> (PageMarkupRendererImpl.java:40)
>
> Is that capital "Z" at the end of the method name a typo?
>
> Bill H.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Howard M. Lewis Ship
Partner and Senior Architect at Feature50

Creator Apache Tapestry and Apache HiveMind