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
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.
>>
>
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
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
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
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
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
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
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]>
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
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
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(&
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
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...
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
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
>
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-
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
)
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
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
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
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
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
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
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
fs
>
> class="org.acegisecurity.ui.basicauth.BasicProcessingFilter">
>local="authenticationManager"/>
>local="basicProcessingFilterEntryPoint"/>
>
>
> class="org.acegisecurity.ui.basicauth.BasicProcessingFilt
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
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:
>>
>&
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
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
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
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
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
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
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
(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:
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
:
but I end up with a CustomerEditor whose customerManager is null...
George.Francis wrote:
>
> I tried
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
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
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
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
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:
>
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?
&
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
>>
&
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
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
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
.
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
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
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
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
65 matches
Mail list logo