it's working after adding to pom.xml the following:
        <dependency>
            <groupId>javax.ws.rs</groupId>
            <artifactId>jsr311-api</artifactId>
            <version>1.1.1</version>
        </dependency>

Thanks, guys,

Ron







________________________________
From: Ronald Luke <ronald.l...@ymail.com>
To: Tapestry users <users@tapestry.apache.org>
Sent: Sat, February 12, 2011 8:11:25 AM
Subject: Re: can't get tynamo's tapestry-resteasy to work

i wrote earlier: " javax.ws.rs.core.Application is referenced: 
binder.bind(javax.ws.rs.core.Application.class, 
org.tynamo.resteasy.Application.class); but javax.ws.rs.core.Application is not 
imported in this file,could this be the problem?"

Please ignore this silly silly question, this is even too off for me.

Ron




________________________________
From: Ronald Luke <ronald.l...@ymail.com>
To: Tapestry users <users@tapestry.apache.org>
Sent: Fri, February 11, 2011 1:13:48 PM
Subject: Re: can't get tynamo's tapestry-resteasy to work

Alejandro:

I think I did exactly what you did. Here are my steps:

1. create mvn project using tapestry 5.2.4 quickstart archetype:
mvn -DarchetypeVersion=5.2.4 -Darchetype.interactive=false 
-DgroupId=com.ronshome.tapestry -DarchetypeArtifactId=quickstart 
-Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.tapestry 
-Dpackage=com.ronshome.tapestry.tapestryresteasytest 
-DartifactId=tapestryresteasytest --batch-mode 
-DarchetypeRepository=http://tapestry.apache.org archetype:generate

2. edit pom.xml, add the following to the dependencies.
        <dependency>
            <groupId>org.tynamo</groupId>
            <artifactId>tapestry-resteasy</artifactId>
            <version>0.2.1</version>
        </dependency>

3. add package .rest to the project, I left the rest package empty, and run the 
following command:
    mvn -Djetty.port=8000 jetty:run

then I got the error messages I posted before. did I miss something here?


Windey:

I think I followed every step in http://tynamo.org/tapestry-resteasy+guide, 
from 


my understanding, point 2 is for folders named other than rest, which is not 
the 


case here. 



Kalle, 

thank, I will try it next.


Anyway, I am trying to debug, and since the cause is 

Caused by: java.lang.RuntimeException: Failure loading Tapestry IoC module 
class 


org.tynamo.resteasy.ResteasyModule: Type javax.ws.rs.core.Application not 
present

I looked into ResteasyModule.java, here's the source code. Something in the 
file 


looked incorrect to me, on line 29, javax.ws.rs.core.Application is referenced: 
binder.bind(javax.ws.rs.core.Application.class, 
org.tynamo.resteasy.Application.class); but 

javax.ws.rs.core.Application is not imported in this file, could this be the 
problem?

many thanks,

Ron






________________________________
From: Kalle Korhonen <kalle.o.korho...@gmail.com>
To: Tapestry users <users@tapestry.apache.org>
Sent: Fri, February 11, 2011 12:09:55 AM
Subject: Re: can't get tynamo's tapestry-resteasy to work

No guarantees this will work, but try declaring a newer web.xml
version. See for example
http://publib.boulder.ibm.com/infocenter/wasinfo/beta/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/twbs_jaxrs_configjaxrs11method.html




Kalle


On Thu, Feb 10, 2011 at 5:49 AM, Ronald Luke <ronald.l...@ymail.com> wrote:
> Hello, guys,
>
> I couldn't get tapestry-resteasy to work. I used tapestry 5.2.4 quickstart
> archetype to start a new project, then add tapestry-resteasy dependency to my
> pom.xml. I have no idea how to make the " Type javax.ws.rs.core.Application"
> present to the project. Please shed some light on this.
>
> thanks a lot,
>
> Ron
>
> mvn -Djetty.port=8081 jetty:run
> [INFO] Scanning for projects...
> [INFO] 
------------------------------------------------------------------------
> [INFO] Building tapestryresteasytest Tapestry 5 Application
> [INFO]    task-segment: [jetty:run]
> [INFO] 
------------------------------------------------------------------------
> [INFO] Preparing jetty:run
> [INFO] [resources:resources {execution: default-resources}]
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources,
> i.e. build is platform dependent!
> [INFO] Copying 6 resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources {execution: default-testResources}]
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources,
> i.e. build is platform dependent!
> [INFO] Copying 1 resource
> [INFO] [compiler:testCompile {execution: default-testCompile}]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [jetty:run {execution: default-cli}]
> [INFO] Configuring Jetty for project: tapestryresteasytest Tapestry 5
> Application
> [INFO] Webapp source directory =
> /home/ronald/Programming/NetBeansProjects/tapestryresteasytest/src/main/webapp
> [INFO] Reload Mechanic: automatic
> [INFO] web.xml file =
>/home/ronald/Programming/NetBeansProjects/tapestryresteasytest/src/main/webapp/WEB-INF/web.xml
>
>
>l
>
> [INFO] Classes =
> /home/ronald/Programming/NetBeansProjects/tapestryresteasytest/target/classes
> 2011-02-10 21:02:34.059::INFO:  Logging to STDERR via 
org.mortbay.log.StdErrLog
> [INFO] Context path = /tapestryresteasytest
> [INFO] Tmp directory =  determined at runtime
> [INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
> [INFO] Web overrides =  none
> [INFO] Webapp directory =
> /home/ronald/Programming/NetBeansProjects/tapestryresteasytest/src/main/webapp
> [INFO] Starting jetty 6.1.16 ...
> 2011-02-10 21:02:34.416::INFO:  jetty-6.1.16
> 2011-02-10 21:02:34.912::INFO:  No Transaction manager found - if your webapp
> requires one, please configure one.
> [INFO] ioc.RegistryBuilder Adding module definition for class
> org.apache.tapestry5.ioc.services.TapestryIOCModule
> [INFO] ioc.RegistryBuilder Adding module definition for class
> org.tynamo.resteasy.ResteasyModule
> 2011-02-10 21:02:36.351::WARN:  failed app
> java.lang.RuntimeException: Exception loading module(s) from manifest
>jar:file:/home/ronald/.m2/repository/org/tynamo/tapestry-resteasy/0.2.1/tapestry-resteasy-0.2.1.jar!/META-INF/MANIFEST.MF:
>
>
>:
>  Failure loading Tapestry IoC module class org.tynamo.resteasy.ResteasyModule:
> Type javax.ws.rs.core.Application not present
>        at
>org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:123)
>
>
>)
>
>        at
> org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:77)
>        at
>org.apache.tapestry5.internal.TapestryAppInitializer.<init>(TapestryAppInitializer.java:131)
>
>
>)
>
>        at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:90)
>        at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
>        at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>        at
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:653)
>        at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
>        at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1239)
>        at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
>        at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:466)
>        at
>org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:124)
>
>
>)
>
>        at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>        at
> 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>        at
>org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
>
>
>)
>
>        at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>        at
> 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>        at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>        at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
>        at org.mortbay.jetty.Server.doStart(Server.java:222)
>        at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>        at
> org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
>        at
>org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
>
>
>)
>
>        at
> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
>        at
>org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
>
>
>)
>
>        at
> org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
>        at
>org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>
>
>)
>
>        at
>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>
>
>)
>
>        at
>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
>
>
>)
>
>        at
>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
>
>
>)
>
>        at
>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>
>
>)
>
>        at
>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>
>
>)
>
>        at
>org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>
>
>)
>
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>        at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>        at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>
>)
>
>        at java.lang.reflect.Method.invoke(Method.java:616)
>        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>        at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: java.lang.RuntimeException: Failure loading Tapestry IoC module 
>class
> org.tynamo.resteasy.ResteasyModule: Type javax.ws.rs.core.Application not
> present
>        at
> org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:155)
>        at
> org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUtilities.java:137)
>        at
>org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:107)
>
>
>)
>
>        ... 44 more
> 2011-02-10 21:02:36.356::WARN:  Failed startup of context
>org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@19ded4c9{/tapestryresteasytest,/home/ronald/Programming/NetBeansProjects/tapestryresteasytest/src/main/webapp}
>
>
>}
>
> java.lang.RuntimeException: Exception loading module(s) from manifest
>jar:file:/home/ronald/.m2/repository/org/tynamo/tapestry-resteasy/0.2.1/tapestry-resteasy-0.2.1.jar!/META-INF/MANIFEST.MF:
>
>
>:
>  Failure loading Tapestry IoC module class org.tynamo.resteasy.ResteasyModule:
> Type javax.ws.rs.core.Application not present
>        at
>org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:123)
>
>
>)
>
>        at
> org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:77)
>        at
>org.apache.tapestry5.internal.TapestryAppInitializer.<init>(TapestryAppInitializer.java:131)
>
>
>)
>
>        at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:90)
>        at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
>        at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>        at
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:653)
>        at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
>        at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1239)
>        at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
>        at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:466)
>        at
>org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:124)
>
>
>)
>
>        at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>        at
> 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>        at
>org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
>
>
>)
>
>        at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>        at
> 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>        at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>        at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
>        at org.mortbay.jetty.Server.doStart(Server.java:222)
>        at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>        at
> org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
>        at
>org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
>
>
>)
>
>        at
> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
>        at
>org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
>
>
>)
>
>        at
> org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
>        at
>org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>
>
>)
>
>        at
>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>
>
>)
>
>        at
>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
>
>
>)
>
>        at
>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
>
>
>)
>
>        at
>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>
>
>)
>
>        at
>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>
>
>)
>
>        at
>org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>
>
>)
>
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>        at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>        at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>
>)
>
>        at java.lang.reflect.Method.invoke(Method.java:616)
>        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>        at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: java.lang.RuntimeException: Failure loading Tapestry IoC module 
>class
> org.tynamo.resteasy.ResteasyModule: Type javax.ws.rs.core.Application not
> present
>        at
> org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:155)
>        at
> org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUtilities.java:137)
>        at
>org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:107)
>
>
>)
>
>        ... 44 more
> 2011-02-10 21:02:36.458::INFO:  Started SelectChannelConnector@0.0.0.0:8081
> [INFO] Started Jetty Server
>
>
>
>____________________________________________________________________________________
>
>
>_
> Finding fabulous fares is fun.
> Let Yahoo! FareChase search your favorite travel sites to find flight and 
> hotel 
>
>
>bargains.
> http://farechase.yahoo.com/promo-generic-14795097

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



____________________________________________________________________________________

Looking for earth-friendly autos? 
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/


 
____________________________________________________________________________________
Looking for earth-friendly autos? 
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/

Reply via email to