I found what was my problem.
I was using the filter
org.apache.tapestry.TapestryFilter
instead of
org.apache.tapestry.spring.TapestrySpringFilter

I am now getting this exception which is the same problem reported by Nick
Westgate  

java.lang.RuntimeException: Exception constructing service
'ServletApplicationInitializer': Unable to instantiate class
org.apache.tapestry.services.TapestryModule as a module builder: Error
creating bean with name 'txProxyTemplate': Bean definition is abstract
        
Petros

petros wrote:
> 
> I have a problem in T5.0.4 when I am changing from @[EMAIL PROTECTED] to
> @[EMAIL PROTECTED]
> 
> CODE THAT WORKS
> LayoutCmpnt.html
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> <head> 
>       <link t:type="Any" href="prop:styleCSS" rel="stylesheet"
> type="text/css"/> 
> </head> 
> 
> LayoutCmpnt.java
> public class LayoutCmpnt
> {             
>       @InjectPage
>       private Login loginPage;
> 
>       @Inject
>       @Path("context:styles/style.css")
>       private Asset styleCSS; 
> .....
> 
> Login.java
> public class Login 
> {
>       @Inject
>       @SpringBean("UserManager")
>       private UserManager userManager;
> ...
> CODE THAT DOESN'T WORK
>  Login.java
>       @Inject
>       @Service("UserManager")
>       private UserManager userManager;
> 
> gives me the following error when I am trying to access LayoutCmpnt.html
> 
> Could not convert 'prop:styleCSS' into a component parameter binding:
> java.lang.NoClassDefFoundError:
> com/glintech/jumpstart/tapestry/pages/Login
> 
> Do I have to register my Spring Beans as services? Can anyone point me to
> the right direction ?
> 
> 
> texomaleo wrote:
>> 
>> No problem.  I've got it all going.  Nice to have a parsimonious way
>> to inject from the web context directory.  I can pile all my images
>> and css up in there for static pages outside Tapestry.
>> 
>> Bill
>> 
>> On 5/16/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
>>> Sorry, yes.  That's a change in 5.0.4, you must have been using 5.0.3.
>>>
>>> Injection got a LOT smarter, and a bit different, between 5.0.3 and
>>> 5.0.4.
>>> Lots of influence from Guice; basically, for service injections, we make
>>> injecting by type the standard, and injecting by name a rarely used
>>> option.
>>> Further, there's a lot more infrastructure to allow other combinations,
>>> such
>>> as injecting based on combinations of field type and other annotatoins
>>> (here
>>> Asset for the type, @Path as the annotation).
>>>
>>> On 5/16/07, Bill Holloway <[EMAIL PROTECTED]> wrote:
>>> >
>>> > gurg!  All my @Injects("...") just broke!  Guess I need to use @Path
>>> with
>>> > it?
>>> >
>>> > On 5/16/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
>>> > > I've  been making a number of important T5 bug fixes; I've just
>>> uploaded
>>> > the
>>> > > latest snapshots to
>>> > http://people.apache.org/~hlship/tapestry-repository/
>>> > >
>>> > > Feedback is always welcome!
>>> > >
>>> > > --
>>> > > Howard M. Lewis Ship
>>> > > TWD Consulting, Inc.
>>> > > Independent J2EE / Open-Source Java Consultant
>>> > > Creator and PMC Chair, Apache Tapestry
>>> > > Creator, Apache HiveMind
>>> > >
>>> > > Professional Tapestry training, mentoring, support
>>> > > and project work.  http://howardlewisship.com
>>> > >
>>> >
>>> >
>>> > --
>>> > "The future is here.  It's just not evenly distributed yet."
>>> >
>>> >      -- Traditional
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> > For additional commands, e-mail: [EMAIL PROTECTED]
>>> >
>>> >
>>>
>>>
>>> --
>>> Howard M. Lewis Ship
>>> TWD Consulting, Inc.
>>> Independent J2EE / Open-Source Java Consultant
>>> Creator and PMC Chair, Apache Tapestry
>>> Creator, Apache HiveMind
>>>
>>> Professional Tapestry training, mentoring, support
>>> and project work.  http://howardlewisship.com
>>>
>> 
>> 
>> -- 
>> "The future is here.  It's just not evenly distributed yet."
>> 
>>      -- Traditional
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/5.0.5-SNAPSHOTS-tf3767704.html#a10665745
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to