R Kintali

Greenhorn
+ Follow
since May 08, 2011
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 R Kintali

Hi Guys,

I have a custom java object. Once user logs into application I need to keep it in browser's HTTP session. That session scoped object should then be shared/accessible between portlets that are defined in two different web packages.
This application will be hosted in cluster environment.

Can you please advise which API can be used to achieve this session-sharing between portlets in cluster environment?

Kind regards,
Raj
7 years ago
JSF
Hi Guys,

I have a use case as below.

1) User1 logs in to application.
2) Opens up a page and tries to submit the form with some data on the screen.
3) The client side validations on the page determines that user can not do that action and requires approval from supervisor. A popup opens up with the supervisor name.
4) Supervisor comes to user1, enters password and submit
5) System checks supervisor's authentication, authorization and then allows User1 to submit the form. System should not use supervisor's credentials for any other tasks on the screen. (i.e., supervisor's authentication should be immediately destroyed in user1's session after this task is complete).

At Step 5 above, which API can be used to authenticate another user's credentials while user1's session is 'active'.

Kind regards,
7 years ago
JSF
tomcat7:run-war works but I don't want to use this as any changes in the source files won't be reflected immediately unless we re-build the war. Is there any alternative ?
7 years ago
JSF
Hi,

Just figured out that it may work when this war is built and deployed to Tomcat server. However, I am using embedded tomcat with maven(tomcat7:run). The problem with this is that the dependant jar files are not placed in WEB-INF/lib as the war is not assembled and JSF2 scans this folder to process the annotations.

Is there any configuration that I need to add in pom.xml to make the JSF2 annotations resolved in Tomcat 7 embedded server?
7 years ago
JSF
Hi Guys,

Can you please share JSF2 Hello world working example that runs on Tomcat7 server?

Kind regards,
7 years ago
JSF
Hi,

The dependencies in your POM are not present anymore in maven central repository.

Could you please share the working copy of hello world app (on Tomcat7) if you have?

Kind regards,
7 years ago
JSF
Hi Guys,

I wanted to build a simple hello world app with JSF 2.

Below is what I did for this.

1) created maven web app in eclipse
2) Added JSF2 maven dependency (2.2.4) and tomcat7 plugin in pom.xml
3) Updated web.xml config to redirect to a xhtml page based on url pattern
4) Created session scoped managed bean (with annotation) and a simple getter / setter in it.
5) Created xhtml that has binding to the message from the above managed bean.

I then built war with 'clean install tomcat7:run'. This created war file and the app is available at http://localhost:8080/jsf-prac

When I hit this URL, the annotation based managed bean is not initiated at all. Thus, the message from managed bean is not displayed on screen.

Please find the hello world web app here - https://github.com/rkintali/jsf-prac.git

Could you please advise why the managed bean is not initiated?

Upon googling, I noticed here that @ManagedBean of Mojarra 2.1.0 doesn't work on Tomcat. Hence used version 2.2.4, but still no luck. Do you have any idea?

Kind regards,
Guru
7 years ago
JSF
Hi Thanks for your reply.

All the css classes are defined in bootstrap.css file only. Now I want to use these classes in xhtml file in eclipse.

When I type text for any element's class attribute in xhtml I would like to see all the classes that start with the entered text (on ctrl+space)

For example, for <div class=""> - for the class attribute if I type 'nav' I would like to see all the classes that start with nav.

Can you please assist?
Hi Guys,

I would like to see bootstrap CSS auto complete options when developing xhthml pages in eclipse.

Could you please advise how can I enable this CSS autocomplete in eclipse?

Best regards,
hi All,

I am trying to send mail using Java Mail API.

Using following configuration:

Properties props = System.getProperties();
props.put("mail.smtp.host", "localhost");
props.put("mail.smtp.port", "25");
props.put("mail.smtp.auth", "false");
props.put("mail.debug", "true");
Session session = Session.getDefaultInstance(props, null);

Getting following exception:

DEBUG: setDebug: JavaMail version 1.3.2
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "localhost", port 25, isSSL false
DEBUG SMTP: exception reading response: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
javax.mail.MessagingException: Exception reading response;
nested exception is:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1349)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1191)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:311)
at javax.mail.Service.connect(Service.java:233)
at javax.mail.Service.connect(Service.java:134)
at javax.mail.Service.connect(Service.java:86)
at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:144)
at javax.mail.Transport.send0(Transport.java:150)
at javax.mail.Transport.send(Transport.java:80)

My application server is in unix box.

could you please suggest, what extra parameters need to be set to avoid the exception ' exception reading response: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?'

Many Thanks,
Raj.
12 years ago
hi Dittmer,

Thanks for the reply!

#1: 'emailProfile' - I mean to say 'do we need to have an email account for application server to send mails using mailAPI'.

#2: Thanks for the links, m going through them

Many Thanks,
Raj
12 years ago
hi folks,

I am a beginner to Java Mail API.

Just got to know sending mails from java code using mail API by specifying smtp host, port, from and to mail addresses and giving my authentication credentials.

I am curious to know following concepts:

1) Depending on my business logic in my enterprise application, want to send mail to my customer (auto generated replies via email). For this, do I need to create an emailProfile for my application server to give this email address as "from" when sending email using mail API?

2) could you please share useful links where I can find more documentation on mailing concepts and useful tips?

Many Thanks,
Raj.
12 years ago