[appfuse-user] ClassNotFoundException FaceletViewHandler

2008-06-19 Thread George.Francis
My basic JSF AppFuse webapp is failing to render requested .html pages.. I’m pretty sure these are the ones rendered from .xhtml files through the decorator pattern. I have a number of errors in my logs which seem to correspond to these failure-to-serve events: ERROR [btpool0-12] ViewHandlerWra

Re: [appfuse-user] MySql javax.faces.el.EvaluationException : no natively generated identity value

2008-06-05 Thread George.Francis
I fixed this by doing: ALTER TABLE app_user AUTO_INCREMENT = 100; George.Francis wrote: > > yes, id value is null in the User instance being persisted > > > mraible wrote: >> >> You might check that the id is null and not 0 before the save occurs. >> >

Re: [appfuse-user] MySql javax.faces.el.EvaluationException : no natively generated identity value

2008-06-05 Thread George.Francis
yes, id value is null in the User instance being persisted mraible wrote: > > You might check that the id is null and not 0 before the save occurs. > > Matt > > On Wed, Jun 4, 2008 at 3:59 PM, George.Francis <[EMAIL PROTECTED]> > wrote: >> >> And yes

Re: [appfuse-user] MySql javax.faces.el.EvaluationException : no natively generated identity value

2008-06-04 Thread George.Francis
And yes, APP_USER.ID has AUTO_INCREMENT set to true... George.Francis wrote: > > Hello, > I inherited a JSF Appfuse application backed by MySQL. When an > Administrator tries to create a new user, they get the following > stacktrace. It seems to imply that the DB can't

[appfuse-user] MySql javax.faces.el.EvaluationException : no natively generated identity value

2008-06-04 Thread George.Francis
Hello, I inherited a JSF Appfuse application backed by MySQL. When an Administrator tries to create a new user, they get the following stacktrace. It seems to imply that the DB can't auto generate a new primary key value. I can't immediately tell how the application got into this state, since I

Re: [appfuse-user] XML Parsing Error on /admin/users.html

2008-05-23 Thread George.Francis
Fixed. Had to use Tomcat 6, instead of Tomcat 5. JSP 2.1 is only supported as of TC6... George.Francis wrote: > > I think I'm getting close to the actual error now. I see: > > Caused by: javax.faces.FacesException: No valid ExpressionFactory > implementation is

Re: [appfuse-user] XML Parsing Error on /admin/users.html

2008-05-23 Thread George.Francis
ar. mraible wrote: > > If you view-source on the page, do you see the issue? > > Matt > > On Fri, May 23, 2008 at 11:06 AM, George.Francis <[EMAIL PROTECTED]> > wrote: >> >> Hmm, that didnt work :( >> >> >> >> mraible

Re: [appfuse-user] XML Parsing Error on /admin/users.html

2008-05-23 Thread George.Francis
ri, May 23, 2008 at 11:06 AM, George.Francis <[EMAIL PROTECTED]> > wrote: >> >> Hmm, that didnt work :( >> >> >> >> mraible wrote: >>> >>> You might try adding the following to sitemesh.xml: >>> >>> >> class="com.opensympho

Re: [appfuse-user] XML Parsing Error on /admin/users.html

2008-05-23 Thread George.Francis
Hmm, that didnt work :( mraible wrote: > > You might try adding the following to sitemesh.xml: > > class="com.opensymphony.module.sitemesh.parser.FastPageParser"/> > > Matt > > On Thu, May 22, 2008 at 3:37 PM, George.Francis <[EMAIL PROTECTED]>

[appfuse-user] XML Parsing Error on /admin/users.html

2008-05-22 Thread George.Francis
Someone passed this project on to me, which was initially created using the AppFuse default JSF configuration. They initially disabled security so that logon wasn't required. Now they want to reintroduce logon. So I re-enabled the appropriate value in security.xml and logon is back! great! but

[appfuse-user] Entity list in mainMenu.jsp

2007-11-24 Thread George.Francis
If I want to add a list of entities ('Projects') on my mainMenu, I assumed I had to define a MainMenuController class, and create a mapping for it in dispatcher-servlet.xml with id = mainMenuController. Having done this, it looks like my controller isn't called before mainMenu.jsp is displayed, so

Re: [appfuse-user] jsp templates

2007-11-23 Thread George.Francis
OK, that works; what about the objects that don't start with 'param.' such as 'leftList' ? mraible wrote: > > On 11/23/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >> >> Hmm, if I put: >> System.out.println(request.getParameter(&

Re: [appfuse-user] jsp templates

2007-11-23 Thread George.Francis
a JSTL variable that is the same as request.getParameter. > These parameters are set in the page that uses pickList.jsp. > > Matt > > > On Nov 23, 2007, at 8:09 AM, George.Francis wrote: > >> >> Hello, >> I have a pretty good understanding of servlets and J

[appfuse-user] jsp templates

2007-11-23 Thread George.Francis
Hello, I have a pretty good understanding of servlets and JSP, but I'm struggling to understand how pickList.jsp works exactly. In debugging mode I've paused execution at the top of the compiled code but couldnt find which object in memory contained the values for param.leftId, leftList, e.t.c...

[appfuse-user] clean & insert default entities

2007-11-11 Thread George.Francis
Is there a MVN taget that will just recreate the DB and insert the default entities (from xml)? I thought this should be 'dbunit:clean-insert' but that doesnt work... -- View this message in context: http://www.nabble.com/clean---insert-default-entities-tf4787143s2369.html#a13694973 Sent from

Re: [appfuse-user] Attachments in XFire

2007-11-08 Thread George.Francis
Thanks for the info. Yes I'm using 2.0 - i _think_ I should add this property to the bean whose class is org.codehaus.xfire.spring.remoting.XFireExporter in xfire-servlet.xml - can anyone else confirm this? DNewfield wrote: > > George.Francis wrote: >> >> true >

[appfuse-user] Attachments in XFire

2007-11-08 Thread George.Francis
Hi, Im trying to enable attachments in my webservice, I gather I need to enable mtom by setting the property true Can someone tell me where to set this? Also, is there an example of the code for sending an attachment? -- View this message in context: http://www.nabble.com/Attachments-in-

Re: [appfuse-user] Duplicate Users in List

2007-10-29 Thread George.Francis
r. List allows duplicates, Sets do not. > > Cheers, > Bob > > > George.Francis wrote: >> >> I'm getting some strange behaviour. I find that if I assign two Roles to >> User 'admin' then when I call >> userManager.getAll() I get two instan

Re: [appfuse-user] Duplicate Users in List

2007-10-29 Thread George.Francis
) syg6 wrote: > > Yep. You're using Hibernate right? Just cast the List of Users to a > LinkedHashSet in your UserController. List allows duplicates, Sets do not. > > Cheers, > Bob > > > George.Francis wrote: >> >> I'm getting some strange

[appfuse-user] Duplicate Users in List

2007-10-26 Thread George.Francis
I'm getting some strange behaviour. I find that if I assign two Roles to User 'admin' then when I call userManager.getAll() I get two instances of the admin user in the List. Has anyone else seen this kind of behaviour? What causes it? -- View this message in context: http://www.nabble.com/Dup

[appfuse-user] JspTagException in PickList

2007-10-26 Thread George.Francis
I have an entity 'Application' which has a ManyToMany association with Users. I've been trying to get a pick-list up on the ApplicationForm so that this relationship can be managed. I'm following the example of userRoles in the default userForm, but whenever I send a non-empty list for available

Re: [appfuse-user] Secured Webservice

2007-10-24 Thread George.Francis
orburger.ch/blog1/2006/10/propagating-acegis-security-context-in.html > > Marcello > > > mraible wrote: >> >> Do you have webservices only - or are you serving up an HTML interface >> as well. I'd suggest modifying your filterChainProxy to have >> /s

Re: [appfuse-user] Secured Webservice

2007-10-24 Thread George.Francis
roxy to have > /services/**=filterChainWithBasicAuthenticationFilter. > > Then adding basic authentication bean definitions to your security.xml. > > Matt > > On 10/24/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >> Please help me get secure webservices runni

[appfuse-user] Secured Webservice

2007-10-24 Thread George.Francis
Please help me get secure webservices running in my app! I have added /services/**=ROLE_ADMIN,ROLE_USER to security.xml as instructed in the tutorial (http://appfuse.org/display/APF/Web+Services). What I need to know is, has ANYONE got this successfully working? If so could you PLEASE post the r

Re: [appfuse-user] secured web services

2007-10-23 Thread George.Francis
an 1970 00:00:00 GMT Set-Cookie: JSESSIONID=1g24tn24jkdvd;Path=/ Location: http://rad223:8080/login.jsp;jsessionid=1g24tn24jkdvd Content-Length: 0 Server: Jetty(6.1.5) George.Francis wrote: > > Thanks for your response. > I think you're right about the redirect because the 302 er

Re: [appfuse-user] secured web services

2007-10-23 Thread George.Francis
fs > > class="org.acegisecurity.ui.basicauth.BasicProcessingFilter"> >local="authenticationManager"/> >local="basicProcessingFilterEntryPoint"/> > > > class="org.acegisecurity.ui.basicauth.BasicProcessingFilt

Re: [appfuse-user] secured web services

2007-10-23 Thread George.Francis
This is now urgent! I've been trying for days to get secure web-services going. I added /services/**=ROLE_ADMIN,ROLE_USER to security.xml as advised and using WSS with SoapUI-1.7.6 I am only getting an HTTP 302 response. Please help! George.Francis wrote: > > Once I've secur

Re: [appfuse-user] Method-level web service security for Users

2007-10-23 Thread George.Francis
wrote: > > You can enter them in sample-data.xml for testing and default-data.xml > for production. After adding them to the database, you should be able > to add them in security.xml. > > Matt > > On 10/22/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >&

Re: [appfuse-user] Method-level web service security for Users

2007-10-22 Thread George.Francis
That's good - can you give me a bit of direction on how to define new Roles? mraible wrote: > > The first option seems like the easiest solution to me. > > Matt > > On 10/22/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >> I noticed that the metho

[appfuse-user] Method-level web service security for Users

2007-10-22 Thread George.Francis
I noticed that the methodSecurityInterceptor bean in security.xml has : org.appfuse.service.UserManager.getUsers=ROLE_ADMIN org.appfuse.service.UserManager.removeUser=ROLE_ADMIN Which would seem to apply role-based security at the webse

[appfuse-user] secured web services

2007-10-22 Thread George.Francis
Once I've secured my Webservice by editing WEB-INF/security.xml, how do I test it? I've been using SoapUI up until now but since the services are now secure this fails (using WSS). -- View this message in context: http://www.nabble.com/secured-web-services-tf4673549s2369.html#a13352215 Sent fr

[appfuse-user] Secured webservice returns a 302 error.

2007-10-19 Thread George.Francis
I turned on security for my webservice by adding /services/**=/services/**=ROLE_ADMIN,ROLE_USER to my WEB-INF/security.xml. Now when I send a request to the webservice I get the following response: HTTP/1.1 302 Moved Temporarily Server: Apache-Coyote/1.1 Set-Cookie: JSESSIONID=E7E1F4EECDA442F202

Re: [appfuse-user] Spring MVC form for JoinTable

2007-10-18 Thread George.Francis
little > faster ;-). > > Mike. > > On 10/18/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >> >> Ok, I feel as if I've missed some important learning material. Is there >> a >> document somewhere I should have read while learning AppFuse

Re: [appfuse-user] Spring MVC form for JoinTable

2007-10-18 Thread George.Francis
7;one'. Mike Horwitz wrote: > > You need to uncomment the OpenSessionInViewFilter in web.xml along with > its > associated filter-mapping. > > Mike. > > On 10/17/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >> >> Hmm, this sample doesnt seem

Re: [appfuse-user] Spring MVC form for JoinTable

2007-10-18 Thread George.Francis
associated filter-mapping. > > Mike. > > On 10/17/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >> >> Hmm, this sample doesnt seem to take into account the Hibernate bindings >> (i.e. the Grid class isnt annotated). I get the following error: >&g

Re: [appfuse-user] Spring MVC form for JoinTable

2007-10-17 Thread George.Francis
(PersistentBag.java:249) at org.apache.taglibs.standard.tag.common.core.ForEachSupport.toForEachIterator Any hints? Mike Horwitz wrote: > > This is one of the more popular: > http://mattfleming.com/node/134 > > Mike > > On 10/16/07, George.Francis <[EMAIL PROTECTED]> wrote:

[appfuse-user] equals() method throws ClassCastException when editing

2007-10-17 Thread George.Francis
I am using Spring MVC with hibernate. my Application pojo has a Customer associated with it. The association is made via a 'customer_fk' column on the Application table of type int8, which stores the id of the associated Customer. when I edit an Application what has a Customer assigned, I

Re: [appfuse-user] CustomerEditor needs an instance of CustomerManager

2007-10-17 Thread George.Francis
: but I end up with a CustomerEditor whose customerManager is null... George.Francis wrote: > > I tried

Re: [appfuse-user] CustomerEditor needs an instance of CustomerManager

2007-10-17 Thread George.Francis
rty 'customerManager' : no matching editors or conversion strategy found: Do you know why this is? mraible wrote: > > You should be able to declare a bean definition to register property > editors, as well as use dependency injection to set their > dependencies. > &g

[appfuse-user] CustomerEditor needs an instance of CustomerManager

2007-10-17 Thread George.Francis
Hello, in my CustomerEditor class, I have a public void setAsText(String text) which needs an instance of CustomerManager in order to resolve the correct Customer object. How is the CustomerManager usually passed to a CustomerEditor? -- View this message in context: http://www.nabble.com/Custo

Re: [appfuse-user] Problemn associating entities via form

2007-10-17 Thread George.Francis
ks as if you have not implemented the > getAsText() method for your editor? > > Mike > > On 10/17/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >> >> Application.getCustomer() returns a Customer instance. The reason >> equals() >> is being passed

Re: [appfuse-user] Problemn associating entities via form

2007-10-17 Thread George.Francis
MVC encourages the use of domain objects in the form, so > customers + Application.getCustomer() should both return Customer objects. > > Mike > > On 10/16/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >> >> Do I have to change the equals() method too? No

Re: [appfuse-user] Problemn associating entities via form

2007-10-17 Thread George.Francis
ng.parseLong(text)); >setValue(obj); > } >} > > Mike > > On 10/16/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >> >> Would that be ApplicationFormController's initBinder method? >> This is my setAsText method: >

Re: [appfuse-user] Problemn associating entities via form

2007-10-16 Thread George.Francis
org.springframework.web.servlet.tags.form.OptionWriter.isSelected(OptionWriter.java:184) at org.springframework.web.servlet.tags.form.OptionWriter.renderOption(OptionWriter.java:172) George.Francis wrote: > > Would that be ApplicationFormController's initBinder method? &

Re: [appfuse-user] Problemn associating entities via form

2007-10-16 Thread George.Francis
Value(null); } else { obj = new Customer(); obj.setId(Long.parseLong(text)); setValue(obj); } } Mike Horwitz wrote: > > On 10/15/07, George.Francis <[EMAIL PROTECTED]> w

[appfuse-user] MappingException in OneToMany bean relationship

2007-10-16 Thread George.Francis
In my datamode an Application is associated with many Operations, so I added a List member variable to my Applications class, ie: private List operations; public List getOperations() ; When I run mvn hibernate3:hbm2ddl, I get: org.hibernate.MappingException: Could not determine type for: java.u

[appfuse-user] Spring MVC form for JoinTable

2007-10-16 Thread George.Francis
Hi, Can someone please point me to a good reference for implementing a jsp to edit entries in a ManyToOne join table between by beans? Cheers, -- View this message in context: http://www.nabble.com/Spring-MVC-form-for-JoinTable-tf4636094s2369.html#a13240212 Sent from the AppFuse - User mailing l

Re: [appfuse-user] Intercepting Web Service requests

2007-10-16 Thread George.Francis
Looking ito it, it may be better to override XFireServletController. If this is true, how could I substitute my custom controller into the XFireServlet? George.Francis wrote: > > Hello, I want to intercept requests to the XFire WebService. I will be > checking these requests to en

[appfuse-user] Intercepting Web Service requests

2007-10-16 Thread George.Francis
Hello, I want to intercept requests to the XFire WebService. I will be checking these requests to ensure that the user who sent the request has permission to execute the particular SOAP method being called. Is the best way to do this by writing my own subclass of org.codehaus.xfire.spring.XFireS

Re: [appfuse-user] Problemn associating entities via form

2007-10-15 Thread George.Francis
te the "id" that's coming for > Customer to a real customer object from your database. > > http://www.springframework.org/docs/reference/validation.html > > Matt > > On 10/12/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >> Hi, I have two e

[appfuse-user] Problemn associating entities via form

2007-10-12 Thread George.Francis
Hi, I have two entities in my Spring MVC app, 'Application' and 'Customer'. The Application edit form has a drop-down list of Customers so that one can be associated with the Application. THis is done via the following tags in the JSP; When I submit the form I get a validat

[appfuse-user] Association between beans

2007-10-12 Thread George.Francis
Hi, Hello, I have a 'Customer' entity and an 'Application' entity. Each Application has (exactly) )one Customer, how do I correctly annotate the Application class's Customer member variable to indicate the relationship? Without annotation, hibernate has created a 'customer' column in my Applicati

[appfuse-user] Simple example of bean association

2007-10-12 Thread George.Francis
Hello, I have just moved on from the tutorials and I'm having trouble creating an association in my Spring MVC WebApp between a 'Customer' bean and an 'Application' bean. In my datamodel an Application 'has a' Customer, and so my Application bean has a member of type Customer. I've created the m

Re: [appfuse-user] editing bean associations

2007-10-11 Thread George.Francis
that is, customerManager on ApplicationFormController is null despite my adding to the dispatcher-servlet.xml George.Francis wrote: > > Sorry for being slow, but should I be doing that on > ApplicationFormController, ApplicationController, CustomerFormController > or Custom

Re: [appfuse-user] editing bean associations

2007-10-11 Thread George.Francis
never called and therefore it's customerManager is null. Mike Horwitz wrote: > > You need to populate the "customers" variable in your controller. Override > the referenceData() method, call the getAll() method on your Dao and > populate the request. > > Mike. &g

Re: [appfuse-user] editing bean associations

2007-10-11 Thread George.Francis
String objects? > > Mike > > On 10/10/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >> >> This gave me the error: >> >> org.apache.jasper.JasperException: >> /WEB-INF/pages/applicationform.jsp(29,9) >> PWC6131: Attribute labelValue

Re: [appfuse-user] editing bean associations

2007-10-10 Thread George.Francis
option items mraible wrote: > > http://www.springframework.org/docs/reference/spring-form.tld.html#spring-form.tld.options > > > > Matt > > On 10/10/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >> Sorry, can you be more specific regarding wha

Re: [appfuse-user] editing bean associations

2007-10-10 Thread George.Francis
Sorry, can you be more specific regarding what I need to change? mraible wrote: > > I believe it should be a Map unless you specify label and value > properties. > > Matt > > On 10/10/07, George.Francis <[EMAIL PROTECTED]> wrote: >> &

Re: [appfuse-user] editing bean associations

2007-10-10 Thread George.Francis
what's not working? Are you > seeing an error? > > Matt > > On 10/10/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >> Hello, >> I have made a SpringMVC application and defined two beans, Customer and >> Application. One of the members of the Appl

[appfuse-user] Recreating db

2007-10-10 Thread George.Francis
Hi, Every time i run "mvn jetty:run-war" allt he tables in my database get dropped and recreated from scratch. How do I retain the data in my DB between runs? -- View this message in context: http://www.nabble.com/Recreating-db-tf4602868s2369.html#a13142630 Sent from the AppFuse - User mailing

[appfuse-user] editing bean associations

2007-10-10 Thread George.Francis
Hello, I have made a SpringMVC application and defined two beans, Customer and Application. One of the members of the Application bean is a Customer. I'm having trouble getting the applicationform.jsp page to display a list of existing Customers to associate with the Application. Is it simply a

Re: [appfuse-user] Implementing a second web-service

2007-10-10 Thread George.Francis
. fadhlirahim wrote: > > Have you created a new service interface and implementation class and > expose > it as a webservice? Xfire will pick it up and it will be automatically > expose as a web service. > > On 10/10/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >> &g

[appfuse-user] Web services index not working

2007-10-09 Thread George.Francis
Hi, I created a basic Spring MVC App using the maven archetype process described in the tutorials. I can see the wsdl for the Users webservice at http://localhost:8080/services/UserService?wsdl, but I can't see the list of services at http://localhost:8080/services - I get a 404 for this URL. Wh

Re: [appfuse-user] Implementing a second web-service

2007-10-09 Thread George.Francis
mraible wrote: > > Which version of AppFuse are you using? If it's 2.0, the following might > help: > > http://appfuse.org/display/APF/Web+Services > > Matt > > On 10/9/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >> Hello All, >> I a

[appfuse-user] Implementing a second web-service

2007-10-09 Thread George.Francis
Hello All, I am a relative new-comer to AppFuse but have been doing Java/Web Dev for years. I just completed the AppFuse tutorials and have my basic Spring MVC web-app up and CRUD-ing. Now, I want to add a WebService to the application. I'm aware that AF has X-Fire built in which it uses to e