Jump to content

rakesh73

Members
  • Posts

    23
  • Joined

  • Last visited

rakesh73's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. why without encryption. Is it because its on the same host. Will tommy use encryption when the mail is relayed to gmail servers
  2. username: rakesh73 server: tommy Hi, What is the email host name and port for tommy. I followed the instructions given in "setup email client" and got below error: org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: mail.beepr.heliohost.org, port: 465, response: -1. Failed messages: javax.mail.MessagingException: Could not connect to SMTP host: mail.beepr.heliohost.org, port: 465, response: -1; message exception details (1) are:Failed message 1:javax.mail.MessagingException: Could not connect to SMTP host: mail.beepr.heliohost.org, port: 465, response: -1at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2106)at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:712)at javax.mail.Service.connect(Service.java:366)
  3. I just discovered that after going to home page http://<my_domain> and then navigating to http://<my_domain>/rakesh73_blog I get the session to persist. If I go to http://<my_domain>/rakesh73_blog disrectly, session does not hold across request.s. Please do not make the changes as described in above post. I need to do some more testing. I will post again If I need anything to change. Thanks for your patience
  4. Now I have two paths https://<my_domain>/blog and http://<my_domain>/rakesh73_blog/ https://<my_domain>/rakesh73_blog returns 404. Can this path be available.
  5. Redeployed the war with <username>_blog.war. The url is <my-domain>/blog and the contextPath is /<username>_blog.war The app is still not able to find the files and submit forms. The login form needs to submit to /rakesh73_blog/login, but that page is not found as the url is <my-domain>/blog I tried setting all relative paths to /blog, but then faced cookies issue so reverted the changes. Please let me know if there is any thing that will solve the cookie issue and the contextPath issue.
  6. I have deployed rakesh73_blog.war but it is getting deployed at <my_domain>/blog. Please can you fix this so my servlet path is <my_domain>/rakesh73_blog Also I have https enabled for my servlets but it seems servlets paths can invoked both from http and https. I was hoping all http requests would get routed to https on the server side automatically. Thanks
  7. Thanks for enabling https for my servlets. I am facing a new issue now. I am unable to login to my application after successful authentication. I have a login page that accepts my user name and password. After successful, the response is redirected to home page. The home page checks if user is authenticated. If not, the response is redirected to login page. I user is authenticated, the home page is displayed In my case after login, the user is redirected to home page after successful login. The home page does not find the user authenticated and the redirects back to login page. Are cookies enabled for my app. I am using using Spring framework's WebSecurityConfigurerAdapter for authentication which I believe uses cookies for session handling between requests. Thanks
  8. Thanks for your reply. Please enable HTTPS for java for my account. If possible, I do not want regular HTTP requests should be routed to my HTTPS path. Thanks, Rakesh
  9. Username: rakesh73 server: Tommy I have deployed a new war file using cPanel. I am facing two issues described below: 1. The servlet path is not available securely. The servlets are accessible on http:// On trying to access by https:// I get a 404 error. I was expecting the servlets to be available on a secure path just like jsp files. This could cause security issues for example if I try to send login information to a servlet, I should be sending over a secured path. 2. I set some relative paths for static resources like javascript and css files using httpServletRequest.getContextPath(). My application url is <my-domain>/blog, but the httpServletRequest.getContextPath() returns a contextPath /rakesh73_blog This makes setting the relative paths very difficult. The httpServletRequest.getContextPath() should return contextPath "/blog" as visible in the last part of the application url.<my-domain>/blog Thanks
  10. I just realized this topic is marked as SOLVED, so I am posting my last query in a new topic
  11. Thanks for the info. I have deployed a new war file using cPanel. I am facing two issues described below: 1. The servlet path It is not available securely. The servlets are accessible on http:// On trying to access by https:// I get a 404 error. I was expecting the servlets to be available on a secure path just like jsp files. This could cause security issues for example if I try to send login information to a servlet, I should be sending over a secured path. 2. I set some relative paths for static resources like javascript and css files using httpServletRequest.getContextPath(). My application url is <my-domain>/blog, but the httpServletRequest.getContextPath() returns a contextPath /rakesh73_blog This makes setting the relative paths very difficult. The httpServletRequest.getContextPath() should return contextPath "/blog" as visible in the last part of the application url.<my-domain>/blog Thanks
  12. I want my complete app to be deployed in a war package. I do not want to put anything in the document root for now. Tomcat supports multiple domains/applications through configurations in server.xmlFor my local application I could configure the context path as below. Can something similar be done on my domain. <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" deployOnStartup="false"> <Context path="" docBase="Beepr-0.0.1-SNAPSHOT"></Context> ........ ........</Host> Thanks
  13. I could do this in my local tomcat server so why it can't be done in my domain.
  14. I forgot to mention: username: rakesh73 server: tommy
×
×
  • Create New...