M Marin

Ranch Hand
+ Follow
since Feb 20, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
3
Received in last 30 days
0
Total given
6
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by M Marin

What about authentication? I have a clear picture for SOAP, but I still do not get it for Restful web services. Does anyone know any improvements for the last two years regarding secure communication in Restful? I would appreciate, since I may need it soon.

Marin.
8 years ago
Hello,

I am trying to use this test ldap service for authentication with spring security:

http://blog.stuartlewis.com/2008/07/07/test-ldap-service/comment-page-1/#comment-5748

following details are given:

Details:

ldap.provider_url = ldap://ldap.testathon.net:389/
ldap.id_field = cn
ldap.object_context = OU=users,DC=testathon,DC=net
ldap.search_context = OU=users,DC=testathon,DC=net
ldap.email_field = mail
ldap.surname_field = sn
ldap.givenname_field = givenName
ldap.phone_field = telephoneNumber

But I am Still not able to get a working configuration.

My configuration is:

<authentication-manager>
<ldap-authentication-provider

??? - I am stuck here

>
</ldap-authentication-provider>
</authentication-manager>

<ldap-server url="ldap.testathon.net:389" manager-dn="CN=stuart,OU=users,DC=testathon,DC=net" manager-password="stuart" />

Regards

Marin





8 years ago
I am currently working on a project based on hibernatge, spring and JSF. We are going to start a new project and the question is how to do the same without Spring.
I still want Hibernate/JPA, JSF and Dependency Injection, but I find Spring just unclear with releases and support.
Does anyone use a differendt approach in O/R Mapping with JPA and DI which is reliabale and does not use Spring?

I believe the maven archetype generate tool is a really nice feature. But, somehow, as it is, does not really help me. I want to use a template in order develop a JSF+Hibernate+Spring project quickly(at least the integration of frameworks). But, there is little explanation/support for the archetypes themselves. I have been wasting almost a week trying to make sense out of the available archetypes and I am still not there. The purpose of integrating the frameworks and dependencies quickly is gone. I could have managed the interation of the components much quicker doing it myselft without this tool. I know that there is an Appfuse archetype that does that, but it is still not enough. This tool needs a better guidance.

David M.Marin
9 years ago
When prompted for a template after running mvn generate, the list of available templates is so large that I do not see them all and also I do not get enough descriptions of what they do. So the question was, how do I find out what all the available templates are(after de prompt) and what they do?

9 years ago
Hello,

I am trying to use the feature "mvn archetype:generate", but it comes out, at the command prompt, a long and incomplete List of templates. Is there a way to see the List of templates completely.

Marin
9 years ago
Hello,

I am trying to make sense out of Maven. At the moment I am trying to integrate JSF, Spring and hibernate and I want to know how Maven can help me.
I have a working small test web-app, which already integrates the three frameworks. I downloaded this app from the internet and I managed to import it into eclipse using a maven import project utility. Can I use maven, somehow, in order to start developing a more real app from this test app, taking the integration of the framework components?
My problem is building a web application with the above frameworks, but the integration of them is really hurting me. Can Maven save this pain?

Thank you.David
9 years ago
Add also the schema name manually to de database, just leave the tables to be automatically generated.
I am not using persistance.xml for the project. I use hibernate.cfg.xml:

(This is a simplified version)

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.password">mypassword</property>
<property me="hibernate.connection.url">jdbc:mysql://localhost:3306/mydb</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.search.autoregister_listeners">false</property>
<property name="hibernate.hbm2ddl.auto">create</property>
<property name="hibernate.show_sql">true</property>
<mapping class="data.Customer" />
</session-factory>
</hibernate-configuration>

Try whether that works

Marin
Thank you for the answer. I followed the instructions and It helped to locate the problem. Oracle allowed me to use the word "KEY" as a field name and MySQL did not like it, so I guess "KEY" is a reserved keyword in MySQL. So I changed the field name and now it works.

from:

@Length(max=80)
@Column(name="KEY", length=80)
public String getKey() {
return key;
}


public void setKey(String key) {
this.key = key;
}



to:

@Length(max=80)
@Column(name="PKEY", length=80)
public String getPkey() {
return pkey;
}


public void setPkey(String pkey) {
this.pkey = pkey;
}

now it works, so great. Thank you for the quick help.

M. Marin.
Hello,

I am developing a program with Hibernate and Oracle and I want to reproduce the same application using MySQL. I want to generate de database tables using:

<property name="hibernate.hbm2ddl.auto">create</property>

from the ("Oracle") domain code, but I can only create one table out of four. Does anyone have an idea what I am doing wrong?

Regards.

M. Marin.

Lester Burnham wrote:Which URL are you passing to the wsimport tool? That error generally occurs if a network connection to a particular host can't be made.



The URL is located in intranet of the organisation and I was personally wondering whether network restrictions could be a problem. I am also having problems with LDAP authentication and I "believe" the reason for this another issue may be a network restriction again, but I am not 100% sure.

M. Marin
10 years ago
I have some WSDL files, but when I try to generate the stubs using the wsimport facility I get the message: "no route to host". What could this mean? Do I need some extra permission or requirement in order to run the wsimport facility?

Regards.

M. Marin.
10 years ago
Maybe, I just need holidays...
10 years ago