You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by mad7777 <ma...@runbox.com> on 2007/06/20 17:35:40 UTC

T5 tutorial not working out... Javassist, Maven problems

Hi,

I am trying to do the T5 tutorial, but I am having many problems.

First of all, I couldn't get the maven install to work at all.  The "mvn
archetype:create -DarchetypeGroupId=org.apache.tapestry
-DarchetypeArtifactId=quickstart -DarchetypeVersion=5.0.4
-DgroupId=org.example -DartifactId=hilo -DpackageName=org.example.hilo" line
works (now), but on doing "mvn jetty:run", I get fatal compilation errors:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building hilo Tapestry 5 Application
[INFO]    task-segment: [jetty:run]
[INFO]
----------------------------------------------------------------------------
[INFO] Preparing jetty:run
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://people.apache.org/~hlship/tapestry-snapshot-repository//org/apache/tapestry/tapestry-core/5.0.4-SNAPSHOT/tapestry-core-5.0.4-SNAPSHOT.pom
Downloading:
http://snapshots.repository.codehaus.org/org/apache/tapestry/tapestry-core/5.0.4-SNAPSHOT/tapestry-core-5.0.4-SNAPSHOT.pom
Downloading:
http://maven.openqa.org//org/apache/tapestry/tapestry-core/5.0.4-SNAPSHOT/tapestry-core-5.0.4-SNAPSHOT.pom
[INFO] [compiler:compile]
[INFO] Compiling 2 source files to
C:\Projects\tapestry_tutorial\hilo\target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

C:\Projects\tapestry_tutorial\hilo\src\main\java\org\example\hilo\services\AppModule.java:[5,33]
package org.apache.commons.logging does not exist

C:\Projects\tapestry_tutorial\hilo\src\main\java\org\example\hilo\services\AppModule.java:[6,30]
package org.apache.tapestry.ioc does not exist

C:\Projects\tapestry_tutorial\hilo\src\main\java\org\example\hilo\services\AppModule.java:[7,30]
package org.apache.tapestry.ioc does not exist

C:\Projects\tapestry_tutorial\hilo\src\main\java\org\example\hilo\services\AppModule.java:[8,42]
package org.apache.tapestry.ioc.annotations does not exist

C:\Projects\tapestry_tutorial\hilo\src\main\java\org\example\hilo\services\AppModule.java:[21,12]
cannot find symbol
symbol  : class MappedConfiguration
location: class org.example.hilo.services.AppModule

C:\Projects\tapestry_tutorial\hilo\src\main\java\org\example\hilo\services\AppModule.java:[40,49]
cannot find symbol
symbol  : class Log
location: class org.example.hilo.services.AppModule

C:\Projects\tapestry_tutorial\hilo\src\main\java\org\example\hilo\services\AppModule.java:[72,41]
cannot find symbol
symbol  : class OrderedConfiguration
location: class org.example.hilo.services.AppModule

C:\Projects\tapestry_tutorial\hilo\src\main\java\org\example\hilo\services\AppModule.java:[73,13]
cannot find symbol
symbol  : class InjectService
location: class org.example.hilo.services.AppModule


So, I retreated to more familiar territory: Ant.
Sadly, I can't even make this work.  I have a war file, which I built from
the example source that was downloaded by Maven.  When I deploy this file in
my Jetty server, it seems that some javassist classes are missing.  Now,
having installed javassist.jar, I am getting this in Jetty's console when I
try to access the hilo application:

13860 [btpool0-7] ERROR org.example.hilo.pages.Start  - Render queue error
in BeginRender[org.example.hilo.pages.Start:pagelink]:
org.apache.tapestry.PageRenderSupport
java.lang.RuntimeException: org.apache.tapestry.PageRenderSupport
        at javassist.runtime.Desc.getClassType(Desc.java:153)
        at javassist.runtime.Desc.getType(Desc.java:119)
        at javassist.runtime.Desc.getType(Desc.java:75)
        at
org.apache.tapestry.corelib.components.PageLink._$environment_read_support(PageLink.java)
        at
org.apache.tapestry.corelib.components.PageLink.beginRender(PageLink.java:63)
        at
org.apache.tapestry.corelib.components.PageLink.beginRender(PageLink.java)
        at
org.apache.tapestry.internal.structure.ComponentPageElementImpl$10$1.run(ComponentPageElementImpl.java:345)
        at
org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:932)
        at
org.apache.tapestry.internal.structure.ComponentPageElementImpl.access$100(ComponentPageElementImpl.java:69)

.. and so on


Perhpas I have the wrong version of javassist.jar?  Is something installed
improperly somehow?  I'm at a bit of a loss.

Thanks for any help,
Marc

-- 
View this message in context: http://www.nabble.com/T5-tutorial-not-working-out...-Javassist%2C-Maven-problems-tf3953119.html#a11215935
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: T5 tutorial not working out... Javassist, Maven problems

Posted by mad7777 <ma...@runbox.com>.
Marcus,

wow, i can't believe that just worked!
i've been fighting this thing for a whole day.  thanks so much.

cheers,
Marc


Marcus-11 wrote:
> 
> Hi Marc,
> 
> Try 5.0.5-SNAPSHOT in POM.xml instead 5.0.4-SNAPSHOT
> 
> Marcus
> 
> 

-- 
View this message in context: http://www.nabble.com/T5-tutorial-not-working-out...-Javassist%2C-Maven-problems-tf3953119.html#a11220332
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: T5 tutorial not working out... Javassist, Maven problems

Posted by Renat Zubairov <re...@gmail.com>.
Hi

May be this could help also

http://wiki.apache.org/tapestry/Tapestry5HowToCreateYourQuickstartWithMaven206

Renat

On 20/06/07, Marcus <mv...@gmail.com> wrote:
> Hi Marc,
>
> Try 5.0.5-SNAPSHOT in POM.xml instead 5.0.4-SNAPSHOT
>
> Marcus
>


-- 
Best regards,
Renat Zubairov

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


Re: T5 tutorial not working out... Javassist, Maven problems

Posted by Marcus <mv...@gmail.com>.
Hi Marc,

Try 5.0.5-SNAPSHOT in POM.xml instead 5.0.4-SNAPSHOT

Marcus