Hi there, in this site, https://developers.google.com/accounts/docs/OpenID , there's a section which supports making an openid+oauth request in order to do both, user authentication and authorization...
Type: Posts; User: chiwi; Keyword(s):
Hi there, in this site, https://developers.google.com/accounts/docs/OpenID , there's a section which supports making an openid+oauth request in order to do both, user authentication and authorization...
Hey there, I have a class with a public @Transactional method which loads some values from the DB.
I'm declaring the bean in the xml with the init-method argument set.
The problem I'm facing is...
org.springframework.data.document.mongodb.config package in spring-data-mongodb.jar
yes, I got it working by simply updating the deps.
mvn -U package
...why?
i'm getting the following exception since today, trying to create the converter:
java.lang.NoClassDefFoundError:...
hey, worked great.
Thanks!
Fede.
I've had the same issue:
try this:
<mongo:mongo host="localhost"/>
<mongo:db-factory dbname="myDBName" />
which converter are you using?
make sure you are using MappingMongoConverter
Fede.
Hey, thank you very much!, that was a quick fix :)
I'll try the latest snapshot
thanks
Fede.
Hey there, I'm using SpringData MongoDB - latest snapshot, and Spring Security 3.0.5.
I have the following class I want to persist:
@Document
public class MyUser implements UserDetails {
...
where is the declaration of bean preauthAuthProvider ?
you are referencing it, but i don't see it declared. You have it somewhere else?
Could we see the full stacktrace please?
Thanks.
...
you have this line in your code
<tx:annotation-driven transaction-manager="transactionManager" />
but I can't see the actual transaction manager being created.
Make sure you add the bean...
welcome to the club :)
<mongo:repositories base-package="net.net.flexcellence.redux.server.dao.imp l" mongo-template-ref="mongoTemplate" />
you are referring "net.net.flexcellence....", isn't that a typo?
I don't understand. Would you rephrase the question please?
In your example, all ObjectIds are the same. It's like having an object with attributes objects pointing to themselves.
Do you mind...
Jbrisbin, this approach works - thanks.
However as I said. This would be only a workaround since I'm not comfortable with the idea of not being atomic.
Thank you all.
Fede.
Hey Mark, you were right. It seems to be a bug since updateFirst doesn't work.
I'll keep an eye on the bug url.
Thanks!
Fede.
Are you using MongoDB's @Id? or Hibernate's? I also believe that @ManyToOne is from Hibernate.
I don't think you can mix both: Hibernate and MongoDB. Hibernate works only for relational databases....
I'll try loading it and then saving it. How ever i'm concerned about the concurrency since it'd not be atomic. (the object could be modified while i pull it, change it and store it )
hey there, I'll try the mongoConverter tonight when I get home. I'll keep you posted.
Thanks for your replies!
fede.
anyway, shouldn't this post be in other subforum than Data?
wait, I assume you are building a webapp, since I've read that you put your libs in WEB-INF. Then, why are you trying to run the app with java.exe ? You should put your webapp in a servlet/app...
another interested user!
Hi there, I'm having a problem saving an object in MongoDB. I'm using Spring Data MongoDB 1.0.0.M2
@Document
public class Session {
@Id
private String id;
private String name;