Emilio de la Torre

Greenhorn
+ Follow
since Feb 16, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Emilio de la Torre

Hi, i just installed maven and execute this command

mvn archetype:generate -DarchetypeGroupId=org.ploin.archetype -DarchetypeArtifactId=tempSpringRichHibernate -DarchetypeVersion=1.7.1 -DarchetypeRepository=http://www.ploin-m2.de/nexus/content/groups/public/ -DgroupId=es.mycompany -DartifactId=myteamcenter
And when its going to download dependencies i get this error

Faild to execute goal org.apache.maven.plugins: maven-archetype-plugin:2.2:generate <default-cli> on project standalone-pom: The desired archetype does not exist <org.ploin.archetype:tempSpringRichHibernate:1.7.1>

With archetypes without Spring it does download dependencies

Any ideas? Please
12 years ago
Hi, im a newbie in web development. Ive been looking at examples on the web, and several of them use the attribute disabled="disabled" in a button or a link but doesnt seen to work for me

Is there a specific reason for this?

Thanks
Always jumps "send hello first" error

props.put("mail.smtp.transport.protocol", "smtp");
props.put("mail.smtp.starttls.enable", "true");
props.put("mail.smtp.host", "smtpserver.domain.com");
props.put("mail.smtp.localhost", "mypc.mydomain.com);
props.put("mail.smtp.auth", "true");

Session sesion = Session.getDefaultInstance(props);

try {
Transport transport = sesion.getTransport("smtp");
MimeMessage msg = new MimeMessage(sesion);
sesion.setDebug(true);

msg.setFrom(new InternetAddress("from@domain.com"));

InternetAddress[] address = { new InternetAddress("to@domain.com") };

msg.addRecipients(Message.RecipientType.TO, address);
msg.setSubject("Test");
msg.setText("This is a test", "text/plain");


transport.connect(host, port, username, password);
transport.sendMessage(msg, msg.getRecipients(Message.RecipientType.TO));
transport.close();
} catch (MessagingException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
12 years ago
Hi! Im having the same problem, but changing the mail.smtp.localhost to 127.0.0.1 didnt work. I can send mails with the same code in a separate class, but when i try it in a class mounted on a Jboss i get the "Send helo first" error, any ideas. Thanks
12 years ago